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

Class _Lines

scripts/theme_gate.py:112–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111
112class _Lines:
113 def __init__(self, text: str) -> None:
114 self.starts = [0] + [m.end() for m in re.finditer("\n", text)]
115
116 def of(self, offset: int) -> int:
117 return bisect.bisect_right(self.starts, offset)
118
119
120def _liquid_files(root: Path) -> list[Path]:

Callers 7

cases_aFunction · 0.85
css_selectorsFunction · 0.85
cases_bFunction · 0.85
cases_cFunction · 0.85
cases_dFunction · 0.85
cases_fFunction · 0.85
cases_eFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected