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

Function judge

scripts/agent-eval/parse-run.mjs:607–616  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

605
606 const verdict = new Map(); // path -> { via, symbol }
607 const judge = (path) => {
608 if (!verdict.has(path)) {
609 if (viaPath(path)) verdict.set(path, { via: 'path' });
610 else {
611 const s = viaSymbol(path);
612 verdict.set(path, s ? { via: 'symbol', symbol: s } : { via: null });
613 }
614 }
615 return verdict.get(path);
616 };
617
618 const perCall = calls.map((c, i) => {
619 const files = c.files.map((f) => ({ ...f, ...judge(f.path) }));

Callers 1

computeAllocationFunction · 0.70

Calls 5

viaPathFunction · 0.85
viaSymbolFunction · 0.85
hasMethod · 0.80
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected