(self, code, io, testcases, check = True, fast_check = False, total_timeout = 10)
| 369 | |
| 370 | |
| 371 | def execute_code(self, code, io, testcases, check = True, fast_check = False, total_timeout = 10): |
| 372 | if len(testcases) == 0: |
| 373 | raise ValueError("No testcase to be executed.") |
| 374 | stat, testcases = untrusted_check(io, code, testcases, 0, [30 for t in testcases], check = check, fast_check = True, total_timeout = total_timeout) |
| 375 | return stat, testcases |
| 376 | |
| 377 | |
| 378 | # unbiased estimator from https://github.com/openai/human-eval |
no outgoing calls
no test coverage detected