sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
a3bf22eb0c66288beb5987e4bad2f521fda78d8e73abe4d0a9bcc1fa9ee526ca | JavaScript | 1,656 | 65 | define( [
"../core",
"../core/isAttached",
"./var/rboxStyle",
"./var/rnumnonpx",
"./var/getStyles",
"./support"
], function( jQuery, isAttached, rboxStyle, rnumnonpx, getStyles, support ) {
"use strict";
function curCSS( elem, name, computed ) {
var width, minWidth, maxWidth, ret,
// Support: Firefox 51+
... |
affd8055134f7e0cd7c263dfca298bd0e83fb7ce4430a2b015b8a436d94cfe46 | JavaScript | 1,662 | 74 | import SseGlobals from "./SseGlobals.jsx";
export default class SseSetOfClasses {
constructor(config) {
this._config = config;
this.name = config.name;
this._byLabel = new Map();
this._labels = new Set();
this._config.objects.forEach((desc, i) => {
desc.classInde... |
de222118a1fb7901d6d4dce41ead6e89202fd710efdfa45f61fadea88c589964 | JavaScript | 1,673 | 43 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
fabb84b2e3c2aaed2b8021e69e02a3854e28754247529a943bcf278907f1f413 | JavaScript | 1,691 | 43 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
809e4664526a9ef393412df19c6c1a093f63d1ba3de8c0fbf32e5133aa24c5a4 | JavaScript | 1,736 | 66 | #!/usr/bin/env node
/*!
* Script to generate SRI hashes for use in our docs.
* Remember to use the same vendor files as the CDN ones,
* otherwise the hashes won't match!
*
* Copyright 2017-2019 The Bootstrap Authors
* Copyright 2017-2019 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob... |
44a4cf14791a010b2802a2184cc321c93c8dd51fa18f6e327b29f5113a9799be | JavaScript | 1,741 | 57 | const https = require('https');
const { writeFileSync } = require('fs');
var pjson = require('../package.json');
const { resolve } = require('path');
/**
* Retrieves the changelog.md file during a release with semantic release
* Usage:
* node getChangelog.js <version-string>
*/
let lastVersion = process.argv[2];
... |
f4fb1fc0141dacd711c79f6624c1d1d232f47ac880e37366be10a941b3ed4883 | JavaScript | 1,746 | 75 | import validate from 'validate.js';
import _ from 'underscore';
export function validateData(data) {
let i;
let entry;
if (validate.isArray(data)) {
for (i = 0; i < data.length; i++) {
entry = data[i];
if (!(validate.isArray(entry) || validate.isObject(entry))) {
console.error('Each entr... |
f400d1304a7d06700d10d394b98a0cacb07c4d229458ef2ad9b2976ec3c9fb69 | JavaScript | 1,751 | 57 | define( [
"./core",
"./core/access",
"./var/isWindow",
"./css"
], function( jQuery, access, isWindow ) {
"use strict";
// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
jQuery.each( { padding: "inner" +... |
b7a909c55a26d53997fec990c4f6fdc8b2b4032e0fe2a9baf0afa08cbebad64e | JavaScript | 1,807 | 1 | const domain=document.location.origin,data_url=domain+"/get_data",KDTree_url=domain+"/get_k_nearest",encPatient_url=domain+"/enc_patient";let N=0;async function getData(e){let t=await fetch(e);return await t.json()}function updatePage(e){let t=document.getElementById("tableSummary");getData(e).then(e=>{let a=Array(N).f... |
986e2c3668bb308410ecdefb99ad790f8e62d248b3ee2486ab6e993ec3e8fda8 | JavaScript | 1,811 | 46 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
36c94329a6c93267cf29307cd97f4999af26aa3caf60973ca4f1f95e3af9b98b | JavaScript | 1,812 | 45 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
53ccddf8624f2820cc286312c58eeebc47dfea530a4c9b26975444ac2897e1fa | JavaScript | 1,840 | 54 | import should from 'should';
import * as consts from '../../utils/consts.js';
import { validateData, validateSchema, validateUrl } from '../../utils/validation.js';
//Validation Tests
describe("Validation", function() {
const msg = "The Following Log Statements are the Error Logs " +
"Shown to Users Wh... |
82221cf534da06f376cac4f3a083dff66129d01b6d54265aafb6f80f8ccc162e | JavaScript | 1,858 | 48 | /**
* Select2 Slovak translation.
*
* Author: David Vallner <david@vallner.net>
*/
(function ($) {
"use strict";
// use text for the numbers 2 through 4
var smallNumbers = {
2: function(masc) { return (masc ? "dva" : "dve"); },
3: function() { return "tri"; },
4: function() { ret... |
13fc3b20a4517fb49c754045bb86ea32e1d34a8a9b7d1f67d68596a5ef6969c3 | JavaScript | 1,904 | 77 | define( [
"../core",
"../core/stripAndCollapse",
"../var/isFunction",
"../core/parseHTML",
"../ajax",
"../traversing",
"../manipulation",
"../selector"
], function( jQuery, stripAndCollapse, isFunction ) {
"use strict";
/**
* Load a url into a page
*/
jQuery.fn.load = function( url, params, callback ) {
va... |
42d60bbc3cbcecd2fea507835a58b3e2f640cf680edc6fc7821b1f2216f9c230 | JavaScript | 1,919 | 83 | var NS4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) < 5);
function addOption(theSel, theText, theValue)
{
var newOpt = new Option(theText, theValue);
var selLength = theSel.length;
theSel.options[selLength] = newOpt;
}
function swapOptions(theSel, index1, index2)
{
var text, value;
... |
4c87d55af7c47b52af8cce299ce67a81dc4ab580217527ab361850920c1bc6eb | JavaScript | 1,929 | 49 | /**
* Select2 Czech translation.
*
* Author: Michal Marek <ahoj@michal-marek.cz>
* Author - sklonovani: David Vallner <david@vallner.net>
*/
(function ($) {
"use strict";
// use text for the numbers 2 through 4
var smallNumbers = {
2: function(masc) { return (masc ? "dva" : "dvě"); },
... |
9ef61c99b517993699bde41d102195aa1414fdc8096a0ef4ee919169c203ec02 | JavaScript | 1,961 | 2 | /*! markdown-it-ins 2.0.0 https://github.com//markdown-it/markdown-it-ins @license MIT */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"... |
e063ac87bc901f72f46e0827d6128733e7b25e11d2a109ca20424d0924ef59b6 | JavaScript | 1,971 | 2 | /*! markdown-it-mark 2.0.0 https://github.com//markdown-it/markdown-it-mark @license MIT */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global... |
d633b3d787f3f661fc0dd0654ef44516f6e91ae99ef13c3797a716d9a9aee362 | JavaScript | 2,002 | 74 | define( [
"../core",
"../var/rcssNum"
], function( jQuery, rcssNum ) {
"use strict";
function adjustCSS( elem, prop, valueParts, tween ) {
var adjusted, scale,
maxIterations = 20,
currentValue = tween ?
function() {
return tween.cur();
} :
function() {
return jQuery.css( elem, prop, "" );
}... |
9e1180c44c25add2efa986c76b6b3f0bb8ff9e7ef732dfd80274d02c3d2c4278 | JavaScript | 2,009 | 47 | // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
// Intended to prevent false-positive bug reports about Bootstrap not working properly in old versions of IE due to folks testing using IE's unreliable emulation modes.
(function () {
'use ... |
fb7b9e66dee5f633d199c24dd066f092ea0ad025265688cc662691f49256a115 | JavaScript | 2,016 | 76 | import postal from "postal";
export default class SseMsg {
static register(obj) {
if (obj.sendMsg){
return;
}
obj.actions = {};
obj.subscription = postal.subscribe({
channel: "ui",
topic: "msg",
callback: (function (data) {
... |
07e4f468f4e53d1edbdd0dd72226847526cf65d6acd0227790681d5383e8ca57 | JavaScript | 2,064 | 64 | import SseMsg from "../../common/SseMsg";
export default class SseUndoRedo2d {
constructor(cloningFunction) {
SseMsg.register(this);
this.byUrl = new Map();
this.cloningFunction = cloningFunction;
this.currentInfos = null;
this.depth = 50;
}
init(url, initialState) ... |
f75639a995c95b455c3056f35473976b0fb20fa217341d349b5c0e57ebd7b41d | JavaScript | 2,097 | 86 | define( [
"../core",
"../var/document",
"../core/readyException",
"../deferred"
], function( jQuery, document ) {
"use strict";
// The deferred used on DOM ready
var readyList = jQuery.Deferred();
jQuery.fn.ready = function( fn ) {
readyList
.then( fn )
// Wrap jQuery.readyException in a function so that ... |
6d7c9f6ece6c8ae31d4ac7728f3db3813364d31b8e2ca8ee816bc57d20d46aea | JavaScript | 2,130 | 51 | // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
/*!
* Copyright 2014-2015 Twitter, Inc.
*
* Licensed under the Creative Commons Attribution 3.0 Unported License. For
* details, see https://creativecommons.org/licenses/by/3.0/.
*/
// Intend... |
bc32fc636ff9cdc32bb50bd37b3de0e20b66c77d9441de785f5f507f9389ce0d | JavaScript | 2,146 | 59 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
c1ceef907cb704985ecf9097ba6e1a9e367b04c9fce88f2a99ef0a76d6ad4275 | JavaScript | 2,190 | 61 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
8d164ecafe5f1dd135d664a18c6c7775360b67154d3e0e9d16c1b2104777fe23 | JavaScript | 2,210 | 71 | import Paper from "paper";
import SseGlobals from "../../../common/SseGlobals";
export default class SseTools {
constructor(app2d) {
this.editor = app2d;
this.paperTool = new Paper.Tool();
}
activate() {
if (Paper.tool && Paper.tool.cancel)
Paper.tool.cancel(true);
... |
02e5dafd7f11e40c3534509854e5b100db570889d7f91af783b4909cbbf3d9bf | JavaScript | 2,225 | 2 | /*! markdown-it-container 2.0.0 https://github.com//markdown-it/markdown-it-container @license MIT */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r;r="undefined"!=typeof window?window:"undefined"!=typeof glo... |
928ff15d42049053d4701274e8595ecd32e139c633afb69de2c6924467e711d0 | JavaScript | 2,234 | 54 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
abebddbb9aa51ac7bb90bb8485eec7c20f69bdf795c20b90b631da4e98b7e341 | JavaScript | 2,248 | 65 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
344e27f97a78300afa0be93fd75a36ccb6d69f1098480ee233a5009188e17d38 | JavaScript | 2,252 | 11 | /**
* jQuery.ScrollTo - Easy element scrolling using jQuery.
* Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
* Dual licensed under MIT and GPL.
* Date: 5/25/2009
* @author Ariel Flesler
* @version 1.4.2
*
* http://flesler.blogspot.com/2007/10/jqueryscrollto.html... |
ea8ed7d633c6568a39c1eff13f7381b4a1e0af4e6ba750951dc0f3adc3f832c8 | JavaScript | 2,264 | 97 | define( [
"../core",
"../var/document",
"../var/isFunction"
], function( jQuery, document, isFunction ) {
"use strict";
var readyCallbacks = [],
whenReady = function( fn ) {
readyCallbacks.push( fn );
},
executeReady = function( fn ) {
// Prevent errors from freezing future callback execution (gh-1823)
/... |
75f88f2072a0517992501ccd97b4925112ab9490951acc9a2ffca7ea66361c44 | JavaScript | 2,283 | 69 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
f6bff88159efaa211970430b1a33ceb0ae64e86b2ed4d696d7a57713124d4f0c | JavaScript | 2,304 | 105 | define( [
"../core",
"../data/var/dataPriv",
"../css/var/isHiddenWithinTree"
], function( jQuery, dataPriv, isHiddenWithinTree ) {
"use strict";
var defaultDisplayMap = {};
function getDefaultDisplay( elem ) {
var temp,
doc = elem.ownerDocument,
nodeName = elem.nodeName,
display = defaultDisplayMap[ nodeNa... |
9241a0d086d23f1cd80f4b397d211fd671f5368706a4789e6cafdb5ce19f2d9d | JavaScript | 2,320 | 65 | #!/usr/bin/env node
/*!
* Script to run vnu-jar if Java is available.
* Copyright 2017-2019 The Bootstrap Authors
* Copyright 2017-2019 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
'use strict'
const childProcess = require('child_process')
const vnu = require('vn... |
2ddc571498c2df7534a601ec8e57eba5cecb9120cc741d6bdb6625ff307762df | JavaScript | 2,345 | 7 | /*!
* bsCustomFileInput v1.3.2 (https://github.com/Johann-S/bs-custom-file-input)
* Copyright 2018 - 2019 Johann-S <johann.servoire@gmail.com>
* Licensed under MIT (https://github.com/Johann-S/bs-custom-file-input/blob/master/LICENSE)
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exp... |
255e58ef6f102b5eca43218a7734a53b071f1aaf57771a0508d908566fd35914 | JavaScript | 2,352 | 63 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
e89a5a30c6474232b90753af7aa29980b5563ef6e1c508760ffda95679a6b11a | JavaScript | 2,352 | 97 | define( [
"../core",
"../var/indexOf",
"../var/isFunction",
"./var/rneedsContext",
"../selector"
], function( jQuery, indexOf, isFunction, rneedsContext ) {
"use strict";
// Implement the identical functionality for filter and not
function winnow( elements, qualifier, not ) {
if ( isFunction( qualifier ) ) {
... |
3835933e2d1b28ac5ae17ef42784d050ef9edca8501840a7303378415b9d9229 | JavaScript | 2,355 | 71 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
8bb9642839473f8fae063700a22b24043260168078841ff2eda42027a4479de3 | JavaScript | 2,428 | 58 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
3109cbc451f797107e4f1753800f32711e7d9bc46bf75c5594f8d2f816644efe | JavaScript | 2,432 | 100 | //Channel voltage clamp chart plots
function setupChart(id, title, data) {
var ctx = document.getElementById(id).getContext("2d");
window[id] = new Chart(ctx, {
type: 'line',
data: data,
options: {
animation: { duration: 0 },
responsive: false,
title: { display: false },
elements: {
point: { ra... |
68011e58c6b97c1eaf6c82c507c7ccf6760507aa69ba8f9ee652c910f08f033f | JavaScript | 2,467 | 98 | define( [
"./core",
"./core/nodeName",
"./core/camelCase",
"./core/toType",
"./var/isFunction",
"./var/isWindow",
"./var/slice",
"./event/alias"
], function( jQuery, nodeName, camelCase, toType, isFunction, isWindow, slice ) {
"use strict";
jQuery.fn.extend( {
bind: function( types, data, fn ) {
return t... |
a1ba14ff9c7e9e937ebdfda299ae376d86865f0d55d1f22593da1c923d23778a | JavaScript | 2,469 | 63 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
f8a27f3eedbd53a199950414f6b1be41311873eece7b449d15f858eb4874b03a | JavaScript | 2,486 | 106 | define( [
"../core",
"../core/toType",
"../core/isAttached",
"./var/rtagName",
"./var/rscriptType",
"./wrapMap",
"./getAll",
"./setGlobalEval"
], function( jQuery, toType, isAttached, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) {
"use strict";
var rhtml = /<|&#?\w+;/;
function buildFragment( elem... |
2db18a2c2346346db285a4f548d0a114f3db43f41a31616559b1da1b0b864b7c | JavaScript | 2,498 | 99 | const express = require('express');
const app = express();
const hbs = require('hbs')
const path = require('path')
const viewsPath = path.join(__dirname,'../../templates/views')
const partialsPath = path.join(__dirname,'../../templates/partials')
app.set('views',viewsPath)
app.set('view engine', 'hbs')
hb... |
3a6ebc11579fc1a987c90d1e2d4cdcfc84dac449a9a7bbcb82818d85c4247d80 | JavaScript | 2,501 | 56 | // Load the SDK and UUID
var AWS = require('aws-sdk');
var uuid = require('uuid');
AWS.config.update({region: 'eu-west-1'});
// Create unique bucket name
var bucketName = 'nsp-project';// + uuid.v4();
// Create name for uploaded object key
var keyName = '/requests/requests.txt';
// Create a promise on S3 ... |
92450946babd54b6ee85ebbd09787e7d29421d26c488129b5962e69b2cfef951 | JavaScript | 2,549 | 63 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
05bd6efee387464eaa6fe9ce6ec944030b61f539e1b2e5e4b02b8d1253558964 | JavaScript | 2,572 | 111 | const domain = document.location.origin;
const data_url = domain + "/get_data";
const trace_url = domain + "/get_trace";
let trace_data = {};
async function getData(url) {
let response = await fetch(url);
return await response.json();
}
function updateColour(day, N) {
let colours = [];
for(let i=0; i ... |
09b3bc459a759a438dd5245b9b97087c030d6b43e629422becfd5c757f397c68 | JavaScript | 2,605 | 86 | var editor; // use a global for the submit and return data rendering in the examples
$(document).ready(function() {
editor = new $.fn.dataTable.Editor( {
//ajax: "../php/staff.php",
table: "#example",
fields: [ {
label: "First name:",
name: "first_name"
... |
007416087b91ce181a81cc12edb63e096158f5763eddfabb05395397e1133689 | JavaScript | 2,614 | 85 | /*!
* Script to build our plugins to use them separately.
* Copyright 2019 The Bootstrap Authors
* Copyright 2019 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
'use strict'
const path = require('path')
const rollup = require('rollup')
const babel = require('r... |
cb8030383605be86f842e81e2f7ee684cba6dc3a53aa3dc595f3c5ac2e4b331e | JavaScript | 2,616 | 6 | //CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/MicrosoftAjaxTimer.js
//----------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------
// MicrosoftAjaxTimer.js
Type._registerScript("Timer.js",["Microso... |
6d875e71f299c84bf67e744e9b0d9eaf4c5ab321b0b17f8cc13fb6a7262492c0 | JavaScript | 2,628 | 87 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
8a5a590b32226b89c25a1ad835da6bd09ff85f3be424b8e68f43cfb2fcdcd86e | JavaScript | 2,658 | 107 | describe('original_questionnaire', () => {
it('passes', () => {
const date = new Date();
cy.intercept('/assets/questionnaire/en.json', {
fixture: 'questionnaire_all_types.json',
}).as('getQuestionnaire');
cy.intercept('api/donate', (req) => {
req.reply();
expect('Unexpected Https c... |
535c806508704e93ef961cf4a3435cb5e40d9b577f314b4961ebe03e16afc49d | JavaScript | 2,686 | 68 | const assert = require('assert')
const fs = require('fs')
const path = require('path')
const vm = require('vm')
const repository = path.resolve(__dirname, '..', '..')
let confirmed = false
const controls = {}
global.$ = selector => ({
prop(name, value){
if(value !== undefined) controls[selector + ':' + nam... |
e00d1d97fe71e5cf7b7b7bead78d5db445a8ec9730265a5e164407c28da9d5d9 | JavaScript | 2,733 | 2 | /*! markdown-it-deflist 2.0.3 https://github.com//markdown-it/markdown-it-deflist @license MIT */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?... |
22b0144decc7c5431ac8113e650905bbd37918f74799ef0e186f830c105a83f5 | JavaScript | 2,747 | 76 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
b554c1111427996306ead9d755713e1937645f299d3a85b911da9b8c63c152e7 | JavaScript | 2,748 | 103 | define( [
"../core",
"../var/isFunction",
"./var/nonce",
"./var/rquery",
"../ajax"
], function( jQuery, isFunction, nonce, rquery ) {
"use strict";
var oldCallbacks = [],
rjsonp = /(=)\?(?=&|$)|\?\?/;
// Default jsonp settings
jQuery.ajaxSetup( {
jsonp: "callback",
jsonpCallback: function() {
var callback ... |
d494a7ab35e07286d9c422c457f7b9d9157dea4dc96338e6e58012b2455f45a4 | JavaScript | 2,755 | 53 | /*!
* krajee-markdown-editor v1.0.0
* http://plugins.krajee.com/krajee-markdown-editor
*
* Krajee Markdown Editor Font Awesome 4.x Theme
*
* Author: Kartik Visweswaran
* Copyright: 2014 - 2018, Kartik Visweswaran, Krajee.com
*
* Licensed under the BSD 3-Clause
* https://github.com/kartik-v/krajee-ma... |
8e73a30d35c83ea6a597c3343324d2b7df097ad26e67b62efb5266ee12d317b5 | JavaScript | 2,771 | 8 | /*!
* jQuery Mousewheel 3.1.13
*
* Copyright 2015 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b... |
4fb256992f67a5ea2f3a6cf8c88e9fd9bf3062f6d6ac6c5be4d84ddac8ae2eb3 | JavaScript | 2,772 | 106 | #!/usr/bin/env node
/*!
* Script to update version number references in the project.
* Copyright 2017-2019 The Bootstrap Authors
* Copyright 2017-2019 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
'use strict'
const fs = require('fs')
const path = require('path')
... |
21866a953cd0fdf6ad3e9d051dcf5e9b00985ab706e448c6a1a98f86e4e16214 | JavaScript | 2,780 | 46 | function statCalculation (trial) {
let hit = jsPsych.data.get().filterCustom(function(trial){ return (trial.block === 1 || trial.block === 2) && trial.hit === 1} );
let miss = jsPsych.data.get().filterCustom(function(trial){ return (trial.block === 1 || trial.block === 2) && trial.miss === 1} );
let false... |
21830128221cc77e02172083974bbbc99b9dba573e79a1916a8d0e6d0f9984bb | JavaScript | 2,782 | 53 | /*!
* krajee-markdown-editor v1.0.0
* http://plugins.krajee.com/krajee-markdown-editor
*
* Krajee Markdown Editor Font Awesome 4.x Theme
*
* Author: Kartik Visweswaran
* Copyright: 2014 - 2018, Kartik Visweswaran, Krajee.com
*
* Licensed under the BSD 3-Clause
* https://github.com/kartik-v/krajee-ma... |
24dc6b5d4acec2f80fcc92914ee3635505197cd93df3a2ef27efd00635d51595 | JavaScript | 2,783 | 46 | function statCalculation (trial) {
let hit = jsPsych.data.get().filterCustom(function(trial){ return (trial.block === 1 || trial.block === 2) && trial.hit === 1} );
let miss = jsPsych.data.get().filterCustom(function(trial){ return (trial.block === 1 || trial.block === 2) && trial.miss === 1} );
let false... |
3e1e24d7453f0732731ce4dc94acc7f301118546eacdc07b76b0bc2f11f95b62 | JavaScript | 2,783 | 84 | const assert = require('assert')
const fs = require('fs')
const path = require('path')
const vm = require('vm')
const repository = path.resolve(__dirname, '..', '..')
global.$ = () => ({hasClass: () => false})
global.GLOBAL = {
files: {
'first.tiff': {name: 'first.tiff'},
'broken.tiff': {name: 'br... |
64efebe9eaa91c4fb42460fb5da72949621fe64d0437846f795908388fbfd393 | JavaScript | 2,801 | 1 | Search.setIndex({docnames:["api","importer","index"],envversion:52,filenames:["api.rst","importer.rst","index.rst"],objects:{"":{importer:[1,0,0,"-"]},"importer.ModelImporter":{add_links:[1,2,1,""],add_metadata:[1,2,1,""],add_model:[1,2,1,""],compare_to:[1,2,1,""],connect_to_db:[1,2,1,""],fetch_model_record:[1,2,1,""],... |
bdf0d673d79e0cf4978541210a40d9f2f01b487b5fea8280430257af94b77594 | JavaScript | 2,819 | 116 |
/*global SyntaxHighlighter*/
SyntaxHighlighter.config.tagName = 'code';
$(document).ready( function () {
if ( ! $.fn.dataTable ) {
return;
}
var dt110 = $.fn.dataTable.Api ? true : false;
// Work around for WebKit bug 55740
var info = $('div.info');
if ( info.height() < 115 ) {
info.css( 'min-height', '8e... |
71867a281267603db3b7a71411b63092e2e75b4e93002931ef59f6b1181f48ce | JavaScript | 2,834 | 82 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
528db6e35c6cf6c74c1f219222c9a3d27cf599bd9c99b7e1dd0e4698597e2fc9 | JavaScript | 2,842 | 5 | /*! jQuery UI - v1.10.4 - 2014-04-07
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
(function(t){var e=!1;t(document).mouseup(function(){e=!1}),t.widget("ui.mouse",{version:"1.10.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:fu... |
30a169a35076a1ad3dc2ac5a406bd9c24a5d4bae4a885b5cd5ae117ba5c62fa9 | JavaScript | 2,851 | 72 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
e6bd83ddf0bf5be3542aa12ff5ef92dd7785271df9e791b29651c85f9c4baf96 | JavaScript | 2,853 | 2 | /*! markdown-it-abbr 1.0.4 https://github.com//markdown-it/markdown-it-abbr @license MIT */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global... |
56862fb651c1463f8f217b82fd35d2e329732fca268f81bec373f6d4c0815720 | JavaScript | 2,879 | 102 |
(function(){
var DataTable = $.fn.dataTable;
var sort_prefix = 'css_right ui-icon ui-icon-';
var toolbar_prefix = 'fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix ui-corner-';
/* Set the defaults for DataTables initialisation */
$.extend( true, DataTable.defaults, {
dom:
'<"'+toolbar_prefix+'tl ui-corne... |
a361f7a0236899778a357fa532dc307867137c6066d87b967f0314409c279018 | JavaScript | 2,931 | 68 | // script.aculo.us scriptaculous.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"),... |
0bb6ff90f9685c565dc8980f09bf5903dfd8bae692f2fea1aaf5cf1c49c32ad7 | JavaScript | 2,974 | 93 | //CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/WebForms.js
function WebForm_FindFirstFocusableChild(control) {
if (!control || !(control.tagName)) {
return null;
}
var tagName = control.tagName.toLowerCase();
if (tagName == "undefined") {
return null;
}
var children = control.c... |
3dd1e48e1bc992bcb9e6a9c96165ed14858cd5c5991298f5ab86d0b4891de058 | JavaScript | 2,982 | 80 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
db40f7dca19d61957ea3e749816c11baf5ff665bcec2686c31a9cd5d577f9679 | JavaScript | 2,987 | 32 | function setArrays (){
nbackStimuli = {};
nbackStimuli.stimuliFirstBlock = [];
nbackStimuli.stimuliSecondBlock = [];
nbackStimuli.stimuliPractice = [];
nbackStimuli.correctResponse;
nbackStimuli.target;
}
function defineNullBack() {
nbackStimuli.practiceList = ["B", "P", "X", "K", "H", "M", "Q", "X", "N"... |
f7c3da6ccaaf513a4c24b141b0c1d905048529ec0282fdc9f17507a944e0accb | JavaScript | 3,004 | 143 | define( [
"../core",
"../core/access",
"./support",
"../selector"
], function( jQuery, access, support ) {
"use strict";
var rfocusable = /^(?:input|select|textarea|button)$/i,
rclickable = /^(?:a|area)$/i;
jQuery.fn.extend( {
prop: function( name, value ) {
return access( this, jQuery.prop, name, value, arg... |
46a23cb86269b46bce0e23dd22345270a42c9869bc74bcbe6d27381976a5bee5 | JavaScript | 3,007 | 9 | /* Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
* Dual licensed under the MIT (MIT_LICENSE.txt)
* and GPL Version 2 (GPL_LICENSE.txt) licenses.
*
* Version: 1.1.1
* Requires jQuery 1.3+
* Docs: http://docs.jquery.com/Plugins/livequery
*/
(function(a){a.extend(a.fn,{livequery:function(e,d,c){var b=t... |
59c36662ef94a692411737053e7f8bcc068a9745179d9b0cbfb8f204e76fbfaa | JavaScript | 3,030 | 89 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
a9ffb16d4b6b557249ce838dfe5467ceea620c6e65a315cf2ef5c1cc20358020 | JavaScript | 3,033 | 124 | import Cookie from 'js-cookie';
import queryString from 'querystring';
// Set Class Constants
export const eventNames = {
LOADED: 'loaded',
LOG: 'log',
INIT: 'init',
INIT_CB: 'initCallback',
SUBMIT: 'submit',
SCHEMA_GET: 'getSchema',
SCHEMA_CB: '_schemaCallback',
DATA_GET: 'getData',
DATA_CB: '_table... |
6e8f9abf01b02776ce823001932ea33fc21ae158a5a5c2b27b96432bded56099 | JavaScript | 3,043 | 94 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
9f46a17de41a3ee95a3127bbc4083b30b9f7b9e88b92ca9686c54c522e2dfdf2 | JavaScript | 3,045 | 122 | const domain = document.location.origin;
const data_url = domain + "/get_data";
const KDTree_url = domain + "/get_k_nearest"
const encPatient_url = domain + "/enc_patient"
const aux = 0
/*let N = 0; */
/*
async function getData(url) {
let response = await fetch(url);
return await response.json();
}
function ... |
b921caa16886f562f4fa41f1db6c9960cd69f5d8e3e35e54541cf73bce3ac4c1 | JavaScript | 3,067 | 101 | /*
* Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.com>
*
* 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... |
19954f0addee6328393d661c0f936aa22bfc0f64eae9eae3d1fa835dc5ab381b | JavaScript | 3,070 | 104 | define( [
"../core",
"../var/document",
"../var/documentElement",
"../var/support"
], function( jQuery, document, documentElement, support ) {
"use strict";
( function() {
// Executing both pixelPosition & boxSizingReliable tests require only one layout
// so they're executed at the same time to save the secon... |
30b56cbdfad2261b0496f11d49d19eca628697bb6153ccbff96c2e314ffb8bd5 | JavaScript | 3,085 | 132 | /**
* @author mrdoob / http://mrdoob.com/
* @author Mugen87 / http://github.com/Mugen87
*/
import * as THREE from 'three';
import {Box3, BufferAttribute, BufferGeometry, LineSegments} from 'three';
function BoxHelper(object, color) {
this.object = object;
if (color === undefined) color = 0xffff00;
va... |
950a7a9b383b4f2a66b5d0829e0556a9750127a91ae25878fedf214e917a7e68 | JavaScript | 3,091 | 145 | define( [
"./core",
"./data/var/dataPriv",
"./deferred",
"./callbacks"
], function( jQuery, dataPriv ) {
"use strict";
jQuery.extend( {
queue: function( elem, type, data ) {
var queue;
if ( elem ) {
type = ( type || "fx" ) + "queue";
queue = dataPriv.get( elem, type );
// Speed up dequeue by getti... |
b84161c9fbf7520cd14e7019f92120bd87a928a074156e91a992eba9fc9436e8 | JavaScript | 3,121 | 117 | /*!
* jQuery Cookie Plugin v1.4.1
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2013 Klaus Hartl
* Released under the MIT license
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// CommonJS... |
719875309a034313c742edfa43b78177ba49971a941b961ca9dd360eab569c8e | JavaScript | 3,174 | 84 | (function($){
/* hoverIntent by Brian Cherne */
$.fn.hoverIntent = function(f,g) {
// default configuration options
var cfg = {
sensitivity: 7,
interval: 100,
timeout: 0
};
// override configuration options with user supplied object
cfg = $.extend(cfg, g ? { over: f, out: g } : f );
// instantia... |
1a0354ed885079d4a91e23fd54695791b8b69b4a2c15d6d9e6269c0f70a85368 | JavaScript | 3,211 | 118 | var webdriver_chrome = require('selenium-webdriver/chrome');
var webdriver = require('selenium-webdriver');
var until = webdriver.until;
var should = require('should');
var express = require("express");
var path = require("path");
var config = require('./config.js');
var app = express();
describe('Earthquake USGS Con... |
b129ed5e96ba66551b810ba11cf9e67cbf438a0193d54babe85b4aefcd76a4b2 | JavaScript | 3,234 | 77 | import { handleActions } from 'redux-actions';
import { defaultWdcAttrs, phases } from '../utils/consts';
// The redux reducers, which create the next state object
// from the payload of any given action.
// More info can be found here:
// http://redux.js.org/docs/basics/Reducers.html
// info on the spread operator us... |
8bf3731f51ce2265f5270906336c0fc59e2067aa539950e9aa2ad15c99ea38ba | JavaScript | 3,241 | 136 | define( [
"./core",
"./core/toType",
"./var/rcheckableType",
"./var/isFunction",
"./core/init",
"./traversing", // filter
"./attributes/prop"
], function( jQuery, toType, rcheckableType, isFunction ) {
"use strict";
var
rbracket = /\[\]$/,
rCRLF = /\r?\n/g,
rsubmitterTypes = /^(?:submit|button|image|reset|f... |
601b2acaa447f41e0887640d9e3499b83b7b94691770b8ba76a7e9a618bc294a | JavaScript | 3,262 | 119 | var webdriver_chrome = require('selenium-webdriver/chrome');
var webdriver = require('selenium-webdriver');
var until = webdriver.until;
var should = require('should');
var express = require("express");
var path = require("path");
var config = require('./config.js');
var app = express();
describe('Earthquake Multitab... |
a876e35ddec3d34347ceefef6b43d78d1fd58cb84ee413b087470ec33f01dd61 | JavaScript | 3,271 | 141 | define( [
"../core",
"../core/access",
"../core/nodeName",
"./support",
"../var/rnothtmlwhite",
"../selector"
], function( jQuery, access, nodeName, support, rnothtmlwhite ) {
"use strict";
var boolHook,
attrHandle = jQuery.expr.attrHandle;
jQuery.fn.extend( {
attr: function( name, value ) {
return access(... |
d520dc964dd645b52262a343aa315e92a51d2122891b57e8707cfda7b2904d6b | JavaScript | 3,292 | 125 | define( [
"../core",
"../css/finalPropName",
"../css"
], function( jQuery, finalPropName ) {
"use strict";
function Tween( elem, options, prop, end, easing ) {
return new Tween.prototype.init( elem, options, prop, end, easing );
}
jQuery.Tween = Tween;
Tween.prototype = {
constructor: Tween,
init: function( e... |
8223d671d9905e6845c6b7e308612663ab40b03430230623834f70c9cd9e2450 | JavaScript | 3,298 | 90 |
/*
* Supersubs v0.2b - jQuery plugin
* Copyright (c) 2008 Joel Birch
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*
* This plugin automatically adjusts submenu widths of suckerfish-style menus to that of
* th... |
9992e2419daee65e07168f87a9c96549603d5c27492f8cac62fd996c6e7a8bf5 | JavaScript | 3,337 | 129 | // Initialize a jQuery object
define( [
"../core",
"../var/document",
"../var/isFunction",
"./var/rsingleTag",
"../traversing/findFilter"
], function( jQuery, document, isFunction, rsingleTag ) {
"use strict";
// A central reference to the root jQuery(document)
var rootjQuery,
// A simple way to check for HTM... |
31ac5438c7fdf8ea31eb5d3993a6672846520d1fc1e7d0c4c57bc531b243d3f8 | JavaScript | 3,338 | 83 | import {Meteor} from "meteor/meteor";
import {join} from "path";
import {mkdirSync, existsSync} from "fs";
import os from "os";
import download from "download";
const configurationFile = {};
const defaultClasses = [{
"name": "33 Classes", "objects": [
{"label": "VOID", "color": "#CFCFCF"},
{"label"... |
d300f9c9daa66b57ce1c1e2453ba16c93a9144b9aa55d73c4d2f8e29f5d0d84a | JavaScript | 3,353 | 122 | var webdriver_chrome = require('selenium-webdriver/chrome');
var webdriver = require('selenium-webdriver');
var until = webdriver.until;
var should = require('should');
var express = require("express");
var path = require("path");
var config = require('./config.js');
var app = express();
// This test is currently ski... |
c8f900d750c6e7991c6e2c013104d3a59b3a24a726f2501366054a9423ba393f | JavaScript | 3,361 | 127 | /**
* --------------------------------------------------------------------------
* Bootstrap (v4.4.1): tools/sanitizer.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
const uriAttrs = [
'background',
... |
cc634e5e727c07e012427900927ccc32cbccf421828de698921b732b65a376d1 | JavaScript | 3,473 | 7 | /**
* Bootstrap.js by @mdo and @fat, extended by @ArnoldDaniels.
* plugins: bootstrap-fileupload.js
* Copyright 2012 Twitter, Inc.
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
!function(e){var t=function(t,n){this.$element=e(t),this.type=this.$element.data("uploadtype")||(this.$element.find(".thumbnail").length>... |
ff8ea12375708eef222530859ff0047595b493473a01539c71c44cb402a9a577 | JavaScript | 3,498 | 106 |
export function parse_filename(filename){
const date_candidates = filename.split('_')
let date = new Date(NaN)
let datestring = ''
for(const candidate of date_candidates) {
const splits = candidate.split('.')
if(splits.length == 3 && splits.every(value => /^\d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.