sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
068bb5436150435038fe16c705b670539bfcfdc2076ea4955b714389f3b728b0 | JavaScript | 7,576 | 199 | const assert = require('assert')
const fs = require('fs')
const path = require('path')
const repository = path.resolve(__dirname, '..', '..')
const source = fs.readFileSync(
path.join(repository, 'frontend/roots/tracking_utils.js'),
'utf8',
)
async function load_tracking_utils(){
return await import(`da... |
52f242e64dc8f2e5f6badf28f69eb237acea26c0096eadf9c12462b424867a07 | JavaScript | 7,603 | 13 | // Image Picker
// by Rodrigo Vera
//
// Version 0.3.1
// Full source at https://github.com/rvera/image-picker
// MIT License, https://github.com/rvera/image-picker/blob/master/LICENSE
// Image Picker
// by Rodrigo Vera
//
// Version 0.3.0
// Full source at https://github.com/rvera/image-picker
// MIT License, https://... |
a4eb9b917964fdee2d2f236385e508079156ba5b597d880ab0f13d6c7d267e01 | JavaScript | 7,637 | 3 | /*! markdown-it-emoji 1.4.0 https://github.com//markdown-it/markdown-it-emoji @license MIT */
/*! modified by Kartik Visweswaran for krajee-markdown-editor */
var mdEmojies,mdEmojiesShortcuts;!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&def... |
8c878ff1787e4004f7462d724227932cfd9ecffdab44d3a56ec8d68e1e9ec9aa | JavaScript | 7,640 | 298 | import should from 'should';
import * as consts from '../../utils/consts.js';
import * as simulatorActions from '../../actions/simulator_actions.js';
// Simulator Action Tests
describe("Simulator Action Creators", function() {
describe("setWdcShouldFetchAllTables", function() {
it("Should Create Right Action", f... |
5c58a7cd16fa95abf6711eac8045838e99fc3527b9ed5ae57e3e51c14b734820 | JavaScript | 7,704 | 286 | (function( $ ) {
'use strict';
var datatableInit = function(columns, data) {
console.log()
// Select datatable
var $table = $('#datatable-evaluation')
// initialize
var datatable = $table.dataTable({
columns: columns,
data: data,
dom: 'Bftip',
... |
faf73f3274d57e36cce11458eeeb23ff41db7ef6fc9dae1c48c9f0c280d0536b | JavaScript | 7,717 | 309 | // Jquery with no conflict
jQuery(document).ready(function($) {
// nivo slider ------------------------------------------------------ //
$('#slider').nivoSlider({
effect:'random', //Specify sets like: 'fold,fade,sliceDown'
slices:15,
animSpeed:500, //Slide transition speed
pauseTime:3000... |
dc643265369972e538c0100e1c0766e6f83e1348f3ada08e3e69cb78a82cfceb | JavaScript | 7,879 | 275 | /*!
* Bootstrap popover.js v4.4.1 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof ... |
59cb5434dbae9a59fa44a658fe7b2942315347d466f61f7621ce7f1f7e577f91 | JavaScript | 7,931 | 10 | /*!
* chartjs-plugin-zoom
* http://chartjs.org/
* Version: 0.5.0
*
* Copyright 2016 Evert Timberg
* Released under the MIT license
* https://github.com/chartjs/chartjs-plugin-zoom/blob/master/LICENSE.md
*/
!function e(t,o,n){function a(r,l){if(!o[r]){if(!t[r]){var m="function"==typeof require&&require;if(!l&&m)... |
8fd0d969aa38da542afc49fd09fb56105c0f626d81891fdb8c2353925ca955de | JavaScript | 8,025 | 78 | // Automatic project identifier generation
function generateProjectIdentifier(identifier, maxlength) {
var diacriticsMap = [
{'base':'a', 'letters':/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\... |
84b673ec0e6cca97879530e210018789c5dcb6e4522fa79dc1459ffa37080ccc | JavaScript | 8,082 | 195 | var create_article_btn = window.parent.document.getElementById('create_article_btn');
create_article_btn.style.display = 'none';
var user_articles_toggle = window.parent.document.getElementById('user_articles_toggle');
user_articles_toggle.style.display='inline-block';
var show_articles_btn = window.parent.document.ge... |
cc8d661ad6466255476d7e8ed6a57dd51d3fdeca6504859ac32103a1267c10ac | JavaScript | 8,086 | 355 |
(function( $ ) {
'use strict';
var EditableTable = {
options: {
addButton: '#addToTable',
submitButton: '#submitTable',
resetButton: '#resetTable',
table: '#datatable-editable',
dialog: {
wrapper: '#dialog',
cancelButton: '#dialogCancel',
confirmButton: '#dialogConfirm',
},
},
... |
cd69922f995c41ce9374ce1bc8ab98e76bbbcce245f71d0f366c7abc88fdf304 | JavaScript | 8,101 | 205 | /*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright å© 2008 George McGinley Smith
* All rights reserved.
* ... |
a790b941b320ad8fd43efc358c148f1ea4ccc8da579a012c14bf6ce5fdf82435 | JavaScript | 8,173 | 268 | /*!
* Bootstrap tab.js v4.4.1 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof modu... |
76367f9cbfbfe3c86bad9acc4fae2b9abbaf5ae170ffc1cfdf87c9bb1ca2187e | JavaScript | 8,241 | 325 | // Jquery with no conflict
jQuery(document).ready(function($) {
// nivo slider ------------------------------------------------------ //
//$('#slider').nivoSlider({
// effect:'slideInLeft', //Specify sets like: 'fold,fade,sliceDown'
// slices:15,
// animSpeed:500, //Slide transition speed
// ... |
0b20cabde32667ee009393ba238c758480c13236d7cd743b33c5238b75a67863 | JavaScript | 8,268 | 266 | /*!
Autosize v1.18.6 - 2014-03-13
Automatically adjust textarea height based on user input.
(c) 2014 Jack Moore - http://www.jacklmoore.com/autosize
license: http://www.opensource.org/licenses/mit-license.php
*/
(function ($) {
var
defaults = {
className: 'autosizejs',
id: 'autosizejs',
append: '',
callba... |
3ee72e783ac3ef6cda9efbb707fad4834949228ed3f0cef4a83f638df400abcb | JavaScript | 8,290 | 303 | /*!
* Bootstrap toast.js v4.4.1 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof mo... |
f1e57d7dbbaf9ff76820a724b41567e01d51f9eb57f5cf75fb64594ad9f03d74 | JavaScript | 8,321 | 216 | "use strict";
// MCP stdio server. No dependencies on purpose: the surface this needs is four
// JSON-RPC methods, and a CARLA build tool should not drag ~90 transitive
// packages behind it. The response shapes below match what the Python server
// emits, and tests/test_node_parity.py diffs the two.
//
// Two rules fo... |
12d93cc5d9c261b4a67d1a242219709241e62c8be2c843eca7fb1bc6e0cd803f | JavaScript | 8,638 | 330 | $(function () {
'use strict'
if (typeof bootstrap !== 'undefined') {
window.Toast = bootstrap.Toast
}
QUnit.module('toast plugin')
QUnit.test('should be defined on jquery object', function (assert) {
assert.expect(1)
assert.ok($(document.body).toast, 'toast method is defined')
})
QUnit.mod... |
f7cc242b96cd1c0f2f4746c84760110e11ac8950ac2ee13cf418bca85e2d95bc | JavaScript | 8,758 | 249 | /**
* jspsych-serial-reaction-time
* Josh de Leeuw
*
* plugin for running a serial reaction time task
*
* documentation: docs.jspsych.org
*
**/
jsPsych.plugins["serial-reaction-time"] = (function() {
var plugin = {};
plugin.info = {
name: 'serial-reaction-time',
description: '',
parameters: {... |
0f32c9e36d7e7d7388b4cfeedecc2b1e73f5c54549c6648abf67456c55fa93e5 | JavaScript | 8,871 | 350 | import should from 'should';
import * as consts from '../../utils/consts.js'
import reducer from '../../reducers/reducers.js';
// Validation Function Tests
describe("Reducer", function() {
const state = consts.defaultState;
describe("SET_WDC_ATTRS", function() {
it("Should Set wdcAttrs", function () {
co... |
63175cef1f2e045864a0b29c9332fac7bfca1094f5a3c1b706869f897880e99f | JavaScript | 8,908 | 326 | /**
* --------------------------------------------------------------------------
* Bootstrap (v4.4.1): scrollspy.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
import $ from 'jquery'
import Util from '... |
606cb713a7894389dcbabe8f180318fd43ecdbaa8f659a68f4d6fb66ebf8de01 | JavaScript | 8,931 | 1 | window.Modernizr=function(e,t,n){var r,o,i={},a=t.documentElement,c="modernizr",l=t.createElement(c),s=l.style,u=" -webkit- -moz- -o- -ms- ".split(" "),f="Webkit Moz O ms".split(" "),d="Webkit Moz O ms".toLowerCase().split(" "),p={},m=[],h=m.slice,v=function(e,n,r,o){var i,l,s,u,f=t.createElement("div"),d=t.body,p=d||t... |
bb5d3fbb9d70862d3b3c7e65569eaf96fc21fc404647b0bd99a3f108ed6026c8 | JavaScript | 8,966 | 6 | //CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/MicrosoftAjaxApplicationServices.js
//----------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------
// MicrosoftAjaxApplicationServices.js
Type._registe... |
762cdeb1938713353b20d66a07270f20f98438ad6f30eb63a0cee1128039d20d | JavaScript | 9,034 | 299 | import { eventNames, phases } from '../utils/consts';
import { validateData, validateSchema } from '../utils/validation.js';
import * as simulatorActions from './simulator_actions';
// Receiving Message Thunks
export function receiveMessage(payload) {
// Routes received messages to other thunks as necessary
return... |
117b9d2108979424d31100beb42ea5874a9356ce3aebdfb68063d0414b86ebc1 | JavaScript | 9,046 | 22 | /*!
AutoFill 1.2.1
©2008-2014 SpryMedia Ltd - datatables.net/license
*/
(function(o,j,m){var l=function(c,k){var h=function(d,b){if(!(this instanceof h))throw"Warning: AutoFill must be initialised with the keyword 'new'";if(!c.fn.dataTableExt.fnVersionCheck("1.7.0"))throw"Warning: AutoFill requires DataTables 1.7 or ... |
622f732f0c4602f619f822bb7ac7a5a8531641c8e6a69442e821eeff5ac1b2e5 | JavaScript | 9,108 | 255 |
function updateKNearestInfo(datao) {
/**
* This method updates the knearest information datatable.
*
* .. note: If the table does not exists it creates it by
* requesting first the columns and then the whole
* data. Otherwise, it just updates its content
* u... |
dfa8443dc1bc98aa2891fbd456f12a464a5d615d6e9cfeb0bf122a6e075e5619 | JavaScript | 9,165 | 399 | /* global Symbol */
// Defining this global in .eslintrc.json would create a danger of using the global
// unguarded in another place, it seems safer to define global only for this module
define( [
"./var/arr",
"./var/document",
"./var/getProto",
"./var/slice",
"./var/concat",
"./var/push",
"./var/indexOf",
".... |
ffd77536bc8072d1bb13fd5aee05da47dcbde803d07d9ae5c4aed46b22fdf434 | JavaScript | 9,190 | 220 | //CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/TreeView.js
function TreeView_HoverNode(data, node) {
if (!data) {
return;
}
node.hoverClass = data.hoverClass;
WebForm_AppendToClassName(node, data.hoverClass);
if (__nonMSDOMBrowser) {
node = node.childNodes[node.childNodes.length - ... |
41e49bbb455ddf7e84267cc169042eeed8ec0f4aae8f769940ae3f0bdf750a7b | JavaScript | 9,225 | 7 | /*
* Poshy Tip jQuery plugin v1.0
* http://vadikom.com/tools/poshy-tip-jquery-plugin-for-stylish-tooltips/
* Copyright 2010, Vasil Dinkov, http://vadikom.com/
*/
(function(e){var a=[],d=/^url\(["']?([^"'\)]*)["']?\);?$/i,c=/\.png$/i,b=e.browser.msie&&e.browser.version==6;function f(){e.each(a,function(){this.refre... |
02e2ec79fcd0150e662a34edeaba5dd108731c118c76a11db582702f8967f9f3 | JavaScript | 9,398 | 157 | /* Generated by build_demo.py. Do not edit by hand.
* Canned replies for the demo shim, in the shapes the Flask endpoints
* returned. The scores were produced by calculate_sub_scores() in
* app/services/myFirebase.py — the platform's own scoring function.
* Nothing here is fetched at runtime. */
window.DEMO_DATA = ... |
35e6ce54ce3941afb79a4784ebce24c50bbf452525d53ff4bb56c57195740b9a | JavaScript | 9,398 | 157 | /* Generated by build_demo.py. Do not edit by hand.
* Canned replies for the demo shim, in the shapes the Flask endpoints
* returned. The scores were produced by calculate_sub_scores() in
* app/services/myFirebase.py — the platform's own scoring function.
* Nothing here is fetched at runtime. */
window.DEMO_DATA = ... |
fde6f1f7fac2d2068f302f84fba0fba8b9e5189b482684147f2b881d229c9935 | JavaScript | 9,437 | 223 | import SseTool from "./SseTool";
import Paper from "paper";
import SseGlobals from "../../../common/SseGlobals";
export default class SsePointerTool extends SseTool {
constructor(editor) {
super(editor);
this.minDistance = 0;
this.bindCallbacks();
}
onKeyDown(event) {
if ... |
9db36582af5ec9f7c423ab2026103344d78d6ca9bfadc31ad623b69ad99de7c7 | JavaScript | 9,617 | 2 | function jsToolBar(e){if(!document.createElement){return}if(!e){return}if(typeof document["selection"]=="undefined"&&typeof e["setSelectionRange"]=="undefined"){return}this.textarea=e;this.editor=document.createElement("div");this.editor.className="jstEditor";this.textarea.parentNode.insertBefore(this.editor,this.texta... |
f089bfa255f6b90b60215c14e134741d97930a4aa2c26b5126f178fbe80de0c7 | JavaScript | 9,689 | 28 | /*
* jQuery Nivo Slider v2.4
* http://nivo.dev7studios.com
*
* Copyright 2011, Gilbert Pellegrom
* Free to use and abuse under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function(a){var A=function(s,v){var f=a.extend({},a.fn.nivoSlider.defaults,v),g={currentSlide:0,currentImage:""... |
32230dc5f2a9bc1e52d40b0c3bd5774140f4ec1f15be594d36d9bea3b99bfede | JavaScript | 9,805 | 23 | /*!
ColVis 1.1.1
©2010-2014 SpryMedia Ltd - datatables.net/license
*/
(function(j,i,k){j=function(d){var e=function(a,b){(!this.CLASS||"ColVis"!=this.CLASS)&&alert("Warning: ColVis must be initialised with the keyword 'new'");"undefined"==typeof b&&(b={});d.fn.dataTable.camelToHungarian&&d.fn.dataTable.camelToHungari... |
994f352d5ad45456722842eee65ff4cf1c40dd6aca7997e4b0287e462e8e229e | JavaScript | 9,995 | 249 |
RootsTraining = class extends BaseTraining {
static active_run_id = undefined
static terminal_states = ['completed', 'cancelled', 'failed']
static training_states = {}
static imported_labels = new Map()
static clear_imported_labels(){
this.imported_labels = new Map()
$('#training-... |
865f970bfa4ae6668c5daf0df9adcb4e0d17458309e2fdcc75461022e1bffa38 | JavaScript | 10,095 | 260 |
RootsFileInput = class extends BaseFileInput{
static uploaded_files = new Map()
static show_file_error(error){
console.error(error)
$('body').toast({
message: RootSecurity.error_message(error, 'The selected files could not be loaded.'),
class: 'error', displayTime: 0, ... |
a165e4a5afb2e5df07df765a64fc5529b10ba8dec960aa39286b9dd9e52fc823 | JavaScript | 10,114 | 285 | function updateDemographics(datao) {
/**
* This method updates the demographics datatable.
*
* Parameters
* ----------
*
*
*/
// Information
console.log("Updating demographics...")
// Create url
//var url = "/get_demographics?idxs=" + datao.indexes.toString();
... |
33d674b490529d8a4840674ae312cfa9ffba6d4437a94810e5c29f81412fc1f6 | JavaScript | 10,166 | 254 | "use strict";
// Persisted paths for the skill library — the Node half.
//
// A faithful port of src/carla_agentic_tools/config.py: same file, same
// precedence, same structural markers, same validators. Both servers read and
// write one config, so a path recorded through either is visible to the other,
// and tests/... |
988e3ae9af161bc8fd8ff598513cf1584e666124602ea68fdd47e78d9c8dcc62 | JavaScript | 10,245 | 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=5;t.widget("ui.slider",t.ui.mouse,{version:"1.10.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,va... |
7b1c274993cb7833cb6658f5fee12b8f15cfcf5da25af8ef3dee948e12fdec40 | JavaScript | 10,337 | 256 | import SseTool from "./SseTool";
import Paper from "paper";
import simplify from "simplify-js";
export default class SsePolygonTool extends SseTool {
constructor(editor) {
super(editor);
this.editingPath = null; // The currently editing path
this.readyToClose = null; // True if the mouse po... |
31596ea7090229e9cdc8ff3c939f85fc811a04936927581be0f4b6da71694106 | JavaScript | 10,403 | 402 | /**
* --------------------------------------------------------------------------
* Bootstrap (v4.4.1): collapse.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
import $ from 'jquery'
import Util from '.... |
a973ec76dfd760b549206f7b26e5dcef4021b98bfec8e943d22977e0a2e7e27b | JavaScript | 10,432 | 240 | // Download page: show when the nightly was last built successfully.
async function getLastWorkflowRun(owner, repo, workflowFileName) {
const url = `https://api.github.com/repos/${owner}/${repo}/actions/workflows/${workflowFileName}/runs?status=success&per_page=1`;
try {
const response = await fetch(url... |
4fe11e0aa750d13ee3cb9ff021ae8c7edd525f810425faca53c06fc95ee24844 | JavaScript | 10,485 | 25 | /*!
Scroller 1.2.2
©2011-2014 SpryMedia Ltd - datatables.net/license
*/
(function(m,n,k){var l=function(e){var g=function(a,b){!this instanceof g?alert("Scroller warning: Scroller must be initialised with the 'new' keyword."):("undefined"==typeof b&&(b={}),this.s={dt:a,tableTop:0,tableBottom:0,redrawTop:0,redrawBotto... |
949d83981b60d0b01aef3099755cc4aa3245d7c6887682484dfd48ef0e49e247 | JavaScript | 10,539 | 280 | //CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/SmartNav.js
var snSrc;
if ((typeof(window.__smartNav) == "undefined") || (window.__smartNav == null))
{
window.__smartNav = new Object();
window.__smartNav.update = function()
{
var sn = window.__smartNav;
var fd;
document.detachEvent(... |
08e3fa6d6061b94e9836c0fd3af79d627b168dae62c9a21c27cd078b902c4035 | JavaScript | 10,566 | 623 | // Popover
(function( $ ) {
'use strict';
if ( $.isFunction( $.fn['popover'] ) ) {
$( '[data-toggle=popover]' ).popover();
}
}).apply( this, [ jQuery ]);
// Tooltip
(function( $ ) {
'use strict';
if ( $.isFunction( $.fn['tooltip'] ) ) {
$( '[data-toggle=tooltip],[rel=tooltip]' ).tooltip({ container: 'bod... |
fa98ba83daaef5abf23369799bfa6e5dfbade13f46800f32dffcbeb3fd57f813 | JavaScript | 10,891 | 418 | 'use strict';
const path = require('path')
const express = require('express');
//const bodyParser = require('body-parser');
const hbs = require('hbs')
//const util = require('util')
var retOut = 'null'
//const express = require('express');
const app = express();
const viewsPath = path.join(__dirname,'../..... |
29df9ab915d97c30986610fad76db8bb8419a812da2bbf992bca6b25aa5e3fde | JavaScript | 10,997 | 399 | define( [
"./core",
"./var/isFunction",
"./var/slice",
"./callbacks"
], function( jQuery, isFunction, slice ) {
"use strict";
function Identity( v ) {
return v;
}
function Thrower( ex ) {
throw ex;
}
function adoptValue( value, resolve, reject, noValue ) {
var method;
try {
// Check for promise aspect fi... |
c254b962aee6c85357049e76df97088a025338c26a287792a87d5050d4890b79 | JavaScript | 11,006 | 26 | /*!
ColReorder 1.1.2
©2010-2014 SpryMedia Ltd - datatables.net/license
*/
(function(n,q,r){function o(b){for(var f=[],a=0,e=b.length;a<e;a++)f[b[a]]=a;return f}function l(b,f,a){f=b.splice(f,1)[0];b.splice(a,0,f)}function p(b,f,a){for(var e=[],c=0,d=b.childNodes.length;c<d;c++)1==b.childNodes[c].nodeType&&e.push(b.ch... |
caec328985b58478430a2289e27dd8e5f15c7a8fa75afa07db65e68ca874c1b1 | JavaScript | 11,097 | 1 | (function(e){"use strict";var t=typeof window==="undefined"?null:window;if(typeof define==="function"&&define.amd){define(function(){return e(t)})}else if(typeof module!=="undefined"){module.exports=e(t)}else{t.DOMPurify=e(t)}})(function e(t){"use strict";var r=function(t){return e(t)};r.version="0.7.4";if(!t||!t.docum... |
093efecc1dbbf57cf2ccfa090d077c0c3ec570fe06a4fd7b85bfc0c9f742c707 | JavaScript | 11,177 | 374 | /* ***** BEGIN LICENSE BLOCK *****
* This file is part of DotClear.
* Copyright (c) 2005 Nicolas Martin & Olivier Meunier and contributors. All
* rights reserved.
*
* DotClear is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free... |
1b15864cc34a0d93214bfe0bb980c1133ab5a2292be3f1cd510bbb91c3c694a1 | JavaScript | 11,363 | 246 | #!/usr/bin/env node
"use strict";
// `npm test`. Exercises the Node server in-process: the config layer's
// precedence and validation, CARLA detection, and the JSON-RPC shapes a client
// depends on. No CARLA and no network needed.
//
// Cross-language agreement with the Python server is checked separately, by
// test... |
cd10d6121af89888b4bf22da3bc5247dbcd54dd4712543cc0b95acc2c9f37dbe | JavaScript | 11,772 | 230 | const en = {
welcomePage: {
welcome: "Welcome!",
clickNext: "Click on <strong>Next</strong> to continue."
},
task: {
ready: "If you are ready, press <strong>any key</strong> to start the task!",
continue: "If you are ready, press <strong>any key</strong> to continue the task!... |
a3c8861a739570af8c41952fe14131101544dde19ae6fbc840e3dcacf63f2fa4 | JavaScript | 12,017 | 233 | (function($) {
/* Modified version to trigger a caallback function when done loading
https://github.com/ahmednuaman/tweet/commit/af9a64f1e0bda03e2847ddac8a4bb38f859d395c
*/
$.fn.tweet = function(o){
var s = $.extend({
username: ["seaofclouds"], // [string] required, unless you want to... |
45a6271567e5c114ad7d5ce5d7bb639ba58794212540415eb93fd694bcf1d613 | JavaScript | 12,123 | 389 | /*!
* Bootstrap scrollspy.js v4.4.1 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeo... |
734278fa1e84afcc43539549e34a884f0f0df933da295f13406ebc606260f8ce | JavaScript | 12,470 | 342 | /*
* 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... |
84c6005a640e9960f42eb9c2826befd89678ee0b0206db31e6934ae03e690b97 | JavaScript | 12,484 | 403 | import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import should from 'should';
import jsdom from 'jsdom';
import sinon from 'sinon';
import * as consts from '../../utils/consts.js';
import * as simulatorActions from '../../actions/simulator_actions.js';
import * as messagingActions f... |
af715fed6a09690ef8a75bda5ec37ce89219a9d39ec491109213a0421dd94989 | JavaScript | 12,643 | 489 | define( [
"./core",
"./core/isAttached",
"./var/concat",
"./var/isFunction",
"./var/push",
"./var/rcheckableType",
"./core/access",
"./manipulation/var/rtagName",
"./manipulation/var/rscriptType",
"./manipulation/wrapMap",
"./manipulation/getAll",
"./manipulation/setGlobalEval",
"./manipulation/buildFragme... |
0a3f392545288711cdef6f232a75f1360485e1240459e6aaee843cbb5851ad0a | JavaScript | 12,713 | 1 | Search.setIndex({docnames:["SVM","example/example","index","modules","permutation_hypothesis_test","persistence_statistics_per_quadrant","persistent_homology_SEDT","plots","preprocessing_images","run_process","utils","visualise"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,... |
23487bc003b417045cc247007bcf6743c9fcdf49e5a7b3dc09f58ce19d395e57 | JavaScript | 12,746 | 1 | Search.setIndex({docnames:["dev/index","index","install","overview","substitutions","usage/command","usage/enrichment","usage/extended","usage/index","usage/started"],envversion:54,filenames:["dev/index.rst","index.rst","install.rst","overview.rst","substitutions.rst","usage/command.rst","usage/enrichment.rst","usage/e... |
5e1f4aeb3292a1db03f62f7d96f42311da53716020f17e96d5aa0ac7b6c38d32 | JavaScript | 12,824 | 391 | /*
StyleMapGAN
Copyright (c) 2021-present NAVER Corp.
This work is licensed under the Creative Commons Attribution-NonCommercial
4.0 International License. To view a copy of this license, visit
http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to
Creative Commons, PO Box 1866, Mountain View, CA 94042, US... |
fc016c03ae7bad05a183833f3e729a0924f4c7b797d2206d4f3aeb8e0919c88d | JavaScript | 12,825 | 6 | //CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/MicrosoftAjaxNetwork.js
//----------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------
// MicrosoftAjaxNetwork.js
Type._registerScript("MicrosoftAjaxNe... |
512913731929167fca685ce407a84226a6f1c9b304aabb7f7d61a679459046fb | JavaScript | 13,276 | 310 | "use strict";
// Skill discovery and the four things the tools do with a skill. The Node half
// of src/carla_agentic_tools/server.py; tests/test_node_parity.py compares the
// two servers' answers.
const fs = require("fs");
const path = require("path");
const { spawnSync } = require("child_process");
const cfg = requ... |
8b3b8ef0d1677c2b4848aa4f873df8420302c83745bd2168edeffe720b96de92 | JavaScript | 13,345 | 498 | /*
* 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... |
768338634aff670534b84b08194b0cbcb8957ccaa4258a9322a945eebd7b5b50 | JavaScript | 13,669 | 442 | /*!
* Bootstrap collapse.js v4.4.1 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof... |
724a393dfa33fbc7db826773df9ad83fc457768d5145b876950537737a79e0c7 | JavaScript | 13,828 | 484 | define( [
"./core",
"./core/access",
"./core/camelCase",
"./var/rcssNum",
"./css/var/rnumnonpx",
"./css/var/cssExpand",
"./css/var/getStyles",
"./css/var/swap",
"./css/curCSS",
"./css/adjustCSS",
"./css/addGetHookIf",
"./css/support",
"./css/finalPropName",
"./core/init",
"./core/ready",
"./selector" /... |
980986460c564c7f51f69078798c2b822a457f38c6236c610b19fd3f5a37b944 | JavaScript | 13,975 | 387 | /* Set the defaults for DataTables initialisation */
$.extend( true, $.fn.dataTable.defaults, {
"sDom": "<'row'<'col-sm-12'<'pull-right'f><'pull-left'l>r<'clearfix'>>>t<'row'<'col-sm-12'<'pull-left'i><'pull-right'p><'clearfix'>>>",
"sPaginationType": "bs_normal",
"oLanguage": {
"sLengthMenu": "Show _ME... |
4157721884e8d6ed36cfb2b422a77ad2a4fd24ab8b1e33bcde0d5589799723d0 | JavaScript | 14,128 | 30 | /*!
FixedColumns 3.0.2
©2010-2014 SpryMedia Ltd - datatables.net/license
*/
(function(q,r){var o=function(d){var k=function(a,b){var c=this;if(!this instanceof k)alert("FixedColumns warning: FixedColumns must be initialised with the 'new' keyword.");else{"undefined"==typeof b&&(b={});d.fn.dataTable.camelToHungarian&&... |
a270928971ea666a2e0eb9c840fbd08474eac9ff4f3968be694d24fe5654bfbc | JavaScript | 14,394 | 400 | (function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery','fyp/fyp2020-oss1017/main/pkgname/dashboard/assets/vendor/jquery-datatables-bs3/assets/js/datatables'], factory);
}
else {
factory(jQuery);
}
}(function ($) {
/* Set the defaults for DataTables i... |
c67a802ec53700c0af5dbc4ef39d2808808ed45eb7a9c44b1250212de4f2b3f5 | JavaScript | 14,697 | 307 | /*
Quicksand 1.2.2
Reorder and filter items with a nice shuffling animation.
Copyright (c) 2010 Jacek Galanciak (razorjack.net) and agilope.com
Big thanks for Piotr Petrus (riddle.pl) for deep code review and wonderful docs & demos.
Dual licensed under the MIT and GPL version 2 licenses.
http://github.com/jquery/jq... |
22654ed3b03775349b3258a048ed564d3d6dd847f698b5b1d1fe3d7a2d87be07 | JavaScript | 14,716 | 524 | import React from 'react';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import should from 'should';
import SimulatorNavbar from '../../components/SimulatorNavbar.jsx';
import AddressBar from '../../components/AddressBar.jsx';
import StartConnectorGroup from '../../components/StartConnectorGroup.jsx';... |
b8a8cce869526e8b4dd24b32cecad7f8c4e3c28dea1b87c5b6703b4b686b1ffc | JavaScript | 15,049 | 548 | /**
* --------------------------------------------------------------------------
* Bootstrap (v4.4.1): dropdown.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
import $ from 'jquery'
import Popper from ... |
2fb226a3ba3640bb1e9df78066ccb0ba2eb8b3386f5100ed6f7f17f9494323ea | JavaScript | 15,209 | 414 | /*
* Poshy Tip jQuery plugin v1.0
* http://vadikom.com/tools/poshy-tip-jquery-plugin-for-stylish-tooltips/
* Copyright 2010, Vasil Dinkov, http://vadikom.com/
*/
(function($) {
var tips = [],
reBgImage = /^url\(["']?([^"'\)]*)["']?\);?$/i,
rePNG = /\.png$/i,
ie6 = $.browser.msie && $.browser.version == 6;
... |
b694e7c330a9e95312752bf70299ec9edfcc421f0e012415426cba06c83537ee | JavaScript | 15,209 | 36 | /*
RequireJS 2.1.10 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
Available via the MIT or new BSD license.
see: http://github.com/jrburke/requirejs for details
*/
var requirejs,require,define;
(function(ca){function G(b){return"[object Function]"===N.call(b)}function H(b){return"[object Array]"=... |
d84bac3710c2842dc8d5d5ae6e324007443cbd8ae26b909dd89bc2bdc31c8561 | JavaScript | 15,624 | 46 | /*
* FancyBox - jQuery Plugin
* Simple and fancy lightbox alternative
*
* Examples and documentation at: http://fancybox.net
*
* Copyright (c) 2008 - 2010 Janis Skarnelis
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is grea... |
fedbe8d8a403997653765fdb4e41ab120156f14df4cf5347d0819eda2475322a | JavaScript | 15,694 | 366 | /*
Created by Teodora Vekony (vekteo@gmail.com)
Lyon Neuroscience Research Center
Universite Claude Bernard Lyon 1
Github:https://github.com/vekteo/ASRT_ultra_fast_consolidation
*/
/*************** VARIABLES ***************/
let timeline = []; //create timeline
const instruction = {
type: "instructions",
p... |
b416c255b9f5c6a3f1a96b9723c5d1b9436636bd797f0267905fe73d9d845274 | JavaScript | 15,806 | 11 | /**
* Isotope v1.5.12
* An exquisite jQuery plugin for magical layouts
* http://isotope.metafizzy.co
*
* Commercial use requires one-time license fee
* http://metafizzy.co/#licenses
*
* Copyright 2012 David DeSandro / Metafizzy
*/
(function(a,b,c){"use strict";var d=a.document,e=a.Modernizr,f=function(a){retur... |
c78267b7ffa685883437a53ae5e1505302ac17ee5c7f9cb1f71d4b9d4f26f7da | JavaScript | 15,937 | 637 | // from http://bl.ocks.org/mbostock/4349187
// Sample from a normal distribution with mean 0, stddev 1.
// Colorscales in plotly
// https://plotly.com/python/builtin-colorscales/
// Buttons examples in plotly
// https://plotly.com/javascript/custom-buttons/
// Tricks to improve plotly performance.
// https://www.som... |
b8960782c368c2acbb529924720c7d9f1f42065ac130213f8180eb6a66724e17 | JavaScript | 16,543 | 608 | /**
* --------------------------------------------------------------------------
* Bootstrap (v4.4.1): carousel.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
import $ from 'jquery'
import Util from '.... |
d46bdf61f3513fedb197a4a8ecf75e874a02ee1f19a497ea07329b577aecbfcf | JavaScript | 16,576 | 387 | $(function () {
'use strict'
QUnit.module('button plugin')
QUnit.test('should be defined on jquery object', function (assert) {
assert.expect(1)
assert.ok($(document.body).button, 'button method is defined')
})
QUnit.module('button', {
beforeEach: function () {
// Run all tests in noConfl... |
711280eb440ed9991ee6045c528857c6691c128d178843fe1a18c84adcd73cd8 | JavaScript | 16,631 | 590 | /* Redmine - project management software
Copyright (C) 2006-2013 Jean-Philippe Lang */
function checkAll(id, checked) {
if (checked) {
$('#'+id).find('input[type=checkbox]').attr('checked', true);
} else {
$('#'+id).find('input[type=checkbox]').removeAttr('checked');
}
}
function toggleCheckboxesByS... |
a2885dd80ac263483013f239e0f87f365b641d0faf232960972f8a1f63894d44 | JavaScript | 16,868 | 363 | // Based on three.js PCDLoader class (only support ASCII PCD files)
export default class SsePCDLoader {
constructor(THREE) {
THREE.PCDLoader = function (serverMode) {
this.serverMode = serverMode;
};
THREE.PCDLoader.prototype = {
constructor: THREE.PCDLoader,
... |
c54a4e13c4a9d9ee5314e413ad46070e52b0e80222aec11e72ee0343a0635725 | JavaScript | 17,053 | 616 | /**
* --------------------------------------------------------------------------
* Bootstrap (v4.4.1): modal.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
import $ from 'jquery'
import Util from './ut... |
9733d2066d476045678a76b943b7666ad83c3802a3a57b46e4472c16d6dcdcd2 | JavaScript | 17,186 | 450 | $(".alert").hide();
var div_messages = parent.document.getElementById('bad_request_message');
div_messages.innerHTML = "";
function loadUID(){
var uid = localStorage.getItem('_uid');
if (!uid) return false;
uid = atob(uid);
uid = JSON.parse(uid);
return uid
}
const UID = loadUID();
$(document).ready(func... |
bc241b98510f77ffaefaf2ca5b91aef9dba08de9a3ee5d19692ce6b51c835a4d | JavaScript | 17,410 | 5 | /*! jQuery UI - v1.10.4 - 2014-04-07
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
(function(t){function e(t){return parseInt(t,10)||0}function i(t){return!isNaN(parseInt(t,10))}t.widget("ui.resizable",t.ui.mouse,{version:"1.10.4",widgetEventPrefix:"resize",options:{a... |
77b1e9281ce1c7467ced2d66242d2b682d30ec33b41c0cbd8ad0155b351703f0 | JavaScript | 17,447 | 471 | $(function () {
'use strict'
QUnit.module('popover plugin')
QUnit.test('should be defined on jquery object', function (assert) {
assert.expect(1)
assert.ok($(document.body).popover, 'popover method is defined')
})
QUnit.module('popover', {
beforeEach: function () {
// Run all tests in noC... |
c8b523ad716f87d29f47940d4108d2ddbebc073e87f72eebd97c324a2896317c | JavaScript | 17,455 | 702 | define( [
"./core",
"./core/camelCase",
"./var/document",
"./var/isFunction",
"./var/rcssNum",
"./var/rnothtmlwhite",
"./css/var/cssExpand",
"./css/var/isHiddenWithinTree",
"./css/var/swap",
"./css/adjustCSS",
"./data/var/dataPriv",
"./css/showHide",
"./core/init",
"./queue",
"./deferred",
"./traversin... |
9e1575d88d701ad4399bc660a4ebc2d9124df8141ff7f6a058d852360f6d36c9 | JavaScript | 18,094 | 480 | /* Modernizr 2.8.3 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-flexbox-flexboxlegacy-csstransforms-csstransforms3d-shiv-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes-css_overflow_scrolling-load
*/
;
window.Modernizr = (function( window, document, undefined ) {
var ve... |
1879a46a6733f786187718ca27b279c9127e05aa9b7d14cbd2590881749a1c48 | JavaScript | 18,145 | 2 | /*! markdown-it-checkbox 1.1.1 https://github.com//mcecot/markdown-it-checkbox @license MIT */
!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var r;r="undefined"!=typeof window?window:"undefined"!=typeof global?glo... |
ac95208bf3ceffb65b3edcbc882db3246cfee8f69cd10840dc95da5337d19cfa | JavaScript | 18,318 | 435 | RootPipeline = class {
static active_run_id = undefined
static terminal_states = ['completed', 'completed_with_errors', 'cancelled', 'failed']
static phase = 'idle'
static upload_cancel_requested = false
static current_upload_request = undefined
static upload_rows = new Map()
static upload_f... |
489ec221e1e553f879c04c77418b2d75cce60ac87c5e36eb65cd5a4039c2abd9 | JavaScript | 18,560 | 5 | /*! jQuery UI - v1.10.4 - 2014-04-07
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
(function(t){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"a... |
93e32f2e75550feee3823036aff05533ddd3d8caef0012cfa53a83364a2367f2 | JavaScript | 18,754 | 616 | /*!
* Bootstrap dropdown.js v4.4.1 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof... |
0dcd27ce86640e5a032a5b141069c36db6fe3763ed83d9230f6cf2641941180b | JavaScript | 18,838 | 716 | /* Redmine - project management software
Copyright (C) 2006-2013 Jean-Philippe Lang */
$.noConflict();
jQuery( document ).ready(function( $ )
{
function checkAll(id, checked)
{
if (checked) {
$('#' + id).find('input[type=checkbox]').attr('checked', true);
} else {
$('#' + id).find('input[t... |
9227838ad9704240186ecca6c20ea9f02c18966fb3ce5911279692523c91d9b3 | JavaScript | 19,214 | 794 | /**
* --------------------------------------------------------------------------
* Bootstrap (v4.4.1): tooltip.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
import {
DefaultWhitelist,
sanitizeHtml... |
2f316a572cae755a88f1880d10dad7a709d32eaeb3ceea380b38050d40c306e9 | JavaScript | 19,270 | 399 | const en = {
welcomePage: {
welcome: "Welcome!",
clickNext: "Click on <strong>Next</strong> to continue!"
},
instructions0back: {
letter: "In this task, <strong>letters</strong> will appear on the screen consecutively.",
yourTask1: "Your task will be <strong>to press the key ... |
96f35c1cbad97591a4916c35dd0816c9a5e11d0e500fec9c812e9fd9a90a3e64 | JavaScript | 19,360 | 546 | var user_articles_toggle = document.getElementById("user_articles_toggle");
user_articles_toggle.style.display = "none";
var provider = new firebase.auth.GoogleAuthProvider();
var ui = new firebaseui.auth.AuthUI(firebase.auth());
ui.start("#firebaseui-auth-container", {
signInOptions: [
// List of OAuth provider... |
c8c0ac1d22b2cfeb1cb0fddbab12eb02653145e858e7c1c5b6908c486622d926 | JavaScript | 19,381 | 546 | var user_articles_toggle = document.getElementById("user_articles_toggle");
user_articles_toggle.style.display = "none";
var provider = new firebase.auth.GoogleAuthProvider();
var ui = new firebaseui.auth.AuthUI(firebase.auth());
ui.start("#firebaseui-auth-container", {
signInOptions: [
// List of OAuth provider... |
b00691b149731b95a20efa947f8f2ab1d8374836038e187dcf468df2fbec93f8 | JavaScript | 19,841 | 3 | /*! Sizzle v2.3.4 | (c) JS Foundation and other contributors | js.foundation */
!function(e){var t,n,r,i,o,u,l,a,c,s,f,d,p,h,g,m,y,w,v,b="sizzle"+1*new Date,N=e.document,x=0,C=0,E=ae(),D=ae(),S=ae(),A=ae(),T=function(e,t){return e===t&&(f=!0),0},L={}.hasOwnProperty,I=[],q=I.pop,B=I.push,R=I.push,$=I.slice,k=function(e,... |
f5ed9af7e1823e4bae4a32bb9f71fc8b798d70a8334d4954937053cb330c2da6 | JavaScript | 20,028 | 6 | //CdnPath=http://ajax.aspnetcdn.com/ajax/4.5.1/1/MicrosoftAjaxGlobalization.js
//----------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------
// MicrosoftAjaxGlobalization.js
Type._registerScript("Mic... |
1bd4ef45a3a52e7e4d44a4e3f6efa1176397582a8a932ba503cf3eff6fe1142f | JavaScript | 20,035 | 518 | $(function () {
'use strict'
QUnit.module('tabs plugin')
QUnit.test('should be defined on jquery object', function (assert) {
assert.expect(1)
assert.ok($(document.body).tab, 'tabs method is defined')
})
QUnit.module('tabs', {
beforeEach: function () {
// Run all tests in noConflict mode ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.