id int64 0 1.29M | original_id stringlengths 32 32 | swhid stringlengths 100 170 | sha1 stringlengths 40 40 | repo_name stringlengths 2 45 | repo_group stringclasses 12
values | filepath stringlengths 5 153 | name stringlengths 1 14.9k | type stringclasses 3
values | code stringlengths 7 2.12M |
|---|---|---|---|---|---|---|---|---|---|
1,283,100 | 8812d1baca341b9726680c581c5f2b7b | swh:1:cnt:5d8f36c56a609058f78e25ffbe789c353e74f5c4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=44-49/ | e785eb0f735ca92fed50f3c74f0b290e75cfcd2d | wlbdashboard | wmcs | node_modules/webpack/lib/util/AppendOnlyStackedSet.js | AppendOnlyStackedSet::clear | function | clear() {
this._sets = [];
if (this._current) {
this._current = undefined;
}
} |
1,283,101 | b2857dc9dbebbebe34a8a37fef69fa70 | swh:1:cnt:5d8f36c56a609058f78e25ffbe789c353e74f5c4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=58-75/ | e785eb0f735ca92fed50f3c74f0b290e75cfcd2d | wlbdashboard | wmcs | node_modules/webpack/lib/util/AppendOnlyStackedSet.js | AppendOnlyStackedSet::[Symbol.iterator] | function | /**
* @returns {Iterator<T>} iterable iterator
*/
[Symbol.iterator]() {
const iterators = this._sets.map((map) => map[Symbol.iterator]());
let current = iterators.pop();
return {
next() {
if (!current) return { done: true, value: undefined };
let result = current.next();
while (result.done && ... |
1,283,102 | 69c029a118c80f908f48bfd83ef4e591 | swh:1:cnt:5d8f36c56a609058f78e25ffbe789c353e74f5c4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=65-73/ | e785eb0f735ca92fed50f3c74f0b290e75cfcd2d | wlbdashboard | wmcs | node_modules/webpack/lib/util/AppendOnlyStackedSet.js | AppendOnlyStackedSet::[Symbol.iterator]::next | function | next() {
if (!current) return { done: true, value: undefined };
let result = current.next();
while (result.done && iterators.length > 0) {
current = /** @type {SetIterator<T>} */ (iterators.pop());
result = current.next();
}
return result;
} |
1,283,103 | b25f713b4c04f732100d383e38f0c758 | swh:1:cnt:f877ca1fee901a62505124a80c2c8d69d95ee7cc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-102/ | 2c34a53f8c4c80a570f33746de69a3ade44efe16 | wlbdashboard | wmcs | node_modules/webpack/lib/util/ArrayQueue.js | ArrayQueue | type | /**
* @template T
*/
class ArrayQueue {
/**
* @param {Iterable<T>=} items The initial elements.
*/
constructor(items) {
/**
* @private
* @type {T[]}
*/
this._list = items ? [...items] : [];
/**
* @private
* @type {T[]}
*/
this._listReversed = [];
}
/**
* Returns the number of elem... |
1,283,104 | 5f37b816ea55d38f60aa9e5bacf2c767 | swh:1:cnt:f877ca1fee901a62505124a80c2c8d69d95ee7cc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-26/ | 2c34a53f8c4c80a570f33746de69a3ade44efe16 | wlbdashboard | wmcs | node_modules/webpack/lib/util/ArrayQueue.js | ArrayQueue::constructor | function | /**
* @param {Iterable<T>=} items The initial elements.
*/
constructor(items) {
/**
* @private
* @type {T[]}
*/
this._list = items ? [...items] : [];
/**
* @private
* @type {T[]}
*/
this._listReversed = [];
} |
1,283,105 | dc1336098a408a5846c6a7905fed1c4b | swh:1:cnt:f877ca1fee901a62505124a80c2c8d69d95ee7cc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=53-68/ | 2c34a53f8c4c80a570f33746de69a3ade44efe16 | wlbdashboard | wmcs | node_modules/webpack/lib/util/ArrayQueue.js | ArrayQueue::dequeue | function | /**
* Retrieves and removes the head of this queue.
* @returns {T | undefined} The head of the queue of `undefined` if this queue is empty.
*/
dequeue() {
if (this._listReversed.length === 0) {
if (this._list.length === 0) return;
if (this._list.length === 1) return this._list.pop();
if (this._list.le... |
1,283,106 | ab3303527c9147cfef1b35dfddd12293 | swh:1:cnt:f877ca1fee901a62505124a80c2c8d69d95ee7cc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=28-34/ | 2c34a53f8c4c80a570f33746de69a3ade44efe16 | wlbdashboard | wmcs | node_modules/webpack/lib/util/ArrayQueue.js | ArrayQueue::length | function | /**
* Returns the number of elements in this queue.
* @returns {number} The number of elements in this queue.
*/
get length() {
return this._list.length + this._listReversed.length;
} |
1,283,107 | 97893c7df0b18d4aabaae110dbbc8e72 | swh:1:cnt:f877ca1fee901a62505124a80c2c8d69d95ee7cc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=36-42/ | 2c34a53f8c4c80a570f33746de69a3ade44efe16 | wlbdashboard | wmcs | node_modules/webpack/lib/util/ArrayQueue.js | ArrayQueue::clear | function | /**
* Empties the queue.
*/
clear() {
this._list.length = 0;
this._listReversed.length = 0;
} |
1,283,108 | 6a874d297957ca80052a628df1d2efa1 | swh:1:cnt:f877ca1fee901a62505124a80c2c8d69d95ee7cc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=44-51/ | 2c34a53f8c4c80a570f33746de69a3ade44efe16 | wlbdashboard | wmcs | node_modules/webpack/lib/util/ArrayQueue.js | ArrayQueue::enqueue | function | /**
* Appends the specified element to this queue.
* @param {T} item The element to add.
* @returns {void}
*/
enqueue(item) {
this._list.push(item);
} |
1,283,109 | 0cd5129e30feba081269518e8238d274 | swh:1:cnt:f877ca1fee901a62505124a80c2c8d69d95ee7cc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=70-83/ | 2c34a53f8c4c80a570f33746de69a3ade44efe16 | wlbdashboard | wmcs | node_modules/webpack/lib/util/ArrayQueue.js | ArrayQueue::delete | function | /**
* Finds and removes an item
* @param {T} item the item
* @returns {void}
*/
delete(item) {
const i = this._list.indexOf(item);
if (i >= 0) {
this._list.splice(i, 1);
} else {
const i = this._listReversed.indexOf(item);
if (i >= 0) this._listReversed.splice(i, 1);
}
} |
1,283,110 | 04432fe2d35c11d0b2e71192060cf017 | swh:1:cnt:f877ca1fee901a62505124a80c2c8d69d95ee7cc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=85-101/ | 2c34a53f8c4c80a570f33746de69a3ade44efe16 | wlbdashboard | wmcs | node_modules/webpack/lib/util/ArrayQueue.js | ArrayQueue::[Symbol.iterator] | function | [Symbol.iterator]() {
return {
next: () => {
const item = this.dequeue();
if (item) {
return {
done: false,
value: item
};
}
return {
done: true,
value: undefined
};
}
};
} |
1,283,111 | a3396d9a4e47ac53e5888f10a2ff7d30 | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-50/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueueEntry | type | /**
* @template T
* @callback Callback
* @param {(WebpackError | null)=} err
* @param {(T | null)=} result
* @returns {void}
*/
/**
* @template T
* @template K
* @template R
*/
class AsyncQueueEntry {
/**
* @param {T} item the item
* @param {Callback<R>} callback the callback
*/
constructor(item, cal... |
1,283,112 | 6948316b0e734efc9cd6d37aac6c8dcb | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=52-409/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue | type | /**
* @template T, K
* @typedef {(item: T) => K} getKey
*/
/**
* @template T, R
* @typedef {(item: T, callback: Callback<R>) => void} Processor
*/
/**
* @template T
* @template K
* @template R
*/
class AsyncQueue {
/**
* @param {object} options options object
* @param {string=} options.name name of the... |
1,283,113 | 0de3fb27ea627d05192cca9ab61850a4 | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-49/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueueEntry::constructor | function | /**
* @param {T} item the item
* @param {Callback<R>} callback the callback
*/
constructor(item, callback) {
this.item = item;
/** @type {typeof QUEUED_STATE | typeof PROCESSING_STATE | typeof DONE_STATE} */
this.state = QUEUED_STATE;
/** @type {Callback<R> | undefined} */
this.callback = callback;
/... |
1,283,114 | d6016732a95d1c3030f4fc2b5eb23b96 | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=121-126/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::getContext | function | /**
* @returns {string} context of execution
*/
getContext() {
return this._context;
} |
1,283,115 | 4dadca46280317500b7ffba58c0cc76f | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=128-133/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::setContext | function | /**
* @param {string} value context of execution
*/
setContext(value) {
this._context = value;
} |
1,283,116 | b12ceabea0d32348e5c45e78b27a3124 | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=135-185/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::add | function | /**
* @param {T} item an item
* @param {Callback<R>} callback callback function
* @returns {void}
*/
add(item, callback) {
if (this._stopped) return callback(new WebpackError("Queue was stopped"));
this.hooks.beforeAdd.callAsync(item, (err) => {
if (err) {
callback(
makeWebpackError(err, `Async... |
1,283,117 | 99fbee3d7c774fccde0198949fe117ed | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-119/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::constructor | function | /**
* @param {object} options options object
* @param {string=} options.name name of the queue
* @param {number=} options.parallelism how many items should be processed at once
* @param {string=} options.context context of execution
* @param {AsyncQueue<EXPECTED_ANY, EXPECTED_ANY, EXPECTED_ANY>=} options.pare... |
1,283,118 | c5cf78b6398c277fb58d80e1453a762e | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=187-200/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::invalidate | function | /**
* @param {T} item an item
* @returns {void}
*/
invalidate(item) {
const key = this._getKey(item);
const entry =
/** @type {AsyncQueueEntry<T, K, R>} */
(this._entries.get(key));
this._entries.delete(key);
if (entry.state === QUEUED_STATE) {
this._queued.delete(entry);
}
} |
1,283,119 | 702441c0bed9e050290619a93e7cb579 | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=202-225/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::waitFor | function | /**
* Waits for an already started item
* @param {T} item an item
* @param {Callback<R>} callback callback function
* @returns {void}
*/
waitFor(item, callback) {
const key = this._getKey(item);
const entry = this._entries.get(key);
if (entry === undefined) {
return callback(
new WebpackError(
... |
1,283,120 | 2fca3a613b35a21f0cba5e3d936f7ab9 | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=227-245/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::stop | function | /**
* @returns {void}
*/
stop() {
this._stopped = true;
const queue = this._queued;
this._queued = new ArrayQueue();
const root = this._root;
for (const entry of queue) {
this._entries.delete(
this._getKey(/** @type {AsyncQueueEntry<T, K, R>} */ (entry).item)
);
root._activeTasks++;
this.... |
1,283,121 | 0d83f04c6d9159ef0c439e1fb9d5cf09 | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=247-258/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::increaseParallelism | function | /**
* @returns {void}
*/
increaseParallelism() {
const root = this._root;
root._parallelism++;
/* istanbul ignore next */
if (root._willEnsureProcessing === false && root._needProcessing) {
root._willEnsureProcessing = true;
setImmediate(root._ensureProcessing);
}
} |
1,283,122 | 5ac5742ce7dabb3d5cc63a3bb5dd3092 | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=260-266/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::decreaseParallelism | function | /**
* @returns {void}
*/
decreaseParallelism() {
const root = this._root;
root._parallelism--;
} |
1,283,123 | f22aafba31968c3e0737f9715338d97b | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=288-296/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::isDone | function | /**
* @param {T} item an item
* @returns {boolean} true, if the item is currently queued
*/
isDone(item) {
const key = this._getKey(item);
const entry = this._entries.get(key);
return entry !== undefined && entry.state === DONE_STATE;
} |
1,283,124 | 6ef707558deeca5d84a9ce265b963453 | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=326-351/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::_startProcessing | function | /**
* @param {AsyncQueueEntry<T, K, R>} entry the entry
* @returns {void}
*/
_startProcessing(entry) {
this.hooks.beforeStart.callAsync(entry.item, (err) => {
if (err) {
this._handleResult(
entry,
makeWebpackError(err, `AsyncQueue(${this._name}).hooks.beforeStart`)
);
return;
}
l... |
1,283,125 | 2bfd465a85f1f52c197a8c461dcee148 | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=268-276/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::isProcessing | function | /**
* @param {T} item an item
* @returns {boolean} true, if the item is currently being processed
*/
isProcessing(item) {
const key = this._getKey(item);
const entry = this._entries.get(key);
return entry !== undefined && entry.state === PROCESSING_STATE;
} |
1,283,126 | 8eae061a4e45ae7435a007378b6c285c | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=401-408/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::clear | function | clear() {
this._entries.clear();
this._queued.clear();
this._activeTasks = 0;
this._willEnsureProcessing = false;
this._needProcessing = false;
this._stopped = false;
} |
1,283,127 | ed2bbbbdb4f9bc0724fa89fb83fed560 | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=353-399/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::_handleResult | function | /**
* @param {AsyncQueueEntry<T, K, R>} entry the entry
* @param {(WebpackError | null)=} err error, if any
* @param {(R | null)=} result result, if any
* @returns {void}
*/
_handleResult(entry, err, result) {
this.hooks.result.callAsync(entry.item, err, result, (hookError) => {
const error = hookError
... |
1,283,128 | f0444bb4a0e18cfaf8c2c8083d761a02 | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=278-286/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::isQueued | function | /**
* @param {T} item an item
* @returns {boolean} true, if the item is currently queued
*/
isQueued(item) {
const key = this._getKey(item);
const entry = this._entries.get(key);
return entry !== undefined && entry.state === QUEUED_STATE;
} |
1,283,129 | e381f233d80c802eef8d324f6c013e1f | swh:1:cnt:300561525f2dc83a40e02cb8e05e2e4fee893d5f;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=298-324/ | 3db99025f04d73dd873886d5d1eaf605c23c17f6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/AsyncQueue.js | AsyncQueue::_ensureProcessing | function | /**
* @returns {void}
*/
_ensureProcessing() {
while (this._activeTasks < this._parallelism) {
const entry = this._queued.dequeue();
if (entry === undefined) break;
this._activeTasks++;
entry.state = PROCESSING_STATE;
this._startProcessing(entry);
}
this._willEnsureProcessing = false;
if (th... |
1,283,130 | a556b4590af1c4f83eecc5b29ecba282 | swh:1:cnt:7d44c7d00d8c5f51c56fc3db25ef23287b5e3e6c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=65-99/ | 461d431ddfd10fa2bc4603473a85a2b712a2fe5a | wlbdashboard | wmcs | node_modules/webpack/lib/util/chainedImports.js | trimIdsToThoseImported | function | /**
* @summary Determine which IDs in the id chain are actually referring to namespaces or imports,
* and which are deeper member accessors on the imported object.
* @param {string[]} ids untrimmed ids
* @param {ModuleGraph} moduleGraph moduleGraph
* @param {Dependency} dependency dependency
* @returns {string[]}... |
1,283,131 | 3f1b284bf678ad36a80c051dd7c0e9a8 | swh:1:cnt:6c91e80bb6204733b7dd5b7fadfe8f14a65ff4c4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=361-402/ | c4e38d8726252fd27c7728200395de2564a56281 | wlbdashboard | wmcs | node_modules/webpack/lib/util/comparators.js | TwoKeyWeakMap | type | /**
* @template {EXPECTED_OBJECT} K1
* @template {EXPECTED_OBJECT} K2
* @template T
*/
class TwoKeyWeakMap {
constructor() {
/**
* @private
* @type {WeakMap<K1, WeakMap<K2, T | undefined>>}
*/
this._map = new WeakMap();
}
/**
* @param {K1} key1 first key
* @param {K2} key2 second key
* @retur... |
1,283,132 | 18683d1d7d9ea050ecc330736540cc21 | swh:1:cnt:6c91e80bb6204733b7dd5b7fadfe8f14a65ff4c4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=367-373/ | c4e38d8726252fd27c7728200395de2564a56281 | wlbdashboard | wmcs | node_modules/webpack/lib/util/comparators.js | TwoKeyWeakMap::constructor | function | constructor() {
/**
* @private
* @type {WeakMap<K1, WeakMap<K2, T | undefined>>}
*/
this._map = new WeakMap();
} |
1,283,133 | fa1e216197c19c0621e5d4b3f8bb2df3 | swh:1:cnt:6c91e80bb6204733b7dd5b7fadfe8f14a65ff4c4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=388-401/ | c4e38d8726252fd27c7728200395de2564a56281 | wlbdashboard | wmcs | node_modules/webpack/lib/util/comparators.js | TwoKeyWeakMap::set | function | /**
* @param {K1} key1 first key
* @param {K2} key2 second key
* @param {T | undefined} value new value
* @returns {void}
*/
set(key1, key2, value) {
let childMap = this._map.get(key1);
if (childMap === undefined) {
childMap = new WeakMap();
this._map.set(key1, childMap);
}
childMap.set(key2, v... |
1,283,134 | e633437f156b7a5e80422bd98240431e | swh:1:cnt:6c91e80bb6204733b7dd5b7fadfe8f14a65ff4c4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=375-386/ | c4e38d8726252fd27c7728200395de2564a56281 | wlbdashboard | wmcs | node_modules/webpack/lib/util/comparators.js | TwoKeyWeakMap::get | function | /**
* @param {K1} key1 first key
* @param {K2} key2 second key
* @returns {T | undefined} value
*/
get(key1, key2) {
const childMap = this._map.get(key1);
if (childMap === undefined) {
return;
}
return childMap.get(key2);
} |
1,283,135 | 0540cb035df5ea20b4369be509f3ec0e | swh:1:cnt:b4e101c080c96846aa1af6e718f3d873a953c967;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=94-140/ | d38860ca0fb7bd63a3ce6db206cba83be0b9152c | wlbdashboard | wmcs | node_modules/webpack/lib/util/concatenate.js | findNewName | function | /**
* @param {string} oldName old name
* @param {UsedNames} usedNamed1 used named 1
* @param {UsedNames} usedNamed2 used named 2
* @param {string} extraInfo extra info
* @returns {string} found new name
*/
function findNewName(oldName, usedNamed1, usedNamed2, extraInfo) {
let name = oldName;
if (name === DEFAU... |
1,283,136 | ee0bf564fe061bde49ff3eedc8d3d376 | swh:1:cnt:3df37aa483bb3a228bd805b5b5c43d7dd698c3bb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=184-188/ | aa4ac33e389568d799cd3615e2d56afa60a1507d | wlbdashboard | wmcs | node_modules/webpack/lib/util/deprecation.js | set | function | set(value) {
throw new Error(
`${name} was changed from Array to Set (writing to Array property 'length' is not possible)`
);
} |
1,283,137 | c3e2367109c4cac7f9742f115a08cbe7 | swh:1:cnt:3df37aa483bb3a228bd805b5b5c43d7dd698c3bb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=206-219/ | aa4ac33e389568d799cd3615e2d56afa60a1507d | wlbdashboard | wmcs | node_modules/webpack/lib/util/deprecation.js | SetDeprecatedArray::constructor | function | /**
* @param {ReadonlyArray<T> | null=} items items
*/
constructor(items) {
super(items);
if (!initialized) {
initialized = true;
module.exports.arrayToSetDeprecation(
/** @type {SetWithDeprecatedArrayMethods<T>} */
(SetDeprecatedArray.prototype),
name
);
}
} |
1,283,138 | 49bd658f41b8a13e468ce39558fa7597 | swh:1:cnt:3df37aa483bb3a228bd805b5b5c43d7dd698c3bb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=176-183/ | aa4ac33e389568d799cd3615e2d56afa60a1507d | wlbdashboard | wmcs | node_modules/webpack/lib/util/deprecation.js | get | function | get() {
dLength();
const length = this.size;
for (indexerDefined; indexerDefined < length + 1; indexerDefined++) {
defineIndexGetter(indexerDefined);
}
return length;
} |
1,283,139 | 14785423e619cc1a52286635a6ed9c19 | swh:1:cnt:3df37aa483bb3a228bd805b5b5c43d7dd698c3bb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=202-220/ | aa4ac33e389568d799cd3615e2d56afa60a1507d | wlbdashboard | wmcs | node_modules/webpack/lib/util/deprecation.js | SetDeprecatedArray | type | /**
* @template T
*/
class SetDeprecatedArray extends Set {
/**
* @param {ReadonlyArray<T> | null=} items items
*/
constructor(items) {
super(items);
if (!initialized) {
initialized = true;
module.exports.arrayToSetDeprecation(
/** @type {SetWithDeprecatedArrayMethods<T>} */
(SetD... |
1,283,140 | a4321d370fe10c0d57f563b6bbef5ea7 | swh:1:cnt:c8b21fce53a229981a2012025677c746dd3f967c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=187-201/ | 46e3aaca6cdc3bc60b0bd03adfa5a6f65283cf6f | wlbdashboard | wmcs | node_modules/webpack/lib/util/deterministicGrouping.js | Node | type | /**
* @template T
*/
class Node {
/**
* @param {T} item item
* @param {string} key key
* @param {Sizes} size size
*/
constructor(item, key, size) {
this.item = item;
this.key = key;
this.size = size;
}
} |
1,283,141 | ed5e1ccfb8c9fb79f24f65b5f9d7e596 | swh:1:cnt:c8b21fce53a229981a2012025677c746dd3f967c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=203-257/ | 46e3aaca6cdc3bc60b0bd03adfa5a6f65283cf6f | wlbdashboard | wmcs | node_modules/webpack/lib/util/deterministicGrouping.js | Group | type | /** @typedef {number[]} Similarities */
/**
* @template T
*/
class Group {
/**
* @param {Node<T>[]} nodes nodes
* @param {Similarities | null} similarities similarities between the nodes (length = nodes.length - 1)
* @param {Sizes=} size size of the group
*/
constructor(nodes, similarities, size) {
this.... |
1,283,142 | 8b3e66a46b8c0112c6ad6f812b3b543b | swh:1:cnt:c8b21fce53a229981a2012025677c746dd3f967c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=191-200/ | 46e3aaca6cdc3bc60b0bd03adfa5a6f65283cf6f | wlbdashboard | wmcs | node_modules/webpack/lib/util/deterministicGrouping.js | Node::constructor | function | /**
* @param {T} item item
* @param {string} key key
* @param {Sizes} size size
*/
constructor(item, key, size) {
this.item = item;
this.key = key;
this.size = size;
} |
1,283,143 | eaad522bb8ad80ad1601dc6da60fab61 | swh:1:cnt:c8b21fce53a229981a2012025677c746dd3f967c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=222-256/ | 46e3aaca6cdc3bc60b0bd03adfa5a6f65283cf6f | wlbdashboard | wmcs | node_modules/webpack/lib/util/deterministicGrouping.js | Group::popNodes | function | /**
* @param {(node: Node<T>) => boolean} filter filter function
* @returns {Node<T>[] | undefined} removed nodes
*/
popNodes(filter) {
/** @type {Node<T>[]} */
const newNodes = [];
/** @type {Similarities} */
const newSimilarities = [];
/** @type {Node<T>[]} */
const resultNodes = [];
/** @type {u... |
1,283,144 | 6caf82144310a9ff98e55c3b46ee3f69 | swh:1:cnt:c8b21fce53a229981a2012025677c746dd3f967c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=209-220/ | 46e3aaca6cdc3bc60b0bd03adfa5a6f65283cf6f | wlbdashboard | wmcs | node_modules/webpack/lib/util/deterministicGrouping.js | Group::constructor | function | /**
* @param {Node<T>[]} nodes nodes
* @param {Similarities | null} similarities similarities between the nodes (length = nodes.length - 1)
* @param {Sizes=} size size of the group
*/
constructor(nodes, similarities, size) {
this.nodes = nodes;
this.similarities = similarities;
this.size = size || sumSiz... |
1,283,145 | 7f2fa178f73185f22f7cf393eee42861 | swh:1:cnt:1665fd98f927d8cbfe12712e64784e416d7ffa5c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=42-67/ | 60cf5851d49d347de61ace17f98c1bd2e7b77ad6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/extractSourceMap.js | getSourceMappingURL | function | /**
* Extract source mapping URL from code comments
* @param {string} code source code content
* @returns {SourceMappingURL} source mapping information
*/
function getSourceMappingURL(code) {
const lines = code.split(/^/m);
/** @type {RegExpMatchArray | null | undefined} */
let match;
for (let i = lines.length... |
1,283,146 | b76527b8c955cd21344afe91197691bd | swh:1:cnt:1665fd98f927d8cbfe12712e64784e416d7ffa5c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=97-136/ | 60cf5851d49d347de61ace17f98c1bd2e7b77ad6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/extractSourceMap.js | fetchPathsFromURL | function | /**
* Fetch from multiple possible file paths
* @param {ReadResource} readResource read resource function
* @param {string[]} possibleRequests array of possible file paths
* @param {string} errorsAccumulator accumulated error messages
* @returns {Promise<{ path: string, data?: string }>} source content promise
*/... |
1,283,147 | e2f902f8d2a48f8d62801a1822765354 | swh:1:cnt:1665fd98f927d8cbfe12712e64784e416d7ffa5c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=88-95/ | 60cf5851d49d347de61ace17f98c1bd2e7b77ad6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/extractSourceMap.js | isURL | function | /**
* Check if value is a URL
* @param {string} value string to check
* @returns {boolean} true if value is a URL
*/
function isURL(value) {
return validProtocolPattern.test(value) && !path.win32.isAbsolute(value);
} |
1,283,148 | 15ee2e9244151d29b642ff67f77cec82 | swh:1:cnt:1665fd98f927d8cbfe12712e64784e416d7ffa5c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=69-86/ | 60cf5851d49d347de61ace17f98c1bd2e7b77ad6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/extractSourceMap.js | getAbsolutePath | function | /**
* Get absolute path for source file
* @param {string} context context directory
* @param {string} request file request
* @param {string} sourceRoot source root directory
* @returns {string} absolute path
*/
function getAbsolutePath(context, request, sourceRoot) {
if (sourceRoot) {
if (isAbsolute(sourceRoot... |
1,283,149 | ce2fef29b4f94568c82aace2976c6b29 | swh:1:cnt:1665fd98f927d8cbfe12712e64784e416d7ffa5c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=138-212/ | 60cf5851d49d347de61ace17f98c1bd2e7b77ad6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/extractSourceMap.js | fetchFromURL | function | /**
* Fetch source content from URL
* @param {ReadResource} readResource The read resource function
* @param {string} context context directory
* @param {string} url source URL
* @param {string=} sourceRoot source root directory
* @param {boolean=} skipReading whether to skip reading file content
* @returns {Pro... |
1,283,150 | f7809752b16569507efcc44e610d1400 | swh:1:cnt:1665fd98f927d8cbfe12712e64784e416d7ffa5c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=214-315/ | 60cf5851d49d347de61ace17f98c1bd2e7b77ad6 | wlbdashboard | wmcs | node_modules/webpack/lib/util/extractSourceMap.js | extractSourceMap | function | /**
* Extract source map from code content
* @param {StringOrBuffer} stringOrBuffer The input code content as string or buffer
* @param {string} resourcePath The path to the resource file
* @param {ReadResource} readResource The read resource function
* @returns {Promise<{ source: StringOrBuffer, sourceMap: string... |
1,283,151 | 575c7bc429249e1b107ea2aed2b4e10c | swh:1:cnt:f839fdbb5074f64680a3b7dbd6075a883f49287b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-36/ | c82d3c8851db3a3f6ba518d0f627e8dbdf76160f | wlbdashboard | wmcs | node_modules/webpack/lib/util/findGraphRoots.js | Node | type | /**
* @template T
* @typedef {Set<Node<T>>} Nodes
*/
/**
* @template T
*/
class Node {
/**
* @param {T} item the value of the node
*/
constructor(item) {
this.item = item;
/** @type {Nodes<T>} */
this.dependencies = new Set();
/** @type {SCC<T>} */
this.scc = new SCC();
// Each node starts as a ... |
1,283,152 | 0276b57b9061e6788a1eeff58af74d90 | swh:1:cnt:f839fdbb5074f64680a3b7dbd6075a883f49287b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-48/ | c82d3c8851db3a3f6ba518d0f627e8dbdf76160f | wlbdashboard | wmcs | node_modules/webpack/lib/util/findGraphRoots.js | SCC | type | /**
* SCC (strongly connected component)
* @template T
*/
class SCC {
constructor() {
/** @type {Nodes<T>} */
this.nodes = new Set();
this.marker = NO_MARKER;
}
} |
1,283,153 | e1194be126305d4dfb550249dae13269 | swh:1:cnt:f839fdbb5074f64680a3b7dbd6075a883f49287b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-35/ | c82d3c8851db3a3f6ba518d0f627e8dbdf76160f | wlbdashboard | wmcs | node_modules/webpack/lib/util/findGraphRoots.js | Node::constructor | function | /**
* @param {T} item the value of the node
*/
constructor(item) {
this.item = item;
/** @type {Nodes<T>} */
this.dependencies = new Set();
/** @type {SCC<T>} */
this.scc = new SCC();
// Each node starts as a single-node SCC
this.scc.nodes.add(this);
/** @type {number} */
this.incoming = 0;
} |
1,283,154 | 9e2ddbcd691f3e3a8bfdd17f05d5ed10 | swh:1:cnt:f839fdbb5074f64680a3b7dbd6075a883f49287b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=43-47/ | c82d3c8851db3a3f6ba518d0f627e8dbdf76160f | wlbdashboard | wmcs | node_modules/webpack/lib/util/findGraphRoots.js | SCC::constructor | function | constructor() {
/** @type {Nodes<T>} */
this.nodes = new Set();
this.marker = NO_MARKER;
} |
1,283,155 | 71c1d3e8e5847f75cd855bd57e00bb83 | swh:1:cnt:27ce0b7557d4f15a644d5f5d573efe505afd73fa;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-66/ | 19537585323204037846d9b1c625945b393c1055 | wlbdashboard | wmcs | node_modules/webpack/lib/util/Hash.js | Hash | type | /** @typedef {import("../../declarations/WebpackOptions").HashDigest} Encoding */
/** @typedef {string | typeof Hash} HashFunction */
class Hash {
/* istanbul ignore next */
/**
* Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
* @abstract
* @overload
* @param {st... |
1,283,156 | 7fa37672623eb5602e7e0fb601f28d8a | swh:1:cnt:27ce0b7557d4f15a644d5f5d573efe505afd73fa;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-39/ | 19537585323204037846d9b1c625945b393c1055 | wlbdashboard | wmcs | node_modules/webpack/lib/util/Hash.js | Hash::update | function | /* istanbul ignore next */
/**
* Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
* @abstract
* @overload
* @param {string | Buffer} data data
* @returns {Hash} updated hash
*/
/**
* Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data... |
1,283,157 | 106d200ff3f23b141b5b13dfc2ffe67c | swh:1:cnt:27ce0b7557d4f15a644d5f5d573efe505afd73fa;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-65/ | 19537585323204037846d9b1c625945b393c1055 | wlbdashboard | wmcs | node_modules/webpack/lib/util/Hash.js | Hash::digest | function | /* istanbul ignore next */
/**
* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
* @abstract
* @overload
* @returns {Buffer} digest
*/
/**
* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
* @abstract
* @overload... |
1,283,158 | 01abdd2f5bdd67e49a378ebd72fd3099 | swh:1:cnt:098871db95071017eef6d4cc6b6e5982fb86f9ce;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-270/ | 4ed0e0ee8210b34d073c1fb41a0dbc833d2d5af4 | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazyBucketSortedSet.js | LazyBucketSortedSet | type | /**
* @template T
* @template K
* @typedef {(item: T) => K} GetKey
*/
/**
* @template T
* @typedef {(a: T, n: T) => number} Comparator
*/
/**
* @template T
* @template K
* @typedef {LazyBucketSortedSet<T, K> | SortableSet<T>} Entry
*/
/**
* @template T
* @template K
* @typedef {GetKey<T, K> | Comparato... |
1,283,159 | b730014afe88ff48954fed88c39316cc | swh:1:cnt:098871db95071017eef6d4cc6b6e5982fb86f9ce;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=47-62/ | 4ed0e0ee8210b34d073c1fb41a0dbc833d2d5af4 | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazyBucketSortedSet.js | LazyBucketSortedSet::constructor | function | /**
* @param {GetKey<T, K>} getKey function to get key from item
* @param {Comparator<K>=} comparator comparator to sort keys
* @param {...Arg<T, K>} args more pairs of getKey and comparator plus optional final comparator for the last layer
*/
constructor(getKey, comparator, ...args) {
this._getKey = getKey;... |
1,283,160 | 9555c5356f91f2c1341081c654108e0f | swh:1:cnt:098871db95071017eef6d4cc6b6e5982fb86f9ce;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=64-71/ | 4ed0e0ee8210b34d073c1fb41a0dbc833d2d5af4 | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazyBucketSortedSet.js | LazyBucketSortedSet::add | function | /**
* @param {T} item an item
* @returns {void}
*/
add(item) {
this.size++;
this._unsortedItems.add(item);
} |
1,283,161 | dc71614b4de7fd9c897228dff26f9ba9 | swh:1:cnt:098871db95071017eef6d4cc6b6e5982fb86f9ce;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=115-122/ | 4ed0e0ee8210b34d073c1fb41a0dbc833d2d5af4 | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazyBucketSortedSet.js | LazyBucketSortedSet::_deleteKey | function | /**
* @param {K} key key to be removed
* @returns {void}
*/
_deleteKey(key) {
this._keys.delete(key);
this._map.delete(key);
} |
1,283,162 | 53f5d82675c47a1ad337173567b97a5e | swh:1:cnt:098871db95071017eef6d4cc6b6e5982fb86f9ce;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=97-113/ | 4ed0e0ee8210b34d073c1fb41a0dbc833d2d5af4 | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazyBucketSortedSet.js | LazyBucketSortedSet::delete | function | /**
* @param {T} item an item
* @returns {void}
*/
delete(item) {
this.size--;
if (this._unsortedItems.has(item)) {
this._unsortedItems.delete(item);
return;
}
const key = this._getKey(item);
const entry = /** @type {Entry<T, K>} */ (this._map.get(key));
entry.delete(item);
if (entry.size ===... |
1,283,163 | 98e3fdd866d6faff220b5ff1a6c4accd | swh:1:cnt:098871db95071017eef6d4cc6b6e5982fb86f9ce;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=73-95/ | 4ed0e0ee8210b34d073c1fb41a0dbc833d2d5af4 | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazyBucketSortedSet.js | LazyBucketSortedSet::_addInternal | function | /**
* @param {K} key key of item
* @param {T} item the item
* @returns {void}
*/
_addInternal(key, item) {
let entry = this._map.get(key);
if (entry === undefined) {
entry = this._leaf
? new SortableSet(
undefined,
/** @type {Comparator<T>} */
(this._innerArgs[0])
)
: new ... |
1,283,164 | 8cc89fec17d9f70bef002ac138f0cd7c | swh:1:cnt:098871db95071017eef6d4cc6b6e5982fb86f9ce;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=124-158/ | 4ed0e0ee8210b34d073c1fb41a0dbc833d2d5af4 | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazyBucketSortedSet.js | LazyBucketSortedSet::popFirst | function | /**
* @returns {T | undefined} an item
*/
popFirst() {
if (this.size === 0) return;
this.size--;
if (this._unsortedItems.size > 0) {
for (const item of this._unsortedItems) {
const key = this._getKey(item);
this._addInternal(key, item);
}
this._unsortedItems.clear();
}
this._keys.sort();... |
1,283,165 | 308881dd6be9264e99bdc8ac6d3d29c6 | swh:1:cnt:098871db95071017eef6d4cc6b6e5982fb86f9ce;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=160-222/ | 4ed0e0ee8210b34d073c1fb41a0dbc833d2d5af4 | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazyBucketSortedSet.js | LazyBucketSortedSet::startUpdate | function | /**
* @param {T} item to be updated item
* @returns {(remove?: true) => void} finish update
*/
startUpdate(item) {
if (this._unsortedItems.has(item)) {
return (remove) => {
if (remove) {
this._unsortedItems.delete(item);
this.size--;
}
};
}
const key = this._getKey(item);
if (this... |
1,283,166 | 7430fc963567d6d15b93b4a2691401b4 | swh:1:cnt:098871db95071017eef6d4cc6b6e5982fb86f9ce;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=224-245/ | 4ed0e0ee8210b34d073c1fb41a0dbc833d2d5af4 | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazyBucketSortedSet.js | LazyBucketSortedSet::_appendIterators | function | /**
* @param {Iterator<T>[]} iterators list of iterators to append to
* @returns {void}
*/
_appendIterators(iterators) {
if (this._unsortedItems.size > 0) {
iterators.push(this._unsortedItems[Symbol.iterator]());
}
for (const key of this._keys) {
const entry = this._map.get(key);
if (this._leaf) {... |
1,283,167 | b91f2a017fb8e15d802a027a6271016d | swh:1:cnt:098871db95071017eef6d4cc6b6e5982fb86f9ce;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=247-269/ | 4ed0e0ee8210b34d073c1fb41a0dbc833d2d5af4 | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazyBucketSortedSet.js | LazyBucketSortedSet::[Symbol.iterator] | function | /**
* @returns {Iterator<T>} the iterator
*/
[Symbol.iterator]() {
/** @type {Iterator<T>[]} */
const iterators = [];
this._appendIterators(iterators);
iterators.reverse();
let currentIterator =
/** @type {Iterator<T>} */
(iterators.pop());
return {
next: () => {
const res = currentIterato... |
1,283,168 | 7c946b8d2bfc3180a3e8d35d58e5dae7 | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=42-232/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet | type | /**
* @template T
* @typedef {import("typescript-iterable").SetIterator<T>} SetIterator
*/
/**
* Like Set but with an addAll method to eventually add items from another iterable.
* Access methods make sure that all delayed operations are executed.
* Iteration methods deopts to normal Set performance until clear ... |
1,283,169 | 6a6c1665c3cad6c43f95112cc49a8fb6 | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=54-66/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::constructor | function | /**
* @param {Iterable<T>=} iterable init iterable
*/
constructor(iterable) {
/** @type {Set<T>} */
this._set = new Set(iterable);
/** @type {Set<Iterable<T>>} */
this._toMerge = new Set();
/** @type {LazySet<T>[]} */
this._toDeepMerge = [];
this._needMerge = false;
this._deopt = false;
} |
1,283,170 | 27c9d1077013ff939a243581e2a4ff35 | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=80-86/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::_isEmpty | function | _isEmpty() {
return (
this._set.size === 0 &&
this._toMerge.size === 0 &&
this._toDeepMerge.length === 0
);
} |
1,283,171 | f3700349b4f32c87697b056a05966ecc | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=73-78/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::_merge | function | _merge() {
this._flatten();
merge(this._set, this._toMerge);
this._toMerge.clear();
this._needMerge = false;
} |
1,283,172 | ae66cc810b65dc0b7ec1f66e3e429fae | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-71/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::_flatten | function | _flatten() {
flatten(this._toMerge, this._toDeepMerge);
this._toDeepMerge.length = 0;
} |
1,283,173 | 56c4be2f1108e18b03a40e569935d54e | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=88-91/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::size | function | get size() {
if (this._needMerge) this._merge();
return this._set.size;
} |
1,283,174 | 8261feaf2ba6159a7b23a457b26aae1b | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=93-100/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::add | function | /**
* @param {T} item an item
* @returns {LazySet<T>} itself
*/
add(item) {
this._set.add(item);
return this;
} |
1,283,175 | 2b34d804c72873654e4140063824d947 | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=102-127/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::addAll | function | /**
* @param {Iterable<T> | LazySet<T>} iterable a immutable iterable or another immutable LazySet which will eventually be merged into the Set
* @returns {LazySet<T>} itself
*/
addAll(iterable) {
if (this._deopt) {
const _set = this._set;
for (const item of iterable) {
_set.add(item);
}
} else ... |
1,283,176 | 89bd077ecb665a6aaea0f6b355e84177 | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=129-135/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::clear | function | clear() {
this._set.clear();
this._toMerge.clear();
this._toDeepMerge.length = 0;
this._needMerge = false;
this._deopt = false;
} |
1,283,177 | 549b6b96ea495ae6d7ed52f8603b74d2 | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=137-144/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::delete | function | /**
* @param {T} value an item
* @returns {boolean} true, if the value was in the Set before
*/
delete(value) {
if (this._needMerge) this._merge();
return this._set.delete(value);
} |
1,283,178 | 61dc20648f2c0775fe94932e357f0bad | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=146-153/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::entries | function | /**
* @returns {SetIterator<[T, T]>} entries
*/
entries() {
this._deopt = true;
if (this._needMerge) this._merge();
return this._set.entries();
} |
1,283,179 | fc376e5b38d754a6538da9e2ba4ef3f2 | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=195-202/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::[Symbol.iterator] | function | /**
* @returns {SetIterator<T>} iterable iterator
*/
[Symbol.iterator]() {
this._deopt = true;
if (this._needMerge) this._merge();
return this._set[Symbol.iterator]();
} |
1,283,180 | 943ee37233dce39911bd8dd789a1e945 | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=186-193/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::values | function | /**
* @returns {SetIterator<T>} values
*/
values() {
this._deopt = true;
if (this._needMerge) this._merge();
return this._set.values();
} |
1,283,181 | d374a05d4402caf5fb20317e54bad0af | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=204-207/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::[Symbol.toStringTag] | function | /* istanbul ignore next */
get [Symbol.toStringTag]() {
return "LazySet";
} |
1,283,182 | 83823d1231d1f7a1ee5b7d68c956e22e | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=209-216/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::serialize | function | /**
* @param {import("../serialization/ObjectMiddleware").ObjectSerializerContext} context context
*/
serialize({ write }) {
if (this._needMerge) this._merge();
write(this._set.size);
for (const item of this._set) write(item);
} |
1,283,183 | cdcb440631c81ca7200adb671905c8ac | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=168-175/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::has | function | /**
* @param {T} item an item
* @returns {boolean} true, when the item is in the Set
*/
has(item) {
if (this._needMerge) this._merge();
return this._set.has(item);
} |
1,283,184 | 3ad5b44b15ce1563c6aac222fdd7a20e | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=177-184/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::keys | function | /**
* @returns {SetIterator<T>} keys
*/
keys() {
this._deopt = true;
if (this._needMerge) this._merge();
return this._set.keys();
} |
1,283,185 | 72481171c6b99d084dac9ceea5c5e36f | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=218-231/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::deserialize | function | /**
* @template T
* @param {import("../serialization/ObjectMiddleware").ObjectDeserializerContext} context context
* @returns {LazySet<T>} lazy set
*/
static deserialize({ read }) {
const count = read();
/** @type {T[]} */
const items = [];
for (let i = 0; i < count; i++) {
items.push(read());
}
... |
1,283,186 | b1b25ec78e1393e6db5aa3e926714822 | swh:1:cnt:09801b972161cc436dae8625f006a031a9653eae;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=155-166/ | 215a7783a2f85e293c10c275e30ca8ed6b349f2b | wlbdashboard | wmcs | node_modules/webpack/lib/util/LazySet.js | LazySet::forEach | function | /**
* @template K
* @param {(value: T, value2: T, set: Set<T>) => void} callbackFn function called for each entry
* @param {K} thisArg this argument for the callbackFn
* @returns {void}
*/
forEach(callbackFn, thisArg) {
this._deopt = true;
if (this._needMerge) this._merge();
// eslint-disable-next-line... |
1,283,187 | 8e6e1952755f58f2fe52e3004d12a371 | swh:1:cnt:c5f08c113a67b99b8739d4a7bdba6ef06d783645;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-50/ | a84a8c2d5c6dda851d90e442b6fe3582d4a13073 | wlbdashboard | wmcs | node_modules/webpack/lib/util/makeSerializable.js | ClassSerializer | type | /** @typedef {import("../serialization/ObjectMiddleware").Constructor} Constructor */
/** @typedef {import("../serialization/ObjectMiddleware").ObjectDeserializerContext} ObjectDeserializerContext */
/** @typedef {import("../serialization/ObjectMiddleware").ObjectSerializerContext} ObjectSerializerContext */
/** @type... |
1,283,188 | 15fd988fcf2cd4adca19e9d0294c2bca | swh:1:cnt:c5f08c113a67b99b8739d4a7bdba6ef06d783645;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-28/ | a84a8c2d5c6dda851d90e442b6fe3582d4a13073 | wlbdashboard | wmcs | node_modules/webpack/lib/util/makeSerializable.js | ClassSerializer::constructor | function | /**
* @param {SerializableClassConstructor<T>} Constructor constructor
*/
constructor(Constructor) {
this.Constructor = Constructor;
} |
1,283,189 | eca77b4ec053980b2b9d62c954a9e759 | swh:1:cnt:c5f08c113a67b99b8739d4a7bdba6ef06d783645;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=30-36/ | a84a8c2d5c6dda851d90e442b6fe3582d4a13073 | wlbdashboard | wmcs | node_modules/webpack/lib/util/makeSerializable.js | ClassSerializer::serialize | function | /**
* @param {T} obj obj
* @param {ObjectSerializerContext} context context
*/
serialize(obj, context) {
obj.serialize(context);
} |
1,283,190 | ad8b63a8397559ba96834e918eee5c21 | swh:1:cnt:c5f08c113a67b99b8739d4a7bdba6ef06d783645;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-49/ | a84a8c2d5c6dda851d90e442b6fe3582d4a13073 | wlbdashboard | wmcs | node_modules/webpack/lib/util/makeSerializable.js | ClassSerializer::deserialize | function | /**
* @param {ObjectDeserializerContext} context context
* @returns {T} obj
*/
deserialize(context) {
if (typeof this.Constructor.deserialize === "function") {
return this.Constructor.deserialize(context);
}
const obj = new this.Constructor();
obj.deserialize(context);
return obj;
} |
1,283,191 | 12f4a2dbda494354e96e1b670f87e32e | swh:1:cnt:950d14bf8bb2e4a70678a001f9562b87ecbb5174;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-56/ | 7a3db8a44316ae1e88a1fb637b67f03a92d3f5d2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/numberHash.js | fnv1a32 | function | /**
* Computes a 32-bit FNV-1a hash value for the given string.
* See https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function
* @param {string} str The input string to hash
* @returns {number} - The computed hash value.
*/
function fnv1a32(str) {
let hash = FNV_OFFSET_32;
for (let i = 0, len =... |
1,283,192 | c8c2c98075794750b6352cf26ef06bb1 | swh:1:cnt:950d14bf8bb2e4a70678a001f9562b87ecbb5174;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=58-71/ | 7a3db8a44316ae1e88a1fb637b67f03a92d3f5d2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/numberHash.js | fnv1a64 | function | /**
* Computes a 64-bit FNV-1a hash value for the given string.
* See https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function
* @param {string} str The input string to hash
* @returns {bigint} - The computed hash value.
*/
function fnv1a64(str) {
let hash = FNV_OFFSET_64;
for (let i = 0, len =... |
1,283,193 | fed621e8a617925c5ee242bfd1a8f1f6 | swh:1:cnt:c372fac790788d3cc043dd69aa89d692ec0adacd;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-68/ | 80d6680b7cd656bbc0ac9bbcaee53a81a45071bc | wlbdashboard | wmcs | node_modules/webpack/lib/util/ParallelismFactorCalculator.js | ParallelismFactorCalculator | type | /** @typedef {(value: number) => void} Callback */
class ParallelismFactorCalculator {
constructor() {
/** @type {number[]} */
this._rangePoints = [];
/** @type {Callback[]} */
this._rangeCallbacks = [];
}
/**
* @param {number} start range start
* @param {number} end range end
* @param {Callback} cal... |
1,283,194 | ae60ca9115027fbfb58fba68ab1c949b | swh:1:cnt:c372fac790788d3cc043dd69aa89d692ec0adacd;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-18/ | 80d6680b7cd656bbc0ac9bbcaee53a81a45071bc | wlbdashboard | wmcs | node_modules/webpack/lib/util/ParallelismFactorCalculator.js | ParallelismFactorCalculator::constructor | function | constructor() {
/** @type {number[]} */
this._rangePoints = [];
/** @type {Callback[]} */
this._rangeCallbacks = [];
} |
1,283,195 | ccc81f17a660a86b18b060142c24cb4d | swh:1:cnt:c372fac790788d3cc043dd69aa89d692ec0adacd;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-67/ | 80d6680b7cd656bbc0ac9bbcaee53a81a45071bc | wlbdashboard | wmcs | node_modules/webpack/lib/util/ParallelismFactorCalculator.js | ParallelismFactorCalculator::calculate | function | calculate() {
const segments = [...new Set(this._rangePoints)].sort((a, b) =>
a < b ? -1 : 1
);
const parallelism = segments.map(() => 0);
/** @type {number[]} */
const rangeStartIndices = [];
for (let i = 0; i < this._rangePoints.length; i += 2) {
const start = this._rangePoints[i];
const end = th... |
1,283,196 | 46d95360d29a8eaab2854c55f033806c | swh:1:cnt:c372fac790788d3cc043dd69aa89d692ec0adacd;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-31/ | 80d6680b7cd656bbc0ac9bbcaee53a81a45071bc | wlbdashboard | wmcs | node_modules/webpack/lib/util/ParallelismFactorCalculator.js | ParallelismFactorCalculator::range | function | /**
* @param {number} start range start
* @param {number} end range end
* @param {Callback} callback callback
* @returns {void}
*/
range(start, end, callback) {
if (start === end) return callback(1);
this._rangePoints.push(start);
this._rangePoints.push(end);
this._rangeCallbacks.push(callback);
} |
1,283,197 | 17262a648c904f13e9fc98ffb16289ba | swh:1:cnt:3820770655a0ca603c08c288361347755514f76c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-50/ | 69236a5a6ab2a9a1a3c8815febea228dd32c6db8 | wlbdashboard | wmcs | node_modules/webpack/lib/util/Queue.js | Queue | type | /**
* @template T
*/
class Queue {
/**
* @param {Iterable<T>=} items The initial elements.
*/
constructor(items) {
/**
* @private
* @type {Set<T>}
*/
this._set = new Set(items);
}
/**
* Returns the number of elements in this queue.
* @returns {number} The number of elements in this queue.
... |
1,283,198 | fa7058e36bd3d90533caa6bbcd5bc509 | swh:1:cnt:3820770655a0ca603c08c288361347755514f76c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-21/ | 69236a5a6ab2a9a1a3c8815febea228dd32c6db8 | wlbdashboard | wmcs | node_modules/webpack/lib/util/Queue.js | Queue::constructor | function | /**
* @param {Iterable<T>=} items The initial elements.
*/
constructor(items) {
/**
* @private
* @type {Set<T>}
*/
this._set = new Set(items);
} |
1,283,199 | 829b582c8f5c257822d0f88d23f61c0f | swh:1:cnt:3820770655a0ca603c08c288361347755514f76c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-49/ | 69236a5a6ab2a9a1a3c8815febea228dd32c6db8 | wlbdashboard | wmcs | node_modules/webpack/lib/util/Queue.js | Queue::dequeue | function | /**
* Retrieves and removes the head of this queue.
* @returns {T | undefined} The head of the queue of `undefined` if this queue is empty.
*/
dequeue() {
const result = this._set[Symbol.iterator]().next();
if (result.done) return;
this._set.delete(result.value);
return result.value;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.