MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _line_count

Function _line_count

openkb/skill/workspace.py:133–136  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

131
132
133def _line_count(path: Path) -> int:
134 if not path.is_file():
135 return 0
136 return len(path.read_text(encoding="utf-8", errors="replace").splitlines())
137
138
139def write_diff(prev: Path, curr: Path, diff_path: Path) -> None:

Callers 1

write_diffFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected