MCPcopy Create free account
hub / github.com/FlashSampling/FlashSampling / _find_first

Function _find_first

benchmarking/insert_proton_records.py:181–185  ·  view source on GitHub ↗
(lines: list[str], pattern: str)

Source from the content-addressed store, hash-verified

179
180
181def _find_first(lines: list[str], pattern: str) -> int | None:
182 for i, line in enumerate(lines):
183 if pattern in line:
184 return i
185 return None
186
187
188def _find_first_after(lines: list[str], pattern: str, after: int | None) -> int | None:

Callers 1

_find_insertion_pointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected