MCPcopy Create free account
hub / github.com/SalesforceAIResearch/perfcodegen / execute_code

Method execute_code

src/evaluate.py:371–375  ·  view source on GitHub ↗
(self, code, io, testcases, check = True, fast_check = False, total_timeout = 10)

Source from the content-addressed store, hash-verified

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

Callers 4

get_expected_outputsMethod · 0.95
fix_testcasesMethod · 0.95
verify_groundtruthMethod · 0.95
verify_predictionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected