sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
88519c09ed44bb8d1af75aec6bed80bea8f34eb33c988d856991064b7397937c | TypeScript | 459 | 22 | import type { Config } from "jest";
const config: Config = {
preset: "ts-jest",
testEnvironment: "node",
testMatch: ["**/*.test.ts"],
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
useESM: true,
},
],
},
extensionsToTreatAsEsm: [".... |
b309db737916f5c2cf3999894023ec0363a16fda4aa6755f5bca2d61e7b5f3b7 | TypeScript | 459 | 14 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
// First, initiali... |
9984f81c6416d94533e48736916fe9099c7df807df4bc5c356e9a7b9aace6b3f | TypeScript | 463 | 19 | import { Component, OnInit } from '@angular/core';
import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap";
@Component({
selector: 'app-session-expired-modal',
templateUrl: './session-expired-modal.component.html',
styleUrls: ['./session-expired-modal.component.scss']
})
export class SessionExpiredModalCompone... |
a9fd76613c52aa62a036e7d85d6503601ac3aae1444f4765c738567e5f687f4f | TypeScript | 467 | 18 | /**
Escape RegExp special characters.
You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.
@example
```
import escapeStringRegexp = require('escape-string-regexp');
const escapedString = escapeStringRegexp('How much $ for a 🦄?');
//=> 'How much \... |
3e5f817d0ae8fedc0f318441677e17745be84e760a5a18b8b78e7668befc6b02 | TypeScript | 472 | 21 | import {DataFrame, IDataFrame} from "data-forge";
export class InputFile {
df: IDataFrame = new DataFrame();
filename: string = "";
other: any = {};
originalFile: string = "";
constructor(df?: IDataFrame, filename?: string, originalFile?: string, other?: any) {
if (df) {
this.df = df;
}
if ... |
e3a1f8b0204a2fdd434d540ea75e3726edfaaa19187cbc8a1704f4514472cfe2 | TypeScript | 473 | 19 | import { Component, OnInit } from '@angular/core';
import {NgbActiveModal, NgbModal} from "@ng-bootstrap/ng-bootstrap";
@Component({
selector: 'app-session-expired-modal',
templateUrl: './session-expired-modal.component.html',
styleUrls: ['./session-expired-modal.component.scss']
})
export class SessionExpiredMo... |
ec1b6a3fc9a55b3678a0260f042cf445ad4bc7615a5e7e2ffdc39c828b42a37a | TypeScript | 473 | 14 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
// First,... |
84fdfe8adbf8e04b2b483b00aa5750751900170fc4a49125d853d30993ffd72c | TypeScript | 476 | 28 | 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 = "T: Unique ide... |
9797ec154838eca95841e9d6503480e1eeba4c4b866423ae8b37abe2e31474b0 | TypeScript | 480 | 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 ... |
7daac7bb519a0a81884b72f4da1656ddeeb4e24b064485df00e543de17d24051 | TypeScript | 483 | 23 | import type { Config } from "jest";
const config: Config = {
preset: "ts-jest",
testEnvironment: "node",
testMatch: ["**/*.test.ts"],
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
useESM: true,
},
],
},
extensionsToTreatAsEsm: [".... |
d696addc0a27420d2df47c0162b9def0b1c5bb114b7ff0222d5bb6151529407a | TypeScript | 485 | 22 | /**
Check whether a request can be retried based on the `error.code`.
@param error - The `.code` property, if it exists, will be used to determine whether retry is allowed.
@example
```
import isRetryAllowed = require('is-retry-allowed');
isRetryAllowed({code: 'ETIMEDOUT'});
//=> true
isRetryAllowed({code: 'ENOTFOU... |
85f4ff08c664bb4a67d4d6dd758d264634f46128cc802313baf58c9994a6872e | TypeScript | 492 | 19 | import { Component, OnInit } from '@angular/core';
import {NgbActiveModal, NgbModal} from "@ng-bootstrap/ng-bootstrap";
@Component({
selector: 'app-session-expired-modal',
templateUrl: './session-expired-modal.component.html',
styleUrls: ['./session-expired-modal.component.scss']
})
export class SessionE... |
581c17c8076550e6b85c14b253dbdd88fa4a25004eec18223949ee1b0373df39 | TypeScript | 493 | 21 | import {DataFrame, IDataFrame} from "data-forge";
export class InputFile {
df: IDataFrame = new DataFrame();
filename: string = "";
other: any = {};
originalFile: string = "";
constructor(df?: IDataFrame, filename?: string, originalFile?: string, other?: any) {
if (df) {
this.df = df;
... |
e3ab0661bf65da0e57c71e105cd4826363aba997ccb0c29d79b86db68556125d | TypeScript | 511 | 29 | /**
Check if a value is a plain object.
An object is plain if it's created by either `{}`, `new Object()`, or `Object.create(null)`.
@example
```
import isPlainObject = require('is-plain-obj');
isPlainObject({foo: 'bar'});
//=> true
isPlainObject(new Object());
//=> true
isPlainObject(Object.create(null));
//=> tr... |
c285b85f15d6116c4e55a2316eb7a621aa34d20a7870e64621fa93636435330f | TypeScript | 522 | 24 | // register is used from register.js in root dir
export {
createMatchPath,
matchFromAbsolutePaths,
MatchPath,
} from "./match-path-sync";
export {
createMatchPathAsync,
matchFromAbsolutePathsAsync,
MatchPathAsync,
} from "./match-path-async";
export { register } from "./register";
export {
loadConfig,
C... |
133b50a0749dd0d09fa07aec9ffafd23b7a30e4fecf28b21e8d884a2c5cd734e | TypeScript | 531 | 27 | /**
* 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 function getType(value: unknown): ValueType;
export declare const isPrimitive: (value: unknown) => boolean;
decl... |
d99c1ef01591f37109decb54e3867ba0ace08e7eeec801733ae2cd2d44fea77b | TypeScript | 533 | 18 | import {Component, Input, OnInit} from '@angular/core';
import {DataFrame, IDataFrame} from "data-forge";
import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap";
@Component({
selector: 'app-profile-compare',
templateUrl: './profile-compare.component.html',
styleUrls: ['./profile-compare.component.scss']
})
ex... |
f32eb5956e6b789c5574fbe358a2fb5477c2852f56157de634e8767706b71123 | TypeScript | 536 | 16 | import path from "node:path";
import {
startContainer as startContainerCommon,
startChromaServer as startChromaServerCommon,
} from "./start-chroma-common";
// Use path.resolve to get to the project root for Jest/CommonJS environment
const BUILD_CONTEXT_DIR = path.resolve(__dirname, "../../../../..");
export cons... |
bd53b28842be20196f7fc69ff42613227d39375f813f50315555ac6c9c973f1e | TypeScript | 542 | 20 | /**
Convert a camelized string into a lowercased one with a custom separator: `unicornRainbow` → `unicorn_rainbow`.
@param string - The camelcase string to decamelize.
@param separator - The separator to use to put in between the words from `string`. Default: `'_'`.
@example
```
import decamelize = require('decameliz... |
6a3c5ab480efdd3f70db7fb7a02dd0bcbbfb2920810a9f3cdbd1a36f6a2b338f | TypeScript | 548 | 22 | import {Component, Input, OnInit} from '@angular/core';
import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap";
@Component({
selector: 'app-citation',
templateUrl: './citation.component.html',
styleUrls: ['./citation.component.scss']
})
export class CitationComponent implements OnInit {
_resourceName = "Uni... |
3b4dfb72190b1e5820ce7978e7a7cff2d09eab779e422d63e2b9fca1d92dd38f | TypeScript | 551 | 18 | import {Component, Input, OnInit} from '@angular/core';
import {DataFrame, IDataFrame} from "data-forge";
import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap";
@Component({
selector: 'app-profile-compare',
templateUrl: './profile-compare.component.html',
styleUrls: ['./profile-compare.component.scss'... |
d41ba53cc404fb5e1e652dfcd21c16888045ff1c57af9b14c3fca19e6cea2499 | TypeScript | 558 | 17 | export interface OneTest {
readonly name: string;
readonly only?: boolean;
readonly skip?: boolean;
readonly absoluteBaseUrl: string;
readonly paths: {
[key: string]: Array<string>;
};
readonly mainFields?: string[];
readonly addMatchAll?: boolean;
readonly existingFiles: Rea... |
f2732625eb35bc03896bb893cca7426379ecbf1983660d056ed9c0f7080326db | TypeScript | 562 | 15 | import * as dotenv from "dotenv";
import { execSync } from "child_process";
dotenv.config({ path: "../../../.env" });
console.log("Starting Huggingface embeddings server container...");
try {
execSync(
"docker run --platform linux/amd64 -d -p 8080:80 --pull always --rm ghcr.io/huggingface/text-embeddings-infere... |
0cfd5de520730f8001a5e6e918d62500c68ca0f17b974e6158ee523a625f7afd | TypeScript | 570 | 22 | import {Component, Input, OnInit} from '@angular/core';
import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap";
@Component({
selector: 'app-citation',
templateUrl: './citation.component.html',
styleUrls: ['./citation.component.scss']
})
export class CitationComponent implements OnInit {
_resourceNa... |
7412785337f4d117aff2a2ca465ced9d7255277b27200083a7c4ec3cddb4f1b6 | TypeScript | 571 | 32 | import PouchDB from "pouchdb";
export class UniprotDb {
db = new PouchDB("uniprot");
constructor() {
this.db.info().then((info) => {
console.log(info);
});
}
init() {
return this.db.destroy().then(() => {
console.log("Database destroyed");
this.db = new PouchDB("uniprot");
... |
ff8c566e1888b958e5d309a025fa00a74059c949931966dda02049a936cf73af | TypeScript | 579 | 30 | import { defineConfig, Options } from "tsup";
export default defineConfig((options: Options) => {
const commonOptions: Partial<Options> = {
entry: ["src/index.ts"],
sourcemap: true,
dts: {
compilerOptions: {
composite: false,
declaration: true,
emitDeclarationOnly: false,
... |
d1d46acba7d3b3f9abe50982dcdddb536c184371d84746bfe5076ee95358095b | TypeScript | 588 | 25 | /**
Colored symbols for various log levels.
Includes fallbacks for Windows CMD which only supports a [limited character set](https://en.wikipedia.org/wiki/Code_page_437).
@example
```
import logSymbols = require('log-symbols');
console.log(logSymbols.success, 'Finished successfully!');
// Terminals with Unicode supp... |
fecb63510221693c55ab1f72382ce7f7c49041d18dd126368423fea854ba5bb2 | TypeScript | 600 | 5 | export declare function getProteomicsData(acc: string, tissueType: string): Promise<import("axios").AxiosResponse<any, any>>;
export declare function getPrideData(acc: string): Promise<import("axios").AxiosResponse<any, any>>;
export declare function getEBIAlpha(id: string): Promise<import("axios").AxiosResponse<any, a... |
01ed4bcfd5301086a38ce3a2fea963b1ee91a92190817745debcfa5be7fb4cd8 | TypeScript | 605 | 21 | import type { Config } from "@jest/types";
const config: Config.InitialOptions = {
preset: "ts-jest",
testEnvironment: "jest-environment-node-single-context",
clearMocks: true,
collectCoverage: false,
testTimeout: 15000,
globalSetup: "./test/utils/test-env-setup.ts",
globalTeardown: "./test/utils/test-en... |
d98899b8d1371196ed3620f88e75c4cd14674b548b450504aa829f32b8095190 | TypeScript | 607 | 23 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { WebLogoComponent } from './web-logo.component';
describe('WebLogoComponent', () => {
let component: WebLogoComponent;
let fixture: ComponentFixture<WebLogoComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
... |
f9d4597f3e2b774086263cce52e03b80c5dca57cdf84beb64df48a274cc91f07 | TypeScript | 612 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HomeComponent } from './home.component';
describe('HomeComponent', () => {
let component: HomeComponent;
let fixture: ComponentFixture<HomeComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declaratio... |
82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4 | TypeScript | 613 | 18 | /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
declare module 'constants' {
import { constants as osConstants, SignalConstants } from 'node:os';
import { constants as cryptoConstants } from 'node:crypto';
import { constants as fsConstants } from 'node:fs';
... |
a7333db31bc0be1f264dd6b756b4e4bc8089f3a6435d25a610812b99efe1f5a9 | TypeScript | 618 | 19 | import { fileURLToPath } from "url";
import { dirname } from "path";
import path from "node:path";
import {
startContainer as startContainerCommon,
startChromaServer as startChromaServerCommon,
} from "./start-chroma-common.js";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filenam... |
329cbfa7226ec44156b0768e00934fe156a01e5b2c30f8a6f9e67e380aea4913 | TypeScript | 619 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PrideComponent } from './pride.component';
describe('PrideComponent', () => {
let component: PrideComponent;
let fixture: ComponentFixture<PrideComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
decla... |
9c36c1f56a769646d4ffaeb01d094786fb0e85c148af9fb2dc3032bc42e26f00 | TypeScript | 620 | 26 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {HomeComponent} from "./components/home/home.component";
const routes: Routes = [
{
path: '', component: HomeComponent,
children: [
{
path: 'home', component: HomeComponent
},
{
... |
303713b2692875b8687a8c748b17a2d9cfd55e7b63600f35aae20878eea95e21 | TypeScript | 621 | 27 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {HomeComponent} from "./components/home/home.component";
const routes: Routes = [
{
path: '', component: HomeComponent,
children: [
{
path: 'home', component: HomeComponent
},
{... |
5b71418af9a4923df0089934452cbae57643dfc4e480552be8b49192616181f3 | TypeScript | 621 | 25 | /**
Convert Windows backslash paths to slash paths: `foo\\bar` ➔ `foo/bar`.
[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths and don't contain any non-ascii characters.
@param path - A Windows backslash path.
@returns A path with forward sla... |
c8aa1d7b7642304b20d0665e72322e938fbf2fd9e3c469fae1bb500b986af830 | TypeScript | 626 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NavbarComponent } from './navbar.component';
describe('NavbarComponent', () => {
let component: NavbarComponent;
let fixture: ComponentFixture<NavbarComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
... |
06362410b5d19031a1b6d806755a512258be64a0d955a4b40104ea9b0b75ceeb | TypeScript | 627 | 23 | import { createMatchPath } from "../match-path-sync";
import * as Tests from "./data/match-path-data";
describe("match-path-sync", () => {
Tests.tests.forEach((t) =>
it(t.name, () => {
const matchPath = createMatchPath(
t.absoluteBaseUrl,
t.paths,
t.mainFields,
t.addMatchAll... |
1bcc93325568dc409017bc4c6dc3cf0ddec8ab843b259df7958533c3e6c0c65d | TypeScript | 634 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RawDataComponent } from './raw-data.component';
describe('RawDataComponent', () => {
let component: RawDataComponent;
let fixture: ComponentFixture<RawDataComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
... |
3d3fc05adbd632e33b2ea6cb2fbf453809adc1fe7c455760c0eec06d2aaa6de8 | TypeScript | 635 | 23 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ProfilePlotComponent } from './profile-plot.component';
describe('ProfilePlotComponent', () => {
let component: ProfilePlotComponent;
let fixture: ComponentFixture<ProfilePlotComponent>;
beforeEach(async () => {
await TestBed.confi... |
62568afe3a592ac1c5f14c605bf1535e636593bdfe817a65cd2bd6cc0ba406b0 | TypeScript | 635 | 25 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TestapiComponent } from './testapi.component';
describe('TestapiComponent', () => {
let component: TestapiComponent;
let fixture: ComponentFixture<TestapiComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
... |
e4a1da75402b180e178f80785c7be5c91cc623c5fb2cc53534933227a80df102 | TypeScript | 635 | 23 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { QrcodeModalComponent } from './qrcode-modal.component';
describe('QrcodeModalComponent', () => {
let component: QrcodeModalComponent;
let fixture: ComponentFixture<QrcodeModalComponent>;
beforeEach(async () => {
await TestBed.confi... |
db8cec8a27beda4b1225594557ac6da2c3e19a113f61f1004d174437dda53a22 | TypeScript | 637 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HomeComponent } from './home.component';
describe('HomeComponent', () => {
let component: HomeComponent;
let fixture: ComponentFixture<HomeComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
... |
4969e16635b408c10e82069d9bc252fcf526aacb67b48bfe84fb1d6c629df77b | TypeScript | 639 | 12 | export type FormatValidationFunction = (value: string) => boolean;
/** Provides functions to create user defined string formats */
export declare namespace Format {
/** Clears all user defined string formats */
function Clear(): void;
/** Returns true if the user defined string format exists */
function... |
418f530a82e4d08a876749707b0f63a05703db05537900bad21b1dc245c53345 | TypeScript | 640 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CitationComponent } from './citation.component';
describe('CitationComponent', () => {
let component: CitationComponent;
let fixture: ComponentFixture<CitationComponent>;
beforeEach(async () => {
await TestBed.configureTestingModul... |
4d95f2ecd4c79c5d26995c1c1ac0dbc1e6e95b3d0ed3f5c8e14cb9693db353df | TypeScript | 640 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CytoplotComponent } from './cytoplot.component';
describe('CytoplotComponent', () => {
let component: CytoplotComponent;
let fixture: ComponentFixture<CytoplotComponent>;
beforeEach(async () => {
await TestBed.configureTestingModul... |
ba7d159ce3750d98bc228c5b95f331c597a873db01d1ee6a2d8b61d7ebd83b71 | TypeScript | 640 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AccountsComponent } from './accounts.component';
describe('AccountsComponent', () => {
let component: AccountsComponent;
let fixture: ComponentFixture<AccountsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModul... |
215453f21e1d1e14961f9be9647fbaa6ba5cdd85ca09d4b2c575391cc2fa1e26 | TypeScript | 641 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { BarChartComponent } from './bar-chart.component';
describe('BarChartComponent', () => {
let component: BarChartComponent;
let fixture: ComponentFixture<BarChartComponent>;
beforeEach(async () => {
await TestBed.configureTestingModu... |
3c742b87094f9c10c2b26d5c063fbb1339203222dc54862d0395a4cb8b6f2d25 | TypeScript | 641 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RankPlotComponent } from './rank-plot.component';
describe('RankPlotComponent', () => {
let component: RankPlotComponent;
let fixture: ComponentFixture<RankPlotComponent>;
beforeEach(async () => {
await TestBed.configureTestingModu... |
3e631cc7eb4173630d49787284960e0001b9f1476ea7a8fc0262eef35bf64b7f | TypeScript | 641 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FdrCurveComponent } from './fdr-curve.component';
describe('FdrCurveComponent', () => {
let component: FdrCurveComponent;
let fixture: ComponentFixture<FdrCurveComponent>;
beforeEach(async () => {
await TestBed.configureTestingModu... |
d695d266c021cbe8c809bc278d9205f3eb12e39578136fba2e600674d2b90010 | TypeScript | 641 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FileFormComponent } from './file-form.component';
describe('FileFormComponent', () => {
let component: FileFormComponent;
let fixture: ComponentFixture<FileFormComponent>;
beforeEach(async () => {
await TestBed.configureTestingModu... |
e01c0be9a4a55295b06f845a393902f8536d43f3ca6bc0cb38fc6b1fd16e40cc | TypeScript | 641 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { StringDbComponent } from './string-db.component';
describe('StringDbComponent', () => {
let component: StringDbComponent;
let fixture: ComponentFixture<StringDbComponent>;
beforeEach(async () => {
await TestBed.configureTestingModu... |
43423027d93911b1e755567f202b2eadb569be5c3c7d9714752b5a7dd395280d | TypeScript | 642 | 23 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { EnrichrModalComponent } from './enrichr-modal.component';
describe('EnrichrModalComponent', () => {
let component: EnrichrModalComponent;
let fixture: ComponentFixture<EnrichrModalComponent>;
beforeEach(async () => {
await TestBed.... |
a5c6947f8cbf9d280c3c222f0e6621f8052c85c985c525387238fa095e268bff | TypeScript | 643 | 23 | import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('pubmeda... |
c4786fc47f60b14a4d5af6be2a4690ade80a1ec0fd88fb4e0144a8e7e94d87c8 | TypeScript | 644 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PrideComponent } from './pride.component';
describe('PrideComponent', () => {
let component: PrideComponent;
let fixture: ComponentFixture<PrideComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
... |
fbef6e2bc8bc5f2b6c55b52403d00dab4618cad2e1b31ea3ec4442e84d77f198 | TypeScript | 645 | 21 | export type EmbeddingFunctionSpace = "cosine" | "l2" | "ip";
export interface IEmbeddingFunction {
generate(texts: string[]): Promise<number[][]>;
name?: string;
defaultSpace?(): EmbeddingFunctionSpace;
supportedSpaces?(): EmbeddingFunctionSpace[];
buildFromConfig?(config: Record<string, any>): IEmbeddingFun... |
4f65fd0f56163c2697d2539425fe6e871c82ebf8447535c6492d2a89905f593d | TypeScript | 646 | 26 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {HomeComponent} from "./components/home/home.component";
const routes: Routes = [
{
path: '', component: HomeComponent,
children: [
{
path: 'home', component: HomeComponent
}... |
07611c0d6ebff24dacb408800d302f3046cae463b1c41f6313ba6f2907222137 | TypeScript | 647 | 17 | import { describe, it, expect } from "@jest/globals";
import { ChromaClient } from "../src";
describe("ChromaDB Integration", () => {
it("should properly import and instantiate ChromaClient", () => {
const client = new ChromaClient();
expect(client).toBeDefined();
expect(typeof client.createCollection).t... |
0dc58faf2b22ea728f65babe3945c78da11eeb0a9166463ca369430cf1eaada4 | TypeScript | 648 | 17 | export interface MappingEntry {
readonly pattern: string;
readonly paths: ReadonlyArray<string>;
}
export interface Paths {
readonly [key: string]: ReadonlyArray<string>;
}
/**
* Converts an absolute baseUrl and paths to an array of absolute mapping entries.
* The array is sorted by longest prefix.
* Hav... |
8f3cb4dc33f49a293a04b8bfee2f731a37e886dd52a6f0c9f1b6319a4ff02a1f | TypeScript | 648 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { DataBlockComponent } from './data-block.component';
describe('DataBlockComponent', () => {
let component: DataBlockComponent;
let fixture: ComponentFixture<DataBlockComponent>;
beforeEach(async () => {
await TestBed.configureTestin... |
eeceec26cdf80fd0da8f02817d674a611151d0d51bc98bf1cb19b28c8c6dfd81 | TypeScript | 648 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PdbViewerComponent } from './pdb-viewer.component';
describe('PdbViewerComponent', () => {
let component: PdbViewerComponent;
let fixture: ComponentFixture<PdbViewerComponent>;
beforeEach(async () => {
await TestBed.configureTestin... |
750c397b767cfc20e3922d77ae8e1ec58a260bf24555853862f1c73fc91e923b | TypeScript | 654 | 17 | import { describe, it, expect } from "@jest/globals";
import { ChromaClient } from "../src";
describe("ChromaDB Client Integration", () => {
it("should properly import and instantiate ChromaClient", () => {
const client = new ChromaClient();
expect(client).toBeDefined();
expect(typeof client.createCollec... |
62f4c167b14f16b638d2e3f5eb0ee707155426991d39ed804cfe6892b4cd7f71 | TypeScript | 655 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { KinaseInfoComponent } from './kinase-info.component';
describe('KinaseInfoComponent', () => {
let component: KinaseInfoComponent;
let fixture: ComponentFixture<KinaseInfoComponent>;
beforeEach(async () => {
await TestBed.configureT... |
8d688c4e4843c2c51106dd4b7d1324bb9353b03d781b6e0eb9c3e6ca06ce65f7 | TypeScript | 655 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { DataViewerComponent } from './data-viewer.component';
describe('DataViewerComponent', () => {
let component: DataViewerComponent;
let fixture: ComponentFixture<DataViewerComponent>;
beforeEach(async () => {
await TestBed.configureT... |
c1747fae25992d01ac0977fd8f1c1e429e7fae51201f909f7145cfecc6e54556 | TypeScript | 655 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { LoginModalComponent } from './login-modal.component';
describe('LoginModalComponent', () => {
let component: LoginModalComponent;
let fixture: ComponentFixture<LoginModalComponent>;
beforeEach(async () => {
await TestBed.configureT... |
091b331a1615e4023206c8defd79816d127f200b32db17d5dae4e2ec8260333c | TypeScript | 656 | 12 | export type CustomValidationFunction<TSchema> = (schema: TSchema, value: unknown) => boolean;
/** Provides functions to create user defined types */
export declare namespace Custom {
/** Clears all user defined types */
function Clear(): void;
/** Returns true if this user defined type exists */
functio... |
d3c39a8b56dc5abd6a3021e9324cfeda205a568c92be2de8a6914039a41b00cf | TypeScript | 658 | 23 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { QrcodeModalComponent } from './qrcode-modal.component';
describe('QrcodeModalComponent', () => {
let component: QrcodeModalComponent;
let fixture: ComponentFixture<QrcodeModalComponent>;
beforeEach(async () => {
await Test... |
68e09a09c0af00b7370657aa1684537c51d05c5c7a172fc6cc18cdb5bc1a3a6a | TypeScript | 660 | 20 | import type { Config } from "@jest/types";
const config: Config.InitialOptions = {
preset: "ts-jest",
testEnvironment: "jest-environment-node-single-context",
clearMocks: true,
collectCoverage: false,
testTimeout: 30000, // Longer timeout for integration tests
setupFiles: ["<rootDir>/test/setup-env.ts"],
... |
b55036fc63fa1f6c9781bb2de71a80ff3fe0f4734579188f2feb405141ce2200 | TypeScript | 662 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ProfilePlotComponent } from './profile-plot.component';
describe('ProfilePlotComponent', () => {
let component: ProfilePlotComponent;
let fixture: ComponentFixture<ProfilePlotComponent>;
beforeEach(async () => {
await TestBed.confi... |
b87ec35c2b113530e6711768e8ff9c59a0484a5e9f5d708fa97f99e647d2653b | TypeScript | 662 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { VolcanoPlotComponent } from './volcano-plot.component';
describe('VolcanoPlotComponent', () => {
let component: VolcanoPlotComponent;
let fixture: ComponentFixture<VolcanoPlotComponent>;
beforeEach(async () => {
await TestBed.confi... |
bc147f217be53bc154a18edec15a2a6a5de3c52c9a8df71e0c5d944883111ad6 | TypeScript | 662 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { BatchSearchComponent } from './batch-search.component';
describe('BatchSearchComponent', () => {
let component: BatchSearchComponent;
let fixture: ComponentFixture<BatchSearchComponent>;
beforeEach(async () => {
await TestBed.confi... |
ed5495c01e9ebf3713765975815cc2a7211de099238be3e03a1974ce5adce74c | TypeScript | 664 | 25 | import {Component, EventEmitter, OnInit, Output} from '@angular/core';
import {DataService} from "../../data.service";
@Component({
selector: 'app-comparison-selections',
templateUrl: './comparison-selections.component.html',
styleUrls: ['./comparison-selections.component.scss']
})
export class ComparisonSelecti... |
1c047f60e01da0d8d29adfcc8be7f2a986185c13b4787327ee3335b084f8fb21 | TypeScript | 665 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CytoplotComponent } from './cytoplot.component';
describe('CytoplotComponent', () => {
let component: CytoplotComponent;
let fixture: ComponentFixture<CytoplotComponent>;
beforeEach(async () => {
await TestBed.configureTes... |
52eaf60639ac86b085021441a62041ed66b617d718be88740a2b8a56ae76484f | TypeScript | 665 | 23 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { EnrichrModalComponent } from './enrichr-modal.component';
describe('EnrichrModalComponent', () => {
let component: EnrichrModalComponent;
let fixture: ComponentFixture<EnrichrModalComponent>;
beforeEach(async () => {
await... |
751eef5fa040dc46cfd82512c5fc3056bacd2cf97d95f01426005c654e3d0b05 | TypeScript | 665 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CitationComponent } from './citation.component';
describe('CitationComponent', () => {
let component: CitationComponent;
let fixture: ComponentFixture<CitationComponent>;
beforeEach(async () => {
await TestBed.configureTes... |
c24963aacecefcc6a7ee048a78f30c1bbb2e132841cc5d02fc2d4fb2144b1418 | TypeScript | 665 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AccountsComponent } from './accounts.component';
describe('AccountsComponent', () => {
let component: AccountsComponent;
let fixture: ComponentFixture<AccountsComponent>;
beforeEach(async () => {
await TestBed.configureTes... |
8b374eb94fa55fd6a9db7373d1a6ec11a5b853a1968cfeab290ca4b7ffdc82fa | TypeScript | 666 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FdrCurveComponent } from './fdr-curve.component';
describe('FdrCurveComponent', () => {
let component: FdrCurveComponent;
let fixture: ComponentFixture<FdrCurveComponent>;
beforeEach(async () => {
await TestBed.configureTe... |
c24aff343b4084739552952fba8fc1683ef244efa87051432eeefe56c4167cb5 | TypeScript | 666 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RankPlotComponent } from './rank-plot.component';
describe('RankPlotComponent', () => {
let component: RankPlotComponent;
let fixture: ComponentFixture<RankPlotComponent>;
beforeEach(async () => {
await TestBed.configureTe... |
c9bcf57b58eb9c6f6d9810d426bbd1cb7f123df4b85776aa21abd66d781be1b4 | TypeScript | 666 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FileFormComponent } from './file-form.component';
describe('FileFormComponent', () => {
let component: FileFormComponent;
let fixture: ComponentFixture<FileFormComponent>;
beforeEach(async () => {
await TestBed.configureTe... |
d5aedf86e35cd00228a8b8498bc93129aca2e5ff02ec39ddb3a01aa74205fa5e | TypeScript | 666 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { BarChartComponent } from './bar-chart.component';
describe('BarChartComponent', () => {
let component: BarChartComponent;
let fixture: ComponentFixture<BarChartComponent>;
beforeEach(async () => {
await TestBed.configureTe... |
dc7719f56557ca8a50819240cb8921b147a93e9e47ec3771adde2b7ddf032c9b | TypeScript | 666 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { StringDbComponent } from './string-db.component';
describe('StringDbComponent', () => {
let component: StringDbComponent;
let fixture: ComponentFixture<StringDbComponent>;
beforeEach(async () => {
await TestBed.configureTe... |
f54c30f91aa97ed1fcc8d9eac33bb2db7fe0cbe05c827efc167fcb0e4eb66d09 | TypeScript | 669 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ProteomicsDbComponent } from './proteomics-db.component';
describe('ProteomicsDbComponent', () => {
let component: ProteomicsDbComponent;
let fixture: ComponentFixture<ProteomicsDbComponent>;
beforeEach(async () => {
await TestBed.... |
135ba754e8c976f3abbdb8af9c4b2c91dceca40ac8ef2ea0c778d0f9c86754b1 | TypeScript | 670 | 23 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { VariantSelectionComponent } from './variant-selection.component';
describe('VariantSelectionComponent', () => {
let component: VariantSelectionComponent;
let fixture: ComponentFixture<VariantSelectionComponent>;
beforeEach(async () => ... |
9898d8e1dc00a18681b69733a524f01771f5d66fd1626e6b616186102952c862 | TypeScript | 670 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RawDataBlockComponent } from './raw-data-block.component';
describe('RawDataBlockComponent', () => {
let component: RawDataBlockComponent;
let fixture: ComponentFixture<RawDataBlockComponent>;
beforeEach(async () => {
await TestBed... |
a1557a88e77685fd0a59aea01372ba84ff3bd72072d389c7420e6ba7905135a7 | TypeScript | 670 | 23 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CollaborateModalComponent } from './collaborate-modal.component';
describe('CollaborateModalComponent', () => {
let component: CollaborateModalComponent;
let fixture: ComponentFixture<CollaborateModalComponent>;
beforeEach(async () => ... |
c1a75f03abf400eded8b89e9aa5db6e06c24e2405277cf2b8427951fd0c37773 | TypeScript | 670 | 23 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { DraggableElementComponent } from './draggable-element.component';
describe('DraggableElementComponent', () => {
let component: DraggableElementComponent;
let fixture: ComponentFixture<DraggableElementComponent>;
beforeEach(async () => ... |
ea7730038d5e2c48c55314ca1f03889cbcbf95f65ad70b16b5b7a9a842a7ac3e | TypeScript | 670 | 16 | export * from "@chroma-core/cloudflare-worker-ai";
export * from "@chroma-core/cohere";
export * from "@chroma-core/default-embed";
export * from "@chroma-core/google-gemini";
export * from "@chroma-core/huggingface-server";
export * from "@chroma-core/jina";
export * from "@chroma-core/mistral";
export * from "@chroma... |
5313dc63d0ea2cf9fc18ef5fd7d4ddad9014e8fc1431c7b4f374e9e0246ab00e | TypeScript | 671 | 23 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SideFloatControlComponent } from './side-float-control.component';
describe('SideFloatControlComponent', () => {
let component: SideFloatControlComponent;
let fixture: ComponentFixture<SideFloatControlComponent>;
beforeEach(async () =>... |
65d052eea856fa832b629859ac816fdfe39f05b23a1e909a8054580c4a5f99c6 | TypeScript | 673 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PdbViewerComponent } from './pdb-viewer.component';
describe('PdbViewerComponent', () => {
let component: PdbViewerComponent;
let fixture: ComponentFixture<PdbViewerComponent>;
beforeEach(async () => {
await TestBed.config... |
a98fff23e652be910312f72a69c79740b92563823be842aa664dd53bf721912a | TypeScript | 676 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { VolcanoColorsComponent } from './volcano-colors.component';
describe('VolcanoColorsComponent', () => {
let component: VolcanoColorsComponent;
let fixture: ComponentFixture<VolcanoColorsComponent>;
beforeEach(async () => {
await Tes... |
3d85555be4656db5faf91b5c1bdc11097c144de9c968f51e6e052308900be268 | TypeScript | 677 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RawDataViewerComponent } from './raw-data-viewer.component';
describe('RawDataViewerComponent', () => {
let component: RawDataViewerComponent;
let fixture: ComponentFixture<RawDataViewerComponent>;
beforeEach(async () => {
await Te... |
e90f2ee4f8a4495d5f9155592aa716f56f84ea5e6120b0d84dbf609b7f863d03 | TypeScript | 677 | 17 | // 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: "/api/"
};
/*
* For easier debugging in dev... |
47217bff867208565e2f589e38d0386dc2ad7d9b4d0e3f96b7c84119c1eb3820 | TypeScript | 680 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { LoginModalComponent } from './login-modal.component';
describe('LoginModalComponent', () => {
let component: LoginModalComponent;
let fixture: ComponentFixture<LoginModalComponent>;
beforeEach(async () => {
await TestBed.c... |
28cbec53a2b480256ac630e7d6e0ee9edef501e789a6160357f50e37a4ec5834 | TypeScript | 681 | 21 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { UserPtmImportManagementComponent } from './user-ptm-import-management.component';
describe('UserPtmImportManagementComponent', () => {
let component: UserPtmImportManagementComponent;
let fixture: ComponentFixture<UserPtmImportManagementC... |
8aa0f0584a6a00489912b8dd40dd52394a112d7c3bf7bc2461b2c8d32d201477 | TypeScript | 683 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NetphosKinasesComponent } from './netphos-kinases.component';
describe('NetphosKinasesComponent', () => {
let component: NetphosKinasesComponent;
let fixture: ComponentFixture<NetphosKinasesComponent>;
beforeEach(async () => {
awai... |
d0fe11e7a275d8ed1bd4a960499986f2ef56564fba9656a5ee7421663398784b | TypeScript | 683 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ToastContainerComponent } from './toast-container.component';
describe('ToastContainerComponent', () => {
let component: ToastContainerComponent;
let fixture: ComponentFixture<ToastContainerComponent>;
beforeEach(async () => {
awai... |
d1bc37151fdce9dea9e769646be0f800c4c7d7b772ea92d902dce08dd5e22ae0 | TypeScript | 683 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ProfileCompareComponent } from './profile-compare.component';
describe('ProfileCompareComponent', () => {
let component: ProfileCompareComponent;
let fixture: ComponentFixture<ProfileCompareComponent>;
beforeEach(async () => {
awai... |
a0350bc72b8ae7a5c72e1ab11e59c9cfdb6344891a85b676a942fed7b88d2d30 | TypeScript | 684 | 25 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { VolcanoAndCytoComponent } from './volcano-and-cyto.component';
describe('VolcanoAndCytoComponent', () => {
let component: VolcanoAndCytoComponent;
let fixture: ComponentFixture<VolcanoAndCytoComponent>;
beforeEach(async () => {
awa... |
a73b4ae41ee513eaaea53f7df9ea8797174cdad45b212f3e6a83d6e33414993a | TypeScript | 685 | 23 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RankAbundanceModalComponent } from './rank-abundance-modal.component';
describe('RankAbundanceModalComponent', () => {
let component: RankAbundanceModalComponent;
let fixture: ComponentFixture<RankAbundanceModalComponent>;
beforeEach(a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.