sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
ea1f3a67ce519660913612db08f55422b14995bcd64e61d39ec96202ede607c5
TypeScript
216
11
import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; @Injectable({ providedIn: 'root' }) export class KinaseLibraryService { constructor(private http: HttpClient) { } }
6119b45a38b3f10ff14c91652fece7433b9ab17086cbada60a290708162ad820
TypeScript
221
11
// vite.config.ts import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; import tailwindcss from '@tailwindcss/vite'; export default defineConfig({ plugins: [ vue(), tailwindcss(), ], });
1d0a2317852d21742a4b0b1783bfeffeaf8b0405eb2409a9e569f3182a7e123a
TypeScript
224
3
type Promisable<T> = T | Promise<T>; export type Callback = (directory: string, files: string[]) => Promisable<string | false | void>; export default function (directory: string, callback: Callback): Promise<string | void>;
9cc884a6f8547dec935f930b8aad8212aaae876ebeaab5cd42d20b45251860e7
TypeScript
227
5
import * as Parser from 'yargs-parser'; export function applyExtends(config: Record<string, any>, cwd: string, mergeExtends: boolean): Record<string, any>; export function hideBin(argv: string[]): string[]; export { Parser };
dec307b49955cfa7e16da6db0310b56b05e1f04e6a672f71de5199ab9a7ed159
TypeScript
227
11
import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; @Injectable({ providedIn: 'root' }) export class KinaseLibraryService { constructor(private http: HttpClient) { } }
a2d22d6d564972b98eecd4acfd1018dcf7931770603aedb6f606a6f1659307ab
TypeScript
228
8
declare module "snowball-stemmers" { export interface SnowballStemmer { stem(token: string): string; } export function newStemmer(language: string): SnowballStemmer; export const algorithms: string[]; }
c8f690affb73ba834a172db308a406246b3a2a30c4e4992a2f145d50e5f6a8f6
TypeScript
243
14
/** Detect whether the terminal supports Unicode. @example ``` import isUnicodeSupported = require('is-unicode-supported'); isUnicodeSupported(); //=> true ``` */ declare function isUnicodeSupported(): boolean; export = isUnicodeSupported;
5b2d87774d452063adc36dedd5b84e4c5743320669494a3ebdc6dc036bce3843
TypeScript
249
11
import { Injectable } from '@angular/core'; import {Settings} from "./classes/settings"; @Injectable({ providedIn: 'root' }) export class SettingsService { settings = new Settings() newVersionAvailable: boolean = false; constructor() { } }
8758d68c260f98760bdf20e4ce83f661a30cd37682dc50b946e0ca41802bac5b
TypeScript
260
11
import { Injectable } from '@angular/core'; import {Settings} from "./classes/settings"; @Injectable({ providedIn: 'root' }) export class SettingsService { settings = new Settings() newVersionAvailable: boolean = false; constructor() { } }
8ec8bf7ed6e4f8c91a5b1e02716e1cce99d956a6647bc9f794249356d03e7566
TypeScript
263
7
export const environment = { production: true, apiURL: "https://celsus.muttsu.xyz/", //apiURL: "https://celsus.caprover.muttsu.com/", //google: "101803197167-s9fb349oeqhjmvs5afn9idopgipnlvtk.apps.googleusercontent.com", orcid: "APP-5RXLC3W1MS2MOW0F" };
768a7c1706d9178f9a2ae18e1d912e1533cc159c109da42d57885eb44413fbd8
TypeScript
266
6
import { ExplicitParams } from "./config-loader"; /** * Installs a custom module load function that can adhere to paths in tsconfig. * Returns a function to undo paths registration. */ export declare function register(explicitParams: ExplicitParams): () => void;
0bf1da8e425ecfc8875603c28dc4f7a60304a52b3681363f2c70240eba1b7a08
TypeScript
267
15
import { Injectable } from '@angular/core'; import * as biomsa from "biomsa" @Injectable({ providedIn: 'root' }) export class BiomsaService { constructor() { } alignSequences(sequences: any) { return biomsa.default.align(Object.values(sequences)) } }
035669c6267a93289fa38ae78167c6bd1f6e0e716dbaf5337e3cee07ae2b10ca
TypeScript
270
7
export const environment = { production: true, apiURL: "https://celsus.muttsu.xyz/", //apiURL: "https://celsus.caprover.muttsu.com/", //google: "101803197167-s9fb349oeqhjmvs5afn9idopgipnlvtk.apps.googleusercontent.com", orcid: "APP-5RXLC3W1MS2MOW0F" };
72403f2a42159afc4dfc2d6425242fb14203ae134961f7900530016c5b48e6a0
TypeScript
272
8
export declare class ValueHashError extends Error { readonly value: unknown; constructor(value: unknown); } export declare namespace ValueHash { /** Creates a FNV1A-64 non cryptographic hash of the given value */ function Create(value: unknown): bigint; }
3aa9c844fd99fa7be2cefa5b4432d43ea0a48c88ee203faeba828bb236bac25b
TypeScript
275
11
type AssertionError<T = {}> = Error & T & { showDiff: boolean; }; interface AssertionErrorConstructor { new<T = {}>(message: string, props?: T, ssf?: Function): AssertionError<T>; } declare const AssertionError: AssertionErrorConstructor; export = AssertionError;
9031f64d184a4b9ce8d03f80f0293cb8c85a057882b9d2b5d48217bf86ea9c2b
TypeScript
290
12
import { Injectable } from '@angular/core'; import {Settings} from "../app/classes/settings"; @Injectable({ providedIn: 'root' }) export class SettingsService { currentID: string = "" settings: Settings = new Settings(); newVersionAvailable: boolean = false; constructor() { } }
d93ae07a51e7f37fd9b466e463457a67941ba51e0d995872edf080afd4c3b522
TypeScript
301
11
import { browser, by, element } from 'protractor'; export class AppPage { navigateTo(): Promise<unknown> { return browser.get(browser.baseUrl) as Promise<unknown>; } getTitleText(): Promise<string> { return element(by.css('app-root .content span')).getText() as Promise<string>; } }
33e7cad296da1bf73f4dd4e447b0c60a10b4bf4e82f343fdb34174423f539e19
TypeScript
304
18
import * as minimist from "minimist"; const argv = minimist(process.argv.slice(2), { string: ["project"], alias: { project: ["P"], }, }); const project = argv && argv.project; export interface Options { cwd: string; } export const options: Options = { cwd: project || process.cwd(), };
809b4115bbbd060ec6c8634bbc163929c427e4498dbddfcbb96b90a5993ef1c7
TypeScript
305
10
import { queryMovies } from "@/lib/chroma"; import { NextResponse } from "next/server"; export async function POST(req: Request) { const { query }: { query: string } = await req.json(); const movieResults = await queryMovies(query); return NextResponse.json({ results: movieResults.results }); }
9e2ccb2a594a7548f7f85e96a02dd26855d362256e7b18d48874e37a8370c86d
TypeScript
315
15
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-quick-navigation', templateUrl: './quick-navigation.component.html', styleUrls: ['./quick-navigation.component.scss'] }) export class QuickNavigationComponent implements OnInit { constructor() { } ngOnInit(): void { } }
a94e5bd590a08cb231fcbf9472982370993ae02eb7ab0133450058680f5f87ca
TypeScript
317
17
import { Injectable } from '@angular/core'; // @ts-ignore import * as jeezy from "jeezy"; @Injectable({ providedIn: 'root' }) export class JeezyService { constructor() { } calculateCorrMaxtrix(data: any[], cols: string[]) { const result = jeezy.arr.correlationMatrix(data, cols) return result } }
365aa9ce008d235f18b8c3ff2581b62f2fcdd9db6cc6692c7206d5cd9e51e512
TypeScript
330
15
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-rank-abundance-modal', templateUrl: './rank-abundance-modal.component.html', styleUrls: ['./rank-abundance-modal.component.scss'] }) export class RankAbundanceModalComponent implements OnInit { constructor() { } ngOnInit(): void...
b347b27dc16a93c19729a3d49597486e717dc4f4bb102e4445cccbfef6403b04
TypeScript
330
15
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-quick-navigation', templateUrl: './quick-navigation.component.html', styleUrls: ['./quick-navigation.component.scss'] }) export class QuickNavigationComponent implements OnInit { constructor() { } ngOnInit(): void { ...
b72bf019af01b26fcc78649c5bbe3bcd0b610bc2c13701289ca1a83e02110c8f
TypeScript
334
17
import { Injectable } from '@angular/core'; // @ts-ignore import * as jeezy from "jeezy"; @Injectable({ providedIn: 'root' }) export class JeezyService { constructor() { } calculateCorrMaxtrix(data: any[], cols: string[]) { const result = jeezy.arr.correlationMatrix(data, cols) return re...
4e95fbb24f126cb251fc732afbb134490ea474732c9b3c3742f437caa04d8ecf
TypeScript
342
16
import { TestBed } from '@angular/core/testing'; import { WebService } from './web.service'; describe('WebService', () => { let service: WebService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(WebService); }); it('should be created', () => { expect(service).to...
a0fd1fafe6bc3e4bc8c02d8ca0d89ffd5831980a4e9fa1eacb6688470979a46d
TypeScript
342
16
import { TestBed } from '@angular/core/testing'; import { EbiService } from './ebi.service'; describe('EbiService', () => { let service: EbiService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(EbiService); }); it('should be created', () => { expect(service).to...
c27a65cbada773d196f9a10810e7c56354379e46b35f9235c563dc6cb9fc7b02
TypeScript
342
16
import { TestBed } from '@angular/core/testing'; import { PtmService } from './ptm.service'; describe('PtmService', () => { let service: PtmService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(PtmService); }); it('should be created', () => { expect(service).to...
dc821325d372cb58eb3ac1ea39a3dc3f7dd13f949758cd26e181264316779e55
TypeScript
342
16
import { TestBed } from '@angular/core/testing'; import { PspService } from './psp.service'; describe('PspService', () => { let service: PspService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(PspService); }); it('should be created', () => { expect(service).to...
54d256618097c036db21a3ae97721841d241f0fb046b932c8ccf8d15a3544fd2
TypeScript
343
8
import * as Types from '../typebox'; export declare class ValueCheckUnknownTypeError extends Error { readonly schema: Types.TSchema; constructor(schema: Types.TSchema); } export declare namespace ValueCheck { function Check<T extends Types.TSchema, R extends Types.TSchema[]>(schema: T, references: [...R], v...
7e5efe4ba46890fb91e3851bbb64e8f28e82d5358334cd00a9acf3790fd4128f
TypeScript
345
15
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-rank-abundance-modal', templateUrl: './rank-abundance-modal.component.html', styleUrls: ['./rank-abundance-modal.component.scss'] }) export class RankAbundanceModalComponent implements OnInit { constructor() { } ngOnI...
0932b4026358a43c0d5c8f4e8da84af40ef452b070361afda4e8661205be45c5
TypeScript
347
16
import { TestBed } from '@angular/core/testing'; import { UmlsService } from './umls.service'; describe('UmlsService', () => { let service: UmlsService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(UmlsService); }); it('should be created', () => { expect(servic...
9266f0fbd34062036232af9f29abcd44e86590a44264e623236759c12a314cdc
TypeScript
347
16
import { TestBed } from '@angular/core/testing'; import { DataService } from './data.service'; describe('DataService', () => { let service: DataService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(DataService); }); it('should be created', () => { expect(servic...
d56c5c2c28ebaa753466e266825001bfc0410cc6ac20dd7db71ff86a3e16c215
TypeScript
347
16
import { TestBed } from '@angular/core/testing'; import { PlmdService } from './plmd.service'; describe('PlmdService', () => { let service: PlmdService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(PlmdService); }); it('should be created', () => { expect(servic...
f2b6a934e222e8a70eb04e37a9e3973d448453ae478e823b6525323a3498a957
TypeScript
348
10
import { startChromaServer } from "../../scripts/start-chroma-jest"; const testEnvSetup = async () => { const { url, host, port, stop } = await startChromaServer(); process.env.DEFAULT_CHROMA_INSTANCE_URL = url; process.env.DEFAULT_CHROMA_INSTANCE_HOST = host; (globalThis as any).stopChromaServer = stop; }; e...
114949e15b157d6f04563a0bde7e4287c9b4e03b3e5676819e5346f743ba5427
TypeScript
352
16
import { TestBed } from '@angular/core/testing'; import { JeezyService } from './jeezy.service'; describe('JeezyService', () => { let service: JeezyService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(JeezyService); }); it('should be created', () => { expect(s...
85ec955eed4b7fe047651f5b40a9cb8c8537b61b044dd77ec39f5b0d86410098
TypeScript
352
16
import { TestBed } from '@angular/core/testing'; import { ToastService } from './toast.service'; describe('ToastService', () => { let service: ToastService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(ToastService); }); it('should be created', () => { expect(s...
9d1e98f448aae5338b4e283dd1d58327d1af1ff4694077f6851de6d4a91b7c0b
TypeScript
352
16
import { TestBed } from '@angular/core/testing'; import { StatsService } from './stats.service'; describe('AnovaService', () => { let service: StatsService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(StatsService); }); it('should be created', () => { expect(s...
2485ce6fae236dfd5a5a955f91789923cfc93e80c04a88289f0aeae9f392da3b
TypeScript
357
16
import { TestBed } from '@angular/core/testing'; import { PubmedService } from './pubmed.service'; describe('PubmedService', () => { let service: PubmedService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(PubmedService); }); it('should be created', () => { exp...
5986dfbb7d88ee432a3c25713e78bd11ff1316d400482cb493a1729b7a536bf7
TypeScript
357
16
import { TestBed } from '@angular/core/testing'; import { ScrollService } from './scroll.service'; describe('ScrollService', () => { let service: ScrollService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(ScrollService); }); it('should be created', () => { exp...
d7cde364178b2063924eed819694ce7af6f0be4a9a7c295983c0215b3820062d
TypeScript
357
16
import { TestBed } from '@angular/core/testing'; import { BiomsaService } from './biomsa.service'; describe('BiomsaService', () => { let service: BiomsaService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(BiomsaService); }); it('should be created', () => { exp...
0e2f65b398433b47912f17522136a949a22c34e6282ae74e1b79a620520dda38
TypeScript
358
16
import { TestBed } from '@angular/core/testing'; import { EbiService } from './ebi.service'; describe('EbiService', () => { let service: EbiService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(EbiService); }); it('should be created', () => { expec...
1ec8e724bdf6f4b1ecf31e006e40b40f87070df87d6b16dae4bedda6a072f8d4
TypeScript
358
16
import { TestBed } from '@angular/core/testing'; import { WebService } from './web.service'; describe('WebService', () => { let service: WebService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(WebService); }); it('should be created', () => { expec...
70b7d57aaad6cd0e9937edc486487aa3baed1994b80e611c374e36eeed6bedb7
TypeScript
362
16
import { TestBed } from '@angular/core/testing'; import { MongodbService } from './mongodb.service'; describe('MongodbService', () => { let service: MongodbService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(MongodbService); }); it('should be created', () => { ...
a5298982682a28396282d6333c3435e1b6366fff450ecdaadcb398663f2a8ad0
TypeScript
362
16
import { TestBed } from '@angular/core/testing'; import { UniprotService } from './uniprot.service'; describe('UniprotService', () => { let service: UniprotService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(UniprotService); }); it('should be created', () => { ...
db11890ff5721d3eab4a34a4f04ebf6f6f50821ef16bcd2377abcfcc89fe3789
TypeScript
362
16
import { TestBed } from '@angular/core/testing'; import { AcronymService } from './acronym.service'; describe('AcronymService', () => { let service: AcronymService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(AcronymService); }); it('should be created', () => { ...
1494c21f65676cdf50a9ff4ed9461b2632d405152324e11f57824373015a813a
TypeScript
363
14
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { TestapiComponent } from './testapi/testapi.component'; const routes: Routes = [ { path: 'testapi', component: TestapiComponent }, ]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterMo...
ed44023935072c7db7fffbda21f21acc7bda241365ededa795253e15ed127090
TypeScript
363
16
import { TestBed } from '@angular/core/testing'; import { DataService } from './data.service'; describe('DataService', () => { let service: DataService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(DataService); }); it('should be created', () => { ...
254093ed413a2dc3785d7f050b3fa72bd156ad7c06116554c31415339a7f5365
TypeScript
367
21
import type { Config } from "jest"; const config: Config = { preset: "ts-jest", testEnvironment: "node", testMatch: ["**/*.test.ts"], transform: { "^.+\\.tsx?$": [ "ts-jest", { useESM: true, }, ], }, extensionsToTreatAsEsm: [".ts"], moduleNameMapper: { "^(\\.{1,2}/.*...
bc9d4e511ce326e94974cedcdb7f61addc018e2fbce33233f489b171a59f5804
TypeScript
367
16
import { TestBed } from '@angular/core/testing'; import { SettingsService } from './settings.service'; describe('SettingsService', () => { let service: SettingsService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(SettingsService); }); it('should be created', () =>...
cc193638cdab309c028378ad7237802aaaa7c9ccf6bcea64b176e279313b717f
TypeScript
367
16
import { TestBed } from '@angular/core/testing'; import { AccountsService } from './accounts.service'; describe('AccountsService', () => { let service: AccountsService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(AccountsService); }); it('should be created', () =>...
4b7d0171bc5f5a2f2bba25736872f124b35eb1dbb74beb9f4051e3214b4836c1
TypeScript
368
16
import { TestBed } from '@angular/core/testing'; import { StatsService } from './stats.service'; describe('AnovaService', () => { let service: StatsService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(StatsService); }); it('should be created', () => { ...
566408e8f6be3a71b46dbe606cc4c2a21dfcb1f8de973bfd2cda245597c63edb
TypeScript
368
16
import { TestBed } from '@angular/core/testing'; import { JeezyService } from './jeezy.service'; describe('JeezyService', () => { let service: JeezyService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(JeezyService); }); it('should be created', () => { ...
7aed5cc096dbfbf22122414fa98fe598addea196335816fcd85b955db5d98233
TypeScript
368
16
import { TestBed } from '@angular/core/testing'; import { DbStringService } from './db-string.service'; describe('DbStringService', () => { let service: DbStringService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(DbStringService); }); it('should be created', () =...
9d5101516b7d2ae6eaba6b24615652f8263f689b2bfdf9bbffe74ebe25f389c0
TypeScript
368
16
import { TestBed } from '@angular/core/testing'; import { ToastService } from './toast.service'; describe('ToastService', () => { let service: ToastService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(ToastService); }); it('should be created', () => { ...
06516560addc19e7a3594f361e67ec8227b3af7915fddcff6f7ebd71dd208e65
TypeScript
372
16
import { TestBed } from '@angular/core/testing'; import { WebsocketService } from './websocket.service'; describe('WebsocketService', () => { let service: WebsocketService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(WebsocketService); }); it('should be created', ...
44bab8ced43078310e1affbf44ca0682f42151082fe1d59a653699697ecabd7d
TypeScript
372
12
import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; if (environment.production) { enableProdMode(); } platformBrowserDynamic().bootstrapMod...
1da57aea02c0857d2bdca6d0c29eab1ae5c720e56bd5cb1870dbcbe513fae717
TypeScript
373
16
import { TestBed } from '@angular/core/testing'; import { ScrollService } from './scroll.service'; describe('ScrollService', () => { let service: ScrollService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(ScrollService); }); it('should be created', () ...
68cbc929b30c690a45bf88ecbc0fcd7776ccaeafa1ae6cb1ae17410af676915a
TypeScript
373
16
import { TestBed } from '@angular/core/testing'; import { SaveStateService } from './save-state.service'; describe('SaveStateService', () => { let service: SaveStateService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(SaveStateService); }); it('should be created',...
5adc530fa5e7ee5d0f9e0f8c95fdaad0968e55d9d9f11eea382ab70b6e5c9519
TypeScript
375
9
import {environment} from "../../environments/environment"; export class CurtainLink { proxyURL: string = environment.apiURL stringURL: string = "http://string-db.org/" uniprotBASE: string = "https://legacy.uniprot.org/uploadlists/?" ebiAlphaFoldURL: string = "https://alphafold.ebi.ac.uk/" interactomeAtlas: ...
6bc5f6c74c003f99a772f8649ca239295c85278b16034e74201ae74a1e5e84ab
TypeScript
377
16
import { TestBed } from '@angular/core/testing'; import { CarbonyldbService } from './carbonyldb.service'; describe('CarbonyldbService', () => { let service: CarbonyldbService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(CarbonyldbService); }); it('should be creat...
e8eca5d0fe0a16a0747268f4953abcfec59c8a3b214a9c012f0deb677bf5cd40
TypeScript
377
16
import { TestBed } from '@angular/core/testing'; import { GlyconnectService } from './glyconnect.service'; describe('GlyconnectService', () => { let service: GlyconnectService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(GlyconnectService); }); it('should be creat...
0572c0cae9ed95a141d617a7ac6a416b68fc1e7bcb08ac955055e58bb5e45fa2
TypeScript
378
5
import {CurtainWebAPI, replacer, reviver} from "./classes/curtain-api"; import {User} from "./classes/curtain-user"; import {getProteomicsData, getPrideData, getEBIAlpha, getInteractomeAtlas, getStringDBInteractions} from "./utilities"; export {CurtainWebAPI, User, getProteomicsData, getPrideData, getEBIAlpha, getInte...
98096494b1a1c98bb5fcdef7cf2b448f477a1a566cfaba34065b0afc16b09c5f
TypeScript
378
16
import { TestBed } from '@angular/core/testing'; import { UniprotService } from './uniprot.service'; describe('UniprotService', () => { let service: UniprotService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(UniprotService); }); it('should be created'...
031f682e75af26345d2237eb3c5ea1c9dfe41ff3fe98312b6ac63651b010fb18
TypeScript
379
11
import * as Types from '../typebox'; export declare enum StructuralResult { Union = 0, True = 1, False = 2 } /** Performs structural equivalence checks against TypeBox types. */ export declare namespace Structural { /** Structurally tests if the left schema extends the right. */ function Check(left:...
46fc0d95280ae75c9c09dcab448b84b5524db1cbd48e07515e2aae1993406701
TypeScript
383
16
import { TestBed } from '@angular/core/testing'; import { PtmDiseasesService } from './ptm-diseases.service'; describe('PtmDiseasesService', () => { let service: PtmDiseasesService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(PtmDiseasesService); }); it('should be...
7e0393f28bbad1481b7114cf5059876e69024158dd0aa767aabc486cfd78d6e6
TypeScript
383
16
import { TestBed } from '@angular/core/testing'; import { AccountsService } from './accounts.service'; describe('AccountsService', () => { let service: AccountsService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(AccountsService); }); it('should be cre...
ae32ca052cec4f0914defaf28d894fd1a088b21a81fea80638c7a59bc7778324
TypeScript
383
16
import { TestBed } from '@angular/core/testing'; import { SettingsService } from './settings.service'; describe('SettingsService', () => { let service: SettingsService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(SettingsService); }); it('should be cre...
2dc0c0db73ff5a7b68bf986a5758b2e9bd2f63e609e23f6e3a3d001783cd403c
TypeScript
384
16
import { TestBed } from '@angular/core/testing'; import { DbStringService } from './db-string.service'; describe('DbStringService', () => { let service: DbStringService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(DbStringService); }); it('should be cr...
788df721bb6dbd409e93e1bece57b112c46190df3d7379556a84ee07901b6033
TypeScript
384
9
import {environment} from "../../environments/environment"; export class CurtainLink { proxyURL: string = environment.apiURL stringURL: string = "http://string-db.org/" uniprotBASE: string = "https://legacy.uniprot.org/uploadlists/?" ebiAlphaFoldURL: string = "https://alphafold.ebi.ac.uk/" interactome...
fb5887c72646fcac89fb5f3b27f63fef0fe401409d72e56114ff01582df7b35b
TypeScript
384
12
import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; if (environment.production) { enableProdMode(); } platformBrowserDynamic().bo...
c2d97396e8842a2ed2cf36d9a8431b7c4b9c7b3e78daa0600226d502ec577ec5
TypeScript
386
4
import { CurtainWebAPI, replacer, reviver } from "./classes/curtain-api"; import { User } from "./classes/curtain-user"; import { getProteomicsData, getPrideData, getEBIAlpha, getInteractomeAtlas, getStringDBInteractions } from "./utilities"; export { CurtainWebAPI, User, getProteomicsData, getPrideData, getEBIAlpha, g...
6ba1c06679620d91136f5ca0f1e903f4e02db1c9ec8b4853014c666aebe21eab
TypeScript
388
16
import { TestBed } from '@angular/core/testing'; import { WebsocketService } from './websocket.service'; describe('WebsocketService', () => { let service: WebsocketService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(WebsocketService); }); it('should b...
ed9e5b2f8312b8c8f50ebee10dfaffd06dc7182793d482654c6135902b678f61
TypeScript
389
16
import { TestBed } from '@angular/core/testing'; import { SaveStateService } from './save-state.service'; describe('SaveStateService', () => { let service: SaveStateService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(SaveStateService); }); it('should ...
48eab4bd2feaedb482c961b7692f879a41d358b465b3884fa7eda897f743c869
TypeScript
393
16
import { TestBed } from '@angular/core/testing'; import { KinaseLibraryService } from './kinase-library.service'; describe('KinaseLibraryService', () => { let service: KinaseLibraryService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(KinaseLibraryService); }); it(...
86a8ceffd391d82f5173db3e1e7b83318a1a17a88161d921ed0f75515ccd6ee6
TypeScript
394
16
import { Component, OnInit } from '@angular/core'; import {ToastService} from "../../toast.service"; @Component({ selector: 'app-toast-container', templateUrl: './toast-container.component.html', styleUrls: ['./toast-container.component.scss'] }) export class ToastContainerComponent implements OnInit { constr...
db1f4065d028d18fedbbdddeab65f8484b7d5ec6643d71db86ac0461ad0c3e71
TypeScript
395
17
import { Component, OnInit } from '@angular/core'; import {ToastService} from "../../toast.service"; @Component({ selector: 'app-toast-container', templateUrl: './toast-container.component.html', styleUrls: ['./toast-container.component.scss'] }) export class ToastContainerComponent implements OnInit { constr...
d104cfdc5520d4294a138841e5975df10936f6e5ff5abd9ef636e8bf60d09bb3
TypeScript
399
22
import type { Config } from "jest"; const config: Config = { preset: "ts-jest", testEnvironment: "node", testMatch: ["**/*.test.ts"], transform: { "^.+\.tsx?$": [ "ts-jest", { useESM: true, }, ], }, extensionsToTreatAsEsm: [".ts"], moduleNameMapper: { "^(\.{1,2}/.*)\...
af7d07d6900a695198a79bd5051c47f24eae8a6ce14cd71c675389b9a340b12a
TypeScript
402
22
import type { Config } from "jest"; const config: Config = { preset: "ts-jest", testEnvironment: "node", testMatch: ["**/*.test.ts"], transform: { "^.+\\.tsx?$": [ "ts-jest", { useESM: true, }, ], }, extensionsToTreatAsEsm: [".ts"], moduleNameMapper: { "^(\\.{1,2}/.*...
462100ca5219b4b26473373e3eff2b343d789bd4d0a628f273d22bbb3302b704
TypeScript
403
22
import type { Config } from "jest"; const config: Config = { preset: "ts-jest", testEnvironment: "node", testMatch: ["**/*.test.ts"], transform: { "^.+\\.tsx?$": [ "ts-jest", { useESM: true, }, ], }, extensionsToTreatAsEsm: [".ts"], moduleNameMapper: { "^(\\.{1,2}/.*...
409cf8770fbb9f099124e9ca744282ebfd85df2fd3650ae05c4ee3d03af66714
TypeScript
407
14
/// <reference lib="dom" /> declare const _fetch: typeof fetch; declare const _Request: typeof Request; declare const _Response: typeof Response; declare const _Headers: typeof Headers; declare module "cross-fetch" { export const fetch: typeof _fetch; export const Request: typeof _Request; export const Response...
2e47130b69aa6863f895f13d340fa2c51550f6b5c9c4db3664084d67675ecc2e
TypeScript
408
16
import { TestBed } from '@angular/core/testing'; import { InteractomeAtlasService } from './interactome-atlas.service'; describe('InteractomeAtlasService', () => { let service: InteractomeAtlasService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(InteractomeAtlasService...
697329889290d9daada5eb6ac453d5f25c30e59c17c2dff0d29e2ce8256a1cfd
TypeScript
409
16
import { TestBed } from '@angular/core/testing'; import { KinaseLibraryService } from './kinase-library.service'; describe('KinaseLibraryService', () => { let service: KinaseLibraryService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(KinaseLibraryService); ...
9ae5955f2fd7c360a169cb61aa8d4543cecb106873c9802580803306f01f1471
TypeScript
412
17
import { Component, OnInit } from '@angular/core'; import {ToastService} from "../../toast.service"; @Component({ selector: 'app-toast-container', templateUrl: './toast-container.component.html', styleUrls: ['./toast-container.component.scss'] }) export class ToastContainerComponent implements OnInit { ...
f66d4a4b370156ab4144126ba40fd26f58f91271a173c713ae22d3c66968f895
TypeScript
417
15
import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; @Injectable({ providedIn: 'root' }) export class GlyconnectService { glyconnectNMap: any = {} glyconnectOMap: any = {} constructor(private http: HttpClient) { } getGlyconnect(acc: string) { return this.http.get(...
6a09b26841934aaad4a11f1866aa479fe2233a51b89067da1a70e6ad92de1043
TypeScript
418
16
import { TestBed } from '@angular/core/testing'; import { AbstractProcessingService } from './abstract-processing.service'; describe('AbstractProcessingService', () => { let service: AbstractProcessingService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(AbstractProcess...
82fbdf20e3f156fdc34f25166ee3af493b14161287dc5b71af9fb592c4e7634f
TypeScript
424
16
import { TestBed } from '@angular/core/testing'; import { InteractomeAtlasService } from './interactome-atlas.service'; describe('InteractomeAtlasService', () => { let service: InteractomeAtlasService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(InteractomeAtl...
234759e47a06e12b01e33b000823c42eef8940dea258a215bc31a30e77e5a20a
TypeScript
428
15
import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {WebService} from "./web.service"; @Injectable({ providedIn: 'root' }) export class EbiService { constructor(private http: HttpClient, private web: WebService) { } getEBIAlpha(id: string) { return this.http....
1cbab72f53316e0997d014579384ad715731e1e701ab0f2b76667161a16f16ff
TypeScript
429
28
declare const pathExists: { /** Check if a path exists. @returns Whether the path exists. @example ``` // foo.ts import pathExists = require('path-exists'); (async () => { console.log(await pathExists('foo.ts')); //=> true })(); ``` */ (path: string): Promise<boolean>; /** Synchronously check if a...
c511e3cec97f836671bc204a0a32d27a24f6b29ee76bec44d0a9951f857c3567
TypeScript
431
19
export const IDS = ["test1", "test2", "test3"]; export const EMBEDDINGS = [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [10, 9, 8, 7, 6, 5, 4, 3, 2, 1], ]; export const METADATAS = [ { test: "test1", float_value: -2 }, { test: "test2", float_value: 0 }, { test: "test3", float_value: ...
8473843c58b2b7ec2518bf77299f5ef30e754ad5ef1478aee887303e2474ced4
TypeScript
433
10
import * as Types from '../typebox'; export declare namespace TypeExtends { /** * This function returns true if the given schema is undefined, either directly or * through union composition. This check is required on object property types of * undefined, where an additional `'x' in value` check is re...
1d63d0cd96f74f10e271e1794d7642b0bceb961c362ecd329ef9199dcd0f0a1d
TypeScript
435
17
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class ToastService { toasts: {header: string, body: string, delay: number, type: string}[] = [] constructor() { } async show(header: string, body: string, delay: number = 5000, type: string = "info") { this.toasts.push(...
43d51e73aa1436bc1a8bd34e8179f7e14241ecf012ccd36a9e9812a1bb0c05c4
TypeScript
436
17
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class ToastService { toasts: {header: string, body: string, delay: number, type: string}[] = [] constructor() { } async show(header: string, body: string, delay: number = 10000, type: string = "info") { this.toasts.push...
3c43bf393e985f66c6ecc08a6af08e1a3edc02129bb566bfaf08c61af1ab9893
TypeScript
437
19
/* eslint-disable */ // tslint:disable /** * chroma-frontend * * * OpenAPI spec version: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator+. * https://github.com/karlvr/openapi-generator-plus * Do not edit the class manually. */ export * from "./api"; export * from "./models"; export * from...
e4619125cd90f6f982bfb04dca36312bed04f4a4b8d209b3be6eff60468c900d
TypeScript
443
15
import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {WebService} from "./web.service"; @Injectable({ providedIn: 'root' }) export class EbiService { constructor(private http: HttpClient, private web: WebService) { } getEBIAlpha(id: string) { retur...
cc82170cc5bf2e983b17ed04be0b156e15530c2731bc4521ec1a7817209ff2cc
TypeScript
445
5
export { createMatchPath, matchFromAbsolutePaths, MatchPath, } from "./match-path-sync"; export { createMatchPathAsync, matchFromAbsolutePathsAsync, MatchPathAsync, } from "./match-path-async"; export { register } from "./register"; export { loadConfig, ConfigLoaderResult, ConfigLoaderSuccessResult, ConfigLoaderFailRes...
bf782d664e6e1f93c19336cf2fe26332c27c9b195a27ab421dcac95e5ddd47ae
TypeScript
448
18
import type { Config } from "@jest/types"; const config: Config.InitialOptions = { preset: "ts-jest", testEnvironment: "node", clearMocks: true, collectCoverage: false, testTimeout: 15000, coverageDirectory: "./test/coverage", coverageReporters: ["json", "html", "lcov"], collectCoverageFrom: [ "./s...
11edabc8a7d34d15611576ab95b235727cb729cd0bf7596d0bd18dde536315fb
TypeScript
451
18
const IDS = ["test1", "test2", "test3"]; const EMBEDDINGS = [ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [10, 9, 8, 7, 6, 5, 4, 3, 2, 1], ]; const METADATAS = [ { test: "test1", float_value: -2 }, { test: "test2", float_value: 0 }, { test: "test3", float_value: 2 }, ]; const DOCUMENTS...
2b6f4bff4a4e58b2ff931821bc8a919b6b24ec276039d2453d5fe1bd481ec019
TypeScript
453
23
export default { preset: "ts-jest", testEnvironment: "node", clearMocks: true, collectCoverage: false, testTimeout: 15000, transform: { "^.+\\.(ts|tsx)$": [ "ts-jest", { tsconfig: "tsconfig.json", }, ], }, collectCoverageFrom: [ "./src/**/*.{js,ts}", "!**/node_m...
7bb91bf00ae40efd027366c173cab6a18b3d064932ae023c3b3a2f9e27c12d51
TypeScript
453
17
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class ToastService { toasts: {header: string, body: string, delay: number, type: string}[] = [] constructor() { } async show(header: string, body: string, delay: number = 10000, type: string = "info") { this.t...
fb668d49f6aa9eee2fa1d66e27ad5e206fde13fdc941c2884edee46cc3aa54af
TypeScript
454
26
export class Raw { get primaryIDs(): string { return this._primaryIDs; } set primaryIDs(value: string) { this._primaryIDs = value; } get samples(): string[] { return this._samples; } set samples(value: string[]) { this._samples = value; } private _primaryIDs: string = "" private _...