Skip to content

Commit b0676a7

Browse files
authored
Merge pull request #38 from hvaara/bcb16-period-fix
fix (data): remove extra period in task BigCodeBench/16
2 parents aa74075 + 4799575 commit b0676a7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/fix_v0110.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
BIGCODEBENCH_NEW_VERSION = "v0.1.2"
1212

1313
def map_ds(sample):
14+
if sample["task_id"] in ["BigCodeBench/16"]:
15+
for k in sample.keys():
16+
sample[k] = sample[k].replace(
17+
"No logs found to backup.", "No logs found to backup"
18+
)
19+
1420
if sample["task_id"] in ["BigCodeBench/37"]:
1521
for k in sample.keys():
1622
if "prompt" in k:
@@ -28,7 +34,7 @@ def map_ds(sample):
2834
hard_ds_dict = load_dataset(BIGCODEBENCH_HARD_HF)
2935
ds = ds_dict[BIGCODEBENCH_VERSION]
3036
hard_ds = hard_ds_dict[BIGCODEBENCH_VERSION]
31-
function_id = [37]
37+
function_id = [16, 37]
3238

3339
new_ds = ds.map(map_ds)
3440
new_ds.to_json("BigCodeBench.jsonl")

0 commit comments

Comments
 (0)