koutch commited on
Commit
e8c87db
·
1 Parent(s): 3a21a1d

Updating repair information

Browse files
Files changed (2) hide show
  1. README.md +46 -43
  2. intro_prog.py +9 -4
README.md CHANGED
@@ -1,5 +1,44 @@
1
  ---
2
  dataset_info:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  - config_name: dublin_data
4
  features:
5
  - name: submission_id
@@ -67,15 +106,19 @@ dataset_info:
67
  dtype: string
68
  - name: annotation
69
  dtype: string
 
 
 
 
70
  splits:
71
  - name: train
72
- num_bytes: 221120
73
  num_examples: 307
74
  - name: test
75
- num_bytes: 1404632
76
  num_examples: 1698
77
  download_size: 2137031
78
- dataset_size: 1625752
79
  - config_name: singapore_repair
80
  features:
81
  - name: submission_id
@@ -98,45 +141,6 @@ dataset_info:
98
  num_examples: 18
99
  download_size: 21737
100
  dataset_size: 18979
101
- - config_name: dublin_metadata
102
- features:
103
- - name: assignment_id
104
- dtype: string
105
- - name: func_name
106
- dtype: string
107
- - name: reference_solution
108
- dtype: string
109
- - name: description
110
- dtype: string
111
- - name: test
112
- dtype: string
113
- splits:
114
- - name: train
115
- num_bytes: 18983
116
- num_examples: 36
117
- - name: test
118
- num_bytes: 17403
119
- num_examples: 35
120
- download_size: 41873
121
- dataset_size: 36386
122
- - config_name: singapore_metadata
123
- features:
124
- - name: assignment_id
125
- dtype: string
126
- - name: func_name
127
- dtype: string
128
- - name: reference_solution
129
- dtype: string
130
- - name: description
131
- dtype: string
132
- - name: test
133
- dtype: string
134
- splits:
135
- - name: train
136
- num_bytes: 5577
137
- num_examples: 5
138
- download_size: 6139
139
- dataset_size: 5577
140
  - config_name: newcaledonia_metadata
141
  features:
142
  - name: assignment_id
@@ -178,7 +182,6 @@ dataset_info:
178
  download_size: 1198518
179
  dataset_size: 932024
180
  ---
181
-
182
  # Dataset Card for intro_prog
183
 
184
  ## Dataset Description
 
1
  ---
2
  dataset_info:
3
+ - config_name: dublin_metadata
4
+ features:
5
+ - name: assignment_id
6
+ dtype: string
7
+ - name: func_name
8
+ dtype: string
9
+ - name: reference_solution
10
+ dtype: string
11
+ - name: description
12
+ dtype: string
13
+ - name: test
14
+ dtype: string
15
+ splits:
16
+ - name: train
17
+ num_bytes: 18983
18
+ num_examples: 36
19
+ - name: test
20
+ num_bytes: 17403
21
+ num_examples: 35
22
+ download_size: 41873
23
+ dataset_size: 36386
24
+ - config_name: singapore_metadata
25
+ features:
26
+ - name: assignment_id
27
+ dtype: string
28
+ - name: func_name
29
+ dtype: string
30
+ - name: reference_solution
31
+ dtype: string
32
+ - name: description
33
+ dtype: string
34
+ - name: test
35
+ dtype: string
36
+ splits:
37
+ - name: train
38
+ num_bytes: 5577
39
+ num_examples: 5
40
+ download_size: 6139
41
+ dataset_size: 5577
42
  - config_name: dublin_data
43
  features:
44
  - name: submission_id
 
106
  dtype: string
107
  - name: annotation
108
  dtype: string
109
+ - name: user
110
+ dtype: string
111
+ - name: academic_year
112
+ dtype: int32
113
  splits:
114
  - name: train
115
+ num_bytes: 234628
116
  num_examples: 307
117
  - name: test
118
+ num_bytes: 1479344
119
  num_examples: 1698
120
  download_size: 2137031
121
+ dataset_size: 1713972
122
  - config_name: singapore_repair
123
  features:
124
  - name: submission_id
 
141
  num_examples: 18
142
  download_size: 21737
143
  dataset_size: 18979
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  - config_name: newcaledonia_metadata
145
  features:
146
  - name: assignment_id
 
182
  download_size: 1198518
183
  dataset_size: 932024
184
  ---
 
185
  # Dataset Card for intro_prog
186
 
187
  ## Dataset Description
intro_prog.py CHANGED
@@ -218,10 +218,10 @@ class IntroProg(datasets.GeneratorBasedBuilder):
218
  features = main_features
219
  features["correct"] = datasets.Value(dtype="bool")
220
 
221
- if source == "dublin" and (task == "data" or task == "repair"):
222
- features["user"] = datasets.Value("string")
223
- features["academic_year"] = datasets.Value('int32')
224
- features['date']: datasets.Value('timestamp[s]')
225
 
226
  elif task == "metadata":
227
  # metadata information
@@ -236,6 +236,11 @@ class IntroProg(datasets.GeneratorBasedBuilder):
236
  elif task == "repair":
237
  features = main_features
238
  features["annotation"] = datasets.Value("string")
 
 
 
 
 
239
  elif task == "bug":
240
  features = main_features
241
  features["comments"] = datasets.Value("string")
 
218
  features = main_features
219
  features["correct"] = datasets.Value(dtype="bool")
220
 
221
+ if source == "dublin":
222
+ features["user"] = datasets.Value("string")
223
+ features["academic_year"] = datasets.Value('int32')
224
+ features['date']: datasets.Value('timestamp[s]')
225
 
226
  elif task == "metadata":
227
  # metadata information
 
236
  elif task == "repair":
237
  features = main_features
238
  features["annotation"] = datasets.Value("string")
239
+ if source == "dublin":
240
+ features["user"] = datasets.Value("string")
241
+ features["academic_year"] = datasets.Value('int32')
242
+ features['date']: datasets.Value('timestamp[s]')
243
+
244
  elif task == "bug":
245
  features = main_features
246
  features["comments"] = datasets.Value("string")