sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
c5245d2d375ccb7dd5b42cd88b7c23b771ba6c759e9d081174db2caff1346a50 | JavaScript | 1,577 | 50 | 'use strict'
// limit of Crypto.getRandomValues()
// https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues
var MAX_BYTES = 65536
// Node supports requesting up to this number of bytes
// https://github.com/nodejs/node/blob/master/lib/internal/crypto/random.js#L48
var MAX_UINT32 = 4294967295
functio... |
a1d43e1701ca63fbd8a0b35bd9f5145d008a0177bd26fda3ddd2bb8be65d3746 | JavaScript | 1,582 | 40 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isKeyword = isKeyword;
exports.isReservedWord = isReservedWord;
exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
exports.isStrictBindReservedWord = isStrictBindReservedWord;
exports.isStrictReservedWord = isStric... |
66d822a37df872db617dd11d0448702fadf046b1f0c824ff1497ec864772983a | JavaScript | 1,600 | 40 | import React from 'react';
import RLModal from './ui/modal.js';
import { RLListbox } from './ui/list_box.js';
import RLButton from './ui/button.js';
import { api } from '../api.js';
export const ArchiveView = ({ sessions, setOpen, open, close_session_list }) => {
const [archives, setArchives] = React.useState(null... |
8a79c5eb9df6e850339eaa925e1e5f443037e3fa906eb26e3baa79ea5498038c | JavaScript | 1,600 | 71 | const HttpStatusCode = {
Continue: 100,
SwitchingProtocols: 101,
Processing: 102,
EarlyHints: 103,
Ok: 200,
Created: 201,
Accepted: 202,
NonAuthoritativeInformation: 203,
NoContent: 204,
ResetContent: 205,
PartialContent: 206,
MultiStatus: 207,
AlreadyReported: 208,
ImUsed: 226,
MultipleCh... |
01f43fbc93caf55554a069db8564f2824a8e58876099bbca18400ba83396a742 | JavaScript | 1,602 | 15 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.reviver = exports.replacer = exports.getStringDBInteractions = exports.getInteractomeAtlas = exports.getEBIAlpha = exports.getPrideData = exports.getProteomicsData = exports.User = exports.CurtainWebAPI = void 0;
const curtain_api_1 = ... |
de6f7ac6f28d245dc29bb765085e883ee17b849909d678fe5054fe19596e1556 | JavaScript | 1,609 | 44 | export default function _asyncIterator(iterable) {
var method,
async,
sync,
retry = 2;
for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) {
if (async && null != (method = iterable[async])) return method.call(iterable);
if (sync && null != (meth... |
90d44b0a424cb208a12fa7194a1b100a4dffe0fbe1bca19169a5513df8edff90 | JavaScript | 1,611 | 70 | 'use strict';
const isHyper = process.env.TERM_PROGRAM === 'Hyper';
const isWindows = process.platform === 'win32';
const isLinux = process.platform === 'linux';
const common = {
ballotDisabled: '☒',
ballotOff: '☐',
ballotOn: '☑',
bullet: '•',
bulletWhite: '◦',
fullBlock: '█',
heart: '❤',
identicalTo:... |
a23c413a059f4422ce03f22cd2a373b2fa6930ac47cc103a0e7e26a6ee6d0602 | JavaScript | 1,611 | 91 | var streamify = require('./streamify.js')
, defer = require('./defer.js')
;
// API
module.exports = ReadableAsyncKit;
/**
* Base constructor for all streams
* used to hold properties/methods
*/
function ReadableAsyncKit()
{
ReadableAsyncKit.super_.apply(this, arguments);
// list of active jobs
this.... |
bb18e00dc2f5827e682cc03c7e06ef16b3b4013b278799f5cdb49dede11c4516 | JavaScript | 1,660 | 61 | var fs = require("fs");
var path = require("path");
var express = require("express");
// Import the bundled version of chromadb
var chroma = require("chromadb");
console.log("Using bundled chromadb package");
var app = express();
app.get("/", async (req, res) => {
const cc = new chroma.ChromaClient({ path: "http:/... |
184d5c4a83512e3f49d4d5b52f7073f601f933bad11f1fbb3ad364ca5e6478e1 | JavaScript | 1,670 | 65 | /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
/* eslint-disable node/no-deprecated-api */
var buffer = require('buffer')
var Buffer = buffer.Buffer
// alternative to using Object.keys for old browsers
function copyProps (src, dst) {
for (var key in src) {
dst[key] = src[key... |
b24ae9bf039f87c9c605b00b81bf7f169e2c6d5f0b997197c987ca60ea4ac27c | JavaScript | 1,670 | 45 | import getFuncName from 'get-func-name'
import { truncator, truncate, inspectProperty, inspectList } from './helpers'
const getArrayName = array => {
// We need to special case Node.js' Buffers, which report to be Uint8Array
if (typeof Buffer === 'function' && array instanceof Buffer) {
return 'Buffer'
}
i... |
e8c614f9a59cc80ab1e95483dcc38b0c2689cc6e02c65705bb9c3092f496b998 | JavaScript | 1,671 | 37 | /*istanbul ignore start*/
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.diffChars = diffChars;
exports.characterDiff = void 0;
/*istanbul ignore end*/
var
/*istanbul ignore start*/
_base = _interopRequireDefault(require("./base"))
/*istanbul ignore end*/
;
/*istanbul ignore s... |
2c069ba678c6db9acd475bcc8c5be20eb5077ea26c67514dea9429bc1ad4ff2f | JavaScript | 1,675 | 72 | /* eslint-disable node/no-deprecated-api */
var toString = Object.prototype.toString
var isModern = (
typeof Buffer !== 'undefined' &&
typeof Buffer.alloc === 'function' &&
typeof Buffer.allocUnsafe === 'function' &&
typeof Buffer.from === 'function'
)
function isArrayBuffer (input) {
return toString.call(... |
537f1a6fa8cb4dd6e7f20c9da242395d4c014819e38ac45a4c3bde14c4255060 | JavaScript | 1,703 | 18 | /*istanbul ignore start*/'use strict';
exports.__esModule = true;
exports. /*istanbul ignore end*/generateOptions = generateOptions;
function generateOptions(options, defaults) {
if (typeof options === 'function') {
defaults.callback = options;
} else if (options) {
for (var name in options) {
/* ist... |
d80ab1af4b7570d3245dab25d908c0b0472caa5690e2911735969d5a7a534c79 | JavaScript | 1,705 | 45 | function _asyncIterator(iterable) {
var method,
async,
sync,
retry = 2;
for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) {
if (async && null != (method = iterable[async])) return method.call(iterable);
if (sync && null != (method = iterable[s... |
5aa98c1ffb6418e057a67b152123af31e8aff4c63e1e61058f9e66629c0133a4 | JavaScript | 1,725 | 78 | var conversions = require('./conversions');
var route = require('./route');
var convert = {};
var models = Object.keys(conversions);
function wrapRaw(fn) {
var wrappedFn = function (args) {
if (args === undefined || args === null) {
return args;
}
if (arguments.length > 1) {
args = Array.prototype.slic... |
e7d76717f8147efce380dcef05713ef2c7b4ea9eacd9c41f788b778c53d036f2 | JavaScript | 1,741 | 64 | 'use strict';
/* eslint no-proto: 0 */
var parse = require('../');
var test = require('tape');
test('proto pollution', function (t) {
var argv = parse(['--__proto__.x', '123']);
t.equal({}.x, undefined);
t.equal(argv.__proto__.x, undefined);
t.equal(argv.x, undefined);
t.end();
});
test('proto pollution (array... |
67b2dadfab7f59b01cf74fae9d958f3f721d58115480dbf6db761d109c92a1d8 | JavaScript | 1,742 | 55 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeExtension = exports.fileExistsAsync = exports.readJsonFromDiskAsync = exports.readJsonFromDiskSync = exports.fileExistsSync = void 0;
var fs = require("fs");
function fileExistsSync(path) {
try {
var stats = fs.statSy... |
16a9595ea9f986485ffe06fff8ce66d8602a12eb633eb91dbea55445f04cad59 | JavaScript | 1,743 | 1 | "use strict";var S=require("path"),y=require("fs"),P=require("module"),r=require("@esbuild-kit/core-utils"),l=require("get-tsconfig");function f(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var d=f(S),E=f(y),u=f(P);const O=/^\.{0,2}\//,M=/\.[cm]?tsx?$/,b=`${d.default.sep}node_modules${d.default.sep}`,i=... |
6ee8b4c5e8ded944d0afc55eba298c2bad1c621db1af56b427e96117cf63e41b | JavaScript | 1,751 | 75 | var iterate = require('./lib/iterate.js')
, initState = require('./lib/state.js')
, terminator = require('./lib/terminator.js')
;
// Public API
module.exports = serialOrdered;
// sorting helpers
module.exports.ascending = ascending;
module.exports.descending = descending;
/**
* Runs iterator over provided... |
2be26e04fc40dba9a196233b9d5523f04fb603534f4dd8c763c1e9d10e4a816f | JavaScript | 1,752 | 24 | /*istanbul ignore start*/
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.generateOptions = generateOptions;
/*istanbul ignore end*/
function generateOptions(options, defaults) {
if (typeof options === 'function') {
defaults.callback = options;
} else if (options) {
... |
9c52e6e849d623925dd4613dd2538368d9b6fbb5b7339eac089a6b3d433b64f0 | JavaScript | 1,773 | 64 | import URLSearchParams from './classes/URLSearchParams.js'
import FormData from './classes/FormData.js'
import Blob from './classes/Blob.js'
/**
* Determine if we're running in a standard browser environment
*
* This allows axios to run in a web worker, and react-native.
* Both environments support XMLHttpRequest,... |
0432c0abde8a7199312f69712a7b73c7c25d6ece43c44e3d8052640a823637c2 | JavaScript | 1,778 | 53 | import React from "react";
import { Popover } from "@headlessui/react";
import { Float } from '@headlessui-float/react';
export const RLTooltip = ({ children, content, disabled, delay = 500 }) => {
const [open, setOpen] = React.useState(false);
const [timeoutId, setTimeoutId] = React.useState(null);
if (d... |
09db1adbb523d96105b5839e5a6f5abff2c223d8abd442702b5d1dfd72790acd | JavaScript | 1,782 | 59 | 'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.normalizeDiffOptions = exports.noColor = void 0;
var _chalk = _interopRequireDefault(require('chalk'));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
}
/**
* Copyright (c) Meta Platfo... |
20ca6e8b2afa2a52d30374e12b9c6d16b8de221624c7399a48ef2092d7a9b127 | JavaScript | 1,786 | 21 | /*istanbul ignore start*/'use strict';
exports.__esModule = true;
exports.cssDiff = undefined;
exports. /*istanbul ignore end*/diffCss = diffCss;
var /*istanbul ignore start*/_base = require('./base') /*istanbul ignore end*/;
/*istanbul ignore start*/var _base2 = _interopRequireDefault(_base);
function _interopRequ... |
68bbf9596df347ae2fc26537cad53b3bf848eab612364aebf54073f7dbd59eb0 | JavaScript | 1,787 | 89 | 'use strict';
var Runnable = require('./runnable');
const {inherits, constants} = require('./utils');
const {MOCHA_ID_PROP_NAME} = constants;
/**
* Expose `Hook`.
*/
module.exports = Hook;
/**
* Initialize a new `Hook` with the given `title` and callback `fn`
*
* @class
* @extends Runnable
* @param {String} ... |
6b4bb222e97633f0112aa3e9cccc0913688c4d6202ca9a9a90a45dc8ed6aa258 | JavaScript | 1,793 | 62 | var fs = require("fs");
var path = require("path");
var express = require("express");
// Import the client version of chromadb with peer dependencies
var chroma = require("chromadb-client");
console.log("Using chromadb-client package with peer dependencies");
var app = express();
app.get("/", async (req, res) => {
... |
7d1ebc0d9929b9124997b439d1a1fd9aff8feb6bb0a1b59e977ea638944f34ba | JavaScript | 1,793 | 47 | 'use strict';
var loader = require('./lib/loader');
var dumper = require('./lib/dumper');
function renamed(from, to) {
return function () {
throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' +
'Use yaml.' + to + ' instead, which is now safe by default.');
};
}
module.exports.Type... |
1ed503336dc4f4b252852c45f8ea0b3b8eb9eab90dfa11189d9d00de888010ba | JavaScript | 1,794 | 75 | var async = require('./async.js')
, abort = require('./abort.js')
;
// API
module.exports = iterate;
/**
* Iterates over each job object
*
* @param {array|object} list - array or object (named list) to iterate over
* @param {function} iterator - iterator to run
* @param {object} state - current job status
*... |
d17800a41a9b6f93d846fae9515f81c9563ffad4fdfc793cefc9bf94aab3c1b8 | JavaScript | 1,829 | 64 | 'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.default = void 0;
var _jestGetType = require('jest-get-type');
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of ... |
041195fe084d02f071098ab5c62d76daaeb74826c403b5a1b65dc25a855ec81c | JavaScript | 1,830 | 64 | var fs = require("fs");
var path = require("path");
var express = require("express");
// Default to using the bundled version
var chroma = require("chromadb");
console.log("Using standard app.js with the bundled chromadb package");
console.log("To try the different variants, run:");
console.log(" - pnpm dev:bundled ... |
d00b9f0e219800483dbbb9536a8143026cb567d8bd655691a01a42cbfc7cbe17 | JavaScript | 1,834 | 65 | 'use strict';
const {sep} = require('path');
const {platform} = process;
const os = require('os');
exports.EV_ALL = 'all';
exports.EV_READY = 'ready';
exports.EV_ADD = 'add';
exports.EV_CHANGE = 'change';
exports.EV_ADD_DIR = 'addDir';
exports.EV_UNLINK = 'unlink';
exports.EV_UNLINK_DIR = 'unlinkDir';
exports.EV_RAW ... |
1a98b1e2e7d25df497b96d423d2de0fe24adaf8471df82d8ad0bae1307722be4 | JavaScript | 1,842 | 67 | '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... |
11d7ff8e46ecc9ef8b5334aa491973ee95a5f43841afa27e14a0594cca464170 | JavaScript | 1,849 | 66 | 'use strict';
var YAMLException = require('./exception');
var TYPE_CONSTRUCTOR_OPTIONS = [
'kind',
'multi',
'resolve',
'construct',
'instanceOf',
'predicate',
'represent',
'representName',
'defaultStyle',
'styleAliases'
];
var YAML_NODE_KINDS = [
'scalar',
'sequence',
'mapping'
];
function... |
8cf4449061d26ecacb3e88a02da93df0bcc94fd7ed52e17efb882e70e4958f35 | JavaScript | 1,857 | 53 | import React from 'react';
import RLButton from './ui/button.js';
import { Bar } from './ui/bar.js';
import { RLSpinner } from './ui/spinner.js';
import { api } from '../api.js';
import { useDispatch, useSelector } from 'react-redux';
import { setLog } from '../store/reptilearn_slice.js';
export const LogView = () => ... |
6f6737ceb7a71616c4ac2a5f8c60fa97b93e434720c35ea29ffb9126cbf8a511 | JavaScript | 1,864 | 71 | 'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.default = createDirectory;
function fs() {
const data = _interopRequireWildcard(require('graceful-fs'));
fs = function () {
return data;
};
return data;
}
function _getRequireWildcardCache(nodeInterop) {
if (typeof Wea... |
a281e582bcc777ee950a9b919da8283044646008c4ff914494d32659608e0718 | JavaScript | 1,870 | 66 | 'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.default = void 0;
var _diffSequences = _interopRequireDefault(require('diff-sequences'));
var _cleanupSemantic = require('./cleanupSemantic');
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: o... |
079c2115185094c30847363c83a8a80dcde8105f1ef70c074c6e9c3ed4b7fab9 | JavaScript | 1,893 | 81 | var test = require('tape')
var randomBytes = require('./')
var MAX_BYTES = 65536
var MAX_UINT32 = 4294967295
test('sync', function (t) {
t.plan(9)
t.equals(randomBytes(0).length, 0, 'len: ' + 0)
t.equals(randomBytes(3).length, 3, 'len: ' + 3)
t.equals(randomBytes(30).length, 30, 'len: ' + 30)
t.equals(random... |
20094ebde4a606b79dd3e4a2921ec00c29fd0b9a94c8ffd78ee39fd526b6036b | JavaScript | 1,897 | 81 | 'use strict';
/**
* @module Dot
*/
/**
* Module dependencies.
*/
var Base = require('./base');
var inherits = require('../utils').inherits;
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 = constan... |
ca911599a3e2a99948d29c7da27080e86ce40c832902f58df5559496ce1bd215 | JavaScript | 1,905 | 78 | 'use strict';
/**
* @module List
*/
/**
* Module dependencies.
*/
var Base = require('./base');
var inherits = require('../utils').inherits;
var constants = require('../runner').constants;
var EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN;
var EVENT_RUN_END = constants.EVENT_RUN_END;
var EVENT_TEST_BEGIN = constants... |
3801eb1687b3559f19ba2b38528af385e6fe4b28912df6264907b630ef3f2cae | JavaScript | 1,913 | 21 | /*istanbul ignore start*/'use strict';
exports.__esModule = true;
exports.sentenceDiff = undefined;
exports. /*istanbul ignore end*/diffSentences = diffSentences;
var /*istanbul ignore start*/_base = require('./base') /*istanbul ignore end*/;
/*istanbul ignore start*/var _base2 = _interopRequireDefault(_base);
func... |
c12c053d05eeb70c9b48179050bd297e9b4bdf9bdaf450b8fa25b370c2da1a34 | JavaScript | 1,913 | 61 | // var arguments = ["network.txt", "-z", '--clu', "."];
var Module = {};
Module['preRun'] = function infomap_preRun() {
console.log("Pre-run: adding 'filesReady' as run dependency...");
addRunDependency('filesReady');
};
Module['postRun'] = function infomap_postRun() {
console.log("Post-run: Read result...");
... |
04de04639f6fb24fde31478d0c77248554ab7facdc6df1da3ae1079aa21da94f | JavaScript | 1,936 | 63 | import OverloadYield from "./OverloadYield.js";
export default function AsyncGenerator(gen) {
var front, back;
function resume(key, arg) {
try {
var result = gen[key](arg),
value = result.value,
overloaded = value instanceof OverloadYield;
Promise.resolve(overloaded ? value.v : value... |
2c5674173aa95b0d714d876f2e2f865e3c5b641d4d6dd89c6a2f0b9c8d1ed768 | JavaScript | 1,940 | 89 | 'use strict';
const path = require('path');
const locatePath = require('locate-path');
const pathExists = require('path-exists');
const stop = Symbol('findUp.stop');
module.exports = async (name, options = {}) => {
let directory = path.resolve(options.cwd || '');
const {root} = path.parse(directory);
const paths =... |
32be0c6203f322284e8b74fdc044c93d6186a26e2c984eca9ad8941571cfd7aa | JavaScript | 1,960 | 68 | //connection to multiple databases
const umlsCollection = require("../schemas").umlsModel;
//retrieve a tgt from the database
exports.getTgt = (req, res) => {
umlsCollection.find()
.then(data => {
//console.log(`Got tgt from the database.`);
res.send(data);
})
.catch... |
8728aa9ade9830178cd1ed127c5dfe4949808525e21091a571812fa142f68730 | JavaScript | 1,966 | 41 | /*istanbul ignore start*/
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.diffCss = diffCss;
exports.cssDiff = void 0;
/*istanbul ignore end*/
var
/*istanbul ignore start*/
_base = _interopRequireDefault(require("./base"))
/*istanbul ignore end*/
;
/*istanbul ignore start*/ fun... |
7a81121cd2e3d0119bd980fdeb8c9a8cb7374091476b3068bf7a08bdb1cf4832 | JavaScript | 1,979 | 60 | 'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.SnapshotFormat = void 0;
function _typebox() {
const data = require('@sinclair/typebox');
_typebox = function () {
return data;
};
return data;
}
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This sourc... |
84e11c204a390fd6b899956b966e6ec7e1fa4bb9c5be2d72adf5c0f289fb4b4b | JavaScript | 1,997 | 48 | (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.getFuncName = ... |
48c9d22b768cc209377f36fb49ba6943109d3e49fa388a5003623333a9cf0d25 | JavaScript | 2,023 | 27 | /*istanbul ignore start*/"use strict";
exports.__esModule = true;
exports. /*istanbul ignore end*/arrayEqual = arrayEqual;
/*istanbul ignore start*/exports. /*istanbul ignore end*/arrayStartsWith = arrayStartsWith;
function arrayEqual(a, b) {
if (a.length !== b.length) {
return false;
}
return arrayStartsWi... |
acb3569f5d39c0a9e7471f7f116305a9721312c5bf80e0a1a7dea768a8b19610 | JavaScript | 2,024 | 81 | /*
## Cohere
First run Chroma
```
git clone git@github.com:chroma-core/chroma.git
cd chroma
chroma run --path /chroma_db_path
```
Then install chroma and cohere
```
npm install chromadb
npm install cohere-ai
```
Then set your API KEY
### Basic Example
*/
// import chroma
const chroma = require("chromadb");
cons... |
856782965c876eab3e9c2b8325b875dee5bb7d21d3ca4545c2b6eb5801f355ed | JavaScript | 2,026 | 32 | /*istanbul ignore start*/
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.arrayEqual = arrayEqual;
exports.arrayStartsWith = arrayStartsWith;
/*istanbul ignore end*/
function arrayEqual(a, b) {
if (a.length !== b.length) {
return false;
}
return arrayStartsWith(a, b);... |
2fb4ad77bb301fadb2ec848bb92aab25230a47a8bd923c335963c7f828ea44d6 | JavaScript | 2,033 | 46 | import React from 'react';
import { Tab } from '@headlessui/react';
import { classNames, styles } from './common';
const RLTabs = ({ onChange, selectedIndex, vertical, tabs, className, panelClassName, tabListClassName }) => {
return (
<Tab.Group as="div" onChange={onChange} selectedIndex={selectedIndex} ve... |
4614459b50f9830a39a2dd874168ae360956749820c8bec57956732b7de10e38 | JavaScript | 2,035 | 64 | var OverloadYield = require("./OverloadYield.js");
function AsyncGenerator(gen) {
var front, back;
function resume(key, arg) {
try {
var result = gen[key](arg),
value = result.value,
overloaded = value instanceof OverloadYield;
Promise.resolve(overloaded ? value.v : value).then(funct... |
350eca0ea3bfc9e9261477a4c810c609926cafbce9c8be9179cb993c288f8944 | JavaScript | 2,041 | 76 | 'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.default = deepCyclicCopy;
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const EMPTY = ... |
fe5001fe13972e8461a5af8e6a7c8e510dc31fe810799f9a0c6363abc89e4597 | JavaScript | 2,043 | 75 | "use strict";
// Always use the latest available version of Unicode!
// https://tc39.github.io/ecma262/#sec-conformance
const version = "15.0.0";
const start = require("@unicode/unicode-" +
version +
"/Binary_Property/ID_Start/code-points.js").filter(function (ch) {
return ch > 0x7f;
});
let last = -1;
const co... |
902a24bad46e47a17655a1e22d9ce0e8a9dbe0d1c439a0157ca32ae971cb956f | JavaScript | 2,055 | 66 | 'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.isImmutableList = isImmutableList;
exports.isImmutableOrderedKeyed = isImmutableOrderedKeyed;
exports.isImmutableOrderedSet = isImmutableOrderedSet;
exports.isImmutableRecord = isImmutableRecord;
exports.isImmutableUnorderedKeyed = ... |
9907bf68236a123218edc41f7396a3a643a79d8032c05e310751818dfb7cf85a | JavaScript | 2,061 | 50 | import _typeof from "./typeof.js";
import setPrototypeOf from "./setPrototypeOf.js";
import inherits from "./inherits.js";
export default function _wrapRegExp() {
_wrapRegExp = function _wrapRegExp(re, groups) {
return new BabelRegExp(re, void 0, groups);
};
var _super = RegExp.prototype,
_groups = new We... |
8738c33f342a359e0c478d32f09f7511b1a8b6d33ce6c9d1923b9d9ad0cd840b | JavaScript | 2,079 | 92 | 'use strict';
/**
* @module JSONStream
*/
/**
* Module dependencies.
*/
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_BEGIN;
var EVENT_RUN_END ... |
a9f98d614ecb77755cb2c949239598bc597e7af29d5cdb534caf5662fd193036 | JavaScript | 2,090 | 41 | /*istanbul ignore start*/
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.diffSentences = diffSentences;
exports.sentenceDiff = void 0;
/*istanbul ignore end*/
var
/*istanbul ignore start*/
_base = _interopRequireDefault(require("./base"))
/*istanbul ignore end*/
;
/*istanbul i... |
30a657fdb9b54ab1608ed93ca129668b3dbf15bd2b15089116a3ce7be01b6e86 | JavaScript | 2,096 | 53 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAbsoluteMappingEntries = void 0;
var path = require("path");
/**
* Converts an absolute baseUrl and paths to an array of absolute mapping entries.
* The array is sorted by longest prefix.
* Having an array with entries allows us ... |
6ae55342a996b3f2d79c63313665d60932c7344c3e6f58c8d78800f5e522995a | JavaScript | 2,101 | 83 | 'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.test = exports.serialize = exports.default = void 0;
var _collections = require('../collections');
var Symbol = globalThis['jest-symbol-do-not-touch'] || globalThis.Symbol;
const asymmetricMatcher =
typeof Symbol === 'function' &&... |
57ff7ba5d9f27f41c9f04f1008e6a737acf67f43bc05310cc576e490aa73f57c | JavaScript | 2,105 | 44 | "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... |
2c8e34600ff6a1b07e55e0a9c25be77f973899c375ff2f41dc7ad9ce5f357302 | JavaScript | 2,106 | 104 | 'use strict';
var parse = require('../');
var test = require('tape');
test('boolean and alias is not unknown', function (t) {
var unknown = [];
function unknownFn(arg) {
unknown.push(arg);
return false;
}
var aliased = ['-h', 'true', '--derp', 'true'];
var regular = ['--herp', 'true', '-d', 'true'];
var opt... |
3fcb4deaf6c68570337e53be62e550d2e1f9b1a1cf12557c645973a928056618 | JavaScript | 2,109 | 57 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.configLoader = exports.loadConfig = void 0;
var TsConfigLoader2 = require("./tsconfig-loader");
var path = require("path");
var options_1 = require("./options");
function loadConfig(cwd) {
if (cwd === void 0) { cwd = options_1.opti... |
61a9d467d98650196c77d669607c85e8b294d78213a0dc00b9036802eadab5b0 | JavaScript | 2,109 | 44 | "use strict";
/*--------------------------------------------------------------------------
@sinclair/typebox/format
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 as... |
6667608039cca2e2c5436c13dd82396becd55e6b6ac8c70abffc7bc5ba90b1c7 | JavaScript | 2,109 | 24 | /*istanbul ignore start*/'use strict';
exports.__esModule = true;
exports.arrayDiff = undefined;
exports. /*istanbul ignore end*/diffArrays = diffArrays;
var /*istanbul ignore start*/_base = require('./base') /*istanbul ignore end*/;
/*istanbul ignore start*/var _base2 = _interopRequireDefault(_base);
function _int... |
75ff70ab984a57ef0b42b34043ee13670f44e6cdfb70612dae95c4a2e0d84c80 | JavaScript | 2,109 | 44 | "use strict";
/*--------------------------------------------------------------------------
@sinclair/typebox/errors
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 as... |
c4c00bfccd40e9d49115ef0b44a9f034d94f2f0cb1cb13f65e5b6c3a71b14c94 | JavaScript | 2,109 | 44 | "use strict";
/*--------------------------------------------------------------------------
@sinclair/typebox/system
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 as... |
eb63c0ff3d2ee0e17dee11526c39078691ba1bc660e5e8693c0ee485ad56d87f | JavaScript | 2,109 | 44 | "use strict";
/*--------------------------------------------------------------------------
@sinclair/typebox/custom
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 as... |
da80eb8bba152033ad53f8cf60aec21ada10199f9e88b66bf5cf90af460d7b59 | JavaScript | 2,119 | 92 | 'use strict';
import utils from '../utils.js';
/**
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
*
* @param {string} name - The name of the property to get.
*
* @returns An array of strings.
*/
function parsePropPath(name) {
// foo[x][y][z]
// foo.x.y.z
// foo-x... |
126dc01d06b9bd1a896c26925e998ef29198c135aa879f788d0c3c8d1019f27a | JavaScript | 2,123 | 77 | 'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.default = requireOrImportModule;
function _path() {
const data = require('path');
_path = function () {
return data;
};
return data;
}
function _url() {
const data = require('url');
_url = function () {
return da... |
e131b83514654706fbb6a2b98a621e83e428649eae5ea4f93306dd235c9da93e | JavaScript | 2,135 | 98 | 'use strict';
var Test = require('../test');
var EVENT_FILE_PRE_REQUIRE =
require('../suite').constants.EVENT_FILE_PRE_REQUIRE;
/**
* QUnit-style interface:
*
* suite('Array');
*
* test('#length', function() {
* var arr = [1,2,3];
* ok(arr.length == 3);
* });
*
* test('#indexOf... |
3f6c0e4fc8f3947d8081c38d0607349a493332c1cd5dad0edfc5c8a0a768fa77 | JavaScript | 2,150 | 69 | /*!
* Chai - overwriteChainableMethod utility
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
* MIT Licensed
*/
var chai = require('../../chai');
var transferFlags = require('./transferFlags');
/**
* ### .overwriteChainableMethod(ctx, name, method, chainingBehavior)
*
* Overwrites an already exis... |
960a188ec429f8562e954f264a35cd3abb59b67e4a909fbdf8639335a6c1be51 | JavaScript | 2,153 | 45 | "use strict";
/*--------------------------------------------------------------------------
@sinclair/typebox/guards
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 as... |
9b54be166af588d2b287ccd7e90bb7211b7ea481a1d461734746342853ff5733 | JavaScript | 2,165 | 55 | "use strict";
/*--------------------------------------------------------------------------
@sinclair/typebox/custom
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 as... |
1cc708a249bc2e96d47a1eb98ceb92d820a77f4181bc0338991525356e941fbe | JavaScript | 2,167 | 45 | "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... |
50a9809c29265853d33fbb38656642bf8e00c0949767ed0981c87a780e840c18 | JavaScript | 2,179 | 68 | /*!
* Chai - addMethod utility
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
* MIT Licensed
*/
var addLengthGuard = require('./addLengthGuard');
var chai = require('../../chai');
var flag = require('./flag');
var proxify = require('./proxify');
var transferFlags = require('./transferFlags');
/**
... |
52990ba25322952b43b977633d94b7b02de76c55ab06d6ef2c584e61d4b80b78 | JavaScript | 2,187 | 81 | 'use strict';
import transformData from './transformData.js';
import isCancel from '../cancel/isCancel.js';
import defaults from '../defaults/index.js';
import CanceledError from '../cancel/CanceledError.js';
import AxiosHeaders from '../core/AxiosHeaders.js';
import adapters from "../adapters/adapters.js";
/**
* Th... |
e0775961ff7419dbc27dcf24dccaa2266f9dfcf26caf52075ca8720f8629a60c | JavaScript | 2,191 | 50 | "use strict";
/*--------------------------------------------------------------------------
@sinclair/typebox/guard
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... |
154975ef93a3972920bbfd9250ddc08ba27c16c070b6bdf3035d431a1f9fee34 | JavaScript | 2,203 | 115 | 'use strict';
/**
* Metadata about various options of the `run` command
* @see module:lib/cli/run
* @module
* @private
*/
/**
* Dictionary of yargs option types to list of options having said type
* @type {{string:string[]}}
* @private
*/
const TYPES = (exports.types = {
array: [
'extension',
'file... |
b051bf5bf865aecabbb0438dc4aee8d6539f1b2fb7c456cc9c99dd11ddc5ccfb | JavaScript | 2,214 | 55 | "use strict";
/*--------------------------------------------------------------------------
@sinclair/typebox/format
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 as... |
ecdf1fe892b9e2373a30f230c3701fb005a89821c59527438e705e5efa3d447f | JavaScript | 2,219 | 77 | 'use strict';
const singleComment = Symbol('singleComment');
const multiComment = Symbol('multiComment');
const stripWithoutWhitespace = () => '';
const stripWithWhitespace = (string, start, end) => string.slice(start, end).replace(/\S/g, ' ');
const isEscaped = (jsonString, quotePosition) => {
let index = quotePosit... |
225e45689fb05021f8ae645f2ef28a8d8786c99c69bcf33349f1c16095eafb91 | JavaScript | 2,220 | 2 | #!/usr/bin/env node
'use strict';var _fs=require('fs');var _fs2=_interopRequireDefault(_fs);var _path=require('path');var _path2=_interopRequireDefault(_path);var _minimist=require('minimist');var _minimist2=_interopRequireDefault(_minimist);var _package=require('../package.json');var _package2=_interopRequireDefault(_... |
33f127685d843417560f75139d8eaef128f6f36cfd67fcbbe43b682b4ae09ff4 | JavaScript | 2,220 | 83 | 'use strict';
/**
* Provides a factory function for a {@link StatsCollector} object.
* @module
*/
var constants = require('./runner').constants;
var EVENT_TEST_PASS = constants.EVENT_TEST_PASS;
var EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;
var EVENT_SUITE_BEGIN = constants.EVENT_SUITE_BEGIN;
var EVENT_RUN_BEGIN... |
5dcaba9339b703798cc469f834d2500176d9f6d366094240389a19ee0fc0e1db | JavaScript | 2,227 | 97 | var conversions = require('./conversions');
/*
this function routes a model to all other models.
all functions that are routed have a property `.conversion` attached
to the returned synthetic function. This property is an array
of strings, each with the steps in between the 'from' and 'to'
color models (inclusiv... |
4a05bc6b4352700962d9ae0c4b9a06667ce95b2e3aa118b2380dc088c551169b | JavaScript | 2,236 | 24 | /*istanbul ignore start*/"use strict";
exports.__esModule = true;
exports. /*istanbul ignore end*/convertChangesToDMP = convertChangesToDMP;
// See: http://code.google.com/p/google-diff-match-patch/wiki/API
function convertChangesToDMP(changes) {
var ret = [],
change = /*istanbul ignore start*/void 0 /*istanbu... |
2bc4ef9e87c47f1a4e0cfcb3706d886e0d73edce88149e300d2364066f396ed6 | JavaScript | 2,252 | 67 | // Limited implementation of python % string operator, supports only %s and %r for now
// (other formats are not used here, but may appear in custom templates)
'use strict'
const { inspect } = require('util')
module.exports = function sub(pattern, ...values) {
let regex = /%(?:(%)|(-)?(\*)?(?:\((\w+)\))?([A-Za-... |
5de2b6e625c4deea898057e0fd8e2ea8b704ba97f6986d693775801d12268673 | JavaScript | 2,255 | 32 | /*istanbul ignore start*/
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.convertChangesToDMP = convertChangesToDMP;
/*istanbul ignore end*/
// See: http://code.google.com/p/google-diff-match-patch/wiki/API
function convertChangesToDMP(changes) {
var ret = [],
change,
... |
db01c9651e284171fac1c6a008125783e5f20d60723fbeb142a8db03569b8c3b | JavaScript | 2,260 | 61 | import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { classNames, styles } from "./common";
import RLIcon from "./icon";
const RLButton = (props) => (
<button {...props}>{props.children}</button>
);
const BarButton = ({ text, icon, className, iconClassName, ...props }) => (
<RLButton {...... |
2140814ad6a8bb0f3200085067aece328b539f7852a6cb76018b617c3efddb3b | JavaScript | 2,265 | 14 | /**
* @license React
* react-is.production.min.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';var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Sy... |
1e695bfc17ebdb7ebbd085174f96b518e1c3d04dfc4e4226b8994c5cec13d5fd | JavaScript | 2,267 | 67 | 'use strict';
import utils from './../utils.js';
import platform from '../platform/index.js';
export default platform.isStandardBrowserEnv ?
// Standard browser envs have full support of the APIs needed to test
// whether the request URL is of the same origin as current location.
(function standardBrowserEnv() {
... |
31fab64cc1fde7ee182e9c206b808b684140494717954ac3cadeb7d28031527e | JavaScript | 2,269 | 51 | var _typeof = require("./typeof.js")["default"];
var setPrototypeOf = require("./setPrototypeOf.js");
var inherits = require("./inherits.js");
function _wrapRegExp() {
module.exports = _wrapRegExp = function _wrapRegExp(re, groups) {
return new BabelRegExp(re, void 0, groups);
}, module.exports.__esModule = tru... |
8b30dc7ab721ebd2ad575f17ae9ee8f84759333654ed37f76713e1ca3f10cc78 | JavaScript | 2,283 | 1 | !function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(m){if(void 0===m)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===m.stemmerSupport)throw new Error("Lunr stemmer su... |
9a5e26c81b1c78441f443c350761148e006995fb88a8b750be20415208f1e91e | JavaScript | 2,300 | 45 | /*istanbul ignore start*/
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.diffArrays = diffArrays;
exports.arrayDiff = void 0;
/*istanbul ignore end*/
var
/*istanbul ignore start*/
_base = _interopRequireDefault(require("./base"))
/*istanbul ignore end*/
;
/*istanbul ignore sta... |
f90849bf4a11bd876b104c4e76f285950ef1b1013ed6e0b04ebcc9d7095dfe6d | JavaScript | 2,309 | 95 | 'use strict';
/**
* @module Doc
*/
/**
* Module dependencies.
*/
var Base = require('./base');
var utils = require('../utils');
var constants = require('../runner').constants;
var EVENT_TEST_PASS = constants.EVENT_TEST_PASS;
var EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;
var EVENT_SUITE_BEGIN = constants.EVENT_S... |
750a6877c8377a677d676448e67ab7e331a7c0844fa579286f7def02f8e2dab6 | JavaScript | 2,310 | 15 | /**
* @license React
* react-is.production.min.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(){'use strict';(function(b,c){"object"===typeof exports&&"undefined"!=... |
5d283e98671df9e1b07423a22888db5a40d8fea4774e3061e8f033fc9c4937cf | JavaScript | 2,313 | 47 | "use strict";
/*--------------------------------------------------------------------------
@sinclair/typebox/compiler
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 ... |
05f147c24e59e1c538329711b6e4a389fbbf321290fe176cda18750298d77c72 | JavaScript | 2,319 | 107 | var Stream = require('stream').Stream;
var util = require('util');
module.exports = DelayedStream;
function DelayedStream() {
this.source = null;
this.dataSize = 0;
this.maxDataSize = 1024 * 1024;
this.pauseStream = true;
this._maxDataSizeExceeded = false;
this._released = false;
this._bufferedEvents = ... |
5689588dc9d5cbfde629a2e011d466c77f5b6886bede50c8d36010858144be2c | JavaScript | 2,332 | 53 | "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... |
d3cd9035875b4c6ec88d5f71a7a6e35faaf2f5a06795c64080d87f7949b0740a | JavaScript | 2,338 | 99 | 'use strict';
/**
* @module Spec
*/
/**
* Module dependencies.
*/
var Base = require('./base');
var constants = require('../runner').constants;
var EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN;
var EVENT_RUN_END = constants.EVENT_RUN_END;
var EVENT_SUITE_BEGIN = constants.EVENT_SUITE_BEGIN;
var EVENT_SUITE_END = co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.