Skip to content

Commit

Permalink
Target v0.10.for task BigCodeBench/16
Browse files Browse the repository at this point in the history
  • Loading branch information
hvaara committed Sep 3, 2024
1 parent db8200e commit 9c53f8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 60 deletions.
59 changes: 0 additions & 59 deletions tools/fix_020.py

This file was deleted.

8 changes: 7 additions & 1 deletion tools/fix_v0110.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
BIGCODEBENCH_NEW_VERSION = "v0.1.2"

def map_ds(sample):
if sample["task_id"] in ["BigCodeBench/16"]:
for k in sample.keys():
sample[k] = sample[k].replace(
"No logs found to backup.", "No logs found to backup"
)

if sample["task_id"] in ["BigCodeBench/37"]:
for k in sample.keys():
if "prompt" in k:
Expand All @@ -28,7 +34,7 @@ def map_ds(sample):
hard_ds_dict = load_dataset(BIGCODEBENCH_HARD_HF)
ds = ds_dict[BIGCODEBENCH_VERSION]
hard_ds = hard_ds_dict[BIGCODEBENCH_VERSION]
function_id = [37]
function_id = [16, 37]

new_ds = ds.map(map_ds)
new_ds.to_json("BigCodeBench.jsonl")
Expand Down

0 comments on commit 9c53f8d

Please sign in to comment.