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,000 | 400c1fbaee7baf116f7fea4700745c50 | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=149-165/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.js | parseOMap | function | function parseOMap(doc, cst) {
const pairs = parsePairs(doc, cst);
const seenKeys = [];
for (const {
key
} of pairs.items) {
if (key instanceof Scalar) {
if (seenKeys.includes(key.value)) {
const msg = 'Ordered maps must not include duplicate keys';
throw new YAMLSemanticError(cst,... |
1,289,001 | 5486bbd118b62fda8fbd51edf7755f6b | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=166-171/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.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,002 | 181a76c653b7e79af3e9cf853692f0f2 | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=182-185/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.js | YAMLSet::constructor | function | constructor() {
super();
this.tag = YAMLSet.tag;
} |
1,289,003 | cd03542f32e132ad51a39a5d266fb2b7 | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=186-190/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.js | YAMLSet::add | function | add(key) {
const pair = key instanceof Pair ? key : new Pair(key);
const prev = findPair(this.items, pair.key);
if (!prev) this.items.push(pair);
} |
1,289,004 | 82ee9a6637cc2d876547ca4bf10461ef | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=191-194/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.js | YAMLSet::get | function | get(key, keepPair) {
const pair = findPair(this.items, key);
return !keepPair && pair instanceof Pair ? pair.key instanceof Scalar ? pair.key.value : pair.key : pair;
} |
1,289,005 | 75ce519e8968edfbbd969738c22dca23 | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=195-203/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.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 = findPair(this.items, key);
if (prev && !value) {
this.items.splice(this.items.indexOf(prev), 1);
} else if (!prev && value) {
this.... |
1,289,006 | 4a2e0ce79b63b8d6c637f86a97f7a3b8 | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=204-206/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.js | YAMLSet::toJSON | function | toJSON(_, ctx) {
return super.toJSON(_, ctx, Set);
} |
1,289,007 | 283eed3b1933fe9186e9df9134468dc6 | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=332-337/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.js | warnFileDeprecation | function | function warnFileDeprecation(filename) {
if (shouldWarn(true)) {
const path = filename.replace(/.*yaml[/\\]/i, '').replace(/\.js$/, '').replace(/\\/g, '/');
warn(`The endpoint 'yaml/${path}' will be removed in a future release.`, 'DeprecationWarning');
}
} |
1,289,008 | de5b9dec4057be9598ef611db96a4383 | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=213-217/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.js | parseSet | function | function parseSet(doc, cst) {
const map = resolveMap(doc, cst);
if (!map.hasAllNullValues()) throw new YAMLSemanticError(cst, 'Set items must all have null values');
return Object.assign(new YAMLSet(), map);
} |
1,289,009 | 47438ce1850e5a3a359a1237a7c7e43e | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=339-346/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.js | warnOptionDeprecation | function | function warnOptionDeprecation(name, alternative) {
if (!warned[name] && shouldWarn(true)) {
warned[name] = true;
let msg = `The option '${name}' will be removed in a future release`;
msg += alternative ? `, use '${alternative}' instead.` : '.';
warn(msg, 'DeprecationWarning');
}
} |
1,289,010 | 16c58031ffaf9dab8c757babdfed6e52 | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=207-210/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.js | YAMLSet::toString | function | toString(ctx, onComment, onChompKeep) {
if (!ctx) return JSON.stringify(this);
if (this.hasAllNullValues()) return super.toString(ctx, onComment, onChompKeep);else throw new Error('Set items must all have null values');
} |
1,289,011 | d9bcda455f9cdf845dddc91512545bad | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=321-331/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.js | warn | function | function warn(warning, type) {
if (shouldWarn(false)) {
const emit = typeof process !== 'undefined' && process.emitWarning;
// This will throw in Jest if `warning` is an Error instance due to
// https://github.com/facebook/jest/issues/2549
if (emit) emit(warning, type);else {
// eslint-disable-n... |
1,289,012 | 4003c66ae13bcd1fea930cab3b465341 | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=218-222/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.js | createSet | function | function createSet(schema, iterable, ctx) {
const set = new YAMLSet();
for (const value of iterable) set.items.push(schema.createPair(value, null, ctx));
return set;
} |
1,289,013 | f44f86f2bfd422b4562aec3a804a4cb7 | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=310-320/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.js | shouldWarn | function | /* global console, process, YAML_SILENCE_DEPRECATION_WARNINGS, YAML_SILENCE_WARNINGS */
function shouldWarn(deprecation) {
const env = typeof process !== 'undefined' && process.env || {};
if (deprecation) {
if (typeof YAML_SILENCE_DEPRECATION_WARNINGS !== 'undefined') return !YAML_SILENCE_DEPRECATION_WARNINGS;... |
1,289,014 | c0a61096b5ce0e6322ae4b63cdc33765 | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=121-147/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.js | YAMLOMap | type | class YAMLOMap extends YAMLSeq {
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.proto... |
1,289,015 | a0811ece8a7d646d785390555b9ef75d | swh:1:cnt:dc9f2fa8fe6c93634f17acb8a64c62fccb937971;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=181-211/ | 4962172813f0f23a3ab1c1e1dcd999589168fb8f | wlbdashboard | wmcs | node_modules/yaml/browser/dist/warnings-5e4358fe.js | YAMLSet | type | class YAMLSet extends YAMLMap {
constructor() {
super();
this.tag = YAMLSet.tag;
}
add(key) {
const pair = key instanceof Pair ? key : new Pair(key);
const prev = findPair(this.items, pair.key);
if (!prev) this.items.push(pair);
}
get(key, keepPair) {
const pair = findPair(this.items, ... |
1,289,016 | e9ffa39ee8bf2001eb46696c95c96336 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=90-112/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | stringifyTag | function | function stringifyTag(doc, tag) {
if ((doc.version || doc.options.version) === '1.0') {
const priv = tag.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);
if (priv) return '!' + priv[1];
const vocab = tag.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);
return vocab ? `!${vocab[1]}/${vocab[2]}` : `!... |
1,289,017 | 3ef42a418ec4710cb891cd44cf6183cb | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=439-442/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::add | function | add(value) {
assertCollection(this.contents);
return this.contents.add(value);
} |
1,289,018 | 73fdba0ae9ed74b5ca1ce6291ee5b774 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=447-450/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::delete | function | delete(key) {
assertCollection(this.contents);
return this.contents.delete(key);
} |
1,289,019 | fbe3a4c777f215daa8ed7c7c23e29470 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=451-459/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::deleteIn | function | deleteIn(path) {
if (resolveSeq.isEmptyPath(path)) {
if (this.contents == null) return false;
this.contents = null;
return true;
}
assertCollection(this.contents);
return this.contents.deleteIn(path);
} |
1,289,020 | 49d1ea3d371fd25a3d589a078324fa4b | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=460-462/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::getDefaults | function | getDefaults() {
return Document.defaults[this.version] || Document.defaults[this.options.version] || {};
} |
1,289,021 | 933d114020487a5cc2fa5dfb46a79bd1 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=463-465/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::get | function | get(key, keepScalar) {
return this.contents instanceof resolveSeq.Collection ? this.contents.get(key, keepScalar) : undefined;
} |
1,289,022 | be7c4ba5bd52ab85c0b6b4376d2764b0 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=466-469/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::getIn | function | getIn(path, keepScalar) {
if (resolveSeq.isEmptyPath(path)) return !keepScalar && this.contents instanceof resolveSeq.Scalar ? this.contents.value : this.contents;
return this.contents instanceof resolveSeq.Collection ? this.contents.getIn(path, keepScalar) : undefined;
} |
1,289,023 | e5a2c853c09498ffbb4a8515424235d8 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=481-486/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::setIn | function | setIn(path, value) {
if (resolveSeq.isEmptyPath(path)) this.contents = value;else {
assertCollection(this.contents);
this.contents.setIn(path, value);
}
} |
1,289,024 | 78d925c3cc17139deecb7f4a07d185c5 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-34/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | bool | function | set bool(opt) {
Object.assign(resolveSeq.boolOptions, opt);
} |
1,289,025 | 7471f933192646931ca2d5f96db7b7c5 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-40/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | int | function | set int(opt) {
Object.assign(resolveSeq.intOptions, opt);
} |
1,289,026 | d55c72058f79e5e54ca89071aacc0940 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=44-46/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | null | function | set null(opt) {
Object.assign(resolveSeq.nullOptions, opt);
} |
1,289,027 | 23f8c42630550a317abfda94288b3c23 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=50-52/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | str | function | set str(opt) {
Object.assign(resolveSeq.strOptions, opt);
} |
1,289,028 | c53fbc65c5d88cf90dbc8d07545a7cf4 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=114-135/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | getTagObject | function | function getTagObject(tags, item) {
if (item instanceof resolveSeq.Alias) return resolveSeq.Alias;
if (item.tag) {
const match = tags.filter(t => t.tag === item.tag);
if (match.length > 0) return match.find(t => t.format === item.format) || match[0];
}
let tagObj, obj;
if (item instanceof resolveSeq.S... |
1,289,029 | edde902e01945678641b401d58147042 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=198-209/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Anchors::createMergePair | function | createMergePair(...sources) {
const merge = new resolveSeq.Merge();
merge.value.items = sources.map(s => {
if (s instanceof resolveSeq.Alias) {
if (s.source instanceof resolveSeq.YAMLMap) return s;
} else if (s instanceof resolveSeq.YAMLMap) {
return this.createAlias(s);
}
... |
1,289,030 | 871fecb106f02f8d0e497b0abfff2553 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=210-215/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Anchors::getName | function | getName(node) {
const {
map
} = this;
return Object.keys(map).find(a => map[a] === node);
} |
1,289,031 | 5367e943bb15706ee5ba55222c0c0cdc | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=219-221/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Anchors::getNode | function | getNode(name) {
return this.map[name];
} |
1,289,032 | 761a288c9f60c8aef93d8c56604647fa | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=231-244/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Anchors::resolveNodes | function | // During parsing, map & aliases contain CST nodes
resolveNodes() {
const {
map,
_cstAliases
} = this;
Object.keys(map).forEach(a => {
map[a] = map[a].resolved;
});
_cstAliases.forEach(a => {
a.source = a.source.resolved;
});
delete this._cstAliases;
} |
1,289,033 | 10c0ccb29e88f68dc6790921cdd0369b | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=355-368/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | resolveYamlDirective | function | function resolveYamlDirective(doc, directive) {
let [version] = directive.parameters;
if (directive.name === 'YAML:1.0') version = '1.0';
if (!version) {
const msg = 'Insufficient parameters given for %YAML directive';
throw new PlainValue.YAMLSemanticError(directive, msg);
}
if (!documentOptions[vers... |
1,289,034 | 494bbcb41cc6cea0e1c949a183586647 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=369-419/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | parseDirectives | function | function parseDirectives(doc, directives, prevDoc) {
const directiveComments = [];
let hasDirectives = false;
for (const directive of directives) {
const {
comment,
name
} = directive;
switch (name) {
case 'TAG':
try {
doc.tagPrefixes.push(resolveTagDirective(doc, d... |
1,289,035 | e4a9c22880eb4b481632803e4572b7dd | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=443-446/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::addIn | function | addIn(path, value) {
assertCollection(this.contents);
this.contents.addIn(path, value);
} |
1,289,036 | e1bf6e06ec5b595627f47bc730fe9d8f | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=477-480/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::set | function | set(key, value) {
assertCollection(this.contents);
this.contents.set(key, value);
} |
1,289,037 | 1029de2e0c22f8ff21b5cb0278e3846c | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=542-569/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::toJSON | function | toJSON(arg, onAnchor) {
const {
keepBlobsInJSON,
mapAsMap,
maxAliasCount
} = this.options;
const keep = keepBlobsInJSON && (typeof arg !== 'string' || !(this.contents instanceof resolveSeq.Scalar));
const ctx = {
doc: this,
indentStep: ' ',
keep,
mapAsMap: keep... |
1,289,038 | f66b3361e03db1865a66afb72607654a | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=137-154/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | stringifyProps | function | // needs to be called before value stringifier to allow for circular anchor refs
function stringifyProps(node, tagObj, {
anchors,
doc
}) {
const props = [];
const anchor = doc.anchors.getName(node);
if (anchor) {
anchors[anchor] = node;
props.push(`&${anchor}`);
}
if (node.tag) {
props.push(st... |
1,289,039 | d285dd22794ea063986ff974dac13562 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=155-184/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | stringify | function | function stringify(item, ctx, onComment, onChompKeep) {
const {
anchors,
schema
} = ctx.doc;
let tagObj;
if (!(item instanceof resolveSeq.Node)) {
const createCtx = {
aliasNodes: [],
onTagObj: o => tagObj = o,
prevObjects: new Map()
};
item = schema.createNode(item, true, n... |
1,289,040 | bcdf677a9eb0904aa8a590603b7f72a4 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=190-193/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Anchors::constructor | function | constructor(prefix) {
PlainValue._defineProperty(this, "map", Object.create(null));
this.prefix = prefix;
} |
1,289,041 | cee4ce86fbc6b04140adbb01c1b008d9 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=194-197/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Anchors::createAlias | function | createAlias(node, name) {
this.setAnchor(node, name);
return new resolveSeq.Alias(node);
} |
1,289,042 | f68a4555ee49da3e8fe40a8895bc9c4e | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=216-218/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Anchors::getNames | function | getNames() {
return Object.keys(this.map);
} |
1,289,043 | badbf026fa1af71bf2dddfcf85342a57 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=245-271/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Anchors::setAnchor | function | setAnchor(node, name) {
if (node != null && !Anchors.validAnchorNode(node)) {
throw new Error('Anchors may only be set for Scalar, Seq and Map nodes');
}
if (name && /[\x00-\x19\s,[\]{}]/.test(name)) {
throw new Error('Anchor names must not contain whitespace or control characters');
}
c... |
1,289,044 | 99079d828e1ff7692505fee57b1ef957 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=487-499/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::setSchema | function | setSchema(id, customTags) {
if (!id && !customTags && this.schema) return;
if (typeof id === 'number') id = id.toFixed(1);
if (id === '1.0' || id === '1.1' || id === '1.2') {
if (this.version) this.version = id;else this.options.version = id;
delete this.options.schema;
} else if (id && type... |
1,289,045 | 3d2d3b14eca7b322a60d1a6bc31a3c65 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=500-526/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::parse | function | parse(node, prevDoc) {
if (this.options.keepCstNodes) this.cstNode = node;
if (this.options.keepNodeTypes) this.type = 'DOCUMENT';
const {
directives = [],
contents = [],
directivesEndMarker,
error,
valueRange
} = node;
if (error) {
if (!error.source) error.source... |
1,289,046 | ef36ed1bd192cf76df87e5a7d8cf764e | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-28/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | binary | function | set binary(opt) {
Object.assign(resolveSeq.binaryOptions, opt);
} |
1,289,047 | 6a49e076406ed996cc510da32a52015f | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=570-631/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::toString | function | toString() {
if (this.errors.length > 0) throw new Error('Document with errors cannot be stringified');
const indentSize = this.options.indent;
if (!Number.isInteger(indentSize) || indentSize <= 0) {
const s = JSON.stringify(indentSize);
throw new Error(`"indent" option must be a positive intege... |
1,289,048 | 6a53ebabac0f790c676ba6ebb9c30c9f | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=530-541/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::setTagPrefix | function | setTagPrefix(handle, prefix) {
if (handle[0] !== '!' || handle[handle.length - 1] !== '!') throw new Error('Handle must start and end with !');
if (prefix) {
const prev = this.tagPrefixes.find(p => p.handle === handle);
if (prev) prev.prefix = prefix;else this.tagPrefixes.push({
handle,
... |
1,289,049 | dd1badab818d0bd601fecd2bb61f152c | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=187-189/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Anchors::validAnchorNode | function | static validAnchorNode(node) {
return node instanceof resolveSeq.Scalar || node instanceof resolveSeq.YAMLSeq || node instanceof resolveSeq.YAMLMap;
} |
1,289,050 | 4eb233563733f0ebf5bacf544b3f5a6e | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=222-229/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Anchors::newName | function | newName(prefix) {
if (!prefix) prefix = this.prefix;
const names = Object.keys(this.map);
for (let i = 1; true; ++i) {
const name = `${prefix}${i}`;
if (!names.includes(name)) return name;
}
} |
1,289,051 | 9b183809bccc7f516bbdb8603bdcfafa | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=293-336/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | parseContents | function | function parseContents(doc, contents) {
const comments = {
before: [],
after: []
};
let body = undefined;
let spaceBefore = false;
for (const node of contents) {
if (node.valueRange) {
if (body !== undefined) {
const msg = 'Document contains trailing content not separated by a ... or... |
1,289,052 | e4aacbec096e3ee9d96386c0480ad96b | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=338-354/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | resolveTagDirective | function | function resolveTagDirective({
tagPrefixes
}, directive) {
const [handle, prefix] = directive.parameters;
if (!handle || !prefix) {
const msg = 'Insufficient parameters given for %TAG directive';
throw new PlainValue.YAMLSemanticError(directive, msg);
}
if (tagPrefixes.some(p => p.handle === handle)) ... |
1,289,053 | 8fb898808d5d2dabdceefada539ea3ec | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=421-424/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | assertCollection | function | function assertCollection(contents) {
if (contents instanceof resolveSeq.Collection) return true;
throw new Error('Expected a YAML collection as document contents');
} |
1,289,054 | f3b797ce84d9a1f6827d7d49dfd5db8a | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=426-438/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::constructor | function | constructor(options) {
this.anchors = new Anchors(options.anchorPrefix);
this.commentBefore = null;
this.comment = null;
this.contents = null;
this.directivesEndMarker = null;
this.errors = [];
this.options = options;
this.schema = null;
this.tagPrefixes = [];
this.version = null... |
1,289,055 | 8d74bef57a56b031817a78ecaa1dd7f8 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=470-472/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::has | function | has(key) {
return this.contents instanceof resolveSeq.Collection ? this.contents.has(key) : false;
} |
1,289,056 | dbee9278cb1408c5bf1248a3d0d4327e | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=473-476/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::hasIn | function | hasIn(path) {
if (resolveSeq.isEmptyPath(path)) return this.contents !== undefined;
return this.contents instanceof resolveSeq.Collection ? this.contents.hasIn(path) : false;
} |
1,289,057 | 286f07960e8dd36f523e7ea3af6b6525 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=527-529/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document::listNonDefaultTags | function | listNonDefaultTags() {
return listTagNames(this.contents).filter(t => t.indexOf(Schema.Schema.defaultPrefix) !== 0);
} |
1,289,058 | 17a5799c541ad160037ae32d858dffeb | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=186-272/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Anchors | type | class Anchors {
static validAnchorNode(node) {
return node instanceof resolveSeq.Scalar || node instanceof resolveSeq.YAMLSeq || node instanceof resolveSeq.YAMLMap;
}
constructor(prefix) {
PlainValue._defineProperty(this, "map", Object.create(null));
this.prefix = prefix;
}
createAlias(node, name)... |
1,289,059 | 71f6dfb85f75f739be43031f7ef6db10 | swh:1:cnt:f451e229873fbfd6eaa9ffc1bc727172ce034744;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=425-632/ | b393a33e5ca0967bf81eb102f2c579107c07dd8d | wlbdashboard | wmcs | node_modules/yaml/dist/Document-a8d0fbf9.js | Document | type | class Document {
constructor(options) {
this.anchors = new Anchors(options.anchorPrefix);
this.commentBefore = null;
this.comment = null;
this.contents = null;
this.directivesEndMarker = null;
this.errors = [];
this.options = options;
this.schema = null;
this.tagPrefixes = [];
... |
1,289,060 | 543e9570e4419d4f3c95d60bcdc6bb3a | swh:1:cnt:2239dbe60a24bc293f355e338f45cb2eb3eba2ee;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-18/ | c59f2fb72be050f1ebd1372dfa4da0afe94980e1 | wlbdashboard | wmcs | node_modules/yaml/dist/index.js | createNode | function | function createNode(value, wrapScalars = true, tag) {
if (tag === undefined && typeof wrapScalars === 'string') {
tag = wrapScalars;
wrapScalars = true;
}
const options = Object.assign({}, Document$1.Document.defaults[Document$1.defaultOptions.version], Document$1.defaultOptions);
const schema = new Sch... |
1,289,061 | 2e025adf15eaba96430138ccc4ade395 | swh:1:cnt:2239dbe60a24bc293f355e338f45cb2eb3eba2ee;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-43/ | c59f2fb72be050f1ebd1372dfa4da0afe94980e1 | wlbdashboard | wmcs | node_modules/yaml/dist/index.js | parseDocument | function | function parseDocument(src, options) {
const cst = parseCst.parse(src);
const doc = new Document(options).parse(cst[0]);
if (cst.length > 1) {
const errMsg = 'Source contains multiple documents; please use YAML.parseAllDocuments()';
doc.errors.unshift(new PlainValue.YAMLSemanticError(cst[1], errMsg));
}... |
1,289,062 | 880ea8ad8c9d0007e2f5a83d0d02ca49 | swh:1:cnt:2239dbe60a24bc293f355e338f45cb2eb3eba2ee;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=24-34/ | c59f2fb72be050f1ebd1372dfa4da0afe94980e1 | wlbdashboard | wmcs | node_modules/yaml/dist/index.js | parseAllDocuments | function | function parseAllDocuments(src, options) {
const stream = [];
let prev;
for (const cstDoc of parseCst.parse(src)) {
const doc = new Document(options);
doc.parse(cstDoc, prev);
stream.push(doc);
prev = doc;
}
return stream;
} |
1,289,063 | b8aae2c4b0d53a8f49f19cab833a716d | swh:1:cnt:2239dbe60a24bc293f355e338f45cb2eb3eba2ee;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-22/ | c59f2fb72be050f1ebd1372dfa4da0afe94980e1 | wlbdashboard | wmcs | node_modules/yaml/dist/index.js | Document::constructor | function | constructor(options) {
super(Object.assign({}, Document$1.defaultOptions, options));
} |
1,289,064 | dfa8d4dc05d5cec759ed2a7c8828aa5a | swh:1:cnt:2239dbe60a24bc293f355e338f45cb2eb3eba2ee;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=44-49/ | c59f2fb72be050f1ebd1372dfa4da0afe94980e1 | wlbdashboard | wmcs | node_modules/yaml/dist/index.js | parse | function | function parse(src, options) {
const doc = parseDocument(src, options);
doc.warnings.forEach(warning => warnings.warn(warning));
if (doc.errors.length > 0) throw doc.errors[0];
return doc.toJSON();
} |
1,289,065 | f3017df69b730d9264aa558fbaf9c510 | swh:1:cnt:2239dbe60a24bc293f355e338f45cb2eb3eba2ee;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=50-54/ | c59f2fb72be050f1ebd1372dfa4da0afe94980e1 | wlbdashboard | wmcs | node_modules/yaml/dist/index.js | stringify | function | function stringify(value, options) {
const doc = new Document(options);
doc.contents = value;
return String(doc);
} |
1,289,066 | 895f4f07521d398f6b2e8dbc8209a33c | swh:1:cnt:2239dbe60a24bc293f355e338f45cb2eb3eba2ee;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-23/ | c59f2fb72be050f1ebd1372dfa4da0afe94980e1 | wlbdashboard | wmcs | node_modules/yaml/dist/index.js | Document | type | class Document extends Document$1.Document {
constructor(options) {
super(Object.assign({}, Document$1.defaultOptions, options));
}
} |
1,289,067 | b3c4647021b9d6f1ee25b161578d353d | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=5-29/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | BlankLine | type | class BlankLine extends PlainValue.Node {
constructor() {
super(PlainValue.Type.BLANK_LINE);
}
/* istanbul ignore next */
get includesTrailingLines() {
// This is never called from anywhere, but if it were,
// this is the value it should return.
return true;
}
/**
* Parses a blank line ... |
1,289,068 | c4f7e382ffbc777da4042d8436992c88 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=134-152/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Comment | type | class Comment extends PlainValue.Node {
constructor() {
super(PlainValue.Type.COMMENT);
}
/**
* Parses a comment line from the source
*
* @param {ParseContext} context
* @param {number} start - Index of first character
* @returns {number} - Index of the character after this scalar
*/
pars... |
1,289,069 | 0f62cf3fa19a61aac9a543cbc9ab7098 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=183-366/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Collection | type | class Collection extends PlainValue.Node {
static nextContentHasIndent(src, offset, indent) {
const lineStart = PlainValue.Node.endOfLine(src, offset) + 1;
offset = PlainValue.Node.endOfWhiteSpace(src, lineStart);
const ch = src[offset];
if (!ch) return false;
if (offset >= lineStart + indent) ret... |
1,289,070 | 2a8abeb659870076e890ca8cd5bd1e6e | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-132/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | CollectionItem | type | class CollectionItem extends PlainValue.Node {
constructor(type, props) {
super(type, props);
this.node = null;
}
get includesTrailingLines() {
return !!this.node && this.node.includesTrailingLines;
}
/**
* @param {ParseContext} context
* @param {number} start - Index of first character
... |
1,289,071 | 3117b1a7352dcc5bb1e7bac2cf9d4326 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=368-405/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Directive | type | class Directive extends PlainValue.Node {
constructor() {
super(PlainValue.Type.DIRECTIVE);
this.name = null;
}
get parameters() {
const raw = this.rawValue;
return raw ? raw.trim().split(/[ \t]+/) : [];
}
parseName(start) {
const {
src
} = this.context;
let offset = start;
... |
1,289,072 | a1a4600b2194558633653502f67faf0b | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=407-619/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Document | type | class Document extends PlainValue.Node {
static startCommentOrEndBlankLine(src, start) {
const offset = PlainValue.Node.endOfWhiteSpace(src, start);
const ch = src[offset];
return ch === '#' || ch === '\n' ? offset : start;
}
constructor() {
super(PlainValue.Type.DOCUMENT);
this.directives = n... |
1,289,073 | afd6e00fcdf2e691107d581bd8b71fa5 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=621-640/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Alias | type | class Alias extends PlainValue.Node {
/**
* Parses an *alias from the source
*
* @param {ParseContext} context
* @param {number} start - Index of first character
* @returns {number} - Index of the character after this scalar
*/
parse(context, start) {
this.context = context;
const {
... |
1,289,074 | 516b583b3eb592788fb76ff4989bacc2 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=647-840/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | BlockValue | type | class BlockValue extends PlainValue.Node {
constructor(type, props) {
super(type, props);
this.blockIndent = null;
this.chomping = Chomp.CLIP;
this.header = null;
}
get includesTrailingLines() {
return this.chomping === Chomp.KEEP;
}
get strValue() {
if (!this.valueRange || !this.conte... |
1,289,075 | 681a8dfe169ef10caba7496be63df857 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=842-1009/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | FlowCollection | type | class FlowCollection extends PlainValue.Node {
constructor(type, props) {
super(type, props);
this.items = null;
}
prevNodeIsJsonLike(idx = this.items.length) {
const node = this.items[idx - 1];
return !!node && (node.jsonLike || node.type === PlainValue.Type.COMMENT && this.prevNodeIsJsonLike(idx... |
1,289,076 | 008751039b26e787a6566b4cb86de042 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1011-1191/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | QuoteDouble | type | class QuoteDouble extends PlainValue.Node {
static endOfQuote(src, offset) {
let ch = src[offset];
while (ch && ch !== '"') {
offset += ch === '\\' ? 2 : 1;
ch = src[offset];
}
return offset + 1;
}
/**
* @returns {string | { str: string, errors: YAMLSyntaxError[] }}
*/
get str... |
1,289,077 | 59adc11d65e1dd53c1e9591a9ab3c76d | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1193-1276/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | QuoteSingle | type | class QuoteSingle extends PlainValue.Node {
static endOfQuote(src, offset) {
let ch = src[offset];
while (ch) {
if (ch === "'") {
if (src[offset + 1] !== "'") break;
ch = src[offset += 2];
} else {
ch = src[offset += 1];
}
}
return offset + 1;
}
/**
* ... |
1,289,078 | 8bc21d46e7883123355716685f50aa8a | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1306-1472/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | ParseContext | type | /**
* @param {boolean} atLineStart - Node starts at beginning of line
* @param {boolean} inFlow - true if currently in a flow context
* @param {boolean} inCollection - true if currently in a collection context
* @param {number} indent - Current level of indentation
* @param {number} lineStart - Start of the curren... |
1,289,079 | 8e0e3082da8e0d356b0d804caf6dac67 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=10-15/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | BlankLine::includesTrailingLines | function | /* istanbul ignore next */
get includesTrailingLines() {
// This is never called from anywhere, but if it were,
// this is the value it should return.
return true;
} |
1,289,080 | ce41cc8ae1a111ce65523513eb2d3c74 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=115-118/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | CollectionItem::setOrigRanges | function | setOrigRanges(cr, offset) {
offset = super.setOrigRanges(cr, offset);
return this.node ? this.node.setOrigRanges(cr, offset) : offset;
} |
1,289,081 | 707ca17ac3b10d3fba056f838581878a | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=135-137/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Comment::constructor | function | constructor() {
super(PlainValue.Type.COMMENT);
} |
1,289,082 | 53d7bd245e2018e9cc224b0fadaa6edd | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=139-151/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Comment::parse | function | /**
* Parses a comment line from the source
*
* @param {ParseContext} context
* @param {number} start - Index of first character
* @returns {number} - Index of the character after this scalar
*/
parse(context, start) {
this.context = context;
const offset = this.parseComment(start);
this... |
1,289,083 | 9c15b5aa7bf0ccf99e7178e0343f2c44 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=209-211/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Collection::includesTrailingLines | function | get includesTrailingLines() {
return this.items.length > 0;
} |
1,289,084 | 1289bdd32df3ab424866ff30f8826e5b | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=184-192/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Collection::nextContentHasIndent | function | static nextContentHasIndent(src, offset, indent) {
const lineStart = PlainValue.Node.endOfLine(src, offset) + 1;
offset = PlainValue.Node.endOfWhiteSpace(src, lineStart);
const ch = src[offset];
if (!ch) return false;
if (offset >= lineStart + indent) return true;
if (ch !== '#' && ch !== '\n') ... |
1,289,085 | 893b23d60b30f37bfab64bd320703fa6 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=377-386/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Directive::parseName | function | parseName(start) {
const {
src
} = this.context;
let offset = start;
let ch = src[offset];
while (ch && ch !== '\n' && ch !== '\t' && ch !== ' ') ch = src[offset += 1];
this.name = src.slice(start, offset);
return offset;
} |
1,289,086 | f2521c16da9f8dfe052b79f375ed86f5 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=413-419/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Document::constructor | function | constructor() {
super(PlainValue.Type.DOCUMENT);
this.directives = null;
this.contents = null;
this.directivesEndMarker = null;
this.documentEndMarker = null;
} |
1,289,087 | 4c5d58836eec6576dd18f15fe6baffec | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=622-639/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Alias::parse | function | /**
* Parses an *alias from the source
*
* @param {ParseContext} context
* @param {number} start - Index of first character
* @returns {number} - Index of the character after this scalar
*/
parse(context, start) {
this.context = context;
const {
src
} = context;
let offset = Pl... |
1,289,088 | 52c0a80606179ce9536c1c55ad39d883 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=648-653/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | BlockValue::constructor | function | constructor(type, props) {
super(type, props);
this.blockIndent = null;
this.chomping = Chomp.CLIP;
this.header = null;
} |
1,289,089 | 3f7054f9252490dde8bbb8d997a554ec | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=720-754/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | BlockValue::parseBlockHeader | function | parseBlockHeader(start) {
const {
src
} = this.context;
let offset = start + 1;
let bi = '';
while (true) {
const ch = src[offset];
switch (ch) {
case '-':
this.chomping = Chomp.STRIP;
break;
case '+':
this.chomping = Chomp.KEEP;
... |
1,289,090 | 70ec0b92ddfc1cda4347a0531964e986 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1316-1341/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | ParseContext::parseType | function | static parseType(src, offset, inFlow) {
switch (src[offset]) {
case '*':
return PlainValue.Type.ALIAS;
case '>':
return PlainValue.Type.BLOCK_FOLDED;
case '|':
return PlainValue.Type.BLOCK_LITERAL;
case '{':
return PlainValue.Type.FLOW_MAP;
case '[':
... |
1,289,091 | 966ff00c3c4d9d37f7bd208727b8dfb6 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=982-1008/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | FlowCollection::toString | function | toString() {
const {
context: {
src
},
items,
range,
value
} = this;
if (value != null) return value;
const nodes = items.filter(item => item instanceof PlainValue.Node);
let str = '';
let prevEnd = range.start;
nodes.forEach(node => {
const prefix... |
1,289,092 | 628b68cfdb62f123f4ce8d766cd632a6 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1474-1505/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | parse | function | // Published as 'yaml/parse-cst'
function parse(src) {
const cr = [];
if (src.indexOf('\r') !== -1) {
src = src.replace(/\r\n?/g, (match, offset) => {
if (match.length > 1) cr.push(offset);
return '\n';
});
}
const documents = [];
let offset = 0;
do {
const doc = new Document();
... |
1,289,093 | 5d50f6c5a4027e5b3bff6b36084862d4 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-28/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | BlankLine::parse | function | /**
* Parses a blank line from the source
*
* @param {ParseContext} context
* @param {number} start - Index of first \n character
* @returns {number} - Index of the character after this
*/
parse(context, start) {
this.context = context;
this.range = new PlainValue.Range(start, start + 1);
... |
1,289,094 | 5864129ea51fdfdf0c9a4db30afecd4f | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=337-343/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Collection::setOrigRanges | function | setOrigRanges(cr, offset) {
offset = super.setOrigRanges(cr, offset);
this.items.forEach(node => {
offset = node.setOrigRanges(cr, offset);
});
return offset;
} |
1,289,095 | a49117673b484eebb1a99ca58359f04f | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=213-336/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Collection::parse | function | /**
* @param {ParseContext} context
* @param {number} start - Index of first character
* @returns {number} - Index of the character after this
*/
parse(context, start) {
this.context = context;
const {
parseNode,
src
} = context;
// It's easier to recalculate lineStart here rat... |
1,289,096 | 19d915667cb364084309db68f2a074b3 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=369-372/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Directive::constructor | function | constructor() {
super(PlainValue.Type.DIRECTIVE);
this.name = null;
} |
1,289,097 | dfe8e2152d2e566b7e3e137bfbfce146 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=344-365/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Collection::toString | function | toString() {
const {
context: {
src
},
items,
range,
value
} = this;
if (value != null) return value;
let str = src.slice(range.start, items[0].range.start) + String(items[0]);
for (let i = 1; i < items.length; ++i) {
const item = items[i];
const {
... |
1,289,098 | fac8e4a8e193cd0d012ecde25535f8fa | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=592-603/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | Document::setOrigRanges | function | setOrigRanges(cr, offset) {
offset = super.setOrigRanges(cr, offset);
this.directives.forEach(node => {
offset = node.setOrigRanges(cr, offset);
});
if (this.directivesEndMarker) offset = this.directivesEndMarker.setOrigRange(cr, offset);
this.contents.forEach(node => {
offset = node.set... |
1,289,099 | 8854f267bfa9e392bf6e940f4cfc0d53 | swh:1:cnt:c0608d2c141facfc9699de93c21428c30ede7140;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=657-719/ | 353e2b1c894217eb3b171c5f8595a6f382b49caa | wlbdashboard | wmcs | node_modules/yaml/dist/parse-cst.js | BlockValue::strValue | function | get strValue() {
if (!this.valueRange || !this.context) return null;
let {
start,
end
} = this.valueRange;
const {
indent,
src
} = this.context;
if (this.valueRange.isEmpty()) return '';
let lastNewLine = null;
let ch = src[end - 1];
while (ch === '\n' || ch =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.