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

Function report

scripts/kernel-parity.mjs:185–190  ·  view source on GitHub ↗
(category, sample)

Source from the content-addressed store, hash-verified

183// --- run ----------------------------------------------------------------------
184const buckets = new Map(); // category -> {count, samples[]}
185function report(category, sample) {
186 let b = buckets.get(category);
187 if (!b) buckets.set(category, (b = { count: 0, samples: [] }));
188 b.count++;
189 if (b.samples.length < maxSamples) b.samples.push(sample);
190}
191
192let filesWithDiffs = 0;
193let filesOk = 0;

Callers 1

kernel-parity.mjsFile · 0.85

Calls 3

pushMethod · 0.80
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected