MCPcopy Create free account
hub / github.com/PRIME-RL/PRIME / exec_helper

Function exec_helper

eval/Coding/mbpp/evaluate_mbpp.py:98–100  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

96 signal.setitimer(signal.ITIMER_REAL, 0)
97
98def exec_helper(code):
99 with time_limit(3):
100 exec(compile(code, filename="mbpp", mode='exec'), globals())
101
102def evaluate(dataset):
103 correct = 0

Callers 1

evaluateFunction · 0.85

Calls 1

time_limitFunction · 0.70

Tested by

no test coverage detected