MCPcopy
hub / github.com/MinishLab/semble / BucketStats

Class BucketStats

src/semble/stats.py:35–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34@dataclass
35class BucketStats:
36 calls: int = 0
37 snippet_chars: int = 0
38 file_chars: int = 0
39 saved_chars: int = 0
40
41 def add(self, snippet_chars: int, file_chars: int) -> None:
42 """Update stats with a call and its character counts."""
43 self.calls += 1
44 self.snippet_chars += snippet_chars
45 self.file_chars += file_chars
46 self.saved_chars += max(0, file_chars - snippet_chars)
47
48
49@dataclass

Callers 1

build_savings_summaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected