id int64 0 1.29M | original_id stringlengths 32 32 | swhid stringlengths 100 170 | sha1 stringlengths 40 40 | repo_name stringlengths 2 45 | repo_group stringclasses 12
values | filepath stringlengths 5 153 | name stringlengths 1 14.9k | type stringclasses 3
values | code stringlengths 7 2.12M |
|---|---|---|---|---|---|---|---|---|---|
1,288,700 | 1559cf259d7bdb6b9d08c881a544ea39 | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=276-283/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | Merge | type | class Merge extends Pair {
type: Pair.Type.MERGE_PAIR
/** Always Scalar('<<'), defined by the type specification */
key: AST.PlainValue
/** Always YAMLSeq<Alias(Map)>, stringified as *A if length = 1 */
value: YAMLSeq
toString(ctx?: Schema.StringifyContext, onComment?: () => void): string
} |
1,288,701 | c5e1ebf714b3710ba56b8291c885c242 | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=247-252/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | Alias | type | class Alias extends Node {
type: Type.ALIAS
source: Node
cstNode?: CST.Alias
toString(ctx: Schema.StringifyContext): string
} |
1,288,702 | 02cb18f326fd3cba2031d6eca6e0606c | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=239-244/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | Scalar::Type | type | type Type =
| Type.BLOCK_FOLDED
| Type.BLOCK_LITERAL
| Type.PLAIN
| Type.QUOTE_DOUBLE
| Type.QUOTE_SINGLE |
1,288,703 | 315d9474881c779638861043ea6ec994 | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=351-359/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | AST::NodeToJsonContext | type | interface NodeToJsonContext {
anchors?: any[]
doc: Document
keep?: boolean
mapAsMap?: boolean
maxAliasCount?: number
onCreate?: (node: Node) => void
[key: string]: any
} |
1,288,704 | 6a01a0a004e67cbd0986455b3e388f78 | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=366-369/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | AST::BlockLiteral | type | interface BlockLiteral extends Scalar {
type: Type.BLOCK_LITERAL
cstNode?: CST.BlockLiteral
} |
1,288,705 | de9f20f4a99c3dc50f0616ede8c7d2a3 | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=391-394/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | AST::BlockMap | type | interface BlockMap extends YAMLMap {
type: Type.MAP
cstNode?: CST.Map
} |
1,288,706 | 78896daa7b56c39d680a0e8d2cd416c2 | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=170-181/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | Schema::CustomTag | type | interface CustomTag extends BaseTag {
/**
* A JavaScript class that should be matched to this tag, e.g. `Date` for `!!timestamp`.
* @deprecated Use `Tag.identify` instead
*/
class?: new () => any
/**
* Turns a CST node into an AST node. If returning a non-`Node` value, the
* output ... |
1,288,707 | a198f10c1a766b82b51d0fe4c7e26dc7 | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=285-321/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | Collection | type | class Collection extends Node {
type?: Type.MAP | Type.FLOW_MAP | Type.SEQ | Type.FLOW_SEQ | Type.DOCUMENT
items: any[]
schema?: Schema
/**
* Adds a value to the collection. For `!!map` and `!!omap` the value must
* be a Pair instance or a `{ key, value }` object, which may not have a key
* that alrea... |
1,288,708 | 28fc2fc3cc02c5f8f1d409f777ed4620 | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=376-379/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | AST::QuoteDouble | type | interface QuoteDouble extends Scalar {
type: Type.QUOTE_DOUBLE
cstNode?: CST.QuoteDouble
} |
1,288,709 | 56fd2a01ad59fe084700ec72e861377a | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=386-389/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | AST::FlowMap | type | interface FlowMap extends YAMLMap {
type: Type.FLOW_MAP
cstNode?: CST.FlowMap
} |
1,288,710 | 9f599e73be2114ade18c9f03dbec14f5 | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=90-97/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | Schema::StringifyContext | type | interface StringifyContext {
forceBlockIndent?: boolean
implicitKey?: boolean
indent?: string
indentAtStart?: number
inFlow?: boolean
[key: string]: any
} |
1,288,711 | 42d61af8082b0c66011cc0e5c5d36dfe | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=116-116/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | Schema::Tag | type | type Tag = CustomTag | DefaultTag |
1,288,712 | 30f4df3839c006a9d559618a1dc0b033 | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=270-273/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | Pair::Type | type | enum Type {
PAIR = 'PAIR',
MERGE_PAIR = 'MERGE_PAIR'
} |
1,288,713 | f62bb3f08b6d58d2656acebd9a09adb8 | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=226-237/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | Scalar | type | class Scalar extends Node {
constructor(value: any)
type?: Scalar.Type
/**
* By default (undefined), numbers use decimal notation.
* The YAML 1.2 core schema only supports 'HEX' and 'OCT'.
*/
format?: 'BIN' | 'HEX' | 'OCT' | 'TIME'
value: any
toJSON(arg?: any, ctx?: AST.NodeToJsonContext): any
to... |
1,288,714 | 17b91dca36c8594b375bf95ba8112cec | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=381-384/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | AST::QuoteSingle | type | interface QuoteSingle extends Scalar {
type: Type.QUOTE_SINGLE
cstNode?: CST.QuoteSingle
} |
1,288,715 | 673fd97e59a23bf0947bcb86e2ca682f | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=402-406/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | AST::BlockSeq | type | interface BlockSeq extends YAMLSeq {
type: Type.SEQ
items: Array<Node | null>
cstNode?: CST.Seq
} |
1,288,716 | 7b417b215937d772a5b01d67a4992585 | swh:1:cnt:411e74e8a11aab25b8b1eaf9b4db71b76de4f44d;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=396-400/ | e86ceeef07691e7577b2f1010e649b4ebbd855d7 | wlbdashboard | wmcs | node_modules/yaml/types.d.ts | AST::FlowSeq | type | interface FlowSeq extends YAMLSeq {
type: Type.FLOW_SEQ
items: Array<Node>
cstNode?: CST.FlowSeq
} |
1,288,717 | 5c8cf5b4b2d83e528efc6e4b6c02caf3 | swh:1:cnt:b13554100d0331c0cc15a511cf0834f8ab5c7054;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-44/ | 5d4e2efe5346fdeef3f84d5e14ef5a89857c37ad | wlbdashboard | wmcs | node_modules/yaml/util.d.ts | Type | type | enum Type {
ALIAS = 'ALIAS',
BLANK_LINE = 'BLANK_LINE',
BLOCK_FOLDED = 'BLOCK_FOLDED',
BLOCK_LITERAL = 'BLOCK_LITERAL',
COMMENT = 'COMMENT',
DIRECTIVE = 'DIRECTIVE',
DOCUMENT = 'DOCUMENT',
FLOW_MAP = 'FLOW_MAP',
FLOW_SEQ = 'FLOW_SEQ',
MAP = 'MAP',
MAP_KEY = 'MAP_KEY',
MAP_VALUE = 'MAP_VALUE',
... |
1,288,718 | ee49fc1028c991c6d0eabbc8bf4f88d5 | swh:1:cnt:b13554100d0331c0cc15a511cf0834f8ab5c7054;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=72-74/ | 5d4e2efe5346fdeef3f84d5e14ef5a89857c37ad | wlbdashboard | wmcs | node_modules/yaml/util.d.ts | YAMLReferenceError | type | class YAMLReferenceError extends YAMLError {
name: 'YAMLReferenceError'
} |
1,288,719 | 508143c42ec81b6da4c970ae972382c8 | swh:1:cnt:b13554100d0331c0cc15a511cf0834f8ab5c7054;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=51-70/ | 5d4e2efe5346fdeef3f84d5e14ef5a89857c37ad | wlbdashboard | wmcs | node_modules/yaml/util.d.ts | YAMLError | type | class YAMLError extends Error {
name:
| 'YAMLReferenceError'
| 'YAMLSemanticError'
| 'YAMLSyntaxError'
| 'YAMLWarning'
message: string
source?: CST.Node
nodeType?: Type
range?: CST.Range
linePos?: { start: LinePos; end: LinePos }
/**
* Drops `source` and adds `nodeType`, `range` and `... |
1,288,720 | 2b4a9ec1a9edc701da00cb8354f2fbd6 | swh:1:cnt:b13554100d0331c0cc15a511cf0834f8ab5c7054;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=76-78/ | 5d4e2efe5346fdeef3f84d5e14ef5a89857c37ad | wlbdashboard | wmcs | node_modules/yaml/util.d.ts | YAMLSemanticError | type | class YAMLSemanticError extends YAMLError {
name: 'YAMLSemanticError'
} |
1,288,721 | dac9ce1e9f8a1283250c70c41e87128e | swh:1:cnt:b13554100d0331c0cc15a511cf0834f8ab5c7054;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=46-49/ | 5d4e2efe5346fdeef3f84d5e14ef5a89857c37ad | wlbdashboard | wmcs | node_modules/yaml/util.d.ts | LinePos | type | interface LinePos {
line: number
col: number
} |
1,288,722 | 2b3996e5c1bab8e49c15d31a30a12071 | swh:1:cnt:b13554100d0331c0cc15a511cf0834f8ab5c7054;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=80-82/ | 5d4e2efe5346fdeef3f84d5e14ef5a89857c37ad | wlbdashboard | wmcs | node_modules/yaml/util.d.ts | YAMLSyntaxError | type | class YAMLSyntaxError extends YAMLError {
name: 'YAMLSyntaxError'
} |
1,288,723 | 933c30505ce11518e2e9e87dc3965d2d | swh:1:cnt:b13554100d0331c0cc15a511cf0834f8ab5c7054;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=84-86/ | 5d4e2efe5346fdeef3f84d5e14ef5a89857c37ad | wlbdashboard | wmcs | node_modules/yaml/util.d.ts | YAMLWarning | type | class YAMLWarning extends YAMLError {
name: 'YAMLWarning'
} |
1,288,724 | f11368e51626d5ee7b0affd6393ee7b9 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=114-135/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | getTagObject | function | function getTagObject(tags, item) {
if (item instanceof Alias) return 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 Scalar) {
obj = item.value;
... |
1,288,725 | bb12b5cb444bf29ffba1ab410a36cf3d | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=190-193/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Anchors::constructor | function | constructor(prefix) {
_defineProperty(this, "map", Object.create(null));
this.prefix = prefix;
} |
1,288,726 | f883b531377131f69e15e413adf1faaa | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=198-209/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Anchors::createMergePair | function | createMergePair(...sources) {
const merge = new Merge();
merge.value.items = sources.map(s => {
if (s instanceof Alias) {
if (s.source instanceof YAMLMap) return s;
} else if (s instanceof YAMLMap) {
return this.createAlias(s);
}
throw new Error('Merge sources must be Map... |
1,288,727 | 871fecb106f02f8d0e497b0abfff2553 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=210-215/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Anchors::getName | function | getName(node) {
const {
map
} = this;
return Object.keys(map).find(a => map[a] === node);
} |
1,288,728 | 761a288c9f60c8aef93d8c56604647fa | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=231-244/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.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,288,729 | 5fb6cd5e0499611395ea946a8f243ce7 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=293-336/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.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,288,730 | ce3c6127552856e72025305276c9ac8c | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=369-419/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.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,288,731 | 1123a3afd127e23aca4c43231a60dd1e | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=451-459/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::deleteIn | function | deleteIn(path) {
if (isEmptyPath(path)) {
if (this.contents == null) return false;
this.contents = null;
return true;
}
assertCollection(this.contents);
return this.contents.deleteIn(path);
} |
1,288,732 | 32e733447f0c0cfda1dfe79c3b9e8740 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-34/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | bool | function | set bool(opt) {
Object.assign(boolOptions, opt);
} |
1,288,733 | 0566d6b4893b82c65cec78882ad18211 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=460-462/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::getDefaults | function | getDefaults() {
return Document$1.defaults[this.version] || Document$1.defaults[this.options.version] || {};
} |
1,288,734 | 80d642dadf69e6fd14f65b32e305d14f | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=635-643/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/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.defaults[defaultOptions.version], defaultOptions);
const schema = new Schema(options);
return schema.c... |
1,288,735 | 0201dc2e61f2274a1c174862aff14732 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=481-486/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::setIn | function | setIn(path, value) {
if (isEmptyPath(path)) this.contents = value;else {
assertCollection(this.contents);
this.contents.setIn(path, value);
}
} |
1,288,736 | 6a53ebabac0f790c676ba6ebb9c30c9f | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=530-541/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::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,288,737 | f3017df69b730d9264aa558fbaf9c510 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=675-679/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | stringify | function | function stringify(value, options) {
const doc = new Document(options);
doc.contents = value;
return String(doc);
} |
1,288,738 | e1bf6e06ec5b595627f47bc730fe9d8f | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=477-480/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::set | function | set(key, value) {
assertCollection(this.contents);
this.contents.set(key, value);
} |
1,288,739 | fe58fc75e8a51a8d3f6585b51790da49 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=155-184/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | stringify$1 | function | function stringify$1(item, ctx, onComment, onChompKeep) {
const {
anchors,
schema
} = ctx.doc;
let tagObj;
if (!(item instanceof Node)) {
const createCtx = {
aliasNodes: [],
onTagObj: o => tagObj = o,
prevObjects: new Map()
};
item = schema.createNode(item, true, null, crea... |
1,288,740 | 5367e943bb15706ee5ba55222c0c0cdc | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=219-221/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Anchors::getNode | function | getNode(name) {
return this.map[name];
} |
1,288,741 | 33dc1c8673191ad20e2574a213d23d86 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=355-368/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.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 YAMLSemanticError(directive, msg);
}
if (!documentOptions[version]) {
... |
1,288,742 | 2901c9fd13b6e5c180d136a651817b0a | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=466-469/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::getIn | function | getIn(path, keepScalar) {
if (isEmptyPath(path)) return !keepScalar && this.contents instanceof Scalar ? this.contents.value : this.contents;
return this.contents instanceof Collection ? this.contents.getIn(path, keepScalar) : undefined;
} |
1,288,743 | 3108849d09c875fd94f27e5571cc9ac7 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=500-526/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::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,288,744 | cd3185c7fdf68c3e1ec3f5167bd41824 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=645-647/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document::constructor | function | constructor(options) {
super(Object.assign({}, defaultOptions, options));
} |
1,288,745 | 7fb706619e8c7674e83896bc0e9e3a77 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=649-659/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | parseAllDocuments | function | function parseAllDocuments(src, options) {
const stream = [];
let prev;
for (const cstDoc of parse$1(src)) {
const doc = new Document(options);
doc.parse(cstDoc, prev);
stream.push(doc);
prev = doc;
}
return stream;
} |
1,288,746 | 1b752b9ff2fb2c8bcb757e06e86d10aa | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=669-674/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | parse | function | function parse(src, options) {
const doc = parseDocument(src, options);
doc.warnings.forEach(warning => warn(warning));
if (doc.errors.length > 0) throw doc.errors[0];
return doc.toJSON();
} |
1,288,747 | e09c597ca2d8562f774d7ce897253ed3 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=44-46/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | null | function | set null(opt) {
Object.assign(nullOptions, opt);
} |
1,288,748 | 57b181b011e3e7b2343ab89621a49984 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=50-52/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | str | function | set str(opt) {
Object.assign(strOptions, opt);
} |
1,288,749 | 2873f59e0bb6dea36e53bff251591828 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=487-499/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::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,288,750 | 6c68c75053f938134e0428edc47c7539 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=570-631/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::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,288,751 | f66b3361e03db1865a66afb72607654a | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=137-154/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.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,288,752 | 4eb233563733f0ebf5bacf544b3f5a6e | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=222-229/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.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,288,753 | badbf026fa1af71bf2dddfcf85342a57 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=245-271/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.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,288,754 | 255eb62821a8fa4c4db847f2df1cb5a9 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=338-354/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.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 YAMLSemanticError(directive, msg);
}
if (tagPrefixes.some(p => p.handle === handle)) {
const... |
1,288,755 | 78cf228a888971c5adf97069281612ef | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=421-424/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | assertCollection | function | function assertCollection(contents) {
if (contents instanceof Collection) return true;
throw new Error('Expected a YAML collection as document contents');
} |
1,288,756 | 3ef42a418ec4710cb891cd44cf6183cb | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=439-442/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::add | function | add(value) {
assertCollection(this.contents);
return this.contents.add(value);
} |
1,288,757 | e4a9c22880eb4b481632803e4572b7dd | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=443-446/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::addIn | function | addIn(path, value) {
assertCollection(this.contents);
this.contents.addIn(path, value);
} |
1,288,758 | a27ad7fec0e42191e407393789231155 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=463-465/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::get | function | get(key, keepScalar) {
return this.contents instanceof Collection ? this.contents.get(key, keepScalar) : undefined;
} |
1,288,759 | 2cd4a1bcd9b7661f5de1a8d53b534dfc | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-40/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | int | function | set int(opt) {
Object.assign(intOptions, opt);
} |
1,288,760 | 100312ff9ef89daf4c71f2a7ef0eb3da | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-28/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | binary | function | set binary(opt) {
Object.assign(binaryOptions, opt);
} |
1,288,761 | d40992c1730c4b4e7fb72ba054aecaa3 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=542-569/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::toJSON | function | toJSON(arg, onAnchor) {
const {
keepBlobsInJSON,
mapAsMap,
maxAliasCount
} = this.options;
const keep = keepBlobsInJSON && (typeof arg !== 'string' || !(this.contents instanceof Scalar));
const ctx = {
doc: this,
indentStep: ' ',
keep,
mapAsMap: keep && !!mapAs... |
1,288,762 | ba24889ba755c230048240281e87755a | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=527-529/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::listNonDefaultTags | function | listNonDefaultTags() {
return listTagNames(this.contents).filter(t => t.indexOf(Schema.defaultPrefix) !== 0);
} |
1,288,763 | e9ffa39ee8bf2001eb46696c95c96336 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=90-112/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.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,288,764 | 07b088679437e0618075ef0580036f65 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=187-189/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Anchors::validAnchorNode | function | static validAnchorNode(node) {
return node instanceof Scalar || node instanceof YAMLSeq || node instanceof YAMLMap;
} |
1,288,765 | 1a8c30a1a39ece50c3ddf5b2ce116d2a | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=194-197/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Anchors::createAlias | function | createAlias(node, name) {
this.setAnchor(node, name);
return new Alias(node);
} |
1,288,766 | f68a4555ee49da3e8fe40a8895bc9c4e | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=216-218/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Anchors::getNames | function | getNames() {
return Object.keys(this.map);
} |
1,288,767 | f3b797ce84d9a1f6827d7d49dfd5db8a | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=426-438/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::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,288,768 | 73fdba0ae9ed74b5ca1ce6291ee5b774 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=447-450/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::delete | function | delete(key) {
assertCollection(this.contents);
return this.contents.delete(key);
} |
1,288,769 | 19438da89bc82e8951feebb1a2723111 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=470-472/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::has | function | has(key) {
return this.contents instanceof Collection ? this.contents.has(key) : false;
} |
1,288,770 | 2578445d5b35ea5f5678e219618a53c3 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=473-476/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1::hasIn | function | hasIn(path) {
if (isEmptyPath(path)) return this.contents !== undefined;
return this.contents instanceof Collection ? this.contents.hasIn(path) : false;
} |
1,288,771 | 399c2e817b026abbdcdd822888731c52 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=660-668/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | parseDocument | function | function parseDocument(src, options) {
const cst = parse$1(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 YAMLSemanticError(cst[1], errMsg));
}
return doc;
} |
1,288,772 | a03d27067c637b13e88564dff6e3c199 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=186-272/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Anchors | type | class Anchors {
static validAnchorNode(node) {
return node instanceof Scalar || node instanceof YAMLSeq || node instanceof YAMLMap;
}
constructor(prefix) {
_defineProperty(this, "map", Object.create(null));
this.prefix = prefix;
}
createAlias(node, name) {
this.setAnchor(node, name);
retur... |
1,288,773 | 878af62bc4429815b2382daf25bba5f7 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=644-648/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document | type | class Document extends Document$1 {
constructor(options) {
super(Object.assign({}, defaultOptions, options));
}
} |
1,288,774 | 1705a29f2f941c8295a8ad8b2331e739 | swh:1:cnt:1a47331728960a232252d1e3b8e9ab18b1dca263;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=425-632/ | 608a8e36e430034725d068f7713533e2edeb4fce | wlbdashboard | wmcs | node_modules/yaml/browser/dist/index.js | Document$1 | type | class Document$1 {
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,288,775 | 0c7c00e4f86ab52a194204890d47b3eb | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=3-27/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | BlankLine | type | class BlankLine extends Node {
constructor() {
super(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 from the source
*
... |
1,288,776 | 180550b6cf38d643050525660fd9923a | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=181-364/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Collection | type | class Collection extends Node {
static nextContentHasIndent(src, offset, indent) {
const lineStart = Node.endOfLine(src, offset) + 1;
offset = Node.endOfWhiteSpace(src, lineStart);
const ch = src[offset];
if (!ch) return false;
if (offset >= lineStart + indent) return true;
if (ch !== '#' && c... |
1,288,777 | 3938862e8cc2504ad98d6645d341ee14 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=132-150/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Comment | type | class Comment extends Node {
constructor() {
super(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
*/
parse(context, start) {
... |
1,288,778 | ace0fcfc108ed5251b8d5f4fc98778e6 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=366-403/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Directive | type | class Directive extends Node {
constructor() {
super(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;
let ch = src[offset... |
1,288,779 | 8528ed0052c40d6718f456d87173074b | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=29-130/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | CollectionItem | type | class CollectionItem extends 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
* @returns ... |
1,288,780 | 889c540b0fc931e9a5f07b4b834a6985 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=405-617/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Document | type | class Document extends Node {
static startCommentOrEndBlankLine(src, start) {
const offset = Node.endOfWhiteSpace(src, start);
const ch = src[offset];
return ch === '#' || ch === '\n' ? offset : start;
}
constructor() {
super(Type.DOCUMENT);
this.directives = null;
this.contents = null;
... |
1,288,781 | 8a4f9345f2417e8cb8618afb8ebe587f | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=619-638/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Alias | type | class Alias extends 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 {
src
} =... |
1,288,782 | 4b03d60e6137985d1012788762a1ccd3 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=645-838/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | BlockValue | type | class BlockValue extends 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.context) return ... |
1,288,783 | 0b655086e94b7dfbbc36333f38e8179f | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=840-1007/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | FlowCollection | type | class FlowCollection extends 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 === Type.COMMENT && this.prevNodeIsJsonLike(idx - 1));
}
/**
... |
1,288,784 | cac36fdb48377fa686adfc73f5421456 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1009-1189/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | QuoteDouble | type | class QuoteDouble extends 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 strValue() {
... |
1,288,785 | 845dc3b5076a989716416f1c5c9c6e72 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1191-1274/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | QuoteSingle | type | class QuoteSingle extends 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;
}
/**
* @returns {s... |
1,288,786 | a2f55a107882fb73b841f8493472a5e5 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1304-1470/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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,288,787 | ab070f1be6ac549ea3546cc2c4975e40 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=4-6/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | BlankLine::constructor | function | constructor() {
super(Type.BLANK_LINE);
} |
1,288,788 | 36015de855eadde40e15bb0031a2f652 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=30-33/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | CollectionItem::constructor | function | constructor(type, props) {
super(type, props);
this.node = null;
} |
1,288,789 | 8e0e3082da8e0d356b0d804caf6dac67 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=8-13/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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,288,790 | 9c15b5aa7bf0ccf99e7178e0343f2c44 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=207-209/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Collection::includesTrailingLines | function | get includesTrailingLines() {
return this.items.length > 0;
} |
1,288,791 | d461640b5302e90164e15356b9927a21 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=211-334/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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,288,792 | 6848b4a9accf8ddab5b89a68ac79f683 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=371-374/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Directive::parameters | function | get parameters() {
const raw = this.rawValue;
return raw ? raw.trim().split(/[ \t]+/) : [];
} |
1,288,793 | 04978322af242acb7786ca9a35b3894b | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=385-394/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Directive::parseParameters | function | parseParameters(start) {
const {
src
} = this.context;
let offset = start;
let ch = src[offset];
while (ch && ch !== '\n' && ch !== '#') ch = src[offset += 1];
this.valueRange = new Range(start, offset);
return offset;
} |
1,288,794 | 7f9e2fb3d98d26aff8016a2e7a82ca01 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=718-752/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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,288,795 | 737b5547328ce503e8fcd3a110b7d491 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=845-848/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | FlowCollection::prevNodeIsJsonLike | function | prevNodeIsJsonLike(idx = this.items.length) {
const node = this.items[idx - 1];
return !!node && (node.jsonLike || node.type === Type.COMMENT && this.prevNodeIsJsonLike(idx - 1));
} |
1,288,796 | 620116fab32fc05084b3d376ba33c04b | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=850-961/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | FlowCollection::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;
let {
indent,
lineStart
} = cont... |
1,288,797 | 52c0a80606179ce9536c1c55ad39d883 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=646-651/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | BlockValue::constructor | function | constructor(type, props) {
super(type, props);
this.blockIndent = null;
this.chomping = Chomp.CLIP;
this.header = null;
} |
1,288,798 | 8bdb6a251ed81aa46a84492d518845c5 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1171-1188/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | QuoteDouble::parse | function | /**
* Parses a "double quoted" value 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;
l... |
1,288,799 | 588768e0b9ebe0c3c266ff591750f79e | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=34-36/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | CollectionItem::includesTrailingLines | function | get includesTrailingLines() {
return !!this.node && this.node.includesTrailingLines;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.