aholovko/pep8_indentation_compliance
收藏Hugging Face2024-05-28 更新2024-06-12 收录
下载链接:
https://hf-mirror.com/datasets/aholovko/pep8_indentation_compliance
下载链接
链接失效反馈官方服务:
资源简介:
---
dataset_info:
features:
- name: code
dtype: string
- name: label
dtype:
class_label:
names:
'0': non-compliant
'1': compliant
- name: rule
dtype: string
splits:
- name: train
num_bytes: 7127
num_examples: 96
- name: validation
num_bytes: 1726
num_examples: 24
download_size: 7422
dataset_size: 8853
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- split: validation
path: data/validation-*
---
# Dataset Name
This dataset contains Python code samples and their compliance with specific PEP-8 indentation rules (E101, E111, and E112).
## Dataset Structure
**Features:**
- `code`: Python code snippet.
- `rule`: PEP-8 rule (E101, E111, or E112) that the code snippet is associated with.
- `label`: A binary label indicating compliance ('non-compliant' or 'compliant').
## Usage
This dataset can be used for training machine learning models for code compliance and style enforcement tasks.
提供机构:
aholovko
原始信息汇总
数据集概述
数据集名称
未提供具体名称。
数据集结构
特征信息:
code: 数据类型为字符串,表示Python代码片段。rule: 数据类型为字符串,表示与代码片段关联的PEP-8规则(E101, E111, 或 E112)。label: 数据类型为分类标签,包含两个类别:non-compliant(非合规)和compliant(合规)。
数据集分割
- 训练集(train): 包含96个样本,总大小为7127字节。
- 验证集(validation): 包含24个样本,总大小为1726字节。
数据集大小
- 下载大小: 7422字节
- 数据集总大小: 8853字节
数据文件配置
- 默认配置(default):
- 训练集路径:
data/train-* - 验证集路径:
data/validation-*
- 训练集路径:
数据集用途
用于训练机器学习模型,以进行代码合规性和风格强制任务。



