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

Function _find_last

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

Source from the content-addressed store, hash-verified

194
195
196def _find_last(lines: list[str], pattern: str) -> int | None:
197 result = None
198 for i, line in enumerate(lines):
199 if pattern in line:
200 result = i
201 return result
202
203
204def _validate_insertions(insertions: list[tuple[int, str]], filepath: str) -> None:

Callers 2

_find_insertion_pointsFunction · 0.85
_find_reduce_closeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected