MCPcopy
hub / github.com/continuedev/continue / replace

Method replace

core/llm/llamaTokenizer.js:60–65  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

58 return poppedValue;
59 }
60 replace(value) {
61 const replacedValue = this.peek();
62 this._heap[0] = value;
63 this._siftDown();
64 return replacedValue;
65 }
66 _parent(i) {
67 return ((i + 1) >>> 1) - 1;
68 }

Callers 15

fetchFunction · 0.45
_getAzureBaseURLMethod · 0.45
completionStreamMethod · 0.45
getSessionTokenMethod · 0.45
chatCompletionStreamMethod · 0.45
setupAuthenticationMethod · 0.45
parseMarkdownRuleFunction · 0.45
agentFiles.test.tsFile · 0.45
sanitizeRuleNameFunction · 0.45
renderSecretsFunction · 0.45

Calls 2

peekMethod · 0.95
_siftDownMethod · 0.95

Tested by 2

expectDiffFunction · 0.36
stripThinkTagsFunction · 0.36