MCPcopy Create free account
hub / github.com/Alpha-VLLM/LLaMA2-Accessory / __init__

Method __init__

accessory/eval_mm/utils/math_utils.py:24–28  ·  view source on GitHub ↗
(self, code, timeout, use_process: bool)

Source from the content-addressed store, hash-verified

22
23class CodeExecutor:
24 def __init__(self, code, timeout, use_process: bool):
25 self.code = format_code(code)
26 self.timeout = timeout
27 self.error = ''
28 self.use_process = use_process
29
30 def execute_code(self, return_val):
31 try:

Callers

nothing calls this directly

Calls 1

format_codeFunction · 0.85

Tested by

no test coverage detected