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,289,200
d8efc6c2c0d5cd69784b387255c43031
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=300-303/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
Pair::toJSON
function
toJSON(_, ctx) { const pair = ctx && ctx.mapAsMap ? new Map() : {}; return this.addToJSMap(ctx, pair); }
1,289,201
1d0ab2c9d1e6856cbbd34b5102982709
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=476-488/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,202
2127b1dce032c2fd871b0a10d7a1e27b
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=945-994/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,203
399792ac2fff2573c8c1a80511c24716
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1100-1106/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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 PlainValue.YAMLSemanticError(comment, msg))...
1,289,204
30f55932797abc9adbae07614dbe3d02
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1610-1686/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,205
e342f0b7dce6cedb937fab8d3a679410
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=658-772/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,206
ac6d0911bfa62dd8571b815016857de2
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1743-1835/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,207
c0fe392d6d3f14759aaf19772ceadecc
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1233-1246/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
getFallbackTagName
function
function getFallbackTagName({ type }) { switch (type) { case PlainValue.Type.FLOW_MAP: case PlainValue.Type.MAP: return PlainValue.defaultTags.MAP; case PlainValue.Type.FLOW_SEQ: case PlainValue.Type.SEQ: return PlainValue.defaultTags.SEQ; default: return PlainValue.defaultTags...
1,289,208
396553d77e85b5affb727d78df937769
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1216-1232/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,209
3ca4fd07d3de6ebec400cdb99337f4f6
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=890-944/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,210
5cfacef0a84725ddf079830ef5afb9e8
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1708-1742/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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 PlainValue.Type.BLANK_LINE: comments.push({ before: items.length }); break; case ...
1,289,211
52e06dc94d5eb1d7472736ac5a6b480f
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1112-1132/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,212
41773f47c500ad678d6ed62342c63c54
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=538-552/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,213
2c394962c5c8c12dce35e47e441b6cef
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=879-889/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,214
cd96d32c6ea61c7bc569f9bbe573fed6
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1287-1337/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,215
cfec3b7042d54345ab30e014a2b87373
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1417-1472/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
resolveMap
function
function resolveMap(doc, cst) { if (cst.type !== PlainValue.Type.MAP && cst.type !== PlainValue.Type.FLOW_MAP) { const msg = `A ${cst.type} node cannot be resolved as a mapping`; doc.errors.push(new PlainValue.YAMLSyntaxError(cst, msg)); return null; } const { comments, items } = cst.type ==...
1,289,216
94f545ee19288c42ccb5bb00f56224b3
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=620-639/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,217
eb9b3f3f7d07f139b90cdf6262bc11da
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1375-1415/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,218
692d66a03c5b8feb3473f7badcd646d6
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=208-213/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,219
5eaa58ea17dc481679527df8869cba35
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=199-203/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,220
fe7142844a9f3428b2d4e6afa0a6884b
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=229-235/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,221
e2138fb5341e05b29f304654cb5bdf9b
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=236-247/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,222
2098b67742c4e9b4a056568fa8eb6d64
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=274-280/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,223
e7ed70c84d532f0d3ec003c2aae2a148
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=411-425/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,224
a7cbb003d04d2e62e7fe9a0a4bcbcc60
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=426-430/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
Alias::constructor
function
constructor(source) { super(); this.source = source; this.type = PlainValue.Type.ALIAS; }
1,289,225
0894f428919fb672bc1f5e22b45501c9
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=431-433/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
Alias::tag
function
set tag(t) { throw new Error('Alias nodes cannot have tags'); }
1,289,226
879ab0ed0c0bd9537ab2082cf4954f65
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=434-455/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,227
c8160fe03bd668fc9fcfc6986d9258c3
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1490-1506/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
resolvePairComment
function
function resolvePairComment(item, pair) { if (!valueHasPairComment(item)) return; const comment = item.getPropValue(0, PlainValue.Char.COMMENT, true); let found = false; const cb = pair.value.commentBefore; if (cb && cb.startsWith(comment)) { pair.value.commentBefore = cb.substr(comment.length + 1); f...
1,289,228
e153bf70f67048d7929891bd47d76d13
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1146-1170/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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 PlainValue.YAMLSeman...
1,289,229
c0ea76691d8db1aaf19f16e5bad2b9af
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1338-1373/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
resolveNodeValue
function
function resolveNodeValue(doc, node) { const { anchors, errors, schema } = doc; if (node.type === PlainValue.Type.ALIAS) { const name = node.rawValue; const src = anchors.getNode(name); if (!src) { const msg = `Aliased anchor not found: ${name}`; errors.push(new PlainValue.YAML...
1,289,230
d73787859cb4a57d735db5d2b9a0c2c8
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1247-1278/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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 PlainValue.YAMLError) { if (!error.source) error.source = node; doc.er...
1,289,231
05f986bbbc9b79f2abae756477d93a81
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=554-583/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,232
ce427fdd1bb2ed8c926a792635ca7774
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=37-39/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
Scalar::toJSON
function
toJSON(arg, ctx) { return ctx && ctx.keep ? this.value : toJSON(this.value, arg, ctx); }
1,289,233
63550571df43943c20f65a0184ceffc6
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-36/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
Scalar::constructor
function
constructor(value) { super(); this.value = value; }
1,289,234
111d5c6d12ac12b24d42e2072839a6f7
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-42/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
Scalar::toString
function
toString() { return String(this.value); }
1,289,235
610da8e2ce27c67b64ecf4ee9bf0bd54
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=70-74/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
Collection::constructor
function
constructor(schema) { super(); PlainValue._defineProperty(this, "items", []); this.schema = schema; }
1,289,236
de6400555ad5c2b0f7d199e11e0642cd
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=75-81/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,237
10a42d652808c142d29ec9bb87f6bb95
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=98-102/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,238
5367dabff25d214fea6f2526845c789a
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=214-219/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,239
75d00cdcabf79a4c4783a443e1cd985e
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=220-223/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
YAMLSeq::has
function
has(key) { const idx = asItemIndex(key); return typeof idx === 'number' && idx < this.items.length; }
1,289,240
2d4ba1ec10cb79cd7c64199a6e8080e6
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=304-385/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,241
d894ca667703d0ae63dcd38962a3205b
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=457-461/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
Alias::toString
function
// Only called when stringifying an alias mapping key while constructing // Object output. toString(ctx) { return Alias.stringify(this, ctx); }
1,289,242
d9970cfe63d72b0a492ab4acdf875498
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1688-1707/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
resolveSeq
function
function resolveSeq(doc, cst) { if (cst.type !== PlainValue.Type.SEQ && cst.type !== PlainValue.Type.FLOW_SEQ) { const msg = `A ${cst.type} node cannot be resolved as a sequence`; doc.errors.push(new PlainValue.YAMLSyntaxError(cst, msg)); return null; } const { comments, items } = cst.type =...
1,289,243
a7e0fd9d39f05f24526655cbd6593296
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1064-1099/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
checkFlowCollectionEnd
function
function checkFlowCollectionEnd(errors, cst) { let char, name; switch (cst.type) { case PlainValue.Type.FLOW_MAP: char = '}'; name = 'flow map'; break; case PlainValue.Type.FLOW_SEQ: char = ']'; name = 'flow sequence'; break; default: errors.push(new PlainValue....
1,289,244
1e315a5e9e0c35d553e1fea2c6ef2952
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1043-1062/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,245
cae70bca7d275de73652693bdba6bcfb
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=584-591/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,246
64504fb608a1fbca90706f87e1fa9f04
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=995-1041/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,247
ccf730823bbe6c8c1c5f3f966c379bca
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-12/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
addComment
function
function addComment(str, indent, comment) { return !comment ? str : comment.indexOf('\n') === -1 ? `${str} #${comment}` : `${str}\n` + comment.replace(/^/gm, `${indent || ''}#`); }
1,289,248
678689bf1699b7c92be28a80d4433b10
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=82-86/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,249
78cc454b9a67ddf1b192f3ae7c32d425
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=91-97/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,250
a250755e7bb19018947a3e59eb4c2d21
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=117-195/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
Collection::toString
function
toString(ctx, { blockItem, flowChars, isMap, itemIndent }, onComment, onChompKeep) { const { indent, indentStep, stringify } = ctx; const inFlow = this.type === PlainValue.Type.FLOW_MAP || this.type === PlainValue.Type.FLOW_SEQ || ctx.inFlow; if (inFlow) itemIndent +=...
1,289,251
b30fcc7b2fe04256ee37474e584acfad
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=265-270/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
Pair::constructor
function
constructor(key, value = null) { super(); this.key = key; this.value = value; this.type = Pair.Type.PAIR; }
1,289,252
e69c918bc83bd509966a49d48971025b
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=281-299/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,253
07ee8da87d9f6a1d86f67a359961a4a0
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=465-474/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,254
09cd3d32cf97cd03a1bb4b93be64a56e
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=489-494/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,255
9b86f0f54b3800a1252a8f6b0a2af4ad
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=495-499/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,256
112d94cbc18d7ef4e1e857638e65c226
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=500-502/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
YAMLMap::has
function
has(key) { return !!findPair(this.items, key); }
1,289,257
5fafb8381f8b40c257f0cf90b88978a7
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1171-1214/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,258
8594685efbdad780851fa66395458a62
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=783-796/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,259
dfa7e0e380b07bb96a25e7585a46e411
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1134-1144/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,260
2ec0e63a0c94ee7ce42e59923843a55b
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=797-878/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,261
883434cd6a2274317385f2c0ef92f62e
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=507-518/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,262
01ceec50a751925c1d309ad9dab83c64
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1107-1111/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
getLongKeyError
function
function getLongKeyError(source, key) { const sk = String(key); const k = sk.substr(0, 8) + '...' + sk.substr(-8); return new PlainValue.YAMLSemanticError(source, `The "${k}" key is too long`); }
1,289,263
bcdb2bb027971f4266c4e6d361cfdda6
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1507-1609/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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 PlainValue.Type.BLANK_LINE: comments.push({ afterKey: !!k...
1,289,264
19d97bdbbd5675b04597adb9666b3df6
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=503-505/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
YAMLMap::set
function
set(key, value) { this.add(new Pair(key, value), true); }
1,289,265
3d42b1653a6eccd97b37166ad0ef6f8a
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=519-533/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,266
b1fdd47fb448658287c68e293fb1b444
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-14/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
Node
type
class Node {}
1,289,267
be64121ad6d709136c77430f6ed2bd02
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=69-196/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.js
Collection
type
class Collection extends Node { constructor(schema) { super(); PlainValue._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 instanc...
1,289,268
2b968a1035a9ce7ae9af87cef755a132
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=264-386/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,269
7876d71d52a07efb8574f417211c34e1
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=204-248/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,270
3388addd67a2621b296811a086f3c8d1
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-43/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,271
91014444e256a42b0ec604a1916021c9
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=410-462/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,272
f11c45b62d33d473709c9c71353f8751
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=475-534/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,273
9a1c30c2f73ce15f34ae8c61ebcc76d8
swh:1:cnt:20a86537ae669f15bd119750e6c7b1d875322305;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=537-592/
df3d1d0760976ed32cb3beb9a83189f244f00765
wlbdashboard
wmcs
node_modules/yaml/dist/resolveSeq-95613e94.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,289,274
e71d700d16b06eff6916586233be3224
swh:1:cnt:f5d5f94f9ac018ded90433e8c78646d5efbf3167;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-18/
7a7e25d18eb758b3d0b71fc948bd78708f7c95da
wlbdashboard
wmcs
node_modules/yaml/dist/Schema-bcc6c2d7.js
createMap
function
function createMap(schema, obj, ctx) { const map = new resolveSeq.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...
1,289,275
5a63608b3a2211db98cd8b99151bced2
swh:1:cnt:f5d5f94f9ac018ded90433e8c78646d5efbf3167;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-36/
7a7e25d18eb758b3d0b71fc948bd78708f7c95da
wlbdashboard
wmcs
node_modules/yaml/dist/Schema-bcc6c2d7.js
createSeq
function
function createSeq(schema, obj, ctx) { const seq = new resolveSeq.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,289,276
ebe9b831f05ebb6f6da07bf02f8db9ae
swh:1:cnt:f5d5f94f9ac018ded90433e8c78646d5efbf3167;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=64-70/
7a7e25d18eb758b3d0b71fc948bd78708f7c95da
wlbdashboard
wmcs
node_modules/yaml/dist/Schema-bcc6c2d7.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 resolveSeq.stringifyNumber(node); }
1,289,277
b6c6aee7d9c540d8d36ea382258dca4e
swh:1:cnt:f5d5f94f9ac018ded90433e8c78646d5efbf3167;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=207-226/
7a7e25d18eb758b3d0b71fc948bd78708f7c95da
wlbdashboard
wmcs
node_modules/yaml/dist/Schema-bcc6c2d7.js
intResolve
function
function intResolve(sign, src, radix) { let str = src.replace(/_/g, ''); if (resolveSeq.intOptions.asBigInt) { switch (radix) { case 2: str = `0b${str}`; break; case 8: str = `0o${str}`; break; case 16: str = `0x${str}`; break; } const n ...
1,289,278
fdbd305c5ab3eea9eee7b6a8d789d7d3
swh:1:cnt:f5d5f94f9ac018ded90433e8c78646d5efbf3167;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=227-236/
7a7e25d18eb758b3d0b71fc948bd78708f7c95da
wlbdashboard
wmcs
node_modules/yaml/dist/Schema-bcc6c2d7.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 resolveSeq.stringifyNumber(node); }
1,289,279
0eee3fa35797446aa4e4990afadd8176
swh:1:cnt:f5d5f94f9ac018ded90433e8c78646d5efbf3167;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=352-362/
7a7e25d18eb758b3d0b71fc948bd78708f7c95da
wlbdashboard
wmcs
node_modules/yaml/dist/Schema-bcc6c2d7.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,289,280
1e78458ab8ed2f9a661c3f48c27f3536
swh:1:cnt:f5d5f94f9ac018ded90433e8c78646d5efbf3167;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=363-403/
7a7e25d18eb758b3d0b71fc948bd78708f7c95da
wlbdashboard
wmcs
node_modules/yaml/dist/Schema-bcc6c2d7.js
createNode
function
function createNode(value, tagName, ctx) { if (value instanceof resolveSeq.Node) return value; const { defaultPrefix, onTagObj, prevObjects, schema, wrapScalars } = ctx; if (tagName && tagName.startsWith('!!')) tagName = defaultPrefix + tagName.slice(2); let tagObj = findTagObject(value, t...
1,289,281
1f1d4bcd7ac1edf95ee68ba75df28421
swh:1:cnt:f5d5f94f9ac018ded90433e8c78646d5efbf3167;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=405-428/
7a7e25d18eb758b3d0b71fc948bd78708f7c95da
wlbdashboard
wmcs
node_modules/yaml/dist/Schema-bcc6c2d7.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,289,282
496a8c062b76c2b004cab3165111e819
swh:1:cnt:f5d5f94f9ac018ded90433e8c78646d5efbf3167;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=315-322/
7a7e25d18eb758b3d0b71fc948bd78708f7c95da
wlbdashboard
wmcs
node_modules/yaml/dist/Schema-bcc6c2d7.js
resolve
function
resolve(str, frac) { const node = new resolveSeq.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,289,283
c67dc797890167d7fcb7b6e8e913384c
swh:1:cnt:f5d5f94f9ac018ded90433e8c78646d5efbf3167;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=50-55/
7a7e25d18eb758b3d0b71fc948bd78708f7c95da
wlbdashboard
wmcs
node_modules/yaml/dist/Schema-bcc6c2d7.js
stringify
function
stringify(item, ctx, onComment, onChompKeep) { ctx = Object.assign({ actualString: true }, ctx); return resolveSeq.stringifyString(item, ctx, onComment, onChompKeep); }
1,289,284
f92ea0596ba16c34855c795fa339628a
swh:1:cnt:f5d5f94f9ac018ded90433e8c78646d5efbf3167;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=432-446/
7a7e25d18eb758b3d0b71fc948bd78708f7c95da
wlbdashboard
wmcs
node_modules/yaml/dist/Schema-bcc6c2d7.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,289,285
65cd9c1b102a3151611d2cddd3ffed7d
swh:1:cnt:f5d5f94f9ac018ded90433e8c78646d5efbf3167;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=456-463/
7a7e25d18eb758b3d0b71fc948bd78708f7c95da
wlbdashboard
wmcs
node_modules/yaml/dist/Schema-bcc6c2d7.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 resolveSeq.Pair(k, v); }
1,289,286
b00e3d678c4125ef60a688e3fe1c60bd
swh:1:cnt:f5d5f94f9ac018ded90433e8c78646d5efbf3167;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=447-455/
7a7e25d18eb758b3d0b71fc948bd78708f7c95da
wlbdashboard
wmcs
node_modules/yaml/dist/Schema-bcc6c2d7.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,289,287
62300a8641cd413941371df7e304a1ba
swh:1:cnt:f5d5f94f9ac018ded90433e8c78646d5efbf3167;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=431-464/
7a7e25d18eb758b3d0b71fc948bd78708f7c95da
wlbdashboard
wmcs
node_modules/yaml/dist/Schema-bcc6c2d7.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,289,288
737f66cab9db42fc5691f5633a81e7a5
swh:1:cnt:36138438a434a3cb7f08a25e202f5f2103e40d08;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-55/
76619cb376c51f755d0be8f4e797320ec9c44d7d
wlbdashboard
wmcs
node_modules/yaml/dist/test-events.js
testEvents
function
// test harness for yaml-test-suite event tests function testEvents(src, options) { const opt = Object.assign({ keepCstNodes: true, keepNodeTypes: true, version: '1.2' }, options); const docs = parseCst.parse(src).map(cstDoc => new Document.Document(opt).parse(cstDoc)); const errDoc = docs.find(doc ...
1,289,289
3b7538fda35f72bb93ca8113e96e9cfc
swh:1:cnt:36138438a434a3cb7f08a25e202f5f2103e40d08;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=56-144/
76619cb376c51f755d0be8f4e797320ec9c44d7d
wlbdashboard
wmcs
node_modules/yaml/dist/test-events.js
addEvents
function
function addEvents(events, doc, e, node) { if (!node) { events.push('=VAL :'); return; } if (e && node.cstNode === e) throw new Error(); let props = ''; let anchor = doc.anchors.getName(node); if (anchor) { if (/\d$/.test(anchor)) { const alt = anchor.replace(/\d$/, ''); if (doc.anch...
1,289,290
62fd60cb9b7ca9be2469a6c6153bd2bf
swh:1:cnt:da0f842e4bcee3c459365b45e12d74512c65f572;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=74-91/
d376fcb7326d428185a6d0462bcfd5b82cb06b40
wlbdashboard
wmcs
node_modules/yaml/dist/warnings-793925ce.js
parsePairs
function
function parsePairs(doc, cst) { const seq = resolveSeq.resolveSeq(doc, cst); for (let i = 0; i < seq.items.length; ++i) { let item = seq.items[i]; if (item instanceof resolveSeq.Pair) continue;else if (item instanceof resolveSeq.YAMLMap) { if (item.items.length > 1) { const msg = 'Each pair mu...
1,289,291
193b81e4063196f587328c10d2fcab71
swh:1:cnt:da0f842e4bcee3c459365b45e12d74512c65f572;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=151-167/
d376fcb7326d428185a6d0462bcfd5b82cb06b40
wlbdashboard
wmcs
node_modules/yaml/dist/warnings-793925ce.js
parseOMap
function
function parseOMap(doc, cst) { const pairs = parsePairs(doc, cst); const seenKeys = []; for (const { key } of pairs.items) { if (key instanceof resolveSeq.Scalar) { if (seenKeys.includes(key.value)) { const msg = 'Ordered maps must not include duplicate keys'; throw new PlainValue....
1,289,292
e6f6709a6690915e74283991a988eba2
swh:1:cnt:da0f842e4bcee3c459365b45e12d74512c65f572;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=124-132/
d376fcb7326d428185a6d0462bcfd5b82cb06b40
wlbdashboard
wmcs
node_modules/yaml/dist/warnings-793925ce.js
YAMLOMap::constructor
function
constructor() { super(); PlainValue._defineProperty(this, "add", resolveSeq.YAMLMap.prototype.add.bind(this)); PlainValue._defineProperty(this, "delete", resolveSeq.YAMLMap.prototype.delete.bind(this)); PlainValue._defineProperty(this, "get", resolveSeq.YAMLMap.prototype.get.bind(this)); PlainValue....
1,289,293
5b45096ae3719547394df6c1c78e33f7
swh:1:cnt:da0f842e4bcee3c459365b45e12d74512c65f572;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=92-115/
d376fcb7326d428185a6d0462bcfd5b82cb06b40
wlbdashboard
wmcs
node_modules/yaml/dist/warnings-793925ce.js
createPairs
function
function createPairs(schema, iterable, ctx) { const pairs = new resolveSeq.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...
1,289,294
c7bf25283fa6cd8ff438af407357f2e4
swh:1:cnt:da0f842e4bcee3c459365b45e12d74512c65f572;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=133-148/
d376fcb7326d428185a6d0462bcfd5b82cb06b40
wlbdashboard
wmcs
node_modules/yaml/dist/warnings-793925ce.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 resolveSeq.Pair) { key = resolveSeq.toJSON(pair.key, '', ctx); value = resolveSeq.toJSON(pair.value, key, ctx); } else { ...
1,289,295
5486bbd118b62fda8fbd51edf7755f6b
swh:1:cnt:da0f842e4bcee3c459365b45e12d74512c65f572;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=168-173/
d376fcb7326d428185a6d0462bcfd5b82cb06b40
wlbdashboard
wmcs
node_modules/yaml/dist/warnings-793925ce.js
createOMap
function
function createOMap(schema, iterable, ctx) { const pairs = createPairs(schema, iterable, ctx); const omap = new YAMLOMap(); omap.items = pairs.items; return omap; }
1,289,296
181a76c653b7e79af3e9cf853692f0f2
swh:1:cnt:da0f842e4bcee3c459365b45e12d74512c65f572;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=184-187/
d376fcb7326d428185a6d0462bcfd5b82cb06b40
wlbdashboard
wmcs
node_modules/yaml/dist/warnings-793925ce.js
YAMLSet::constructor
function
constructor() { super(); this.tag = YAMLSet.tag; }
1,289,297
bd425b106a0dff655c2c21c371cb1299
swh:1:cnt:da0f842e4bcee3c459365b45e12d74512c65f572;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=188-192/
d376fcb7326d428185a6d0462bcfd5b82cb06b40
wlbdashboard
wmcs
node_modules/yaml/dist/warnings-793925ce.js
YAMLSet::add
function
add(key) { const pair = key instanceof resolveSeq.Pair ? key : new resolveSeq.Pair(key); const prev = resolveSeq.findPair(this.items, pair.key); if (!prev) this.items.push(pair); }
1,289,298
1335b5c3794daf49cfa9f371d6892185
swh:1:cnt:da0f842e4bcee3c459365b45e12d74512c65f572;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=193-196/
d376fcb7326d428185a6d0462bcfd5b82cb06b40
wlbdashboard
wmcs
node_modules/yaml/dist/warnings-793925ce.js
YAMLSet::get
function
get(key, keepPair) { const pair = resolveSeq.findPair(this.items, key); return !keepPair && pair instanceof resolveSeq.Pair ? pair.key instanceof resolveSeq.Scalar ? pair.key.value : pair.key : pair; }
1,289,299
587d50b0c6185f4fe35b3d127cf7b4d0
swh:1:cnt:da0f842e4bcee3c459365b45e12d74512c65f572;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=197-205/
d376fcb7326d428185a6d0462bcfd5b82cb06b40
wlbdashboard
wmcs
node_modules/yaml/dist/warnings-793925ce.js
YAMLSet::set
function
set(key, value) { if (typeof value !== 'boolean') throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value}`); const prev = resolveSeq.findPair(this.items, key); if (prev && !value) { this.items.splice(this.items.indexOf(prev), 1); } else if (!prev && value) { ...