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

Function magn

scripts/agent-eval/parse-bench-readme.mjs:155–155  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

153// win and inverts the headline. Say which way it went, in words.
154const dir = (v) => (v < 0 ? 'HIGHER' : 'lower');
155const magn = (v) => Math.abs(v);
156console.log(
157 `\nAVERAGE: retrieval residual ${magn(avg(occ.resid))}% ${dir(avg(occ.resid))} with codegraph` +
158 ` · share-of-context ${magn(avg(occ.shareCtx))}% ${dir(avg(occ.shareCtx))}`

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected