return 0;
}
const n = 4;
const fileNGrams = currentText.length >= n ? buildNGramSet(currentText, n) : undefined;
Frontier kind: Joint frontier
unlabeled · c_cf899f79e5b8
9 tests · 3537 LOC · 19 files · introduces 3 tests · 18 LOC · 1 file
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Every exact file and test below is linked only from the concept that introduces it.
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/editSurvivalTracker.test|title=agentHost editSurvivalTracker computeChunkedFourGramSurvival all chunks fully present → 1|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/editSurvivalTracker.test|title=agentHost editSurvivalTracker computeChunkedFourGramSurvival multiple chunks weighted by length|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/editSurvivalTracker.test|title=agentHost editSurvivalTracker computeChunkedFourGramSurvival scales linearly with chunks: file n-gram set is built once|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/editSurvivalTracker.test|title=agentHost editSurvivalTracker computeChunkedEditSurvival fourGram from chunks, noRevert still from whole-file|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/editSurvivalTracker.test|title=agentHost editSurvivalTracker multi-tracker scenarios MultiEdit with several chunks survives a later unrelated append|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/editSurvivalTracker.test|title=agentHost editSurvivalTracker multi-tracker scenarios two non-overlapping additions both survive (chunked scoring)|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/charCode.test|title=CharCode has good values|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/path.test|title=Paths (Node Implementation) path|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI File paths containing apostrophes break URI parsing and cannot be opened #276075|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI URI#file, win-speciale|occurrence=1Every collected test enters the hierarchy at exactly one concept.
3 tests introduced at this concept.
editSurvivalTracker.test|title=agentHost editSurvivalTracker computeChunkedFourGramSurvival all chunks fully present → 1|occurrence=1editSurvivalTracker.test|title=agentHost editSurvivalTracker computeChunkedFourGramSurvival multiple chunks weighted by length|occurrence=1editSurvivalTracker.test|title=agentHost editSurvivalTracker computeChunkedFourGramSurvival scales linearly with chunks: file n-gram set is built once|occurrence=1Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 18 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
return 0;
}
const n = 4;
const fileNGrams = currentText.length >= n ? buildNGramSet(currentText, n) : undefined;
let weightedSum = 0;
for (const chunk of aiChunks) {
// chunks (so they still contribute their full presence signal
// rather than getting zero weight).
const weight = Math.max(1, chunk.length - n + 1);
let fraction: number;
if (chunk.length === 0) {
fraction = 1;
fraction = currentText.includes(chunk) ? 1 : 0;
fraction = 0;
fraction = computeFractionPresentInSet(chunk, fileNGrams, n);
}
weightedSum += fraction * weight;
totalWeight += weight;
}
return weightedSum / totalWeight;
}
/**