Adding correctness to data configurations
Browse files- README.md +9 -15
- intro_prog.py +3 -0
README.md
CHANGED
@@ -14,19 +14,21 @@ dataset_info:
|
|
14 |
dtype: string
|
15 |
- name: test
|
16 |
dtype: string
|
|
|
|
|
17 |
- name: user
|
18 |
dtype: string
|
19 |
- name: academic_year
|
20 |
dtype: int32
|
21 |
splits:
|
22 |
- name: train
|
23 |
-
num_bytes:
|
24 |
num_examples: 6117
|
25 |
- name: test
|
26 |
-
num_bytes:
|
27 |
num_examples: 9885
|
28 |
download_size: 12774289
|
29 |
-
dataset_size:
|
30 |
- config_name: singapore_data
|
31 |
features:
|
32 |
- name: submission_id
|
@@ -41,12 +43,14 @@ dataset_info:
|
|
41 |
dtype: string
|
42 |
- name: test
|
43 |
dtype: string
|
|
|
|
|
44 |
splits:
|
45 |
- name: train
|
46 |
-
num_bytes:
|
47 |
num_examples: 4394
|
48 |
download_size: 5705043
|
49 |
-
dataset_size:
|
50 |
- config_name: dublin_repair
|
51 |
features:
|
52 |
- name: submission_id
|
@@ -133,16 +137,6 @@ dataset_info:
|
|
133 |
num_examples: 5
|
134 |
download_size: 6139
|
135 |
dataset_size: 5577
|
136 |
-
license: cc
|
137 |
-
task_categories:
|
138 |
-
- text-generation
|
139 |
-
language:
|
140 |
-
- en
|
141 |
-
tags:
|
142 |
-
- code
|
143 |
-
pretty_name: inpro
|
144 |
-
size_categories:
|
145 |
-
- 10K<n<100K
|
146 |
---
|
147 |
|
148 |
# Dataset Card for intro_prog
|
|
|
14 |
dtype: string
|
15 |
- name: test
|
16 |
dtype: string
|
17 |
+
- name: correct
|
18 |
+
dtype: bool
|
19 |
- name: user
|
20 |
dtype: string
|
21 |
- name: academic_year
|
22 |
dtype: int32
|
23 |
splits:
|
24 |
- name: train
|
25 |
+
num_bytes: 3659774
|
26 |
num_examples: 6117
|
27 |
- name: test
|
28 |
+
num_bytes: 6443452
|
29 |
num_examples: 9885
|
30 |
download_size: 12774289
|
31 |
+
dataset_size: 10103226
|
32 |
- config_name: singapore_data
|
33 |
features:
|
34 |
- name: submission_id
|
|
|
43 |
dtype: string
|
44 |
- name: test
|
45 |
dtype: string
|
46 |
+
- name: correct
|
47 |
+
dtype: bool
|
48 |
splits:
|
49 |
- name: train
|
50 |
+
num_bytes: 5098928
|
51 |
num_examples: 4394
|
52 |
download_size: 5705043
|
53 |
+
dataset_size: 5098928
|
54 |
- config_name: dublin_repair
|
55 |
features:
|
56 |
- name: submission_id
|
|
|
137 |
num_examples: 5
|
138 |
download_size: 6139
|
139 |
dataset_size: 5577
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
---
|
141 |
|
142 |
# Dataset Card for intro_prog
|
intro_prog.py
CHANGED
@@ -167,10 +167,13 @@ class IntroProg(datasets.GeneratorBasedBuilder):
|
|
167 |
"func_name": datasets.Value("string"),
|
168 |
"description": datasets.Value(dtype='string'),
|
169 |
"test": datasets.Value(dtype='string'),
|
|
|
170 |
})
|
171 |
|
172 |
if self.config.name.split("_")[1] == "data":
|
173 |
features = main_features
|
|
|
|
|
174 |
if self.config.name.split("_")[0] == "dublin":
|
175 |
features["user"] = datasets.Value("string")
|
176 |
features["academic_year"] = datasets.Value('int32')
|
|
|
167 |
"func_name": datasets.Value("string"),
|
168 |
"description": datasets.Value(dtype='string'),
|
169 |
"test": datasets.Value(dtype='string'),
|
170 |
+
|
171 |
})
|
172 |
|
173 |
if self.config.name.split("_")[1] == "data":
|
174 |
features = main_features
|
175 |
+
features["correct"] = datasets.Value(dtype="bool")
|
176 |
+
|
177 |
if self.config.name.split("_")[0] == "dublin":
|
178 |
features["user"] = datasets.Value("string")
|
179 |
features["academic_year"] = datasets.Value('int32')
|