CoolFace
Datasetpublic

infinityofspace/python_codestyles-single-1k

Dataset Card for "python_codestyles-single-1k" 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… See the full description on the dataset page: https://huggingface.co/datasets/infinityofspace/python_codestyles-single-1k.

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes108downloads
README.md62 linesDownload Raw Back to root
1---2configs:3- config_name: default4  data_files:5  - split: train6    path: data/train-*7  - split: test8    path: data/test-*9dataset_info:10  features:11  - name: code12    dtype: string13  - name: code_codestyle14    dtype: int6415  - name: style_context16    dtype: string17  - name: style_context_codestyle18    dtype: int6419  - name: label20    dtype: int6421  splits:22  - name: train23    num_bytes: 357927280424    num_examples: 30798725  - name: test26    num_bytes: 64391167227    num_examples: 5639428  download_size: 63985774929  dataset_size: 422318447630license: mit31tags:32- python33- code-style34- single35size_categories:36- 100K<n<1M37---38# Dataset Card for "python_codestyles-single-1k"39 40This dataset contains negative and positive examples with python code of compliance with a code style. A positive41example represents compliance with the code style (label is 1). Each example is composed of two components, the first42component consists of a code that either conforms to the code style or violates it and the second component43corresponding to an example code that already conforms to a code style. In total, the dataset contains `1.000` completely44different code styles. The code styles differ in exactly one codestyle rule, which is called a `single` codestyle45dataset variant. The dataset consists of a training and test group, with none of the code styles overlapping between46groups. In addition, both groups contain completely different underlying codes.47 48The examples contain source code from the following repositories:49 50|                               repository                                |              tag or commit               |51|:-----------------------------------------------------------------------:|:----------------------------------------:|52|     [TheAlgorithms/Python](https://github.com/TheAlgorithms/Python)     | f614ed72170011d2d439f7901e1c8daa7deac8c4 |53| [huggingface/transformers](https://github.com/huggingface/transformers) |                 v4.31.0                  |54|     [huggingface/datasets](https://github.com/huggingface/datasets)     |                  2.13.1                  |55|    [huggingface/diffusers](https://github.com/huggingface/diffusers)    |                 v0.18.2                  |56|   [huggingface/accelerate](https://github.com/huggingface/accelerate)   |                 v0.21.0                  |57 58You can find the corresponding code styles of the examples in the file [additional_data.json](additional_data.json).59The code styles in the file are split by training and test group and the index corresponds to the class for the60columns `code_codestyle` and `style_context_codestyle` in the dataset.61 62There are 364.381 samples in total and 182.181 positive and 182.200 negative samples.