MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / main

Function main

codeclash/analysis/viz/line_chart_per_round_changes.py:159–173  ·  view source on GitHub ↗
(log_dir: Path)

Source from the content-addressed store, hash-verified

157
158
159def main(log_dir: Path):
160 if DATA_CACHE.exists():
161 try:
162 with open(DATA_CACHE) as f:
163 model_to_round_lines = json.load(f)
164 except Exception:
165 model_to_round_lines = build_data(log_dir)
166 with open(DATA_CACHE, "w") as f:
167 json.dump(model_to_round_lines, f, indent=2)
168 else:
169 model_to_round_lines = build_data(log_dir)
170 with open(DATA_CACHE, "w") as f:
171 json.dump(model_to_round_lines, f, indent=2)
172
173 plot_averages(model_to_round_lines, OUTPUT_PNG)
174
175
176if __name__ == "__main__":

Callers 1

Calls 2

build_dataFunction · 0.70
plot_averagesFunction · 0.70

Tested by

no test coverage detected