sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
0c44c0e7c3aa74e9736dc4f592b6b225467b08a74bf7761e0e32f2acc5c34b7d
TypeScript
3,600
118
import { beforeEach, describe, expect, test } from "@jest/globals"; import { IncludeEnum } from "../src/types"; import { IDS, DOCUMENTS, EMBEDDINGS, METADATAS } from "./data"; import { ChromaClient } from "../src/ChromaClient"; import { ChromaNotFoundError } from "../src/Errors"; describe("update records", () => { /...
019122b0a5a867bc45643b2eab26fa20e3a6e9c79777b3995f0468feb3c9dba7
TypeScript
3,611
167
declare namespace ansiStyles { interface CSPair { /** The ANSI terminal control sequence for starting this style. */ readonly open: string; /** The ANSI terminal control sequence for ending this style. */ readonly close: string; } interface ColorBase { /** The ANSI terminal control sequence for...
d71523735a62538406dcb9f6a56885afabed16446b859d17a90566c047694ac3
TypeScript
3,638
119
import { beforeEach, describe, expect, it, jest } from "@jest/globals"; import { CohereConfig, CohereEmbeddingFunction } from "./index"; describe("CohereEmbeddingFunction", () => { beforeEach(() => { jest.resetAllMocks(); }); const defaultParametersTest = "should initialize with default parameters"; if (!...
b9c15dc4368d001782702da89ee689535a3b6cebd881c99c51ee53330e6d266b
TypeScript
3,644
101
import {Component, Input, OnInit} from '@angular/core'; import {UntypedFormBuilder} from "@angular/forms"; import {WebService} from "../../web.service"; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {DataService} from "../../data.service"; import {SettingsService} from "../../settings.service";...
719d95e9a7d1e4da07156a25ede1a5de87c837e96fe0a8c8caab34050c3af29e
TypeScript
3,663
130
import { Component, OnInit } from '@angular/core'; import {DataService} from "../../data.service"; import {JeezyService} from "../../jeezy.service"; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {ToastService} from "../../toast.service"; import {WebService} from "../../web.service"; import {Se...
211960103e4cce686a2c8f9dc3888c00835fda37f8dee6014b47d15d8907dcf9
TypeScript
3,676
161
// Imported from DefinitelyTyped project. // TypeScript definitions for ansi-colors // Definitions by: Rogier Schouten <https://github.com/rogierschouten> // Integrated by: Jordan Mele <https://github.com/Silic0nS0ldier> interface SymbolsType { check: string; cross: string; info: string; line: string; pointe...
a692b32ece8db2e8a9007f98bda0c43652abc50cbae82809899776f351eb1bf5
TypeScript
3,741
113
import { Component, OnInit } from '@angular/core'; import {Enrichr} from "enrichrjs"; import {DataService} from "../../data.service"; import {FormBuilder, FormGroup} from "@angular/forms"; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {UniprotService} from "../../uniprot.service"; @Component({ se...
652ee9c5103e89102d87bc20d167a02a0e3e5e53665674466c8cfea8a9e418c7
TypeScript
3,751
88
/** * License for programmatically and manually incorporated * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc * * Copyright Node.js contributors. All rights reserved. * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated do...
a1d5c58dea61593fc1e1dd26a7f4afdb93dec6397c83b34442183823da1c5df8
TypeScript
3,759
139
import { ChromaValueError, EmbeddingFunction, EmbeddingFunctionSpace, registerEmbeddingFunction, } from "chromadb"; import { validateConfigSchema } from "@chroma-core/ai-embeddings-common"; import { GoogleGenAI } from "@google/genai"; import packageJson from "../package.json"; const version = packageJson.versi...
461f5886f7cb604443d2a5865466d838e75efa24845ed9c9d0c0eecf2c88b0a1
TypeScript
3,762
138
/* eslint-disable @typescript-eslint/unified-signatures */ import {Options as LocatePathOptions} from 'locate-path'; declare const stop: unique symbol; declare namespace findUp { interface Options extends LocatePathOptions {} type StopSymbol = typeof stop; type Match = string | StopSymbol | undefined; } declare...
15de4783e5afaf2fb010c392e180af1474b0566913b9a70298fad3db158cc4e0
TypeScript
3,789
132
import { EmbeddingFunctionSpace, IEmbeddingFunction, } from "./IEmbeddingFunction"; import { validateConfigSchema } from "../schemas/schemaUtils"; interface StoredConfig { api_key_env_var: string; model_name: string; task_type: string; } let googleGenAiApi: any; export class GoogleGenerativeAiEmbeddingFunct...
cc851efa98d66cf4a5dda52a65aded0f31eadd3b4bc0198b40d06c1b12ed9e67
TypeScript
3,805
119
import { beforeEach, describe, expect, it, jest } from "@jest/globals"; import { OpenAIEmbeddingFunction } from "./index"; describe("OpenAIEmbeddingFunction", () => { beforeEach(() => { jest.resetAllMocks(); }); const MODEL = "text-embedding-3-small"; const defaultParametersTest = "should initialize with...
5043f2289ec5db936a11ad3f811ed07db7f3965a33c3a4de3fa29ca4ebc10499
TypeScript
3,810
100
import { expect, test, beforeEach, describe } from "@jest/globals"; import { ChromaClient } from "../src"; import { DefaultEmbeddingFunction } from "@chroma-core/default-embed"; describe("collection operations", () => { // connects to the unauthenticated chroma instance started in // the global jest setup file. ...
c73829a0812d01c2157cfaf0b9744f148185fb3bd5c2300c03c92255e160e91a
TypeScript
3,819
138
/** * This is a generic Chroma error. */ export class ChromaError extends Error { constructor(name: string, message: string, public readonly cause?: unknown) { super(message); this.name = name; } } /** * Indicates that there was a problem with the connection to the Chroma server (e.g. the server is down...
1536c04802c1e131e4537108ac23995a25f63a0f9a4a295bdb08591d72576105
TypeScript
3,837
124
import { JinaEmbeddingFunction } from "./index"; import { beforeEach, describe, expect, it, jest } from "@jest/globals"; describe("JinaEmbeddingFunction", () => { beforeEach(() => { jest.resetAllMocks(); }); const defaultParametersTest = "should initialize with default parameters"; if (!process.env.JINA_A...
901401bde85e368a89be205f646378ad0fa7d7e08d09b40efc49a9664212fafb
TypeScript
3,854
113
import { Component, OnInit } from '@angular/core'; import {Enrichr} from "enrichrjs"; import {DataService} from "../../data.service"; import {FormBuilder, FormGroup} from "@angular/forms"; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {UniprotService} from "../../uniprot.service"; @Component...
4a5edd610d4598a36396859754cf5aabb041e4d9c4afedd2d34d7a3fc7d1d50b
TypeScript
3,881
114
import { Component, OnInit } from '@angular/core'; import {DataService} from "../../data.service"; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {SettingsService} from "../../settings.service"; @Component({ selector: 'app-sample-order-and-hide', templateUrl: './sample-order-and-hide.component.h...
e841c674d76b4c3752532f49cc4a2bd24675ca827e427164156462d9e8182f1b
TypeScript
3,922
139
import { ChromaValueError, EmbeddingFunction, EmbeddingFunctionSpace, registerEmbeddingFunction, } from "chromadb"; import { validateConfigSchema } from "@chroma-core/ai-embeddings-common"; import * as process from "node:process"; const NAME = "cloudflare-worker-ai"; const BASE_URL = "https://api.cloudflare.co...
350ce4f9cf9fad2c0e066eb0b410edef01f913cd21018863b7a33f3f06120f34
TypeScript
3,947
131
import { Component, OnInit } from '@angular/core'; import {WebService} from "../../web.service"; import {AccountsService} from "../accounts.service"; import {FormBuilder} from "@angular/forms"; import {forkJoin, Observable} from "rxjs"; @Component({ selector: 'app-accounts', templateUrl: './accounts.component.html...
c49c6f02466e6378c3813ea5fd11f86b9bcb482a2483bd4636d0d0610932b76d
TypeScript
3,961
118
import { assertNonEmptyArray, iterableToArray, IterableInput } from "./common"; import { createComparisonWhere, WhereExpression } from "./where"; export class Key { public static readonly ID = new Key("#id"); public static readonly DOCUMENT = new Key("#document"); public static readonly EMBEDDING = new Key("#emb...
cfa353a4a73e36b85add3449aa7485b41f1b357b0bb3a4ce0d5e031193b8384e
TypeScript
3,965
118
import { Component, OnInit } from '@angular/core'; import {DataService} from "../../data.service"; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {SettingsService} from "../../settings.service"; @Component({ selector: 'app-sample-order-and-hide', templateUrl: './sample-order-and-hide.component.h...
723a1c1e7c8576a5b115417e95c313bb7a585d75849b2a3a3dbab0e8f3f74f13
TypeScript
4,083
118
import { Component, OnInit } from '@angular/core'; import {DataService} from "../../data.service"; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {SettingsService} from "../../settings.service"; @Component({ selector: 'app-sample-order-and-hide', templateUrl: './sample-order-and-hide.comp...
af51b0dedcac444d522863eecfb8190d27900d86718f1802cccf8d7418e2e5fe
TypeScript
4,086
113
import { describe, expect, test } from "@jest/globals"; import { DEFAULT_CHROMA_BM25_STOPWORDS, ChromaBm25EmbeddingFunction, type ChromaBm25Config, } from "./index"; const isSorted = (arr: number[]): boolean => { for (let i = 1; i < arr.length; i += 1) { if (arr[i] < arr[i - 1]) { r...
c6d184248bf3dce1733300a890861bb447acdbf241697ebdb62cbf789d1d75cf
TypeScript
4,106
122
import { beforeEach, describe, expect, test } from "@jest/globals"; import { DOCUMENTS, EMBEDDINGS, IDS, METADATAS } from "./data"; import { ChromaNotFoundError, InvalidArgumentError } from "../src/Errors"; import { DefaultEmbeddingFunction } from "../src/embeddings/DefaultEmbeddingFunction"; import { ChromaClient } fr...
b5a969b0805cf23d51ae52fab39c60345aa2c6a383a36071d1e9a941b0a6af5a
TypeScript
4,118
134
import { beforeEach, describe, expect, it, jest } from "@jest/globals"; import { CloudflareWorkerAIEmbeddingFunction } from "./index"; describe("CloudflareWorkerAIEmbeddingFunction", () => { beforeEach(() => { jest.resetAllMocks(); }); const verifyEnvVariables = () => { return process.env.CLOUDFLARE_API...
e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0
TypeScript
4,144
115
/** * @since v0.3.7 */ declare module 'module' { import { URL } from 'node:url'; namespace Module { /** * The `module.syncBuiltinESMExports()` method updates all the live bindings for * builtin `ES Modules` to match the properties of the `CommonJS` exports. It * does not add...
0e9c773ec762fc175725e2e6107b547917f3ba957268e33bdf9f76bf22435479
TypeScript
4,220
109
import { expect, test, beforeEach, describe } from "@jest/globals"; import { DefaultEmbeddingFunction, ChromaClient } from "../src"; describe("collection operations", () => { // connects to the unauthenticated chroma instance started in // the global jest setup file. const client = new ChromaClient({ path: p...
0ff6124fcc2a969e35f966f2f34b9b0fe2c8530c5d20aa2f1107a9a348224d3e
TypeScript
4,232
142
import { Injectable } from '@angular/core'; import {SettingsService} from "./settings.service"; import {DataService} from "./data.service"; @Injectable({ providedIn: 'root' }) export class SaveStateService { states: number[] = [] constructor(private settings: SettingsService, private data: DataService) { thi...
131bc8d22e8eb5d908d345415bed0ab5308c78645920191595157e11728a2d73
TypeScript
4,234
142
import { Component, OnInit } from '@angular/core'; import {WebService} from "../../web.service"; import {AccountsService} from "../accounts.service"; import {FormBuilder} from "@angular/forms"; import {forkJoin, Observable} from "rxjs"; @Component({ selector: 'app-accounts', templateUrl: './accounts.component.html...
cbb2bb4ea16eeff072ee5af3eba6901ee39ba7ea5a1903d4103f60cc382d4930
TypeScript
4,246
139
import { validateConfigSchema } from "../schemas/schemaUtils"; import { isBrowser } from "../utils"; import { IEmbeddingFunction } from "./IEmbeddingFunction"; // Dynamically import module let TransformersApi: Promise<any>; interface StoredConfig { model: string; revision: string; quantized: boolean; } export ...
4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05
TypeScript
4,258
121
/*! ***************************************************************************** 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....
f5cd81ead65308857d2ebba70e54f86e86bb57e99121c2494d35d1dc5fbebd12
TypeScript
4,260
153
import {Component, Input, OnInit} from '@angular/core'; import {WebService} from "../../web.service"; import {UniprotService} from "../../uniprot.service"; import {UntypedFormBuilder, UntypedFormGroup} from "@angular/forms"; import {getProteomicsData} from "curtain-web-api"; import {SettingsService} from "../../setting...
e82be99b0081e93aee0c6c21178673849158f2a9c1ff73ba98618c89d5f5b178
TypeScript
4,311
143
import { ChromaBackoffError, ChromaClientError, ChromaConnectionError, ChromaConditionalWriteConflictError, ChromaError, ChromaForbiddenError, ChromaNotFoundError, ChromaQuotaExceededError, ChromaRateLimitError, ChromaServerError, ChromaStaleReadError, ChromaUnauthorizedError, ChromaUniqueErro...
4306b2e305fe3807dac1b9d9ea7cc6f948fb220ff7c39719e4d12d7191ce6446
TypeScript
4,374
142
import { Injectable } from '@angular/core'; import {SettingsService} from "./settings.service"; import {DataService} from "./data.service"; @Injectable({ providedIn: 'root' }) export class SaveStateService { states: number[] = [] constructor(private settings: SettingsService, private data: DataService) ...
68aa8b4d5a97dcb000d33d8c6f54ad0827a7c8ea14748b9b84fc8daead73dc63
TypeScript
4,376
142
import { Component, OnInit } from '@angular/core'; import {WebService} from "../../web.service"; import {AccountsService} from "../accounts.service"; import {FormBuilder} from "@angular/forms"; import {forkJoin, Observable} from "rxjs"; @Component({ selector: 'app-accounts', templateUrl: './accounts.compon...
60fa8ba2e0487d3b568e6f53487c0d82b37defdc5897a7db69c58522b9aee27f
TypeScript
4,395
141
import * as path from "path"; import * as Filesystem from "./filesystem"; import * as MappingEntry from "./mapping-entry"; import * as TryPath from "./try-path"; /** * Function that can match a path */ export interface MatchPath { ( requestedModule: string, readJson?: Filesystem.ReadJsonSync, fileExist...
93abb93aa904eb9c1f1b526bbc22b7eb4d3a75290027be9162e76e6e01a11555
TypeScript
4,407
144
import { Injectable } from '@angular/core'; import {SettingsService} from "./settings.service"; import {DataService} from "./data.service"; @Injectable({ providedIn: 'root' }) export class SaveStateService { states: number[] = [] constructor(private settings: SettingsService, private data: DataService) { th...
1f48916728ce39eef4920448f34ec53096a853f2858d91ca4ebbb6719f0ef925
TypeScript
4,413
153
import {Component, Input, OnInit} from '@angular/core'; import {WebService} from "../../web.service"; import {UniprotService} from "../../uniprot.service"; import {UntypedFormBuilder, UntypedFormGroup} from "@angular/forms"; import {getProteomicsData} from "curtain-web-api"; import {SettingsService} from "../../se...
0bd77dba49008b42b8aec6bc04e77c7e691e25f94447f876d6942f10dfd85180
TypeScript
4,428
135
import { afterAll, beforeAll, describe, expect, test } from "@jest/globals"; import { AdminClient } from "../src/AdminClient"; import { ChromaError, ChromaUniqueError } from "../src/Errors"; import { startChromaContainer } from "./startChromaContainer"; describe("AdminClient", () => { // connects to the unauthentica...
93bf5ec1fea9ec70c56abe2ba8d7f965f6670b4c7060884341e14baed0d054e2
TypeScript
4,432
156
import type { SearchPayload } from "../../api"; import type { GroupByInput } from "./groupBy"; import { GroupBy } from "./groupBy"; import type { LimitInput } from "./limit"; import { Limit } from "./limit"; import type { RankInput } from "./rank"; import { RankExpression } from "./rank"; import type { SelectInput, Sel...
62fb35e8674255a72162dd26f1ddce110dd60621789cc2512b067639f1893499
TypeScript
4,445
137
// scripts/nwb_ts/dandisetSummary.ts import { DandiClient } from './dandiClient'; export interface AcquisitionTraceSummary { traceName: string; shape: number[] | null; dataType: string; } export interface AssetAcquisitionSummary { assetId: string; filePath: string; fileSizeMB: number; acquisitionTraces:...
9af4ef93b101ff1a4aa10cdac30aa3652b645a2269cfe774efeb553c6860010d
TypeScript
4,463
168
import { IEmbeddingFunction } from "./IEmbeddingFunction"; import { validateConfigSchema } from "../schemas/schemaUtils"; type StoredConfig = { api_key_env_var: string; model_name: string; task?: string; late_chunking?: boolean; truncate?: boolean; dimensions?: number; embedding_type?: string; normalize...
fb7987356c3b5e1bcb89f9c63d67dd2fbd14e623760a68fb0b8f7332ff54cc7d
TypeScript
4,492
143
import { IEmbeddingFunction } from "./IEmbeddingFunction"; import { validateConfigSchema } from "../schemas/schemaUtils"; // Dynamically import module let TransformersApi: Promise<any>; type StoredConfig = { model: string; revision: string; quantized: boolean; }; export class TransformersEmbeddingFunction imple...
05960a46aa7ef371258b76f3154f70ce74030d23860a48dd5e77e4f0eb1ab414
TypeScript
4,522
133
import { Component, OnInit } from '@angular/core'; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {DataService} from "../../data.service"; import {SettingsService} from "../../settings.service"; import {FormBuilder} from "@angular/forms"; import {ToastService} from "../../toast.service"; @Component(...
53a355c1314920675b773a91713839414948928b51f50309286ddf7b057dcbbf
TypeScript
4,597
172
import * as path from "path"; import * as fs from "fs"; // tslint:disable:no-require-imports import JSON5 = require("json5"); import StripBom = require("strip-bom"); // tslint:enable:no-require-imports /** * Typing for the parts of tsconfig that we care about */ export interface Tsconfig { extends?: string; comp...
8b025e854f99a8fe0673daeaffd0f044a84c37848ef8824555f266054aec163b
TypeScript
4,599
122
import {describe} from "mocha"; import {expect} from "chai"; import {CurtainWebAPI} from "../classes/curtain-api"; import * as assert from "assert"; import {User} from "../classes/curtain-user"; //sample user data const userEx= { id: 1, username: "testroot", isStaff: true, canDelete: true, curtainL...
970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed
TypeScript
4,604
94
/** * The `timer` module exposes a global API for scheduling functions to * be called at some future period of time. Because the timer functions are * globals, there is no need to call `require('timers')` to use the API. * * The timer functions within Node.js implement a similar API as the timers API * provided b...
7f686e93c60313e11135e0b31f1fd52b4f445368f79cf6c3058c031833964ddc
TypeScript
4,630
153
import { CHROMA_CLOUD_QWEN_DEFAULT_INSTRUCTIONS, ChromaCloudQwenArgs, ChromaCloudQwenEmbeddingFunction, ChromaCloudQwenEmbeddingModel, } from "./index"; import { beforeEach, describe, expect, it, jest } from "@jest/globals"; import { CloudClient } from "chromadb"; describe("ChromaCloudQwenEmbeddingFunction", (...
99d8a97191e6d9eda75d2963d1d4f14bc2099dad5b81af63fbaec76d61af111e
TypeScript
4,643
136
import { Component, OnInit } from '@angular/core'; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {DataService} from "../../data.service"; import {SettingsService} from "../../settings.service"; import {FormBuilder} from "@angular/forms"; import {ToastService} from "../../toast.service"; @Component(...
a32f2eb9579c9b27fdf254457eb13a3901cad862ae69f7699c0d3b21952b565e
TypeScript
4,652
140
import { beforeEach, describe, expect, test } from "@jest/globals"; import { ChromaClient, CloudClient } from "../src"; import { DOCUMENTS, EMBEDDINGS, IDS, METADATAS } from "./utils/data"; import { DefaultEmbeddingFunction } from "@chroma-core/default-embed"; describe("get collections", () => { // connects to the u...
1dd27d4ee4e6ff67e74776d8d2caa8df0b07089f3b07c7db359a72d961099886
TypeScript
4,724
166
import { defaultAdminClientArgs, HttpMethod, normalizeMethod } from "./utils"; import { createClient, createConfig } from "@hey-api/client-fetch"; import { Database, DatabaseService, TenantService } from "./api"; import { chromaFetch } from "./chroma-fetch"; /** * Configuration options for the AdminClient. */ export...
bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe
TypeScript
4,749
97
/*! ***************************************************************************** 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....
cb251d2876bad18c80f00631e527b64200f44f666d3fe4d47617ed89f054745b
TypeScript
4,750
180
import { ChromaValueError, EmbeddingFunction, EmbeddingFunctionSpace, registerEmbeddingFunction, } from "chromadb"; import { snakeCase, validateConfigSchema, } from "@chroma-core/ai-embeddings-common"; const NAME = "jina"; export interface JinaConfig { api_key_env_var: string; model_name: string; ta...
b5f1f51600bd53dd3f525183c2edcad1351405bd64875643d8522a546e59f23e
TypeScript
4,765
152
import { Injectable } from '@angular/core'; import {environment} from "../../environments/environment"; import {ToastService} from "../toast.service"; import {CurtainWebAPI, User} from "curtain-web-api"; import {NgbModal} from "@ng-bootstrap/ng-bootstrap"; import {SessionExpiredModalComponent} from "../components/sessi...
04a2d0aa21ca617d0c1778f8c022c255450951526afd0d72e33059394576a703
TypeScript
4,779
136
import { Component, OnInit } from '@angular/core'; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {DataService} from "../../data.service"; import {SettingsService} from "../../settings.service"; import {FormBuilder} from "@angular/forms"; import {ToastService} from "../../toast.service"; @Com...
82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031
TypeScript
4,861
116
/*! ***************************************************************************** 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....
b53bcda9b09eeb67cf069b742c47cca3999b0f9c587e03d0fe657cc5edc1086c
TypeScript
4,906
174
import {Component, Input, OnInit} from '@angular/core'; import {DataFrame, IDataFrame, Series} from "data-forge"; import {DataService} from "../../data.service"; import {UniprotService} from "../../uniprot.service"; import {ToastService} from "../../toast.service"; import {SettingsService} from "../../settings.service"...
55d3282a5e54a03f6125a20c7cb4116db6ea9ea8d0a486a1f871ff3d2cd69594
TypeScript
4,917
152
import { Injectable } from '@angular/core'; import {environment} from "../../environments/environment"; import {ToastService} from "../toast.service"; import {CurtainWebAPI, User} from "curtain-web-api"; import {NgbModal} from "@ng-bootstrap/ng-bootstrap"; import {SessionExpiredModalComponent} from "../components/...
6020e5b98bcd750b3c22868578389c4f00fc86deeb54c12827eaedea47b452a2
TypeScript
5,046
176
import { GenericContainer, Wait } from "testcontainers"; import path from "node:path"; import { ChildProcess, execSync, spawn } from "node:child_process"; import chalk from "chalk"; import waitOn from "wait-on"; import { Readable } from "node:stream"; const CHROMADB_PORT = 8000; const buildDockerImage = async ( doc...
613986bc217d8d9d45d5dc81c4a18f88f8c9e9d1da7b562304a81f19a572a5fb
TypeScript
5,073
185
import { AdminClient } from "./AdminClient"; import { ChromaClient } from "./ChromaClient"; import { ChromaConnectionError } from "./Errors"; import { IEmbeddingFunction } from "./embeddings/IEmbeddingFunction"; import { AddRecordsParams, BaseRecordOperationParams, CollectionParams, Metadata, MultiRecordOpera...
6e5892599898eb8919000b49421cb187b8ba7a9b143defadd4011b168c032037
TypeScript
5,080
174
import {Component, Input, OnInit} from '@angular/core'; import {DataFrame, IDataFrame, Series} from "data-forge"; import {DataService} from "../../data.service"; import {UniprotService} from "../../uniprot.service"; import {ToastService} from "../../toast.service"; import {SettingsService} from "../../settings.ser...
33e6983bea6f8f47c0589f0bbf5a40fca732b46c0c7d356a3018a33807da4abf
TypeScript
5,122
197
import { ChromaValueError, type SparseEmbeddingFunction, type SparseVector, registerSparseEmbeddingFunction, ChromaClient, } from "chromadb"; import { snakeCase, validateConfigSchema, getChromaEmbedUrl, } from "@chroma-core/ai-embeddings-common"; const NAME = "chroma-cloud-splade"; export interface Ch...
a024d8046277f05d503ddb0e7d89d28aa6034f3a5d83779aa9c68ccd72e31b2d
TypeScript
5,162
157
import { Injectable } from '@angular/core'; import {HttpClient, HttpHeaders} from "@angular/common/http"; import {environment} from "../../environments/environment"; import {ToastService} from "../toast.service"; import {CurtainWebAPI, User} from "curtain-web-api"; import {SessionExpiredModalComponent} from "../compone...
198b0c16fc79b05dfca391374ea04cf809fbcef93ff5e11c68dd6f6c56a685e2
TypeScript
5,180
166
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; import {DataService} from "../../data.service"; import {debounceTime, distinctUntilChanged, map, Observable, OperatorFunction} from "rxjs"; import {NgbModal} from "@ng-bootstrap/ng-bootstrap"; import {BatchSearchComponent} from "../batch-sear...
5114a95689b63f96b957e00216bc04baf9e1a1782aa4d8ee7e5e9acbf768e301
TypeScript
5,203
148
/*! ***************************************************************************** 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....
0e9e5ffe35055f89d6c7c0647b1ad9b0a8c49edd589ff0fd2921b1f28f59ba7d
TypeScript
5,223
182
import { ChromaValueError, EmbeddingFunction, EmbeddingFunctionSpace, registerEmbeddingFunction, } from "chromadb"; import { validateConfigSchema } from "@chroma-core/ai-embeddings-common"; import process from "node:process"; import { CohereClient } from "cohere-ai"; export type CohereEmbedInputType = | "sea...
3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3
TypeScript
5,276
101
/** * The `timer` module exposes a global API for scheduling functions to * be called at some future period of time. Because the timer functions are * globals, there is no need to call `require('timers')` to use the API. * * The timer functions within Node.js implement a similar API as the timers API * provided b...
7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee
TypeScript
5,463
191
// Type definitions for istanbul-lib-report 3.0 // Project: https://istanbul.js.org, https://github.com/istanbuljs/istanbuljs // Definitions by: Jason Cheatham <https://github.com/jason0x43> // Zacharias Björngren <https://github.com/zache> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTy...
5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3
TypeScript
5,482
117
/** * **The version of the punycode module bundled in Node.js is being deprecated.**In a future major version of Node.js this module will be removed. Users * currently depending on the `punycode` module should switch to using the * userland-provided [Punycode.js](https://github.com/bestiejs/punycode.js) module inste...
6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960
TypeScript
5,521
126
export {}; // Don't export anything! //// DOM-like Events // NB: The Event / EventTarget / EventListener implementations below were copied // from lib.dom.d.ts, then edited to reflect Node's documentation at // https://nodejs.org/api/events.html#class-eventtarget. // Please read that link to understand important imple...
7155f3cf776c530b4e01a56d2644a9afcb12f9189dc1744c4f0f136a11976725
TypeScript
5,522
141
import {Component, Input} from '@angular/core'; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {DataFrame} from "data-forge"; import {DataService} from "../../data.service"; import {SettingsService} from "../../settings.service"; import {UniprotService} from "../../uniprot.service"; import {FormBuild...
48c0f279ebb22042990e040593779948cb55d78d25641ae3d8349cbf83d36520
TypeScript
5,528
176
import { beforeEach, describe, expect, it, jest } from "@jest/globals"; import { SentenceTransformersEmbeddingFunction } from "./index"; // Store reference to mock dispose for test access let mockDispose: ReturnType<typeof jest.fn>; // Mock the transformers pipeline jest.mock("@huggingface/transformers", () => { //...
b7feb7967c6c6003e11f49efa8f5de989484e0a6ba2e5a6c41b55f8b8bd85dba
TypeScript
5,563
109
/*! ***************************************************************************** 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....
10ae935ad7cf5f82c51bbc877409d162f8cc3370b413265cfd0284c9f6438731
TypeScript
5,578
148
import { Component, OnInit } from '@angular/core'; import {SettingsService} from "../../settings.service"; import {DataService} from "../../data.service"; import {FormBuilder, FormControl, FormGroup} from "@angular/forms"; import {NgbActiveModal, NgbModal} from "@ng-bootstrap/ng-bootstrap"; import {UniprotService} from...
1dc69b344e1b9362a9a32247efcedc8236d5095007ac3eb07a8d2753a885feae
TypeScript
5,638
161
import { Component, OnInit } from '@angular/core'; import {FormBuilder, FormGroup} from "@angular/forms"; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {SettingsService} from "../../settings.service"; import {DataService} from "../../data.service"; import {UniprotService} from "../../uniprot.service...
481e47753e1bb77ceb3ed9e07f3d821ed16e8d8916f3e0c39dd59ac151ddea10
TypeScript
5,660
210
import { IEmbeddingFunction } from "./IEmbeddingFunction"; import { validateConfigSchema } from "../schemas/schemaUtils"; let OpenAIApi: any; let openAiVersion = null; let openAiMajorVersion = null; interface OpenAIAPI { createEmbedding: (params: { model: string; input: string[]; user?: string; dimen...
94fa99b6d0e8a3b555018c0bdb9bd028817ef933f3dd91cff3eb49d208a8d563
TypeScript
5,663
141
import {Component, Input} from '@angular/core'; import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap"; import {DataFrame} from "data-forge"; import {DataService} from "../../data.service"; import {SettingsService} from "../../settings.service"; import {UniprotService} from "../../uniprot.service"; import {For...
f59870b08fbcf1bdc501dbae44d3f3f3c8118f1d63e7444e2aef3ac05dff87f2
TypeScript
5,666
158
import {Component, Input, OnDestroy, OnInit} from '@angular/core'; import {DataService} from "../../data.service"; import {UniprotService} from "../../uniprot.service"; import {NgbModal} from "@ng-bootstrap/ng-bootstrap"; import {PdbViewerComponent} from "../pdb-viewer/pdb-viewer.component"; import {ScrollService} from...
a66cd227b32ddebc6a218aa3d135fddb8fcbb94ec6f8931f714df209c9354b72
TypeScript
5,675
193
import { getPathsToTry } from "../try-path"; import { join } from "path"; describe("mapping-entry", () => { const abosolutePathMappings = [ { pattern: "longest/pre/fix/*", paths: [join("/absolute", "base", "url", "foo2", "bar")], }, { pattern: "pre/fix/*", paths: [join("/absolute", "base", "u...
975699ae33091a99838bfa7498ce71497aa62daff32af9945230c5d7d7d7d6ef
TypeScript
5,726
148
import { Component, OnInit } from '@angular/core'; import {SettingsService} from "../../settings.service"; import {DataService} from "../../data.service"; import {FormBuilder, FormControl, FormGroup} from "@angular/forms"; import {NgbActiveModal, NgbModal} from "@ng-bootstrap/ng-bootstrap"; import {UniprotService}...
d2b1072838fd08d0b319e70408d733c04659ca9bb74280fdd247324fc8250151
TypeScript
5,759
218
import * as path from "path"; import * as TryPath from "./try-path"; 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 | u...
4816a5dd4619d4e28ad76e52225d17248d83fa5b03039539599c7747ca2f27a5
TypeScript
5,766
159
import { Injectable } from '@angular/core'; import {GlyconnectService} from "./glyconnect.service"; import {PspService} from "./psp.service"; import {PlmdService} from "./plmd.service"; import {CarbonyldbService} from "./carbonyldb.service"; import {SettingsService} from "./settings.service"; import {UniprotService} fr...
fdfffb9835cfdca97abe428f90a75c8327887ad8be731d1fd741901c44a5abd3
TypeScript
5,820
234
import type { EmbeddingFunctionSpace, IEmbeddingFunction, } from "./IEmbeddingFunction"; import { validateConfigSchema } from "../schemas/schemaUtils"; interface CohereAIAPI { createEmbedding: (params: { model: string; input: string[]; isImage?: boolean; }) => Promise<number[][]>; } class CohereAIS...
0cec200d28a9876cb7f6c41af56e3ac5d7e36145410a96082ae9f95a17334357
TypeScript
5,824
158
import {Component, Input, OnDestroy, OnInit} from '@angular/core'; import {DataService} from "../../data.service"; import {UniprotService} from "../../uniprot.service"; import {NgbModal} from "@ng-bootstrap/ng-bootstrap"; import {PdbViewerComponent} from "../pdb-viewer/pdb-viewer.component"; import {ScrollService}...
dd3fb094709a61fba2508fca2273e51a8e6132ce49252cccd3b9190d1f4169c2
TypeScript
5,840
173
import { beforeEach, describe, expect, test } from "@jest/globals"; import { ChromaClient } from "../src"; import { ChromaNotFoundError } from "../src/errors"; import { DefaultEmbeddingFunction } from "@chroma-core/default-embed"; describe("collections", () => { // connects to the unauthenticated chroma instance sta...
d8f268c13de8e1bbf0d615300a1437765c075835e95fe09347f4ab32592a4f0c
TypeScript
5,853
186
import { beforeEach, describe, expect, it, jest } from "@jest/globals"; import { ChromaCloudSpladeArgs, ChromaCloudSpladeEmbeddingFunction, ChromaCloudSpladeEmbeddingModel, } from "./index"; import { CloudClient } from "chromadb"; describe("ChromaCloudSpladeEmbeddingFunction", () => { beforeEach(() => { je...
5da74417aab7be7a9376b936431c623909d1317c52f88bb3e54ad9fff530d3ba
TypeScript
6,087
188
import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {WebService} from "./web.service"; import {fromCSV} from "data-forge"; import {BehaviorSubject, Subject} from "rxjs"; import {Parser} from "uniprotparserjs" @Injectable({ providedIn: 'root' }) export class UniprotSer...
5fd07f0d52cac15ad8b2e323046c75d4b5e9e5860893f72ef5b9f977ced52ffa
TypeScript
6,090
135
/// <reference lib="webworker" /> import {fromCSV, IDataFrame, Series} from "data-forge"; addEventListener('message', (data: MessageEvent<any>) => { console.log(data.data) switch (data.data.task) { case "processDifferentialFile": postMessage({type: "progress", value: 100, text: "Processing differential ...
c72b4384f5c0e31c06e2500ca384f45f9560a0028d0b00ae0ea0427301f884d3
TypeScript
6,137
185
import PouchDB from "pouchdb"; export class User { get refresh_token(): string { return this._refresh_token; } set refresh_token(value: string) { this.lastRefreshTokenUpdate = new Date(); this._refresh_token = value; } get access_token(): string { return this._acce...
af6bb4add376ff2ded25ffc4e6730cd196520135cdd94fe536da1355502e12aa
TypeScript
6,138
186
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; import {DataService} from "../../data.service"; import {debounceTime, distinctUntilChanged, map, Observable, OperatorFunction} from "rxjs"; import {NgbModal} from "@ng-bootstrap/ng-bootstrap"; import {BatchSearchComponent} from "../batch-sear...
23489d7356baac96695bddf81d35f99d40de83def50d2420ef763cf8f7f0040d
TypeScript
6,199
190
import {Component, ElementRef, Input, OnInit, ViewChild} from '@angular/core'; import {UniprotService} from "../../uniprot.service"; import {WebService} from "../../web.service"; import {DataService} from "../../data.service"; import {Settings} from "../../classes/settings"; import {SettingsService} from "../../setting...
40ffa2ef5ccaa11ef51f49e2ea3458003fcae70b5fb0292fb10c55feb9063b8c
TypeScript
6,225
135
/// <reference lib="webworker" /> import {fromCSV, IDataFrame, Series} from "data-forge"; addEventListener('message', (data: MessageEvent<any>) => { console.log(data.data) switch (data.data.task) { case "processDifferentialFile": postMessage({type: "progress", value: 100, text: "Processing diffe...
4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd
TypeScript
6,227
135
/*! ***************************************************************************** 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....
0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf
TypeScript
6,239
143
/** * The `readline/promise` module provides an API for reading lines of input from a Readable stream one line at a time. * * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/readline/promises.js) * @since v17.0.0 */ declare module 'readline/promises' { import { Interface as _Interface, ReadLineOp...
e93c78a7498b55c8a0f56776dc6fa1598f5c0ea82a47a9ec6e73b8a6b4cd681e
TypeScript
6,270
147
import { Injectable } from '@angular/core'; import {CurtainLink} from "./classes/curtain-link"; import {HttpClient, HttpHeaders, HttpParams} from "@angular/common/http"; import {PlotlyService} from "angular-plotly.js"; import {GlyconnectService} from "./glyconnect.service"; import {PspService} from "./psp.service"; imp...
d24022f5237675f79ea50fbe14fa0977313dcc14a9aa81edf99897a5fe8fd346
TypeScript
6,275
181
import { ChromaValueError, EmbeddingFunction, EmbeddingFunctionSpace, registerEmbeddingFunction, } from "chromadb"; import { validateConfigSchema, } from "@chroma-core/ai-embeddings-common"; import { pipeline } from "@huggingface/transformers"; const NAME = "sentence_transformer"; export interface...
f456313a4f79368ac46f397970ead9ff0376662be8eef809f17e7190404110b0
TypeScript
6,275
188
import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {WebService} from "./web.service"; import {fromCSV} from "data-forge"; import {BehaviorSubject, Subject} from "rxjs"; import {Parser} from "uniprotparserjs" @Injectable({ providedIn: 'root' }) export class...
5ecc26d234d0939f3f1ae6c8e90f3c2ed4658e0c3c58e2fc910dad82ddbb12bd
TypeScript
6,302
196
import {Component, Input, OnInit} from '@angular/core'; import {DataFrame, IDataFrame, Series} from "data-forge"; import {DataService} from "../../data.service"; import {UniprotService} from "../../uniprot.service"; import {ToastService} from "../../toast.service"; import {SettingsService} from "../../settings.service"...
a7e430e32eaefba6b1ebf23a94a4562bfe7051cc83558d33ddc8ff342f3c18e9
TypeScript
6,303
188
// TypeScript Version: 3.0 /// <reference types="node" /> import * as fs from "fs"; import { EventEmitter } from "events"; import { Matcher } from 'anymatch'; export class FSWatcher extends EventEmitter implements fs.FSWatcher { options: WatchOptions; /** * Constructs a new FSWatcher instance with optional W...
9cfa6532e3ff2757ab77dce8d4618fe53a047db129a50fa51d055b790cae2669
TypeScript
6,324
186
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; import {DataService} from "../../data.service"; import {debounceTime, distinctUntilChanged, map, Observable, OperatorFunction} from "rxjs"; import {NgbModal} from "@ng-bootstrap/ng-bootstrap"; import {BatchSearchComponent} from "../batch-...