MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / byKind

Function byKind

scripts/agent-eval/diff-index-drift.mjs:54–58  ·  view source on GitHub ↗
(rows)

Source from the content-addressed store, hash-verified

52const divergent = missing.length + stale.length;
53
54const byKind = (rows) => {
55 const m = new Map();
56 for (const r of rows) m.set(r.kind, (m.get(r.kind) ?? 0) + 1);
57 return [...m].sort((a, b) => b[1] - a[1]).map(([k, v]) => `${k}=${v}`).join(', ') || '(none)';
58};
59
60const pct = (n, d) => (d ? ((n / d) * 100).toFixed(1) : '0.0');
61

Callers 1

Calls 4

mapMethod · 0.80
getMethod · 0.65
setMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected