MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / load_result

Function load_result

experiments/run_humaneval.py:33–39  ·  view source on GitHub ↗
(result_file: Path)

Source from the content-addressed store, hash-verified

31
32
33def load_result(result_file: Path) -> list:
34 if not result_file.exists():
35 os.makedirs(result_file.parent, exist_ok=True)
36 with open(result_file, "w", encoding="utf-8") as file:
37 json.dump([], file)
38 with open(result_file, "r", encoding="utf-8") as file:
39 return json.load(file)
40
41
42def dataloader(data_list, batch_size, i_batch):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected