sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
16db5b7e1c87bebe70acfc53e0dc8daa4354a458c1fa4b64239cac12a48000ae | JavaScript | 4,681 | 118 | /* Pure, framework-free logic for the Clock Explorer. Browser + Node. */
(function (root) {
"use strict";
var FACET_FIELDS = ["data_type", "species", "platform", "model_type", "unit", "tissue", "last_author", "journal", "predicts", "training_target", "population", "approved_by_author"];
var NUMERIC = { n_feature... |
81bd918c666e99274c3e181770c75ae36d1148de3d4999a8cb68c9cf03d64931 | JavaScript | 4,753 | 167 |
import axios from 'axios'
import { Message } from 'element-ui'
import store from '@/store'
import { getToken , getTenantId ,getRefreshToken} from '@/utils/auth'
// 创建一个axios实例
const request = axios.create({
baseURL: process.env.VUE_APP_BASE_API,
timeout: 60*1000*120
})
const request1 = axios.create({
tim... |
492f5c4029023ed47d9abeaa484ddb3c90d01945919541d8b9a8a0e8d55d5c21 | JavaScript | 4,766 | 197 | if( $('#main-content-seminar-users')[0] )
{
/*
* Create new info resource form.
*/
$('#user-new-modal')
.modal({
detachable : false,
onHidden : function() {
$(this).form('clear');
},
})
.modal('attach events', '.user-new... |
8aa050bf57ebb68b3deff51f81ec5c172ee15137e3aba48dcebbfd23553f9fb8 | JavaScript | 4,796 | 153 | // Localization support
const messages = {
'en': {
'copy': 'Copy',
'copy_to_clipboard': 'Copy to clipboard',
'copy_success': 'Copied!',
'copy_failure': 'Failed to copy',
},
'es' : {
'copy': 'Copiar',
'copy_to_clipboard': 'Copiar al portapapeles',
'copy_success': '¡Copiado!',
'copy_... |
393a6813427a285c544634219498054454786b99a73239938e4b69ebcf47ae2e | JavaScript | 4,798 | 171 | // Sphere creation
// Author: Luke Hammond (lh2881@columbia.edu)
// Cellular Imaging | Zuckerman Institute, Columbia University
// Date: 10th December 2019
//
// This script creates spheres in javascript to greatly increase speed for processing millions of cells.
// Since sphere creation generates boxes, spheres a... |
969844671da661e70ab366e431ab2b75368ed2a689d51a568f51f473005db845 | JavaScript | 4,816 | 141 | jest.mock('node-fetch', () => jest.fn());
jest.mock('../../main/nodejs/awsappsyncutils');
jest.mock('../../main/nodejs/utils');
import fs from 'fs';
import * as utils from '../../main/nodejs/utils';
import * as awsappsyncutils from '../../main/nodejs/awsappsyncutils';
import * as cds_input from '../../main/nodejs/cds_... |
b55cc6a8e42c8de701b2cda38350c3c1d7168beccf592da2645b2122060081a9 | JavaScript | 4,868 | 138 | export function disableSpinnerRepeat(event, previous) {
// If the change from the previous value...
const change = Math.abs(event.target.valueAsNumber - previous);
// ...looks like the "step" amount specified by the spinner
// (the little up and down arrows)...
const isStep = (Math.abs(change - event.t... |
373718ed3cafc383cc24bee9fbd80ccbd02aacc3095cdc87e2493488c78a07f1 | JavaScript | 4,991 | 1 | Search.setIndex({docnames:["api","cli","dev-info","extending","index","release-history"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domai... |
a838618362ddec65d39d50efaac168f76c3cefd0ef68851ab28d7e19ae8ad6f4 | JavaScript | 5,017 | 113 | jest.mock('aws-appsync');
jest.mock('../../main/nodejs/awsappsyncutils');
import * as utils from '../../main/nodejs/utils';
import { getSearchedLibraries } from '../../main/nodejs/cds_input';
import testConfig from '../resources/test_config.json';
describe('prepare custom cds input', () => {
const OLD_ENV = pr... |
c2d6302edabdfebe0e2167b33bc8da80c0808781b5c9ef9a8d87fcc869091c42 | JavaScript | 5,101 | 141 | /* eslint-disable no-console */
// 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 upd... |
8d1666a835fe4f81b4ed63094b3de5793007a23d7244a8b1ecd25af6a87007bb | JavaScript | 5,148 | 135 | import path from "path";
import fs from "fs";
import {getObjectDataArray} from "./utils";
import Jimp from "jimp";
import {fromArrayBuffer} from "geotiff";
export const loadMIPRange = async (bucketName, key, start, end) => {
const mipPath = path.parse(key);
const mipExt = mipPath.ext;
const isEFS = bucket... |
5a54ddffb17f0652f90dd9ed59d91eecba16fd115948e37c603568b311c932f0 | JavaScript | 5,171 | 162 | import { getQueryParams } from "../../main/nodejs/published_names";
describe('testing query parameter generation', () => {
const OLD_ENV = process.env;
beforeEach(() => {
jest.resetModules(); // Most important - it clears the cache
process.env = { ...OLD_ENV, NAMES_TABLE: 'published-test', ...OLD_ENV }; /... |
a84b50912241bf75607a789e0ee55c513d174b03e2f1f4031a7f8f8ed82ddc8b | JavaScript | 5,240 | 138 | import {getSearchMetadataKey} from './searchutils';
import {
DEBUG,
invokeFunction,
putObject,
} from './utils';
import {
SEARCH_IN_PROGRESS,
updateSearchMetadata
} from './awsappsyncutils';
import {
getSearchInputParams,
checkSearchMask,
getSearchedLibraries
} from './cds_input';
const... |
fc663a7ee0fa4b95438d9d1b99cf5cd49b5bb10bfd37a2480686b699f60650d9 | JavaScript | 5,248 | 136 | import path from 'path';
import fs from 'fs';
import { getS3ContentAsByteBufferWithRetry } from './utils';
import { Jimp } from 'jimp';
import { fromArrayBuffer } from 'geotiff';
export const loadMIPRange = async (bucketName, key, start, end) => {
const mipPath = path.parse(key);
const mipExt = mipPath.ext;
... |
cf8e74340a0145a9c64b90d9216e773520a1f7b3dc1e6b9665a7b435b6da9133 | JavaScript | 5,272 | 188 | if( $('#main-content-seminar-faqs')[0] )
{
/*
* Init FAQ accordion.
*/
$('#faq-accordion').accordion({
selector: {
trigger: '.trigger.column'
}
});
/*
* Setup FAQ WYSIWYG editor.
*/
$('.faq-wysiwyg').trumbowyg({
lang: 'de',
semantic: t... |
7da4c9802a95bcc9f6bf443600297cfaa9cda15ff35c43873a011e28ef235924 | JavaScript | 5,275 | 3 | /*! For license information please see furo.js.LICENSE.txt */
(()=>{var t={212:function(t,e,n){var o,r;r=void 0!==n.g?n.g:"undefined"!=typeof window?window:this,o=function(){return function(t){"use strict";var e={navClass:"active",contentClass:"active",nested:!1,nestedClass:"active",offset:0,reflow:!1,events:!0},n=func... |
ea2fa4206a3eccfc6ffa3eaecea6f59713054a0f9fe331a9c56f78b1f3d64c2e | JavaScript | 5,571 | 1 | !function(e,n,t){function r(e,n){return typeof e===n}function o(e){var n=b.className,t=w._config.classPrefix||"";if(x&&(n=n.baseVal),w._config.enableJSClass){var r=new RegExp("(^|\\s)"+t+"no-js(\\s|$)");n=n.replace(r,"$1"+t+"js$2")}w._config.enableClasses&&(n+=" "+t+e.join(" "+t),x?b.className.baseVal=n:b.className=n)}... |
94a40724dd6fc8954838e044f727cc0c66c309bbb3d8bf3f99d309cf8be0d2f5 | JavaScript | 5,665 | 175 | // get all the searches from dynamodb that haven't been migrated
// foreach search
// get the results file for the search from s3.
// copy the .result file to a .result.2.0 file
// modify the results to match the new data format
// save it back to disk as the .result file.
import AWS from "aws-sdk";
import {
verifyK... |
f26987ed81191e0ac38eedf5e0fed92e99507bf9807388637bd81962daf8a25d | JavaScript | 5,675 | 1 | !function(r,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():e()(r.lunr)}(this,function(){return function(r){if(void 0===r)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===r.stemmerSupport)throw new Error("Lunr stemmer su... |
c66fb652ad4639a3350b84779afcae643456e146fbfebb2ff16ecc6b7b58696b | JavaScript | 5,767 | 1 | !function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su... |
6a6bc1393a364488cf3af0b32fe60ca2190f701618caa3c7e44a5128a08c9671 | JavaScript | 5,788 | 189 | import { API, Storage, graphqlOperation, Auth } from "aws-amplify";
import * as mutations from "../graphql/mutations";
import config from "../config";
// eslint-disable-next-line import/prefer-default-export
export async function deleteSearch(search) {
const { id } = search;
API.graphql(graphqlOperation(mutations.... |
384161936a8160c3df34a9adf0aa6b1fc40b627804746beaca5fcb7d0e84dc90 | JavaScript | 5,803 | 176 | // get all the searches from dynamodb that haven't been migrated
// foreach search
// get the results file for the search from s3.
// copy the .result file to a .result.2.0 file
// modify the results to match the new data format
// save it back to disk as the .result file.
import { DynamoDBDocumentClient, ScanCommand ... |
3a3c3bfb52beccafc14c8bfb287c17c91ffddc42bbd5b8c77564132b8f4f4442 | JavaScript | 5,828 | 150 | /******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ var parentJsonpFunction = window["webpackJsonp"];
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {
/******/ // add "moreModules" to the modules o... |
9999d22fac378d89149baf7259f7c20c0381d44c211238d7faef07c659bb96fb | JavaScript | 5,906 | 193 | import { API, Storage, graphqlOperation, Auth } from "aws-amplify";
import * as mutations from "../graphql/mutations";
import config from "../config";
// eslint-disable-next-line import/prefer-default-export
export async function deleteSearch(search) {
const { id } = search;
API.graphql(graphqlOperation(mutations.... |
6695f49892262fc15ad9f58c0f6c6af1740321343a3c04f035524fcd946cab96 | JavaScript | 5,936 | 167 | import archiver from 'archiver';
import { v1 as uuidv1 } from 'uuid';
import {
getObjectWithRetry,
getBucketNameFromURL,
getS3ContentAsStringWithRetry,
getS3ContentAsByteBufferWithRetry,
} from './utils';
import { PassThrough } from 'stream';
import path from 'path';
import { getSearchMetadata } from './awsapp... |
8c5fcaad1433286f32d0590a2ea0677c4458e9c39e255a55aba8145a703a62b0 | JavaScript | 5,967 | 154 | import { DynamoDBDocumentClient, QueryCommand } from "@aws-sdk/lib-dynamodb";
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
export function getQueryParams(query, filter) {
// set the defaults for the query
const params = {
TableName: process.env.CURATED_TABLE,
KeyConditionExpression: "entryTy... |
fd9a1e63c3c35d429dca1db6ada9b2c31385f84e9fd9c8f586f7f80349f0d5bf | JavaScript | 6,052 | 303 | /**
* User: CHT
* Date: 2020/5/8
* Time: 14:01
*/
import {
uuid,
vector
} from './utils'
import {
direction,
directionVector
} from './types'
export default class GraphLink {
static distance = 15
constructor(options, graph) {
const {
id = uuid('link'),
start,
end = null,
... |
43754630cb9d06536f67bca113fff6dab271da199b5d5e229eb063d1c0aaf26e | JavaScript | 6,105 | 152 | import {getSearchMetadataKey} from './searchutils';
import {
DEBUG,
invokeFunction,
putObject,
} from './utils';
import {
SEARCH_IN_PROGRESS,
updateSearchMetadata
} from './awsappsyncutils';
import {
getSearchInputParams,
checkSearchMask,
getSearchedLibraries
} from './cds_input';
const... |
ad7d94e4d239b1ff18ac4584d4df2edbfc8f7372a154d43df31738f468d92671 | JavaScript | 6,230 | 175 | import { rest } from "msw";
import publishedNames12288 from "./published_names_12288.json";
import collections from "./collections.json";
/*
import refsJSON from "./refs.json";
import devPreConfig from "./dev_pre_config.json";
import metadata1537331894 from "./1537331894_metadata.json";
import LH173metadata from "./LH1... |
1d04510ded491a1efd2014588ce91551d9d654e99d2d1117bde8296606ee55c7 | JavaScript | 6,633 | 177 | import AWS from "aws-sdk";
// https://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex
// I removed '*' from the original answer as I want that to be replaced later with .*
function escapeRegExp(string) {
return string.replace(/[.+?^${}()|[\]\\]/g, '\\$&');
}
export function getQueryPar... |
96f96f339ffe778dfcc43b79e9c00ddd18986f6d2f87c093171fe8151b90f3c1 | JavaScript | 6,778 | 178 | import { DynamoDBDocumentClient, QueryCommand } from "@aws-sdk/lib-dynamodb";
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
// https://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex
// I removed '*' from the original answer as I want that to be replaced later with .*
functio... |
6db9e6c5d022c0414a387ff2c95d7fe49883e47c354a003b896c11e108fec886 | JavaScript | 7,372 | 232 | import archiver from "archiver";
import { v1 as uuidv1 } from "uuid";
import AWS from "aws-sdk";
import {
getObjectWithRetry,
getS3ContentWithRetry,
getBucketNameFromURL,
} from "./utils";
import { PassThrough } from "stream";
import path from "path";
import { getSearchMetadata } from "./awsappsyncutils";
const... |
26a855a9db5f1aec7078a5eb8432ed2c935df537b67454c2b5715c5449f6b5ed | JavaScript | 7,378 | 183 | import {
DEBUG,
getObjectWithRetry,
getS3ContentWithRetry,
getBucketNameFromURL,
verifyKey
} from './utils';
import {
SEARCH_IN_PROGRESS,
getSearchMetadata,
updateSearchMetadata
} from './awsappsyncutils';
import { Map, Set } from 'immutable';
export const getSearchInputParams = async ... |
4fd5ee31aa38ff4a182586afbd0221bbdd29cd93ebc7ed8c788bd4e5ddd28dbf | JavaScript | 7,460 | 162 | jest.mock('@aws-sdk/lib-dynamodb');
jest.mock('@aws-sdk/client-dynamodb');
jest.mock('@aws-sdk/credential-providers');
jest.mock('@aws-sdk/signature-v4');
jest.mock('@aws-crypto/sha256-js');
jest.mock('node-fetch', () => jest.fn());
jest.mock('@smithy/protocol-http');
jest.mock('../../main/nodejs/awsappsyncutils');
i... |
227004865b31504ce75553f879caaa02324159949a20da73cc0d0efbaff2d7b5 | JavaScript | 7,823 | 106 | const assert = require("node:assert");
const core = require("../clock_explorer_core.js");
const data = [
{ clock_name: "b", data_type: "methylation", species: "Homo sapiens", platform: ["Illumina 450K", "Illumina EPIC"], model_type: "Elastic net", unit: ["years"], predicts: ["chronological age", "mortality"], traini... |
a589b1f89b3f6b91088f116e3692c593e49ead34b2c4411711105a226c5bb379 | JavaScript | 8,017 | 1 | Search.setIndex({"docnames": ["index", "pages/config", "pages/control", "pages/data", "pages/models", "pages/scripts", "pages/server", "pages/timeseries"], "filenames": ["index.rst", "pages\\config.rst", "pages\\control.rst", "pages\\data.rst", "pages\\models.rst", "pages\\scripts.rst", "pages\\server.rst", "pages\\tim... |
30ab818225f841a9be12bff40a9cb54fc110f5fba951670f76b3ea876508d7e3 | JavaScript | 8,022 | 288 | /*
* Setup Lection JS Validator.
*/
// Init basic validation rules.
var rules = {
name: {
rules: [
{
type : 'empty',
prompt : 'Bitte einen Titel eingeben.'
}
]
},
section_id: {
rules: [
{
... |
9898327c9aa69d95a13c689ac2cf9118215e529c8dc866bd61d4b61e0c3a8a94 | JavaScript | 8,133 | 303 | /* eslint-disable */
/* tslint:disable */
/**
* Mock Service Worker (1.3.2).
* @see https://github.com/mswjs/msw
* - Please do NOT modify this file.
* - Please do NOT serve this file on production.
*/
const INTEGRITY_CHECKSUM = '3d6b9f06410d179a7f7404d4bf4c3c70'
const activeClientIds = new Set()
self.addEventLi... |
c5e64b8782b46f2a88c0538ca52e709232061d4e4a362d5741b1ba38e58d17c8 | JavaScript | 8,133 | 303 | /* eslint-disable */
/* tslint:disable */
/**
* Mock Service Worker (1.2.2).
* @see https://github.com/mswjs/msw
* - Please do NOT modify this file.
* - Please do NOT serve this file on production.
*/
const INTEGRITY_CHECKSUM = '3d6b9f06410d179a7f7404d4bf4c3c70'
const activeClientIds = new Set()
self.addEventLi... |
b99c77074bc9751cd8571d4ac3070d017fefb30340909f3bf2383e61748d6f24 | JavaScript | 8,144 | 220 | /*
################################################################################
# barPlot.js 1.0.1 #
# Authors: F. Yvon (Institut Curie) #
# Contact: patrick.poullet@curie.fr ... |
671d3e2ae91725ec666bb14062dbe3d309c81596a5defc7bebb1743d4b7871e7 | JavaScript | 8,185 | 269 | import AWS from 'aws-sdk';
import AWSAppSyncClient from "aws-appsync";
import { AUTH_TYPE } from 'aws-appsync';
import gql from "graphql-tag";
require("isomorphic-fetch");
const DEBUG = !!process.env.DEBUG;
export const ALIGNMENT_JOB_SUBMITTED = 1;
export const ALIGNMENT_JOB_COMPLETED = 2;
export const SEARCH_IN_PRO... |
a850ee450345e594127dd55f377f8fe17836063741f71de75f0f613345358ede | JavaScript | 8,365 | 253 | import {
extractGreenMask,
distanceTransform,
thresholdDist,
computeBBox,
computeCropRegion,
} from './FluoTransferPeakModel';
// peakModelData.js is a build artifact (base64-encoded ONNX model) that only
// exists in dist/. Mock it so Jest can import FluoTransferPeakModel from src/.
jest.mock('./peakModelDa... |
dd9ebb4e04082c8b1d5dc30865e380a52bc4bb4e229980778ca8a3acb2083049 | JavaScript | 8,422 | 203 | import {
DEBUG,
getObjectWithRetry,
getBucketNameFromURL,
verifyKey,
getS3ContentAsStringWithRetry
} from './utils';
import {
SEARCH_IN_PROGRESS,
getSearchMetadata,
updateSearchMetadata
} from './awsappsyncutils';
import { Map, Set } from 'immutable';
export const getSearchInputParams ... |
bc728d52d504a24540fcae07ddfcf5be09fb1946a24a51c7849dd3be51138071 | JavaScript | 8,476 | 238 | import { queryDb } from './clientDbUtils';
function generateMipMatchPath(alignmentSpace, libraryName, fullImageName) {
if (fullImageName) {
if (fullImageName.includes('searchable_neurons')) {
// this is a name of a segmented image from a searchable_neurons partition
// we assume this is a segmentatio... |
c86a454ba59045a7d6113269e38494bb3009fb6892e58d0e956c522c46790dfc | JavaScript | 8,610 | 203 | // Functions to load data from files in H5J format:
// https://github.com/JaneliaSciComp/workstation/blob/master/docs/H5JFileFormat.md
// A H5J file is an HDF5 container with one or more channels of data compressed with
// H.265 (a.k.a. HEVC or High Efficiency Video Coding).
// The HDF5 container is read with th... |
2a07e8875da405bd1f52b407579330ce8bd4f2274afdeae8eb48ccb7be8d7c2f | JavaScript | 8,754 | 288 | /**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* @link http://www.phpied.com/rgb-color-parser-in-javascript/
* @license Use it if you like it
*/
function RGBColor(color_string)
{
this.ok = false;
// strip any leading #
if (color_string.charAt(0) == '#') { // remove #... |
40d2b8198c959a9f2ea2a455607e3a9e2f08435e8e41665a099822851ade6163 | JavaScript | 8,971 | 238 | // Based on the blog post by Will Usher:
// https://www.willusher.io/webgl/2019/01/13/volume-rendering-with-webgl
// The code here adds lighting, depth-based compositing of a solid surface,
// mirroring, and little tweaks like dithering to reduce aliasing.
export const vertexShaderVolume =
`
out vec3 rayDirUnn... |
0ecf985eb3d56b7aae1801943a2b55293af1b0405390207007733bc13b590711 | JavaScript | 8,989 | 1 | !function(i,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():e()(i.lunr)}(this,function(){return function(i){if(void 0===i)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===i.stemmerSupport)throw new Error("Lunr stemmer su... |
16e32f85f5f26ce3ffaab6258afa7e3ce884a32788d0e5048325d1749f28d6c8 | JavaScript | 9,082 | 1 | !function(e,n){"function"==typeof define&&define.amd?define(n):"object"==typeof exports?module.exports=n():n()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su... |
2545b7178ba4d70a28c8f6ec792ad7f414295cf610735fa025637482b32d4136 | JavaScript | 9,098 | 444 | import {request} from "@/utils/request";
// 检测部署状态,创建招募任务前,必须先配置好环境
export function softWareStatus(id) {
return request({
url: '/platform/flJobRecruit/softWareStatus',
method: 'post',
headers: {
'tenant_id': id
},
})
}
// 数据选择
export function listCurrent(params... |
7f2cffdb5311b7ffc69ae31eea64bef55a4baddd567968f92dd782f025347086 | JavaScript | 9,220 | 326 | import { fromNodeProviderChain } from '@aws-sdk/credential-providers';
import { SignatureV4 } from '@aws-sdk/signature-v4';
import { Sha256 } from '@aws-crypto/sha256-js';
import { default as fetch, Request } from 'node-fetch';
import { HttpRequest } from '@smithy/protocol-http';
const { APPSYNC_API_URL } = process.en... |
a91cd2b24ae36153d2ff4f1aa7574747eac3c8134b24444895a4623f00c06577 | JavaScript | 9,339 | 333 | const express = require('express');
const router = express.Router();
const { getDB } = require('../config/database');
const { convertStringToId, serializeDocuments } = require('../utils/serialization');
const DEFAULT_PAGE_SIZE = parseInt(process.env.DEFAULT_PAGE_SIZE) || 50;
const MAX_PAGE_SIZE = parseInt(process.env.... |
d997e4096e745061a2fa177cc5427eca2538bd14d728c7a6bd5ec9029cfdfe0d | JavaScript | 9,359 | 225 | /*
################################################################################
# idvis.linePlot.js 2.0.1 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
6255412bfc892dfc55ed7979747103d53dcc80bcc08a80738118f1d047c7d54a | JavaScript | 9,416 | 316 | /*
* doctools.js
* ~~~~~~~~~~~
*
* Sphinx JavaScript utilities for all documentation.
*
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
/**
* select a different prefix for underscore
*/
$u = _.noConflict();
/**
* make the code below compati... |
30ea5755aba82773ef24880c2ebc97f322a3fc3d90cdb41797a98c917800c1bc | JavaScript | 9,576 | 405 | import Vue from 'vue'
import Router from 'vue-router'
import LoginLayout from '@/layout/LoginMain'
import IndexMain from '@/layout/IndexMain'
import HomeMain from '@/layout/HomeMain'
import { getToken } from "@/utils/auth"
Vue.use(Router)
const whiteRouter = ['/forgetPassWord','/register','/bind','/bind-success','/bind... |
f9dbf44b338236632add9bd65b7426019d5a79a7c513c6a7c683de49d519c447 | JavaScript | 9,670 | 13 | /*
* StreamTable.js
* version: 1.1.1 (17/12/2013)
*
* Licensed under the MIT:
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2013 Jiren Patel[ jiren@joshsoftware.com ]
*
* Dependency:
* jQuery(v1.8 >=)
*/
!function(window,$){"use strict";var StreamTable=function(t,e,i){return new _Stre... |
e55ae6bbd5042b1d5d21909438f454ecbe44c4d99b2958dbc2e6c4816116323a | JavaScript | 9,815 | 1 | !function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su... |
561ea5e0438d87915fec14a6a31c98c1242b0b5e2b78ba2e9127ba9f6b7d7e4d | JavaScript | 9,860 | 311 | import { useState, useEffect } from 'react';
import { Link, useNavigate, useLocation } from 'react-router-dom';
import { isEM } from '../utils/neuronUtils'
function NeuronList() {
const navigate = useNavigate();
const location = useLocation();
const searchParams = new URLSearchParams(location.search);
const [... |
214d0893d3e4ca42f9642eb39a9595e2e36571bf81202c5245d4b47e0d94391d | JavaScript | 9,978 | 1 | !function(e,n){"function"==typeof define&&define.amd?define(n):"object"==typeof exports?module.exports=n():n()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su... |
22e5a244aeb168cb55dcdf154f3d41299edd746674ad9e1d5168f1d3fe1a7c5a | JavaScript | 10,317 | 1 | !function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su... |
c3c5e0fe38cc758dbf1e77b126ed116fd0cc3872efecd9f496ee9aa0eb6c8cb7 | JavaScript | 10,375 | 266 | /*
################################################################################
# linePlot.js 1.0.4 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
8075f1fb8e897155a7d235692f789022ff0306bfb332be7ffc0801fd7b694811 | JavaScript | 10,545 | 277 | jest.mock('aws-sdk');
jest.mock('aws-appsync');
jest.mock('../../main/nodejs/awsappsyncutils');
jest.mock('../../main/nodejs/utils');
import * as search_combiner from '../../main/nodejs/search_combiner';
import * as clientDbUtils from '../../main/nodejs/clientDbUtils';
import * as utils from '../../main/nodejs/utils'... |
53ee7a95afa2a4a765e8027eb719d2dcb105cb2455c46aec05e9e273344b1d99 | JavaScript | 10,593 | 270 | // Based on the blog post by Will Usher:
// https://www.willusher.io/webgl/2019/01/13/volume-rendering-with-webgl
// The code here adds lighting, depth-based compositing of a solid surface,
// mirroring, and little tweaks like dithering to reduce aliasing.
export const vertexShaderVolume =
`
out vec3 rayDirUnn... |
fc0311bb7176c69b6102d0b5bfa48e6d37dd39e26018b81c6cdc26633415f554 | JavaScript | 10,604 | 1 | !function(e,i){"function"==typeof define&&define.amd?define(i):"object"==typeof exports?module.exports=i():i()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su... |
eac39be87f968fabacd1d5aae3b9f512d3a40115d8b8411dbd5825dd6e742f86 | JavaScript | 10,847 | 297 | /*
* language_data.js
* ~~~~~~~~~~~~~~~~
*
* This script contains the language-specific data used by searchtools.js,
* namely the list of stopwords, stemmer, scorer and splitter.
*
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
var stopwords ... |
5717bac8cc512f0b1ee38989a23314c6fe85d28c9d30216435c55cbb1c99036d | JavaScript | 10,864 | 1 | !function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su... |
b6064d249b796efc95fe36fd8b61f4d7b250c69f3faa3e7ac7a74b88d229b02b | JavaScript | 11,066 | 286 | jest.mock('@aws-sdk/lib-dynamodb');
jest.mock('@aws-sdk/client-dynamodb');
jest.mock('@aws-sdk/credential-providers');
jest.mock('@aws-sdk/signature-v4');
jest.mock('@aws-crypto/sha256-js');
jest.mock('node-fetch', () => jest.fn());
jest.mock('@smithy/protocol-http');
jest.mock('../../main/nodejs/awsappsyncutils');
je... |
8113d71b16e25575f060979e17282dc865c364229201d2abd115e5cf35346278 | JavaScript | 11,099 | 583 | import {request,request1} from "@/utils/request";
// 生成加入联邦方的邀请码
export function inviteCode(id) {
return request({
url: '/platform/flPartyInfo/inviteCode',
method: 'get',
headers: {
'tenant_id': id
},
})
}
// 通过邀请码加入联邦方
export function joinParty(data) {
return request({
url: '/platfo... |
65e885b61e735d89b1737cd41f4e33d9712df7dcdecbb0c52b0872f4bf2c168f | JavaScript | 11,111 | 282 | import { select } from 'd3';
import * as d3chromo from 'd3-scale-chromatic';
import init from './init';
import render from './render';
import { sort } from './data';
import plotLegend from './legend';
export const availableColorSchemes = [
{ name: 'schemeAccent', scheme: d3chromo.schemeAccent, type: 'o' },
{ nam... |
276135749de002509a8903bb50e2042f9dafbde98e2a81bc6f20a9985b7c00c9 | JavaScript | 11,146 | 1 | !function(e,s){"function"==typeof define&&define.amd?define(s):"object"==typeof exports?module.exports=s():s()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su... |
d7a4bfa31fcc165a589b54acbf06f886350f5158d78afab49d905570fb3b698f | JavaScript | 11,999 | 1 | Search.setIndex({envversion:42,terms:{all:[1,2,3],code:[1,2,3],illustr:[1,3],lack:3,mpirun:[1,3],four:2,signific:3,correl:3,per:[1,3],abil:2,nhcube_batch:[1,3],follow:[1,2,3],"4e4":2,whose:[1,2,3],accur:3,depend:3,rewrit:3,harvest:3,intermedi:1,specif:1,deviat:[1,2,3],those:[1,2,3],nstrat:1,sens:1,neglig:[2,3],introduc... |
3b77d86ba39622a8b287c96a65c768d4b0ab8f32e4a30c6432ed9d18e97f7965 | JavaScript | 12,339 | 256 | import * as batch_search from '../../main/nodejs/batch_search';
import * as load_mip from '../../main/nodejs/load_mip';
import * as utils from '../../main/nodejs/utils';
describe('batchSearch', () => {
const jobParameters = {
searchId: 'aSearch',
dataThreshold: 100,
pixColorFluctuation: 2,
... |
8ab0fd819f6682619872ca41e1f64d92d5a9154198ef39bc76ee0277c2f79b72 | JavaScript | 12,341 | 256 | import * as batch_search from '../../main/nodejs/batch_search';
import * as load_mip from '../../main/nodejs/load_mip';
import * as utils from '../../main/nodejs/utils';
describe('batchSearch', () => {
const jobParameters = {
searchId: 'aSearch',
dataThreshold: 100,
pixColorFluctuation: 2,
... |
142967d9cc9aae897a60660e977c0f333c2edb0ccb517ce08d4c17ec821d4315 | JavaScript | 12,459 | 368 | import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
import { DynamoDBDocumentClient, PutCommand, ScanCommand } from "@aws-sdk/lib-dynamodb";
import { LambdaClient, InvokeCommand, LogType } from "@aws-sdk/client-lambda";
import { Upload } from "@aws-sdk/lib-storage";
import { S3Client, CopyObjectCommand, DeleteOb... |
e71bff8e78e8add2ebd155548c20d846e429f2557c83690f9dcae14dc27b150b | JavaScript | 12,631 | 398 | import AWS from 'aws-sdk';
import stream from 'stream';
import { backOff } from "exponential-backoff";
AWS.config.apiVersions = {
lambda: '2015-03-31',
s3: '2006-03-01',
};
const s3 = new AWS.S3();
const lambda = new AWS.Lambda();
const stepFunction = new AWS.StepFunctions();
const cognitoISP = new AWS.Cognit... |
0fcf85d9d795337a0d8645e494e05d197e92efa7f72444c078e70e52d3ac083e | JavaScript | 12,765 | 383 | /*! videojs-markers - v0.5.0 - 2015-08-01
* Copyright (c) 2015 ; Licensed */
/*! videojs-markers !*/
(function($, videojs, undefined) {
//default setting
var defaultSetting = {
markerStyle: {
'width':'7px',
'border-radius': '30%',
'background-color': 'red'
},
markerTi... |
a90d9e861e68ee1d80f6b3795235aebd88c746963ff9258e532bb3dad5f148a4 | JavaScript | 12,825 | 351 | // The React hook `usePeakPredictor` defined here sets up prediction of a
// good peak value to use in a transfer function that highlights the match
// between a volume and a surface.
//
// The final value returned by `usePeakPredictor` is `predictFluoTransferPeak`,
// an async function that runs the prediction. It has... |
35a15e17b93fd0ccc7c36f04039704cdb86e1a641a4ad977e2f314fb8838d28f | JavaScript | 13,417 | 532 | if( $('#main-content-seminar-lection')[0] )
{
// var disqus_shortname generated by Laravel.
if ( disqus_shortname !== null )
{
// var lection_name generated by Laravel.
// var disqus_shortname generated by Laravel.
var disqus_identifier = lection_name;
(function() {
... |
9fcc225cbb2b14a038ee18db864e13776f13b1c4e156c5613a4afd4bf66552f9 | JavaScript | 13,421 | 1 | Search.setIndex({"docnames": ["index", "pages/acquisitions", "pages/devices", "pages/hardware_sync", "pages/micromanager", "pages/microscope"], "filenames": ["index.rst", "pages\\acquisitions.rst", "pages\\devices.rst", "pages\\hardware_sync.rst", "pages\\micromanager.rst", "pages\\microscope.rst"], "titles": ["Welcome... |
5a72890bb959d55a99417714e63f0bbd485def84c82cf1cdcc3f3662511e4b10 | JavaScript | 13,449 | 333 | /*
################################################################################
# idvis.pcaPlot.js 2.0.3 #
# Authors: P. Poullet (Institut Curie) #
# Contact: patrick.poullet@curie.fr ... |
3b99bb25552ea19a5d0a758cbf366422fbd7a1bf5ca12cc6c6e30799c4cb48bb | JavaScript | 13,497 | 329 | import fs from 'fs';
import path from 'path';
import { openH5J, getH5JAttrs, readH5JChannelUint8, readH5JChannelUint16 } from './web-h5j-loader';
// Data citation: https://dx.doi.org/10.1016/j.celrep.2012.09.011
function getMockData(dataFileName = 'R10E08-20191011_61_I8-m-40x-central-GAL4-JRC2018_Unisex_20x_HR-al... |
640eaf5a5c69759b802594a159c79c845a560e8822577adda38e0b65540f8719 | JavaScript | 13,563 | 315 | /*
################################################################################
# genericPlot.js 1.0.9 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
5ccd4c2773a099b3579c10c0e3ff4c80eb0af6ca3cb6dda5c07692a36256cc0b | JavaScript | 13,834 | 557 | if( $('#main-content-seminar-lection')[0] )
{
// var disqus_shortname generated by Laravel.
if ( disqus_shortname !== null )
{
/*
* Update message resource form.
*/
// var sequence_content generated by Laravel.
if( !sequence_content )
{
$('#seq... |
2e8d1feb185a89a42d223e42a1f693e54ecb55dcf782d10c4022219588290c38 | JavaScript | 14,241 | 387 | /*
################################################################################
# pcaPlot.js 1.1.1 #
# Authors: P. Poullet (Institut Curie) #
# Contact: patrick.poullet@curie.fr ... |
c9570c14c70ea4590b92ea75a65e96c4f20730372ca23acc0ab8137e4b2f4f77 | JavaScript | 14,416 | 2 | var sortable=function(){"use strict";function d(e,t,n){if(void 0===n)return e&&e.h5s&&e.h5s.data&&e.h5s.data[t];e.h5s=e.h5s||{},e.h5s.data=e.h5s.data||{},e.h5s.data[t]=n}function u(e,t){if(!(e instanceof NodeList||e instanceof HTMLCollection||e instanceof Array))throw new Error("You must provide a nodeList/HTMLCollecti... |
3624c9c09c14a3f227066f7609a9a549046198dab43369082f787b941daf6c16 | JavaScript | 14,632 | 1 | !function(r,i){"function"==typeof define&&define.amd?define(i):"object"==typeof exports?module.exports=i():i()(r.lunr)}(this,function(){return function(r){if(void 0===r)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===r.stemmerSupport)throw new Error("Lunr stemmer su... |
a817b5e2d8ce062ad61bd040048575ccf7d62afc9267da38362409d8e7ccb817 | JavaScript | 14,798 | 354 | /*
################################################################################
# volcanoPlot2.js 1.1.9 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
d742d28ee29c84970d3153e5bc1ff5dcd47be0e1e606ec066b90fd23c92f092f | JavaScript | 15,344 | 472 | // Image processing and ONNX inference for predicting the optimal `peak`
// parameter (saturation point) of the fluorescence transfer function.
// Used by `FluoTransferPeakPredictor.js`.
//
// Pipeline:
// 1. Extract a green mask from a surface-only render.
// 2. Distance-transform the green mask, thresholded at tw... |
6262b49a54bf32724180b72af022b07039bbc422732d0d00f7ddec34d6351629 | JavaScript | 15,567 | 384 | import { getIntermediateSearchResultsPrefix, getSearchMaskId, getSearchResultsKey } from './searchutils';
import { streamObject, removeKey, DEBUG } from './utils';
import { queryDb } from './clientDbUtils';
import { getSearchMetadata, updateSearchMetadata, SEARCH_COMPLETED } from './awsappsyncutils';
import zlib from '... |
0a41e04d208d4141a111ecd1730bd5946437d393b301a3f6641ad70b3bfdf5dc | JavaScript | 15,769 | 356 | 'use strict';
function deepcopy(obj) {
return JSON.parse(JSON.stringify(obj));
}
function custom_LocusZoom_Layouts_get(layout_type, layout_name, customizations) {
// Similar to `LocusZoom.Layouts.get` but also accepts keys like "axes.x.ticks"
var layout = LocusZoom.Layouts.get(layout_type, layout_name);
... |
fa63a12a1e517ecb097aa8c8ac2df8da63ab23d2a0e4d51bd9fea6e3e093189b | JavaScript | 15,896 | 394 | import { getIntermediateSearchResultsPrefix, getSearchMaskId, getSearchResultsKey } from './searchutils';
import { streamObject, removeKey, DEBUG } from './utils';
import { queryDb } from './clientDbUtils';
import { updateSearchMetadata, SEARCH_COMPLETED } from './awsappsyncutils';
import zlib from 'zlib';
const maxRe... |
46a9911291401471412c002433e2dce3cb37545ffaa176f21fa5b5527897c54d | JavaScript | 16,323 | 514 | /*
* searchtools.js
* ~~~~~~~~~~~~~~~~
*
* Sphinx JavaScript utilities for the full-text search.
*
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
if (!Scorer) {
/**
* Simple result scoring code.
*/
var Scorer = {
// Implement the... |
8a289a8baa8cdff5b40a0c2ea9596583dcf23bf7c4f4d802ab595fc7570a6bae | JavaScript | 16,446 | 414 | import AWS from 'aws-sdk';
import Jimp from 'jimp';
import {getSearchKey, getSearchMaskId} from './searchutils';
import {
getS3ContentWithRetry,
getS3ContentMetadata,
putS3Content,
startStepFunction,
} from './utils';
import {
ALIGNMENT_JOB_SUBMITTED,
ALIGNMENT_JOB_COMPLETED,
SEARCH_IN_PROGR... |
7df55f6dc73c8b548ffe8d4cbba5676633c95b72373d84ab74de90b46cc317e2 | JavaScript | 16,520 | 4 |
(function($){$.extend({tablesorter:new
function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:true,textExtraction:"simple",parser... |
f91785828ebff5aaddfbda4b6c8f4a643c9d7cf6f309d67be66287f93a65d0f9 | JavaScript | 16,922 | 425 | import { BatchClient, SubmitJobCommand } from "@aws-sdk/client-batch";
import { Jimp } from 'jimp';
import { getSearchKey, getSearchMaskId} from './searchutils';
import {
getS3ContentAsByteBufferWithRetry,
getS3ContentMetadata,
putS3Content,
startStepFunction,
} from './utils';
import {
ALIGNMENT_J... |
8209f42f6105ebbebea0a05ef835e9518c80c6ad9280646495a3602fde7f2852 | JavaScript | 17,258 | 380 | /*
################################################################################
# idvis.genericPlot.js 2.0.3 #
# requires idvis.js #
# Authors: P. Poullet (Institut Curie) ... |
acfcbef2e7815370a5aeb97324e53338c1b8edbe4731d6fcfb0c7c46076c20d6 | JavaScript | 17,663 | 427 | /*
################################################################################
# idvis.spectrumPlot.js 2.0.2 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
7c0fec1f4642fe1bd04f418b887f1ea57a75c2863245113b3d8bae218adf49a6 | JavaScript | 17,788 | 577 | /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
c0ec66ebb99ee8a433cced60fb90dda754f8551917f22eb56958fdfeb212a6c4 | JavaScript | 17,797 | 438 | /*
################################################################################
# spectrumPlot.js 1.0.2 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
7fd3d52d03af95958c6e3b5fd142cd2c64f88cecde3598d6f1ef66098c0d1b7c | JavaScript | 18,198 | 354 | /*
################################################################################
# vennDiagram.js 1.0.5 #
# Authors: P. Poullet #
# Contact: patrick.poullet@curie.fr ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.