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

Method save_temp_data

src/evaluate.py:408–413  ·  view source on GitHub ↗
(self, passed_solutions, results)

Source from the content-addressed store, hash-verified

406
407
408 def save_temp_data(self, passed_solutions, results):
409 with open(self.solution_file.replace("SOLUTIONS.json", "PASSED_SOLUTIONS.json"), "w", encoding = "utf-8") as f:
410 f.write(json.dumps(passed_solutions, sort_keys=True, indent=4, separators=(',', ': ')))
411
412 with open(self.solution_file.replace("SOLUTIONS.json", "RESULTS.json"), "w", encoding = "utf-8") as f:
413 f.write(json.dumps(results, sort_keys=True, indent=4, separators=(',', ': ')))
414
415
416 def load_temp_data(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected