MCPcopy Index your code
hub / github.com/bugy/script-server / next_id

Method next_id

src/execution/id_generator.py:21–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19 return max_id + 1
20
21 def next_id(self):
22 with self.lock:
23 id = self._next_id
24 self._next_id += 1
25
26 return str(id)

Callers 6

test_next_idMethod · 0.95
test_2_next_idsMethod · 0.95
test_3_next_idsMethod · 0.95
start_scriptMethod · 0.45

Calls

no outgoing calls

Tested by 5

test_next_idMethod · 0.76
test_2_next_idsMethod · 0.76
test_3_next_idsMethod · 0.76