Skip to content

Commit 32f5382

Browse files
committed
fix: remove commented lines
1 parent aa10cd1 commit 32f5382

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

analysis/bcb_subset.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ def read_task_perf(tids, task="complete"):
7474
continue
7575
task_perf = {f"BigCodeBench/{task_id}": 0 for task_id in range(1140)}
7676
model = model.replace("/", "--")
77-
# if info["link"].startswith("https://huggingface.co/"):
78-
# model = info["link"].split("https://huggingface.co/")[-1].replace("/", "--")
7977
try:
8078
if info["prompted"] and not info["direct_complete"]:
8179
files = glob(f"results/{model}--bigcodebench-{task}*-0-1-sanitized-calibrated_eval_results.json")

analysis/get_results.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ def get_results(tids):
5252
hf_model = ""
5353
files = glob(f"results/{model}--bigcodebench-*.json")
5454
assert files, f"No files found for results/{model}--bigcodebench-*.json"
55-
# if "https://huggingface.co/" in info["link"]:
56-
# hf_model = info["link"].split("https://huggingface.co/")[-1]
57-
# model = hf_model.replace("/", "--")
5855
for file in files:
5956
_, suffix = os.path.basename(file).split("--bigcodebench-")
6057
status = []
@@ -153,8 +150,6 @@ def read_task_perf(tids, task="complete"):
153150

154151
task_perf = dict()
155152
model = model.replace("/", "--")
156-
# if info["link"].startswith("https://huggingface.co/"):
157-
# model = info["link"].split("https://huggingface.co/")[-1].replace("/", "--")
158153
try:
159154
if info["prompted"] and not info["direct_complete"]:
160155
files = glob(f"results/{model}--bigcodebench-{task}*-0-1-sanitized-calibrated_eval_results.json")

0 commit comments

Comments
 (0)