MCPcopy Index your code
hub / github.com/algorithmicsuperintelligence/optillm / save_result

Function save_result

scripts/eval_aime_benchmark.py:462–467  ·  view source on GitHub ↗

Save a single result to the results file.

(filename: str, result: Dict)

Source from the content-addressed store, hash-verified

460 return []
461
462def save_result(filename: str, result: Dict):
463 """Save a single result to the results file."""
464 results = load_existing_results(filename)
465 results.append(result)
466 with open(filename, 'w') as f:
467 json.dump(results, f, indent=2)
468
469def get_last_processed_index(results: List[Dict]) -> int:
470 """Get the index of the last processed problem."""

Callers 1

mainFunction · 0.70

Calls 1

load_existing_resultsFunction · 0.70

Tested by

no test coverage detected