sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
b8bd9f28a69cea724caa526bd0985f7768b206dfd8132ae6a962e9fe97633de6
Text
24,900
454
<p align="center"><img src="https://github.com/PombertLab/SSRG/blob/master/Images/logo.png" alt="SSRG - A simple pipeline to assess genetic diversity" width="900"></p> [![DOI](https://zenodo.org/badge/59776042.svg)](https://zenodo.org/doi/10.5281/zenodo.5532793) The [SSRG pipeline](https://github.com/PombertLab/SSRG)...
03bbaedc57cef0f4035bf886b0a524ed32da0f9e174fd74903238c9cf7d68a96
Text
24,911
503
# DepMap Public 23Q2 ############## ## Overview ## ############## This DepMap release contains data from CRISPR knockout screens from project Achilles, as well as genomic characterization data from the CCLE project. ############### ## Pipelines ## ############### ### Achilles This Achilles dataset contains the res...
99613db18827bb094431491c3aab538dfadbf0e7d6a878a2a04b2e98547a70f5
Text
25,922
314
# Cog: Containers for machine learning Cog is an open-source tool that lets you package machine learning models in a standard, production-ready container. You can deploy your packaged model to your own infrastructure, or to [Replicate](https://replicate.com/). ## Highlights - 📦 **Docker containers without the pain...
2a16eb1b0ba229e96ecb18c73491dd7297d6f9c31c877d0a5ea28556fd42ba67
Text
26,208
714
# NeuroimaGene R project Hi, Welcome to the NeuroimaGene project! The goal of this project is to improve the interpretability of genetic studies relating to neurological and/or psychiatric traits. Analyses such as genome-wide association studies often highlight genetic variants that segregate with disease. Methods ...
f176f851d3c68564f216be676e10cacdc7fe088c0395332a5b55de4b5c9f1b5a
Text
27,550
504
# LiquidAion Neural Observatory [![CI](https://github.com/Patternity/LiquidAion-Neural-Observatory/actions/workflows/ci.yml/badge.svg)](https://github.com/Patternity/LiquidAion-Neural-Observatory/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/code-MIT-blue.svg)](LICENSE) [![Data: CC BY-NC 4.0]...
ba4e11924b1a79dee3822fe079293572f393ed1f5e42b84639ef38f2a6005c1a
Text
27,874
507
# LiquidAion Neural Observatory [![CI](https://github.com/Patternity/LiquidAion-Neural-Observatory/actions/workflows/ci.yml/badge.svg)](https://github.com/Patternity/LiquidAion-Neural-Observatory/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/code-MIT-blue.svg)](LICENSE) [![Data: CC BY-NC 4.0]...
23faab9543f6258106b7892c2a1cbb07b7b57f3b094b5e3e3564442bfc5b4202
Text
30,038
536
# FID-Net Deep Neural Networks for Analysing NMR time domain data. See: * [G Karunanithy and D F Hansen (2021, JBNMR)](https://doi.org/10.1007/s10858-021-00366-w) * [G Karunanithy, H W Mackenzie and D F Hansen (2021, JACS)](https://doi.org/10.1021/jacs.1c04010) * [G Karunanithy, V K Shukla and D F Hansen (2024, Nature...
6e4d71c643c5f571c62e01887eb321658bee2f52f17c5f10110376a7c9df652e
Text
30,323
622
# ColabMDA **ColabMDA** is a specialized tool that lets you run high-quality Molecular Dynamics simulations on Google Colab without the fear of losing your work. The biggest problem with Colab is that it disconnects, often destroying hours of simulation data. **ColabMDA fixes this** with a "resume-safe" system that au...
e5e57a74c7018e8c7bec758ac7c2f1dd6cd97a7ede2155d99781236d20bce7f6
Text
32,222
418
# Motion Correction and Volumetric Image Reconstruction of 2D Ultra-fast MRI NiftyMIC is a Python-based open-source toolkit for research developed within the [GIFT-Surg][giftsurg] project to reconstruct an isotropic, high-resolution volume from multiple, possibly motion-corrupted, stacks of low-resolution 2D slices. T...
71643e223035ebf088c72080d7742851ffb1c602fbfd895e9819acd9a6f5be57
Text
32,430
483
# SurvivalEVAL [![SurvivalEVAL logo][logo-image]][repository] ----------------- [![PyPI][pypi-badge]][pypi] [![Python Version][python-badge]][pypi] [![License][license-badge]][license] [![Maintenance][maintenance-badge]][issues] SurvivalEVAL is a Python 3.10+ package for evaluating survival analysis predictions. It...
bdfe47fee5432f7ab603801c5d39ee5c8fc1937037aa4cd33705d25b04cb68ec
Text
33,416
337
# rtPupilPhase This is a repository for code associated with [Kronemer et al., Behavior Research Methods, 2024](https://link.springer.com/article/10.3758/s13428-024-02545-7). This repo includes three components: 1. PsychoPy code implementing a fixation task with real-time pupillometry. This task consists of a black f...
486255f012dd157b4bc071ba65fbe6c01268e5db2826e3e6fa7a2795c2137dbd
Text
37,713
844
# H2O For any question not answered in this file or in [H2O-3 Documentation](https://docs.h2o.ai/h2o/latest-stable/h2o-docs), please use: [![Ask on GitHub](https://img.shields.io/github/discussions/h2oai/h2o-3.svg?logo=github&label=Discussions%20Q%26A&color=FFE600)](https://github.com/h2oai/h2o-3/discussions/categori...
dec4c3c1fcff1b351906c7593a942a615ec7f1a4917f2e61978d754e2ed39d35
Text
43,696
1,046
# Wikibase Integrator # [![PyPi](https://img.shields.io/pypi/v/wikibaseintegrator.svg)](https://pypi.python.org/pypi/wikibaseintegrator) [![Python pytest](https://github.com/LeMyst/WikibaseIntegrator/actions/workflows/python-pytest.yaml/badge.svg)](https://github.com/LeMyst/WikibaseIntegrator/actions/workflows/python-...
9395719e4a9c07453b55ba163569870b4ab0759f88826bfdae8d2658f9dfee7b
Text
45,983
656
# Readme and User Manual for MCmatlab ## What is MCmatlab? MCmatlab is a Monte Carlo simulation for modeling light propagation in a 3D voxel space. Fluorescence can optionally be simulated after simulation of the excitation light. Included is also a finite element simulation for temperature increase and heat diffusion...
80b47dee01ea1c5b1d961b63c04277ae0101edd66df8c1dcbf50fc772305ecfb
Text
50,284
913
# XuLab Registration Tools **RegTools** is a set of point-and-click programs for analysing brain images. Say you've imaged a mouse brain and stained some cells. RegTools helps you: 1. **Stitch** the many small image tiles from the microscope into whole brain sections. 2. **Find the cells** in those images aut...
f517d6cd007e6072116d08396f7376116ece2c2134ce09dfd681b69bbc699aa0
Text
50,343
1,058
- [Behavior Flow](#behavior-flow) - [Tutorial](#tutorial) * [building the data object](#building-the-data-object) + [Loading the data](#loading-the-data) - [Loading from multiple CSV files](#loading-from-multiple-csv-files) - [Loading from TrackingData (DLC Analyzer)](#loading-from-trackingdata--dlc-a...
77fdab01e3fb84402fd0dfe4c57fc0679291766bed4246ce116438f6d4a7b782
Text
56,250
855
<div align="center"> <p align="center"> <!-- prettier-ignore --> <img src="https://user-images.githubusercontent.com/25985824/106288517-2422e000-6216-11eb-871d-26ad2e7b1e59.png" height="55px"> &nbsp; <img src="https://user-images.githubusercontent.com/25985824/106288518-24bb7680-6216-11eb-8f10-60052c519586.png" height...
34dfd10ce1acd365ab03b92471504ba07f6edf26b6ceb65e0c7cacb365f8f99f
Text
85,568
713
# Feb 2024 Update The era of fbcp-ili9341 has come to an end. Fbcp-ili9341 was built on top of the Raspberry Pi's [VideoCore DispmanX API](https://elinux.org/Raspberry_Pi_VideoCore_APIs#vc_dispmanx_.2A). However, this API has been deprecated by the Raspberry Pi Foundation for a while now, and finally obsolete (=u...
71e3e4618b23cd5ca83f6e690d88235d7f46a6e4706fa9c3dd1d9eddb2e22632
TypeScript
42
2
const {spawn} = require('child_process')
bc6639f3788a6de35e40777079ec6bae0ea9de98bbfffd00ae2e7114a937d389
TypeScript
95
3
export * from './build-args.js'; export * from './kiwi-builder.js'; export * from './kiwi.js';
3d3d65df9033947a284b285fda189670d56ddfd063d352a5977f851c7aa69a6a
TypeScript
113
4
export interface SkeletonProps { className?: string; isAnimated: false | 'pulse' | 'wave' | undefined; }
2b6ce27a63e59e2f0409e2c1df844c976131534e683bb5b3a075cb480a7dfaec
TypeScript
173
5
export type AsyncMethods<T> = { [K in keyof T]: T[K] extends (...args: any) => any ? (...args: Parameters<T[K]>) => Promise<ReturnType<T[K]>> : T[K]; };
57d11cc7b4b4474c7e94187b57abac150d5dd601d5f86d6289f809166c1ffaf8
TypeScript
185
6
declare module '*.svg' { import React = require('react'); export const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>; const src: string; export default src; }
82298d79e972b18fc6110dd57a3e0847088146baa5aa2bbd626cbdbe8395017b
TypeScript
233
12
/*declare const process : { env: { AWS_REGION: string } } */ console.log(AWS_REGION) declare const AWS_REGION: string; export {AWS_REGION}
22583759d0045fdf8d62c9db0aacba9fd8bddde79c671aa08c97dcfd4e930cc6
TypeScript
241
5
// jest-dom adds custom jest matchers for asserting on DOM nodes. // allows you to do things like: // expect(element).toHaveTextContent(/react/i) // learn more: https://github.com/testing-library/jest-dom import '@testing-library/jest-dom';
18cfc7ef9a76f7e46d447034d265140377327616e5783c1d912f9c69564b209f
TypeScript
244
5
export const MANUSCRIPT_LINK = 'https://dx.doi.org/10.1073/pnas.2320134121'; export const GITHUB_LINK = 'https://github.com/TRI-AMDD/oxidation-state-api-public'; export const PREPRINT_LINK = 'https://doi.org/10.26434/chemrxiv-2023-9dvlm-v3';
219d8b0c1870d43ba4e59fa712d262acb61e93101a8234ef75224d026c8ccba1
TypeScript
269
7
import { defineCollection } from 'astro:content'; import { docsLoader } from '@astrojs/starlight/loaders'; import { docsSchema } from '@astrojs/starlight/schema'; export const collections = { docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }), };
bb0c9a2190b277b2f86679e4c39c58404e2134e2284119dda8c0e456ab08772d
TypeScript
272
10
export class Store extends EventTarget { emit(): void { this.dispatchEvent(new Event("change")); } subscribe(listener: () => void): () => void { this.addEventListener("change", listener); return () => this.removeEventListener("change", listener); } }
65e1efa81a39c42f843e339b4a8308f7c78dcff625c20eeeb2a2cf2df5e4ee51
TypeScript
295
14
export const requiredModelFiles = [ 'combiningRule.txt', 'default.dict', 'extract.mdl', 'multi.dict', 'sj.knlm', 'sj.morph', 'skipbigram.mdl', 'typo.dict', ]; export const modelFiles = Object.fromEntries( requiredModelFiles.map((f) => [f, '/model/' + f]) );
b9cb6df1fbdddaac9c8ea6d60685a53dd496583f110d279ccd2398ed3caca971
TypeScript
314
5
/** Site base path, normalised to a trailing slash (respects `base` in astro.config). */ export const base = import.meta.env.BASE_URL.replace(/\/?$/, '/'); /** True for the home route. Starlight gives the index page an empty `id`. */ export const isHomePage = (route: { id: string }): boolean => route.id === '';
5945ae4f98929f67714f6b155d1254aca1eed7d729bdc0fc9617cf96e24d5815
TypeScript
322
18
export interface OxidationState { oxidationState: number; potential: number[]; likelihood: number[]; textPos: number[]; toShowLabel: boolean; } export interface PlotData { specie: string; textPos: number[]; oxidationStates: OxidationState[]; } export enum GraphType { Wavy, Bar ...
8df3360cddc2ad0f17a0276a922c338321818f91b8294779a0838d901a9c2e57
TypeScript
338
12
/// <reference types="vite/client" /> declare const AWS_CONFIG: { Auth: { region: string; userPoolId: string; userPoolWebClientId: string; mandatorySignIn: boolean; }; }; declare const API_BASE_URL: string; declare const AMPLIFY_ENABLED: boolean; declare const dataLayer: Record<s...
9e7daa2bc1479afb98a4ae55a3485debc8420eed799acb0ebe65100f465eea49
TypeScript
362
14
import { defineConfig } from 'vite'; import { viteStaticCopy } from 'vite-plugin-static-copy'; import { requiredModelFiles } from './src/modelFiles'; const targets = requiredModelFiles.map((file) => ({ src: '../../../models/base/' + file, dest: 'model', })); export default defineConfig({ plugins: [ ...
82b0a5d4466030413e5f84ea148d91d6bc049192e0dc124a3e5f78992f4e6d21
TypeScript
369
14
import { LinkPropsVariantOverrides } from '@mui/material/Link'; import { TypographyPropsVariantOverrides } from '@mui/material'; declare module '@mui/material/Link' { interface LinkPropsVariantOverrides { whiteText: true; } } declare module '@mui/material/Typography' { interface TypographyPropsVar...
e6bebab0f9c32b081d6d9a25731ad1bbc52f89201ee60d381657247cbfd71b73
TypeScript
399
14
import { defineConfig } from "vitest/config"; export default defineConfig({ test: { environment: "jsdom", include: ["tests/**/*.test.ts"], coverage: { provider: "v8", exclude: ["src/types.ts", "src/app.ts", "src/components/**", "src/worker/**"], include: ["src/**/*.ts"], threshold...
69bd103ce914d5ab1d112f77fa038b2c7e2b581bef002198f1d3f4721e007644
TypeScript
413
16
import { ModelFiles } from "./build-args"; interface LoadModelFilesResult { unload: () => Promise<void>; modelPath: string; } export interface KiwiApi { cmd: (args: any) => any; loadModelFiles: (files: ModelFiles) => Promise<LoadModelFilesResult>; } export interface KiwiApiAsync { cmd: (...args: ...
99be301e3ae5f557de2001c328e7b0815dc0513923c8bcf7c5301a8417f81082
TypeScript
420
13
import assert from "node:assert/strict"; import { test } from "vitest"; import { replaceChildrenPreservingFocus } from "../src/components/dom.js"; test("replaces children when nothing inside the root is focused", () => { const root = document.createElement("div"); const child = document.createElement("section"); ...
0169873ea180a35124258e37ff9f37d5f29a69f85c95cd74359527ef7a9cf804
TypeScript
434
20
export interface ExportGraphSettings { showCurves: boolean; showSliderBar: boolean; showLabels: boolean; showColorKey: boolean; fileType: ExportGraphFileType; } export enum ExportGraphFileType { png = 'png', pdf = 'pdf' } export const InitalExportGraphSettingsState = { showCurves: true...
479a2224d50a53a9193d551441695ab569fdd353a3d94633681f3caf5803a4a0
TypeScript
586
33
interface Palette { [key: number]: string; } export const ColorPalette: Palette = { [-1]: '#e4d4e5', [-2]: '#d3a9d2', [-3]: '#c87bc1', [-4]: '#bf46a6', 1: '#c5e0e3', 2: '#85c5d3', 3: '#59a5cc', 4: '#5481bd', 5: '#545baa', 6: '#533295', 7: '#431066', 8: '#1a0b2a' }; ...
7e6a30bf78aa9f087d3ce903fe611e668e0ff31ea21165a9442e96f040c66d7f
TypeScript
602
18
export function formatValue(value: unknown): string { if (typeof value === "string") return value; try { return JSON.stringify(value, null, 2); } catch { return String(value); } } export function formatDuration(milliseconds: number): string { if (milliseconds < 1000) return `${Math.round(milliseconds...
d1d34aab69911fbdcd70b26d4d97fbccdc33f0d720fc3518add07053e29efbb2
TypeScript
615
28
import { defineConfig } from 'vitest/config'; import react from '@vitejs/plugin-react-swc'; import svgr from 'vite-plugin-svgr'; import path from 'path'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [svgr(), react()], test: { globals: true, environment: 'jsdom', ...
3bea1b7a288a6be689573992a8d9b68bd0ecc718ee2b9211249d2df0f41ba2d0
TypeScript
667
20
// *********************************************************** // This example support/e2e.ts is processed and // loaded automatically before your test files. // // This is a great place to put global configuration and // behavior that modifies Cypress. // // You can change the location of this file or turn off // auto...
a8c74304ea91d4e91d8ab3cb524721bd10b9e45452a65db55eb40efa2bbc2d74
TypeScript
701
26
import path from "node:path"; import { fileURLToPath } from "node:url"; import { defineConfig, type Plugin } from "vite"; import { workerLicensePlugin } from "./scripts/worker-license-plugin.js"; const root = path.dirname(fileURLToPath(import.meta.url)); export default defineConfig({ build: { emptyOutDir: tru...
da1b0e7217412828e85de3fbe768d062473ed75faa276af4fde8eb9c0f909f7b
TypeScript
837
32
export const MAX_LOCAL_FILE_SIZE = 16 * 1024 * 1024; export class FileReadGuard { #revision = 0; begin(): number { return ++this.#revision; } cancel(): void { this.#revision += 1; } isCurrent(revision: number): boolean { return revision === this.#revision; } } export function fileToDataUR...
afa27bf6c562214ad3e61a6a246819386288f1117b45854ed9f1d4ee9be5f164
TypeScript
870
25
/* @license Copyright 2019 Google LLC. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
13a1d47ec40fc68f033af0186db83fb972825d834038d0cb158636d06ee89c0e
TypeScript
877
36
import { ThemeOptions } from '@mui/material'; export const customTheme: ThemeOptions = { typography: { fontFamily: 'Roboto' }, components: { MuiLink: { variants: [ { props: { variant: 'whiteText' }, style: { ...
de3bd98bb503061b7175b75802dd5ae97e5a7cb4886e9d39c9812dc74c897c44
TypeScript
887
23
/* @license Copyright 2019 Google LLC. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
a7494b84d872dafa573093bd03c545209ee90f64dbf7dbc25531716ef21006f2
TypeScript
924
27
import type { JsonValue, OpenAPISchema } from "../../types.js"; export type DataMediaKind = "audio" | "image" | "video"; export function emptyInputValue(schema: OpenAPISchema): JsonValue { if (schema.type === "array") return []; if (schema.type === "object" || schema.properties) return {}; if (schema.type === "...
1980171c25ba9750f2c293a0cf23face802de41e2e26b9804dfd1ead459d8bd7
TypeScript
928
22
import { OxidationStatesAPI } from '../data-table/table-models/data-viewer-model'; import { Settings } from './render-graph'; export function renderSpeciesLabel(data: OxidationStatesAPI, canvas: HTMLCanvasElement, settings: Settings) { const { BAR_HEIGHT, OFFSET_Y } = settings; if (data.oxidationStateRangeDat...
caa594a87a3fd003c6b6226254dc735611fef80359e1d94e58bcefba0a07897f
TypeScript
978
27
import { OxidationStatesAPI } from '../data-table/table-models/data-viewer-model'; import { Settings } from './render-graph'; export function renderKeys( data: OxidationStatesAPI, canvas: HTMLCanvasElement, settings: Settings, img: HTMLImageElement ) { const { BAR_HEIGHT } = settings; if (data...
2076fcf19bcabff45bc9fc89e8a09ef4f1f3ea11b70acf900c13c977c5af9021
TypeScript
1,027
15
# initial_energy # total_energy = -809.627 # t_series ######################################################### # step tempk radg etot velet qscore rmsd #unit step tempk radg etot velet qscore rmsd local go repul stack_rna hbond...
4c6e898798a147da2fa5726723b63b414dd5b7be5c63e0db2fb55e63f402f13f
TypeScript
1,073
22
import { describe, it, expect } from 'vitest'; import { KiwiBuilder } from '../src/index.js'; // KiwiBuilder with a fake api, so these run without the wasm build. const builderWith = (api: object) => new (KiwiBuilder as any)(api) as KiwiBuilder; describe('KiwiBuilder.build() model file cleanup', () => { it('keeps...
0d023508ec4124bdd3e2c2d9af98215b20ab58d769f0551a2f574a869fa24770
TypeScript
1,099
23
/* @license Copyright 2019 Google LLC. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
31a13f78b541e9f44884b08148a0d10277b21decaeafecf8cdcfcc8ae34a22d4
TypeScript
1,120
31
import { OxidationStatesAPI } from '../data-table/table-models/data-viewer-model'; import { Settings } from './render-graph'; import { getPositionFromValue } from '@/utils/GraphUtil'; export function renderSliderLine( data: OxidationStatesAPI, canvas: HTMLCanvasElement, mpValue: number, settings: Setti...
5ad9be3e489f3dc678a7552e9fede56de56edfe95a0c5ea12d1828c50c6ad4af
TypeScript
1,159
15
# initial_energy # total_energy = 26424332.899 # t_series ######################################################### # step tempk radg etot velet qscore rmsd #unit step tempk radg etot velet qscore rmsd local go repul stack_rna hbond...
40328f6d445ab1d63d0bf7385e5d1909534e72ddd7fea06306ef6c6b5362be54
TypeScript
1,246
32
import type { JsonObject, JsonValue, UnknownObject } from "../types.js"; export function isObject(value: unknown): value is UnknownObject { return typeof value === "object" && value !== null && !Array.isArray(value); } export function isJsonObject(value: unknown): value is JsonObject { return isObject(value) && O...
4e93e29e42a40b82ce2cd58cf7b34730351ffa27f9ccade8ab2dbbef41a43854
TypeScript
1,335
50
import { KiwiBuilder, Kiwi, TokenInfo } from 'kiwi-nlp'; import kiwiWasmPath from 'kiwi-nlp/dist/kiwi-wasm.wasm?url'; import { modelFiles } from './modelFiles'; let kiwiBuilder: KiwiBuilder | null = null; let kiwi: Kiwi | null = null; let version: string | null = null; export type WorkerRequest = | { type: 'init'...
59651f4042c2ef86d1810278d0a645549bddc33fa31c667c0ece20ac17655330
TypeScript
1,375
44
import { atom } from 'jotai'; import { ExportGraphSettings, InitalExportGraphSettingsState } from '@/models/ExportGraphModel'; import { LoadingState, OxidationStatesTableItem, OxidationStatesAPI, Boundary } from '@/features/data-table/table-models/data-viewer-model'; export const dataViewerStateAtom = ...
5875717aa762b52a5316615a7830335814d594edd2adb85eb56f0c00a07aeb1a
TypeScript
1,488
50
import AWS = require('aws-sdk'); // import * as AWS from './aws-sdk-2.141.0'; //AWS.config.update({ // region: process.env.AWS_REGION, // credentials: new AWS.Credentials( // process.env.AWS_ACCESS_KEY_ID, // process.env.AWS_SECRET_ACCESS_KEY ) //}); let batch = new AWS.Batch({ apiVersion: '20...
271fc9771f68d9e28b89b5d589cb3ccc72994ac16d045f7a24afe365b6806eb3
TypeScript
1,544
65
export enum LoadingState { Initial = 'Initial', Loading = 'Loading', Loaded = 'Loaded', LoadedWithMessage = 'LoadedWithMessage', Error = 'Error' } export interface OxidationStatesTableItem { id: number; oxidationState: JSX.Element[]; likelihoodCurrentMappedPotential: number; likelih...
9e5b3adbe060e989de03ca12221f50e74ad11db0bd55b104f8b25f15035f4c82
TypeScript
1,612
53
import { createBarPlotData, createPlotData, drawPlotDataCanvas } from '@/features/render-graph/render-graph'; import { renderSpeciesLabel } from '../render-graph/render-species-label'; import { renderSliderLine } from '../render-graph/render-slider'; import { renderKeys } from '../render-graph/render-key'; import { Exp...
0f294cd7d439d1b0735518a0166844ff117d9e17d08de3db4d53cf29a3c5289a
TypeScript
1,618
48
import { Boundary, OxidationStatesAPI } from '@/features/data-table/table-models/data-viewer-model'; import { toFixedNumber } from './GraphUtils/BoundariesUtil'; function compareBoundaries(a: Boundary, b: Boundary) { return a.value - b.value; } export function formatOxidationState(state: number) { if (state >...
c83295310b73fa5da384824e6d9b3e0726f0661191281dfccd7c4dac73edf013
TypeScript
1,873
64
//import process = require('process'); import AWS = require('aws-sdk'); AWS.config.update({ region: process.env.AWS_REGION, credentials: new AWS.Credentials( process.env.AWS_ACCESS_KEY_ID, process.env.AWS_SECRET_ACCESS_KEY ) }); let sqs = new AWS.SQS({ apiVersion: '2012-11-05', region: ...
1f4d451fb20206153815c777fcd349e258f9bebba45c02879d73b6823a2adb2b
TypeScript
1,917
52
/* @license Copyright 2019 Google LLC. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
4a7fe43617f797ac730701829f49b55ece3b758878c50c90bf3cec82d31607f6
TypeScript
1,974
69
import { WorkerRequest, WorkerResponse } from './worker.js'; import { TokenInfo } from 'kiwi-nlp'; const elVersion = document.getElementById('version')!; const elInput = document.getElementById('input') as HTMLInputElement; const elResultTable = document.getElementById('result') as HTMLTableElement; const worker = ne...
8eb6ad6c8b73da6bbec9163fb034eb9b3b248fdf34f557aacb76163714bd3f57
TypeScript
1,990
68
import type { InputValidator, ValidationIssue, ValidationRequest, ValidationResponse, } from "../types.js"; import { createInputValidator } from "../lib/input/validation.js"; import { isObject } from "../lib/json.js"; import { isOpenAPIDocument, isOpenAPISchema } from "../lib/transport/guards.js"; const worke...
eef78f39fd2b94f3fba062aa2930d7786e1fd4301e35630d2ee12b74181d3314
TypeScript
2,062
60
export class TaskTemplate { private _template: any; constructor(data: string = DEFAULT_TEMPLATE){ this._template = JSON.parse(data); } parse(newValue: string){ this._template = JSON.parse(newValue) } stringify(start: number[]=[0,0,0]){ console.log(this._template.input.params....
33e3332401a450f830b9625c4df94a1d0a4815e2f292e312f9b49bfafe170455
TypeScript
2,343
68
/* @license Copyright 2019 Google LLC. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
6c94d6e54c03568ee46eabccb78f97da0b87e4fbaaabcf75af82a61d078b556b
TypeScript
2,446
67
import { readFileSync, readdirSync } from "node:fs"; import type { Plugin } from "vite"; type PackageLicense = { license: string; name: string; text: string; version: string }; type BundleOutput = { modules?: { [moduleId: string]: object }; type: string }; type BundleOutputs = { [fileName: string]: BundleOutput }; ex...
d4bb3851f024138a1170e2b6021b9b073fddfe752d2158ca203646f921b0ed5b
TypeScript
2,543
67
import { existsSync, readFileSync, readdirSync, unlinkSync, writeFileSync } from "node:fs"; type PackageMetadata = { dependencies?: { [name: string]: string }; license?: string; version?: string; }; function readLicenseSections(path: URL): Map<string, string> { const sections = new Map<string, string>(); co...
9bb1243646c69f66ce4149df01b4aeb4929471ea936a5446ac635f136f441ffb
TypeScript
2,631
81
import assert from "node:assert/strict"; import { test } from "vitest"; import { parseSSE, readSSE } from "../src/lib/transport/sse.js"; test("parses multiline, primitive, and non-JSON SSE data", () => { assert.deepEqual(parseSSE('event: output\ndata: {"chunk":"a"}'), { type: "output", data: { chunk: "a" },...
ca5ceb80d3d7ecbc40f3853f0867c9fe5e1f1b03f9984ad42a0676950ef14f67
TypeScript
2,806
81
import type { JsonObject, StreamEvent } from "../../types.js"; import { isJsonObject, isJsonValue } from "../json.js"; import { responseError } from "./http.js"; const MAX_SSE_FRAME_LENGTH = 1024 * 1024; type SSESeparator = { index: number; length: number }; export async function* readSSE(response: Response): AsyncG...
7bf6b61adc82f75fa10cc13bf0558d51141ce99fbe8e53df7e43b3d84c4de70a
TypeScript
2,913
85
import type { PredictionEnvelope } from "../../types.js"; import { isObject } from "../json.js"; import { predictionEnvelope } from "./guards.js"; type ErrorResponse = { detail?: string | unknown[]; error?: string }; const MAX_JSON_RESPONSE_LENGTH = 16 * 1024 * 1024; const MAX_ERROR_RESPONSE_LENGTH = 1024 * 1024; e...
c570a49b39d49490bdbd503c4746e07044689a046309a4ab5964efd8af5b1b93
TypeScript
3,043
113
import type { OpenAPIDocument, OpenAPISchema, ValidationIssue, ValidationRequest, ValidationResponse, } from "../../types.js"; import { isObject } from "../json.js"; const TIMEOUT = 10_000; type PendingValidation = { resolve: (issues: ValidationIssue[]) => void; timeout: number; }; let worker: Worker |...
9c3e53db2b7a4d7eca7dac615444c160325398d8882350c9364d26002b24c367
TypeScript
3,481
123
import assert from "node:assert/strict"; import { test } from "vitest"; import { constraintText, defaultInput, effectiveSchema, enumValues, initialInputValue, orderedProperties, playgroundCapabilities, } from "../src/lib/input/openapi.js"; test("resolves nullable references and preserves parent metadata...
d09bf74e3b3ea01803308b679226fe13e85770d5521e21e6b4168157062c3bf2
TypeScript
3,482
99
import assert from "node:assert/strict"; import { test } from "vitest"; import { appendBoundedText, applyMetric, boundedTextItems, MAX_METRIC_ITEMS, MAX_METRIC_ITEMS_TEXT, } from "../src/lib/state/runtime.js"; import { appendTraceEvent, boundedTraceData, enforceTraceBudget, MAX_TRACE_TOTAL_TEXT, tr...
70a9c86366a8adcda0b403e5e6630aabbd9984370b61057c1e1a78a304a62d03
TypeScript
3,657
115
import assert from "node:assert/strict"; import { test } from "vitest"; import { InputState } from "../src/lib/state/input-state.js"; import { PredictionState } from "../src/lib/state/prediction-state.js"; import type { PredictionApi } from "../src/types.js"; test("retains the selected run mode independently of the o...
ea4a8e851faf091b0d46e29109c4ea5ab53e26cf5020019febf22c1c19b3bd51
TypeScript
3,773
100
import assert from "node:assert/strict"; import { test } from "vitest"; import { fileToDataURI, FileReadGuard, MAX_LOCAL_FILE_SIZE } from "../src/lib/input/files.js"; import { dataMediaKind, emptyInputValue, formatBytes, isDataURI } from "../src/lib/input/input.js"; test("rejects local files larger than 16 MiB before...
9eefc73b8b1132ba2dfcbe039866be9b469c23c2c1b91a70af54e0ee9f15646a
TypeScript
3,830
120
/* @license Copyright 2019 Google LLC. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
28894aca796ecf27624beb7c53aca78c5c150120c26d42ff06c4ddd2d7151a45
TypeScript
4,083
125
/* @license Copyright 2019 Google LLC. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
841cdb28fe5112bf7a5d569868394939a34f0da712b0e2189d99ecdfb5689faf
TypeScript
4,207
125
import type { RequestTrace, TraceEvent, UnknownObject } from "../../types.js"; export const MAX_TRACE_EVENTS = 100; export const MAX_TRACE_PAYLOAD_TEXT = 64 * 1024; export const MAX_TRACE_TOTAL_TEXT = 1024 * 1024; const MAX_TRACE_DEPTH = 10; const OMITTED_PAYLOAD = "[payload omitted: trace budget exceeded]"; const OMI...
c98c422a832563742c5bcb9995e16f06fb3092236d054dc77c8634656a342330
TypeScript
4,438
125
import type { HealthResponse, OpenAPIDocument, PlaygroundConfig, ConnectionApi, PredictionApi, PredictionEnvelope, StreamEvent, StreamOptions, SubmitOptions, } from "../../types.js"; import { isObject } from "../json.js"; import { isHealthResponse, isOpenAPIDocument } from "./guards.js"; import { par...
2e7fcc5be9464c0ef02fedeb0dd476d037fe20222fb68a89ec99c26c26839ab5
TypeScript
4,657
128
import type { JsonObject, JsonValue, OpenAPIDocument, OpenAPISchema, OpenAPISchemaMap, PlaygroundCapabilities, PlaygroundEndpoint, } from "../../types.js"; import { emptyInputValue } from "./input.js"; const REF_PREFIX = "#/components/schemas/"; type EndpointDescriptor = { endpoint: PlaygroundEndpoint...
afa883813285ac223ac08cc9d5b04784cd4fe3b20ea8876d4b0591d475ff2c10
TypeScript
4,692
163
export type StringMap<T> = { [key: string]: T }; export type UnknownObject = StringMap<unknown>; export type JsonPrimitive = boolean | null | number | string; export type JsonValue = JsonObject | JsonPrimitive | JsonValue[]; export interface JsonObject { [key: string]: JsonValue; } export type HealthResponse = { ...
d79d21389921939851cd5c132dd9f8855d1035e05224f4f195e69fbce6706479
TypeScript
4,763
147
import { HttpError } from "../transport/http.js"; import type { JsonValue, MetricMap, PredictionEnvelope, RequestTrace, RunMode, } from "../../types.js"; export const TERMINAL = new Set(["succeeded", "failed", "canceled"]); export const MAX_RAW_EVENT_TEXT = 1024 * 1024; export const MAX_STREAM_OUTPUT_TEXT = ...
63e5584a1af03393f8f1663ea575ce86513d67704ecc6d8237291f5956353f62
TypeScript
4,793
143
type ElementAttributeValue = boolean | number | string | EventListener | null | undefined; type ElementAttributes = { [name: string]: ElementAttributeValue }; type ElementChild = Node | string | false | null | undefined; type TabItem<T extends string> = { value: T; label: string }; type StatusVariant = "error" | "neutr...
1d03f5e448c1a336738c8b40618248fc14711cd74e9a4a6345dbd3033df62de2
TypeScript
4,800
206
/* @license Copyright 2019 Google LLC. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
79c574cd5ecad4ea593ebfce8b15a60254f2f758b1159139ac77b0dcfa377d63
TypeScript
4,846
172
import assert from "node:assert/strict"; import { test } from "vitest"; import { createInputValidator, normalizeOpenAPISchema, normalizePythonPattern, validateURI, } from "../src/lib/input/validation.js"; test("normalizes nullable schemas and Python patterns", () => { assert.deepEqual(normalizeOpenAPISchema...
86d85e29c2c779c9cc5c263c19a58ea3f2465aa53fc451f71260e6c13bf53eab
TypeScript
4,935
161
/* @license Copyright 2019 Google LLC. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
dae5344c546ea6b840802da025fd274d127aa48f486b9822e83716e20067664a
TypeScript
5,037
162
import type { ConnectionApi, HealthResponse, OpenAPIDocument, PlaygroundCapabilities, } from "../../types.js"; import { playgroundCapabilities } from "../input/openapi.js"; import { errorMessage } from "../json.js"; import { Store } from "./store.js"; const FALLBACK_TARGET = "http://localhost:8393"; export c...
0e2e4c95870b4b2a31a308c727bc3e4762b04e84c7c2274f9e743bbfdba8931d
TypeScript
5,130
146
import initKiwi from './build/kiwi-wasm.js'; import { KiwiApi } from './kiwi-api.js'; import { Kiwi } from './kiwi.js'; import { BuildArgs } from './build-args.js'; async function createKiwiApi(wasmPath: string): Promise<KiwiApi> { const kiwi = await initKiwi({ locateFile: (path) => { if (path....
f5333b603056214d88bc8e38817dcf11b981ffa11640cdb8b8823dc0fe3c3844
TypeScript
5,494
151
/** * A single file to be loaded. The key is the name of the file and the value is the file data. * The file data can be a string representing a URL or an ArrayBufferView directly containing the file data. */ export type ModelFiles = { [name: string]: ArrayBufferView | string }; /** * A single user word to add. *...
db7372e0b12741de9288ea0771513949aaf13d33191b39610014730bb33791b0
TypeScript
5,664
193
/* @license Copyright 2019 Google LLC. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
160c9bf45d56325514eab4934c2500a9b46f9dccd8ac6ec8017d251c8ccd1d6a
TypeScript
5,901
227
import type { InputMode, JsonObject, OpenAPIDocument, PlaygroundCapabilities, ValidationIssue, } from "../../types.js"; import { defaultInput } from "../input/openapi.js"; import { errorMessage, isJsonObject, isJsonValue, parseInputObject, serializeInput, } from "../json.js"; import { disposeValida...
b945bd7ac93e854def868c1118196f7a44f4604acde90be6a50a1b7af830e5f5
TypeScript
6,142
193
import type { HealthResponse, OpenAPIDocument, OpenAPIPathItem, OpenAPISchema, PredictionEnvelope, StringMap, } from "../../types.js"; import { isJsonObject, isObject } from "../json.js"; const MAX_SCHEMA_DEPTH = 64; const MAX_SCHEMA_NODES = 10_000; export function isHealthResponse(value: unknown): value...
2527708f315df7ec3995817b90aef5d773a2b1cf263d234f06c71a29e31b5d1d
TypeScript
6,173
193
import assert from "node:assert/strict"; import { test } from "vitest"; import { ConnectionState } from "../src/lib/state/connection-state.js"; import type { ConnectionApi, HealthResponse, OpenAPIDocument, PlaygroundConfig, } from "../src/types.js"; test("loads config and connects to its default target", asyn...
dcd7f58c6f2097c5d90233bf7d975634c379a4c26ecf8c6256262ac2dd2019db
TypeScript
6,613
205
/* @license Copyright 2019 Google LLC. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
ec42577693e1ddec71fd5cbbd08fe944b18045ac2407c5aa1d02b7a39620a60f
TypeScript
6,993
184
import { ColorPalette, TextColor } from '@/constants/colors'; import { PlotData } from '@/models/PlotDataModel'; import { formatOxidationState } from '@/utils/GraphUtil'; import { OxidationStatesAPI } from '../data-table/table-models/data-viewer-model'; const GRAPH_POINTS = 250; export interface Settings { BAR_WI...
13c7fd5f28b9788628ce807f001977e8e263b8d9d9c9e90cfa5ed9f434f5b8df
TypeScript
7,173
232
import assert from "node:assert/strict"; import { test } from "vitest"; import { CogApi } from "../src/lib/transport/api.js"; import { isOpenAPIDocument } from "../src/lib/transport/guards.js"; import type { JsonObject } from "../src/types.js"; import { HttpError, parseJSONResponse, parsePredictionResponse, re...
37bcead4e79ccca29143ff191a13fa91ee31b80f1cd738f18d29cf0f098e164d
TypeScript
7,793
249
import assert from "node:assert/strict"; import { test } from "vitest"; import { InputState } from "../src/lib/state/input-state.js"; import type { OpenAPIDocument, PlaygroundCapabilities, ValidationIssue, ValidationRequest, ValidationResponse, } from "../src/types.js"; const document: OpenAPIDocument = { ...