Commit
·
205c9b4
1
Parent(s):
7643ec9
docs
Browse files
README.md
CHANGED
|
@@ -6,9 +6,9 @@ dataset_info:
|
|
| 6 |
dtype: string
|
| 7 |
- name: original_status
|
| 8 |
dtype: string
|
| 9 |
-
- name:
|
| 10 |
dtype: string
|
| 11 |
-
- name:
|
| 12 |
dtype: string
|
| 13 |
- name: change
|
| 14 |
dtype: string
|
|
@@ -28,25 +28,25 @@ dataset_info:
|
|
| 28 |
dtype: string
|
| 29 |
splits:
|
| 30 |
- name: train
|
| 31 |
-
num_bytes:
|
| 32 |
num_examples: 4886
|
| 33 |
- name: validation
|
| 34 |
num_bytes: 3455768
|
| 35 |
num_examples: 1105
|
| 36 |
- name: test
|
| 37 |
-
num_bytes:
|
| 38 |
num_examples: 100
|
| 39 |
-
download_size:
|
| 40 |
-
dataset_size:
|
| 41 |
- config_name: C++
|
| 42 |
features:
|
| 43 |
- name: problem_id
|
| 44 |
dtype: string
|
| 45 |
- name: original_status
|
| 46 |
dtype: string
|
| 47 |
-
- name:
|
| 48 |
dtype: string
|
| 49 |
-
- name:
|
| 50 |
dtype: string
|
| 51 |
- name: change
|
| 52 |
dtype: string
|
|
@@ -66,14 +66,14 @@ dataset_info:
|
|
| 66 |
dtype: string
|
| 67 |
splits:
|
| 68 |
- name: train
|
| 69 |
-
num_bytes:
|
| 70 |
-
num_examples:
|
| 71 |
- name: validation
|
| 72 |
-
num_bytes:
|
| 73 |
-
num_examples:
|
| 74 |
- name: test
|
| 75 |
-
num_bytes:
|
| 76 |
-
num_examples:
|
| 77 |
-
download_size:
|
| 78 |
dataset_size: 344460074
|
| 79 |
---
|
|
|
|
| 6 |
dtype: string
|
| 7 |
- name: original_status
|
| 8 |
dtype: string
|
| 9 |
+
- name: fail
|
| 10 |
dtype: string
|
| 11 |
+
- name: pass
|
| 12 |
dtype: string
|
| 13 |
- name: change
|
| 14 |
dtype: string
|
|
|
|
| 28 |
dtype: string
|
| 29 |
splits:
|
| 30 |
- name: train
|
| 31 |
+
num_bytes: 16885403
|
| 32 |
num_examples: 4886
|
| 33 |
- name: validation
|
| 34 |
num_bytes: 3455768
|
| 35 |
num_examples: 1105
|
| 36 |
- name: test
|
| 37 |
+
num_bytes: 197073
|
| 38 |
num_examples: 100
|
| 39 |
+
download_size: 22246827
|
| 40 |
+
dataset_size: 20538244
|
| 41 |
- config_name: C++
|
| 42 |
features:
|
| 43 |
- name: problem_id
|
| 44 |
dtype: string
|
| 45 |
- name: original_status
|
| 46 |
dtype: string
|
| 47 |
+
- name: fail
|
| 48 |
dtype: string
|
| 49 |
+
- name: pass
|
| 50 |
dtype: string
|
| 51 |
- name: change
|
| 52 |
dtype: string
|
|
|
|
| 66 |
dtype: string
|
| 67 |
splits:
|
| 68 |
- name: train
|
| 69 |
+
num_bytes: 236876513
|
| 70 |
+
num_examples: 39166
|
| 71 |
- name: validation
|
| 72 |
+
num_bytes: 104624152
|
| 73 |
+
num_examples: 19070
|
| 74 |
- name: test
|
| 75 |
+
num_bytes: 2959409
|
| 76 |
+
num_examples: 859
|
| 77 |
+
download_size: 229293035
|
| 78 |
dataset_size: 344460074
|
| 79 |
---
|
bugnet.py
CHANGED
|
@@ -34,7 +34,7 @@ def _mk_urls(language):
|
|
| 34 |
class Bugnet(datasets.GeneratorBasedBuilder):
|
| 35 |
"""TODO: Short description of my dataset."""
|
| 36 |
|
| 37 |
-
VERSION = datasets.Version("
|
| 38 |
|
| 39 |
BUILDER_CONFIGS = [
|
| 40 |
datasets.BuilderConfig(name="Python", version=VERSION, description="This part of bugnet contains Python bugs"),
|
|
@@ -48,8 +48,8 @@ class Bugnet(datasets.GeneratorBasedBuilder):
|
|
| 48 |
{
|
| 49 |
"problem_id": datasets.Value("string"),
|
| 50 |
"original_status": datasets.Value("string"),
|
| 51 |
-
"
|
| 52 |
-
"
|
| 53 |
"change": datasets.Value("string"),
|
| 54 |
"i1": datasets.Value("uint32"),
|
| 55 |
"i2": datasets.Value("uint32"),
|
|
@@ -113,8 +113,8 @@ class Bugnet(datasets.GeneratorBasedBuilder):
|
|
| 113 |
yield key, {
|
| 114 |
"problem_id": data["problem_id"],
|
| 115 |
"original_status": data["original_status"],
|
| 116 |
-
"
|
| 117 |
-
"
|
| 118 |
"change": data["change"],
|
| 119 |
"i1": data["i1"],
|
| 120 |
"i2": data["i2"],
|
|
|
|
| 34 |
class Bugnet(datasets.GeneratorBasedBuilder):
|
| 35 |
"""TODO: Short description of my dataset."""
|
| 36 |
|
| 37 |
+
VERSION = datasets.Version("2.0.0")
|
| 38 |
|
| 39 |
BUILDER_CONFIGS = [
|
| 40 |
datasets.BuilderConfig(name="Python", version=VERSION, description="This part of bugnet contains Python bugs"),
|
|
|
|
| 48 |
{
|
| 49 |
"problem_id": datasets.Value("string"),
|
| 50 |
"original_status": datasets.Value("string"),
|
| 51 |
+
"fail": datasets.Value("string"),
|
| 52 |
+
"pass": datasets.Value("string"),
|
| 53 |
"change": datasets.Value("string"),
|
| 54 |
"i1": datasets.Value("uint32"),
|
| 55 |
"i2": datasets.Value("uint32"),
|
|
|
|
| 113 |
yield key, {
|
| 114 |
"problem_id": data["problem_id"],
|
| 115 |
"original_status": data["original_status"],
|
| 116 |
+
"fail": data["fail"],
|
| 117 |
+
"pass": data["pass"],
|
| 118 |
"change": data["change"],
|
| 119 |
"i1": data["i1"],
|
| 120 |
"i2": data["i2"],
|