Skip to content

Commit 6762112

Browse files
committed
fix: update time limit type conflict
1 parent bcc522a commit 6762112

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bigcodebench/eval/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ def untrusted_check(
178178
min_time_limit: float = 10,
179179
gt_time_limit: float = 60
180180
) -> Tuple[str, np.ndarray]:
181-
time_limit = max(min_time_limit, gt_time_limit)
182-
timeout = max(os.getenv("BIGCODEBENCH_TIMEOUT_PER_TASK", TIMEOUT_LIMIT), time_limit) + 1
181+
min_time_limit = max(min_time_limit, gt_time_limit)
182+
timeout = max(os.getenv("BIGCODEBENCH_TIMEOUT_PER_TASK", TIMEOUT_LIMIT), min_time_limit) + 1
183183
# shared memory objects
184184
stat = Value("i", _UNKNOWN)
185185
manager = Manager()

bigcodebench/gen/util/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def trusted_check(
8787
max_stack_limit: float,
8888
min_time_limit: float = 10,
8989
):
90-
timeout = max(os.getenv("BIGCODEBENCH_TIMEOUT_PER_TASK", TIMEOUT_LIMIT), time_limit) + 1
90+
timeout = max(os.getenv("BIGCODEBENCH_TIMEOUT_PER_TASK", TIMEOUT_LIMIT), min_time_limit) + 1
9191
# shared memory objects
9292
times = Value("d", -1)
9393
manager = Manager()

0 commit comments

Comments
 (0)