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,284,700
f00947150d5730cc90fadc6b5e00b0cb
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=218-226/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
bufferClone
function
function bufferClone(buf) { if (buf.slice) { return buf.slice(0) } else { var view = new Uint8Array(buf.byteLength); view.set(new Uint8Array(buf)); return view.buffer } }
1,284,701
46aa0abf5e9a39b57450a0700bead786
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-35/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
isDataView
function
function isDataView(obj) { return obj && DataView.prototype.isPrototypeOf(obj) }
1,284,702
361ae356732ea4d0703c84626f178015
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=74-90/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
iteratorFor
function
// Build a destructive iterator for the value list function iteratorFor(items) { var iterator = { next: function() { var value = items.shift(); return {done: value === undefined, value: value} } }; if (support.iterable) { iterator[Symbol.iterator] = function() { ...
1,284,703
c4eac7d931004b3e0a6aeeadcf56cb09
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=173-179/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
consumed
function
function consumed(body) { if (body._noBody) return if (body.bodyUsed) { return Promise.reject(new TypeError('Already read')) } body.bodyUsed = true; }
1,284,704
b93d4a6649c351a36b3e61594b21789c
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=228-346/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
Body
function
function Body() { this.bodyUsed = false; this._initBody = function(body) { /* fetch-mock wraps the Response object in an ES6 Proxy to provide useful test harness features such as flush. However, on ES5 browsers without fetch or Proxy support pollyfills must be used; the pr...
1,284,705
a0d034ebe39c6985a65eb71d40809cc6
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=351-354/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
normalizeMethod
function
function normalizeMethod(method) { var upcased = method.toUpperCase(); return methods.indexOf(upcased) > -1 ? upcased : method }
1,284,706
41cbd3113d935f19148f13ffc6732b3d
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=542-544/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
fetch::abortXhr
function
function abortXhr() { xhr.abort(); }
1,284,707
9d58706b7a6e707163f826f5847c44de
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=583-589/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
fetch::fixUrl
function
function fixUrl(url) { try { return url === '' && g.location.href ? g.location.href : url } catch (e) { return url } }
1,284,708
294ad1af300c34af50d0e374ebd22144
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=67-72/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
normalizeValue
function
function normalizeValue(value) { if (typeof value !== 'string') { value = String(value); } return value }
1,284,709
98eb980b302b7a8cb704dccd4ac5b1ae
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=57-65/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
normalizeName
function
function normalizeName(name) { if (typeof name !== 'string') { name = String(name); } if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name) || name === '') { throw new TypeError('Invalid character in header field name: "' + name + '"') } return name.toLowerCase() }
1,284,710
b44dd9bfcf46e8248b3fc0410ebe9aff
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=199-206/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
readBlobAsText
function
function readBlobAsText(blob) { var reader = new FileReader(); var promise = fileReaderReady(reader); var match = /charset=([A-Za-z0-9_-]+)/.exec(blob.type); var encoding = match ? match[1] : 'utf-8'; reader.readAsText(blob, encoding); return promise }
1,284,711
612e022a53216fe2d55750673e047cdd
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=469-487/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
Response
function
function Response(bodyInit, options) { if (!(this instanceof Response)) { throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.') } if (!options) { options = {}; } this.type = 'default'; this.status = options.status === undef...
1,284,712
13227a6ba684aa450c613b6bfae7a105
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=439-465/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
parseHeaders
function
function parseHeaders(rawHeaders) { var headers = new Headers(); // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space // https://tools.ietf.org/html/rfc7230#section-3.2 var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); // Avoiding split v...
1,284,713
8e083d6d2ae5681e684c5df0a0650a10
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=532-639/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
fetch
function
function fetch(input, init) { return new Promise(function(resolve, reject) { var request = new Request(input, init); if (request.signal && request.signal.aborted) { return reject(new exports.DOMException('Aborted', 'AbortError')) } var xhr = new XMLHttpRequest(); function ab...
1,284,714
955e61d4320b9006bc1aaf631ba13780
swh:1:cnt:7a0d852f2bad0f0322f4c40656b926066dacdfe3;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=423-437/
57d563209c829431dd3cfe00defd2985ec148b31
wlbdashboard
wmcs
node_modules/whatwg-fetch/dist/fetch.umd.js
decode
function
function decode(body) { var form = new FormData(); body .trim() .split('&') .forEach(function(bytes) { if (bytes) { var split = bytes.split('='); var name = split.shift().replace(/\+/g, ' '); var value = split.join('=').replace(/\+/g, ' '); form....
1,284,715
e005c7eb2113de5c4ed2d84605f6c590
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-50/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMEType::type
function
set type(value) { value = asciiLowercase(String(value)); if (value.length === 0) { throw new Error("Invalid type: must be a non-empty string"); } if (!solelyContainsHTTPTokenCodePoints(value)) { throw new Error(`Invalid type ${value}: must contain only HTTP token code points`); } t...
1,284,716
f6e28263336e5f27878f8c3791797672
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=56-67/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMEType::subtype
function
set subtype(value) { value = asciiLowercase(String(value)); if (value.length === 0) { throw new Error("Invalid subtype: must be a non-empty string"); } if (!solelyContainsHTTPTokenCodePoints(value)) { throw new Error(`Invalid subtype ${value}: must contain only HTTP token code points`); ...
1,284,717
183ccb1c8cafe625e4d69a4963a8e7b2
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=120-123/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMEType::isXML
function
isXML() { return (this._subtype === "xml" && (this._type === "text" || this._type === "application")) || this._subtype.endsWith("+xml"); }
1,284,718
3157ce9525dbcb5a646c7a327c901b94
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=172-174/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMETypeParameters::forEach
function
forEach(callbackFn, thisArg) { this._map.forEach(callbackFn, thisArg); }
1,284,719
4d6ce6fc2bc91b9783a86cf683867f63
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=184-186/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMETypeParameters::entries
function
entries() { return this._map.entries(); }
1,284,720
391cfa009223fd900dcd99ad83e5031a
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=69-71/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMEType::parameters
function
get parameters() { return this._parameters; }
1,284,721
f388154f41dbb5ef316fe7c787479baf
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=124-126/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMEType::isHTML
function
isHTML() { return this._subtype === "html" && this._type === "text"; }
1,284,722
c1eedc8c8361581638fb54f6566f2e36
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=134-136/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMETypeParameters::size
function
get size() { return this._map.size; }
1,284,723
1828baa48bc3e91f6bd016737de50aee
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=143-146/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMETypeParameters::has
function
has(name) { name = asciiLowercase(String(name)); return this._map.has(name); }
1,284,724
d8955aab8312df38ff79e6f2b1113490
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=176-178/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMETypeParameters::keys
function
keys() { return this._map.keys(); }
1,284,725
53949ba5ef50ec2acf666d7340a07037
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-33/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMEType::essence
function
get essence() { return `${this.type}/${this.subtype}`; }
1,284,726
b57aa60f7304a74e22c9309358d393bb
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-29/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMEType::parse
function
static parse(string) { try { return new this(string); } catch (e) { return null; } }
1,284,727
ab11cd3f9cc887627a0c9003590b1d5b
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=73-77/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMEType::toString
function
toString() { // The serialize function works on both "MIME type records" (i.e. the results of parse) and on this class, since // this class's interface is identical. return serialize(this); }
1,284,728
7fdeea857bc240b90ba2c8347f8cf348
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=79-119/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMEType::isJavaScript
function
isJavaScript({ allowParameters = false } = {}) { switch (this._type) { case "text": { switch (this._subtype) { case "ecmascript": case "javascript": case "javascript1.0": case "javascript1.1": case "javascript1.2": case "javascript1.3": ...
1,284,729
34915ce5197686e081afd7e40df9638e
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=167-170/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMETypeParameters::delete
function
delete(name) { name = asciiLowercase(String(name)); return this._map.delete(name); }
1,284,730
4e7e025960b1475007a5676895133634
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=163-165/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMETypeParameters::clear
function
clear() { this._map.clear(); }
1,284,731
b285f45eb619df49fbb89178f24ae266
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=180-182/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMETypeParameters::values
function
values() { return this._map.values(); }
1,284,732
a44c02120e0e903ae8af58e4f1c5015d
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=188-190/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMETypeParameters::[Symbol.iterator]
function
[Symbol.iterator]() { return this._map[Symbol.iterator](); }
1,284,733
a9a0425c1132bfbe2f954a546bfadd14
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-21/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMEType::constructor
function
constructor(string) { string = String(string); const result = parse(string); if (result === null) { throw new Error(`Could not parse MIME type string "${string}"`); } this._type = result.type; this._subtype = result.subtype; this._parameters = new MIMETypeParameters(result.parameters)...
1,284,734
499595f5660f8f4ef2bc19421b459fa1
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=130-132/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMETypeParameters::constructor
function
constructor(map) { this._map = map; }
1,284,735
3b0c6069e18baee402bdb76259b8623f
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=148-161/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMETypeParameters::set
function
set(name, value) { name = asciiLowercase(String(name)); value = String(value); if (!solelyContainsHTTPTokenCodePoints(name)) { throw new Error(`Invalid MIME type parameter name "${name}": only HTTP token code points are valid.`); } if (!soleyContainsHTTPQuotedStringTokenCodePoints(value)) { ...
1,284,736
05331e91dccf8548da19eb4b3676ac80
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=138-141/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMETypeParameters::get
function
get(name) { name = asciiLowercase(String(name)); return this._map.get(name); }
1,284,737
7cf85aa43e93371b8a925b5a48cdb0ad
swh:1:cnt:5ab08675ed943d9ced39f40df830f50b75ea5bf6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=129-191/
ab04eb0c170c9a970f38d3c2815fef13b31f1c10
wlbdashboard
wmcs
node_modules/whatwg-mimetype/lib/mime-type.js
MIMETypeParameters
type
class MIMETypeParameters { constructor(map) { this._map = map; } get size() { return this._map.size; } get(name) { name = asciiLowercase(String(name)); return this._map.get(name); } has(name) { name = asciiLowercase(String(name)); return this._map.has(name); } set(name, val...
1,284,738
22cf16f8baa2348c2baac2ea8abe29fc
swh:1:cnt:2bf6fa359fca86b70f4068304b0850a9c68d9454;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-17/
c3c7f029bbacb4c5f475820605707068d5c92542
wlbdashboard
wmcs
node_modules/whatwg-url/dist/encoding.js
utf8Encode
function
function utf8Encode(string) { return utf8Encoder.encode(string); }
1,284,739
2ca580deb3df31cb112b0885d296f233
swh:1:cnt:2bf6fa359fca86b70f4068304b0850a9c68d9454;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-21/
c3c7f029bbacb4c5f475820605707068d5c92542
wlbdashboard
wmcs
node_modules/whatwg-url/dist/encoding.js
utf8DecodeWithoutBOM
function
function utf8DecodeWithoutBOM(bytes) { return utf8Decoder.decode(bytes); }
1,284,740
cc43a9f32b0dd46a201c15d09f19285a
swh:1:cnt:bf5c80898c110600e3a29dc54d7df39df62aa654;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-28/
4c04136e384f51b14465574c3eb9a277ff95b6bb
wlbdashboard
wmcs
node_modules/whatwg-url/dist/Function.js
invokeTheCallbackFunction
function
function invokeTheCallbackFunction(...args) { if (new.target !== undefined) { throw new Error("Internal error: invokeTheCallbackFunction is not a constructor"); } const thisArg = utils.tryWrapperForImpl(this); let callResult; for (let i = 0; i < args.length; i++) { args[i] = utils.tryW...
1,284,741
d3af718974a81853327d8cc06eb756ed
swh:1:cnt:4a984a3b3a8ab614216364ffa243ff6b21657a37;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-7/
3820ea42e37d0d07a21e6c1afbbacb7080a47a87
wlbdashboard
wmcs
node_modules/whatwg-url/dist/infra.js
isASCIIDigit
function
// Note that we take code points as JS numbers, not JS strings. function isASCIIDigit(c) { return c >= 0x30 && c <= 0x39; }
1,284,742
0f88b5e455b4bd38dcf24fd13f67f0a5
swh:1:cnt:4a984a3b3a8ab614216364ffa243ff6b21657a37;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-11/
3820ea42e37d0d07a21e6c1afbbacb7080a47a87
wlbdashboard
wmcs
node_modules/whatwg-url/dist/infra.js
isASCIIAlpha
function
function isASCIIAlpha(c) { return (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A); }
1,284,743
9d9dfbcb54e1acb75de2d1d252501adb
swh:1:cnt:4a984a3b3a8ab614216364ffa243ff6b21657a37;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-15/
3820ea42e37d0d07a21e6c1afbbacb7080a47a87
wlbdashboard
wmcs
node_modules/whatwg-url/dist/infra.js
isASCIIAlphanumeric
function
function isASCIIAlphanumeric(c) { return isASCIIAlpha(c) || isASCIIDigit(c); }
1,284,744
29e9aec2648ec3cdefeb68c1a2b85871
swh:1:cnt:4a984a3b3a8ab614216364ffa243ff6b21657a37;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-19/
3820ea42e37d0d07a21e6c1afbbacb7080a47a87
wlbdashboard
wmcs
node_modules/whatwg-url/dist/infra.js
isASCIIHex
function
function isASCIIHex(c) { return isASCIIDigit(c) || (c >= 0x41 && c <= 0x46) || (c >= 0x61 && c <= 0x66); }
1,284,745
53790fc50b846056022db9f5a9d5c858
swh:1:cnt:a12ab370f36e364b81af3cd5c6d17eaf86d56731;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-13/
2c0f153079565476c57fc94dba87740d12151f12
wlbdashboard
wmcs
node_modules/whatwg-url/dist/percent-encoding.js
percentEncode
function
// https://url.spec.whatwg.org/#percent-encode function percentEncode(c) { let hex = c.toString(16).toUpperCase(); if (hex.length === 1) { hex = `0${hex}`; } return `%${hex}`; }
1,284,746
15df9ec8b4586799a4a662491a1b0697
swh:1:cnt:a12ab370f36e364b81af3cd5c6d17eaf86d56731;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=44-47/
2c0f153079565476c57fc94dba87740d12151f12
wlbdashboard
wmcs
node_modules/whatwg-url/dist/percent-encoding.js
isC0ControlPercentEncode
function
// https://url.spec.whatwg.org/#c0-control-percent-encode-set function isC0ControlPercentEncode(c) { return c <= 0x1F || c > 0x7E; }
1,284,747
7770e1b09c2f0c8bbaf504e1d268a907
swh:1:cnt:a12ab370f36e364b81af3cd5c6d17eaf86d56731;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-36/
2c0f153079565476c57fc94dba87740d12151f12
wlbdashboard
wmcs
node_modules/whatwg-url/dist/percent-encoding.js
percentDecodeBytes
function
// https://url.spec.whatwg.org/#percent-decode function percentDecodeBytes(input) { const output = new Uint8Array(input.byteLength); let outputIndex = 0; for (let i = 0; i < input.byteLength; ++i) { const byte = input[i]; if (byte !== 0x25) { output[outputIndex++] = byte; } else if (byte === 0x2...
1,284,748
565a57f571cec9ff94c0b567fd67cee2
swh:1:cnt:a12ab370f36e364b81af3cd5c6d17eaf86d56731;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-42/
2c0f153079565476c57fc94dba87740d12151f12
wlbdashboard
wmcs
node_modules/whatwg-url/dist/percent-encoding.js
percentDecodeString
function
// https://url.spec.whatwg.org/#string-percent-decode function percentDecodeString(input) { const bytes = utf8Encode(input); return percentDecodeBytes(bytes); }
1,284,749
29f740ae3fceb6ba650934766339969a
swh:1:cnt:a12ab370f36e364b81af3cd5c6d17eaf86d56731;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=51-53/
2c0f153079565476c57fc94dba87740d12151f12
wlbdashboard
wmcs
node_modules/whatwg-url/dist/percent-encoding.js
isFragmentPercentEncode
function
function isFragmentPercentEncode(c) { return isC0ControlPercentEncode(c) || extraFragmentPercentEncodeSet.has(c); }
1,284,750
5bdc555a4e2513b0d4881a9041e413f3
swh:1:cnt:a12ab370f36e364b81af3cd5c6d17eaf86d56731;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=57-59/
2c0f153079565476c57fc94dba87740d12151f12
wlbdashboard
wmcs
node_modules/whatwg-url/dist/percent-encoding.js
isQueryPercentEncode
function
function isQueryPercentEncode(c) { return isC0ControlPercentEncode(c) || extraQueryPercentEncodeSet.has(c); }
1,284,751
f2fc6ecb76372bd5068f2d964e09af9b
swh:1:cnt:a12ab370f36e364b81af3cd5c6d17eaf86d56731;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=61-64/
2c0f153079565476c57fc94dba87740d12151f12
wlbdashboard
wmcs
node_modules/whatwg-url/dist/percent-encoding.js
isSpecialQueryPercentEncode
function
// https://url.spec.whatwg.org/#special-query-percent-encode-set function isSpecialQueryPercentEncode(c) { return isQueryPercentEncode(c) || c === 39; }
1,284,752
29771e1dfa26882c1aef6ecd19da8af1
swh:1:cnt:a12ab370f36e364b81af3cd5c6d17eaf86d56731;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-70/
2c0f153079565476c57fc94dba87740d12151f12
wlbdashboard
wmcs
node_modules/whatwg-url/dist/percent-encoding.js
isPathPercentEncode
function
function isPathPercentEncode(c) { return isQueryPercentEncode(c) || extraPathPercentEncodeSet.has(c); }
1,284,753
77cd2e868f6eee4381c9eb09b10f4f0e
swh:1:cnt:a12ab370f36e364b81af3cd5c6d17eaf86d56731;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=75-77/
2c0f153079565476c57fc94dba87740d12151f12
wlbdashboard
wmcs
node_modules/whatwg-url/dist/percent-encoding.js
isUserinfoPercentEncode
function
function isUserinfoPercentEncode(c) { return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c); }
1,284,754
0f4d100cff4fcc5b2c3d8f9784e41cdf
swh:1:cnt:a12ab370f36e364b81af3cd5c6d17eaf86d56731;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=81-83/
2c0f153079565476c57fc94dba87740d12151f12
wlbdashboard
wmcs
node_modules/whatwg-url/dist/percent-encoding.js
isComponentPercentEncode
function
function isComponentPercentEncode(c) { return isUserinfoPercentEncode(c) || extraComponentPercentEncodeSet.has(c); }
1,284,755
a7443a63fa62c841a07cad95a703ed2c
swh:1:cnt:a12ab370f36e364b81af3cd5c6d17eaf86d56731;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=91-109/
2c0f153079565476c57fc94dba87740d12151f12
wlbdashboard
wmcs
node_modules/whatwg-url/dist/percent-encoding.js
utf8PercentEncodeCodePointInternal
function
// https://url.spec.whatwg.org/#code-point-percent-encode-after-encoding // https://url.spec.whatwg.org/#utf-8-percent-encode // Assuming encoding is always utf-8 allows us to trim one of the logic branches. TODO: support encoding. // The "-Internal" variant here has code points as JS strings. The external version used...
1,284,756
e081a88d78001868a58c2b31f226af59
swh:1:cnt:a12ab370f36e364b81af3cd5c6d17eaf86d56731;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=87-89/
2c0f153079565476c57fc94dba87740d12151f12
wlbdashboard
wmcs
node_modules/whatwg-url/dist/percent-encoding.js
isURLEncodedPercentEncode
function
function isURLEncodedPercentEncode(c) { return isComponentPercentEncode(c) || extraURLEncodedPercentEncodeSet.has(c); }
1,284,757
867d628ea5f0dacfa2d7eb4fe1f1ecc9
swh:1:cnt:a12ab370f36e364b81af3cd5c6d17eaf86d56731;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=111-113/
2c0f153079565476c57fc94dba87740d12151f12
wlbdashboard
wmcs
node_modules/whatwg-url/dist/percent-encoding.js
utf8PercentEncodeCodePoint
function
function utf8PercentEncodeCodePoint(codePoint, percentEncodePredicate) { return utf8PercentEncodeCodePointInternal(String.fromCodePoint(codePoint), percentEncodePredicate); }
1,284,758
ae9acddcb003440cffe4f92b9c837a67
swh:1:cnt:a12ab370f36e364b81af3cd5c6d17eaf86d56731;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=115-127/
2c0f153079565476c57fc94dba87740d12151f12
wlbdashboard
wmcs
node_modules/whatwg-url/dist/percent-encoding.js
utf8PercentEncodeString
function
// https://url.spec.whatwg.org/#string-percent-encode-after-encoding // https://url.spec.whatwg.org/#string-utf-8-percent-encode function utf8PercentEncodeString(input, percentEncodePredicate, spaceAsPlus = false) { let output = ""; for (const codePoint of input) { if (spaceAsPlus && codePoint === " ") { ...
1,284,759
88a80e3efcaf9d4b74df31a6b842eb5a
swh:1:cnt:7a11661a4c86d3badabe2b309c0a4b858732cdbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-32/
a117bfcbf93d1ef424bec00e4a3339aa3fb73e67
wlbdashboard
wmcs
node_modules/whatwg-url/dist/URL-impl.js
URLImpl::constructor
function
constructor(globalObject, constructorArgs) { const url = constructorArgs[0]; const base = constructorArgs[1]; let parsedBase = null; if (base !== undefined) { parsedBase = usm.basicURLParse(base); if (parsedBase === null) { throw new TypeError(`Invalid base URL: ${base}`); } ...
1,284,760
7467ee06b21785e05c8c16c17aa3f94e
swh:1:cnt:7a11661a4c86d3badabe2b309c0a4b858732cdbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-51/
a117bfcbf93d1ef424bec00e4a3339aa3fb73e67
wlbdashboard
wmcs
node_modules/whatwg-url/dist/URL-impl.js
URLImpl::href
function
set href(v) { const parsedURL = usm.basicURLParse(v); if (parsedURL === null) { throw new TypeError(`Invalid URL: ${v}`); } this._url = parsedURL; this._query._list.splice(0); const { query } = parsedURL; if (query !== null) { this._query._list = urlencoded.parseUrlencodedStrin...
1,284,761
4949cbc5ddb757fe0f0c8a89d11f9e1d
swh:1:cnt:7a11661a4c86d3badabe2b309c0a4b858732cdbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=81-87/
a117bfcbf93d1ef424bec00e4a3339aa3fb73e67
wlbdashboard
wmcs
node_modules/whatwg-url/dist/URL-impl.js
URLImpl::password
function
set password(v) { if (usm.cannotHaveAUsernamePasswordPort(this._url)) { return; } usm.setThePassword(this._url, v); }
1,284,762
0a809800293c4f09e1676464e78125f1
swh:1:cnt:7a11661a4c86d3badabe2b309c0a4b858732cdbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=119-125/
a117bfcbf93d1ef424bec00e4a3339aa3fb73e67
wlbdashboard
wmcs
node_modules/whatwg-url/dist/URL-impl.js
URLImpl::hostname
function
set hostname(v) { if (this._url.cannotBeABaseURL) { return; } usm.basicURLParse(v, { url: this._url, stateOverride: "hostname" }); }
1,284,763
0ff00a0cb626c443a6c7cfac21f7b095
swh:1:cnt:7a11661a4c86d3badabe2b309c0a4b858732cdbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=135-145/
a117bfcbf93d1ef424bec00e4a3339aa3fb73e67
wlbdashboard
wmcs
node_modules/whatwg-url/dist/URL-impl.js
URLImpl::port
function
set port(v) { if (usm.cannotHaveAUsernamePasswordPort(this._url)) { return; } if (v === "") { this._url.port = null; } else { usm.basicURLParse(v, { url: this._url, stateOverride: "port" }); } }
1,284,764
e61377929921edcc03dce051cebcdff1
swh:1:cnt:7a11661a4c86d3badabe2b309c0a4b858732cdbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=147-157/
a117bfcbf93d1ef424bec00e4a3339aa3fb73e67
wlbdashboard
wmcs
node_modules/whatwg-url/dist/URL-impl.js
URLImpl::pathname
function
get pathname() { if (this._url.cannotBeABaseURL) { return this._url.path[0]; } if (this._url.path.length === 0) { return ""; } return `/${this._url.path.join("/")}`; }
1,284,765
412eac2162e812b9e364ac03e53022cd
swh:1:cnt:7a11661a4c86d3badabe2b309c0a4b858732cdbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=176-189/
a117bfcbf93d1ef424bec00e4a3339aa3fb73e67
wlbdashboard
wmcs
node_modules/whatwg-url/dist/URL-impl.js
URLImpl::search
function
set search(v) { const url = this._url; if (v === "") { url.query = null; this._query._list = []; return; } const input = v[0] === "?" ? v.substring(1) : v; url.query = ""; usm.basicURLParse(input, { url, stateOverride: "query" }); this._query._list = urlencoded.parseUrlen...
1,284,766
472c5ad204629fde4efca3171247d447
swh:1:cnt:7a11661a4c86d3badabe2b309c0a4b858732cdbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=53-55/
a117bfcbf93d1ef424bec00e4a3339aa3fb73e67
wlbdashboard
wmcs
node_modules/whatwg-url/dist/URL-impl.js
URLImpl::origin
function
get origin() { return usm.serializeURLOrigin(this._url); }
1,284,767
f28f43eaadd20b7bc6409d70e3152081
swh:1:cnt:7a11661a4c86d3badabe2b309c0a4b858732cdbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=69-75/
a117bfcbf93d1ef424bec00e4a3339aa3fb73e67
wlbdashboard
wmcs
node_modules/whatwg-url/dist/URL-impl.js
URLImpl::username
function
set username(v) { if (usm.cannotHaveAUsernamePasswordPort(this._url)) { return; } usm.setTheUsername(this._url, v); }
1,284,768
411cf1a9b829b9834cc2e75ce9ecc4c0
swh:1:cnt:7a11661a4c86d3badabe2b309c0a4b858732cdbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=89-101/
a117bfcbf93d1ef424bec00e4a3339aa3fb73e67
wlbdashboard
wmcs
node_modules/whatwg-url/dist/URL-impl.js
URLImpl::host
function
get host() { const url = this._url; if (url.host === null) { return ""; } if (url.port === null) { return usm.serializeHost(url.host); } return `${usm.serializeHost(url.host)}:${usm.serializeInteger(url.port)}`; }
1,284,769
c6a1aff3127033f09064485b7ed74064
swh:1:cnt:7a11661a4c86d3badabe2b309c0a4b858732cdbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=203-212/
a117bfcbf93d1ef424bec00e4a3339aa3fb73e67
wlbdashboard
wmcs
node_modules/whatwg-url/dist/URL-impl.js
URLImpl::hash
function
set hash(v) { if (v === "") { this._url.fragment = null; return; } const input = v[0] === "#" ? v.substring(1) : v; this._url.fragment = ""; usm.basicURLParse(input, { url: this._url, stateOverride: "fragment" }); }
1,284,770
9853e1b2b4268dc7b171ad64db5909fd
swh:1:cnt:7a11661a4c86d3badabe2b309c0a4b858732cdbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=191-193/
a117bfcbf93d1ef424bec00e4a3339aa3fb73e67
wlbdashboard
wmcs
node_modules/whatwg-url/dist/URL-impl.js
URLImpl::searchParams
function
get searchParams() { return this._query; }
1,284,771
9a16b95d4f4732d8111584c4c8cad25e
swh:1:cnt:7a11661a4c86d3badabe2b309c0a4b858732cdbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=214-216/
a117bfcbf93d1ef424bec00e4a3339aa3fb73e67
wlbdashboard
wmcs
node_modules/whatwg-url/dist/URL-impl.js
URLImpl::toJSON
function
toJSON() { return this.href; }
1,284,772
006a7b96202f7f8d76571e58f3326cca
swh:1:cnt:7a11661a4c86d3badabe2b309c0a4b858732cdbe;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=61-63/
a117bfcbf93d1ef424bec00e4a3339aa3fb73e67
wlbdashboard
wmcs
node_modules/whatwg-url/dist/URL-impl.js
URLImpl::protocol
function
set protocol(v) { usm.basicURLParse(`${v}:`, { url: this._url, stateOverride: "scheme start" }); }
1,284,773
e28be45ae80162e0e2f923f321bf732c
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-38/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
isDoubleDot
function
function isDoubleDot(buffer) { buffer = buffer.toLowerCase(); return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e"; }
1,284,774
c39e013b041dc3ac160d0c143ffc3e73
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=52-54/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
containsForbiddenHostCodePoint
function
function containsForbiddenHostCodePoint(string) { return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u) !== -1; }
1,284,775
a42bb118d16e7609793cd17362467547
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=106-149/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
parseIPv4
function
function parseIPv4(input) { const parts = input.split("."); if (parts[parts.length - 1] === "") { if (parts.length > 1) { parts.pop(); } } if (parts.length > 4) { return input; } const numbers = []; for (const part of parts) { if (part === "") { return input; } const ...
1,284,776
e78e0ef335c96457227c53519d9cc270
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=295-322/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
serializeIPv6
function
function serializeIPv6(address) { let output = ""; const compress = findLongestZeroSequence(address); let ignore0 = false; for (let pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) { if (ignore0 && address[pieceIndex] === 0) { continue; } else if (ignore0) { ignore0 = false; } if (co...
1,284,777
0504d314d11178f4ab22744df6eb94c8
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-70/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
isNotSpecial
function
function isNotSpecial(url) { return !isSpecialScheme(url.scheme); }
1,284,778
6c14677509ff790a1d2840228382489f
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=363-392/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
findLongestZeroSequence
function
function findLongestZeroSequence(arr) { let maxIdx = null; let maxLen = 1; // only find elements > 1 let currStart = null; let currLen = 0; for (let i = 0; i < arr.length; ++i) { if (arr[i] !== 0) { if (currLen > maxLen) { maxIdx = currStart; maxLen = currLen; } currSta...
1,284,779
d9dcd4c2b0c4f55a34478f288a46128d
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=407-419/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
domainToASCII
function
function domainToASCII(domain, beStrict = false) { const result = tr46.toASCII(domain, { checkBidi: true, checkHyphens: false, checkJoiners: true, useSTD3ASCIIRules: beStrict, verifyDNSLength: beStrict }); if (result === null || result === "") { return failure; } return result; }
1,284,780
678126bd53db607c0918646403a4ab77
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=441-443/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
includesCredentials
function
function includesCredentials(url) { return url.username !== "" || url.password !== ""; }
1,284,781
b0f311dd77a1c31d1818ac4ae54854da
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=449-451/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
isNormalizedWindowsDriveLetter
function
function isNormalizedWindowsDriveLetter(string) { return /^[A-Za-z]:$/u.test(string); }
1,284,782
d7b535c6332f614883c08c5a9f6d2015
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-29/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
at
function
function at(input, idx) { const c = input[idx]; return isNaN(c) ? undefined : String.fromCodePoint(c); }
1,284,783
ff48ba9eac8df2565bc7fef4a2a5c78c
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=44-46/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
isWindowsDriveLetterString
function
function isWindowsDriveLetterString(string) { return string.length === 2 && infra.isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|"); }
1,284,784
9ec1451a49a35ad703236958ac5c9940
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=48-50/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
isNormalizedWindowsDriveLetterString
function
function isNormalizedWindowsDriveLetterString(string) { return string.length === 2 && infra.isASCIIAlpha(string.codePointAt(0)) && string[1] === ":"; }
1,284,785
ccac96cb097d9e5c6da0e696af5c9705
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=355-361/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
parseOpaqueHost
function
function parseOpaqueHost(input) { if (containsForbiddenHostCodePointExcludingPercent(input)) { return failure; } return utf8PercentEncodeString(input, isC0ControlPercentEncode); }
1,284,786
6b0033d9375f14a76871b27032ebbe0a
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=394-405/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
serializeHost
function
function serializeHost(host) { if (typeof host === "number") { return serializeIPv4(host); } // IPv6 serializer if (host instanceof Array) { return `[${serializeIPv6(host)}]`; } return host; }
1,284,787
838c272a139e98e6bff845a63a1b0bad
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=425-427/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
trimTabAndNewline
function
function trimTabAndNewline(url) { return url.replace(/\u0009|\u000A|\u000D/ug, ""); }
1,284,788
b0d81ff07bd4b56a4975b8def833e93d
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=445-447/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
cannotHaveAUsernamePasswordPort
function
function cannotHaveAUsernamePasswordPort(url) { return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file"; }
1,284,789
cfebc1ea33c491c50671ab91d760f955
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=453-512/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
URLStateMachine
function
function URLStateMachine(input, base, encodingOverride, url, stateOverride) { this.pointer = 0; this.input = input; this.base = base || null; this.encodingOverride = encodingOverride || "utf-8"; this.stateOverride = stateOverride; this.url = url; this.failure = false; this.parseError = false; if (!th...
1,284,790
ba5926178d4969742741153580c89be3
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=151-164/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
serializeIPv4
function
function serializeIPv4(address) { let output = ""; let n = address; for (let i = 1; i <= 4; ++i) { output = String(n % 256) + output; if (i !== 4) { output = `.${output}`; } n = Math.floor(n / 256); } return output; }
1,284,791
dec909c09a2d5bf40505812c857c19aa
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=76-104/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
parseIPv4Number
function
function parseIPv4Number(input) { let R = 10; if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") { input = input.substring(2); R = 16; } else if (input.length >= 2 && input.charAt(0) === "0") { input = input.substring(1); R = 8; } if (input === "") { ...
1,284,792
127c0de3a1504948e0014c8d7c45e194
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=64-66/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
isSpecial
function
function isSpecial(url) { return isSpecialScheme(url.scheme); }
1,284,793
72921f139a7d3aedd8823b2e9d7b4a4f
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=421-423/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
trimControlChars
function
function trimControlChars(url) { return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/ug, ""); }
1,284,794
ec5ae2c26cc123ef12126ab85f24b381
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=429-439/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
shortenPath
function
function shortenPath(url) { const { path } = url; if (path.length === 0) { return; } if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) { return; } path.pop(); }
1,284,795
a9617664a58ee134aaf6718a894c37ae
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1084-1124/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
serializeURL
function
function serializeURL(url, excludeFragment) { let output = `${url.scheme}:`; if (url.host !== null) { output += "//"; if (url.username !== "" || url.password !== "") { output += url.username; if (url.password !== "") { output += `:${url.password}`; } output += "@"; } ...
1,284,796
1e095d47fbaba9aaf2ec2468c6706ee0
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1126-1135/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
serializeOrigin
function
function serializeOrigin(tuple) { let result = `${tuple.scheme}://`; result += serializeHost(tuple.host); if (tuple.port !== null) { result += `:${tuple.port}`; } return result; }
1,284,797
712ecbc68ab041edd13a59f4b6b19915
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-24/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
countSymbols
function
function countSymbols(str) { return [...str].length; }
1,284,798
4d5577e97384794639a6cb8c0f7882f4
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-33/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
isSingleDot
function
function isSingleDot(buffer) { return buffer === "." || buffer.toLowerCase() === "%2e"; }
1,284,799
0e71d3bdfb6fde6ce0cf808131b95485
swh:1:cnt:36400241f015ec55efa5479655aa7a2e26183bbc;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-42/
31039c9ff26b37c6e0438876f9c831b9759dec7a
wlbdashboard
wmcs
node_modules/whatwg-url/dist/url-state-machine.js
isWindowsDriveLetterCodePoints
function
function isWindowsDriveLetterCodePoints(cp1, cp2) { return infra.isASCIIAlpha(cp1) && (cp2 === 58 || cp2 === 124); }