MCPcopy Create free account
hub / github.com/apache/devlake / collect

Method collect

backend/python/pydevlake/tests/stream_test.py:39–42  ·  view source on GitHub ↗
(self, state, context)

Source from the content-addressed store, hash-verified

37 domain_types = [DomainType.CROSS]
38
39 def collect(self, state, context):
40 for i, each in enumerate(context.connection.raw_data):
41 count = state.get("count", 0)
42 yield each, {"count": count + i}
43
44 def extract(self, raw) -> ToolModel:
45 return DummyToolModel(

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected