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,200 | 509dbf46577e9dfcf38417f383656bfb | swh:1:cnt:3820770655a0ca603c08c288361347755514f76c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-29/ | 69236a5a6ab2a9a1a3c8815febea228dd32c6db8 | wlbdashboard | wmcs | node_modules/webpack/lib/util/Queue.js | Queue::length | function | /**
* Returns the number of elements in this queue.
* @returns {number} The number of elements in this queue.
*/
get length() {
return this._set.size;
} |
1,283,201 | 741904a217080270e20a5a84559cbbce | swh:1:cnt:3820770655a0ca603c08c288361347755514f76c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-38/ | 69236a5a6ab2a9a1a3c8815febea228dd32c6db8 | wlbdashboard | wmcs | node_modules/webpack/lib/util/Queue.js | Queue::enqueue | function | /**
* Appends the specified element to this queue.
* @param {T} item The element to add.
* @returns {void}
*/
enqueue(item) {
this._set.add(item);
} |
1,283,202 | b1f4811d0c768e73049762fc8b66a0d3 | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=49-57/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | CachedSourceSerializer::deserialize | function | /**
* @param {ObjectDeserializerContext} context context
* @returns {CachedSource} cached source
*/
deserialize({ read }) {
const source = read();
const cachedData = read();
return new CachedSource(source, cachedData);
} |
1,283,203 | 5c5c088b376c29f6f06d0edb545cffd5 | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=119-127/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | PrefixSourceSerializer::serialize | function | /**
* @param {PrefixSource} source the prefix source to be serialized
* @param {ObjectSerializerContext} context context
* @returns {void}
*/
serialize(source, { write }) {
write(source.getPrefix());
write(source.original());
} |
1,283,204 | a99ceff080108638dde3fcbf64c8c82a | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=129-135/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | PrefixSourceSerializer::deserialize | function | /**
* @param {ObjectDeserializerContext} context context
* @returns {PrefixSource} prefix source
*/
deserialize({ read }) {
return new PrefixSource(read(), read());
} |
1,283,205 | c615fd08f83e0fbe8f3b3b4b36d7208e | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=144-162/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | ReplaceSourceSerializer::serialize | function | /**
* @param {ReplaceSource} source the replace source to be serialized
* @param {ObjectSerializerContext} context context
* @returns {void}
*/
serialize(source, { write }) {
write(source.original());
write(source.getName());
const replacements = source.getReplacements();
write(replacements.le... |
1,283,206 | 9fcd30110c85180ba6cfcce4ddb9cb1d | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=195-203/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | OriginalSourceSerializer::serialize | function | /**
* @param {OriginalSource} source the original source to be serialized
* @param {ObjectSerializerContext} context context
* @returns {void}
*/
serialize(source, { write }) {
write(source.buffer());
write(source.getName());
} |
1,283,207 | a2d2b04977a2df1fe1e6e11ae81ceac7 | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=205-213/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | OriginalSourceSerializer::deserialize | function | /**
* @param {ObjectDeserializerContext} context context
* @returns {OriginalSource} original source
*/
deserialize({ read }) {
const buffer = read();
const name = read();
return new OriginalSource(buffer, name);
} |
1,283,208 | 4f6af426648a4db5216c5dda3c422178 | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-47/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | CachedSourceSerializer::serialize | function | /**
* @param {CachedSource} source the cached source to be serialized
* @param {ObjectSerializerContext} context context
* @returns {void}
*/
serialize(source, { write, writeLazy }) {
if (writeLazy) {
writeLazy(source.originalLazy());
} else {
write(source.original());
}
write(source.g... |
1,283,209 | c899303770d0af770a15b2f57b7fc406 | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=268-277/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | PositionSerializer::deserialize | function | /**
* @param {ObjectDeserializerContext} context context
* @returns {SourcePosition} position
*/
deserialize({ read }) {
return {
line: read(),
column: read()
};
} |
1,283,210 | 94b8b6f1d611615c03adcf2eb15ea788 | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=311-324/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | ValidationErrorSerializer::serialize | function | /**
* @param {ValidationError} error the source map source to be serialized
* @param {ObjectSerializerContext} context context
* @returns {void}
*/
serialize(error, { write }) {
write(error.errors);
write(error.schema);
write({
name: error.headerName,
baseDataPath: error.baseDataPath,
... |
1,283,211 | 5d952adb7c3e43386e79f95e00e74e23 | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=326-332/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | ValidationErrorSerializer::deserialize | function | /**
* @param {ObjectDeserializerContext} context context
* @returns {ValidationError} error
*/
deserialize({ read }) {
return new ValidationError(read(), read(), read());
} |
1,283,212 | 747c4e9c1815d1fb2683e41b5301424a | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=93-100/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | ConcatSourceSerializer::serialize | function | /**
* @param {ConcatSource} source the concat source to be serialized
* @param {ObjectSerializerContext} context context
* @returns {void}
*/
serialize(source, { write }) {
write(source.getChildren());
} |
1,283,213 | 520da1e79ea0dbf2b7d809e181dea4fa | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=258-266/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | PositionSerializer::serialize | function | /**
* @param {Position} pos the position to be serialized
* @param {ObjectSerializerContext} context context
* @returns {void}
*/
serialize(pos, { write }) {
write(pos.line);
write(pos.column);
} |
1,283,214 | 1d51090d37cbff8eccdc33de313d762a | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=234-249/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | SourceLocationSerializer::deserialize | function | /**
* @param {ObjectDeserializerContext} context context
* @returns {RealDependencyLocation} location
*/
deserialize({ read }) {
return {
start: {
line: read(),
column: read()
},
end: {
line: read(),
column: read()
}
};
} |
1,283,215 | de11fd388d8810376c02b175847c9872 | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=76-84/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | RawSourceSerializer::deserialize | function | /**
* @param {ObjectDeserializerContext} context context
* @returns {RawSource} raw source
*/
deserialize({ read }) {
const source = read();
const convertToString = read();
return new RawSource(source, convertToString);
} |
1,283,216 | 74ae9dcd02e66fc4a0968a877d9d66f6 | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=66-74/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | RawSourceSerializer::serialize | function | /**
* @param {RawSource} source the raw source to be serialized
* @param {ObjectSerializerContext} context context
* @returns {void}
*/
serialize(source, { write }) {
write(source.buffer());
write(!source.isBuffer());
} |
1,283,217 | 54bd60cdbc690437800b4301d0f0cf15 | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=102-110/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | ConcatSourceSerializer::deserialize | function | /**
* @param {ObjectDeserializerContext} context context
* @returns {ConcatSource} concat source
*/
deserialize({ read }) {
const source = new ConcatSource();
source.addAllSkipOptimizing(read());
return source;
} |
1,283,218 | f3a332a9704db6fa23521f0bba209847 | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=164-186/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | ReplaceSourceSerializer::deserialize | function | /**
* @param {ObjectDeserializerContext} context context
* @returns {ReplaceSource} replace source
*/
deserialize({ read }) {
const source = new ReplaceSource(read(), read());
const len = read();
/** @type {number[]} */
const startEndBuffer = [];
for (let i = 0; i < len; i++) {
startEndBuf... |
1,283,219 | 6c898b7fbe9ce25ef7c61c8a15e64f4d | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=286-293/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | SourceMapSourceSerializer::serialize | function | /**
* @param {SourceMapSource} source the source map source to be serialized
* @param {ObjectSerializerContext} context context
* @returns {void}
*/
serialize(source, { write }) {
write(source.getArgsAsBuffers());
} |
1,283,220 | fe6b8bbc32a798c334af162e52bd031f | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=295-302/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | SourceMapSourceSerializer::deserialize | function | /**
* @param {ObjectDeserializerContext} context context
* @returns {SourceMapSource} source source map source
*/
deserialize({ read }) {
// @ts-expect-error
return new SourceMapSource(...read());
} |
1,283,221 | 746265fc8c8e8ced0384edba2c0ef7d8 | swh:1:cnt:8598ede92fc92ae40a6ab102a13b4593a0823df8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=222-232/ | 3ededc1fefde6f48aa88b677bd13cd9853a533f2 | wlbdashboard | wmcs | node_modules/webpack/lib/util/registerExternalSerializer.js | SourceLocationSerializer::serialize | function | /**
* @param {SourceLocation} loc the location to be serialized
* @param {ObjectSerializerContext} context context
* @returns {void}
*/
serialize(loc, { write }) {
write(loc.start.line);
write(loc.start.column);
write(loc.end.line);
write(loc.end.column);
} |
1,283,222 | 7e13b2e430e6c890119733b0711466f4 | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=426-657/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecMap | type | /**
* @template T
* @typedef {Map<string, T>} RuntimeSpecMapInnerMap
*/
/**
* @template T
* @template [R=T]
*/
class RuntimeSpecMap {
/**
* @param {RuntimeSpecMap<T, R>=} clone copy form this
*/
constructor(clone) {
/** @type {0 | 1 | 2} */
this._mode = clone ? clone._mode : 0; // 0 = empty, 1 = single... |
1,283,223 | 850a0db19969a4c442c791a5a872e0c6 | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=659-698/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecSet | type | class RuntimeSpecSet {
/**
* @param {Iterable<RuntimeSpec>=} iterable iterable
*/
constructor(iterable) {
/** @type {Map<string, RuntimeSpec>} */
this._map = new Map();
if (iterable) {
for (const item of iterable) {
this.add(item);
}
}
}
/**
* @param {RuntimeSpec} runtime runtime
*/
add(... |
1,283,224 | ae1dfa6e28784360f5142990a57d2e3e | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=436-448/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecMap::constructor | function | /**
* @param {RuntimeSpecMap<T, R>=} clone copy form this
*/
constructor(clone) {
/** @type {0 | 1 | 2} */
this._mode = clone ? clone._mode : 0; // 0 = empty, 1 = single entry, 2 = map
/** @type {RuntimeSpec} */
this._singleRuntime = clone ? clone._singleRuntime : undefined;
/** @type {R | undefined} */
... |
1,283,225 | 0cd4717caa67e83fa567d15fb5809c02 | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=469-484/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecMap::has | function | /**
* @param {RuntimeSpec} runtime the runtimes
* @returns {boolean} true, when the runtime is stored
*/
has(runtime) {
switch (this._mode) {
case 0:
return false;
case 1:
return runtimeEqual(this._singleRuntime, runtime);
default:
return /** @type {RuntimeSpecMapInnerMap<R>} */ (this._map... |
1,283,226 | 4f7675cb2b5e418307d1a998940c3adf | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=517-557/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecMap::provide | function | /**
* @param {RuntimeSpec} runtime the runtimes
* @param {() => R} computer function to compute the value
* @returns {R} the new value
*/
provide(runtime, computer) {
switch (this._mode) {
case 0:
this._mode = 1;
this._singleRuntime = runtime;
return (this._singleValue = computer());
case 1... |
1,283,227 | b7c3acac653de8a8daa0d6e928e6a6ac | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=450-467/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecMap::get | function | /**
* @param {RuntimeSpec} runtime the runtimes
* @returns {R | undefined} value
*/
get(runtime) {
switch (this._mode) {
case 0:
return;
case 1:
return runtimeEqual(this._singleRuntime, runtime)
? this._singleValue
: undefined;
default:
return /** @type {RuntimeSpecMapInnerMap<R>... |
1,283,228 | 6ae44d2a9836fb22a161420ad64a87ed | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=486-515/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecMap::set | function | /**
* @param {RuntimeSpec} runtime the runtimes
* @param {R} value the value
*/
set(runtime, value) {
switch (this._mode) {
case 0:
this._mode = 1;
this._singleRuntime = runtime;
this._singleValue = value;
break;
case 1:
if (runtimeEqual(this._singleRuntime, runtime)) {
this._sin... |
1,283,229 | 1667b17013ccfe0416663c9f72000583 | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=559-577/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecMap::delete | function | /**
* @param {RuntimeSpec} runtime the runtimes
*/
delete(runtime) {
switch (this._mode) {
case 0:
return;
case 1:
if (runtimeEqual(this._singleRuntime, runtime)) {
this._mode = 0;
this._singleRuntime = undefined;
this._singleValue = undefined;
}
return;
default:
/** @... |
1,283,230 | 265a333f514b450199c56e04821bee42 | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=579-619/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecMap::update | function | /**
* @param {RuntimeSpec} runtime the runtimes
* @param {(value: R | undefined) => R} fn function to update the value
*/
update(runtime, fn) {
switch (this._mode) {
case 0:
throw new Error("runtime passed to update must exist");
case 1: {
if (runtimeEqual(this._singleRuntime, runtime)) {
th... |
1,283,231 | 9d0bc119cf23af0682a90976bf25482f | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=621-634/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecMap::keys | function | keys() {
switch (this._mode) {
case 0:
return [];
case 1:
return [this._singleRuntime];
default:
return Array.from(
/** @type {RuntimeSpecMapInnerMap<R>} */
(this._map).keys(),
keyToRuntime
);
}
} |
1,283,232 | f3563fe9191cdeb4c072420e1a113b2e | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=636-648/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecMap::values | function | /**
* @returns {IterableIterator<R>} values
*/
values() {
switch (this._mode) {
case 0:
return [][Symbol.iterator]();
case 1:
return [/** @type {R} */ (this._singleValue)][Symbol.iterator]();
default:
return /** @type {RuntimeSpecMapInnerMap<R>} */ (this._map).values();
}
} |
1,283,233 | 9f1b47269fa52cbd86effaf29b7e6024 | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=650-656/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecMap::size | function | get size() {
if (/** @type {number} */ (this._mode) <= 1) {
return /** @type {number} */ (this._mode);
}
return /** @type {RuntimeSpecMapInnerMap<R>} */ (this._map).size;
} |
1,283,234 | 64a3516d1f33d863ba1f4cac57541073 | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=660-671/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecSet::constructor | function | /**
* @param {Iterable<RuntimeSpec>=} iterable iterable
*/
constructor(iterable) {
/** @type {Map<string, RuntimeSpec>} */
this._map = new Map();
if (iterable) {
for (const item of iterable) {
this.add(item);
}
}
} |
1,283,235 | 9ebbdf04c48684dc812db5420ea6d1a4 | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=680-686/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecSet::has | function | /**
* @param {RuntimeSpec} runtime runtime
* @returns {boolean} true, when the runtime exists
*/
has(runtime) {
return this._map.has(getRuntimeKey(runtime));
} |
1,283,236 | 1afce2f6c000b223e59779b47bdc2657 | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=695-697/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecSet::size | function | get size() {
return this._map.size;
} |
1,283,237 | 759c516a83d013720f8325bc43569895 | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=688-693/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecSet::[Symbol.iterator] | function | /**
* @returns {IterableIterator<RuntimeSpec>} iterable iterator
*/
[Symbol.iterator]() {
return this._map.values();
} |
1,283,238 | 1f3af7b563426622de4c1618e8bbc080 | swh:1:cnt:b685e4903306d580e31d13c432224991258055fc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=673-678/ | 11b2a0e4b0afe79703c66e1e459f5408c193746a | wlbdashboard | wmcs | node_modules/webpack/lib/util/runtime.js | RuntimeSpecSet::add | function | /**
* @param {RuntimeSpec} runtime runtime
*/
add(runtime) {
this._map.set(getRuntimeKey(runtime), runtime);
} |
1,283,239 | c4a2f74e494ada5b320318156bae96b1 | swh:1:cnt:66b9ad938e06b42a278c54d24f89b223189c32e8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-49/ | 90aad84532623732cdc517fb555c9309a6627122 | wlbdashboard | wmcs | node_modules/webpack/lib/util/Semaphore.js | Semaphore | type | class Semaphore {
/**
* Creates an instance of Semaphore.
* @param {number} available the amount available number of "tasks"
* in the Semaphore
*/
constructor(available) {
this.available = available;
/** @type {(() => void)[]} */
this.waiters = [];
/** @private */
this._continue = this._continue.bin... |
1,283,240 | 8cad55380c3f58d540d82b4520833388 | swh:1:cnt:66b9ad938e06b42a278c54d24f89b223189c32e8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-20/ | 90aad84532623732cdc517fb555c9309a6627122 | wlbdashboard | wmcs | node_modules/webpack/lib/util/Semaphore.js | Semaphore::constructor | function | /**
* Creates an instance of Semaphore.
* @param {number} available the amount available number of "tasks"
* in the Semaphore
*/
constructor(available) {
this.available = available;
/** @type {(() => void)[]} */
this.waiters = [];
/** @private */
this._continue = this._continue.bind(this);
} |
1,283,241 | d4a03370ce0d4ade3640d4c94499a225 | swh:1:cnt:66b9ad938e06b42a278c54d24f89b223189c32e8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=42-48/ | 90aad84532623732cdc517fb555c9309a6627122 | wlbdashboard | wmcs | node_modules/webpack/lib/util/Semaphore.js | Semaphore::_continue | function | _continue() {
if (this.available > 0 && this.waiters.length > 0) {
this.available--;
const callback = /** @type {(() => void)} */ (this.waiters.pop());
callback();
}
} |
1,283,242 | bd6dc143d4372ad519d37ea916b61224 | swh:1:cnt:66b9ad938e06b42a278c54d24f89b223189c32e8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-33/ | 90aad84532623732cdc517fb555c9309a6627122 | wlbdashboard | wmcs | node_modules/webpack/lib/util/Semaphore.js | Semaphore::acquire | function | /**
* @param {() => void} callback function block to capture and run
* @returns {void}
*/
acquire(callback) {
if (this.available > 0) {
this.available--;
callback();
} else {
this.waiters.push(callback);
}
} |
1,283,243 | 80749308bf1f06a3a95add909a3f1d07 | swh:1:cnt:66b9ad938e06b42a278c54d24f89b223189c32e8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-40/ | 90aad84532623732cdc517fb555c9309a6627122 | wlbdashboard | wmcs | node_modules/webpack/lib/util/Semaphore.js | Semaphore::release | function | release() {
this.available++;
if (this.waiters.length > 0) {
process.nextTick(this._continue);
}
} |
1,283,244 | 1bf15b48379ad6826a9dab4cc04d5930 | swh:1:cnt:e61893fd36ffff1acbd694b1951feb055a6dcd52;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=365-367/ | fc6988fd2ed87925ef4c298fba287b8d240c785c | wlbdashboard | wmcs | node_modules/webpack/lib/util/semver.js | pop | function | function pop() {
return /** @type {string} */ (stack.pop()).replace(/^\((.+)\)$/, "$1");
} |
1,283,245 | ce35c42048a7001305e32ff450357b7e | swh:1:cnt:a29532df6802e6ed12417fb8613bc8f28b33401c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=84-87/ | af973ee013e2766c3c76dfcaf6d94f3ce472d99a | wlbdashboard | wmcs | node_modules/webpack/lib/util/serialization.js | MEASURE_END_OPERATION | function | /** @type {MEASURE_END_OPERATION} */
get MEASURE_END_OPERATION() {
return getBinaryMiddleware().MEASURE_END_OPERATION;
} |
1,283,246 | 34af47858f8a021ea60506c18ee803fb | swh:1:cnt:a29532df6802e6ed12417fb8613bc8f28b33401c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=74-76/ | af973ee013e2766c3c76dfcaf6d94f3ce472d99a | wlbdashboard | wmcs | node_modules/webpack/lib/util/serialization.js | registerNotSerializable | function | get registerNotSerializable() {
return getObjectMiddleware().registerNotSerializable;
} |
1,283,247 | 8d945e5adb41aa78f420c3616fa6b957 | swh:1:cnt:a29532df6802e6ed12417fb8613bc8f28b33401c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=71-73/ | af973ee013e2766c3c76dfcaf6d94f3ce472d99a | wlbdashboard | wmcs | node_modules/webpack/lib/util/serialization.js | registerLoader | function | get registerLoader() {
return getObjectMiddleware().registerLoader;
} |
1,283,248 | 50b2918cdc4dc0641e942d6c3c2c24c8 | swh:1:cnt:a29532df6802e6ed12417fb8613bc8f28b33401c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=77-79/ | af973ee013e2766c3c76dfcaf6d94f3ce472d99a | wlbdashboard | wmcs | node_modules/webpack/lib/util/serialization.js | NOT_SERIALIZABLE | function | get NOT_SERIALIZABLE() {
return getObjectMiddleware().NOT_SERIALIZABLE;
} |
1,283,249 | 90643746a23cbd35143eb889bb5a1f61 | swh:1:cnt:a29532df6802e6ed12417fb8613bc8f28b33401c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=88-110/ | af973ee013e2766c3c76dfcaf6d94f3ce472d99a | wlbdashboard | wmcs | node_modules/webpack/lib/util/serialization.js | buffersSerializer | function | get buffersSerializer() {
if (buffersSerializer !== undefined) return buffersSerializer;
registerSerializers();
const Serializer = getSerializer();
const binaryMiddleware = getBinaryMiddlewareInstance();
const SerializerMiddleware = getSerializerMiddleware();
const SingleItemMiddleware = getSingleItemMiddle... |
1,283,250 | 795265e01d33f6918c19296befdf521a | swh:1:cnt:a29532df6802e6ed12417fb8613bc8f28b33401c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=80-83/ | af973ee013e2766c3c76dfcaf6d94f3ce472d99a | wlbdashboard | wmcs | node_modules/webpack/lib/util/serialization.js | MEASURE_START_OPERATION | function | /** @type {MEASURE_START_OPERATION} */
get MEASURE_START_OPERATION() {
return getBinaryMiddleware().MEASURE_START_OPERATION;
} |
1,283,251 | 64728048fb2dda7d68afb430ef6598ff | swh:1:cnt:a29532df6802e6ed12417fb8613bc8f28b33401c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-70/ | af973ee013e2766c3c76dfcaf6d94f3ce472d99a | wlbdashboard | wmcs | node_modules/webpack/lib/util/serialization.js | register | function | get register() {
return getObjectMiddleware().register;
} |
1,283,252 | 0422731d6881e9b83382340fca3232a5 | swh:1:cnt:44175eddbf2575ebd8719c0144fe3d3be311e6fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-174/ | ad3c407cc82665e2bfdc18ec478bf480fc1f4a1a | wlbdashboard | wmcs | node_modules/webpack/lib/util/SortableSet.js | SortableSet | type | /**
* A subset of Set that offers sorting functionality
* @template T item type in set
* @extends {Set<T>}
*/
class SortableSet extends Set {
/**
* Create a new sortable set
* @template T
* @typedef {(a: T, b: T) => number} SortFunction
* @param {Iterable<T>=} initialIterable The initial iterable value
*... |
1,283,253 | 60c71b6cc4b2ebdc3ad5628605ef0d95 | swh:1:cnt:44175eddbf2575ebd8719c0144fe3d3be311e6fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=16-47/ | ad3c407cc82665e2bfdc18ec478bf480fc1f4a1a | wlbdashboard | wmcs | node_modules/webpack/lib/util/SortableSet.js | SortableSet::constructor | function | /**
* Create a new sortable set
* @template T
* @typedef {(a: T, b: T) => number} SortFunction
* @param {Iterable<T>=} initialIterable The initial iterable value
* @param {SortFunction<T>=} defaultSort Default sorting function
*/
constructor(initialIterable, defaultSort) {
super(initialIterable);
/**
... |
1,283,254 | f50f426cf7bf3b2404f8c46412598bdb | swh:1:cnt:44175eddbf2575ebd8719c0144fe3d3be311e6fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=61-69/ | ad3c407cc82665e2bfdc18ec478bf480fc1f4a1a | wlbdashboard | wmcs | node_modules/webpack/lib/util/SortableSet.js | SortableSet::delete | function | /**
* @param {T} value value to delete
* @returns {boolean} true if value existed in set, false otherwise
*/
delete(value) {
this._invalidateCache();
this._invalidateOrderedCache();
return super.delete(value);
} |
1,283,255 | d0dde95d43663ef851c2e9d3378f5f60 | swh:1:cnt:44175eddbf2575ebd8719c0144fe3d3be311e6fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=80-99/ | ad3c407cc82665e2bfdc18ec478bf480fc1f4a1a | wlbdashboard | wmcs | node_modules/webpack/lib/util/SortableSet.js | SortableSet::sortWith | function | /**
* Sort with a comparer function
* @param {SortFunction<T> | undefined} sortFn Sorting comparer function
* @returns {void}
*/
sortWith(sortFn) {
if (this.size <= 1 || sortFn === this._lastActiveSortFn) {
// already sorted - nothing to do
return;
}
/** @type {T[]} */
const sortedArray = [...th... |
1,283,256 | d1aa634b279b0dafc2e094280928d4ad | swh:1:cnt:44175eddbf2575ebd8719c0144fe3d3be311e6fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=71-78/ | ad3c407cc82665e2bfdc18ec478bf480fc1f4a1a | wlbdashboard | wmcs | node_modules/webpack/lib/util/SortableSet.js | SortableSet::clear | function | /**
* @returns {void}
*/
clear() {
this._invalidateCache();
this._invalidateOrderedCache();
return super.clear();
} |
1,283,257 | da62e89195398bf19ce506d2388eb65b | swh:1:cnt:44175eddbf2575ebd8719c0144fe3d3be311e6fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=49-59/ | ad3c407cc82665e2bfdc18ec478bf480fc1f4a1a | wlbdashboard | wmcs | node_modules/webpack/lib/util/SortableSet.js | SortableSet::add | function | /**
* @param {T} value value to add to set
* @returns {this} returns itself
*/
add(value) {
this._lastActiveSortFn = NONE;
this._invalidateCache();
this._invalidateOrderedCache();
super.add(value);
return this;
} |
1,283,258 | c270145b506bc67f773736d474044684 | swh:1:cnt:44175eddbf2575ebd8719c0144fe3d3be311e6fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=101-104/ | ad3c407cc82665e2bfdc18ec478bf480fc1f4a1a | wlbdashboard | wmcs | node_modules/webpack/lib/util/SortableSet.js | SortableSet::sort | function | sort() {
this.sortWith(this._sortFn);
return this;
} |
1,283,259 | 1a91e9fe91fbdeb88783e624012ebad0 | swh:1:cnt:44175eddbf2575ebd8719c0144fe3d3be311e6fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=106-125/ | ad3c407cc82665e2bfdc18ec478bf480fc1f4a1a | wlbdashboard | wmcs | node_modules/webpack/lib/util/SortableSet.js | SortableSet::getFromCache | function | /**
* Get data from cache
* @template {EXPECTED_ANY} R
* @param {(set: SortableSet<T>) => R} fn function to calculate value
* @returns {R} returns result of fn(this), cached until set changes
*/
getFromCache(fn) {
if (this._cache === undefined) {
this._cache = new Map();
} else {
const result = thi... |
1,283,260 | 2e90ad744da21617dda5f07bebe56bcb | swh:1:cnt:44175eddbf2575ebd8719c0144fe3d3be311e6fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=127-146/ | ad3c407cc82665e2bfdc18ec478bf480fc1f4a1a | wlbdashboard | wmcs | node_modules/webpack/lib/util/SortableSet.js | SortableSet::getFromUnorderedCache | function | /**
* Get data from cache (ignoring sorting)
* @template R
* @param {(set: SortableSet<T>) => R} fn function to calculate value
* @returns {R} returns result of fn(this), cached until set changes
*/
getFromUnorderedCache(fn) {
if (this._cacheOrderIndependent === undefined) {
this._cacheOrderIndependent ... |
1,283,261 | bb562060f5e7c415709b1d4d41717555 | swh:1:cnt:44175eddbf2575ebd8719c0144fe3d3be311e6fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=148-156/ | ad3c407cc82665e2bfdc18ec478bf480fc1f4a1a | wlbdashboard | wmcs | node_modules/webpack/lib/util/SortableSet.js | SortableSet::_invalidateCache | function | /**
* @private
* @returns {void}
*/
_invalidateCache() {
if (this._cache !== undefined) {
this._cache.clear();
}
} |
1,283,262 | 5ffda4844bc7f252474a4687c30dd39c | swh:1:cnt:44175eddbf2575ebd8719c0144fe3d3be311e6fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=158-166/ | ad3c407cc82665e2bfdc18ec478bf480fc1f4a1a | wlbdashboard | wmcs | node_modules/webpack/lib/util/SortableSet.js | SortableSet::_invalidateOrderedCache | function | /**
* @private
* @returns {void}
*/
_invalidateOrderedCache() {
if (this._cacheOrderIndependent !== undefined) {
this._cacheOrderIndependent.clear();
}
} |
1,283,263 | c7032f2396bfda28440546780d0535fb | swh:1:cnt:44175eddbf2575ebd8719c0144fe3d3be311e6fb;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=168-173/ | ad3c407cc82665e2bfdc18ec478bf480fc1f4a1a | wlbdashboard | wmcs | node_modules/webpack/lib/util/SortableSet.js | SortableSet::toJSON | function | /**
* @returns {T[]} the raw array
*/
toJSON() {
return [...this];
} |
1,283,264 | 19d1c446680b081a33e7209c254d1316 | swh:1:cnt:ad7cc69c7b1a5bcb11f4945ee4028cf664633d8e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-138/ | ff51c50af43d64f7ce9b4818c991626f7d8e762b | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedCacheMap.js | StackedCacheMap | type | /**
* The StackedCacheMap is a data structure designed as an alternative to a Map
* in situations where you need to handle multiple item additions and
* frequently access the largest map.
*
* It is particularly optimized for efficiently adding multiple items
* at once, which can be achieved using the `addAll` met... |
1,283,265 | 8fbfee82f301c0c1254086142e1ef256 | swh:1:cnt:ad7cc69c7b1a5bcb11f4945ee4028cf664633d8e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=34-39/ | ff51c50af43d64f7ce9b4818c991626f7d8e762b | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedCacheMap.js | StackedCacheMap::constructor | function | constructor() {
/** @type {Map<K, V>} */
this.map = new Map();
/** @type {ReadonlyMap<K, V>[]} */
this.stack = [];
} |
1,283,266 | 190b5729b1ec6201147db726676a22c5 | swh:1:cnt:ad7cc69c7b1a5bcb11f4945ee4028cf664633d8e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=75-81/ | ff51c50af43d64f7ce9b4818c991626f7d8e762b | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedCacheMap.js | StackedCacheMap::delete | function | /**
* @param {K} item the item to delete
* @returns {void}
*/
delete(item) {
throw new Error("Items can't be deleted from a StackedCacheMap");
} |
1,283,267 | ee4d7701e9416506fb8bdccc015a7f10 | swh:1:cnt:ad7cc69c7b1a5bcb11f4945ee4028cf664633d8e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=66-73/ | ff51c50af43d64f7ce9b4818c991626f7d8e762b | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedCacheMap.js | StackedCacheMap::set | function | /**
* @param {K} item the key of the element to add
* @param {V} value the value of the element to add
* @returns {void}
*/
set(item, value) {
this.map.set(item, value);
} |
1,283,268 | 6edb8eb4b35ecdbdab2ee11cbabeaa90 | swh:1:cnt:ad7cc69c7b1a5bcb11f4945ee4028cf664633d8e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-64/ | ff51c50af43d64f7ce9b4818c991626f7d8e762b | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedCacheMap.js | StackedCacheMap::addAll | function | /**
* If `immutable` is true, the map can be referenced by the StackedCacheMap
* and should not be changed afterwards. If the map is mutable, all items
* are copied into a fallback Map.
* @param {ReadonlyMap<K, V>} map map to add
* @param {boolean=} immutable if 'map' is immutable and StackedCacheMap can keep... |
1,283,269 | b69cc74fae66960ff5f47049a69c4ec2 | swh:1:cnt:ad7cc69c7b1a5bcb11f4945ee4028cf664633d8e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=83-91/ | ff51c50af43d64f7ce9b4818c991626f7d8e762b | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedCacheMap.js | StackedCacheMap::has | function | /**
* @param {K} item the item to test
* @returns {boolean} true if the item exists in this set
*/
has(item) {
throw new Error(
"Checking StackedCacheMap.has before reading is inefficient, use StackedCacheMap.get and check for undefined"
);
} |
1,283,270 | e248ba4ae617364e9b619770aebd97f1 | swh:1:cnt:ad7cc69c7b1a5bcb11f4945ee4028cf664633d8e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=93-103/ | ff51c50af43d64f7ce9b4818c991626f7d8e762b | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedCacheMap.js | StackedCacheMap::get | function | /**
* @param {K} item the key of the element to return
* @returns {V | undefined} the value of the element
*/
get(item) {
for (const map of this.stack) {
const value = map.get(item);
if (value !== undefined) return value;
}
return this.map.get(item);
} |
1,283,271 | 15101fd1726c17b80b9ed5d8cda4166b | swh:1:cnt:ad7cc69c7b1a5bcb11f4945ee4028cf664633d8e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=105-108/ | ff51c50af43d64f7ce9b4818c991626f7d8e762b | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedCacheMap.js | StackedCacheMap::clear | function | clear() {
this.stack.length = 0;
this.map.clear();
} |
1,283,272 | be9700f8ccb212d34f22c78c0faf27f0 | swh:1:cnt:ad7cc69c7b1a5bcb11f4945ee4028cf664633d8e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=110-119/ | ff51c50af43d64f7ce9b4818c991626f7d8e762b | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedCacheMap.js | StackedCacheMap::size | function | /**
* @returns {number} size of the map
*/
get size() {
let size = this.map.size;
for (const map of this.stack) {
size += map.size;
}
return size;
} |
1,283,273 | 89ac5f78803545b9301f1c1d1a5e800a | swh:1:cnt:ad7cc69c7b1a5bcb11f4945ee4028cf664633d8e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=121-137/ | ff51c50af43d64f7ce9b4818c991626f7d8e762b | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedCacheMap.js | StackedCacheMap::[Symbol.iterator] | function | /**
* @returns {Iterator<[K, V]>} iterator
*/
[Symbol.iterator]() {
const iterators = this.stack.map((map) => map[Symbol.iterator]());
let current = this.map[Symbol.iterator]();
return {
next() {
let result = current.next();
while (result.done && iterators.length > 0) {
current = /** @type {M... |
1,283,274 | 5c0ffcb41a275a54fb853ccaacba950c | swh:1:cnt:ad7cc69c7b1a5bcb11f4945ee4028cf664633d8e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=128-135/ | ff51c50af43d64f7ce9b4818c991626f7d8e762b | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedCacheMap.js | StackedCacheMap::[Symbol.iterator]::next | function | next() {
let result = current.next();
while (result.done && iterators.length > 0) {
current = /** @type {MapIterator<[K, V]>} */ (iterators.pop());
result = current.next();
}
return result;
} |
1,283,275 | cca5ec55eeb9ea9fd77bf5a9557c4e6f | swh:1:cnt:d515db21712f88d3aca6b82724109187002c82c5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=36-162/ | 4c59ea7f5ad978d175b3a6ba8b57e6621d2202f1 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedMap.js | StackedMap | type | /**
* @template K
* @template V
*/
class StackedMap {
/**
* @param {Map<K, InternalCell<V>>[]=} parentStack an optional parent
*/
constructor(parentStack) {
/** @type {Map<K, InternalCell<V>>} */
this.map = new Map();
/** @type {Map<K, InternalCell<V>>[]} */
this.stack = parentStack === undefined ? [] ... |
1,283,276 | 9723ccee57ed532f7cb5bd39817ae835 | swh:1:cnt:d515db21712f88d3aca6b82724109187002c82c5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-50/ | 4c59ea7f5ad978d175b3a6ba8b57e6621d2202f1 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedMap.js | StackedMap::constructor | function | /**
* @param {Map<K, InternalCell<V>>[]=} parentStack an optional parent
*/
constructor(parentStack) {
/** @type {Map<K, InternalCell<V>>} */
this.map = new Map();
/** @type {Map<K, InternalCell<V>>[]} */
this.stack = parentStack === undefined ? [] : [...parentStack];
this.stack.push(this.map);
} |
1,283,277 | 9b8283feb5f40da9aa9f15d51ac45e70 | swh:1:cnt:d515db21712f88d3aca6b82724109187002c82c5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=61-71/ | 4c59ea7f5ad978d175b3a6ba8b57e6621d2202f1 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedMap.js | StackedMap::delete | function | /**
* @param {K} item the item to delete
* @returns {void}
*/
delete(item) {
if (this.stack.length > 1) {
this.map.set(item, TOMBSTONE);
} else {
this.map.delete(item);
}
} |
1,283,278 | c3827b967b68d52c292b71ee3facf3e5 | swh:1:cnt:d515db21712f88d3aca6b82724109187002c82c5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=73-93/ | 4c59ea7f5ad978d175b3a6ba8b57e6621d2202f1 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedMap.js | StackedMap::has | function | /**
* @param {K} item the item to test
* @returns {boolean} true if the item exists in this set
*/
has(item) {
const topValue = this.map.get(item);
if (topValue !== undefined) {
return topValue !== TOMBSTONE;
}
if (this.stack.length > 1) {
for (let i = this.stack.length - 2; i >= 0; i--) {
cons... |
1,283,279 | 247f11f34bed457d9865bd11ff0edc99 | swh:1:cnt:d515db21712f88d3aca6b82724109187002c82c5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=52-59/ | 4c59ea7f5ad978d175b3a6ba8b57e6621d2202f1 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedMap.js | StackedMap::set | function | /**
* @param {K} item the key of the element to add
* @param {V} value the value of the element to add
* @returns {void}
*/
set(item, value) {
this.map.set(item, value === undefined ? UNDEFINED_MARKER : value);
} |
1,283,280 | fe4f9c9b152ff66b8875dbabacb7d3c2 | swh:1:cnt:d515db21712f88d3aca6b82724109187002c82c5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=95-118/ | 4c59ea7f5ad978d175b3a6ba8b57e6621d2202f1 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedMap.js | StackedMap::get | function | /**
* @param {K} item the key of the element to return
* @returns {Cell<V>} the value of the element
*/
get(item) {
const topValue = this.map.get(item);
if (topValue !== undefined) {
return topValue === TOMBSTONE || topValue === UNDEFINED_MARKER
? undefined
: topValue;
}
if (this.stack.length ... |
1,283,281 | f94ff94c65dcdd05424d07517765f92d | swh:1:cnt:d515db21712f88d3aca6b82724109187002c82c5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=120-133/ | 4c59ea7f5ad978d175b3a6ba8b57e6621d2202f1 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedMap.js | StackedMap::_compress | function | _compress() {
if (this.stack.length === 1) return;
this.map = new Map();
for (const data of this.stack) {
for (const pair of data) {
if (pair[1] === TOMBSTONE) {
this.map.delete(pair[0]);
} else {
this.map.set(pair[0], pair[1]);
}
}
}
this.stack = [this.map];
} |
1,283,282 | 167d81fc48ca66476c6f8e6dd31eb733 | swh:1:cnt:d515db21712f88d3aca6b82724109187002c82c5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=135-138/ | 4c59ea7f5ad978d175b3a6ba8b57e6621d2202f1 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedMap.js | StackedMap::asArray | function | asArray() {
this._compress();
return [...this.map.keys()];
} |
1,283,283 | 1db5ca16ee5b5d060fc34164621b33b6 | swh:1:cnt:d515db21712f88d3aca6b82724109187002c82c5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=140-143/ | 4c59ea7f5ad978d175b3a6ba8b57e6621d2202f1 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedMap.js | StackedMap::asSet | function | asSet() {
this._compress();
return new Set(this.map.keys());
} |
1,283,284 | 0b33b433344edabb415ce2592d321482 | swh:1:cnt:d515db21712f88d3aca6b82724109187002c82c5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=145-148/ | 4c59ea7f5ad978d175b3a6ba8b57e6621d2202f1 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedMap.js | StackedMap::asPairArray | function | asPairArray() {
this._compress();
return Array.from(this.map.entries(), extractPair);
} |
1,283,285 | a2c65a68d3c2380575cd4e0f5e8be3c4 | swh:1:cnt:d515db21712f88d3aca6b82724109187002c82c5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=150-152/ | 4c59ea7f5ad978d175b3a6ba8b57e6621d2202f1 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedMap.js | StackedMap::asMap | function | asMap() {
return new Map(this.asPairArray());
} |
1,283,286 | 1eb2104b71c873ce2d69a8c1bba4fcc1 | swh:1:cnt:d515db21712f88d3aca6b82724109187002c82c5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=154-157/ | 4c59ea7f5ad978d175b3a6ba8b57e6621d2202f1 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedMap.js | StackedMap::size | function | get size() {
this._compress();
return this.map.size;
} |
1,283,287 | f22995c186ee553b669a97b31c4add81 | swh:1:cnt:d515db21712f88d3aca6b82724109187002c82c5;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=159-161/ | 4c59ea7f5ad978d175b3a6ba8b57e6621d2202f1 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StackedMap.js | StackedMap::createChild | function | createChild() {
return new StackedMap(this.stack);
} |
1,283,288 | b22aaf9a64e8d0640c618de37653c8b1 | swh:1:cnt:e38676ed83dbdc9e3242481a36e17e8d4c6f1a2e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-101/ | 49f60f1aa4d77cac379ec04cf3164eaaa9249288 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StringXor.js | StringXor | type | /** @typedef {import("../util/Hash")} Hash */
/**
* StringXor class provides methods for performing
* [XOR operations](https://en.wikipedia.org/wiki/Exclusive_or) on strings. In this context
* we operating on the character codes of two strings, which are represented as
* [Buffer](https://nodejs.org/api/buffer.html... |
1,283,289 | a405b8174cfb95068c27589fb4675e01 | swh:1:cnt:e38676ed83dbdc9e3242481a36e17e8d4c6f1a2e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-41/ | 49f60f1aa4d77cac379ec04cf3164eaaa9249288 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StringXor.js | StringXor::constructor | function | constructor() {
/** @type {Buffer | undefined} */
this._value = undefined;
} |
1,283,290 | 3b0e1119a7aae7600a288f350402bbf7 | swh:1:cnt:e38676ed83dbdc9e3242481a36e17e8d4c6f1a2e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=93-100/ | 49f60f1aa4d77cac379ec04cf3164eaaa9249288 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StringXor.js | StringXor::updateHash | function | /**
* Updates the hash with the current state of the StringXor object.
* @param {Hash} hash Hash instance
*/
updateHash(hash) {
const value = this._value;
if (value !== undefined) hash.update(value);
} |
1,283,291 | 732600cf2563925849737eef70d006ac | swh:1:cnt:e38676ed83dbdc9e3242481a36e17e8d4c6f1a2e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=43-79/ | 49f60f1aa4d77cac379ec04cf3164eaaa9249288 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StringXor.js | StringXor::add | function | /**
* Adds a string to the current StringXor object.
* @param {string} str string
* @returns {void}
*/
add(str) {
const len = str.length;
const value = this._value;
if (value === undefined) {
/**
* We are choosing to use Buffer.allocUnsafe() because it is often faster than Buffer.alloc() because
... |
1,283,292 | d4919b210481c7bf6bbedb1928fc5736 | swh:1:cnt:e38676ed83dbdc9e3242481a36e17e8d4c6f1a2e;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=81-91/ | 49f60f1aa4d77cac379ec04cf3164eaaa9249288 | wlbdashboard | wmcs | node_modules/webpack/lib/util/StringXor.js | StringXor::toString | function | /**
* Returns a string that represents the current state of the StringXor object. We chose to use "latin1" encoding
* here because "latin1" encoding is a single-byte encoding that can represent all characters in the
* [ISO-8859-1 character set](https://en.wikipedia.org/wiki/ISO/IEC_8859-1). This is useful when wo... |
1,283,293 | f00b17010898147bf0b34118483ee0d9 | swh:1:cnt:24922e28ba5dea0ba4ec8d4d3b4328d3e7774921;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-43/ | 0ba4d43b994619a5a56bb19b0fc216f826a968cd | wlbdashboard | wmcs | node_modules/webpack/lib/util/traverseDestructuringAssignmentProperties.js | traverseDestructuringAssignmentProperties | function | /** @typedef {import("../javascript/JavascriptParser").DestructuringAssignmentProperties} DestructuringAssignmentProperties */
/** @typedef {import("../javascript/JavascriptParser").DestructuringAssignmentProperty} DestructuringAssignmentProperty */
/**
* Deep first traverse the properties of a destructuring assignme... |
1,283,294 | c34e93228dc1949a1f4768802bdfd7a1 | swh:1:cnt:e446582a37038c44c13fbb36b20c2172b0d24d10;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-68/ | cbcd61970bb19b51b1f2d30fddaf202fb9789756 | wlbdashboard | wmcs | node_modules/webpack/lib/util/TupleQueue.js | TupleQueue | type | /**
* @template T
* @template V
*/
class TupleQueue {
/**
* @param {Iterable<[T, V, ...EXPECTED_ANY]>=} items The initial elements.
*/
constructor(items) {
/**
* @private
* @type {TupleSet<T, V>}
*/
this._set = new TupleSet(items);
/**
* @private
* @type {Iterator<[T, V, ...EXPECTED_ANY]>}... |
1,283,295 | 63e711c4645811a057e48c7ae42db904 | swh:1:cnt:e446582a37038c44c13fbb36b20c2172b0d24d10;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-29/ | cbcd61970bb19b51b1f2d30fddaf202fb9789756 | wlbdashboard | wmcs | node_modules/webpack/lib/util/TupleQueue.js | TupleQueue::constructor | function | /**
* @param {Iterable<[T, V, ...EXPECTED_ANY]>=} items The initial elements.
*/
constructor(items) {
/**
* @private
* @type {TupleSet<T, V>}
*/
this._set = new TupleSet(items);
/**
* @private
* @type {Iterator<[T, V, ...EXPECTED_ANY]>}
*/
this._iterator = this._set[Symbol.iterator]();
} |
1,283,296 | 509dbf46577e9dfcf38417f383656bfb | swh:1:cnt:e446582a37038c44c13fbb36b20c2172b0d24d10;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-37/ | cbcd61970bb19b51b1f2d30fddaf202fb9789756 | wlbdashboard | wmcs | node_modules/webpack/lib/util/TupleQueue.js | TupleQueue::length | function | /**
* Returns the number of elements in this queue.
* @returns {number} The number of elements in this queue.
*/
get length() {
return this._set.size;
} |
1,283,297 | 9878bb0192c4b61f05f339d6de5ea03d | swh:1:cnt:e446582a37038c44c13fbb36b20c2172b0d24d10;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-46/ | cbcd61970bb19b51b1f2d30fddaf202fb9789756 | wlbdashboard | wmcs | node_modules/webpack/lib/util/TupleQueue.js | TupleQueue::enqueue | function | /**
* Appends the specified element to this queue.
* @param {[T, V, ...EXPECTED_ANY]} item The element to add.
* @returns {void}
*/
enqueue(...item) {
this._set.add(...item);
} |
1,283,298 | 2489e3d3d8a9946d6d09d148879f5f44 | swh:1:cnt:e446582a37038c44c13fbb36b20c2172b0d24d10;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=48-67/ | cbcd61970bb19b51b1f2d30fddaf202fb9789756 | wlbdashboard | wmcs | node_modules/webpack/lib/util/TupleQueue.js | TupleQueue::dequeue | function | /**
* Retrieves and removes the head of this queue.
* @returns {[T, V, ...EXPECTED_ANY] | undefined} The head of the queue of `undefined` if this queue is empty.
*/
dequeue() {
const result = this._iterator.next();
if (result.done) {
if (this._set.size > 0) {
this._iterator = this._set[Symbol.iterator... |
1,283,299 | c473ce3c4393327e6ad2437f0c0f4fd8 | swh:1:cnt:6c0e8783533fc4ddd9745aa3190b4a0b5b6a263a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-183/ | 587ed6a690e0ec235f4c37c6cf6771bb6ef7045a | wlbdashboard | wmcs | node_modules/webpack/lib/util/TupleSet.js | TupleSet | type | /**
* @template K
* @template V
* @typedef {Map<K, InnerMap<K, V> | Set<V>>} InnerMap
*/
/**
* @template T
* @template V
*/
class TupleSet {
/**
* @param {Iterable<[T, V, ...EXPECTED_ANY]>=} init init
*/
constructor(init) {
/** @type {InnerMap<T, V>} */
this._map = new Map();
this.size = 0;
if (in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.