(path: Path)
| 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) |