infinityofspace
commited on
Commit
•
f4b5f62
1
Parent(s):
cbf1309
Update README.md
Browse files
README.md
CHANGED
@@ -27,7 +27,36 @@ dataset_info:
|
|
27 |
num_examples: 28193
|
28 |
download_size: 320183832
|
29 |
dataset_size: 2108306385
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
---
|
31 |
# Dataset Card for "python_codestyles-single-500"
|
32 |
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
num_examples: 28193
|
28 |
download_size: 320183832
|
29 |
dataset_size: 2108306385
|
30 |
+
license: mit
|
31 |
+
tags:
|
32 |
+
- python
|
33 |
+
- code-style
|
34 |
+
- single
|
35 |
+
size_categories:
|
36 |
+
- 100K<n<1M
|
37 |
---
|
38 |
# Dataset Card for "python_codestyles-single-500"
|
39 |
|
40 |
+
This dataset contains negative and positive examples with python code of compliance with a code style. A positive
|
41 |
+
example represents compliance with the code style (label is 1). Each example is composed of two components, the first
|
42 |
+
component consists of a code that either conforms to the code style or violates it and the second component
|
43 |
+
corresponding to an example code that already conforms to a code style. In total, the dataset contains `500` completely
|
44 |
+
different code styles. The code styles differ in exactly one codestyle rule, which is called a `single` codestyle
|
45 |
+
dataset variant. The dataset consists of a training and test group, with none of the code styles overlapping between
|
46 |
+
groups. In addition, both groups contain completely different underlying codes.
|
47 |
+
|
48 |
+
The 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 |
+
|
58 |
+
You can find the corresponding code styles of the examples in the file [additional_data.json](additional_data.json).
|
59 |
+
The code styles in the file are split by training and test group and the index corresponds to the class for the
|
60 |
+
columns `code_codestyle` and `style_context_codestyle` in the dataset.
|
61 |
+
|
62 |
+
There are 182.184 samples in total and 91.084 positive and 91.100 negative samples.
|