sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
8c6ad6888b3ad5ef6d5670bd4ae832b3a0ac408693f3668e2896267fdad2a990 | JavaScript | 4,600 | 135 | import assert from 'assert/strict';
import { MeshoptClusterizer as clusterizer } from './meshopt_clusterizer.js';
process.on('unhandledRejection', (error) => {
console.log('unhandledRejection', error);
process.exit(1);
});
const cubeWithNormals = {
vertices: new Float32Array([
// n = (0, 0, 1)
-1.0, -1.0, 1.0,... |
ce0eed0c09604cb9bcddb54bdde1e7a412639e1260462d0c139d2b0a1a210dc5 | JavaScript | 4,658 | 146 | const express = require('express');
const multer = require('multer');
const path = require('path');
const { promisify } = require('util');
const mkdirp = promisify(require('mkdirp'));
const fs = require('fs');
const pify = require('util').promisify;
const rmrf = pify(require('rimraf'));
const { extractTar } = require('... |
37b91137d7e30fa176e032e06861b9e3d5a6b3ea41fa733fe2760a8a04ce710b | JavaScript | 4,731 | 1 | $wnd.jsme.runAsyncCallback10('var Z9="data-selenium-id";function $9(){this.ob=Wx("file");this.ob[pi]="gwt-FileUpload"}y(407,388,An,$9);_.Ie=function(a){xF(this,a)};function a$(a){var b=$doc.createElement(Ii);Jr(Fl,b.tagName);this.ob=b;this.b=new C2(this.ob);this.ob[pi]="gwt-HTML";B2(this.b,a,!0);K2(this)}y(411,412,An,a... |
49eb6eb816d6b821292929cfbe248b6689d1793a17faefd128c2ffdf9e1d2b0c | JavaScript | 4,731 | 164 | /**
* A helper class that manages a pool of objects with animatable states, such as
* decorations.
*/
/**
* A pool of objects with animatable states. You manage the appearance of
* objects by calling show() and hide(). The animation pool keeps track of
* objects that are in the process of being animated in and o... |
c792053091fa0122da45974208ee47f99d313b732d27ab67f966546c34e5fdc7 | JavaScript | 4,731 | 1 | $wnd.jsme.runAsyncCallback10('var a$="data-selenium-id";function b$(){this.ob=Xx("file");this.ob[pi]="gwt-FileUpload"}y(407,388,Bn,b$);_.Ie=function(a){yF(this,a)};function c$(a){var b=$doc.createElement(Ii);Kr(Gl,b.tagName);this.ob=b;this.b=new D2(this.ob);this.ob[pi]="gwt-HTML";C2(this.b,a,!0);L2(this)}y(411,412,Bn,c... |
013698d10340678e5e0268ecd4a25e50f76e53924e58f3610b4b030f0ed2a461 | JavaScript | 4,763 | 1 | $wnd.jsme.runAsyncCallback10('var G9="data-selenium-id";function H9(){this.ob=Px("file");this.ob[si]="gwt-FileUpload"}y(404,385,Zm,H9);_.Ie=function(a){aF(this,a)};function I9(a){var b=$doc.createElement(Li);Ir(El,b.tagName);this.ob=b;this.b=new i2(this.ob);this.ob[si]="gwt-HTML";h2(this.b,a,!0);q2(this)}y(408,409,Zm,I... |
7f0ee85a91c1b058cbdbbea56886093b9881b244ed9ba2fc960a99a05d853d95 | JavaScript | 4,763 | 1 | $wnd.jsme.runAsyncCallback10('var E9="data-selenium-id";function F9(){this.ob=Px("file");this.ob[si]="gwt-FileUpload"}y(404,385,Zm,F9);_.Ie=function(a){aF(this,a)};function G9(a){var b=$doc.createElement(Li);Ir(El,b.tagName);this.ob=b;this.b=new h2(this.ob);this.ob[si]="gwt-HTML";g2(this.b,a,!0);p2(this)}y(408,409,Zm,G... |
843e7de6a167abee29a92b0f030e0a0904873f9a4818cca4584a599b0280bb29 | JavaScript | 4,773 | 168 | /* eslint-disable camelcase */
const axios = require('axios');
const fs = require('fs');
const { parse } = require('csv-parse/sync'); // eslint-disable-line
const path = require('path');
const winston = require('winston');
const config = require('./config');
const logger = winston.createLogger({
level: 'info',
tra... |
20b0a2b62d93f48c319769e0a8140427ba1b8a8d0fd4035900da880a42e9bcf5 | JavaScript | 4,786 | 109 | // dynamic landmark-point identity for the Facial Anthropometrics workspace -
// unlike the Patients workspace's fixed 3-4 named landmarks (lib/landmarks.js's
// LANDMARK_NAMES), a measurement here can reference any number of arbitrary
// points, so identity has to be generated, not a constant list.
// the highest "pN... |
f77af4979856b299015c79d6814ad021006df9737d154614dc4ec7992855b403 | JavaScript | 5,085 | 141 | // This optional code is used to register a service worker.
// register() is not called by default.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on subsequent visits to a p... |
8509793af13370560e27a5b1f30f02b1b460830e5e89cee85c92f1d928840e5f | JavaScript | 5,115 | 1 | $wnd.jsme.runAsyncCallback10('var k9="data-selenium-id";function l9(){this.ob=Cx("file");this.ob[qi]="gwt-FileUpload";this.a=new m9;this.a.c=this;if(-1==this.kb){var a=this.ob,b=4096|(this.ob.__eventBits||0);ND();wE(a,b)}else this.kb|=4096}y(399,380,Sm,l9);_.Ee=function(a){var b;a:{b=this.a;switch(LD(a.type)){case 1024... |
8f81cc082f10a2bc07647890ef78787157cfc9f97cbf943ce69fc8e87cd7b313 | JavaScript | 5,115 | 1 | $wnd.jsme.runAsyncCallback10('var m9="data-selenium-id";function n9(){this.ob=Cx("file");this.ob[qi]="gwt-FileUpload";this.a=new o9;this.a.c=this;if(-1==this.kb){var a=this.ob,b=4096|(this.ob.__eventBits||0);ND();wE(a,b)}else this.kb|=4096}y(399,380,Sm,n9);_.Ee=function(a){var b;a:{b=this.a;switch(LD(a.type)){case 1024... |
6f76d03d67b3a856fac86db87dfa76efde81c2d10d0acfb6c67cba5fed3f206f | JavaScript | 5,124 | 72 | // plain-language "what is this and how is it derived" text for the hover
// (?) icons next to each measurement/graph in the Analysis workspace - see
// components/InfoTooltip.jsx. mirrors the wording of api/results_bundle.py's
// own METRIC_EXPLAINERS (the PDF report's equivalent) where the same metric
// exists there... |
433ece2e927daa00bb99563b6117e281112e59ba384a26fecb036df192d98bc3 | JavaScript | 5,228 | 155 | // a small, deliberately constrained arithmetic expression parser/evaluator
// for the "Custom metrics" tab - numbers, + - * / ( ), and column-name
// identifiers only. NOT eval()/new Function(), even though this is a local
// desktop tool: a formula box is exactly the kind of input that eventually
// gets pasted-from-... |
3165adf239f5964f98673151bea5c9535a6d97c1b22807dd1f035cf75c12d958 | JavaScript | 5,265 | 185 | const path = require('path');
const axios = require('axios');
const PipelineManager = require('coinstac-pipeline');
const { pullImagesFromList, removeImagesFromList } = require('coinstac-container-manager');
const Managers = {};
async function getDockerManager(clientId) {
if (Managers[clientId]) {
return Manage... |
a8fd8edc90dbb22ed7ad3616a80f687c1acba32fadb7711a545e2a7e16f72a2d | JavaScript | 5,310 | 161 | /*
* Smallest enclosing circle - Library (compiled from TypeScript)
*
* Copyright (c) 2020 Project Nayuki
* https://www.nayuki.io/page/smallest-enclosing-circle
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
... |
6ca3c3be8ea0d3341fc682195463ab43bc0369186ab4696b7cb2e3f3840a921b | JavaScript | 5,333 | 125 | // Script to check that minimum requirements for participation in the study are met
const REQUIREMENTS_MIN_SCREEN_WIDTH = 800; // in css pixels
const REQUIREMENTS_MIN_SCREEN_HEIGHT = 768; // in css pixels
const RETURN_PROLIFIC_SUBMISSION_MESSAGE = "return your submission on Prolific by clicking the 'stop without comp... |
3484fa033cac7563946002112a36e821637dc71c19cc1a86d6acf93d0200e271 | JavaScript | 5,412 | 1 | Search.setIndex({"docnames": ["index"], "filenames": ["index.rst"], "titles": ["Welcome to pyComBat\u2019s documentation!"], "terms": {"thi": 0, "packag": 0, "i": 0, "now": 0, "deprec": 0, "longer": 0, "maintain": 0, "its": 0, "standalon": 0, "version": 0, "It": 0, "ha": 0, "been": 0, "merg": 0, "inmoos": 0, "pleas": 0... |
708db3d057b5434bccc5f085153821f9b6fb7ef9ae17f17bc719b25b2eb03b88 | JavaScript | 5,466 | 240 | const {
eventEmitter,
COMPUTATION_CHANGED,
COMPUTATION_DELETED,
CONSORTIUM_CHANGED,
CONSORTIUM_DELETED,
CONSORTIUM_PIPELINE_CHANGED,
PIPELINE_CHANGED,
PIPELINE_DELETED,
RUN_CHANGED,
RUN_DELETED,
RUN_STARTED,
RUN_WITH_HEADLESS_CLIENT_STARTED,
THREAD_CHANGED,
USER_CHANGED,
USER_CONNECTION_CH... |
207f8995085508f92fdb69d56649f25fa775ad12952351107fda6b5a69cdb942 | JavaScript | 5,594 | 264 | /* eslint-disable-next-line import/no-unresolved */
const test = require('ava');
const sinon = require('sinon');
const find = require('lodash/find');
const routes = require('../src/routes');
const authRoutes = require('../src/routes/auth');
const versionRoutes = require('../src/routes/version');
const helperFunctions =... |
8425cfadc084bd72f0f4a8ebd8ca6c6e788275ac88f67a41455f55add12e0675 | JavaScript | 5,598 | 207 | import { ipcRenderer } from 'electron';
import { persistReducer } from 'redux-persist';
import { pipelineNeedsDataMapping } from '../../utils/helpers';
import { storage } from '../storage';
import { saveLocalRunResult } from './localRunResults';
import { notifyError, notifyInfo } from './notifyAndLog';
/**
* We curr... |
4cf9a472732699d380ef359f14042e8cc99a539a88181016563a924b6a710416 | JavaScript | 5,685 | 193 | // Copyright 2011-2012 The MathWorks, Inc.
function RTW_STRUCT(prop, value) {
this.prop = prop;
if (typeof(value) == 'undefined')
this.value = "";
else
this.value = value;
}
// initialize the cache when code generation report is first loaded
function RTW_BOOK()
{
this.length = 0;
... |
95f191d38d39dbc6a6b8e81ab1f51a5d8f3bdfa9cf5c8264e4520b88fcf3c7c2 | JavaScript | 5,709 | 227 | 'use strict';
/* eslint-disable-next-line import/no-unresolved */
const test = require('ava');
const sinon = require('sinon');
const csvParse = require('csv-parse');
const fsPromise = require('fs').promises;
const fs = require('fs');
const PipelineManager = require('coinstac-pipeline');
const { CORE_CONFIGURATION, ME... |
ff5441b9efc64f00da45da19b3df0d457c7f2f2ea8d44fe0a414596150695172 | JavaScript | 5,714 | 210 |
//
// Animation and Event objects
//
EVENT_TYPE_INSTANTANEOUS = "instantaneous"
EVENT_TYPE_EXTENDED = "extended"
class Animation {
constructor(duration, eventSequences) {
this.duration = duration;
this.eventSequences = eventSequences;
}
}
class Event {
constructor(startTime, type) {
this.startTime... |
c41fe36dd9b05058ad8ea15c19a9e44c892171319a96e47dae6068572d30e1f8 | JavaScript | 5,755 | 144 | (function($) {
'use strict';
var SelectBox = {
cache: {},
init: function(id) {
var box = document.getElementById(id);
var node;
SelectBox.cache[id] = [];
var cache = SelectBox.cache[id];
var boxOptions = box.options;
var box... |
ad0b74bbd8ddd52c9868d85059bdf850707144c72d466b484f53bb58c24add17 | JavaScript | 5,824 | 13 | var $jscomp={scope:{},findInternal:function(b,c,a){b instanceof String&&(b=String(b));for(var d=b.length,e=0;e<d;e++){var f=b[e];if(c.call(a,f,e,b))return{i:e,v:f}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(b,c,a){if(a.get||a.set)throw new Ty... |
d66aeb5778bca19da9ad87116c55792e738aec2a3588df4b1b610835e7bba2b5 | JavaScript | 5,974 | 211 | export function scaleCanvas(c, w, h) {
// Scales the canvas for the device screen resolution
var result = c
.attr('width', w * window.devicePixelRatio)
.attr('height', h * window.devicePixelRatio)
.style('width', w + 'px')
.style('height', h + 'px');
var context = c.node().getContext('2d');
con... |
2f4ad586d9647c82de40850145400d6c6c55307a527090eed8829a7481dd610a | JavaScript | 6,169 | 1 | $wnd.jsme.runAsyncCallback2('var v5="Any",w5="Aromatic",x5="Nonring",y5="Reset",z5="Ring";function A5(a,b){if(0>b||b>=a.ob.options.length)throw new ND;}function B5(a,b){A5(a,b);return a.ob.options[b].value}function C5(){this.ob=$doc.createElement("<SELECT>");this.ob[Zh]="gwt-ListBox"}x(400,377,Lm,C5);function D5(){D5=z... |
abbfa72cdda66ba0ec67f0fa49bf3ef810633b776d2f85df6114b9ac8e26cf47 | JavaScript | 6,169 | 1 | $wnd.jsme.runAsyncCallback2('var x5="Any",y5="Aromatic",z5="Nonring",A5="Reset",B5="Ring";function C5(a,b){if(0>b||b>=a.ob.options.length)throw new ND;}function D5(a,b){C5(a,b);return a.ob.options[b].value}function E5(){this.ob=$doc.createElement("<SELECT>");this.ob[Zh]="gwt-ListBox"}x(400,377,Lm,E5);function F5(){F5=z... |
6d236075a87b5b5a6db63951a31e980094f89614ad30dffc087ce8bf52036f58 | JavaScript | 6,170 | 1 | $wnd.jsme.runAsyncCallback2('var X6="Any",Y6="Aromatic",Z6="Nonring",$6="Reset",a7="Ring";function b7(a,b){if(0>b||b>=a.ob.options.length)throw new dF;}function c7(a,b){b7(a,b);return a.ob.options[b].value}function d7(){this.ob=$doc.createElement("select");this.ob[qi]="gwt-ListBox"}y(420,395,Sm,d7);function e7(){e7=z}\... |
bb13e8c6bd1e3ea6743e3f63f3909afd8d31dc1b90db419dca54ab5dc30667a3 | JavaScript | 6,170 | 1 | $wnd.jsme.runAsyncCallback2('var Z6="Any",$6="Aromatic",a7="Nonring",b7="Reset",c7="Ring";function d7(a,b){if(0>b||b>=a.ob.options.length)throw new dF;}function e7(a,b){d7(a,b);return a.ob.options[b].value}function f7(){this.ob=$doc.createElement("select");this.ob[qi]="gwt-ListBox"}y(420,395,Sm,f7);function g7(){g7=z}\... |
c2d8e714fcd1bb1eaf274e49d2e4648ee74776edb9b0a1b2795043bd38f607eb | JavaScript | 6,170 | 1 | $wnd.jsme.runAsyncCallback2('var C5="Any",D5="Aromatic",E5="Nonring",F5="Reset",G5="Ring";function H5(a,b){if(0>b||b>=a.ob.options.length)throw new $D;}function I5(a,b){H5(a,b);return a.ob.options[b].value}function J5(){this.ob=$doc.createElement("select");this.ob[oi]="gwt-ListBox"}x(404,381,Wm,J5);function K5(){K5=z}\... |
f1c6b1b381d2fc14a56798d621c2d37f5c64133ab8bf4bfd29589b3d6eef0f83 | JavaScript | 6,170 | 1 | $wnd.jsme.runAsyncCallback2('var E5="Any",F5="Aromatic",G5="Nonring",H5="Reset",I5="Ring";function J5(a,b){if(0>b||b>=a.ob.options.length)throw new $D;}function K5(a,b){J5(a,b);return a.ob.options[b].value}function L5(){this.ob=$doc.createElement("select");this.ob[oi]="gwt-ListBox"}x(404,381,Wm,L5);function M5(){M5=z}\... |
90c133e023337ad2e2744c26f771b3050057dd791cbccb044ef3a30b56f0cc60 | JavaScript | 6,173 | 1 | $wnd.jsme.runAsyncCallback2('var N7="Any",O7="Aromatic",P7="Nonring",Q7="Reset",R7="Ring";function S7(a,b){if(0>b||b>=a.ob.options.length)throw new NF;}function T7(a,b){S7(a,b);return a.ob.options[b].value}function U7(){this.ob=$doc.createElement("select");this.ob[pi]="gwt-ListBox"}y(426,403,Bn,U7);function V7(){V7=z}\... |
dc31398e0b26cdd6cffca348a76cd29aeac4e042f384736de6947d1a1eebb024 | JavaScript | 6,173 | 1 | $wnd.jsme.runAsyncCallback2('var L7="Any",M7="Aromatic",N7="Nonring",O7="Reset",P7="Ring";function Q7(a,b){if(0>b||b>=a.ob.options.length)throw new MF;}function R7(a,b){Q7(a,b);return a.ob.options[b].value}function S7(){this.ob=$doc.createElement("select");this.ob[pi]="gwt-ListBox"}y(426,403,An,S7);function T7(){T7=z}\... |
d080e041caeaf01e477bfa927b0bcd75f0e40beed93a24b02b7eff91a02cdb5c | JavaScript | 6,179 | 1 | $wnd.jsme.runAsyncCallback2('var s7="Any",t7="Aromatic",u7="Nonring",v7="Reset",w7="Ring";function x7(a,b){if(0>b||b>=a.ob.options.length)throw new pF;}function y7(a,b){x7(a,b);return a.ob.options[b].value}function z7(){fG();this.ob=$doc.createElement("select");this.ob[si]="gwt-ListBox"}y(423,400,Zm,z7);function A7(){A... |
fea4b3e01b521b8f906092822dd718f411aca00b616afd0e29afc106925557e8 | JavaScript | 6,179 | 1 | $wnd.jsme.runAsyncCallback2('var q7="Any",r7="Aromatic",s7="Nonring",t7="Reset",u7="Ring";function v7(a,b){if(0>b||b>=a.ob.options.length)throw new pF;}function w7(a,b){v7(a,b);return a.ob.options[b].value}function x7(){fG();this.ob=$doc.createElement("select");this.ob[si]="gwt-ListBox"}y(423,400,Zm,x7);function y7(){y... |
11b15ff02f8676ae4047fad5950ac80949b9bb3f5d41eef78daf11ac3ab1c4e6 | JavaScript | 6,193 | 1 | $wnd.jsme.runAsyncCallback10('var Q7="data-selenium-id";x(255,243,{});function R7(){R7=z;S7=new lz(Ki,new T7)}function U7(a){a.a.stopPropagation();a.a.preventDefault()}function T7(){}x(256,255,{},T7);_.ee=function(){U7(this)};_.he=function(){return S7};var S7;function V7(){V7=z;W7=new lz(Li,new X7)}function X7(){}x(257... |
b5006e973abf72160c9eb1497c1fa4aefc3d9756920c7d9a972d0a052f6884e8 | JavaScript | 6,193 | 1 | $wnd.jsme.runAsyncCallback10('var S7="data-selenium-id";x(255,243,{});function T7(){T7=z;U7=new lz(Ki,new V7)}function W7(a){a.a.stopPropagation();a.a.preventDefault()}function V7(){}x(256,255,{},V7);_.ee=function(){W7(this)};_.he=function(){return U7};var U7;function X7(){X7=z;Y7=new lz(Li,new Z7)}function Z7(){}x(257... |
a587d15ffae60cc49781efdfd8ebd930d437edf8bc1b0ca035c76b0186171c90 | JavaScript | 6,217 | 148 | // fetch wrappers for the /api/facial/* endpoints - same shape/conventions
// as api/cohort.js/api/sessions.js, including converting the backend's
// snake_case JSON into the camelCase shape every other wrapper in this app
// already hands back (see api/sessions.js's uploadSession for the same
// pattern). the actual g... |
0918b82a3a451134c145cb55c5138eb2d91fb5ee7d7f770e5ccc395062c504e0 | JavaScript | 6,226 | 93 | // the metric catalog for the Trends tab's "measurements over time" chart -
// every scalar field group_measurements_response (api/routers/
// _group_measurements.py) can carry, grouped the same way AnalysisPanel.jsx
// groups its own tables (cranial measurements / frontal bossing+asymmetry /
// metopic forehead shape)... |
60f1b5fb4ba81c3946fcfd80c60c5bff0662d726aa867a9473c40af24f5de49d | JavaScript | 6,305 | 1 | $wnd.jsme.runAsyncCallback10('var Q7="data-selenium-id";x(253,241,{});function R7(){R7=z;S7=new ez("dragend",new T7)}function U7(a){a.a.cancelBubble=!0;tx(a.a)}function T7(){}x(254,253,{},T7);_.ee=function(){U7(this)};_.he=function(){return S7};var S7;function V7(){V7=z;W7=new ez("dragenter",new X7)}function X7(){}x(25... |
cda94bf177bb378c571d2bb7a878ac07b4a9b31828320e14f5f4c964fe0d4285 | JavaScript | 6,305 | 1 | $wnd.jsme.runAsyncCallback10('var O7="data-selenium-id";x(253,241,{});function P7(){P7=z;Q7=new ez("dragend",new R7)}function S7(a){a.a.cancelBubble=!0;tx(a.a)}function R7(){}x(254,253,{},R7);_.ee=function(){S7(this)};_.he=function(){return Q7};var Q7;function T7(){T7=z;U7=new ez("dragenter",new V7)}function V7(){}x(25... |
1a688946bba79d52febc63eb5c287c015dc522912cc7e3d1c46e03e008b2752c | JavaScript | 6,306 | 51 | var searchData=
[
['gaussp',['gaussp',['../namespacelib.html#a8589227f165a9e24a63979440f76f6a5',1,'lib']]],
['get_5f2dproj',['get_2dproj',['../namespaceanalyze__ocn.html#a4dd430609340d8f04081b0aba12d7862',1,'analyze_ocn']]],
['get_5fcell_5fstats',['get_cell_stats',['../classtinacell_1_1Cell.html#abedf6a75383186ae... |
03dc106c26372f823a750e8f4bb8883faf4ae9886669064eed57f08998c84bb3 | JavaScript | 6,345 | 166 | // Mathieu Jacomy @ Sciences Po Médialab & WebAtlas
// (requires sigma.js to be loaded)
sigma.publicPrototype.parseGexf = function(gexfPath,callback) {
// Load XML file:
var gexfhttp, gexf;
var sigmaInstance = this;
gexfhttp = window.XMLHttpRequest ?
new XMLHttpRequest() :
new ActiveXObject('Microsoft.X... |
62ed9a054a129e11afdba2d5f9e3ee55511fd33923fa45d07bb0a58b605e30c9 | JavaScript | 6,351 | 203 | import assert from 'assert/strict';
import { MeshoptSimplifier as simplifier } from './meshopt_simplifier.js';
process.on('unhandledRejection', (error) => {
console.log('unhandledRejection', error);
process.exit(1);
});
var tests = {
compactMesh: function () {
var indices = new Uint32Array([0, 1, 3, 3, 1, 5]);
... |
b0bf028a7edbfcaf52d9ca2828242f0aa7a1a045e01b83a299789826e22be1c0 | JavaScript | 6,385 | 248 | import db from '@server/config/db.js'
import { Op } from 'sequelize'
import { intersection, union } from 'lodash'
import cellType from './cellType'
import dataSet from './dataset'
// the schema directory can only access from ../../
const deSchema = '../../schema/scread_v1/de.js'
const deMetaSchema = '../../schema/scre... |
a0f3ab0611c3e8c286738234ddbc8d84fd6afe905c1d5eb0f4a8eb1e12edeb97 | JavaScript | 6,390 | 151 | import * as THREE from "three";
// plain vertex-average centroid across all mesh children - not the
// slice-based center-of-mass the backend uses for craniometrics, just a
// straightforward "middle of all the points" for visually comparing two
// whole meshes. ported from frontend_legacy/app.js's computeCentroid.
fu... |
5683441d7d656d3f5993d0f37c6f4c5e74b27ca41574ed27adbd50e9e3fa59d9 | JavaScript | 6,393 | 170 | // Mathieu Jacomy @ Sciences Po Médialab & WebAtlas
// (requires sigma.js to be loaded)
sigma.publicPrototype.parseGexf = function(gexfPath) {
// Load XML file:
var gexfhttp, gexf;
var sigmaInstance = this;
gexfhttp = window.XMLHttpRequest ?
new XMLHttpRequest() :
new ActiveXObject('Microsoft.XMLHTTP');... |
9c65cf8f4f25967e0f44020112a3ef68a605060df9c8aaae3d89a0e95339db21 | JavaScript | 6,405 | 231 | const { ObjectID } = require('mongodb');
const { v4: uuid } = require('uuid');
const database = require('../../database');
const helperFunctions = require('../../auth-helpers');
const {
eventEmitter,
USER_CHANGED,
HEADLESS_CLIENT_CHANGED,
HEADLESS_CLIENT_DELETED,
} = require('../events');
const { NotAuthorized... |
da0781f289ee8bd2aa667bd2bc12127974f1c0ff3fb9321da807870526cdae05 | JavaScript | 6,427 | 52 | var searchData=
[
['gaussp',['gaussp',['../namespacelib.html#a8589227f165a9e24a63979440f76f6a5',1,'lib']]],
['get_5f2dproj',['get_2dproj',['../namespaceanalyze__ocn.html#a4dd430609340d8f04081b0aba12d7862',1,'analyze_ocn']]],
['get_5fcell_5fstats',['get_cell_stats',['../classtinacell_1_1Cell.html#abedf6a75383186ae... |
50e48d6a313e2288626b82d1034fa3cd9c083b03deb0f7cac8fc4da4287e042f | JavaScript | 6,453 | 186 | const formidable = require('formidable')
const fs = require('fs-extra')
const sendmail = require('sendmail')()
const sendEmail = function(ctx) {
const email = ctx.content.fields.email || ''
const controlFile = function(ctx) {
if (ctx.content.fields.atlasType === 'custom') {
return ctx.content.files.contr... |
2ebbbfc24fdcefa19623e0b6a35e1948452c400cc94cac0de632b46630d2a313 | JavaScript | 6,485 | 1 | $wnd.jsme.runAsyncCallback10('var $sa="400px",ata="Accept",bta="Close (ESC)",cta="Paste",dta="Paste the text to import into the text area below.",eta="accept",fta="close",m$="data-selenium-id",gta="dragend",hta="dragenter",ita="dragover",jta="drop",kta="file",lta="gwt-FileUpload",mta="gwt-HTML",nta="jsa_clipboard/butto... |
5724fdf1c18e603721f7a6abef0f145117149dc2ae24ec023d80c5d0ff34553b | JavaScript | 6,485 | 1 | $wnd.jsme.runAsyncCallback10('var ata="400px",bta="Accept",cta="Close (ESC)",dta="Paste",eta="Paste the text to import into the text area below.",fta="accept",gta="close",m$="data-selenium-id",hta="dragend",ita="dragenter",jta="dragover",kta="drop",lta="file",mta="gwt-FileUpload",nta="gwt-HTML",ota="jsa_clipboard/butto... |
3ef78e737575279b82b132202a5ba37da6635e05e1fe0ae4c46360654b8f57fe | JavaScript | 6,502 | 153 | /*global gettext, interpolate, ngettext*/
(function($) {
'use strict';
var lastChecked;
$.fn.actions = function(opts) {
var options = $.extend({}, $.fn.actions.defaults, opts);
var actionCheckboxes = $(this);
var list_editable_changed = false;
var showQuestion = function() {... |
d15939df8ab2401b33364b7ce5da75ab49a95333ec80e69806e8cf376452d1d6 | JavaScript | 6,517 | 201 | /* eslint-disable no-console */
const PipelineManager = require('coinstac-pipeline');
const path = require('path');
const axios = require('axios');
const chalk = require('chalk');
const graphqlSchema = require('coinstac-graphql-schema');
const { pullImagesFromList } = require('coinstac-container-manager');
const manag... |
c42eee70353eacffaa1c80786a70883f6d7db7be8d0ff67fd58ba3b5096ebf3c | JavaScript | 6,524 | 1 | $wnd.jsme.runAsyncCallback2('var cqa=" (H\'s don\'t count.)",dqa="!#6",eqa="!@",fqa="#15,",gqa="#16,",hqa="#6,",iqa="#7,",jqa="#8,",kqa=";!R",lqa=";A",mqa=";D",nqa=";H",oqa=";R",pqa=";a",qqa="<SELECT>",W7="Any",rqa="Any except C",X7="Aromatic",sqa="Atom is :",tqa="Atom type :",uqa="Atom/Bond Query",vqa="Bond is :",wqa=... |
d0e843326e4e77b35ae481f93c37e8a915a082915e1ddc7c621c1ff9f4c9c359 | JavaScript | 6,524 | 1 | $wnd.jsme.runAsyncCallback2('var bqa=" (H\'s don\'t count.)",cqa="!#6",dqa="!@",eqa="#15,",fqa="#16,",gqa="#6,",hqa="#7,",iqa="#8,",jqa=";!R",kqa=";A",lqa=";D",mqa=";H",nqa=";R",oqa=";a",pqa="<SELECT>",W7="Any",qqa="Any except C",X7="Aromatic",rqa="Atom is :",sqa="Atom type :",tqa="Atom/Bond Query",uqa="Bond is :",vqa=... |
eef6109b0510d1a44469013ed01e1b174da5fad7f86c59bac9dd2de8286d40de | JavaScript | 6,635 | 229 | const ALL_IMAGES = [
{
Containers: -1,
Created: 1587498811,
Id: 'sha256:0754fbc398a7ecfbae1061b6a9115f0228ef39171457692a6ff12bfbf5ddef39',
Labels: {
maintainer: 'Dirk Eddelbuettel <edd@debian.org>',
'org.label-schema.license': 'GPL-2.0',
'org.label-schema.vcs-url': 'https://github.co... |
d0c1f3686c0736c470e85d652a742632b851a8eb609d692bab65ed00b010f8b8 | JavaScript | 6,811 | 133 | // resamples and lerps the measurements/metopic/frontal-bossing overlay
// geometry between two timepoints - see three/resamplePolyline.js's own
// comment for why resampling has to happen first (craniumpy_core's own
// slice/contour/profile point arrays are variable-length per mesh, no
// shared per-index meaning acro... |
184aee8b23214dde90e695fe0b9cf7cf45efe0131ca4614aba89da018b925b40 | JavaScript | 6,897 | 181 | /*global SelectBox, interpolate*/
// Handles related-objects functionality: lookup link for raw_id_fields
// and Add Another links.
(function($) {
'use strict';
// IE doesn't accept periods or dashes in the window name, but the element IDs
// we use to generate popup window names may contain them, therefo... |
024d7c1d4f0e12de5307e749169d74aed694d985d084beca231edf91464b64d5 | JavaScript | 6,978 | 179 | const ADA_POS = "ada-pos";
const ADA_PROB = "ada-prob";
const ADA_POS_PROB = "ada-pos-prob";
const ADA_PROB_POS = "ada-prob-pos";
const ADA_POS_DEFAULT_STUDY_PARAMS = {
studyName: ADA_POS,
estimatedCompletionTime: 28, // in minutes
baseMoney: 4.20, // in pounds
maxMoneyBonus: 2.10, // in pounds
maxMoneyBonus... |
e54ba5ea243e04d1f860eeb5fa6e5a7e91f6f739cb06379aed864a841034b4db | JavaScript | 6,994 | 216 | /* eslint-disable no-console */
const { EXIST_TIMEOUT, COMPUTATION_TIMEOUT, COMPUTATION_DOWNLOAD_TIMEOUT } = require('../lib/constants');
const createConsortium = async ({ name, description }, app) => {
// Go to create consortium page
await app.click('a:has-text("Consortia")');
await app.click('a[name="create-c... |
8f2d3d30f3f165e0dde77e1b3691d0f23440cf4a5a48678db164efee2bb99822 | JavaScript | 7,007 | 143 | // fetch wrappers for the /api/longitudinal/* endpoints - same shape/
// conventions as api/sessions.js and api/cohort.js. everything else the
// Longitudinal workspace needs (per-timepoint upload/align/clip/run, and
// NICP-fitting a mesh to a shared template) is already covered by
// api/sessions.js - every mesh this... |
46603785e463d6abb768cb7af66d418d3eb303cdd96934f5bdf8158424d864af | JavaScript | 7,048 | 122 | // Shared Ada-Prob/Ada-Pos functions
function getScoreFracFromSessionData(sessionData) {
const isAdaProb = (sessionData.taskName == ADA_PROB_TASK_NAME_DASH_CASE);
let trueValue = isAdaProb ? sessionData.p1 : sessionData.mean;
let estimate = sessionData.estimate;
let idealObserverEstimate = isAdaProb ? sessionD... |
33d014285eb2cb56f776e3d04425ef4674cd33101031701c8530334461cae65d | JavaScript | 7,102 | 274 | const { makeExecutableSchema } = require('apollo-server-hapi');
const { pubsub, resolvers } = require('./resolvers');
const sharedFields = require('./shared-fields');
const typeDefs = `
scalar JSON
type ComputationMeta {
${sharedFields.computationMetaFields}
}
input ComputationMetaInput {
${sharedFie... |
f57728b9b5bfa327afd7c337c7c7fcda6610ed2d88c8bef98d99aee17688741a | JavaScript | 7,134 | 212 | // Core javascript helper functions
// basic browser identification & version
var isOpera = (navigator.userAgent.indexOf("Opera") >= 0) && parseFloat(navigator.appVersion);
var isIE = ((document.all) && (!isOpera)) && parseFloat(navigator.appVersion.split("MSIE ")[1].split(";")[0]);
// quickElement(tagType, parentRef... |
da54e61100e27fbf12913e242051ac13991a218f28a0b3c75a81be15966a95dd | JavaScript | 7,193 | 227 | const Docker = require('dockerode');
const _ = require('lodash');
const http = require('http');
const path = require('path');
const os = require('os');
const { execSync } = require('child_process');
const utils = require('../utils');
const { ServiceFunctionGenerator } = require('./serviceFunction');
let docker;
funct... |
71518e4f4968a6262abeff44f3932b6e4111189db0aaf5cb8c74aa53a4ab656f | JavaScript | 7,313 | 151 | // true once pywebview has finished injecting its bridge and attaching
// pick_file - checking the object's truthiness instead would report
// "desktop" during the gap right after injection starts but before
// pick_file actually exists, then fail calling something not there yet.
// ported from frontend_legacy/app.js's... |
5e0c73f12822f729ebaedd13bc0ca125c825883104d77a59084b9e1d5dc32bfe | JavaScript | 7,384 | 1 | $wnd.jsme.runAsyncCallback8('function Z8(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.c;++h)0!=(a.K.w[a.t[h]]&e)&&++j;if(0==j)return!1;15<b&&($8(a,c),b-=16);a9(a,1,1);a9(a,b,4);a9(a,j,d);for(h=0;h<a.K.c;++h)b=a.K.w[a.t[h]]&e,0!=b&&(a9(a,h,d),1!=f&&a9(a,b>>g,f));return!0}function b9(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.d;++... |
86ed2139849ff14298eea590cf5e16d94e8b4f403e584d6741a5e0f4def7e112 | JavaScript | 7,384 | 1 | $wnd.jsme.runAsyncCallback8('function L9(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.c;++h)0!=(a.K.w[a.t[h]]&e)&&++j;if(0==j)return!1;15<b&&(M9(a,c),b-=16);N9(a,1,1);N9(a,b,4);N9(a,j,d);for(h=0;h<a.K.c;++h)b=a.K.w[a.t[h]]&e,0!=b&&(N9(a,h,d),1!=f&&N9(a,b>>g,f));return!0}function O9(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.d;++... |
8a33db80fc869e60117993b3d26f410ce31c0c815df576bde866239567e273e3 | JavaScript | 7,384 | 1 | $wnd.jsme.runAsyncCallback8('function X8(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.c;++h)0!=(a.K.w[a.t[h]]&e)&&++j;if(0==j)return!1;15<b&&(Y8(a,c),b-=16);Z8(a,1,1);Z8(a,b,4);Z8(a,j,d);for(h=0;h<a.K.c;++h)b=a.K.w[a.t[h]]&e,0!=b&&(Z8(a,h,d),1!=f&&Z8(a,b>>g,f));return!0}function $8(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.d;++... |
de85112260c06f05e4e539d1337f5c241b4a1e3d6c34b6c7ba921cbd214eba3b | JavaScript | 7,384 | 1 | $wnd.jsme.runAsyncCallback8('function N9(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.c;++h)0!=(a.K.w[a.t[h]]&e)&&++j;if(0==j)return!1;15<b&&(O9(a,c),b-=16);P9(a,1,1);P9(a,b,4);P9(a,j,d);for(h=0;h<a.K.c;++h)b=a.K.w[a.t[h]]&e,0!=b&&(P9(a,h,d),1!=f&&P9(a,b>>g,f));return!0}function Q9(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.d;++... |
185fe015c69d1077a0272ebcc09371fb568489a36f10cc39a899f02d8e1c7d1d | JavaScript | 7,390 | 1 | $wnd.jsme.runAsyncCallback8('function C7(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.c;++h)0!=(a.K.w[a.t[h]]&e)&&++j;if(0==j)return!1;15<b&&(D7(a,c),b-=16);E7(a,1,1);E7(a,b,4);E7(a,j,d);for(h=0;h<a.K.c;++h)b=a.K.w[a.t[h]]&e,0!=b&&(E7(a,h,d),1!=f&&E7(a,b>>g,f));return!0}function F7(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.d;++... |
258559c210fe044fe0db2f4192a0efc80a78a33ead1fcc0998161418c9b33583 | JavaScript | 7,390 | 1 | $wnd.jsme.runAsyncCallback8('function Z9(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.c;++h)0!=(a.K.w[a.t[h]]&e)&&++j;if(0==j)return!1;15<b&&($9(a,c),b-=16);a$(a,1,1);a$(a,b,4);a$(a,j,d);for(h=0;h<a.K.c;++h)b=a.K.w[a.t[h]]&e,0!=b&&(a$(a,h,d),1!=f&&a$(a,b>>g,f));return!0}function b$(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.d;++... |
8b350c6a971b786f7fe2edb2f35b4438c6f2d028799dc3be3fd5700c5c0abb18 | JavaScript | 7,390 | 1 | $wnd.jsme.runAsyncCallback8('function A7(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.c;++h)0!=(a.K.w[a.t[h]]&e)&&++j;if(0==j)return!1;15<b&&(B7(a,c),b-=16);C7(a,1,1);C7(a,b,4);C7(a,j,d);for(h=0;h<a.K.c;++h)b=a.K.w[a.t[h]]&e,0!=b&&(C7(a,h,d),1!=f&&C7(a,b>>g,f));return!0}function D7(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.d;++... |
94573db4e03c02e3101b6afa62678a3ef0b02d0319d8a6eebde90698e15d5a04 | JavaScript | 7,390 | 1 | $wnd.jsme.runAsyncCallback8('function E7(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.c;++h)0!=(a.K.w[a.t[h]]&e)&&++j;if(0==j)return!1;15<b&&(F7(a,c),b-=16);G7(a,1,1);G7(a,b,4);G7(a,j,d);for(h=0;h<a.K.c;++h)b=a.K.w[a.t[h]]&e,0!=b&&(G7(a,h,d),1!=f&&G7(a,b>>g,f));return!0}function H7(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.d;++... |
a4379d82dfc36821b653bfa237245e0262cd2936cc68b186a6e042f626e7e392 | JavaScript | 7,390 | 1 | $wnd.jsme.runAsyncCallback8('function C7(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.c;++h)0!=(a.K.w[a.t[h]]&e)&&++j;if(0==j)return!1;15<b&&(D7(a,c),b-=16);E7(a,1,1);E7(a,b,4);E7(a,j,d);for(h=0;h<a.K.c;++h)b=a.K.w[a.t[h]]&e,0!=b&&(E7(a,h,d),1!=f&&E7(a,b>>g,f));return!0}function F7(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.d;++... |
edde44e5c7ab25a4f8c881f3bf14f1f573c6c4997659a1d0bee5ecdafb2d08ec | JavaScript | 7,390 | 1 | $wnd.jsme.runAsyncCallback8('function Z9(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.c;++h)0!=(a.K.w[a.t[h]]&e)&&++j;if(0==j)return!1;15<b&&($9(a,c),b-=16);a$(a,1,1);a$(a,b,4);a$(a,j,d);for(h=0;h<a.K.c;++h)b=a.K.w[a.t[h]]&e,0!=b&&(a$(a,h,d),1!=f&&a$(a,b>>g,f));return!0}function b$(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.d;++... |
00b815ad324d83ae1e8e2cda48ff674bc41d232bc3280e0589b1f0d6794f50d2 | JavaScript | 7,394 | 1 | $wnd.jsme.runAsyncCallback8('function s9(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.c;++h)0!=(a.K.w[a.t[h]]&e)&&++j;if(0==j)return!1;15<b&&(t9(a,c),b-=16);u9(a,1,1);u9(a,b,4);u9(a,j,d);for(h=0;h<a.K.c;++h)b=a.K.w[a.t[h]]&e,0!=b&&(u9(a,h,d),1!=f&&u9(a,~~b>>g,f));return!0}function v9(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.d;... |
d3a33ecacb1b04935f501e651f33ebc10678f3b9f4a51ddc0ce88dcf828ffaa0 | JavaScript | 7,394 | 1 | $wnd.jsme.runAsyncCallback8('function q9(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.c;++h)0!=(a.K.w[a.t[h]]&e)&&++j;if(0==j)return!1;15<b&&(r9(a,c),b-=16);s9(a,1,1);s9(a,b,4);s9(a,j,d);for(h=0;h<a.K.c;++h)b=a.K.w[a.t[h]]&e,0!=b&&(s9(a,h,d),1!=f&&s9(a,~~b>>g,f));return!0}function t9(a,b,c,d,e,f,g){var h,j;for(h=j=0;h<a.K.d;... |
eb15e4e3d352c365fee686cc1c54c00620017aa255c1e55b0492a1553a9368b1 | JavaScript | 7,423 | 1 | Search.setIndex({"docnames": ["index", "source/modules", "source/stt", "source/stt.pl", "source/stt.tl"], "filenames": ["index.rst", "source/modules.rst", "source/stt.rst", "source/stt.pl.rst", "source/stt.tl.rst"], "titles": ["Welcome to STT\u2019s documentation!", "stt", "STT package Documentation", "stt.pl submodule... |
ffcb2322ce9577471d9875d7b13b45d309deb69fc94159219df811bc76ac43fa | JavaScript | 7,464 | 222 | 'use strict';
const fs = require('fs');
const pify = require('util').promisify;
const Emitter = require('events');
const {
join,
dirname,
relative,
sep,
} = require('path');
const mkdirp = pify(require('mkdirp'));
const rmrf = pify(require('rimraf'));
const Controller = require('./controller');
const { link ... |
81a670d9982c9b0ef9229ae81b177f74832d17a0173e8795d98cca215bbe910e | JavaScript | 7,569 | 245 | //
// Run loop
//
const SOA = 1500; // ms
const ISI = 200; // ms
const TIME_BETWEEN_SESSION_START_AND_FIRST_TRIAL = 1000; // ms
const LOOP_STATE_READY = 1;
const LOOP_STATE_STARTING = 2;
const LOOP_STATE_RUNNING = 3;
const LOOP_STATE_PAUSED = 4;
const LOOP_STATE_STOPPING = 5;
const LOOP_STATE_STOPPED_READY_NEXT = 6;
... |
10d23f078ea4cae3ededfc751e12060897f5fc17c39375a1152f33711df446dd | JavaScript | 7,607 | 277 | /* eslint-disable-next-line import/no-unresolved */
const test = require('ava');
const sinon = require('sinon');
const portscanner = require('portscanner');
const winston = require('winston');
const wsServer = require('../../coinstac-images/coinstac-base/server-ws2');
const mocks = require('../helpers/mocks');
const Ma... |
a0d63eac21947852c0b41aaa79b9463533b12d71115e11b7c3daee56a970d531 | JavaScript | 7,705 | 296 | /**
* A doubly linked list-based Least Recently Used (LRU) cache. Will keep most
* recently used items while discarding least recently used items when its limit
* is reached.
*
* Licensed under MIT. Copyright (c) 2010 Rasmus Andersson <http://hunch.se/>
* See README.md for details.
*
* Illustration of the desig... |
615213ed9ff151f2e443994b7d4a59cf8b0d1bb4ab2d527e27a76d36acfff21b | JavaScript | 7,720 | 275 | //
// Utility functions
//
SOFTPLUS_DEFAULT_SHARPNESS = 5;
function getFractionalValue(v, vA, vB,
vAFrac = 0, vBFrac = 1, clipped = true,
do_softplus = true, softplus_sharpness = SOFTPLUS_DEFAULT_SHARPNESS) {
let slope = (vB - vA) / (vBFrac - vAFrac);
let intercept = vA - slope * vAFrac;
let vFrac = (v - in... |
d5e14bb772f642f659bcf1c03feca23ed69b24032fcd804b3fa0ac162dfba978 | JavaScript | 7,747 | 262 | import * as PIXI from 'pixi.js';
import * as d3 from 'd3';
function _rgbStringToArray(rgb) {
let comps = rgb.substring(4, rgb.length - 1).split(',');
return [
parseInt(comps[0]) / 255.0,
parseInt(comps[1]) / 255.0,
parseInt(comps[2]) / 255.0,
];
}
/**
* A PIXI Geometry object that holds attributes ... |
5e377ff9dc729c27fb0541f99430da39f198f9bd36bbeb6bfd627d6108e05b2b | JavaScript | 7,825 | 290 | import {
interpolateTo,
Decoration,
Animator,
easeInOut,
} from './data_items.js';
import { circumscribeCircle } from '../utils/enclosing_circle.js';
import { getWithFallback } from '../utils/helpers';
// Defines the visual decoration appearance of a star graph
export function DecorationStarGraph(
centerMark... |
236c383b7b8e9f5293eb6e7da152ce57c75b62ca15e2277da6c474a2c56e06c9 | JavaScript | 7,893 | 289 | import update from 'immutability-helper';
import { filter, get, keys } from 'lodash';
import {
FETCH_ALL_CONSORTIA_QUERY,
} from './functions';
export const compIOProp = {
props: ({ data: { fetchComputation } }) => ({
compIO: fetchComputation ? fetchComputation[0] : null,
}),
options: ({ computationId }) ... |
fdeee2ee7b3828939fc6d346b4f6452201e0c9cd0994e0dd743f2a4d86704ee9 | JavaScript | 7,962 | 355 | // This file is part of gltfpack and is distributed under the terms of MIT License.
/**
* Initialize the library with the Wasm module (library.wasm)
*
* @param wasm Promise with contents of library.wasm
*
* Note: this is called automatically in node.js
*/
function init(wasm) {
if (ready) {
throw new Error('in... |
a5ab7cb120c18a6da95fe152f2f4b38d6cd9145c994743db6da9d3e1e0dd54c5 | JavaScript | 8,037 | 199 | // client-side descriptive stats + binning for the Cohort workspace - fast
// and interactive (no round trip per filter/stratify tweak), unlike the
// *inferential* tests (t-test/ANOVA/etc.), which stay server-side via
// api/cohort.js's runStatsTest (scipy.stats - accurate p-values are easy to
// get subtly wrong hand... |
5c9a0ffd761dc106354536fba6b3f5b4ef99f6bf233cca3b745cf7aa83c1ed73 | JavaScript | 8,081 | 183 | import * as THREE from "three";
export function loadGlb(gltfLoader, url) {
return new Promise((resolve, reject) => {
gltfLoader.load(url, (gltf) => resolve(gltf.scene), undefined, reject);
});
}
export function plainMaterial() {
return new THREE.MeshStandardMaterial({ color: 0xe8d9c0, side: THREE.DoubleSide... |
037c96944a32625f3d4b97945037858a6919bf141a0a5e3168a0f17a0550754c | JavaScript | 8,161 | 191 | // resamples a polyline (an array of {x,y,z} or {x,z} points, in order) to
// exactly N evenly-arc-length-spaced points - used by the 3D Morphing tab
// to make two timepoints' own overlay geometry lerp-able frame by frame.
// craniumpy_core's own measurement geometry (hc_slice_polygon, the metopic
// contour, the fron... |
532a04b27a8631f53696a82b949b3bd9155e10e9f410663970ae206f4aca593b | JavaScript | 8,354 | 243 | import assert from 'assert/strict';
import { MeshoptEncoder as encoder } from './meshopt_encoder.js';
import { MeshoptDecoder as decoder } from './meshopt_decoder.mjs';
process.on('unhandledRejection', (error) => {
console.log('unhandledRejection', error);
process.exit(1);
});
function bytes(view) {
return new Uin... |
4eade92709ae6faa8fac691d6d3948f3d762c054566d48f2656d176aa7adeb04 | JavaScript | 8,407 | 133 | var NAVTREEINDEX0 =
{
"annotated.html":[0,0],
"classes.html":[0,1],
"dir_68267d1309a1af8e8297ef4c3efbcdba.html":[1,0,0],
"files.html":[1,0],
"fitch_8h_source.html":[1,0,0,0],
"globals.html":[1,1,0],
"globals_enum.html":[1,1,2],
"globals_eval.html":[1,1,3],
"globals_func.html":[1,1,1],
"index.html":[],
"morphy_8h_source... |
0dc356274554d6d55d029fd97aa6dbc3f0a5d2bc8a34b1d49adb8659d7c4414e | JavaScript | 8,530 | 264 | const stream = require('stream');
const { spawn, execFile, spawnSync } = require('child_process');
const path = require('path');
const { readdir, rm } = require('fs').promises;
const utils = require('../utils');
const { ServiceFunctionGenerator } = require('./serviceFunction');
/**
* returns an instance of the singul... |
078a89428a92ce95c3d4119963dbc09e72fd97e481b59e47e1a2337f324291f2 | JavaScript | 8,620 | 182 | import * as THREE from "three";
// blue (dented, negative) - white (0) - red (protruded, positive) diverging
// scale, matching results_bundle.py's _asymmetry_figure ("bwr" colormap) so
// the live viewer and the saved figure read the same way. gamma <1 on the
// normalized magnitude pushes moderate deviations toward ... |
e7cc69be206bc5c2f4a233a7d2d0320147dca8c09c03be2a419b6927bfe037d7 | JavaScript | 8,729 | 189 | /*global XRegExp*/
(function() {
'use strict';
var LATIN_MAP = {
'À': 'A', 'Á': 'A', 'Â': 'A', 'Ã': 'A', 'Ä': 'A', 'Å': 'A', 'Æ': 'AE',
'Ç': 'C', 'È': 'E', 'É': 'E', 'Ê': 'E', 'Ë': 'E', 'Ì': 'I', 'Í': 'I',
'Î': 'I', 'Ï': 'I', 'Ð': 'D', 'Ñ': 'N', 'Ò': 'O', 'Ó': 'O', 'Ô': 'O',
'Õ'... |
23195092509bbc374d705f3c692cabf8fecf8e79f376e061bbd01ee6a0bfeaa6 | JavaScript | 8,885 | 268 | const WS = require('ws');
const utils = require('../utils');
/**
* Calls the WS server inside the container
* with data format:
* [{command}, {args}, {inputData}]
* @param {Array} data service data to run
* @return {Promise} resolves or rejects from service run
*/
const ServiceFunctionGenerator = ({
host... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.