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,800 | ce41cc8ae1a111ce65523513eb2d3c74 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=113-116/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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,288,801 | b534caddb46b6b36467a2cd8264d0432 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=117-129/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | CollectionItem::toString | function | toString() {
const {
context: {
src
},
node,
range,
value
} = this;
if (value != null) return value;
const str = node ? src.slice(range.start, node.range.start) + String(node) : src.slice(range.start, range.end);
return Node.addStringTerminator(src, range.end, s... |
1,288,802 | 17ddc54c76deab8d0fdf6078e9c63163 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=182-190/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Collection::nextContentHasIndent | function | 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 !== '#' && ch !== '\n') return false;
retu... |
1,288,803 | b7a79f3614804455c6e5e96144391583 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=191-206/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Collection::constructor | function | constructor(firstItem) {
super(firstItem.type === Type.SEQ_ITEM ? Type.SEQ : Type.MAP);
for (let i = firstItem.props.length - 1; i >= 0; --i) {
if (firstItem.props[i].start < firstItem.context.lineStart) {
// props on previous line are assumed by the collection
this.props = firstItem.props... |
1,288,804 | 5ed812858e59f2739feaaef797c75cca | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=152-180/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | grabCollectionEndComments | function | function grabCollectionEndComments(node) {
let cnode = node;
while (cnode instanceof CollectionItem) cnode = cnode.node;
if (!(cnode instanceof Collection)) return null;
const len = cnode.items.length;
let ci = -1;
for (let i = len - 1; i >= 0; --i) {
const n = cnode.items[i];
if (n.type === Type.CO... |
1,288,805 | dbf6c2f2b7c3aad62d6935a70873a7e3 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=367-370/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Directive::constructor | function | constructor() {
super(Type.DIRECTIVE);
this.name = null;
} |
1,288,806 | 79a3ffa2d58d1feb192c75451189158b | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=395-402/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Directive::parse | function | parse(context, start) {
this.context = context;
let offset = this.parseName(start + 1);
offset = this.parseParameters(offset);
offset = this.parseComment(offset);
this.range = new Range(start, offset);
return offset;
} |
1,288,807 | 05a59eed53fe4e04270db3dd9094244e | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=487-572/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Document::parseContents | function | parseContents(start) {
const {
parseNode,
src
} = this.context;
if (!this.contents) this.contents = [];
let lineStart = start;
while (src[lineStart - 1] === '-') lineStart -= 1;
let offset = Node.endOfWhiteSpace(src, start);
let atLineStart = lineStart === start;
this.valueRa... |
1,288,808 | 637491f6e6933a9791c1805632b06026 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=574-589/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Document::parse | function | /**
* @param {ParseContext} context
* @param {number} start - Index of first character
* @returns {number} - Index of the character after this
*/
parse(context, start) {
context.root = this;
this.context = context;
const {
src
} = context;
let offset = src.charCodeAt(start) === 0... |
1,288,809 | 1c21cebe00539864bf1f7078d4f111a1 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1276-1302/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | createNewNode | function | function createNewNode(type, props) {
switch (type) {
case Type.ALIAS:
return new Alias(type, props);
case Type.BLOCK_FOLDED:
case Type.BLOCK_LITERAL:
return new BlockValue(type, props);
case Type.FLOW_MAP:
case Type.FLOW_SEQ:
return new FlowCollection(type, props);
case Type... |
1,288,810 | c9b21c59bc54a8777633e06486cda3d6 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=834-837/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | BlockValue::setOrigRanges | function | setOrigRanges(cr, offset) {
offset = super.setOrigRanges(cr, offset);
return this.header ? this.header.setOrigRange(cr, offset) : offset;
} |
1,288,811 | 968e954269215938db59347c6b0ba820 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1256-1273/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | QuoteSingle::parse | function | /**
* Parses a 'single 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,812 | ad43efb6e5e2c9f4c203bf3808d8dd9d | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1314-1339/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | ParseContext::parseType | function | static parseType(src, offset, inFlow) {
switch (src[offset]) {
case '*':
return Type.ALIAS;
case '>':
return Type.BLOCK_FOLDED;
case '|':
return Type.BLOCK_LITERAL;
case '{':
return Type.FLOW_MAP;
case '[':
return Type.FLOW_SEQ;
case '?':
... |
1,288,813 | 6a561fd2570963245a3a652141ca0305 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=133-135/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Comment::constructor | function | constructor() {
super(Type.COMMENT);
} |
1,288,814 | 1995a70a0aad8539e38d7a52ebc4d6f8 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=342-363/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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,288,815 | f41565b886ed1fd7915bd9918e41ff1e | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=406-410/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Document::startCommentOrEndBlankLine | function | static startCommentOrEndBlankLine(src, start) {
const offset = Node.endOfWhiteSpace(src, start);
const ch = src[offset];
return ch === '#' || ch === '\n' ? offset : start;
} |
1,288,816 | 8124e0391883ff7573dd4563c828186e | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=418-486/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Document::parseDirectives | function | parseDirectives(start) {
const {
src
} = this.context;
this.directives = [];
let atLineStart = true;
let hasDirectives = false;
let offset = start;
while (!Node.atDocumentBoundary(src, offset, Char.DIRECTIVES_END)) {
offset = Document.startCommentOrEndBlankLine(src, offset);
... |
1,288,817 | b9adff72dbde31e3e1a51ae0f70b87c3 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=620-637/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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 = No... |
1,288,818 | cf6b781f21ccbe5a16ea4faa366a32f0 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=803-833/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | BlockValue::parse | function | /**
* Parses a block value from the source
*
* Accepted forms are:
* ```
* BS
* block
* lines
*
* BS #comment
* block
* lines
* ```
* where the block style BS matches the regexp `[|>][-+1-9]*` and block lines
* are empty or have an indent level greater than `indent`.
*
* ... |
1,288,819 | 25f53415de99b033a511770713036a41 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=841-844/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | FlowCollection::constructor | function | constructor(type, props) {
super(type, props);
this.items = null;
} |
1,288,820 | f7f9a1e24d2f4f46e9e8565c6af09e83 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1010-1017/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | QuoteDouble::endOfQuote | function | static endOfQuote(src, offset) {
let ch = src[offset];
while (ch && ch !== '"') {
offset += ch === '\\' ? 2 : 1;
ch = src[offset];
}
return offset + 1;
} |
1,288,821 | d639c2239fce6bcd8797baa9d8ddd506 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1192-1203/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | QuoteSingle::endOfQuote | function | 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,288,822 | b1862d48cf7c7926e14293ccd38c9a65 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1400-1413/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | ParseContext::nodeStartsCollection | function | nodeStartsCollection(node) {
const {
inCollection,
inFlow,
src
} = this;
if (inCollection || inFlow) return false;
if (node instanceof CollectionItem) return true;
// check for implicit key
let offset = node.range.end;
if (src[offset] === '\n' || src[offset - 1] === '\n') r... |
1,288,823 | fed993f2db8b7ba8550645dbf4d0c2c6 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1340-1399/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | ParseContext::constructor | function | constructor(orig = {}, {
atLineStart,
inCollection,
inFlow,
indent,
lineStart,
parent
} = {}) {
/**
* Parses a node from the source
* @param {ParseContext} overlay
* @param {number} start - Index of first non-whitespace character for the node
* @returns {?Node} - null i... |
1,288,824 | 4fd387d43162f9cc48b56c7e8d296756 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=753-801/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | BlockValue::parseBlockValue | function | parseBlockValue(start) {
const {
indent,
src
} = this.context;
const explicit = !!this.blockIndent;
let offset = start;
let valueEnd = start;
let minBlockIndent = 1;
for (let ch = src[offset]; ch === '\n'; ch = src[offset]) {
offset += 1;
if (Node.atDocumentBoundary(s... |
1,288,825 | ede6ea592162f045c6716b61b460be89 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=15-26/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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 Range(start, start + 1);
return st... |
1,288,826 | 6e8f209ce189758f6ef896a0c885d651 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=38-112/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | CollectionItem::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 {
atLineStart,
lineStart
} =... |
1,288,827 | 999f7d1c6e9b992c30dda48b9f34d33b | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=137-149/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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,288,828 | 5864129ea51fdfdf0c9a4db30afecd4f | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=335-341/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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,288,829 | 893b23d60b30f37bfab64bd320703fa6 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=375-384/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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,288,830 | 379346290f242a8f3e460284291276c7 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=411-417/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Document::constructor | function | constructor() {
super(Type.DOCUMENT);
this.directives = null;
this.contents = null;
this.directivesEndMarker = null;
this.documentEndMarker = null;
} |
1,288,831 | fac8e4a8e193cd0d012ecde25535f8fa | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=590-601/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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,288,832 | d63245d09fa9f6e5056944a1f0190e96 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=602-616/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | Document::toString | function | toString() {
const {
contents,
directives,
value
} = this;
if (value != null) return value;
let str = directives.join('');
if (contents.length > 0) {
if (directives.length > 0 || contents[0].type === Type.COMMENT) str += '---\n';
str += contents.join('');
}
if (... |
1,288,833 | 14ca26929a3b2e55a90f1110552abe24 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=652-654/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | BlockValue::includesTrailingLines | function | get includesTrailingLines() {
return this.chomping === Chomp.KEEP;
} |
1,288,834 | 8f13b66c8326a23f5047569afb50a6ef | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=655-717/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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 =... |
1,288,835 | b1f74a2ba01ff4c2a5d007c4cc4b68d8 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=962-979/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | FlowCollection::setOrigRanges | function | setOrigRanges(cr, offset) {
offset = super.setOrigRanges(cr, offset);
this.items.forEach(node => {
if (node instanceof Node) {
offset = node.setOrigRanges(cr, offset);
} else if (cr.length === 0) {
node.origOffset = node.offset;
} else {
let i = offset;
while (i... |
1,288,836 | 360b61f3f72880201d66c269b25e0ed4 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=980-1006/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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 Node);
let str = '';
let prevEnd = range.start;
nodes.forEach(node => {
const prefix = src.slic... |
1,288,837 | 0dc1579f060e6988b60d8f99c619a922 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1157-1169/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | QuoteDouble::parseCharCode | function | parseCharCode(offset, length, errors) {
const {
src
} = this.context;
const cc = src.substr(offset, length);
const ok = cc.length === length && /^[0-9a-fA-F]+$/.test(cc);
const code = ok ? parseInt(cc, 16) : NaN;
if (isNaN(code)) {
errors.push(new YAMLSyntaxError(this, `Invalid escap... |
1,288,838 | f85d297670b335ffb9b8d901974dfae4 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1205-1254/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | QuoteSingle::strValue | function | /**
* @returns {string | { str: string, errors: YAMLSyntaxError[] }}
*/
get strValue() {
if (!this.valueRange || !this.context) return null;
const errors = [];
const {
start,
end
} = this.valueRange;
const {
indent,
src
} = this.context;
if (src[end - 1] !== "... |
1,288,839 | 628b68cfdb62f123f4ce8d766cd632a6 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1472-1503/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/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,288,840 | 9e92bbdb8c19097b693fdf62de6f8158 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1019-1156/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | QuoteDouble::strValue | function | /**
* @returns {string | { str: string, errors: YAMLSyntaxError[] }}
*/
get strValue() {
if (!this.valueRange || !this.context) return null;
const errors = [];
const {
start,
end
} = this.valueRange;
const {
indent,
src
} = this.context;
if (src[end - 1] !== '... |
1,288,841 | 0d5b62132e4b78f2a310e10c38549c00 | swh:1:cnt:87216921c1073ea6042358b5d32343eb74dac31b;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=1415-1469/ | 180f7babd9aa2bbd4c6fbb3f36a17352303e099b | wlbdashboard | wmcs | node_modules/yaml/browser/dist/parse-cst.js | ParseContext::parseProps | function | // Anchor and tag are before type, which determines the node implementation
// class; hence this intermediate step.
parseProps(offset) {
const {
inFlow,
parent,
src
} = this;
const props = [];
let lineHasProps = false;
offset = this.atLineStart ? Node.endOfIndent(src, offset) :... |
1,288,842 | 5784dd912526bf173ddbe4078c328ba0 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=110-133/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | getLine | function | /**
* Get a specified line from the source.
*
* Accepts a source string or a CST document as the second parameter. With
* the latter, starting indices for lines are cached in the document as
* `lineStarts: number[]`.
*
* Returns the line as a string if found, or `null` otherwise.
*
* @param {number} line One-i... |
1,288,843 | c2a88ea4194334ede148bce33e60541b | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=186-188/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Range::copy | function | static copy(orig) {
return new Range(orig.start, orig.end);
} |
1,288,844 | 5154902d23b048208a0c88f6a863cb8b | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=193-195/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Range::isEmpty | function | isEmpty() {
return typeof this.start !== 'number' || !this.end || this.end <= this.start;
} |
1,288,845 | 9d0a152bce60aaec6c5c4fb13f9b36f8 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=238-254/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::atDocumentBoundary | function | // ^(---|...)
static atDocumentBoundary(src, offset, sep) {
const ch0 = src[offset];
if (!ch0) return true;
const prev = src[offset - 1];
if (prev && prev !== '\n') return false;
if (sep) {
if (ch0 !== sep) return false;
} else {
if (ch0 !== Char.DIRECTIVES_END && ch0 !== Char.DOCU... |
1,288,846 | 4963ac3ced7a34dc3b88adea4a2580f1 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=354-365/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::constructor | function | constructor(type, props, context) {
Object.defineProperty(this, 'context', {
value: context || null,
writable: true
});
this.error = null;
this.range = null;
this.valueRange = null;
this.props = props || [];
this.type = type;
this.value = null;
} |
1,288,847 | 7616fb0f81549bafc902962c609a00c0 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=429-438/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::rangeAsLinePos | function | get rangeAsLinePos() {
if (!this.range || !this.context) return undefined;
const start = getLinePos(this.range.start, this.context.root);
if (!start) return undefined;
const end = getLinePos(this.range.end, this.context.root);
return {
start,
end
};
} |
1,288,848 | 5fa1c132e6dc5a4ec587ce9e998336c6 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=439-446/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::rawValue | function | get rawValue() {
if (!this.valueRange || !this.context) return null;
const {
start,
end
} = this.valueRange;
return this.context.src.slice(start, end);
} |
1,288,849 | 28a3ff8732205ddf9e8781518e4a37dd | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=494-507/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::setOrigRanges | function | /**
* Populates the `origStart` and `origEnd` values of all ranges for this
* node. Extended by child classes to handle descendant nodes.
*
* @param {number[]} cr - Positions of dropped CR characters
* @param {number} offset - Starting index of `cr` from the last call
* @returns {number} - The next of... |
1,288,850 | f767424dec86b74e5ed9a154ce074fe1 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=508-519/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::toString | function | toString() {
const {
context: {
src
},
range,
value
} = this;
if (value != null) return value;
const str = src.slice(range.start, range.end);
return Node.addStringTerminator(src, range.end, str);
} |
1,288,851 | c5f805bab21ea6d02f3b353f0b9e42ef | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=530-562/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | YAMLError::makePretty | function | makePretty() {
if (!this.source) return;
this.nodeType = this.source.type;
const cst = this.source.context && this.source.context.root;
if (typeof this.offset === 'number') {
this.range = new Range(this.offset, this.offset + 1);
const start = cst && getLinePos(this.offset, cst);
if (st... |
1,288,852 | abd3232eb0d34eb4b578afc85f33c135 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=609-621/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | PlainValue::endOfLine | function | static endOfLine(src, start, inFlow) {
let ch = src[start];
let offset = start;
while (ch && ch !== '\n') {
if (inFlow && (ch === '[' || ch === ']' || ch === '{' || ch === '}' || ch === ',')) break;
const next = src[offset + 1];
if (ch === ':' && (!next || next === '\n' || next === '\t' ||... |
1,288,853 | cd5e2e55e584cbaac8907124ca310c7e | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=593-602/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | _toPrimitive | function | function _toPrimitive(t, r) {
if ("object" != typeof t || !t) return t;
var e = t[Symbol.toPrimitive];
if (void 0 !== e) {
var i = e.call(t, r || "default");
if ("object" != typeof i) return i;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === r ? String :... |
1,288,854 | d5fec374875c716183a91b96aebde3cc | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=135-183/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | getPrettyContext | function | /**
* Pretty-print the starting line from the source indicated by the range `pos`
*
* Trims output to `maxWidth` chars while keeping the starting column visible,
* using `…` at either end to indicate dropped characters.
*
* Returns a two-line string (or `null`) with `\n` as separator; the second line
* will hold... |
1,288,855 | 29cd9f22880117b2866e93df09ca3d63 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=197-227/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Range::setOrigRange | function | /**
* Set `origStart` and `origEnd` to point to the original source range for
* this node, which may differ due to dropped CR characters.
*
* @param {number[]} cr - Positions of dropped CR characters
* @param {number} offset - Starting index of `cr` from the last call
* @returns {number} - The next of... |
1,288,856 | 20514aea510b9808f17e212afd4e8850 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=278-283/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::startOfLine | function | static startOfLine(src, offset) {
let ch = src[offset - 1];
if (ch === '\n') return offset;
while (ch && ch !== '\n') ch = src[offset -= 1];
return offset + 1;
} |
1,288,857 | f46a69b5a794fdda8464b0ea2b24ee73 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=315-319/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::normalizeOffset | function | // should be at line or string end, or at next non-whitespace char
static normalizeOffset(src, offset) {
const ch = src[offset];
return !ch ? offset : ch !== '\n' && src[offset - 1] === '\n' ? offset - 1 : Node.endOfWhiteSpace(src, offset);
} |
1,288,858 | cd2f96089d543f2aa50fedc6027dc7f9 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=321-353/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::foldNewline | function | // fold single newline into space, multiple newlines to N - 1 newlines
// presumes src[offset] === '\n'
static foldNewline(src, offset, indent) {
let inCount = 0;
let error = false;
let fold = '';
let ch = src[offset + 1];
while (ch === ' ' || ch === '\t' || ch === '\n') {
switch (ch) {
... |
1,288,859 | 9d9cb97f5637bf0e5aed212e5de24d55 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=374-380/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::anchor | function | get anchor() {
for (let i = 0; i < this.props.length; ++i) {
const anchor = this.getPropValue(i, Char.ANCHOR, true);
if (anchor != null) return anchor;
}
return null;
} |
1,288,860 | 4bd982f4450597f6f5176f0d9af5cff4 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=381-388/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::comment | function | get comment() {
const comments = [];
for (let i = 0; i < this.props.length; ++i) {
const comment = this.getPropValue(i, Char.COMMENT, true);
if (comment != null) comments.push(comment);
}
return comments.length > 0 ? comments.join('\n') : null;
} |
1,288,861 | b96f9a74c3b59272c692c8331cc0d313 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=400-410/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::hasComment | function | get hasComment() {
if (this.context) {
const {
src
} = this.context;
for (let i = 0; i < this.props.length; ++i) {
if (src[this.props[i].start] === Char.COMMENT) return true;
}
}
return false;
} |
1,288,862 | a744017ce085dead6550f20ba605dc3f | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=447-466/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::tag | function | get tag() {
for (let i = 0; i < this.props.length; ++i) {
const tag = this.getPropValue(i, Char.TAG, false);
if (tag != null) {
if (tag[1] === '<') {
return {
verbatim: tag.slice(2, -1)
};
} else {
// eslint-disable-next-line no-unused-vars
... |
1,288,863 | 766410d9105294ebff566ecdfbcc849f | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=467-480/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::valueRangeContainsNewline | function | get valueRangeContainsNewline() {
if (!this.valueRange || !this.context) return false;
const {
start,
end
} = this.valueRange;
const {
src
} = this.context;
for (let i = start; i < end; ++i) {
if (src[i] === '\n') return true;
}
return false;
} |
1,288,864 | 9ce3fb07cd7bd7c5eb301fbdf0e6a368 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=575-577/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | YAMLSyntaxError::constructor | function | constructor(source, message) {
super('YAMLSyntaxError', source, message);
} |
1,288,865 | 1762db0cf7bfb19145b7353483b6e28c | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=603-606/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | _toPropertyKey | function | function _toPropertyKey(t) {
var i = _toPrimitive(t, "string");
return "symbol" == typeof i ? i : i + "";
} |
1,288,866 | f9a4a142117fac92d50c7438088f514e | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=705-748/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | PlainValue::parse | function | /**
* Parses a plain value from the source
*
* Accepted forms are:
* ```
* #comment
*
* first line
*
* first line #comment
*
* first line
* block
* lines
*
* #comment
* block
* lines
* ```
* where block lines are empty or have an indent level greater than `indent... |
1,288,867 | 19420f483c935a5686e62b43e64a6f0f | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=580-582/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | YAMLWarning::constructor | function | constructor(source, message) {
super('YAMLWarning', source, message);
} |
1,288,868 | 3cc337d22234da8447d3cc1a7eced2ce | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=34-43/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | findLineStarts | function | function findLineStarts(src) {
const ls = [0];
let offset = src.indexOf('\n');
while (offset !== -1) {
offset += 1;
ls.push(offset);
offset = src.indexOf('\n', offset);
}
return ls;
} |
1,288,869 | 9395c6240c38b62dad26e17de04f739b | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=44-61/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | getSrcInfo | function | function getSrcInfo(cst) {
let lineStarts, src;
if (typeof cst === 'string') {
lineStarts = findLineStarts(cst);
src = cst;
} else {
if (Array.isArray(cst)) cst = cst[0];
if (cst && cst.context) {
if (!cst.lineStarts) cst.lineStarts = findLineStarts(cst.context.src);
lineStarts = cst.l... |
1,288,870 | 2fbea94365324bd2e9efefbaefc3349f | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=273-277/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::endOfWhiteSpace | function | static endOfWhiteSpace(src, offset) {
let ch = src[offset];
while (ch === '\t' || ch === ' ') ch = src[offset += 1];
return offset;
} |
1,288,871 | 95f59fbc3f0c156ad28bfbcb45d90071 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=268-272/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::endOfLine | function | static endOfLine(src, offset) {
let ch = src[offset];
while (ch && ch !== '\n') ch = src[offset += 1];
return offset;
} |
1,288,872 | 66ce573ba302b0f7d40ba5bf66db0453 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=411-421/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::hasProps | function | get hasProps() {
if (this.context) {
const {
src
} = this.context;
for (let i = 0; i < this.props.length; ++i) {
if (src[this.props[i].start] !== Char.COMMENT) return true;
}
}
return false;
} |
1,288,873 | 28cfb00edbdff806c5aa6988a5da237f | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=425-428/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::jsonLike | function | get jsonLike() {
const jsonLikeTypes = [Type.FLOW_MAP, Type.FLOW_SEQ, Type.QUOTE_DOUBLE, Type.QUOTE_SINGLE];
return jsonLikeTypes.indexOf(this.type) !== -1;
} |
1,288,874 | dd17826a200fb77f40ef3c9b3d73e07c | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=481-492/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::parseComment | function | parseComment(start) {
const {
src
} = this.context;
if (src[start] === Char.COMMENT) {
const end = Node.endOfLine(src, start + 1);
const commentRange = new Range(start, end);
this.props.push(commentRange);
return end;
}
return start;
} |
1,288,875 | aca7cde3a28afde17c50a5fa0a0a0945 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=523-529/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | YAMLError::constructor | function | constructor(name, source, message) {
if (!message || !(source instanceof Node)) throw new Error(`Invalid arguments for new ${name}`);
super();
this.name = name;
this.message = message;
this.source = source;
} |
1,288,876 | 91cfff0480e4bd5e41a121951720a8fc | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=565-567/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | YAMLReferenceError::constructor | function | constructor(source, message) {
super('YAMLReferenceError', source, message);
} |
1,288,877 | b547da09aeedac4cf0a7caa1e665facf | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=585-592/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | _defineProperty | function | function _defineProperty(e, r, t) {
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
value: t,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[r] = t, e;
} |
1,288,878 | 061ed57f257c3aa3f3b9108e97780ef0 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=622-680/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | PlainValue::strValue | function | get strValue() {
if (!this.valueRange || !this.context) return null;
let {
start,
end
} = this.valueRange;
const {
src
} = this.context;
let ch = src[end - 1];
while (start < end && (ch === '\n' || ch === '\t' || ch === ' ')) ch = src[--end - 1];
let str = '';
for (... |
1,288,879 | 591bf051251a06cec688a2804a226c39 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=681-703/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | PlainValue::parseBlockValue | function | parseBlockValue(start) {
const {
indent,
inFlow,
src
} = this.context;
let offset = start;
let valueEnd = start;
for (let ch = src[offset]; ch === '\n'; ch = src[offset]) {
if (Node.atDocumentBoundary(src, offset + 1)) break;
const end = Node.endOfBlockIndent(src, inden... |
1,288,880 | 3dc8293475ff344a61cf42709a6430c2 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=422-424/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::includesTrailingLines | function | get includesTrailingLines() {
return false;
} |
1,288,881 | 45d42f598a286edb2458ff7fa098a28c | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=63-108/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | getLinePos | function | /**
* @typedef {Object} LinePos - One-indexed position in the source
* @property {number} line
* @property {number} col
*/
/**
* Determine the line/col position matching a character offset.
*
* Accepts a source string or a CST document as the second parameter. With
* the latter, starting indices for lines are ... |
1,288,882 | 54ff2a0ee75e7555dc60f683d7cee943 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=189-192/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Range::constructor | function | constructor(start, end) {
this.start = start;
this.end = end || start;
} |
1,288,883 | 7f52587a8c55788ef9cd6249000f9a54 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=232-236/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::addStringTerminator | function | static addStringTerminator(src, offset, str) {
if (str[str.length - 1] === '\n') return str;
const next = Node.endOfWhiteSpace(src, offset);
return next >= src.length || src[next] === '\n' ? str + '\n' : str;
} |
1,288,884 | 06f93d44d953b83b6ebeda289eaaf9af | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=263-267/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::endOfIndent | function | static endOfIndent(src, offset) {
let ch = src[offset];
while (ch === ' ') ch = src[offset += 1];
return offset;
} |
1,288,885 | bbbec8cecf9d2eb9b4de9aa9014fdc51 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=255-262/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::endOfIdentifier | function | static endOfIdentifier(src, offset) {
let ch = src[offset];
const isVerbatim = ch === '<';
const notOk = isVerbatim ? ['\n', '\t', ' ', '>'] : ['\n', '\t', ' ', '[', ']', '{', '}', ','];
while (ch && notOk.indexOf(ch) === -1) ch = src[offset += 1];
if (isVerbatim && ch === '>') offset += 1;
retu... |
1,288,886 | 5e707358ddff0f45e95236ed6432a348 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=285-304/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::endOfBlockIndent | function | /**
* End of indentation, or null if the line's indent level is not more
* than `indent`
*
* @param {string} src
* @param {number} indent
* @param {number} lineStart
* @returns {?number}
*/
static endOfBlockIndent(src, indent, lineStart) {
const inEnd = Node.endOfIndent(src, lineStart);
... |
1,288,887 | 1dc8e2a4c684840d21a86bbb2dfdff94 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=305-308/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::atBlank | function | static atBlank(src, offset, endAsBlank) {
const ch = src[offset];
return ch === '\n' || ch === '\t' || ch === ' ' || endAsBlank && !ch;
} |
1,288,888 | 4771fb94d0643dbe8bd65fd34c8b6e04 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=309-313/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::nextNodeIsIndented | function | static nextNodeIsIndented(ch, indentDiff, indicatorAsIndent) {
if (!ch || indentDiff < 0) return false;
if (indentDiff > 0) return true;
return indicatorAsIndent && ch === '-';
} |
1,288,889 | deca4c5302a39064a5cf57a53c3fb067 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=366-373/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::getPropValue | function | getPropValue(idx, key, skipKey) {
if (!this.context) return null;
const {
src
} = this.context;
const prop = this.props[idx];
return prop && src[prop.start] === key ? src.slice(prop.start + (skipKey ? 1 : 0), prop.end) : null;
} |
1,288,890 | 430069e3ae2707a6f25b34b5df4e19c5 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=389-399/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node::commentHasRequiredWhitespace | function | commentHasRequiredWhitespace(start) {
const {
src
} = this.context;
if (this.header && start === this.header.end) return false;
if (!this.valueRange) return false;
const {
end
} = this.valueRange;
return start !== end || Node.atBlank(src, end - 1);
} |
1,288,891 | 354f4b13105cd3b42b786a0084d34440 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=570-572/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | YAMLSemanticError::constructor | function | constructor(source, message) {
super('YAMLSemanticError', source, message);
} |
1,288,892 | 7706abb461f6e93b61272f9637066ae9 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=185-228/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Range | type | class Range {
static copy(orig) {
return new Range(orig.start, orig.end);
}
constructor(start, end) {
this.start = start;
this.end = end || start;
}
isEmpty() {
return typeof this.start !== 'number' || !this.end || this.end <= this.start;
}
/**
* Set `origStart` and `origEnd` to point ... |
1,288,893 | 49b947a7e243060f121b278c2f9ae328 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=569-573/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | YAMLSemanticError | type | class YAMLSemanticError extends YAMLError {
constructor(source, message) {
super('YAMLSemanticError', source, message);
}
} |
1,288,894 | 40eb35ecd7a281aef79fe34f499bf58f | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=564-568/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | YAMLReferenceError | type | class YAMLReferenceError extends YAMLError {
constructor(source, message) {
super('YAMLReferenceError', source, message);
}
} |
1,288,895 | 7e9aeac7a06df2cd47147c274361f3ed | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=230-520/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | Node | type | /** Root class of all nodes */
class Node {
static addStringTerminator(src, offset, str) {
if (str[str.length - 1] === '\n') return str;
const next = Node.endOfWhiteSpace(src, offset);
return next >= src.length || src[next] === '\n' ? str + '\n' : str;
}
// ^(---|...)
static atDocumentBoundary(src,... |
1,288,896 | b5727e847e7bb27e8d2edc3de954b033 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=522-563/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | YAMLError | type | class YAMLError extends Error {
constructor(name, source, message) {
if (!message || !(source instanceof Node)) throw new Error(`Invalid arguments for new ${name}`);
super();
this.name = name;
this.message = message;
this.source = source;
}
makePretty() {
if (!this.source) return;
this... |
1,288,897 | 416a0c476d7c377ba8318070ea48eba4 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=574-578/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | YAMLSyntaxError | type | class YAMLSyntaxError extends YAMLError {
constructor(source, message) {
super('YAMLSyntaxError', source, message);
}
} |
1,288,898 | f011474b0a5a09a923054b6766985e31 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=579-583/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | YAMLWarning | type | class YAMLWarning extends YAMLError {
constructor(source, message) {
super('YAMLWarning', source, message);
}
} |
1,288,899 | 969c4024d396a0e7ed2046749c917658 | swh:1:cnt:d091e2d99c3ce7a2fec475898638782472565ae9;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=608-749/ | d0d535c2938712fb7e4f7c834b83a70efd55389d | wlbdashboard | wmcs | node_modules/yaml/browser/dist/PlainValue-183afbad.js | PlainValue | type | class PlainValue extends Node {
static endOfLine(src, start, inFlow) {
let ch = src[start];
let offset = start;
while (ch && ch !== '\n') {
if (inFlow && (ch === '[' || ch === ']' || ch === '{' || ch === '}' || ch === ',')) break;
const next = src[offset + 1];
if (ch === ':' && (!next ||... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.