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

Method __init__

codeclash/analysis/stats/per_model.py:50–57  ·  view source on GitHub ↗
(self, traj_path: str)

Source from the content-addressed store, hash-verified

48
49class TrajectoryAnalyzer:
50 def __init__(self, traj_path: str):
51 try:
52 with open(traj_path) as f:
53 self.traj = json.load(f)
54 self.messages = self.traj.get("messages", [])
55 except (json.JSONDecodeError, FileNotFoundError, KeyError):
56 self.traj = {}
57 self.messages = []
58
59 @property
60 def steps(self) -> int:

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected