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

Function postprocess_completions

eval/utils/python_interpreter.py:182–195  ·  view source on GitHub ↗
(completion_list)

Source from the content-addressed store, hash-verified

180
181
182def postprocess_completions(completion_list):
183 executor = PythonREPL()
184
185 solution_list = []
186 # for completion in tqdm(completion_list, total=len(completion_list), desc="Executing"):
187 for completion in completion_list:
188 # executor.reset()
189 solution_list.append(postprocess_completion(executor, completion))
190 # executor.reset()
191 del executor
192 # ipython = get_ipython()
193 # if ipython:
194 # ipython.exit()
195 return solution_list
196
197
198

Callers

nothing calls this directly

Calls 2

PythonREPLClass · 0.85
postprocess_completionFunction · 0.85

Tested by

no test coverage detected