MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _wc

Function _wc

graphify/detect.py:1041–1045  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

1039 total_words = 0
1040
1041 def _wc(path: Path) -> int:
1042 # Cache word counts against each file's stat signature so unchanged
1043 # PDFs/docx aren't re-parsed on every run just to size the corpus (#1656).
1044 from graphify import cache as _cache
1045 return _cache.cached_word_count(path, root, count_words)
1046
1047 skipped_sensitive: list[str] = []
1048 ignore_patterns = _load_graphifyignore(root)

Callers 1

detectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected