MCPcopy Index your code
hub / github.com/tirth8205/code-review-graph / write_csv

Function write_csv

code_review_graph/eval/runner.py:121–130  ·  view source on GitHub ↗

Write benchmark results to a CSV file.

(results: list[dict], path: Path)

Source from the content-addressed store, hash-verified

119
120
121def write_csv(results: list[dict], path: Path) -> None:
122 """Write benchmark results to a CSV file."""
123 if not results:
124 return
125 path.parent.mkdir(parents=True, exist_ok=True)
126 fieldnames = list(results[0].keys())
127 with open(path, "w", newline="") as f:
128 writer = csv.DictWriter(f, fieldnames=fieldnames)
129 writer.writeheader()
130 writer.writerows(results)
131
132
133def run_eval(

Callers 3

test_write_csvFunction · 0.90
test_write_csv_emptyFunction · 0.90
run_evalFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_write_csvFunction · 0.72
test_write_csv_emptyFunction · 0.72