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,288,900
d59c796fc427f2824ee1e8d402a82558
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-7/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
addCommentBefore
function
function addCommentBefore(str, indent, comment) { if (!comment) return str; const cc = comment.replace(/[\s\S]^/gm, `$&${indent}#`); return `#${cc}\n${indent}${str}`; }
1,288,901
06a6aba2795e0a7dd7559d6d0d63a8ba
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=43-63/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
collectionFromPath
function
function collectionFromPath(schema, path, value) { let v = value; for (let i = path.length - 1; i >= 0; --i) { const k = path[i]; if (Number.isInteger(k) && k >= 0) { const a = []; a[k] = v; v = a; } else { const o = {}; Object.defineProperty(o, k, { value: v, ...
1,288,902
10a42d652808c142d29ec9bb87f6bb95
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=96-100/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Collection::hasIn
function
hasIn([key, ...rest]) { if (rest.length === 0) return this.has(key); const node = this.get(key, true); return node instanceof Collection ? node.hasIn(rest) : false; }
1,288,903
09cd3d32cf97cd03a1bb4b93be64a56e
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=487-492/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLMap::delete
function
delete(key) { const it = findPair(this.items, key); if (!it) return false; const del = this.items.splice(this.items.indexOf(it), 1); return del.length > 0; }
1,288,904
9b86f0f54b3800a1252a8f6b0a2af4ad
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=493-497/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLMap::get
function
get(key, keepScalar) { const it = findPair(this.items, key); const node = it && it.value; return !keepScalar && node instanceof Scalar ? node.value : node; }
1,288,905
112d94cbc18d7ef4e1e857638e65c226
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=498-500/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLMap::has
function
has(key) { return !!findPair(this.items, key); }
1,288,906
883434cd6a2274317385f2c0ef92f62e
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=505-516/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLMap::toJSON
function
/** * @param {*} arg ignored * @param {*} ctx Conversion context, originally set in Document#toJSON() * @param {Class} Type If set, forces the returned collection type * @returns {*} Instance of Type, Map, or Object */ toJSON(_, ctx, Type) { const map = Type ? new Type() : ctx && ctx.mapAsMap ? new...
1,288,907
41773f47c500ad678d6ed62342c63c54
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=536-550/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Merge::constructor
function
constructor(pair) { if (pair instanceof Pair) { let seq = pair.value; if (!(seq instanceof YAMLSeq)) { seq = new YAMLSeq(); seq.items.push(pair.value); seq.range = pair.value.range; } super(pair.key, seq); this.range = pair.range; } else { super(new Sc...
1,288,908
94f545ee19288c42ccb5bb00f56224b3
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=618-637/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveScalar
function
// falls back to string on no match function resolveScalar(str, tags, scalarFallback) { for (const { format, test, resolve } of tags) { if (test) { const match = str.match(test); if (match) { let res = resolve.apply(null, match); if (!(res instanceof Scalar)) res = new Sc...
1,288,909
8594685efbdad780851fa66395458a62
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=781-794/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
lineLengthOverLimit
function
function lineLengthOverLimit(str, lineWidth, indentLength) { if (!lineWidth || lineWidth < 0) return false; const limit = lineWidth - indentLength; const strLen = str.length; if (strLen <= limit) return false; for (let i = 0, start = 0; i < strLen; ++i) { if (str[i] === '\n') { if (i - start > limit...
1,288,910
9e5c3ffc8aefc45c7e107c6e8f651495
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1231-1244/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
getFallbackTagName
function
function getFallbackTagName({ type }) { switch (type) { case Type.FLOW_MAP: case Type.MAP: return defaultTags.MAP; case Type.FLOW_SEQ: case Type.SEQ: return defaultTags.SEQ; default: return defaultTags.STR; } }
1,288,911
18e937235969bebbd130064b0b31e6f0
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=888-942/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
blockString
function
function blockString({ comment, type, value }, ctx, onComment, onChompKeep) { // 1. Block can't end in whitespace unless the last line is non-empty. // 2. Strings consisting of only whitespace are best rendered explicitly. if (/\n[\t ]+$/.test(value) || /^\s*$/.test(value)) { return doubleQuotedString(v...
1,288,912
cae70bca7d275de73652693bdba6bcfb
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=582-589/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Merge::toString
function
toString(ctx, onComment) { const seq = this.value; if (seq.items.length > 1) return super.toString(ctx, onComment); this.value = seq.items[0]; const str = super.toString(ctx, onComment); this.value = seq; return str; }
1,288,913
13bce6d3e6fec0468f16e2776a88b9a0
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1505-1607/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveBlockMapItems
function
function resolveBlockMapItems(doc, cst) { const comments = []; const items = []; let key = undefined; let keyStart = null; for (let i = 0; i < cst.items.length; ++i) { const item = cst.items[i]; switch (item.type) { case Type.BLANK_LINE: comments.push({ afterKey: !!key, ...
1,288,914
19d97bdbbd5675b04597adb9666b3df6
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=501-503/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLMap::set
function
set(key, value) { this.add(new Pair(key, value), true); }
1,288,915
5dcfc5ed3acbbc209d08ce982ca61aad
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1706-1740/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveBlockSeqItems
function
function resolveBlockSeqItems(doc, cst) { const comments = []; const items = []; for (let i = 0; i < cst.items.length; ++i) { const item = cst.items[i]; switch (item.type) { case Type.BLANK_LINE: comments.push({ before: items.length }); break; case Type.COMMEN...
1,288,916
07ee8da87d9f6a1d86f67a359961a4a0
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=463-472/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
findPair
function
function findPair(items, key) { const k = key instanceof Scalar ? key.value : key; for (const it of items) { if (it instanceof Pair) { if (it.key === key || it.key === k) return it; if (it.key && it.key.value === k) return it; } } return undefined; }
1,288,917
52e06dc94d5eb1d7472736ac5a6b480f
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1110-1130/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveComments
function
function resolveComments(collection, comments) { for (const { afterKey, before, comment } of comments) { let item = collection.items[before]; if (!item) { if (comment !== undefined) { if (collection.comment) collection.comment += '\n' + comment;else collection.comment = comment; ...
1,288,918
521f677c7d09063426337fd2e6f8a0d9
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-28/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
toJSON
function
function toJSON(value, arg, ctx) { if (Array.isArray(value)) return value.map((v, i) => toJSON(v, String(i), ctx)); if (value && typeof value.toJSON === 'function') { const anchor = ctx && ctx.anchors && ctx.anchors.get(value); if (anchor) ctx.onCreate = res => { anchor.res = res; delete ctx.onC...
1,288,919
111d5c6d12ac12b24d42e2072839a6f7
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-40/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Scalar::toString
function
toString() { return String(this.value); }
1,288,920
de6400555ad5c2b0f7d199e11e0642cd
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=73-79/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Collection::addIn
function
addIn(path, value) { if (isEmptyPath(path)) this.add(value);else { const [key, ...rest] = path; const node = this.get(key, true); if (node instanceof Collection) node.addIn(rest, value);else if (node === undefined && this.schema) this.set(key, collectionFromPath(this.schema, rest, value));else thr...
1,288,921
4a7dd2033509dd85a14411da07c05d48
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=110-114/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Collection::toJSON
function
// overridden in implementations /* istanbul ignore next */ toJSON() { return null; }
1,288,922
074112e583a72f5e1683bdd7bdf5b1f8
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=203-205/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLSeq::add
function
add(value) { this.items.push(value); }
1,288,923
ffaa387e2ba7696a655d6dfe3fd437b9
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=85-88/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Collection::getIn
function
getIn([key, ...rest], keepScalar) { const node = this.get(key, true); if (rest.length === 0) return !keepScalar && node instanceof Scalar ? node.value : node;else return node instanceof Collection ? node.getIn(rest, keepScalar) : undefined; }
1,288,924
78cc454b9a67ddf1b192f3ae7c32d425
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=89-95/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Collection::hasAllNullValues
function
hasAllNullValues() { return this.items.every(node => { if (!node || node.type !== 'PAIR') return false; const n = node.value; return n == null || n instanceof Scalar && n.value == null && !n.commentBefore && !n.comment && !n.tag; }); }
1,288,925
5b686c0f7b637466e812307152bf2890
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=222-226/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLSeq::set
function
set(key, value) { const idx = asItemIndex(key); if (typeof idx !== 'number') throw new Error(`Expected a valid index, not ${key}.`); this.items[idx] = value; }
1,288,926
e87eec1aef72b85956ec858ad56ffce8
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=424-428/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Alias::constructor
function
constructor(source) { super(); this.source = source; this.type = Type.ALIAS; }
1,288,927
20facb34ef5bbfb15c907ebde7c7a9fc
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=432-453/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Alias::toJSON
function
toJSON(arg, ctx) { if (!ctx) return toJSON(this.source, arg, ctx); const { anchors, maxAliasCount } = ctx; const anchor = anchors.get(this.source); /* istanbul ignore if */ if (!anchor || anchor.res === undefined) { const msg = 'This should not happen: Alias anchor was not reso...
1,288,928
c19bef41a6bb1f7ee8a9f8743bf298d6
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=943-992/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
plainString
function
function plainString(item, ctx, onComment, onChompKeep) { const { comment, type, value } = item; const { actualString, implicitKey, indent, inFlow } = ctx; if (implicitKey && /[\n[\]{},]/.test(value) || inFlow && /[[\]{},]/.test(value)) { return doubleQuotedString(value, ctx); ...
1,288,929
63500711b06b9b818fa39cdae73b2a4b
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1105-1109/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
getLongKeyError
function
function getLongKeyError(source, key) { const sk = String(key); const k = sk.substr(0, 8) + '...' + sk.substr(-8); return new YAMLSemanticError(source, `The "${k}" key is too long`); }
1,288,930
892be2e56448816e636b57be4a320cf4
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1144-1168/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveTagHandle
function
function resolveTagHandle(doc, node) { const { handle, suffix } = node.tag; let prefix = doc.tagPrefixes.find(p => p.handle === handle); if (!prefix) { const dtp = doc.getDefaults().tagPrefixes; if (dtp) prefix = dtp.find(p => p.handle === handle); if (!prefix) throw new YAMLSemanticError(no...
1,288,931
af5989a7e4cb9fbcd50cd54fbb268823
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1741-1833/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveFlowSeqItems
function
function resolveFlowSeqItems(doc, cst) { const comments = []; const items = []; let explicitKey = false; let key = undefined; let keyStart = null; let next = '['; let prevItem = null; for (let i = 0; i < cst.items.length; ++i) { const item = cst.items[i]; if (typeof item.char === 'string') { ...
1,288,932
3034beea0561c7addf43f8716260200e
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1062-1097/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
checkFlowCollectionEnd
function
function checkFlowCollectionEnd(errors, cst) { let char, name; switch (cst.type) { case Type.FLOW_MAP: char = '}'; name = 'flow map'; break; case Type.FLOW_SEQ: char = ']'; name = 'flow sequence'; break; default: errors.push(new YAMLSemanticError(cst, 'Not a flo...
1,288,933
1d0ab2c9d1e6856cbbd34b5102982709
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=474-486/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLMap::add
function
add(pair, overwrite) { if (!pair) pair = new Pair(pair);else if (!(pair instanceof Pair)) pair = new Pair(pair.key || pair, pair.value); const prev = findPair(this.items, pair.key); const sortEntries = this.schema && this.schema.sortMapEntries; if (prev) { if (overwrite) prev.value = pair.value;el...
1,288,934
77373dbc797bbe65c0886cb92b93f43c
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1686-1705/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveSeq
function
function resolveSeq(doc, cst) { if (cst.type !== Type.SEQ && cst.type !== Type.FLOW_SEQ) { const msg = `A ${cst.type} node cannot be resolved as a sequence`; doc.errors.push(new YAMLSyntaxError(cst, msg)); return null; } const { comments, items } = cst.type === Type.FLOW_SEQ ? resolveFlowSeq...
1,288,935
63550571df43943c20f65a0184ceffc6
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-34/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Scalar::constructor
function
constructor(value) { super(); this.value = value; }
1,288,936
ce427fdd1bb2ed8c926a792635ca7774
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-37/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Scalar::toJSON
function
toJSON(arg, ctx) { return ctx && ctx.keep ? this.value : toJSON(this.value, arg, ctx); }
1,288,937
a4ee1e52ecf9946076ed5f3673dba729
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-72/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Collection::constructor
function
constructor(schema) { super(); _defineProperty(this, "items", []); this.schema = schema; }
1,288,938
678689bf1699b7c92be28a80d4433b10
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=80-84/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Collection::deleteIn
function
deleteIn([key, ...rest]) { if (rest.length === 0) return this.delete(key); const node = this.get(key, true); if (node instanceof Collection) return node.deleteIn(rest);else throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`); }
1,288,939
b1aa95b038c82b26bafc392c7243e289
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=101-108/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Collection::setIn
function
setIn([key, ...rest], value) { if (rest.length === 0) { this.set(key, value); } else { const node = this.get(key, true); if (node instanceof Collection) node.setIn(rest, value);else if (node === undefined && this.schema) this.set(key, collectionFromPath(this.schema, rest, value));else throw ne...
1,288,940
692d66a03c5b8feb3473f7badcd646d6
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=206-211/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLSeq::delete
function
delete(key) { const idx = asItemIndex(key); if (typeof idx !== 'number') return false; const del = this.items.splice(idx, 1); return del.length > 0; }
1,288,941
ac5b145214ffc2fdb117b8bad1798633
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=115-193/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Collection::toString
function
toString(ctx, { blockItem, flowChars, isMap, itemIndent }, onComment, onChompKeep) { const { indent, indentStep, stringify } = ctx; const inFlow = this.type === Type.FLOW_MAP || this.type === Type.FLOW_SEQ || ctx.inFlow; if (inFlow) itemIndent += indentStep; const...
1,288,942
fe7142844a9f3428b2d4e6afa0a6884b
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=227-233/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLSeq::toJSON
function
toJSON(_, ctx) { const seq = []; if (ctx && ctx.onCreate) ctx.onCreate(seq); let i = 0; for (const item of this.items) seq.push(toJSON(item, String(i++), ctx)); return seq; }
1,288,943
7ccd43c918d4e277f56980674832d8c9
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=302-383/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Pair::toString
function
toString(ctx, onComment, onChompKeep) { if (!ctx || !ctx.doc) return JSON.stringify(this); const { indent: indentSize, indentSeq, simpleKeys } = ctx.doc.options; let { key, value } = this; let keyComment = key instanceof Node && key.comment; if (simpleKeys) { ...
1,288,944
e7ed70c84d532f0d3ec003c2aae2a148
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=409-423/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Alias::stringify
function
static stringify({ range, source }, { anchors, doc, implicitKey, inStringifyKey }) { let anchor = Object.keys(anchors).find(a => anchors[a] === source); if (!anchor && inStringifyKey) anchor = doc.anchors.getName(source) || doc.anchors.newName(); if (anchor) return `*${anchor}${i...
1,288,945
05f986bbbc9b79f2abae756477d93a81
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=552-581/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Merge::addToJSMap
function
// If the value associated with a merge key is a single mapping node, each of // its key/value pairs is inserted into the current mapping, unless the key // already exists in it. If the value associated with the merge key is a // sequence, then this sequence is expected to contain mapping nodes and each // of t...
1,288,946
1e315a5e9e0c35d553e1fea2c6ef2952
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1041-1060/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
stringifyNumber
function
function stringifyNumber({ format, minFractionDigits, tag, value }) { if (typeof value === 'bigint') return String(value); if (!isFinite(value)) return isNaN(value) ? '.nan' : value < 0 ? '-.inf' : '.inf'; let n = JSON.stringify(value); if (!format && minFractionDigits && (!tag || tag === 'tag:yaml.org,...
1,288,947
eedaf268129247cff3b0623bf684e219
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1098-1104/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
checkFlowCommentSpace
function
function checkFlowCommentSpace(errors, comment) { const prev = comment.context.src[comment.range.start - 1]; if (prev !== '\n' && prev !== '\t' && prev !== ' ') { const msg = 'Comments must be separated from other tokens by white space characters'; errors.push(new YAMLSemanticError(comment, msg)); } }
1,288,948
31f8b544279626c1feff058a97769392
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1169-1212/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveTagName
function
function resolveTagName(doc, node) { const { tag, type } = node; let nonSpecific = false; if (tag) { const { handle, suffix, verbatim } = tag; if (verbatim) { if (verbatim !== '!' && verbatim !== '!!') return verbatim; const msg = `Verbatim tags aren't resolved,...
1,288,949
ba60e554e24f14263eab76a7a31567cf
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1245-1276/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveTag
function
function resolveTag(doc, node, tagName) { try { const res = resolveByTagName(doc, node, tagName); if (res) { if (tagName && node.tag) res.tag = tagName; return res; } } catch (error) { if (error instanceof YAMLError) { if (!error.source) error.source = node; doc.errors.push(e...
1,288,950
8e3efcd865ae4d61fe043ceaec7fc64d
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1373-1413/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveNode
function
// sets node.resolved on success function resolveNode(doc, node) { if (!node) return null; if (node.error) doc.errors.push(node.error); const { comments, hasAnchor, hasTag } = resolveNodeProps(doc.errors, node); if (hasAnchor) { const { anchors } = doc; const name = node.anchor; ...
1,288,951
e342f0b7dce6cedb937fab8d3a679410
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=656-770/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
foldFlowLines
function
/** * Tries to keep input at up to `lineWidth` characters, splitting only on spaces * not followed by newlines or spaces unless `mode` is `'quoted'`. Lines are * terminated with `\n` and started with `indent`. * * @param {string} text * @param {string} indent * @param {string} [mode='flow'] `'block'` prevents mo...
1,288,952
3de34d43fb490a10618076af45f89bc6
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=993-1039/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
stringifyString
function
function stringifyString(item, ctx, onComment, onChompKeep) { const { defaultType } = strOptions; const { implicitKey, inFlow } = ctx; let { type, value } = item; if (typeof value !== 'string') { value = String(value); item = Object.assign({}, item, { value }); } ...
1,288,953
2ec0e63a0c94ee7ce42e59923843a55b
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=795-876/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
doubleQuotedString
function
function doubleQuotedString(value, ctx) { const { implicitKey } = ctx; const { jsonEncoding, minMultiLineLength } = strOptions.doubleQuoted; const json = JSON.stringify(value); if (jsonEncoding) return json; const indent = ctx.indent || (containsDocumentMarker(value) ? ' ' : ''); let str = ...
1,288,954
ccf730823bbe6c8c1c5f3f966c379bca
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-10/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
addComment
function
function addComment(str, indent, comment) { return !comment ? str : comment.indexOf('\n') === -1 ? `${str} #${comment}` : `${str}\n` + comment.replace(/^/gm, `${indent || ''}#`); }
1,288,955
5eaa58ea17dc481679527df8869cba35
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=197-201/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
asItemIndex
function
function asItemIndex(key) { let idx = key instanceof Scalar ? key.value : key; if (idx && typeof idx === 'string') idx = Number(idx); return Number.isInteger(idx) && idx >= 0 ? idx : null; }
1,288,956
5367dabff25d214fea6f2526845c789a
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=212-217/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLSeq::get
function
get(key, keepScalar) { const idx = asItemIndex(key); if (typeof idx !== 'number') return undefined; const it = this.items[idx]; return !keepScalar && it instanceof Scalar ? it.value : it; }
1,288,957
75d00cdcabf79a4c4783a443e1cd985e
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=218-221/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLSeq::has
function
has(key) { const idx = asItemIndex(key); return typeof idx === 'number' && idx < this.items.length; }
1,288,958
e2138fb5341e05b29f304654cb5bdf9b
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=234-245/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLSeq::toString
function
toString(ctx, onComment, onChompKeep) { if (!ctx) return JSON.stringify(this); return super.toString(ctx, { blockItem: n => n.type === 'comment' ? n.str : `- ${n.str}`, flowChars: { start: '[', end: ']' }, isMap: false, itemIndent: (ctx.indent || '') + ' ' }, o...
1,288,959
b30fcc7b2fe04256ee37474e584acfad
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=263-268/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Pair::constructor
function
constructor(key, value = null) { super(); this.key = key; this.value = value; this.type = Pair.Type.PAIR; }
1,288,960
2098b67742c4e9b4a056568fa8eb6d64
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=272-278/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Pair::commentBefore
function
set commentBefore(cb) { if (this.key == null) this.key = new Scalar(null); if (this.key instanceof Node) this.key.commentBefore = cb;else { const msg = 'Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.'; throw new Error(msg); } }
1,288,961
e69c918bc83bd509966a49d48971025b
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=279-297/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Pair::addToJSMap
function
addToJSMap(ctx, map) { const key = toJSON(this.key, '', ctx); if (map instanceof Map) { const value = toJSON(this.value, key, ctx); map.set(key, value); } else if (map instanceof Set) { map.add(key); } else { const stringKey = stringifyKey(this.key, key, ctx); const value =...
1,288,962
d8efc6c2c0d5cd69784b387255c43031
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=298-301/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Pair::toJSON
function
toJSON(_, ctx) { const pair = ctx && ctx.mapAsMap ? new Map() : {}; return this.addToJSMap(ctx, pair); }
1,288,963
d894ca667703d0ae63dcd38962a3205b
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=455-459/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Alias::toString
function
// Only called when stringifying an alias mapping key while constructing // Object output. toString(ctx) { return Alias.stringify(this, ctx); }
1,288,964
396553d77e85b5affb727d78df937769
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1214-1230/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveByTagName
function
function resolveByTagName(doc, node, tagName) { const { tags } = doc.schema; const matchWithTest = []; for (const tag of tags) { if (tag.tag === tagName) { if (tag.test) matchWithTest.push(tag);else { const res = tag.resolve(doc, node); return res instanceof Collection ? res : new ...
1,288,965
f70d7723be566b0c512c44f20b4820b5
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1336-1371/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveNodeValue
function
function resolveNodeValue(doc, node) { const { anchors, errors, schema } = doc; if (node.type === Type.ALIAS) { const name = node.rawValue; const src = anchors.getNode(name); if (!src) { const msg = `Aliased anchor not found: ${name}`; errors.push(new YAMLReferenceError(node, m...
1,288,966
6a7ef446ceb1fda0375d8fb60a0f6fa6
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1415-1470/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveMap
function
function resolveMap(doc, cst) { if (cst.type !== Type.MAP && cst.type !== Type.FLOW_MAP) { const msg = `A ${cst.type} node cannot be resolved as a mapping`; doc.errors.push(new YAMLSyntaxError(cst, msg)); return null; } const { comments, items } = cst.type === Type.FLOW_MAP ? resolveFlowMapI...
1,288,967
3d42b1653a6eccd97b37166ad0ef6f8a
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=517-531/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLMap::toString
function
toString(ctx, onComment, onChompKeep) { if (!ctx) return JSON.stringify(this); for (const item of this.items) { if (!(item instanceof Pair)) throw new Error(`Map items must all be pairs; found ${JSON.stringify(item)} instead`); } return super.toString(ctx, { blockItem: n => n.str, flow...
1,288,968
b4a0b9871347322b34dff8ea03ae08ac
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1488-1504/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolvePairComment
function
function resolvePairComment(item, pair) { if (!valueHasPairComment(item)) return; const comment = item.getPropValue(0, Char.COMMENT, true); let found = false; const cb = pair.value.commentBefore; if (cb && cb.startsWith(comment)) { pair.value.commentBefore = cb.substr(comment.length + 1); found = true...
1,288,969
416067e3b021737eab81fe95a9e71b70
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1285-1335/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveNodeProps
function
function resolveNodeProps(errors, node) { const comments = { before: [], after: [] }; let hasAnchor = false; let hasTag = false; const props = isCollectionItem(node.context.parent) ? node.context.parent.props.concat(node.props) : node.props; for (const { start, end } of props) { switch...
1,288,970
8486d8e11d015b5c553aa00f8df1dc25
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1608-1684/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveFlowMapItems
function
function resolveFlowMapItems(doc, cst) { const comments = []; const items = []; let key = undefined; let explicitKey = false; let next = '{'; for (let i = 0; i < cst.items.length; ++i) { const item = cst.items[i]; if (typeof item.char === 'string') { const { char, offset ...
1,288,971
0894f428919fb672bc1f5e22b45501c9
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=429-431/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Alias::tag
function
set tag(t) { throw new Error('Alias nodes cannot have tags'); }
1,288,972
dfa7e0e380b07bb96a25e7585a46e411
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1132-1142/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
resolveString
function
// on error, will return { str: string, errors: Error[] } function resolveString(doc, node) { const res = node.strValue; if (!res) return ''; if (typeof res === 'string') return res; res.errors.forEach(error => { if (!error.source) error.source = node; doc.errors.push(error); }); return res.str; }
1,288,973
2c394962c5c8c12dce35e47e441b6cef
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=877-887/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
singleQuotedString
function
function singleQuotedString(value, ctx) { if (ctx.implicitKey) { if (/\n/.test(value)) return doubleQuotedString(value, ctx); } else { // single quoted string can't have leading or trailing whitespace around newline if (/[ \t]\n|\n[ \t]/.test(value)) return doubleQuotedString(value, ctx); } const in...
1,288,974
b1fdd47fb448658287c68e293fb1b444
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-12/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Node
type
class Node {}
1,288,975
8e80728be997795c373b0cc10569d172
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=262-384/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Pair
type
class Pair extends Node { constructor(key, value = null) { super(); this.key = key; this.value = value; this.type = Pair.Type.PAIR; } get commentBefore() { return this.key instanceof Node ? this.key.commentBefore : undefined; } set commentBefore(cb) { if (this.key == null) this.key = n...
1,288,976
b8ed1cc626d8107960029a54820b6e9a
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=67-194/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Collection
type
class Collection extends Node { constructor(schema) { super(); _defineProperty(this, "items", []); this.schema = schema; } addIn(path, value) { if (isEmptyPath(path)) this.add(value);else { const [key, ...rest] = path; const node = this.get(key, true); if (node instanceof Collect...
1,288,977
3388addd67a2621b296811a086f3c8d1
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=30-41/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Scalar
type
class Scalar extends Node { constructor(value) { super(); this.value = value; } toJSON(arg, ctx) { return ctx && ctx.keep ? this.value : toJSON(this.value, arg, ctx); } toString() { return String(this.value); } }
1,288,978
7876d71d52a07efb8574f417211c34e1
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=202-246/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLSeq
type
class YAMLSeq extends Collection { add(value) { this.items.push(value); } delete(key) { const idx = asItemIndex(key); if (typeof idx !== 'number') return false; const del = this.items.splice(idx, 1); return del.length > 0; } get(key, keepScalar) { const idx = asItemIndex(key); if (...
1,288,979
c445de43e4fb188c8406c4cabfcbb74e
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=408-460/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Alias
type
class Alias extends Node { static stringify({ range, source }, { anchors, doc, implicitKey, inStringifyKey }) { let anchor = Object.keys(anchors).find(a => anchors[a] === source); if (!anchor && inStringifyKey) anchor = doc.anchors.getName(source) || doc.anchors.newName(); if (...
1,288,980
f11c45b62d33d473709c9c71353f8751
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=473-532/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
YAMLMap
type
class YAMLMap extends Collection { add(pair, overwrite) { if (!pair) pair = new Pair(pair);else if (!(pair instanceof Pair)) pair = new Pair(pair.key || pair, pair.value); const prev = findPair(this.items, pair.key); const sortEntries = this.schema && this.schema.sortMapEntries; if (prev) { if (...
1,288,981
9a1c30c2f73ce15f34ae8c61ebcc76d8
swh:1:cnt:88e60840b13ed1c2bce06644ed4235fe604af283;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=535-590/
1aeb90b75c828ecbb488b4bba0fd99877c7572e4
wlbdashboard
wmcs
node_modules/yaml/browser/dist/resolveSeq-67caf78a.js
Merge
type
class Merge extends Pair { constructor(pair) { if (pair instanceof Pair) { let seq = pair.value; if (!(seq instanceof YAMLSeq)) { seq = new YAMLSeq(); seq.items.push(pair.value); seq.range = pair.value.range; } super(pair.key, seq); this.range = pair.range; ...
1,288,982
d06f222c1f63784847794cb1ba6f822c
swh:1:cnt:ee463fac15f3fcf67abab2c1d2e29f7e00fac605;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-16/
534617d7666eba9d41335d89e22b0e8e12f8f973
wlbdashboard
wmcs
node_modules/yaml/browser/dist/Schema-9530c078.js
createMap
function
function createMap(schema, obj, ctx) { const map = new YAMLMap(schema); if (obj instanceof Map) { for (const [key, value] of obj) map.items.push(schema.createPair(key, value, ctx)); } else if (obj && typeof obj === 'object') { for (const key of Object.keys(obj)) map.items.push(schema.createPair(key, obj[k...
1,288,983
84ca4ee31b7bb2126b199cdf4c19e88c
swh:1:cnt:ee463fac15f3fcf67abab2c1d2e29f7e00fac605;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-34/
534617d7666eba9d41335d89e22b0e8e12f8f973
wlbdashboard
wmcs
node_modules/yaml/browser/dist/Schema-9530c078.js
createSeq
function
function createSeq(schema, obj, ctx) { const seq = new YAMLSeq(schema); if (obj && obj[Symbol.iterator]) { for (const it of obj) { const v = schema.createNode(it, ctx.wrapScalars, null, ctx); seq.items.push(v); } } return seq; }
1,288,984
480d6367f0912e2091762fd12c9e011c
swh:1:cnt:ee463fac15f3fcf67abab2c1d2e29f7e00fac605;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=62-68/
534617d7666eba9d41335d89e22b0e8e12f8f973
wlbdashboard
wmcs
node_modules/yaml/browser/dist/Schema-9530c078.js
intStringify$1
function
function intStringify$1(node, radix, prefix) { const { value } = node; if (intIdentify$2(value) && value >= 0) return prefix + value.toString(radix); return stringifyNumber(node); }
1,288,985
4d69c46912268c4080568f516d3abd8e
swh:1:cnt:ee463fac15f3fcf67abab2c1d2e29f7e00fac605;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=205-224/
534617d7666eba9d41335d89e22b0e8e12f8f973
wlbdashboard
wmcs
node_modules/yaml/browser/dist/Schema-9530c078.js
intResolve
function
function intResolve(sign, src, radix) { let str = src.replace(/_/g, ''); if (intOptions.asBigInt) { switch (radix) { case 2: str = `0b${str}`; break; case 8: str = `0o${str}`; break; case 16: str = `0x${str}`; break; } const n = BigInt(st...
1,288,986
15ad1d663a0c850ac2861abdacef811a
swh:1:cnt:ee463fac15f3fcf67abab2c1d2e29f7e00fac605;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=225-234/
534617d7666eba9d41335d89e22b0e8e12f8f973
wlbdashboard
wmcs
node_modules/yaml/browser/dist/Schema-9530c078.js
intStringify
function
function intStringify(node, radix, prefix) { const { value } = node; if (intIdentify(value)) { const str = value.toString(radix); return value < 0 ? '-' + prefix + str.substr(1) : prefix + str; } return stringifyNumber(node); }
1,288,987
0eee3fa35797446aa4e4990afadd8176
swh:1:cnt:ee463fac15f3fcf67abab2c1d2e29f7e00fac605;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=350-360/
534617d7666eba9d41335d89e22b0e8e12f8f973
wlbdashboard
wmcs
node_modules/yaml/browser/dist/Schema-9530c078.js
findTagObject
function
function findTagObject(value, tagName, tags) { if (tagName) { const match = tags.filter(t => t.tag === tagName); const tagObj = match.find(t => !t.format) || match[0]; if (!tagObj) throw new Error(`Tag ${tagName} not found`); return tagObj; } // TODO: deprecate/remove class check return tags.fi...
1,288,988
7e5eb1346403a39448a77670f192866e
swh:1:cnt:ee463fac15f3fcf67abab2c1d2e29f7e00fac605;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=361-401/
534617d7666eba9d41335d89e22b0e8e12f8f973
wlbdashboard
wmcs
node_modules/yaml/browser/dist/Schema-9530c078.js
createNode
function
function createNode(value, tagName, ctx) { if (value instanceof Node) return value; const { defaultPrefix, onTagObj, prevObjects, schema, wrapScalars } = ctx; if (tagName && tagName.startsWith('!!')) tagName = defaultPrefix + tagName.slice(2); let tagObj = findTagObject(value, tagName, sch...
1,288,989
1f1d4bcd7ac1edf95ee68ba75df28421
swh:1:cnt:ee463fac15f3fcf67abab2c1d2e29f7e00fac605;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=403-426/
534617d7666eba9d41335d89e22b0e8e12f8f973
wlbdashboard
wmcs
node_modules/yaml/browser/dist/Schema-9530c078.js
getSchemaTags
function
function getSchemaTags(schemas, knownTags, customTags, schemaId) { let tags = schemas[schemaId.replace(/\W/g, '')]; // 'yaml-1.1' -> 'yaml11' if (!tags) { const keys = Object.keys(schemas).map(key => JSON.stringify(key)).join(', '); throw new Error(`Unknown schema "${schemaId}"; use one of ${keys}`); } ...
1,288,990
c71e7f6224f6b417cc7605669172faae
swh:1:cnt:ee463fac15f3fcf67abab2c1d2e29f7e00fac605;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=313-320/
534617d7666eba9d41335d89e22b0e8e12f8f973
wlbdashboard
wmcs
node_modules/yaml/browser/dist/Schema-9530c078.js
resolve
function
resolve(str, frac) { const node = new Scalar(parseFloat(str.replace(/_/g, ''))); if (frac) { const f = frac.replace(/_/g, ''); if (f[f.length - 1] === '0') node.minFractionDigits = f.length; } return node; }
1,288,991
e12b7bce28ce58887229724130ed6732
swh:1:cnt:ee463fac15f3fcf67abab2c1d2e29f7e00fac605;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=48-53/
534617d7666eba9d41335d89e22b0e8e12f8f973
wlbdashboard
wmcs
node_modules/yaml/browser/dist/Schema-9530c078.js
stringify
function
stringify(item, ctx, onComment, onChompKeep) { ctx = Object.assign({ actualString: true }, ctx); return stringifyString(item, ctx, onComment, onChompKeep); }
1,288,992
ed553cd1602827ec9bced463ad110844
swh:1:cnt:ee463fac15f3fcf67abab2c1d2e29f7e00fac605;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=430-444/
534617d7666eba9d41335d89e22b0e8e12f8f973
wlbdashboard
wmcs
node_modules/yaml/browser/dist/Schema-9530c078.js
Schema::constructor
function
// TODO: remove in v2 constructor({ customTags, merge, schema, sortMapEntries, tags: deprecatedCustomTags }) { this.merge = !!merge; this.name = schema; this.sortMapEntries = sortMapEntries === true ? sortMapEntriesByKey : sortMapEntries || null; if (!customTags && deprecatedCus...
1,288,993
b00e3d678c4125ef60a688e3fe1c60bd
swh:1:cnt:ee463fac15f3fcf67abab2c1d2e29f7e00fac605;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=445-453/
534617d7666eba9d41335d89e22b0e8e12f8f973
wlbdashboard
wmcs
node_modules/yaml/browser/dist/Schema-9530c078.js
Schema::createNode
function
createNode(value, wrapScalars, tagName, ctx) { const baseCtx = { defaultPrefix: Schema.defaultPrefix, schema: this, wrapScalars }; const createCtx = ctx ? Object.assign(ctx, baseCtx) : baseCtx; return createNode(value, tagName, createCtx); }
1,288,994
147b675de67779fc3ce69c67335ce2e2
swh:1:cnt:ee463fac15f3fcf67abab2c1d2e29f7e00fac605;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=454-461/
534617d7666eba9d41335d89e22b0e8e12f8f973
wlbdashboard
wmcs
node_modules/yaml/browser/dist/Schema-9530c078.js
Schema::createPair
function
createPair(key, value, ctx) { if (!ctx) ctx = { wrapScalars: true }; const k = this.createNode(key, ctx.wrapScalars, null, ctx); const v = this.createNode(value, ctx.wrapScalars, null, ctx); return new Pair(k, v); }
1,288,995
8c232541a3e3baa99a16b7ac3c0d522e
swh:1:cnt:ee463fac15f3fcf67abab2c1d2e29f7e00fac605;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=429-462/
534617d7666eba9d41335d89e22b0e8e12f8f973
wlbdashboard
wmcs
node_modules/yaml/browser/dist/Schema-9530c078.js
Schema
type
class Schema { // TODO: remove in v2 constructor({ customTags, merge, schema, sortMapEntries, tags: deprecatedCustomTags }) { this.merge = !!merge; this.name = schema; this.sortMapEntries = sortMapEntries === true ? sortMapEntriesByKey : sortMapEntries || null; if (!customTags...
1,288,996
5a283eb4dcd5098eade9f4004c53511c
swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=72-89/
4962172813f0f23a3ab1c1e1dcd999589168fb8f
wlbdashboard
wmcs
node_modules/yaml/browser/dist/warnings-5e4358fe.js
parsePairs
function
function parsePairs(doc, cst) { const seq = resolveSeq(doc, cst); for (let i = 0; i < seq.items.length; ++i) { let item = seq.items[i]; if (item instanceof Pair) continue;else if (item instanceof YAMLMap) { if (item.items.length > 1) { const msg = 'Each pair must have its own sequence indicato...
1,288,997
b359cd70452657862646f02ed3c36c96
swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=122-130/
4962172813f0f23a3ab1c1e1dcd999589168fb8f
wlbdashboard
wmcs
node_modules/yaml/browser/dist/warnings-5e4358fe.js
YAMLOMap::constructor
function
constructor() { super(); _defineProperty(this, "add", YAMLMap.prototype.add.bind(this)); _defineProperty(this, "delete", YAMLMap.prototype.delete.bind(this)); _defineProperty(this, "get", YAMLMap.prototype.get.bind(this)); _defineProperty(this, "has", YAMLMap.prototype.has.bind(this)); _definePr...
1,288,998
56571637196449a65728dc1a6fb54d10
swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=131-146/
4962172813f0f23a3ab1c1e1dcd999589168fb8f
wlbdashboard
wmcs
node_modules/yaml/browser/dist/warnings-5e4358fe.js
YAMLOMap::toJSON
function
toJSON(_, ctx) { const map = new Map(); if (ctx && ctx.onCreate) ctx.onCreate(map); for (const pair of this.items) { let key, value; if (pair instanceof Pair) { key = toJSON(pair.key, '', ctx); value = toJSON(pair.value, key, ctx); } else { key = toJSON(pair, '', ct...
1,288,999
6ddcd6761beda68b18924e3ea6052295
swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=90-113/
4962172813f0f23a3ab1c1e1dcd999589168fb8f
wlbdashboard
wmcs
node_modules/yaml/browser/dist/warnings-5e4358fe.js
createPairs
function
function createPairs(schema, iterable, ctx) { const pairs = new YAMLSeq(schema); pairs.tag = 'tag:yaml.org,2002:pairs'; for (const it of iterable) { let key, value; if (Array.isArray(it)) { if (it.length === 2) { key = it[0]; value = it[1]; } else throw new TypeError(`Expected ...