MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / resolveGateThreshold

Function resolveGateThreshold

src/eval/harness.ts:92–98  ·  view source on GitHub ↗
(total: number, gate: EvalGate)

Source from the content-addressed store, hash-verified

90}
91
92function resolveGateThreshold(total: number, gate: EvalGate): number {
93 if (gate <= 1) {
94 return Math.ceil(total * gate);
95 }
96
97 return Math.ceil(gate);
98}
99
100function hashPath(filePath: string): string {
101 return crypto.createHash('sha1').update(normalizePath(filePath)).digest('hex').slice(0, 8);

Callers 1

summarizeEvaluationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected