MCPcopy
hub / github.com/graphql/graphql-spec / score

Function score

scripts/generate-contributor-list.mjs:298–298  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

296 // 5) Collapse duplicate people with the same display name
297 const byDisplay = new Map(); // normName -> best candidate
298 const score = (x) => (x.authorCommits > 0 ? 2 : 0) + (x.display.toLowerCase() !== x.login.toLowerCase() ? 1 : 0);
299 for (const c of candidates) {
300 const key = normalizeName(c.display);
301 if (!byDisplay.has(key)) { byDisplay.set(key, c); continue; }

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected