MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / correctCount

Function correctCount

benchmarks/report.mjs:332–340  ·  view source on GitHub ↗
(tk)

Source from the content-addressed store, hash-verified

330const improvements = diffs.filter(({ a, b }) => a.verdict.v === 'correct' && b.verdict.v !== 'correct');
331const regressions = diffs.filter(({ a, b }) => a.verdict.v !== 'correct' && b.verdict.v === 'correct');
332function correctCount(tk) {
333 let ok = 0, tot = 0;
334 for (const c of REPORTED) {
335 if (!CATS.find((x) => x.key === c.category).corr.includes(tk)) continue;
336 tot++;
337 if (matrix[c.id][tk].verdict.v === 'correct') ok++;
338 }
339 return { ok, tot };
340}
341
342let md = '';
343const w = (s = '') => { md += s + '\n'; };

Callers 1

report.mjsFile · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected