Skip to content

Commit 2591322

Browse files
committed
uncomment
1 parent 69d2e42 commit 2591322

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

bigcodebench/data/bigcodebench.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ def _ready_bigcodebench_path(subset="full", version="default") -> str:
2727

2828
extra = "-" + subset if subset else ""
2929

30-
# try:
31-
dataset = load_dataset(BIGCODEBENCH_HF+extra, split=BIGCODEBENCH_VERSION)
32-
make_cache(url, dataset, path)
33-
# except:
34-
# if os.path.exists(path):
35-
# os.remove(path)
36-
# make_cache(url, None, path, gh=True)
30+
try:
31+
dataset = load_dataset(BIGCODEBENCH_HF+extra, split=BIGCODEBENCH_VERSION)
32+
make_cache(url, dataset, path)
33+
except:
34+
if os.path.exists(path):
35+
os.remove(path)
36+
make_cache(url, None, path, gh=True)
3737

3838
return path
3939

0 commit comments

Comments
 (0)