sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
c7f4a47a125af0bd860443dfd71d2f412d1a97dcb53ab7038189d63b91dc32bd
JavaScript
4,249
111
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ exports.GREATEST_LOWER_BOUND = 1; exports.LEAST_UPPER_BOUND = 2; /** * Recursive implementation of binary sear...
ca7dd75895f2e861b15abb518f9c7a05eaf1c61bdac11a8e061bd5f73d310143
JavaScript
4,260
1
!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su...
07ba3674341bf34381883f3fb2c90e8eed4038f0b1acc95ec6ae2e918a151d82
JavaScript
4,299
87
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.matchFromAbsolutePaths = exports.createMatchPath = void 0; var path = require("path"); var Filesystem = require("./filesystem"); var MappingEntry = require("./mapping-entry"); var TryPath = require("./try-path"); /** * Creates a funct...
7180ab928d96a07ae531b4470487518c8578f2be0607de7bd0f6f8ce791a4bf4
JavaScript
4,341
1
!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su...
8fbb47323df8714bbb4eb3dbe251199db8e0e158988f405b013eff109f753464
JavaScript
4,351
91
"use strict"; /*-------------------------------------------------------------------------- @sinclair/typebox/conditional The MIT License (MIT) Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software a...
25fe816b8ec1b020ddda22907ae3db8ade09eaee5fef8d3659aaad3eb0f6e5ce
JavaScript
4,418
120
import React from 'react'; import { api } from '../api.js'; import { ArchiveView } from './archive_view.js'; import { DeleteSessionModal } from './delete_session_view.js'; import RLButton from './ui/button.js'; import RLModal from './ui/modal.js'; export const SessionListView = ({ onSelect, setOpen, open, selectable,...
84bcdff2588d5523f5e4a4859ab5623cd150ad0b24d823787994ecc0838145d2
JavaScript
4,435
151
/** * A worker process. Consumes {@link module:reporters/parallel-buffered} reporter. * @module worker * @private */ 'use strict'; const { createInvalidArgumentTypeError, createInvalidArgumentValueError } = require('../errors'); const workerpool = require('workerpool'); const Mocha = require('../mocha'); con...
a24681e813562462d6b40ecac124ac208985dc96638a66af27df9119eaac97e2
JavaScript
4,583
166
'use strict'; import utils from '../utils.js'; import AxiosError from '../core/AxiosError.js'; import transitionalDefaults from './transitional.js'; import toFormData from '../helpers/toFormData.js'; import toURLEncodedForm from '../helpers/toURLEncodedForm.js'; import platform from '../platform/index.js'; import form...
617c8651d583f7b95543555b4b12c987893d6ff583a98f56872e6096ebd1d880
JavaScript
4,641
57
/*istanbul ignore start*/ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = _default; /*istanbul ignore end*/ // Iterator that traverses in the range of [min, max], stepping // by distance from a given start position. I.e. for [0, 4], with // start of 2, this will ite...
fc63a878903f0de82b4069277478fa4a60b9919c911becc3ab485d4a101cc8aa
JavaScript
4,651
111
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
f3ef1f988ac4292df828cead080b96a2a97bdce1ab8f44f76345820c58ce7b59
JavaScript
4,687
208
var util = require('util'); var Stream = require('stream').Stream; var DelayedStream = require('delayed-stream'); module.exports = CombinedStream; function CombinedStream() { this.writable = false; this.readable = true; this.dataSize = 0; this.maxDataSize = 2 * 1024 * 1024; this.pauseStreams = true; this....
f862fdd2abe4d1e6d28aab889b7cce863e51bdceb0e194ad695d81125d3186d5
JavaScript
4,691
165
/** * "Buffered" reporter used internally by a worker process when running in parallel mode. * @module nodejs/reporters/parallel-buffered * @public */ 'use strict'; /** * Module dependencies. */ const { EVENT_SUITE_BEGIN, EVENT_SUITE_END, EVENT_TEST_FAIL, EVENT_TEST_PASS, EVENT_TEST_PENDING, EVENT_...
f3407e528f54ec0787bd0a71eeac0c99fffd98445916fcbe116dc69ca3be928b
JavaScript
4,714
140
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause * * Based on the Base 64 VLQ implementation in Closure Compiler: * https://code.google.com/p/closure-compiler/sour...
f1da382321b1346450cfb23e6073f750c1251cab8f0805eb17d3a870d9a848db
JavaScript
4,726
142
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.codeFrameColumns = codeFrameColumns; exports.default = _default; var _highlight = require("@babel/highlight"); let deprecationWarningShown = false; function getDefs(chalk) { return { gutter: chalk.grey, marker: chalk.red.b...
add81350db40b32c7ed29b8f8edaf80f1bcbf4e3d11fc8bcb0bb2e2484d30bf4
JavaScript
4,803
193
'use strict'; /** @module interfaces/common */ var Suite = require('../suite'); var errors = require('../errors'); var createMissingArgumentError = errors.createMissingArgumentError; var createUnsupportedError = errors.createUnsupportedError; var createForbiddenExclusivityError = errors.createForbiddenExclusivityErr...
23cfc281d545f5a7eeb74fbcc5654ecc96523dd1a048ac7ff59c72d0bbd682ee
JavaScript
4,810
120
import { createSlice } from '@reduxjs/toolkit'; export const reptilearnSlice = createSlice({ name: 'reptilearn', initialState: { ctrlState: null, arenaConfig: null, videoConfig: null, streams: [], log: [], logBufferLength: 1000, // maximum number of lines in the ...
b96bf79f1b1341a4867ec71c3ebe8d63b1862ff9c7da7f71d80e3d8fdaebd526
JavaScript
4,857
217
'use strict'; /** * @module XUnit */ /** * Module dependencies. */ var Base = require('./base'); var utils = require('../utils'); var fs = require('fs'); var path = require('path'); var errors = require('../errors'); var createUnsupportedError = errors.createUnsupportedError; var constants = require('../runner').c...
b581eb228ff7ceeb0c2fa27db92cb87203dfade62649d0f2da9dd773d43b2476
JavaScript
4,919
180
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.printIteratorEntries = printIteratorEntries; exports.printIteratorValues = printIteratorValues; exports.printListItems = printListItems; exports.printObjectProperties = printObjectProperties; /** * Copyright (c) Meta Platforms, Inc...
ff353c58256b4232330aa74e344d11a0cce2b745621adfe2bf1f4b16a415f1d2
JavaScript
4,963
177
const ansiColors = { bold: ['1', '22'], dim: ['2', '22'], italic: ['3', '23'], underline: ['4', '24'], // 5 & 6 are blinking inverse: ['7', '27'], hidden: ['8', '28'], strike: ['9', '29'], // 10-20 are fonts // 21-29 are resets for 1-9 black: ['30', '39'], red: ['31', '39'], green: ['32', '39'...
9a61894d714169b5a4cc8797dffc44ba754ac5b66e2db7d6e27f8c52bd0c2515
JavaScript
4,969
172
'use strict'; /* ! * Chai - checkError utility * Copyright(c) 2012-2016 Jake Luer <jake@alogicalparadox.com> * MIT Licensed */ /** * ### .checkError * * Checks that an error conforms to a given set of criteria and/or retrieves information about it. * * @api public */ /** * ### .compatibleInstance(thrown, ...
6f6a12f42623bf53b6561d46c5e37c0f26b6471ba53e83c3b933fb2c2f139742
JavaScript
4,992
203
var balanced = require('balanced-match'); module.exports = expandTop; var escSlash = '\0SLASH'+Math.random()+'\0'; var escOpen = '\0OPEN'+Math.random()+'\0'; var escClose = '\0CLOSE'+Math.random()+'\0'; var escComma = '\0COMMA'+Math.random()+'\0'; var escPeriod = '\0PERIOD'+Math.random()+'\0'; function numeric(str) ...
69eb4b4cfe88a32e86e8af46ee7ba9ad6dc348bc9684256580a8b9159141e4ee
JavaScript
4,999
131
import React from 'react'; import { useSelector } from 'react-redux'; import { BlockView } from './block_view.js'; import RLMenu from './ui/menu.js'; import { RLJSONEditor } from './ui/json_edit.js'; import RLButton from './ui/button.js'; import { Bar } from './ui/bar.js'; import RLInput from './ui/input.js'; import R...
d6155165b5aa69dfa9a58365b3aaa3ebaf21aafd0f5919986917fc1598a7de05
JavaScript
5,017
226
'use strict'; /* eslint no-unused-vars: off */ /* eslint-env commonjs */ /** * Shim process.stdout. */ process.stdout = require('browser-stdout')({label: false}); var parseQuery = require('./lib/browser/parse-query'); var highlightTags = require('./lib/browser/highlight-tags'); var Mocha = require('./lib/mocha');...
39962501ecd4e1447c2c72a2da51c1cf73e817d408b6c4fc65bd5362b6dd42cb
JavaScript
5,044
150
import React from 'react'; import { RLJSONEditor } from './ui/json_edit.js'; import { useSelector } from 'react-redux'; import { Bar } from './ui/bar.js'; import RLButton from './ui/button.js'; import { classNames } from './ui/common.js'; import { RLListbox, RLSimpleListbox } from './ui/list_box.js'; import { api } fr...
be894978de6737789f9ce3a8361ea82ca2f1733ab67b4154298454ba446afab0
JavaScript
5,078
151
import React from 'react'; import { RLJSONEditor } from './ui/json_edit.js'; import { useSelector } from 'react-redux'; import { Bar } from './ui/bar.js'; import RLButton from './ui/button.js'; import { classNames } from './ui/common.js'; import { RLListbox, RLSimpleListbox } from './ui/list_box.js'; import { api } fr...
892643f19e5d4eebbf2706a0c190639614f30ce9352bdc811b2f4c0c4d6c51b2
JavaScript
5,086
191
'use strict'; import stream from 'stream'; import utils from '../utils.js'; import throttle from './throttle.js'; import speedometer from './speedometer.js'; const kInternals = Symbol('internals'); class AxiosTransformStream extends stream.Transform{ constructor(options) { options = utils.toFlatObject(options,...
e93e41e35b9bda07b36c0b2db89786829709eab160eb44be7ceb46379bf08a4f
JavaScript
5,154
122
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.printReceivedStringContainExpectedSubstring = exports.printReceivedStringContainExpectedResult = exports.printReceivedConstructorNameNot = exports.printReceivedConstructorName = exports.printReceivedArrayContainExpectedItem ...
2ec651ea3ef20fb9195c01395abfc37d56878d586b3541d98c791b0983926c6e
JavaScript
5,176
50
/*istanbul ignore start*/'use strict'; exports.__esModule = true; exports.lineDiff = undefined; exports. /*istanbul ignore end*/diffLines = diffLines; /*istanbul ignore start*/exports. /*istanbul ignore end*/diffTrimmedLines = diffTrimmedLines; var /*istanbul ignore start*/_base = require('./base') /*istanbul ignore ...
0f6ee5a85dbdaa092bb1fe078e606780f107ef97f52a76741b933fdff0027087
JavaScript
5,192
188
/** * A wrapper around a third-party child process worker pool implementation. * Used by {@link module:buffered-runner}. * @private * @module buffered-worker-pool */ 'use strict'; const serializeJavascript = require('serialize-javascript'); const workerpool = require('workerpool'); const {deserialize} = require(...
5c4025df4a9d4a742c7b837ba99aa1a06eda5ccffa1857d6a212e4ceb4e21a70
JavaScript
5,224
147
var config = require('../config'); var flag = require('./flag'); var getProperties = require('./getProperties'); var isProxyEnabled = require('./isProxyEnabled'); /*! * Chai - proxify utility * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com> * MIT Licensed */ /** * ### .proxify(object) * * Return a...
daf8262523b125bee5beddc6b99f64753fbd687c03ae6f8d597c482c18b683c2
JavaScript
5,246
113
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = void 0; var path = require("path"); var TryPath = require("./try-path"); var MappingEntry = require("./mapping-entry"); var Filesystem = require("./filesystem"); /** * See t...
ae9a6eb76b4ad07705e3385a5ec38050863801d266d14ea9b1d102a3c82b2197
JavaScript
5,383
142
"use strict"; /*-------------------------------------------------------------------------- @sinclair/typebox/value The MIT License (MIT) Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ass...
4588bff0a9049313b174f36cf8fc46183cad34e163628a4b45caf05ba4a5caea
JavaScript
5,385
152
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.User = void 0; const pouchdb_1 = __importDefault(require("pouchdb")); class User { get refre...
e00052f399d431ec56758bd2e2272991fb62f8121f5a2e4ef3ed98da2740634b
JavaScript
5,385
276
'use strict'; /** * @module Nyan */ /** * Module dependencies. */ var Base = require('./base'); var constants = require('../runner').constants; var inherits = require('../utils').inherits; var EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN; var EVENT_TEST_PENDING = constants.EVENT_TEST_PENDING; var EVENT_TEST_PASS = ...
a3684d62a628893bef28156573b0536b719b0bd36a2ecd2891f2fdb5068022fa
JavaScript
5,413
185
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); Object.defineProperty(exports, 'ErrorWithStack', { enumerable: true, get: function () { return _ErrorWithStack.default; } }); Object.defineProperty(exports, 'clearLine', { enumerable: true, get: function () { return _clear...
88336a315708aff4562350936e1b022578ae70b9ba2b5b0476ad8a5d1f9cb842
JavaScript
5,442
217
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.test = exports.serialize = exports.default = void 0; var _collections = require('../collections'); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LI...
39291f6012283dc229f75a3b82af2dcdd8b257c2db4d7db84e0a3625ed979e37
JavaScript
5,448
152
/*! * Chai - addChainingMethod utility * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com> * MIT Licensed */ /*! * Module dependencies */ var addLengthGuard = require('./addLengthGuard'); var chai = require('../../chai'); var flag = require('./flag'); var proxify = require('./proxify'); var transferFl...
c1ff356d176c42163365af1b52edfd9dddff512e4681a77f66438153af8af573
JavaScript
5,450
134
import React from 'react'; import { useSelector } from 'react-redux'; import { VideoSettingsView } from './video_settings_view.js'; import RLMenu from './ui/menu.js'; import RLButton from './ui/button.js'; import RLIcon from './ui/icon.js'; import RLInput from './ui/input.js'; import { RLTooltip } from './ui/tooltip.j...
3562a56a0f046a549f4bc4610019f17b59f24abc74695b0da90ce828feced1fb
JavaScript
5,614
203
'use strict'; import utils from './../utils.js'; import buildURL from '../helpers/buildURL.js'; import InterceptorManager from './InterceptorManager.js'; import dispatchRequest from './dispatchRequest.js'; import mergeConfig from './mergeConfig.js'; import buildFullPath from './buildFullPath.js'; import validator from...
9228595bb125253f2f1df84210c204f85a03d512719c07d343b5f0bab64c2da5
JavaScript
5,636
1
!function(r,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():e()(r.lunr)}(this,function(){return function(r){if(void 0===r)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===r.stemmerSupport)throw new Error("Lunr stemmer su...
4a59b38af9ee131f7baaad55c5ef077df276736bcd125a0a9c1e824ef7fbba66
JavaScript
5,686
89
/*istanbul ignore start*/ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.diffLines = diffLines; exports.diffTrimmedLines = diffTrimmedLines; exports.lineDiff = void 0; /*istanbul ignore end*/ var /*istanbul ignore start*/ _base = _interopRequireDefault(require("./base")) /*ista...
13c079575ad69c5a202e5dcd277aa318260bb10f19d6c192e0a1e6a8f1dd97fb
JavaScript
5,737
1
!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su...
e6db50a4a092d4e330c86cafbd0bb7841343ef1bb4df4e5d52cbae2a5d6225bf
JavaScript
5,796
136
import React from 'react'; import { useSelector } from 'react-redux'; import { SessionListView } from './session_list_view.js'; import { DeleteSessionModal } from './delete_session_view.js'; import RLMenu from './ui/menu.js'; import RLModal from './ui/modal.js'; import { RLListbox, RLSimpleListbox } from './ui/list_bo...
884930a85e23e2786b905b0ed2b54723b3b0a91585c24cfb26b0844ffe84f69c
JavaScript
5,818
1
!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su...
bb17b3709936ae4da2d6603ae82a0e2863dfaaa2790cf2054373116a14574922
JavaScript
5,821
193
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.printDiffLines = exports.diffLinesUnified2 = exports.diffLinesUnified = exports.diffLinesRaw = void 0; var _diffSequences = _interopRequireDefault(require('diff-sequences')); var _cleanupSemantic = require('./cleanupSemant...
652fd689326384b2c5682ccd07a0fa53e39742a96ac19415d367982bef5a4c46
JavaScript
5,842
176
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.checkError = f...
cf8af2165ee9bd79f9ebe2a9f1acadce3f302d3a07a2df521e5e5814c5b17900
JavaScript
5,874
177
'use strict'; const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val); const identity = val => val; /* eslint-disable no-control-regex */ // this is a modified version of https://github.com/chalk/ansi-regex (MIT License) const ANSI_REGEX = /[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\...
e2a81f12f590fc6a9e36b3916af2f1a0a7675ccbebf50193eb9414b317209daf
JavaScript
5,975
175
/*! * chai * http://chaijs.com * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com> * MIT Licensed */ var config = require('./config'); module.exports = function (_chai, util) { /*! * Module dependencies. */ var AssertionError = _chai.AssertionError , flag = util.flag; /*! * Module ...
25752f704cf2117fdd1c7836409264a19b88bfb28516d212a0cdbb52bc16e1e8
JavaScript
6,044
219
'use strict'; import utils from '../utils.js'; import AxiosError from '../core/AxiosError.js'; // temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored import PlatformFormData from '../platform/node/classes/FormData.js'; /** * Determines if the given thing is a array or js object. *...
c9572a167aa1ecaf2b988f0fc06c3b33df6b4104d4e8f22600ee55d799e95499
JavaScript
6,048
236
exports.setopts = setopts exports.ownProp = ownProp exports.makeAbs = makeAbs exports.finish = finish exports.mark = mark exports.isIgnored = isIgnored exports.childrenIgnored = childrenIgnored function ownProp (obj, field) { return Object.prototype.hasOwnProperty.call(obj, field) } var fs = require("fs") var path ...
a7eda1e88414e0e3f050a09621a35e8d656550077da044606c16b053148f6459
JavaScript
6,075
229
'use strict'; const ansiStyles = require('ansi-styles'); const {stdout: stdoutColor, stderr: stderrColor} = require('supports-color'); const { stringReplaceAll, stringEncaseCRLFWithFirstIndex } = require('./util'); const {isArray} = Array; // `supportsColor.level` → `ansiStyles.color[name]` mapping const levelMappi...
6ce7682c43620983cc3158cd3864fda772e6a7500c654b3b16bc1a9f35a80ae6
JavaScript
6,146
1
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var _typeof=typeof Symbol==='function'&&typeof Symbol.iterator==='symbol'?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==='function'&&obj.constructor===Symbol&&obj!==Symbol.prototype?'symbol':typeof obj};exports.default=str...
9cf5e83d36697a92d8af11e000f513ac30a3464bbb024850f9ffdeb1edf59848
JavaScript
6,196
263
'use strict'; function hasKey(obj, keys) { var o = obj; keys.slice(0, -1).forEach(function (key) { o = o[key] || {}; }); var key = keys[keys.length - 1]; return key in o; } function isNumber(x) { if (typeof x === 'number') { return true; } if ((/^0x[0-9a-f]+$/i).test(x)) { return true; } return (/^[-+]?(?:...
6bad3d9ff5638f52754a44b952f565598743519c35c76fde9d0f3b400d243f7b
JavaScript
6,225
219
/*! * chai * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com> * MIT Licensed */ module.exports = function (chai, util) { var Assertion = chai.Assertion; function loadShould () { // explicitly define this method as function as to have it's name to include as `ssfi` function shouldGetter() { ...
c65bff44c189188e0c45afdbd9b02c427ff5c6e54b94da53c102fbb7a53f0e37
JavaScript
6,289
274
/** * This is the common logic for both the Node.js and web browser * implementations of `debug()`. */ function setup(env) { createDebug.debug = createDebug; createDebug.default = createDebug; createDebug.coerce = coerce; createDebug.disable = disable; createDebug.enable = enable; createDebug.enabled = enabl...
8f9b126776e4bc5504e52ceb3d8b3739461f102079057477d724af51fc7e9e3b
JavaScript
6,293
183
"use strict"; /*-------------------------------------------------------------------------- @sinclair/typebox/hash The MIT License (MIT) Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and asso...
28beafef3a274fd6cb824e140785c8a51df4a83ba5269f71e8f01bbaa694e0ce
JavaScript
6,418
219
/* ! * loupe * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com> * MIT Licensed */ import inspectArray from './lib/array' import inspectTypedArray from './lib/typedarray' import inspectDate from './lib/date' import inspectFunction from './lib/function' import inspectMap from './lib/map' import inspectNumber f...
28860645f073d2fad163a8ddcfef92ed17633df0c817361ae13350f71a22ecf7
JavaScript
6,439
228
'use strict'; const escapeStringRegexp = require('escape-string-regexp'); const ansiStyles = require('ansi-styles'); const stdoutColor = require('supports-color').stdout; const template = require('./templates.js'); const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().sta...
c3a8d63e8a65fcdf8f5df82d1cb0bf5c7f3f80a552a7fc27761095230cc0fe28
JavaScript
6,660
226
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); Object.defineProperty(exports, 'DIFF_DELETE', { enumerable: true, get: function () { return _cleanupSemantic.DIFF_DELETE; } }); Object.defineProperty(exports, 'DIFF_EQUAL', { enumerable: true, get: function () { return _cl...
f42be035e7742f399953bc41f21f59284699ed7affd876d5c9db3525c02d13ce
JavaScript
6,662
288
'use strict'; import utils from '../utils.js'; import parseHeaders from '../helpers/parseHeaders.js'; const $internals = Symbol('internals'); function normalizeHeader(header) { return header && String(header).trim().toLowerCase(); } function normalizeValue(value) { if (value === false || value == null) { re...
7c0c4911826673ec649257580769ea496b986de4ecf2c239a4619d6674ccdfbd
JavaScript
6,682
218
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.equals = void 0; exports.isA = isA; /* Copyright (c) 2008-2016 Pivotal Labs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
c890aea02609e6acc5fa11212bc2e0d2f0203406598c46ba5ff8158d79b4e55d
JavaScript
6,920
223
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.default = void 0; var _cleanupSemantic = require('./cleanupSemantic'); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root direc...
16e5d93a2a3b25f4889bb159f2553d82362e74bd06067a16d7c86f7de909689f
JavaScript
6,929
175
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var try_path_1 = require("../try-path"); var path_1 = require("path"); describe("mapping-entry", function () { var abosolutePathMappings = [ { pattern: "longest/pre/fix/*", paths: [(0, path_1.join)("/absolut...
3d5486465397d9c9848a53f3ab48aa5799699b90cf81fb481205c6d6b4340491
JavaScript
7,026
299
/* # Author: Guoqing Bao # School of Computer Science, The University of Sydney # Date: 2019-12-12 # GitHub Project Link: https://github.com/guoqingbao/Pathofusion # Please cite our work if you found it is useful for your research or clinical practice # core code for marking */ var canvas = document.getElementsByTagN...
9eee6ca4341396f527a35ee17edc7d1dd3b4d9a74e8f9bfcf979ca1a4f609b37
JavaScript
7,044
293
'use strict'; /** * @module TAP */ /** * Module dependencies. */ var util = require('util'); var Base = require('./base'); var constants = require('../runner').constants; var EVENT_TEST_PASS = constants.EVENT_TEST_PASS; var EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL; var EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGI...
db9ccdbad5652403dc7ed8999aa1a8d9ecf2d0b435e3ff46501849b418a40464
JavaScript
7,140
175
import React from 'react'; import { useSelector } from 'react-redux'; import { api } from '../api.js'; import { ArenaSettingsView } from './arena_settings_view.js'; import RLIcon from './ui/icon.js'; import RLMenu from './ui/menu.js'; export const ArenaControlView = () => { const ctrl_state = useSelector((state)...
b2ea7d13f91893e2d8b47d86e6f9011f7f8a9721956bb4cda31aae20f4c69bb2
JavaScript
7,236
216
/*istanbul ignore start*/ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "Diff", { enumerable: true, get: function get() { return _base["default"]; } }); Object.defineProperty(exports, "diffChars", { enumerable: true, get: function get() { ...
3b9086e6c782c9ce1b6b0279c9617b77a34320cb3e1ac672cb143d57deaed3f0
JavaScript
7,263
243
'use strict'; /** * Helper scripts for the `run` command * @see module:lib/cli/run * @module * @private */ const fs = require('fs'); const path = require('path'); const debug = require('debug')('mocha:cli:run:helpers'); const {watchRun, watchParallelRun} = require('./watch-run'); const collectFiles = require('./...
53f771772314def899200eac75aa6fa70fd8e4dc74f7920d53526a4f58916caf
JavaScript
7,263
1
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"u...
bb6541b106327cc28e3c9310b8d38e4562bd3a81a28bdeea9145dc3570e61b30
JavaScript
7,354
174
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true...
f9740ad16de473fec0eef0532319f907a68d19531669e4be72fd64d551fef59b
JavaScript
7,359
221
/** * @license React * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; if (process.env.NODE_ENV !== "production") { (function() { 'use s...
b516c567aa102bf2ceb7cdd46ed2f6f162941c4bec9afd1da1535e407a4d735f
JavaScript
7,540
233
//connection to multiple databases const abstractsCollection = require("../schemas").abstractModel; //retrieve a specified abstract from the database exports.findAbstractById = (req, res) => { const pubmed_id = req.query.pubmed_id; var condition = { "pubmed_id": pubmed_id }; abstractsCollection.find(condi...
ac8f610a326b2087c39545716827d00a3982882c51ce64b6efdd4bcef8063506
JavaScript
7,556
202
/* ---------------------------------------------------------------------- Manage the toggle button for switching between light/dark themes ---------------------------------------------------------------------- */ (function() { // Attach the toggle logic to the window "hnnToggleTheme" so we can // pass ...
e16badc3809323cfa41833f41f5b6406bca33200d7085447af5486228015034c
JavaScript
7,564
74
/*istanbul ignore start*/'use strict'; exports.__esModule = true; exports.canonicalize = exports.convertChangesToXML = exports.convertChangesToDMP = exports.merge = exports.parsePatch = exports.applyPatches = exports.applyPatch = exports.createPatch = exports.createTwoFilesPatch = exports.structuredPatch = exports.dif...
8194f9425ce9ab06ea9aebcd64a85ec064d95d61bb349f8f1c98762ad256638e
JavaScript
7,567
193
"use strict"; var punycode = require("punycode"); var mappingTable = require("./lib/mappingTable.json"); var PROCESSING_OPTIONS = { TRANSITIONAL: 0, NONTRANSITIONAL: 1 }; function normalize(str) { // fix bug in v8 return str.split('\u0000').map(function (s) { return s.normalize('NFC'); }).join('\u0000'); } fu...
332b6e003870453d738aa9e343d17c8f1ae80a216c3e8ce30dbad5872f8cecb3
JavaScript
7,612
261
'use strict'; /** * Main entry point for handling filesystem-based configuration, * whether that's a config file or `package.json` or whatever. * @module lib/cli/options * @private */ const fs = require('fs'); const ansi = require('ansi-colors'); const yargsParser = require('yargs-parser'); const {types, aliases...
ee3948f7fda13c13506e2ef58fa483959140a481f4b74ec866fc1526ab6b991d
JavaScript
7,780
271
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.joinAlignedDiffsNoExpand = exports.joinAlignedDiffsExpand = void 0; var _cleanupSemantic = require('./cleanupSemantic'); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT lice...
ef6bcefc54d8a65469b95b6192d47bc08955e842f91efa0a31a2b2118de778b7
JavaScript
7,808
301
'use strict'; /* ! * Chai - pathval utility * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com> * @see https://github.com/logicalparadox/filtr * MIT Licensed */ /** * ### .hasProperty(object, name) * * This allows checking whether an object has own * or inherited from prototype chain named property...
1e01f93669c97ec66736f7b4080c5f95647e6066c3a94b9667bbbff68d44e936
JavaScript
7,831
2
!function(t){!function(e){var r="URLSearchParams"in t,o="Symbol"in t&&"iterator"in Symbol,n="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]"...
429d5232ed18b696ab2d27f442c2dbee8b9f099bf8d24904596ffdac4bd639af
JavaScript
7,834
264
// To run a separate development http server set this flag to true: const DEVELOPMENT_MODE = false; // don't forget to set back to false before building // If ReptiLearn API uses a different port change it here: export const api_url = DEVELOPMENT_MODE ? `http://${window.location.hostname}:3500` : ''; export const sock...
2b48dbd44f26f81896ad78bacb9bf8f21f9ff6d130d12e6bc3457921041fe762
JavaScript
7,902
70
/*istanbul ignore start*/'use strict'; exports.__esModule = true; exports.wordDiff = undefined; exports. /*istanbul ignore end*/diffWords = diffWords; /*istanbul ignore start*/exports. /*istanbul ignore end*/diffWordsWithSpace = diffWordsWithSpace; var /*istanbul ignore start*/_base = require('./base') /*istanbul ign...
03edba20808e84cd6d15edc352656a98f48e429cfe1b0a85dd47e8bfe38d1cc4
JavaScript
7,914
220
/** * @license React * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'u...
8624b27caead12bd488332c5c47113cdc19d15a4bdc1b7bd6bef315785682cbe
JavaScript
7,961
344
'use strict'; const escapeStringRegexp = require('escape-string-regexp'); const cwd = typeof process === 'object' && process && typeof process.cwd === 'function' ? process.cwd() : '.' const natives = [].concat( require('module').builtinModules, 'bootstrap_node', 'node', ).map(n => new RegExp(`(?:\\((?:node...
34fc4499584b2ca5db9837b602bc0b51ac52bb4365786a22433fd9454bbf8eac
JavaScript
8,260
249
'use strict'; import utils from './../utils.js'; import settle from './../core/settle.js'; import cookies from './../helpers/cookies.js'; import buildURL from './../helpers/buildURL.js'; import buildFullPath from '../core/buildFullPath.js'; import isURLSameOrigin from './../helpers/isURLSameOrigin.js'; import transiti...
ea905a883a72e078ba967421dd01ba5d55ba25910d2ac52eccb6b0dbd686e7ae
JavaScript
8,391
286
/** * Provides a way to load "plugins" as provided by the user. * * Currently supports: * * - Root hooks * - Global fixtures (setup/teardown) * @private * @module plugin */ 'use strict'; const debug = require('debug')('mocha:plugin-loader'); const { createInvalidPluginDefinitionError, createInvalidPlugin...
5aa5834a5f16c68d04f034fb808592a70c7c8e89aa3597b153cfd36ae51cc35c
JavaScript
8,430
240
(function() { const elementId = '#orcidWidget'; const sandboxIssuer = "https://sandbox.orcid.org"; const sandboxUrl = "https://sandbox.orcid.org/oauth/authorize"; const sandboxKey = {"kty":"RSA","e":"AQAB","use":"sig","kid":"sandbox-orcid-org-3hpgosl3b6lapenh1ewsgdob3fawepoj","n":"pl-jp-kTAGf6BZUrWIYUJTvqqMVd4iAnoL...
8c70b535f2c0acef34b512f506f27c6ce7dcde395e23507835b6cdcf686f08f2
JavaScript
8,438
205
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.tests = void 0; var path_1 = require("path"); var filesystem_1 = require("../../filesystem"); var defaultExtensionsWhenRunningInTsNode = [ ".js", ".json", ".node", ".ts", ".tsx", ]; exports.tests = [ { n...
53e56ac3a867ff1ff0722b315bead2e9f0a01659c2b7dd6a35aa10fb853c4539
JavaScript
8,449
186
import _typeof from "./typeof.js"; function applyDecs2203Factory() { function createAddInitializerMethod(initializers, decoratorFinishedRef) { return function (initializer) { !function (decoratorFinishedRef, fnName) { if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " afte...
841fb16003df6ce609ac567048d5301a7e85c059bb1a9ae5e335de255ef65f29
JavaScript
8,489
204
"use strict"; /*-------------------------------------------------------------------------- @sinclair/typebox/value The MIT License (MIT) Copyright (c) 2017-2023 Haydn Paterson (sinclair) <haydn.developer@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ass...
81118b2d910e5d674dc1400f683a7a3e59ec6b60f276314f9c35ac5c6ab17b32
JavaScript
8,518
190
import _typeof from "./typeof.js"; function applyDecs2203RFactory() { function createAddInitializerMethod(initializers, decoratorFinishedRef) { return function (initializer) { !function (decoratorFinishedRef, fnName) { if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " aft...
07245a82717f9bfa2a63b9784284a1b7fc43ff5fcb4af2a94bce5f83611d4a2f
JavaScript
8,542
303
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
eea58bb6cf5bd1ae10810475019ecd74977a49c4a797ecb9ee55695bbef4c526
JavaScript
8,558
187
var _typeof = require("./typeof.js")["default"]; function applyDecs2203Factory() { function createAddInitializerMethod(initializers, decoratorFinishedRef) { return function (initializer) { !function (decoratorFinishedRef, fnName) { if (decoratorFinishedRef.v) throw new Error("attempted to call " + f...
476f59cf07d790f9a6e64d2d1faf164ea90d7b85fc63d9bb3cf37b32d8673451
JavaScript
8,621
268
/* Copyright (c) 2014, Yahoo! Inc. All rights reserved. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ 'use strict'; var randomBytes = require('randombytes'); // Generate an internal UID to make the regexp pattern harder to guess. var UID_LENGTH = 16; var UID ...
d25d07df83e6dc9dee8b272e288e801d6138bfeda444afe13947f30ad5068018
JavaScript
8,670
240
(function() { const elementId = '#orcidWidget'; const sandboxIssuer = "https://sandbox.orcid.org"; const sandboxUrl = "https://sandbox.orcid.org/oauth/authorize"; const sandboxKey = {"kty":"RSA","e":"AQAB","use":"sig","kid":"sandbox-orcid-org-3hpgosl3b6lapenh1ewsgdob3fawepoj","n":"pl-jp-kTAGf6BZUrWIYUJTvqqMVd4i...
4829649e21ef6a8091a4e0b48cbcad579c002589566a11f2b7a416226fa75fc2
JavaScript
8,723
191
var _typeof = require("./typeof.js")["default"]; function applyDecs2203RFactory() { function createAddInitializerMethod(initializers, decoratorFinishedRef) { return function (initializer) { !function (decoratorFinishedRef, fnName) { if (decoratorFinishedRef.v) throw new Error("attempted to call " + ...
56f8bfc3bd504657133f8172fa63fc4ef48ec3234b2143f393211e797ecf2d66
JavaScript
8,807
108
/*istanbul ignore start*/ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.diffWords = diffWords; exports.diffWordsWithSpace = diffWordsWithSpace; exports.wordDiff = void 0; /*istanbul ignore end*/ var /*istanbul ignore start*/ _base = _interopRequireDefault(require("./base")) /*...
db4ae98d11e23b7ebad2b21fd83a12f77357764c15c587c91de7610f19cae2b2
JavaScript
8,871
1
!function(i,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():e()(i.lunr)}(this,function(){return function(i){if(void 0===i)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===i.stemmerSupport)throw new Error("Lunr stemmer su...
6938cee40af1b1d973977f377ce093a596e41dc23cf5f1a305a5305dc4d81a62
JavaScript
8,876
287
'use strict'; const fs = require('fs'); const { Readable } = require('stream'); const sysPath = require('path'); const { promisify } = require('util'); const picomatch = require('picomatch'); const readdir = promisify(fs.readdir); const stat = promisify(fs.stat); const lstat = promisify(fs.lstat); const realpath = pr...
1582268000529da39c91b0cbf4eee8c36b7a082f778702af172cb598068d1f16
JavaScript
9,026
1
!function(e,n){"function"==typeof define&&define.amd?define(n):"object"==typeof exports?module.exports=n():n()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su...
f4415896db0a52f8b54a2da637e58c3d80d1cb0730bd26ada8da684c5af73e36
JavaScript
9,181
220
import _typeof from "./typeof.js"; import checkInRHS from "./checkInRHS.js"; function createAddInitializerMethod(initializers, decoratorFinishedRef) { return function (initializer) { assertNotFinished(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initial...