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

Method __init__

eval/Math/Qwen25-Math/evaluation/python_executor.py:24–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 LOCAL_DICT = None
23 HEADERS = []
24 def __init__(self):
25 self._global_vars = copy.copy(self.GLOBAL_DICT)
26 self._local_vars = copy.copy(self.LOCAL_DICT) if self.LOCAL_DICT else None
27
28 for c in self.HEADERS:
29 self.exec_code(c)
30
31 def exec_code(self, code_piece: str) -> None:
32 if regex.search(r'(\s|^)?input\(', code_piece):

Callers

nothing calls this directly

Calls 1

exec_codeMethod · 0.95

Tested by

no test coverage detected