MCPcopy Create free account
hub / github.com/idank/explainshell / collect

Function collect

tools/scan_bot_traffic.py:219–226  ·  view source on GitHub ↗
(token: str, n: int, unit: str)

Source from the content-addressed store, hash-verified

217
218
219def collect(token: str, n: int, unit: str) -> dict[str, list[dict]]:
220 source = _source(n, unit)
221 out: dict[str, list[dict]] = {}
222 for name, sql in _qs(source).items():
223 log.info("querying %s ...", name)
224 out[name] = _query(token, sql)
225 log.info(" %s -> %d rows", name, len(out[name]))
226 return out
227
228
229# --- Agent prompt -----------------------------------------------------------

Callers 1

mainFunction · 0.85

Calls 3

_sourceFunction · 0.85
_qsFunction · 0.85
_queryFunction · 0.85

Tested by

no test coverage detected