MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / main

Function main

experiments/benchmark/evaluate_report_outputs.py:184–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182
183
184def main() -> int:
185 args = parse_args()
186 benchmark_dir = args.benchmark_dir
187 reports_path = args.reports
188 if not reports_path.is_absolute() and not reports_path.exists():
189 reports_path = benchmark_dir / reports_path
190 metrics = evaluate_reports(benchmark_dir / "data" / "episodes.jsonl", reports_path)
191 text = json.dumps(metrics, ensure_ascii=False, indent=2) + "\n"
192 if args.output:
193 args.output.parent.mkdir(parents=True, exist_ok=True)
194 args.output.write_text(text, encoding="utf-8")
195 print(text, end="")
196 return 0
197
198
199if __name__ == "__main__":

Callers 1

Calls 2

evaluate_reportsFunction · 0.85
parse_argsFunction · 0.70

Tested by

no test coverage detected