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

Method add

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

Update stats with a call and its character counts.

(self, snippet_chars: int, file_chars: int)

Source from the content-addressed store, hash-verified

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 3

build_savings_summaryFunction · 0.80
_keywordsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected