sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
aeec4db129c36bebb41409abb5d3a62f7ecbd16541acbf2fc6995a6425218ad1
TypeScript
856
23
import { Injectable } from '@angular/core'; import {WebService} from "./web.service"; import {HttpClient} from "@angular/common/http"; import {UniprotService} from "./uniprot.service"; @Injectable({ providedIn: 'root' }) export class DbStringService { constructor(private web: WebService, private http: H...
52ced735721fadb5a0adfd4f7d0d8a58ec2db007ce9ac737ca6bd905b491be18
TypeScript
863
38
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { jina: "src/index.ts", }, sourcemap: true, dts: { compilerOptions: { composite: false, declaration:...
c051078e645022c91d3a0da0e2c7717a0245032689e4a53ab6f0d275a1343134
TypeScript
863
35
import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; @Injectable({ providedIn: 'root' }) export class PtmDiseasesService { ptmDiseasesMap: any = {} constructor(private http: HttpClient) { } parsePTMDiseases() { this.http.get("assets/databases/ptm_disease.txt", {resp...
15465cf2cd518a4a2ae8161e8cc940f455d2637db64a2898671db28bba6fc170
TypeScript
866
38
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { morph: "src/index.ts", }, sourcemap: true, dts: { compilerOptions: { composite: false, declaration...
3d711d541cbe3c685d033a1660e9405b0efa865c3deeb6ef902676a2d1fe70ab
TypeScript
866
38
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { index: "src/index.ts", }, sourcemap: true, dts: { compilerOptions: { composite: false, declaration...
eb95a2e4727cc573ad4e9ce075624fa1ae7f9564b99e804d33bad147f33c91eb
TypeScript
866
37
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class ScrollService { constructor() { } scrollToID(id: string) { let e = document.getElementById(id) if (e) { e.scrollIntoView() } else { let observer = new MutationObserver(mutations => { mut...
2f4c995536d30120800f5ae9ca8f7163142a9c5bf09dbd8f37980c8f0bbabde6
TypeScript
869
38
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { cohere: "src/index.ts", }, sourcemap: true, dts: { compilerOptions: { composite: false, declaratio...
384bc2d3da0581bc1ec46d25bf697c3e2ff54afb4941a046fe159491dc86d6f3
TypeScript
870
38
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { ollama: "src/index.ts", }, sourcemap: true, dts: { compilerOptions: { composite: false, declaratio...
a33c669064508fbc06174cc041e26aa546a7a5ff39ca07a292e9505465dd0277
TypeScript
870
38
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { openai: "src/index.ts", }, sourcemap: true, dts: { compilerOptions: { composite: false, declaratio...
047bd27d5c8ccd28326a79787dccedff92eb8d58d5fd36572355612628876eef
TypeScript
873
38
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { mistral: "src/index.ts", }, sourcemap: true, dts: { compilerOptions: { composite: false, declarati...
51c36735f7625ce606fac4f563051ece0084691755861eb0c71f3f542a82cb0c
TypeScript
875
23
import {describe} from "mocha"; import {expect} from "chai"; import * as Util from "../utilities" import * as assert from "assert"; describe("Utilities", () => { it('Get Interactome Atlas data', async () => { const result = await Util.interactomeAtlas(["BAK1", "BID", "BAD", "BCL2", "BAX"]) expect(r...
81c0efc930949cb20488ab453e789cb187df01a0ada840312009ac5c0ef3efe6
TypeScript
876
38
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { voyageai: "src/index.ts", }, sourcemap: true, dts: { compilerOptions: { composite: false, declarat...
b8c1dced83fe34bf6b3fcaa2a9fcf2c2d0d5158f6e1f69a8e6bcb2bf42370216
TypeScript
881
41
export { ChromaClient } from "./ChromaClient"; export { AdminClient } from "./AdminClient"; export { CloudClient } from "./CloudClient"; export { Collection } from "./Collection"; export { IEmbeddingFunction } from "./embeddings/IEmbeddingFunction"; export * from "./embeddings/all"; export * from "./schemas"; export {...
efc53c4590fb30e051fac5bac08a321f80626b8387c218fbe7cfb92ffbe23fa0
TypeScript
881
38
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { perplexity: "src/index.ts", }, sourcemap: true, dts: { compilerOptions: { composite: false, declar...
e93b5f9e11910d9cd3b1a2a1acccea465b53c98e8b12e65e0fc57cdc0502f885
TypeScript
887
30
import { Component, OnInit } from '@angular/core'; import {SettingsService} from "../../settings.service"; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; @Component({ selector: 'app-fdr-curve', templateUrl: './fdr-curve.component.html', styleUrls: ['./fdr-curve.component.scss'] }) export class FdrCur...
f8a634c56c18516c36cf309609481ad79668da4f5ff542653c95817d33c9dd70
TypeScript
896
19
// This file is auto-generated by @hey-api/openapi-ts import type { ClientOptions } from './types.gen'; import { type Config, type ClientOptions as DefaultClientOptions, createClient, createConfig } from '@hey-api/client-fetch'; /** * The `createClientConfig()` function will be called on client initialization * and...
669cb7581e2acd889d33f5bfcaf87f1dfb8d993469d31d6f4807d0132179fd4b
TypeScript
903
37
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class ScrollService { constructor() { } scrollToID(id: string) { let e = document.getElementById(id) if (e) { e.scrollIntoView() } else { let observer = new MutationObserver(mutations =>...
23d6535d7d742b7d81036132c9388319f65b146a38505b90e30adcd9e663ab0e
TypeScript
906
21
// This file can be replaced during build by using the `fileReplacements` array. // `ng build` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = { production: false, apiURL: "https://celsus.muttsu.xyz/", //apiURL: "ht...
e3124dcbd7aaa120e523e9be6b775f72fc07dca628dfe70ff96b17cf3b2b29c4
TypeScript
909
41
import {Component, Input, OnInit} from '@angular/core'; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {FormBuilder} from "@angular/forms"; @Component({ selector: 'app-variant-selection', templateUrl: './variant-selection.component.html', styleUrls: ['./variant-selection.component.scss'] }) ex...
3053a219de39d0f7159b892593128b03356b8c5665a2a73edc94a4af2cf59cca
TypeScript
917
30
import { Component, OnInit } from '@angular/core'; import {SettingsService} from "../../settings.service"; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; @Component({ selector: 'app-fdr-curve', templateUrl: './fdr-curve.component.html', styleUrls: ['./fdr-curve.component.scss'] }) export cla...
aaf8ce3ef11cfdd91abdf02806ea6ae7705f22d5e846d4aa67f30e954a567162
TypeScript
917
26
import {Component, Input, OnInit} from '@angular/core'; @Component({ selector: 'app-protein-information', templateUrl: './protein-information.component.html', styleUrls: ['./protein-information.component.scss'] }) export class ProteinInformationComponent implements OnInit { _data: any = {} diseases: string[]...
b2543b051a5b3647e6621baa33d3700a8299990bc8c82cc534f375147c064a2e
TypeScript
917
21
// This file can be replaced during build by using the `fileReplacements` array. // `ng build` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = { production: false, apiURL: "https://celsus.muttsu.xyz/", //apiURL: "ht...
b82f5c60a65674fb6a3d9b6f19a6acffc5e5255d1eea8a4559a0db4dc8bdc7a8
TypeScript
918
41
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { "together-ai": "src/index.ts", }, sourcemap: true, dts: { compilerOptions: { composite: false, dec...
2004bad350bf30fe0cf8f0366283faefad349a2769ac7a6f54091d63104e2445
TypeScript
919
36
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { environment } from './../environments/environment'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'pubmeda...
eeeb3aca31fbadef8b82502484499dfd1757204799a6f5b33116201c810676ec
TypeScript
920
20
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
f4e736d6c8d69ae5b3ab0ddfcaa3dc365c3e76909d6660af5b4e979b3934ac20
TypeScript
921
20
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
11d5d16cb1611a65f57546cb4b86def0a9565367abaa42f173944bfc9e8254d2
TypeScript
924
41
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { "google-gemini": "src/index.ts", }, sourcemap: true, dts: { compilerOptions: { composite: false, d...
7e5dadbfcfaef578f2f34a77869e1b1e899a99dd13070a56daaee969cabf5e4c
TypeScript
924
41
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { "default-embed": "src/index.ts", }, sourcemap: true, dts: { compilerOptions: { composite: false, d...
819fb1761097371ca81b124ec0b3fc37589863ae8b29267d3dc95678decdc971
TypeScript
927
21
// This file can be replaced during build by using the `fileReplacements` array. // `ng build` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = { production: false, apiURL: "https://celsus.muttsu.xyz/", //apiU...
dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5
TypeScript
928
20
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
89c94b657771487d5b6bb58d6b7480d513a6fa0ca4474a41f7d5cae5218de6a3
TypeScript
932
31
/// <reference types="pouchdb-find" /> /// <reference types="pouchdb-core" /> /// <reference types="pouchdb-mapreduce" /> /// <reference types="pouchdb-replication" /> export declare class User { get refresh_token(): string; set refresh_token(value: string); get access_token(): string; set access_token(...
12f00bf6597049e0ffa031b2fe645eb77a9b2929c68410dc20e930b65bedd80a
TypeScript
938
21
// This file can be replaced during build by using the `fileReplacements` array. // `ng build` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = { production: false, apiURL: "https://celsus.muttsu.xyz/", //apiU...
02e71aacd41aaee906b5657bb4b13c715f87657f1dd026f90144aadcf4316df2
TypeScript
939
41
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { "huggingface-server": "src/index.ts", }, sourcemap: true, dts: { compilerOptions: { composite: false, ...
bbf0e6b1c908ed87d5244b8e9f1a262686a7863e220c9825a2dd1848b7baf5fd
TypeScript
943
26
import {Component, Input, OnInit} from '@angular/core'; @Component({ selector: 'app-protein-information', templateUrl: './protein-information.component.html', styleUrls: ['./protein-information.component.scss'] }) export class ProteinInformationComponent implements OnInit { _data: any = {} diseases:...
2ced5214fb4159e282ccc5c84fa9eeac92a16ee70be4d2b0b099d460c765d72f
TypeScript
947
47
/** * Create a new error constructor instance. */ declare function makeError( name: string ): makeError.Constructor<makeError.BaseError>; /** * Set the constructor prototype to `BaseError`. */ declare function makeError<T extends Error>(super_: { new (...args: any[]): T; }): makeError.Constructor<T & makeError...
811c536ab7225d489570d9afcab57b83ed7abfcd2274e4133fc625fd04386bdf
TypeScript
950
56
import {FactoryTarget} from "@angular/compiler"; export class Project { title: string = "" projectDescription: string = "" organisms: any[] = [ {name: ""} ] organismParts: any[] = [ {name: ""} ] cellTypes: any[] = [ {name: ""} ] diseases: any[] = [ {name: ""} ] sampleProcessingPr...
ca149de6054e791fbefa20e0b6a712c5a6b6f42b349b1b2d7987be68567ac82d
TypeScript
954
25
import { startChromaRustServer } from "./startChromaContainer"; import { execSync } from "child_process"; import { startOllamaContainer } from "./embeddings/startOllamaContainer"; export default async function testSetup() { const { url, stop } = await startChromaRustServer(); process.env.DEFAULT_CHROMA_INSTANCE_UR...
15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3
TypeScript
955
23
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
8d4e35c0a34c24bc98f70fe5c3470c46fdba14c8657fc6f8014367830334ddd7
TypeScript
957
29
import { Injectable } from '@angular/core'; import {CurtainLink} from "./classes/curtain-link"; import {HttpClient, HttpHeaders, HttpParams} from "@angular/common/http"; @Injectable({ providedIn: 'root' }) export class KinaseLibraryService { links = new CurtainLink() constructor(private http: HttpClient) { } ...
ba7aa7bdc247626efda7ceb5dbb9454080ded974da935d62cb7969bb6843fa05
TypeScript
957
42
import {Component, Input, OnInit} from '@angular/core'; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {Options} from "ngx-qrcode-styling"; @Component({ selector: 'app-qrcode-modal', templateUrl: './qrcode-modal.component.html', styleUrls: ['./qrcode-modal.component.scss'] }) export class Qrco...
47182681c2a91123bbab617108ea73af3d930cbaa9416a558c81b66e7c98eb5a
TypeScript
964
17
export declare class TypeSystemDuplicateTypeKind extends Error { constructor(kind: string); } export declare class TypeSystemDuplicateFormat extends Error { constructor(kind: string); } /** Creates user defined types and formats and provides overrides for value checking behaviours */ export declare namespace Ty...
ee0861e21f93a5e335d52ecba16e8b9f7ef1a2a4e401062268af4a8ccc06bbb3
TypeScript
965
42
import {Component, Input, OnInit} from '@angular/core'; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {Options} from "ngx-qrcode-styling"; @Component({ selector: 'app-qrcode-modal', templateUrl: './qrcode-modal.component.html', styleUrls: ['./qrcode-modal.component.scss'] }) export class Qrco...
05d2a775ecb681333b1f8a683941daf85dab62bc0d6dc7c00c825b506b813c8e
TypeScript
967
37
import {Component, Input, OnInit} from '@angular/core'; import {WebService} from "../../web.service"; import {UniprotService} from "../../uniprot.service"; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; @Component({ selector: 'app-kinase-info', templateUrl: './kinase-info.component.html', styleUrls: ...
f001cc8fd6bd0ce527923f124a5d7309abcab5927852ebadc0ef71d2b1f3ae7c
TypeScript
983
33
/** * Generate URL-friendly unique ID. This method uses the non-secure * predictable random generator with bigger collision probability. * * ```js * import { nanoid } from 'nanoid/non-secure' * model.id = nanoid() //=> "Uakgb_J5m9g-0JDMbcJqL" * ``` * * @param size Size of the ID. The default size is 21. * @re...
44da037f0a7df611fe57618a9e6591a39516f322a636e4602c87314245de8e77
TypeScript
985
26
import { UrlAndMap } from 'source-map-support'; import { TransformOptions } from 'esbuild'; type Transformed = { code: string; map: RawSourceMap; warnings?: any[]; }; type RawSourceMap = UrlAndMap['map']; declare function installSourceMapSupport(): ({ code, map }: Transformed, filePath: string) => string;...
ba42208ef0fa895be1cfd5cf70136cf489c35d3381cc884c2da32c84f2e25255
TypeScript
986
38
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ export declare type Callbacks = { foundSubsequence: FoundSubsequence; isCommon: IsCommon; }; declare function diffSequence( ...
ce10dc50f921746bd855ccbdcc2447fbabfcbf631b7c8fe49ccc5b7ccd286a0e
TypeScript
993
37
export declare class Parser { pollingInterval: number; columns: string; includeIsoform: boolean; format: string; resultUrl: ResultLink[]; constructor(pollingInterval?: number, columns?: string, format?: string, includeIsoform?: boolean); parse(ids: string[], segment?: number): AsyncGenerator...
2dadfe52949502b4c3d47880e0e0604780a51e2ee3f794ce4203efaf5f0b8a2f
TypeScript
1,006
56
import {FactoryTarget} from "@angular/compiler"; export class Project { title: string = "" projectDescription: string = "" organisms: any[] = [ {name: ""} ] organismParts: any[] = [ {name: ""} ] cellTypes: any[] = [ {name: ""} ] diseases: any[] = [ {name: ""} ] ...
038414b33ba8c842fd0de56e550cb4983c3b2955c6bc9f1a9294136690604c85
TypeScript
1,007
42
import {Component, Input, OnInit} from '@angular/core'; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {Options} from "ngx-qrcode-styling"; @Component({ selector: 'app-qrcode-modal', templateUrl: './qrcode-modal.component.html', styleUrls: ['./qrcode-modal.component.scss'] }) export c...
f2ef9d34ef064104d09e67e76f7bf3a9cb76476ce7bf910c20d2e5a6f3226ccc
TypeScript
1,030
28
import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {WebService} from "./web.service"; @Injectable({ providedIn: 'root' }) export class InteractomeAtlasService { constructor(private http: HttpClient, private web: WebService) { } async getInteractome(genes: string...
11d072996eb4179a2697bb0cbaaa6372bd0ec2890d7ea25bc8b17454e2bce322
TypeScript
1,031
23
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
7823c8aa42d88e6cb454fe7dc56996c6fd174b28a9f050e9bdea1c25b7d114ea
TypeScript
1,031
23
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
994c234848afc14a2586b6565777f4c0b05dc479ede0a041bfd5becf6dceb586
TypeScript
1,031
23
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
f221625bd128d33cd4b4572b6a73a6890a604a92e5ce8e691ef0a6be09452110
TypeScript
1,031
23
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
1cf3d4a034ad12eb2d2e8d9c2348c45910494577fb0976f68b234fd3aed0b799
TypeScript
1,032
28
import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {WebService} from "./web.service"; @Injectable({ providedIn: 'root' }) export class InteractomeAtlasService { constructor(private http: HttpClient, private web: WebService) { } async getInteractome(genes: stri...
1df2366de6650547b3dc1d7c4147355c0f6b4729c964e3839636fa418982d131
TypeScript
1,032
23
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
322cc0ca9c311414642c0d7ef3b57beedbac198ca074e3e109a4be4c366dcb81
TypeScript
1,032
23
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
96faed465c61094522e325f2d0cde902e459b4eb68d7fc4f8f4bcc8eec5ad0e1
TypeScript
1,032
23
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
a94df2b3153860093bee922d97e272590f9fb04c18bd56c8032b09bd8e41dd16
TypeScript
1,032
23
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
c1e8d979afc15d66e2bd5a58c732d5a2ba3ccaae41ac7d5a2c539e6de66a8e51
TypeScript
1,032
23
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
fa1541d0f7e023d7638b008a98cd41dd8cc945883962630336bf83d4d546c2eb
TypeScript
1,036
32
// Deno compatibility patch for @hey-api/client-fetch // This must be imported before any @hey-api/client-fetch code if (typeof (globalThis as any).Deno !== "undefined") { // Store the original Request constructor const OriginalRequest = globalThis.Request; // Create a patched Request constructor that strips De...
024a1ec8b91a9c12325ad9627c60fc689933e7a5e0f5cd5f602ec19abc36d959
TypeScript
1,040
26
import { extractMinimizers, dnaHammingDistance } from '../noalign'; import { SEQUENCE_TYPE } from '../params'; test('Extracts Minimizers from sequence', () => { const lSeq = { rawSeq:'TGCCACCATGCAGCAGTGCAAGTGACG', compressedSeq: new Uint8Array(), encodedSeq: new Uint8Array([3,2,1,1,0,1,1,0,...
c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996
TypeScript
1,042
24
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
497cd8f7db43408cadbfd625a2dfbca4a50c8a9bb4d2891b84fb2d4d494ae570
TypeScript
1,048
28
/** * Typing for the parts of tsconfig that we care about */ export interface Tsconfig { extends?: string; compilerOptions?: { baseUrl?: string; paths?: { [key: string]: Array<string>; }; strict?: boolean; }; } export interface TsConfigLoaderResult { tsConfi...
28f52a72242b44c4f005c29148a83af873f44324a86f84d67575e037b6c914ab
TypeScript
1,060
28
import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {WebService} from "./web.service"; @Injectable({ providedIn: 'root' }) export class InteractomeAtlasService { constructor(private http: HttpClient, private web: WebService) { } async getInteractome(...
5098e89d5270f3a60fb47709ef7e9156c995ef4c9b105c103173555c672b970b
TypeScript
1,071
35
import { TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ RouterTestingModule ], ...
a3b50c2612f219ae55695ca76e80b9acdaf0ad68c3ce8f37306bf55789f6aab8
TypeScript
1,079
26
import * as Types from '../typebox'; export declare class ValueCastReferenceTypeError extends Error { readonly schema: Types.TRef | Types.TSelf; constructor(schema: Types.TRef | Types.TSelf); } export declare class ValueCastArrayUniqueItemsTypeError extends Error { readonly schema: Types.TSchema; readon...
27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3
TypeScript
1,083
24
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
9399249513ff25547c623c9e131aeb0f437c410ee6b66cd3aebd53a75d153d76
TypeScript
1,085
35
import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [ RouterTestingModule ], ...
86338b95a1619f02a54a166c0d88827d20a8b3b0015c9ec67d05bbacb2e5d3cd
TypeScript
1,088
35
import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [ RouterTestingModule ], ...
1802d9ef4847f6c1f2a059a7e3c705e3db485bff57780128b61d8d79bdff46ef
TypeScript
1,090
21
import * as MappingEntry from "./mapping-entry"; import * as Filesystem from "./filesystem"; /** * Function that can match a path async */ export interface MatchPathAsync { (requestedModule: string, readJson: Filesystem.ReadJsonAsync | undefined, fileExists: Filesystem.FileExistsAsync | undefined, extensions: Rea...
c3f267d949863e862efc29550bcfd2256c2a225b8c9951324f7845a2ef56c280
TypeScript
1,107
38
import { createRequire } from "module"; import os from "os"; const require = createRequire(import.meta.url); const platform = os.platform(); const arch = os.arch(); let binding: any; if (platform === "darwin") { if (arch === "arm64") { binding = require("chromadb-js-bindings-darwin-arm64"); } else if (arch =...
ca7cdd502dcb6932f510a630d5086f593123abc894fea89c9d8577e6641ffd2c
TypeScript
1,117
41
import { defineConfig, type Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { "chroma-bm25": "src/index.ts", }, sourcemap: true, dts: { compilerOptions: { ...
ee9ab3ff9f2402eb45107be13f295d6723982564fa20b9c319a6e3506a994b83
TypeScript
1,120
35
import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [ RouterTestingModule ...
3158a7268fadc49dd95becb715b91793f4a17627b8f57dfbd5e436cee2e1d187
TypeScript
1,124
33
/** * Typing for the fields of package.json we care about */ export interface PackageJson { [key: string]: string; } /** * A function that json from a file */ export interface ReadJsonSync { (packageJsonPath: string): any | undefined; } export interface FileExistsSync { (name: string): boolean; } export...
000162f3cf5aadfa75acd63317178839a07ba8eff4f774c33bbcef836bc54f88
TypeScript
1,125
34
import { createRequire } from "module"; const require = createRequire(import.meta.url); let binding: any; if (process.platform === "darwin") { if (process.arch === "arm64") { binding = require("chromadb-js-bindings-darwin-arm64"); } else if (process.arch === "x64") { binding = require("chromadb-js-binding...
213860d6dce3f7262c73b612d400ba9439e9584756d0b8f7803b7f29396d345a
TypeScript
1,125
34
import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {UniprotService} from "./uniprot.service"; @Injectable({ providedIn: 'root' }) export class CarbonyldbService { carbonylMap: any = {} constructor(private http: HttpClient, private uniprot: UniprotService) { } g...
bdab477e145be4e274b5ded8e3961f9ee5a5aa6228ec7c47591fa4290d5a5fd9
TypeScript
1,133
24
export declare class ValuePointerRootSetError extends Error { readonly value: unknown; readonly path: string; readonly update: unknown; constructor(value: unknown, path: string, update: unknown); } export declare class ValuePointerRootDeleteError extends Error { readonly value: unknown; readonly...
3c8b82e2c473e4ee70321d92918ec893c0d651fef8404884a01dc7bbed4225b1
TypeScript
1,135
33
import * as TsConfigLoader2 from "./tsconfig-loader"; export interface ExplicitParams { baseUrl: string; paths: { [key: string]: Array<string>; }; mainFields?: Array<string>; addMatchAll?: boolean; } export declare type TsConfigLoader = (params: TsConfigLoader2.TsConfigLoaderParams) => TsCon...
6c7883e3b485b720259330ca0eda3115359fe779f6c36fe0ff83163918bbd09e
TypeScript
1,139
41
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { "sentence-transformer": "src/index.ts", }, sourcemap: true, dts: { compilerOptions: ...
2c2abfbbfe66fbde4274884b5f96ce1a7d2354849b66732429f7d5e417067ccd
TypeScript
1,141
41
import { defineConfig, type Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { "chroma-cloud-splade": "src/index.ts", }, sourcemap: true, dts: { compilerOptio...
5d3770aa2baf59532e7c0c9934902c53a2ed1d1cdc78b89e49e7f0c0d997d44d
TypeScript
1,149
36
export declare class CurtainWebAPI { loginURL: string; logoutURL: string; refereshURL: string; orcidLoginURL: string; userInfoURL: string; user: User; isRefreshing: boolean; axiosInstance: import("axios").AxiosInstance; constructor(baseURL?: string); login(username: string, passw...
5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc
TypeScript
1,152
26
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
56affb0e60febebdbd13b79d86ea50520d14f0cfdd64a7f329aa5b63bd6b8fea
TypeScript
1,153
45
import { ChromaClient } from "../src/ChromaClient"; import { CloudClient } from "../src/CloudClient"; const PORT = process.env.PORT || "8000"; const URL = "http://localhost:" + PORT; export const chromaBasic = (url?: string) => new ChromaClient({ path: url ?? URL, auth: { provider: "basic", credentials: "adm...
d2af84e4da177f23248cfe91a2a93c4744d30d2f42ab362d00c244d4f432c2e1
TypeScript
1,169
53
// create a cloudclient class that takes in an api key and an optional database // this should wrap ChromaClient and specify the auth scheme correctly import { ChromaClient } from "./ChromaClient"; import { AuthOptions } from "./auth"; interface CloudClientParams { apiKey?: string; database?: string; tenant?: s...
3694255bb3b4d200adac2b13dbe88c7df88d5dba675bc40388d837e7deae4047
TypeScript
1,174
46
import {Component, Input, OnInit} from '@angular/core'; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {WebService} from "../../web.service"; import {KinaseLibraryService} from "../../kinase-library.service"; @Component({ selector: 'app-kinase-library-modal', templateUrl: './kinase-library-modal...
e64602b3b4726b59be03e0df5fd51f4647e48e496e87cf6d5cf1d48444e11d5d
TypeScript
1,176
33
import { beforeEach, describe, expect, test } from "@jest/globals"; import { ChromaClient } from "../src"; import { EMBEDDINGS, IDS } from "./utils/data"; describe("peek records", () => { // connects to the unauthenticated chroma instance started in // the global jest setup file. const client = new ChromaClient(...
307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc
TypeScript
1,192
28
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
b0e6d03db3950c5f6bf78dee9c0e7b8cf58d7166987489c4a038d36da5a1d22d
TypeScript
1,195
33
import {Component, Input, OnInit} from '@angular/core'; import {PtmDiseasesService} from "../../ptm-diseases.service"; @Component({ selector: 'app-protein-information', templateUrl: './protein-information.component.html', styleUrls: ['./protein-information.component.scss'] }) export class ProteinInformationCompo...
4e4be7c61350ce7d8ad99f47703094caa5e02a17621205e839d95e484ffbe62f
TypeScript
1,198
48
import { defineConfig, Options } from "tsup"; import fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { "chromadb-client": "src/index.ts", }, sourcemap: true, dts: true, target: "es2020", // Only bundle the core, keep emb...
96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538
TypeScript
1,207
44
// Type definitions for JSON5 // Project: http://json5.org/ // Definitions by: Jason Swearingen <https://jasonswearingen.github.io> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped //commonjs loader /** * The following is the exact list of additions to JSON's syntax introduced by JSON5. All of th...
a31251d6636de2dc2efa74030cd28c7598f3f4f6ccfdaa2a2d5db10099fc352b
TypeScript
1,210
45
// dandiTypes.ts export interface DandiPaginatedResponse<T> { count: number; next: string | null; previous: string | null; results: T[]; } export interface DandisetVersionInfo { version: string; name: string; created: string; modified: string; status: string; asset_count:...
8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1
TypeScript
1,227
37
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa
TypeScript
1,237
28
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
f2eba6f395bbc54ce5053c5c6f230769022b6e00153a843f37b28db7e02efc90
TypeScript
1,242
44
import { defineConfig, Options } from "tsup"; import fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { chromadb: "src/index.ts", cli: "src/cli.ts", }, sourcemap: true, dts: true, target: "es2020", external: [ ...
6483e8bc257f2ca1a946aa21788ea345c3b74aee77408b27837221f45d237d07
TypeScript
1,252
49
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { chromadb: "src/index.ts", cli: "src/cli.ts", }, sourcemap: true, external: [ "chromadb-js-bindings-darwin-ar...
d7a2076bdde720a724612a8c8923e75f06e65e99500d66a6b97fb5b5a551a940
TypeScript
1,255
34
import { beforeEach, describe, expect, test } from "@jest/globals"; import { IDS, EMBEDDINGS } from "./data"; import { ChromaNotFoundError } from "../src/Errors"; import { ChromaClient } from "../src/ChromaClient"; describe("peek records", () => { // connects to the unauthenticated chroma instance started in // th...
8e3fd830c603d120b7258a297f6c87ed95730e5b5b2076f9b6b2abf8adf95f43
TypeScript
1,265
51
export * from "./schema-utils"; export const DEFAULT_CHROMA_EMBED_URL = "https://embed.trychroma.com"; export function getChromaEmbedUrl(): string { return (process.env.CHROMA_EMBED_URL || DEFAULT_CHROMA_EMBED_URL).replace( /\/+$/, "", ); } /** * Decode a base64-encoded int8 embedding to a number array....
82930863636c4c210b7f59d86a7ca01196931cebc512b89ffc7e7b660345e7f4
TypeScript
1,283
50
import { defineConfig, Options } from "tsup"; import * as fs from "fs"; import * as path from "path"; export default defineConfig((options: Options) => { const commonOptions: Partial<Options> = { entry: { "chromadb-core": "src/index.ts", }, sourcemap: true, dts: true, target: "es2020", ...
a3f370c838587837c493e0f096cf9e467b6f165ca73456ae41946f920866c6c5
TypeScript
1,285
42
import {AfterViewInit, Component, OnDestroy} from '@angular/core'; import {AccountsService} from "./accounts/accounts.service"; import {SwUpdate} from "@angular/service-worker"; import {Subscription} from "rxjs"; import {SettingsService} from "./settings.service"; @Component({ selector: 'app-root', templateUrl: '....