File size: 2,709 Bytes
9fd6f7b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
224cc88
 
 
 
 
 
 
9fd6f7b
 
 
224cc88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
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: 1794945328.216033
    num_examples: 153992
  - name: test
    num_bytes: 326644128.3197262
    num_examples: 28194
  download_size: 645473358
  dataset_size: 2121589456.5357592
license: mit
tags:
- python
- code-style
- mixed
size_categories:
- 100K<n<1M
---
# Dataset Card for "python_codestyles-mixed1-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.
The dataset combines both
datasets [infinityofspace/python_codestyles-random-500](https://huggingface.co/datasets/infinityofspace/python_codestyles-random-500)
and [infinityofspace/python_codestyles-single-500](https://huggingface.co/datasets/infinityofspace/python_codestyles-single-500)
by randomly selecting half of the examples from each of the two datasets.
The code styles in the combined dataset differ in at least one and exactly one codestyle rule, which is called a
`mixed` 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                  |