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

Method pop

core/llm/llamaTokenizer.js:50–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 return this.size();
49 }
50 pop() {
51 const poppedValue = this.peek();
52 const bottom = this.size() - 1;
53 if (bottom > 0) {
54 this._swap(0, bottom);
55 }
56 this._heap.pop();
57 this._siftDown();
58 return poppedValue;
59 }
60 replace(value) {
61 const replacedValue = this.peek();
62 this._heap[0] = value;

Callers 15

encodeMethod · 0.95
undoMethod · 0.45
redoMethod · 0.45
_convertBodyMethod · 0.45
decodeFQSNFunction · 0.45
headerIsMarkdownFunction · 0.45
isMarkdownFileFunction · 0.45
extractToolSequenceFunction · 0.45
_convertMessagesMethod · 0.45
_streamCompleteMethod · 0.45
_streamChatMethod · 0.45
_streamFimMethod · 0.45

Calls 4

peekMethod · 0.95
sizeMethod · 0.95
_swapMethod · 0.95
_siftDownMethod · 0.95

Tested by 1

handleDataMethod · 0.36