We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2591322 commit 9c8ac7aCopy full SHA for 9c8ac7a
bigcodebench/generate.py
@@ -41,9 +41,8 @@ def codegen(
41
dirname = os.path.dirname(save_path)
42
if not os.path.exists(dirname) and dirname != "":
43
os.makedirs(dirname)
44
- for task_id, task in p.track(dataset.items()):
+ for id_num, (task_id, task) in enumerate(p.track(dataset.items())):
45
if id_range is not None:
46
- id_num = int(task_id.split("/")[1])
47
low, high = id_range
48
if id_num < low or id_num >= high:
49
p.console.print(f"Skipping {task_id} as it is not in {id_range}")
0 commit comments