sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
d2eff6acce004397f7d6f09bf86c8cb2a466e548a2a0b95865030bd062597edd
JavaScript
876
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/it",[],function(){return{errorLoading:function(){return"I risultati non possono essere caricati."},inputT...
8df962a416bca9cec065d8f39a8eb5cd625688e5a961891084290d8a75743319
JavaScript
877
13
var structcharinfo__s = [ [ "charindex", "structcharinfo__s.html#a1c666ffd459c2ed27674ef188d82ca34", null ], [ "chtype", "structcharinfo__s.html#a7e00da35f578f457ccf2df0f20b0be6a", null ], [ "CIndex", "structcharinfo__s.html#a76822308968b790f0b0d3ab03f253fb6", null ], [ "fltwt", "structcharinfo__s.html#...
7e0547e6a09842abed5b06bc30688ec7855228283977f06431b6a49cda27716c
JavaScript
887
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ar",[],function(){return{errorLoading:function(){return"لا يمكن تحميل النتائج"},inputTooLong:function(e){...
e0de61b75275323542191a94f03ce8f3531984a790c40a3e7ef303a9a890a2c8
JavaScript
896
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/nl",[],function(){return{errorLoading:function(){return"De resultaten konden niet worden geladen."},input...
300e757e56bdc67fd7b1a5442358b8e552a7a56320dabf635ac25510be8472b2
JavaScript
900
46
/* jshint indent: 2 */ module.exports = function(sequelize, DataTypes) { return sequelize.define( 'iris3_regulon', { id: { type: DataTypes.INTEGER(11), allowNull: false, primaryKey: true, autoIncrement: true }, index: { type: DataTypes.STRING(50), ...
a630b5af91321f779b5b05a4fc3176987d18e7cc90bce106eac9668e1fff4a84
JavaScript
902
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/fr",[],function(){return{errorLoading:function(){return"Les résultats ne peuvent pas être chargés."},inpu...
28373cefc3a47e0746f2857015aa37b5ff7e29f26d444c0e8ad8152d6f5e2e1b
JavaScript
903
9
var searchData= [ ['reduce_5falpha',['reduce_alpha',['../namespacetinanet.html#a4e0f679900be0a6855b3e1d6e859eac4',1,'tinanet']]], ['remove_5fcells_5ffrom_5fnetwork',['remove_cells_from_network',['../namespacetinanet.html#a195a1b596d7aeea18ffc82eda69060f1',1,'tinanet']]], ['remove_5ffalse_5fnodes',['remove_false_n...
2e4f7e0c4ede0ba5692d785cbaa47c82091c67f020c09106ddd2c00d3c8c6d9b
JavaScript
906
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/bg",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Моля въведете с "+t+"...
a0bb08cc8650193ec766a849f035eaa223f5244e0e9d240f44100c59786f7523
JavaScript
909
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ro",[],function(){return{errorLoading:function(){return"Rezultatele nu au putut fi incărcate."},inputTooL...
e1a5f6112cc8c575ccff8e4f8e5a05cdb74e90406f1bc9742f36e7f5ad3b4be6
JavaScript
913
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/lt",[],function(){function e(e,t,n,r){return e%10===1&&(e%100<11||e%100>19)?t:e%10>=2&&e%10<=9&&(e%100<11...
2566a7d79c5a2de0d28910108212b8ff309a8d932aa1e4de04b733e3c19f79c8
JavaScript
920
26
'use strict'; /* eslint-disable import/no-extraneous-dependencies */ import test from 'tape'; import * as ld from '../../../app/render/state/ducks/loading'; test('applyAsyncLoading properly wraps and dispatches', (t) => { t.plan(2); let dispatchCount = 0; const _dispatch = () => (++dispatchCount && 42); // esl...
915c716c12c4743eef03d94071ada7c92d5a000fc0658f62fff5058dca5ac246
JavaScript
921
29
// Scott Hale (Oxford Internet Institute) // Requires sigma.js and jquery to be loaded // based on parseGexf from Mathieu Jacomy @ Sciences Po Médialab & WebAtlas sigma.publicPrototype.parseJson = function(jsonPath,callback) { var sigmaInstance = this; jQuery.getJSON(jsonPath, function(data) { for (i=0; i<data.nod...
8abdffb4f36a850eab8be2776323a5b1926b6dd06f502de26e962c11f74cb608
JavaScript
925
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/pl",[],function(){var e=["znak","znaki","znaków"],t=["element","elementy","elementów"],n=function(t,n){if...
1bf30b3b9047d949e216a3a3b0ab84b118b516fd52a2ba4a30a1934f86b8c60c
JavaScript
930
40
const SAVE_SUSPENDED_RUN = 'SAVE_SUSPENDED_RUN'; const DELETE_SUSPENDED_RUN = 'DELETE_SUSPENDED_RUN'; const INITIAL_STATE = {}; export const selectSuspendedRunsStates = state => state.suspendedRuns; export const saveSuspendedRun = (runId, runState) => ({ type: SAVE_SUSPENDED_RUN, payload: { runId, runSta...
cd13396347e9834bb457bae4478f9980710b5b6823e180c40dad2cc7fcf27b6a
JavaScript
938
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/sr",[],function(){function e(e,t,n,r){return e%10==1&&e%100!=11?t:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?...
c3cf6e0fbe6f69c15e4ac22cb5e710206dc0a7d376e4fdab37d5ad2997f1c4a5
JavaScript
939
32
const Joi = require('joi'); module.exports = { schema: Joi.object().keys({ meta: Joi.object().keys({ id: Joi.string().required(), description: Joi.string().required(), name: Joi.string().required(), repository: Joi.string().required(), version: Joi.string().required(), }).unknow...
44772867b19a106c85e9368b8a6f9e5b81684072496643d7d5708ba71b9a9038
JavaScript
951
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/he",[],function(){return{errorLoading:function(){return"שגיאה בטעינת התוצאות"},inputTooLong:function(e){v...
4db318ec8c546f2eca8992a783e4841ef09abe892ceddf2137bef5f7694b7cc6
JavaScript
951
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/th",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="โปรดลบออก "+t+" ตัวอั...
09cec34ca5b7d183eb65885a5d5178eaa4156ac8a9a1ce559119f17a45296828
JavaScript
955
38
import { compact, map, split, takeRight, } from 'lodash'; const INITIAL_STATE = { logs: [], }; // Actions const APPEND_LOG_MESSAGE = 'APPEND_LOG_MESSAGE'; const SET_CONSORTIA_FILE_TREE = 'SET_CONSORTIA_FILE_TREE'; // Action Creators export const appendLogMessage = message => ({ type: APPEND_LOG_MESSAGE, payload:...
0927c7c97466527fdc5508169c861c10ea3f6164ad61bf91af56fc2d87d509eb
JavaScript
962
30
const progressBox = document.getElementById('progress-box') const submitBtn = document.getElementById('submit-btn') const form = document.getElementById('form') // add loading bar after submition submitBtn.addEventListener('click', ()=>{ progressBox.innerHTML = `<div class="progress"> <div class="indetermin...
fdc7981b522753947aac05a755cdd5dd8d8e6dd4ffcb8ff45ac08914262205b0
JavaScript
962
19
// which shipped template to compare against by default, given the current // target/alt-frontal/CoM settings - ported from frontend_legacy/app.js's // defaultTemplateForCurrentResult(). clipped_template_xy is built in the // sellion frame; the subnasal variants are built in the alt-frontal frame - // picking the wrong...
ce4850dd6b655fd0c9470ddecddb616fe798e7ca52ed946a682909b56dc10dc2
JavaScript
975
36
// create a .env file and set the port, database username & password in it, check dotenv website for details. import dotenv from 'dotenv' import Koa from 'koa' import koaRouter from 'koa-router' import Cors from '@koa/cors' import V1Route from '@server/routes/v1/router.js' import ScreadRoute from '@server/routes/route...
033061bf4c7d4d418251e36cb9248ddd49d3d70481661b60a7d07b2e85dc707b
JavaScript
979
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/mk",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Ве молиме внесете "+e...
ca0354f76f4e893ae6398411e6e95b13b865b69346e785e99c97f6cbb45ad331
JavaScript
991
36
/** * Configure render-process error handling. */ import { ipcRenderer } from 'electron'; function onError(error) { ipcRenderer.send('write-log', { type: 'error', message: `Unhandled error: ${typeof error === 'object' ? JSON.stringify(error) : error}`, }); } function onUnhandledRejection(event) { ipc...
2dde4e4c49ba45b7e20fa4718b6710b1a5afe07853fdce3743d2f774d9523cff
JavaScript
994
37
const CORE_CONFIGURATION = { logger: { silly: () => {}, }, userId: 'test-1', logLevel: 'info', appDirectory: '/etc/coinstac', fileServer: { hostname: 'localhost', pathname: '/transfer', port: '3300', protocol: 'http:', }, mqttServer: { hostname: 'localhost', pathname: '', ...
e3bf859a2ae3c5e267b91ffdd20dce5380f20587435d22f4ffcaa3676ae723b5
JavaScript
1,004
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/fa",[],function(){return{errorLoading:function(){return"امکان بارگذاری نتایج وجود ندارد."},inputTooLong:f...
8ddd8121ff3ee11c0b0340956ec0dd8071836d77f169692ae190342f40798489
JavaScript
1,007
11
var searchData= [ ['mainpage_2emd',['mainpage.md',['../mainpage_8md.html',1,'']]], ['make_5fdegree_5fhistogram',['make_degree_histogram',['../namespacetinaui.html#a11d817a12528a3cebf5ce0f1ae89a848',1,'tinaui']]], ['make_5flength_5fhistogram',['make_length_histogram',['../namespacetinaui.html#a477ab7ba0ad9dcc9a393...
08516a1ccac4b83777d20ef2ce2afd187c14bf5dab3b66558c2d1fe802560b46
JavaScript
1,025
28
// forward: aligned = raw @ R.T + t (matches RigidTransform.apply in // craniumpy_core.registration.rigid). rotation is 3x3 row-major, // translation is [x, y, z] - see RegisteredTransformResponse. export function applyTransform(point, transform) { const { rotation: R, translation: t } = transform; const p = [point...
b5eb2ae230c12dcfc3a226a84ec9e9f04d6873c4a4bce249684bbeaec2f60f6b
JavaScript
1,041
34
'use strict'; /* eslint-disable import/no-extraneous-dependencies */ // find ~/.coinstac/* ! -name computations -maxdepth 0 -exec rm -rf '{}' \\; const pify = require('util').promisify; const CoinstacClient = require('coinstac-client-core'); const compact = require('lodash/compact'); const fs = require('fs'); const ...
b4b422bd1ac6390dd810915fa0b79623931486b1bb50d41052c323ace21a604e
JavaScript
1,061
54
/* jshint indent: 2 */ module.exports = function(sequelize, DataTypes) { return sequelize.define( 'cell_meta', { id: { type: DataTypes.INTEGER(11), allowNull: false, primaryKey: true, autoIncrement: true }, cell_name: { type: DataTypes.STRING(50), ...
7a8431e1b0e598cfe1884fe9611e4fb0d0b4609de4d90dfc714f4b3c2079a998
JavaScript
1,063
37
'use strict'; /* eslint-disable global-require, import/no-extraneous-dependencies */ // Conditionally load development services if run from CLI if ( process.defaultApp && process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' ) { // active long stack trace const chain = require('stack-chai...
08477b831e5cd77d594048a6fac77016733ef11fd6e082e4decdc1e7da6a31c2
JavaScript
1,065
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/km",[],function(){return{errorLoading:function(){return"មិនអាចទាញយកទិន្នន័យ"},inputTooLong:function(e){va...
b397ff0f453baf6b6153a50f040249f2bcca154426460cc4e58dcad3b6a685b9
JavaScript
1,067
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/sr-Cyrl",[],function(){function e(e,t,n,r){return e%10==1&&e%100!=11?t:e%10>=2&&e%10<=4&&(e%100<12||e%100...
f85be27cf925719c92e2b5a0b5b3ee382b202127df62935698aec69d73cd05a5
JavaScript
1,079
12
var searchData= [ ['idx',['idx',['../classtinacell_1_1Cell.html#a450192a9dc64632077e019cf34eb0300',1,'tinacell::Cell']]], ['imgdict',['imgdict',['../classtina__main_1_1dataset.html#a3e2994d294361c8e972d8f32bf0b8237',1,'tina_main::dataset']]], ['inches_5fper_5fpt',['inches_per_pt',['../namespaceanalyze__ocn.html#a...
35b34e473e1605d24acd7121feccb0badfa87f3d7e1666e6c6f897e0e0ce8f36
JavaScript
1,085
15
var structpartition__s = [ [ "charindices", "structpartition__s.html#a935bde1e643aaafb17899da23e5f16cd", null ], [ "chtype", "structpartition__s.html#a7e00da35f578f457ccf2df0f20b0be6a", null ], [ "finalfxn", "structpartition__s.html#ac129c5202366a29a93f5dfe0c4e68501", null ], [ "inappdownfxn", "structpa...
f0835dd4109f2504a706856bb3e8a20d16dbad46b14f8b6dbb81e8402774c354
JavaScript
1,115
35
#!/usr/bin/env node require('cross-fetch/polyfill'); const { readFileSync } = require('fs'); const authenticate = require('./auth'); const createApolloClient = require('./apollo-client'); const subscribeToNewRuns = require('./subscription'); const { create: createCoinstacClientCore } = require('./initialize-coinstac-c...
2ec3c1439ab9c62b2a5f181d57861ff0253c14eee68676115319bbb495cd9781
JavaScript
1,117
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/uk",[],function(){function e(e,t,n,r){return e%100>10&&e%100<15?r:e%10===1?t:e%10>1&&e%10<5?n:r}return{er...
8539030558fc652969917bfb25735604ddcd5b173c9593c18a8dc4472cb9350c
JavaScript
1,125
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/hi",[],function(){return{errorLoading:function(){return"परिणामों को लोड नहीं किया जा सका।"},inputTooLong:...
d169fb88727341b285d87df25e199022413370a9b9edbd254a2921df4d9dbe21
JavaScript
1,125
38
import dataset from '@server/models/v1/dataset.js' const getDatasetTable = async function(ctx) { const result = await dataset.getDatasets() ctx.body = result } const getDatasetById = async function(ctx) { const id = ctx.params.id // get id from context url const result = await dataset.getDataset(id) // return...
60e2289785330f6046bf3dbccda6abc1d5036b0a4a4e612921cbe4c1a9260074
JavaScript
1,127
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ru",[],function(){function e(e,t,n,r){return e%10<5&&e%10>0&&e%100<5||e%100>20?e%10>1?n:t:r}return{errorL...
bbf5436712d1081ada170b28beecd927db11ffc1ac953ef8c1f1b57d9d924bca
JavaScript
1,131
47
const { eventEmitter, WS_CONNECTION_STARTED, WS_CONNECTION_TERMINATED, USER_CONNECTION_CHANGED, } = require('./events'); // A map that stores the current ws connections on the server. // key: ws connection id // value: id of the connected user const connections = new Map(); function getOnlineUsers() { const...
1db8e7286d5f1a4b3a107591eb5d370b9924f2b30b139febb0f1b1f5dd63c4a6
JavaScript
1,132
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/el",[],function(){return{errorLoading:function(){return"Τα αποτελέσματα δεν μπόρεσαν να φορτώσουν."},inpu...
8c89818b1d85112e9b0e61ab6537f3870e80b2e97b324a477e3406a0b26be5b1
JavaScript
1,138
58
const { MongoClient, ObjectID } = require('mongodb'); let client = null; let db = null; const MONGO_CONN_STRING = process.env.MONGODB_CONN_STRING; async function connect() { client = new MongoClient(MONGO_CONN_STRING, { useUnifiedTopology: true, }); await client.connect(); } function createDbInstance() { ...
37b88fbeb78f4597ce5e5bc0c00646c24f601efa8fbfecceaf1ceae6c56f5a80
JavaScript
1,143
43
module.exports = { parser: 'babel-eslint', parserOptions: { ecmaVersion: 2017, ecmaFeatures: { experimentalObjectRestSpread: true, jsx: true, }, }, extends: 'airbnb', env: { node: true, commonjs: true, mocha: true, es6: true, browser: true, }, /** * {@link h...
d3cf4d84a732e5c6e1cd2720eaf5847e85f122dcc5a7156c6182760bb28c4141
JavaScript
1,151
26
/*global gettext*/ (function($) { 'use strict'; $(document).ready(function() { // Add anchor tag for Show/Hide link $("fieldset.collapse").each(function(i, elem) { // Don't hide if fields in this fieldset have errors if ($(elem).find("div.errors").length === 0) { ...
15888afc812a2f7c9f75cf8b98f6acb27d259c4b2183fb36fccaadea8663708e
JavaScript
1,162
45
/* eslint-disable-next-line import/no-unresolved */ const test = require('ava'); const { transformToClient } = require('../src/utils'); test('transformToClient', (t) => { const inputArray = [ { _id: 'test1', username: 'test1' }, { id: 'test2', _id: 'test2', username: 'test2' }, null, 'test3', { i...
4415f41803a22bb8a05f8839cd11e456a7467939a5275c03a4d0b4846ea11fc9
JavaScript
1,176
58
/* jshint indent: 2 */ module.exports = function(sequelize, DataTypes) { return sequelize.define( 'publication', { id: { type: DataTypes.INTEGER(11), allowNull: false, primaryKey: true, autoIncrement: true }, data_id: { type: DataTypes.STRING(50), ...
4f99c25495f9d878a648bc3ccab30a4d276f2db4b2b1aa29b0ab689272283618
JavaScript
1,184
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/sk",[],function(){var e={2:function(e){return e?"dva":"dve"},3:function(){return"tri"},4:function(){retur...
b8f3050733f3d709c06c2a991e61e0ddd2d7e1bbf9748037be4b44be6bc39b4d
JavaScript
1,184
12
var searchData= [ ['lim_5fregion',['lim_region',['../namespaceanalyze__ocn.html#a21bbc2265f0d11d667504b9d412cc7f4',1,'analyze_ocn']]], ['limit_5fvoi_5fto_5fnodes',['limit_voi_to_nodes',['../namespacetinaviz.html#ac99c5055d010314a412b2cf152e09d38',1,'tinaviz']]], ['lin',['lin',['../namespaceanalyze__ocn.html#a5d76...
36b57d230d3c1bdbc4c1ef7e0a6429fc66e6ba35d13c8f6579bb20c62477150f
JavaScript
1,187
46
function parsePipelineInput(pipeline, dataMappings) { const steps = []; const filesArray = { files: [], directories: [], baseDirectory: null, }; pipeline.steps.forEach((step, stepIndex) => { const consortiumMappedStepData = dataMappings ? dataMappings.map[stepIndex] : null; if (!consortiu...
32c3937f33636b8fb58d2d27eae88b31b955f0d080bd8562fb966565801fda5d
JavaScript
1,195
62
/* jshint indent: 2 */ module.exports = function(sequelize, DataTypes) { return sequelize.define( 'de', { id: { type: DataTypes.INTEGER(11), allowNull: false, primaryKey: true, autoIncrement: true }, p_val: { type: 'DOUBLE', allowNull: true ...
25f6511821475f3a88818fe8391ea374be0990f867bb189d840b271e6511de7c
JavaScript
1,225
45
/** * Store configuration. * * This configures the Redux store by adding middleware. See Redux's * 'Real World' example: * * @{@link https://github.com/rackt/redux/blob/master/examples/real-world/store/configureStore.js} */ import { applyMiddleware, createStore } from 'redux'; import { persistStore } from 'redu...
e96659f7bb21c98de01aa7c05da935443c2d0f695590c3c0d23130c2a477d1dd
JavaScript
1,236
3
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/cs",[],function(){function e(e,t){switch(e){case 2:return t?"dva":"dvě";case 3:return"tři";case 4:return"...
4d16013b60e32c040d58fb49d3d29ba5daee03412e7209a33c2f795927b7a7a4
JavaScript
1,247
48
const { ApolloClient, InMemoryCache, ApolloLink, HttpLink, concat, split, } = require('@apollo/client/core'); const { getMainDefinition } = require('@apollo/client/utilities'); const { WebSocketLink } = require('@apollo/client/link/ws'); const ws = require('ws'); function createApolloClient(authToken) { const http...
4bc344986ab8367f8020ef3f392d5d339614f5355c1d5e80f181755e22af2dfd
JavaScript
1,252
48
import db from '@server/config/db.js' import Sequelize from 'sequelize' // the schema directory can only access from ../ const schema = '../../schema/scread_v1/cell_type_meta.js' const screadDb = db.screadV1 // use sequelize to import table structure const ct = screadDb.import(schema) const getCellTypeById = async fu...
26c6ddf615a448f2de2d5f46d75f1d639470c14011bb27c469f2642bd9f37d85
JavaScript
1,264
54
// Usage: // 1. import { wasi_trace } from './wasi_trace.js'; // 2. Pass wasi_trace as an import object to WebAssembly.instantiate // 3. Call wasi_trace.init(instance) after instantiation var instance; var wasi_snapshot_preview1 = { fd_close: function () { return 8; }, fd_seek: function () { return 8; }, fd_...
daaca19f7176f91c976965aa48d65a89ea0463278b3ff96c62c3a08b092755fc
JavaScript
1,277
32
import * as THREE from "three"; // N distinctly-colored sphere markers at given 3D points - the Longitudinal // workspace's "check correspondence" feature (see CorrespondenceTab.jsx), // which visually confirms that the same vertex INDEX really does land on // the same anatomical spot across two same-topology meshes: ...
f65c6c4bed1f97172e2032f983b461b4fad8f3e30bad2f77baa9e3fb63a9a121
JavaScript
1,278
50
import { routerReducer } from 'react-router-redux'; import { combineReducers } from 'redux'; import { persistReducer } from 'redux-persist'; import app from './ducks/app'; import auth from './ducks/auth'; import docker from './ducks/docker'; import loading from './ducks/loading'; import localRunResults from './ducks/l...
688db04de1d689c2869d0ceae57be79a378f69ec4ad74680b44aaae7399125db
JavaScript
1,285
14
var searchData= [ ['lib',['lib',['../namespacelib.html',1,'']]], ['lib_2epy',['lib.py',['../lib_8py.html',1,'']]], ['lim_5fregion',['lim_region',['../namespaceanalyze__ocn.html#a21bbc2265f0d11d667504b9d412cc7f4',1,'analyze_ocn']]], ['limit_5fvoi_5fto_5fnodes',['limit_voi_to_nodes',['../namespacetinaviz.html#ac9...
2ae944b274e82e92e10129b5489062725bb55122e1e16e541bb9ac124d53e7c0
JavaScript
1,310
25
// matches this app's own exported-mesh naming convention (see // api/results_bundle.py's _build_mesh_files: "{stem}_rg_C.ply"/ // "{stem}_rg_F.ply" for a plain registered+clipped mesh, "..._CN.ply"/ // "..._FN.ply" for a NICP-fitted one) - shared by TimepointSlot's "already // registered file" fast path and Correspond...
75e6d68b5c6574e5b16a855c21eb081b9bf90a577b35ed54397ff561a687fb37
JavaScript
1,317
62
const packageJson = require('./package.json'); debugger module.exports = { appId: 'com.github.trendscenter.coinstac', productName: 'COINSTAC', afterSign: './scripts/utils/notarize.js', files: [ '**/*', 'build/render', '!config/local-development.json', '!config/local-local.json', '!config/loc...
0f884a6763aa72b6933662cf0618ffc778d6faa45603425eaae4f6282cb6f147
JavaScript
1,354
22
// {patientID}_{kind}_t{start}_t{end} - the folder name both the Trends // tab's "export results" button and 3D Morphing's "export video" button // create inside the user-picked destination folder (see // LongitudinalWorkspace.jsx's exportDestDir) - kind is "trend" or "morph". // patientId comes from whatever the basel...
15a5ffd69ef73c1fb428442897a5f2fef3030b65bd6af40d8eccd9a6acc89e2c
JavaScript
1,357
48
/** * Common utilities * @module glMatrix */ // Configuration Constants export const EPSILON = 0.000001; export let ARRAY_TYPE = (typeof Float32Array !== 'undefined') ? Float32Array : Array; export const RANDOM = Math.random; /** * Sets the type of array used when creating new vectors and matrices * * @param {F...
35e699753ff3fd23f07c679e4a9dbdb7f14d86de227e19893c09dabe19f8cd45
JavaScript
1,381
40
import * as THREE from "three"; function createMarker(radius, color) { return new THREE.Mesh(new THREE.SphereGeometry(radius, 16, 16), new THREE.MeshBasicMaterial({ color })); } // reconciles the marker objects in markersRef against the given landmarks // dict - adds missing ones, moves existing ones, removes ones ...
c441020828bc9e0a08d3f9287d707f2a743cf4f6875f7d816cfe3dfe2aefa13b
JavaScript
1,407
12
var searchData= [ ['fig',['fig',['../classtina__main_1_1dataset.html#ad5f46873785d99f80b713b6e7642b06d',1,'tina_main::dataset']]], ['fig_5fheight',['fig_height',['../namespaceanalyze__ocn.html#a8ac7bfcd5f6ba4c189247f6fdce17514',1,'analyze_ocn']]], ['fig_5fsize',['fig_size',['../namespaceanalyze__ocn.html#aaf438ee...
72d83cd25aeadc9c257da88d08634c60a9fd6ec913175c62a4b1be095119f81f
JavaScript
1,432
14
var searchData= [ ['cdict',['cdict',['../namespaceanalyze__ocn.html#a77c0714a32677bf88a73b7b2e4e41089',1,'analyze_ocn']]], ['cell',['Cell',['../classtinacell_1_1Cell.html',1,'tinacell']]], ['cell_5factorsl',['cell_actorsl',['../classtina__main_1_1dataset.html#a9bdc3349af013b9585445d6bfef116ed',1,'tina_main::datas...
1acb9f80b1609c707844e4c8710c1aac1e9db1a464d51eeff0f694a3c2723a97
JavaScript
1,434
76
const schemaFields = { consortiumFields: ` activePipelineId: ID activeComputationInputs: [String] delete: Boolean description: String! name: String! tags: [String] owners: JSON members: JSON activeMembers: JSON pipelines: [ID] results: [ID] isPrivate: Boolean mapped...
8d65a4bf5327b44b945883cb808ab0b8c6ad0bc4f31abd0c3b07ed8c7ccb44de
JavaScript
1,452
49
import { isFunction, isObject, keys as getKeys } from 'lodash'; function cleanRemoteResponse(fn) { // wrap fn with fn that will de-ref the remote obj and return // a pure representation of the results function cstacRenderRemoteCall(...args) { const lastNdx = args.length - 1; // detect if callback passed,...
0a6ffca926549b5c56ebca84d99920bf456856dce3685d935c73caf31bb089ba
JavaScript
1,465
56
/* eslint-disable react/jsx-filename-extension */ import 'core-js/stable'; import 'regenerator-runtime/runtime'; import { ipcRenderer } from 'electron'; import React from 'react'; import { render } from 'react-dom'; import { Provider as ReduxProvider } from 'react-redux'; import { hashHistory } from 'react-router'; im...
c4292e674f13ee594b6bb854c37002fcb9bb81438e3b93129e81bbe29e7067bf
JavaScript
1,480
20
var struct_morphy__t = [ [ "asfloat", "struct_morphy__t.html#a858c072a3b4277c5674ae0a38d45513a", null ], [ "asint", "struct_morphy__t.html#a0d9a90df9da43f1d1849d1412c578506", null ], [ "char_t_matrix", "struct_morphy__t.html#a9bb4764caf6767c70177e4e424711126", null ], [ "charinfo", "struct_morphy__t.htm...
b17b3abc5fb089dc23954692a0741279e26e6af44097e9eba32cdd97a6a1a186
JavaScript
1,501
51
// fetch badge as html code //var returned_text = fetchText(); // write badge to disk, to be able to use it in markdown later //download(returned_text, "./source/html/generate-badge.txt", "text/plain"); //const { default: fetch } = await import('node-fetch.js') var nf = require("node-fetch"); const { JSDOM } ...
e2de893bdc170f0cda76085e30d3f4525dec303107fd85b484689823d805eac7
JavaScript
1,520
34
// pure raycasting helpers - no React, no landmark-naming logic. Viewer // wires these to DOM events; App decides what a hit point actually means. export function pointerToNdc(event, canvas) { const rect = canvas.getBoundingClientRect(); return { x: ((event.clientX - rect.left) / rect.width) * 2 - 1, y: -(...
a8bc6a03a0fefe2a735fb2b762b7f8a68a2da89abe79a62259b22e844fbfdb6a
JavaScript
1,531
47
/* eslint-disable no-console, import/no-extraneous-dependencies */ const fs = require('fs').promises; const { build, Platform, Arch } = require('electron-builder'); const config = require('../electron-builder.config'); const { NODE_ENV, DEPLOY } = process.env; const buildConfig = {}; if (NODE_ENV === 'production' &&...
a0734eabee8ba37810f420e1c3296756131686f8354247db049381742865ed2b
JavaScript
1,532
54
'use strict'; const cp = require('child_process'); const electron = require('electron'); const { promisify } = require('util'); const os = require('os'); module.exports = function buildNative() { const exec = promisify(cp.exec); return Promise.all([ exec(`${electron} --version`, { encoding: 'utf8' }), ex...
a043ca9a9869bd92b54027e5b0628bac6e87c53bff3c850691c2635251b68e8f
JavaScript
1,535
66
import db from '@server/config/db.js' // the schema directory can only access from ../ const schema = '../../schema/scread_v1/dataset.js' import Sequelize from 'sequelize' const screadDb = db.screadV1 // use sequelize to import table structure const dataset = screadDb.import(schema) const getDatasets = async function(...
3c23709aeae295c9d31fcbdef105dd00cd2b1c75af2c868253a1c49f244a2728
JavaScript
1,538
42
/*global URLify*/ (function($) { 'use strict'; $.fn.prepopulate = function(dependencies, maxLength, allowUnicode) { /* Depends on urlify.js Populates a selected field with the values of the dependent fields, URLifies and shortens the string. dependencies -...
0a93750b499bab8742ea292da177eff168ee9f2dd5cb904c3d145d4c96e7746c
JavaScript
1,544
54
import db from '@server/config/db.js' import { Op } from 'sequelize' import _ from 'lodash' // the schema directory can only access from ../ const schema = '../../schema/scread_v1/cell_meta.js' const screadDb = db.screadV1 // use sequelize to import table structure const dimension = screadDb.import(schema) const getA...
f3dceeaa3b6cfef39d922b3ea21c5da7990738a8ee28a150b4b223c91c4cc5b6
JavaScript
1,567
47
import * as PIXI from 'pixi.js'; /* A Loader-mimicking class that provides access to spritesheets already loaded in memory. Thanks to https://github.com/pixijs/pixi.js/issues/5597 */ export class PixiInMemoryLoader { resources = {}; /** * Adds a spritesheet with the given name, loading from the given sp...
08fd34d3d850141a4e7bc6ec35a6e04ff61f1082e0b92bf8289442be78365256
JavaScript
1,570
79
const backingStore = {}; const init = (storeKey) => { if (!backingStore[storeKey]) backingStore[storeKey] = {}; const store = backingStore[storeKey]; const put = (group, id, key) => { if (store[group]) { store[group][id] = key; } else { store[group] = { [id]: key }; } }; const get ...
6015156418689443c97ce58f3ddd11c224f0d5f7b5d9eab4f51d408d0beff81c
JavaScript
1,575
2
!function(e){function r(r){for(var n,l,a=r[0],f=r[1],i=r[2],p=0,s=[];p<a.length;p++)l=a[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(c&&c(r);s.length;)s.shift()();return u.push.apply(u,i||[]),t()}function t(){for(var e,r...
a9aa9709014cb5e90eb78ef191c6c1243b2aa9614f8c927634632e8b1241b4b5
JavaScript
1,603
62
const { dirname } = require('path'); function mapData(pipeline, headlessClientConfig) { const steps = []; const filesArray = { files: [], baseDirectory: null, }; pipeline.steps.forEach((step) => { const inputMap = {}; const stepMappedData = headlessClientConfig[step.computations[0].id]; O...
fd2cb72f0ebc768c438596643008233a1ad5039296d92d052d240ba83091f2b0
JavaScript
1,612
57
const { EventEmitter } = require('events'); const COMPUTATION_CHANGED = 'COMPUTATION_CHANGED'; const COMPUTATION_DELETED = 'COMPUTATION_DELETED'; const CONSORTIUM_CHANGED = 'CONSORTIUM_CHANGED'; const CONSORTIUM_DELETED = 'CONSORTIUM_DELETED'; const CONSORTIUM_PIPELINE_CHANGED = 'CONSORTIUM_PIPELINE_CHANGED'; const ...
d73289ba12610328e057033bddee79350864f2d8b1c855ae35c8507ef577f614
JavaScript
1,614
67
import * as PIXI from "pixi.js"; export default class PixiMultiselect extends PIXI.Graphics { points = []; fillColor; strokeColor = null; hidden = false; constructor(fillColor, strokeColor = null) { super(); this.fillColor = fillColor; this.strokeColor = strokeColor; } addPoint(x, y) { ...
33fad9a61868ca2e8f803ffe3d6bd5c77cc14d602f06d840875ac11fd6405aad
JavaScript
1,624
77
/* eslint-disable no-case-declarations */ import { ipcRenderer } from 'electron'; import { v4 as uuidv4 } from 'uuid'; import { ERROR, INFO, SUCCESS, WARNING, } from '../../utils/notification-severity-codes'; const INITIAL_STATE = { notifications: [], }; // Actions const ENQUEUE_NOTIFICATION = 'ENQUEUE_NOT...
5cdb0b59a82f2699a2a1e50e603edb6766b5d06af8bcd8a3f1d90a6912a31568
JavaScript
1,624
70
import bitap from 'bitap'; function isAMatch(variable, column) { // Match if column and variable are equal if (column === variable) { return true; } // Match if column contains variable and vice versa if (column.length < variable.length) { const sch = variable.replace(/[_-\s]/g, ' '); if (sch.in...
ccf73d45d3e0e0fd76a11eb08de7157d6025734e0158d99b640752594d72252b
JavaScript
1,624
24
var searchData= [ ['th',['th',['../namespaceanalyze__ocn.html#a1ac1490de46fe845efe907a089d9fd50',1,'analyze_ocn']]], ['thr_5fextreme',['thr_extreme',['../namespacetinaimg.html#a14fe147a4c0c335a18b96e7febcc0b9c',1,'tinaimg']]], ['thrparams',['thrparams',['../namespaceanalyze__ocn.html#a543431dab18e1d58ba21c94305dd...
029f5fbe842e6f9a81422708e1b563fb7679bbd441236f3a28585d8b1caa1313
JavaScript
1,625
15
var searchData= [ ['adaptive_5fthresholding',['adaptive_thresholding',['../namespacetinaimg.html#a233119a5bb41fb63dccbc6aae40bccd6',1,'tinaimg.adaptive_thresholding()'],['../namespacetinaui.html#accf347c1756704cdd0b90bbfb7685b85',1,'tinaui.adaptive_thresholding()']]], ['adaptive_5fthresholding_5fold',['adaptive_thr...
5dd1bd3909e240166ecdc871366a26a7ffcff0b1972dc2a3e134e8ea2374c7bc
JavaScript
1,629
39
import * as THREE from "three"; // per-vertex "nodes" overlay - a THREE.Points sibling per mesh child, // sharing that child's own geometry (so the dots always sit exactly on // the mesh's actual vertices) - added as a child of the mesh itself so it // inherits position/rotation/scale for free. lets a live NICP fit sh...
da8b8507d3d5e2a6fa6ed018a8573e98c51ceb9d49ab864f55727b01a17f6536
JavaScript
1,634
5
var $jscomp={scope:{},findInternal:function(a,c,b){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(c.call(b,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,b){if(b.get||b.set)throw new Ty...
e8a12705682c5d6f600a044e402fb92585404023a3636cf0fb962c21c4e38939
JavaScript
1,637
66
import de from '@server/models/v1/de.js' const getDeTable = async function(ctx) { const id = ctx.params.id // get id from context url let other = ctx.request.query if (other.type === 'subcluster') { const result = await de.getSubclusterDeTableById(id, other) ctx.body = result } else if (other.type === ...
0bec7d54741e56ea00c7c60de1764ee7251e306fe87d519c5ed088d316b4105a
JavaScript
1,647
57
/* eslint-disable no-console */ const CoinstacClientCore = require('coinstac-client-core'); const winston = require('winston'); const path = require('path'); const mkdirp = require('mkdirp'); const appDirectory = path.resolve('/tmp/.coinstac') || process.env.COINSTAC_HEADLESS_WORKDIR; async function create(config, au...
aa85d0b3f62fd483e0ce8bce9819eafae710f4c1ca290622480ab1f3bb9b7658
JavaScript
1,655
44
/* eslint-disable no-console, import/no-extraneous-dependencies */ const path = require('path'); const { execSync } = require('child_process'); const fs = require('fs'); const yaml = require('js-yaml'); const { appBuilderPath } = require('app-builder-bin'); const packageInfo = require('../package.json'); const APP_NAM...
af90e8d06a290328f5c9cd74f7229133169334695a5737aaf615f1b573c402f0
JavaScript
1,665
72
const consortium = require('../lib/consortia'); const pipeline = require('../lib/pipeline'); const { setup, afterHandler, afterEachHandler, beforeHandler, beforeEachHandler, } = require('../lib/setup'); const user = require('../lib/user'); const { USER_1 } = require('../lib/constants'); let appWindow; const...
2c6dcfec45fcdf8eb2332f47c4f5a8ef6a67c50288299953a658ea0e1a958a2c
JavaScript
1,706
69
const fs = require('fs'); const CsvReadableStream = require('csv-reader'); const { ipcMain, Notification, app, } = require('electron'); ipcMain.handle('quit', () => app.quit()); ipcMain.handle('relaunch', () => { app.relaunch(); app.quit(); }); ipcMain.handle('parseCsv', (event, files) => { const readPromi...
13e6a6a6dfdfef88d1c88a41b45915613b720021f474ce76b5825bda2668875e
JavaScript
1,714
13
var searchData= [ ['parse_5fxml',['parse_xml',['../namespacetinaui.html#a046cbe09726bea67e0d2af248f417746',1,'tinaui']]], ['plot_5fcell_5faxis',['plot_cell_axis',['../namespacetinaviz.html#acc45890dbd7f1beb8fd1edc6df705cb1',1,'tinaviz']]], ['plot_5fgraph',['plot_graph',['../namespacetinaui.html#a25301932febde3ed6...
a8250667e8265edb8f8767b9197994296f37fd6fafc4a7ff170e4d0748dbdfbd
JavaScript
1,716
67
import db from '@server/config/db.js' // the schema directory can only access from ../ const schema = '../../schema/scread_v1/expression.js' const screadDb = db.screadV1 // use sequelize to import table structure const expression = screadDb.import(schema) const getExprById = async function(id) { // note is is asyn...
4668397b9df02dafc1317fd07f39f78b33915da1e12e6c36526d31509d211066
JavaScript
1,722
82
/* jshint indent: 2 */ module.exports = function(sequelize, DataTypes) { return sequelize.define( 'dataset', { id: { type: DataTypes.INTEGER(11), allowNull: false, primaryKey: true, autoIncrement: true }, data_id: { type: DataTypes.CHAR(50), a...
244c06c89a9eb2cff0943da1aeac34828a39b3674de81ca50c58fc010691e295
JavaScript
1,724
82
/* jshint indent: 2 */ module.exports = function(sequelize, DataTypes) { return sequelize.define( 'dataset2', { id: { type: DataTypes.INTEGER(11), allowNull: false, primaryKey: true, autoIncrement: true }, data_id: { type: DataTypes.CHAR(50), ...
d7bf5dc198801974acdc492350a934b100ecda994b4f620a63fcd71e4f2d70f3
JavaScript
1,733
81
const getDefaultValuesFromComputation = (computation) => { if (!computation?.input) { return {}; } return Object.keys(computation.input).reduce((acc, key) => { const inputField = computation.input[key]; if ('default' in inputField) { acc[key] = { fulfilled: inputField.source === 'owner...
ca1d36a014758df45ce53bc97c19f26d2b1deac50b81bbcf24b0c044eb1e6763
JavaScript
1,736
16
var searchData= [ ['reduce_5falpha',['reduce_alpha',['../namespacetinanet.html#a4e0f679900be0a6855b3e1d6e859eac4',1,'tinanet']]], ['remotefolder',['remotefolder',['../classtina__main_1_1dataset.html#ac86715e927bdd13549b79bf24ff08678',1,'tina_main::dataset']]], ['remove_5fcells_5ffrom_5fnetwork',['remove_cells_fro...