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

Function m

scripts/agent-eval/parse-bench-readme.mjs:107–107  ·  view source on GitHub ↗
(arr, k)

Source from the content-addressed store, hash-verified

105for (const { repo, W, WO, racedExcluded } of rows) {
106 if (!W.length || !WO.length) { console.log(`${repo.padEnd(11)} (incomplete: w=${W.length} wo=${WO.length})`); continue; }
107 const m = (arr, k) => median(arr.map(x => x[k]));
108 const wT = m(W, 'dur'), woT = m(WO, 'dur'), wTok = m(W, 'tokens'), woTok = m(WO, 'tokens');
109 const wC = m(W, 'cost'), woC = m(WO, 'cost'), wTl = m(W, 'tools'), woTl = m(WO, 'tools');
110 savings.time.push(pct(wT, woT)); savings.tokens.push(pct(wTok, woTok)); savings.cost.push(pct(wC, woC)); savings.tools.push(pct(wTl, woTl));

Callers 2

callZooExtraFunction · 0.85

Calls 1

medianFunction · 0.70

Tested by 1

callZooExtraFunction · 0.68