MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / normalize_line

Function normalize_line

scripts/compare_backend_snapshots.py:27–31  ·  view source on GitHub ↗
(line: str, lowercase: bool)

Source from the content-addressed store, hash-verified

25
26
27def normalize_line(line: str, lowercase: bool) -> str:
28 value = normalize_whitespace(line)
29 if lowercase:
30 value = value.lower()
31 return value
32
33
34def load_text_lines(path: Path, lowercase: bool) -> Tuple[List[str], Counter]:

Callers 1

load_text_linesFunction · 0.85

Calls 1

normalize_whitespaceFunction · 0.85

Tested by

no test coverage detected