infinityofspace's picture
Update README.md
328f4a0
---
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- split: test
path: data/test-*
dataset_info:
features:
- name: code
dtype: string
- name: code_codestyle
dtype: int64
- name: style_context
dtype: string
- name: style_context_codestyle
dtype: int64
- name: label
dtype: int64
splits:
- name: train
num_bytes: 1805574493
num_examples: 153999
- name: test
num_bytes: 329414314
num_examples: 28199
download_size: 334063771
dataset_size: 2134988807
license: mit
tags:
- python
- code-style
- random
size_categories:
- 100K<n<1M
---
# Dataset Card for "python_codestyles-random-500"
This dataset contains negative and positive examples with python code of compliance with a code style. A positive
example represents compliance with the code style (label is 1). Each example is composed of two components, the first
component consists of a code that either conforms to the code style or violates it and the second component
corresponding to an example code that already conforms to a code style. In total, the dataset contains `500` completely
different code styles. The code styles differ in at least one codestyle rule, which is called a `random` codestyle
dataset variant. The dataset consists of a training and test group, with none of the code styles overlapping between
groups. In addition, both groups contain completely different underlying codes.
The examples contain source code from the following repositories:
| repository | tag or commit |
|:-----------------------------------------------------------------------:|:----------------------------------------:|
| [TheAlgorithms/Python](https://github.com/TheAlgorithms/Python) | f614ed72170011d2d439f7901e1c8daa7deac8c4 |
| [huggingface/transformers](https://github.com/huggingface/transformers) | v4.31.0 |
| [huggingface/datasets](https://github.com/huggingface/datasets) | 2.13.1 |
| [huggingface/diffusers](https://github.com/huggingface/diffusers) | v0.18.2 |
| [huggingface/accelerate](https://github.com/huggingface/accelerate) | v0.21.0 |
You can find the corresponding code styles of the examples in the file [additional_data.json](additional_data.json).
The code styles in the file are split by training and test group and the index corresponds to the class for the
columns `code_codestyle` and `style_context_codestyle` in the dataset.
There are 182.198 samples in total and 91.098 positive and 91.100 negative samples.