Muennighoff
commited on
Commit
•
8f67e51
1
Parent(s):
b0d3335
Add Rust w/o bugs
Browse files- data/rust/.DS_Store +0 -0
- data/rust/data/humanevalbugs.jsonl +0 -0
- humaneval-x-bugs.py +11 -3
data/rust/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
data/rust/data/humanevalbugs.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
humaneval-x-bugs.py
CHANGED
@@ -67,7 +67,6 @@ class HumanEvalXBugs(datasets.GeneratorBasedBuilder):
|
|
67 |
"task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point"
|
68 |
]
|
69 |
),
|
70 |
-
|
71 |
HumanEvalXBugsConfig(
|
72 |
name="go",
|
73 |
description="Go HumanEvalBugs",
|
@@ -82,7 +81,6 @@ class HumanEvalXBugs(datasets.GeneratorBasedBuilder):
|
|
82 |
"task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point"
|
83 |
]
|
84 |
),
|
85 |
-
|
86 |
HumanEvalXBugsConfig(
|
87 |
name="js",
|
88 |
description="JavaScript HumanEvalBugs",
|
@@ -90,7 +88,14 @@ class HumanEvalXBugs(datasets.GeneratorBasedBuilder):
|
|
90 |
"task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point"
|
91 |
]
|
92 |
),
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
DEFAULT_CONFIG_NAME = "python"
|
95 |
|
96 |
def _info(self):
|
@@ -130,6 +135,9 @@ class HumanEvalXBugs(datasets.GeneratorBasedBuilder):
|
|
130 |
|
131 |
elif self.config.name == "js":
|
132 |
return split_generator(dl_manager, self.config.name)
|
|
|
|
|
|
|
133 |
|
134 |
def _generate_examples(self, filepath):
|
135 |
key = 0
|
|
|
67 |
"task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point"
|
68 |
]
|
69 |
),
|
|
|
70 |
HumanEvalXBugsConfig(
|
71 |
name="go",
|
72 |
description="Go HumanEvalBugs",
|
|
|
81 |
"task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point"
|
82 |
]
|
83 |
),
|
|
|
84 |
HumanEvalXBugsConfig(
|
85 |
name="js",
|
86 |
description="JavaScript HumanEvalBugs",
|
|
|
88 |
"task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point"
|
89 |
]
|
90 |
),
|
91 |
+
HumanEvalXBugsConfig(
|
92 |
+
name="rust",
|
93 |
+
description="JavaScript HumanEvalBugs",
|
94 |
+
features=[
|
95 |
+
"task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point"
|
96 |
+
]
|
97 |
+
),
|
98 |
+
]
|
99 |
DEFAULT_CONFIG_NAME = "python"
|
100 |
|
101 |
def _info(self):
|
|
|
135 |
|
136 |
elif self.config.name == "js":
|
137 |
return split_generator(dl_manager, self.config.name)
|
138 |
+
|
139 |
+
elif self.config.name == "rust":
|
140 |
+
return split_generator(dl_manager, self.config.name)
|
141 |
|
142 |
def _generate_examples(self, filepath):
|
143 |
key = 0
|