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

Function alloc

scripts/agent-eval/parse-run.mjs:1239–1244  ·  view source on GitHub ↗
(files, answer)

Source from the content-addressed store, hash-verified

1237 // The response shape that matters here: a per-file section whose header lists
1238 // `name(kind)`, and a body big enough that the shares are readable.
1239 const alloc = (files, answer) => computeAllocation(
1240 [files.map(([p, syms, size]) =>
1241 `**\`${p}\`** — ${syms}\n\n\`\`\`js\n${'x'.repeat(size)}\n\`\`\`\n`).join('\n')
1242 + '\n> Treat the code above as already read.\n'],
1243 answer,
1244 );
1245 const round = (f) => Math.round(f * 1000) / 10;
1246
1247 // The #1500 shape: one file answers, two are noise. The answer names it by

Callers 1

selftestFunction · 0.85

Calls 2

computeAllocationFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected