s1ghhh commited on
Commit
5fdcbda
1 Parent(s): 7975a0a

Update humanevalpack.py

Browse files
Files changed (1) hide show
  1. humanevalpack.py +5 -9
humanevalpack.py CHANGED
@@ -47,35 +47,35 @@ class HumanEvalPack(datasets.GeneratorBasedBuilder):
47
  name="js",
48
  description="JavaScript HumanEvalPack",
49
  features=[
50
- "task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "import", "test_setup", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
51
  ]
52
  ),
53
  HumanEvalPackConfig(
54
  name="java",
55
  description="Java HumanEvalPack",
56
  features=[
57
- "task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "import", "test_setup", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
58
  ]
59
  ),
60
  HumanEvalPackConfig(
61
  name="go",
62
  description="Go HumanEvalPack",
63
  features=[
64
- "task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "import", "test_setup", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
65
  ]
66
  ),
67
  HumanEvalPackConfig(
68
  name="cpp",
69
  description="C++ HumanEvalPack",
70
  features=[
71
- "task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "import", "test_setup", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
72
  ]
73
  ),
74
  HumanEvalPackConfig(
75
  name="rust",
76
  description="Rust HumanEvalPack",
77
  features=[
78
- "task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "import", "test_setup", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
79
  ]
80
  ),
81
  ]
@@ -94,8 +94,6 @@ class HumanEvalPack(datasets.GeneratorBasedBuilder):
94
  "bug_type": datasets.Value("string"),
95
  "failure_symptoms": datasets.Value("string"),
96
  "entry_point": datasets.Value("string"),
97
- "import": datasets.Value("string"),
98
- "test_setup": datasets.Value("string"),
99
  "test": datasets.Value("string"),
100
  "example_test": datasets.Value("string"),
101
  "signature": datasets.Value("string"),
@@ -139,8 +137,6 @@ class HumanEvalPack(datasets.GeneratorBasedBuilder):
139
  "buggy_solution": row["buggy_solution"],
140
  "bug_type": row["bug_type"],
141
  "failure_symptoms": row["failure_symptoms"],
142
- "import": row.get("import", ""), # Only for Go
143
- "test_setup": row.get("test_setup", ""), # Only for Go
144
  "test": row["test"],
145
  "example_test": row["example_test"],
146
  "entry_point": row["entry_point"],
 
47
  name="js",
48
  description="JavaScript HumanEvalPack",
49
  features=[
50
+ "task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
51
  ]
52
  ),
53
  HumanEvalPackConfig(
54
  name="java",
55
  description="Java HumanEvalPack",
56
  features=[
57
+ "task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
58
  ]
59
  ),
60
  HumanEvalPackConfig(
61
  name="go",
62
  description="Go HumanEvalPack",
63
  features=[
64
+ "task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
65
  ]
66
  ),
67
  HumanEvalPackConfig(
68
  name="cpp",
69
  description="C++ HumanEvalPack",
70
  features=[
71
+ "task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
72
  ]
73
  ),
74
  HumanEvalPackConfig(
75
  name="rust",
76
  description="Rust HumanEvalPack",
77
  features=[
78
+ "task_id", "prompt", "declaration", "canonical_solution", "buggy_solution", "bug_type", "failure_symptoms", "test", "example_test", "entry_point", "signature", "docstring", "instruction"
79
  ]
80
  ),
81
  ]
 
94
  "bug_type": datasets.Value("string"),
95
  "failure_symptoms": datasets.Value("string"),
96
  "entry_point": datasets.Value("string"),
 
 
97
  "test": datasets.Value("string"),
98
  "example_test": datasets.Value("string"),
99
  "signature": datasets.Value("string"),
 
137
  "buggy_solution": row["buggy_solution"],
138
  "bug_type": row["bug_type"],
139
  "failure_symptoms": row["failure_symptoms"],
 
 
140
  "test": row["test"],
141
  "example_test": row["example_test"],
142
  "entry_point": row["entry_point"],