MCPcopy Create free account
hub / github.com/Niko1221/Strata / method

Function method

tools/test_prefetch_gate.py:16–23  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

14
15
16def method(text):
17 start = text.index('void FileExpertSource::gate_capacity() {')
18 depth = 0
19 for end in range(text.index('{', start), len(text)):
20 depth += (text[end] == '{') - (text[end] == '}')
21 if depth == 0:
22 return text[start:end + 1]
23 raise ValueError('Unclosed gate method')
24
25
26SCAFFOLD = r'''

Callers 1

mainFunction · 0.85

Calls 2

rangeFunction · 0.85
indexMethod · 0.45

Tested by

no test coverage detected