Datasets:

Languages:
code
ArXiv:
Tags:
code
License:
Muennighoff commited on
Commit
f553a8c
1 Parent(s): be108c7

Update humaneval-x-bugs.py

Browse files
Files changed (1) hide show
  1. humaneval-x-bugs.py +7 -5
humaneval-x-bugs.py CHANGED
@@ -57,14 +57,14 @@ class HumanEvalXBugs(datasets.GeneratorBasedBuilder):
57
  name="python",
58
  description="Python HumanEvalBugs",
59
  features=[
60
- "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "example_test", "bug_type", "failure_symptoms", "entry_point"
61
  ]
62
  ),
63
  HumanEvalXBugsConfig(
64
  name="cpp",
65
  description="C++ HumanEvalBugs",
66
  features=[
67
- "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "example_test", "bug_type", "failure_symptoms", "entry_point"
68
  ]
69
  ),
70
 
@@ -72,14 +72,14 @@ class HumanEvalXBugs(datasets.GeneratorBasedBuilder):
72
  name="go",
73
  description="Go HumanEvalBugs",
74
  features=[
75
- "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "example_test", "bug_type", "failure_symptoms", "entry_point"
76
  ]
77
  ),
78
  HumanEvalXBugsConfig(
79
  name="java",
80
  description="Java HumanEvalBugs",
81
  features=[
82
- "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "example_test", "bug_type", "failure_symptoms", "entry_point"
83
  ]
84
  ),
85
 
@@ -87,7 +87,7 @@ class HumanEvalXBugs(datasets.GeneratorBasedBuilder):
87
  name="js",
88
  description="JavaScript HumanEvalBugs",
89
  features=[
90
- "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "example_test", "bug_type", "failure_symptoms", "entry_point"
91
  ]
92
  ),
93
  ]
@@ -108,6 +108,7 @@ class HumanEvalXBugs(datasets.GeneratorBasedBuilder):
108
  "failure_symptoms": datasets.Value("string"),
109
  "entry_point": datasets.Value("string"),
110
  "test": datasets.Value("string"),
 
111
  "example_test": datasets.Value("string"),
112
  }
113
  ),
@@ -147,6 +148,7 @@ class HumanEvalXBugs(datasets.GeneratorBasedBuilder):
147
  "failure_symptoms": row["failure_symptoms"],
148
  "entry_point": row["entry_point"],
149
  "test": row["test"],
 
150
  "example_test": row["example_test"],
151
  }
152
  key += 1
 
57
  name="python",
58
  description="Python HumanEvalBugs",
59
  features=[
60
+ "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point"
61
  ]
62
  ),
63
  HumanEvalXBugsConfig(
64
  name="cpp",
65
  description="C++ HumanEvalBugs",
66
  features=[
67
+ "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point"
68
  ]
69
  ),
70
 
 
72
  name="go",
73
  description="Go HumanEvalBugs",
74
  features=[
75
+ "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point"
76
  ]
77
  ),
78
  HumanEvalXBugsConfig(
79
  name="java",
80
  description="Java HumanEvalBugs",
81
  features=[
82
+ "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point"
83
  ]
84
  ),
85
 
 
87
  name="js",
88
  description="JavaScript HumanEvalBugs",
89
  features=[
90
+ "task_id", "prompt", "import", "declaration", "buggy_solution", "canonical_solution", "test", "test_setup", "example_test", "bug_type", "failure_symptoms", "entry_point"
91
  ]
92
  ),
93
  ]
 
108
  "failure_symptoms": datasets.Value("string"),
109
  "entry_point": datasets.Value("string"),
110
  "test": datasets.Value("string"),
111
+ "test_setup": datasets.Value("string"),
112
  "example_test": datasets.Value("string"),
113
  }
114
  ),
 
148
  "failure_symptoms": row["failure_symptoms"],
149
  "entry_point": row["entry_point"],
150
  "test": row["test"],
151
+ "test_setup": row.get("test_setup", ""), # Only for Go
152
  "example_test": row["example_test"],
153
  }
154
  key += 1