sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
10a912592e5b57dd170da72f31c432ccbe3bb4ff0142a12395be85d26ac31c43 | TypeScript | 6,373 | 125 | import { Injectable } from '@angular/core';
import * as pluralize from '../../../node_modules/pluralize';
@Injectable({
providedIn: 'root'
})
export class AbstractProcessingService {
constructor() { }
public tagAcronymsSense(text: string, acronymList: any[]): any {
let taggedText = text;
taggedTe... |
5dc09201a0ca3d2051284f015fb7ab5a19c7159a5b081696b6210e1905f82821 | TypeScript | 6,389 | 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 "../../se... |
e9b323f5b21e18214e6674675b318f2b7d624830f84a6a65a030f114b254c451 | TypeScript | 6,440 | 223 | import { expect, test, beforeEach, describe } from "@jest/globals";
import { ChromaClient, ChromaValueError, Search } from "../src";
import { EMBEDDINGS, IDS, METADATAS } from "./utils/data";
describe("collection handle", () => {
const client = new ChromaClient({
path: process.env.DEFAULT_CHROMA_INSTANCE_URL,
... |
70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e | TypeScript | 6,470 | 118 | // Type definitions for yargs-parser 21.0
// Project: https://github.com/yargs/yargs-parser#readme
// Definitions by: Miles Johnson <https://github.com/milesj>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
declare namespace yargsParser {
interface Arguments {
... |
c8231947789b9067c147d70a3ad5d803ae88035afb4a33fcbcf0b731cc607496 | TypeScript | 6,481 | 268 | import { AuthOptions } from "./auth";
import { CreateCollectionConfiguration } from "./CollectionConfiguration";
import { IEmbeddingFunction } from "./embeddings/IEmbeddingFunction";
import { Api } from "./generated";
export enum IncludeEnum {
Documents = "documents",
Embeddings = "embeddings",
Metadatas = "meta... |
210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c | TypeScript | 6,535 | 131 | /**
* The `querystring` module provides utilities for parsing and formatting URL
* query strings. It can be accessed using:
*
* ```js
* const querystring = require('querystring');
* ```
*
* `querystring` is more performant than `URLSearchParams` but is not a
* standardized API. Use `URLSearchParams` when perfo... |
d8d555f3d607ecaa18d55de6995ea8f206342ecc93305919eac945c7c78c78c6 | TypeScript | 6,590 | 134 | // Type definitions for non-npm package Node.js 18.15
// Project: https://nodejs.org/
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
// DefinitelyTyped <https://github.com/DefinitelyTyped>
// Alberto Schiabel <https://github.com/jkomyno>
// Alvis H... |
e8a1c4ec230bb858a67d8f0469c6a4e38a7bc01f20d66561779f92f051d1ca69 | TypeScript | 6,597 | 235 | import { ChromaValueError } from "./errors";
import {
EmbeddingFunctionConfiguration,
HnswConfiguration as ApiHnswConfiguration,
SpannConfiguration,
UpdateCollectionConfiguration as ApiUpdateCollectionConfiguration,
} from "./api";
import {
EmbeddingFunction,
EmbeddingFunctionSpace,
getDefaultEFConfig,
... |
71d83c63639a85d643fe1c2abab2bf74c1ae1032e6dc324506cc7b9f79bb1b81 | TypeScript | 6,606 | 179 | import {AfterViewInit, Component, ElementRef, Input, OnInit, ViewChild} from '@angular/core';
import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap";
import {UniprotService} from "../../uniprot.service";
import {DataService} from "../../data.service";
import {DataFrame, IDataFrame} from "data-forge";
declare const l... |
6513db8b6e5fadf73fd53d62c588424182675d954482ad5664d2ce387e5130be | TypeScript | 6,617 | 241 | import { isPlainObject } from "./common";
export type WhereJSON = Record<string, unknown>;
export type WhereInput = WhereExpression | WhereJSON | null | undefined;
abstract class WhereExpressionBase {
public abstract toJSON(): WhereJSON;
public and(other: WhereInput): WhereExpression {
const target = WhereEx... |
afdb5b0266ef2fa8ff75d1d6d0b927df1bdf007029c926f36a13bd29ae84c3f2 | TypeScript | 6,648 | 123 | /**
* @file params
* @author Paul Pillot <paul.pillot@libmol.org>
* @license MIT
* @copyright 2020
*/
import { TAlignOpt } from "..";
export const enum SEQUENCE_TYPE {
PROTEIN,
NUCLEIC,
UNSET
}
export const DEBUG = false;
export const DEFAULT_GAP_CHAR = '-';
// const BLOSUM62 = {
// matrix: [
/... |
533d37b73b365733c0ff8d20deb7eca6c6d3636b560f28d545e4148dda3e36c1 | TypeScript | 6,657 | 169 | // Import schemas directly
import amazonBedrockSchema from "../../../../../../schemas/embedding_functions/amazon_bedrock.json";
import baseSchema from "../../../../../../schemas/embedding_functions/base_schema.json";
import chromaLangchainSchema from "../../../../../../schemas/embedding_functions/chroma_langchain.json"... |
10aa2bd0365b6e1ad8c74f1230b20447c60413e4d7f905fb9be6233b62829889 | TypeScript | 6,697 | 218 | import {Component, OnInit, ViewChild} from '@angular/core';
import {NgbActiveModal, NgbTypeahead, NgbTypeaheadSelectItemEvent} from "@ng-bootstrap/ng-bootstrap";
import {WebService} from "../../web.service";
import {DataService} from "../../data.service";
import {AccountsService} from "../../accounts/accounts.service";... |
58b2803cde3a4502254d944a6bde441b9ffae59fcb6bef97e84f2f0b9d0b8e0a | TypeScript | 6,877 | 180 | import { Injectable } from '@angular/core';
import {HttpClient} from "@angular/common/http";
import {DataFrame, fromCSV, IDataFrame} from "data-forge";
import {UniprotService} from "./uniprot.service";
@Injectable({
providedIn: 'root'
})
export class PspService {
pspData: IDataFrame = new DataFrame()
pspMap: any... |
648459164fb976f92935f9af6738d8bb3e0a311bb7eab22628c49c6120c43c4b | TypeScript | 6,877 | 197 | /**
* @file progressive.alignment.ts
* @author Paul Pillot <paul.pillot@libmol.org>
* @license MIT
* @copyright 2021
* @description Controller for the optimal multiple alignment procedure
* Most of this algorithm is inspired by R.C. Edgar MUSCLE library (a).
*
* (a) Edgar, R.C. MUSCLE: a multiple sequence align... |
86a28841db7c5807daa2b62cfd1c18fb574d47cf2ff59f3a190f3a8017832281 | TypeScript | 6,962 | 222 | // src/services/nwbService.ts
import { DandiClient } from '../../dandiClient';
export interface SweepTimeSeries {
name: string;
time: number[];
data: number[];
unit: string;
}
interface AssetCacheEntry {
file: any;
sweepNames: { acquisition: string[]; stimulus: string[] };
traces: Map<string, SweepTimeS... |
e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa | TypeScript | 7,051 | 158 | /**
* The WASI API provides an implementation of the [WebAssembly System Interface](https://wasi.dev/) specification. WASI gives sandboxed WebAssembly applications access to the
* underlying operating system via a collection of POSIX-like functions.
*
* ```js
* import { readFile } from 'fs/promises';
* import { W... |
101f9efe3b5b3075fc088f09090e4d67b72f05547f749525016fef89f958b3a8 | TypeScript | 7,089 | 132 | import { NgModule, isDevMode } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './components/home/home.component';
import { NgbModule } from '@ng-boots... |
2457eb039924a906e3da92530f8535ffa3cb098650ed8e82574ba6fbff708984 | TypeScript | 7,129 | 222 | 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, Accession} from "uniprotparserjs";
import {UniprotDb} from "./classes/uniprot-db";
@I... |
3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d | TypeScript | 7,158 | 171 | /**
* The `trace_events` module provides a mechanism to centralize tracing information
* generated by V8, Node.js core, and userspace code.
*
* Tracing can be enabled with the `--trace-event-categories` command-line flag
* or by using the `trace_events` module. The `--trace-event-categories` flag
* accepts a list... |
2308463832f5b1b643e684eeaf3b0f0551e6b7ee3eb081de00a3a4409bf9de46 | TypeScript | 7,208 | 172 | import {Component, Input, OnInit} from '@angular/core';
import {DataFrame, IDataFrame} from "data-forge";
import {DataService} from "../../data.service";
import {UniprotService} from "../../uniprot.service";
import {BiomsaService} from "../../biomsa.service";
import {ScrollService} from "../../scroll.service";
import {... |
4008cd2cee14d588aed9b58a55140d05c373491bb6af3c1e2a503f50e6f363a4 | TypeScript | 7,226 | 176 | import {AfterViewInit, Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import * as cytoscape from "cytoscape";
import * as fcose from "cytoscape-fcose";
//import * as cxtmenu from "cytoscape-cxtmenu";
// @ts-ignore
//import * as cytoscapeSVG from "cytoscape-svg";
// @ts-ignore
//import * as pan... |
f49883570657cc508ed629a985721ae9ea11da636cd53f55026b7b7f2852f2a5 | TypeScript | 7,385 | 180 | import amazonBedrockSchema from "../../../../../../schemas/embedding_functions/amazon_bedrock.json";
import baseSchema from "../../../../../../schemas/embedding_functions/base_schema.json";
import chromaLangchainSchema from "../../../../../../schemas/embedding_functions/chroma_langchain.json";
import cohereSchema from ... |
7cd330d528e74ca5e9c8fd2e83f3611c0cac325bad94033acd985a0b9a671a8e | TypeScript | 7,400 | 238 | import {Component, OnInit, ViewChild} from '@angular/core';
import {NgbActiveModal, NgbTypeahead, NgbTypeaheadSelectItemEvent} from "@ng-bootstrap/ng-bootstrap";
import {WebService} from "../../web.service";
import {DataService} from "../../data.service";
import {AccountsService} from "../../accounts/accounts.service";... |
25f461192d4f9b842bbaa88124e40dc903780a163bc40e5df9cb68fcadee3966 | TypeScript | 7,417 | 286 | import { Injectable } from '@angular/core';
import {InputFile} from "./classes/input-file";
import {Raw} from "./classes/raw";
import {Differential} from "./classes/differential";
import {DataFrame, IDataFrame} from "data-forge";
import {BehaviorSubject, debounceTime, distinctUntilChanged, map, Observable, OperatorFunc... |
1cdcfc1f624d6c08aa12c73935f6e13f095919cd99edf95752951796eb225729 | TypeScript | 7,500 | 192 | /**
* The `diagnostics_channel` module provides an API to create named channels
* to report arbitrary message data for diagnostics purposes.
*
* It can be accessed using:
*
* ```js
* import diagnostics_channel from 'diagnostics_channel';
* ```
*
* It is intended that a module writer wanting to report diagnost... |
eb0621cc37d1cb25eb8777fb9835c5d98d5e69aac78e8437aa041b6325b70e05 | TypeScript | 7,500 | 192 | /**
* The `diagnostics_channel` module provides an API to create named channels
* to report arbitrary message data for diagnostics purposes.
*
* It can be accessed using:
*
* ```js
* import diagnostics_channel from 'diagnostics_channel';
* ```
*
* It is intended that a module writer wanting to report diagnost... |
5087b836430748a2f470a637cf33b7fab3485731a6a228f8cf4b86349485c7ea | TypeScript | 7,521 | 199 | 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 {FormBuilder} from "@angular/forms";
import {debounceTime, distinctUntilChanged, map} from "rxjs"... |
9ae58823a5bf7ea021aa7e2ac9df899012ddb90cb9ace86681797195050faff6 | TypeScript | 7,542 | 213 | import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { PubmedService } from '../../services/pubmed.service';
import { AcronymService } from '../../services/acronym.service';
import { AbstractProcessingService } from '../../services/abstract... |
67cf9601b9a925c9a911ee12e8d162f11e6ed1576f79fd321b8d6d00e67d1bdf | TypeScript | 7,591 | 219 | import { join, dirname } from "path";
import { removeExtension } from "../../filesystem";
export interface OneTest {
readonly name: string;
readonly only?: boolean;
readonly skip?: boolean;
readonly absoluteBaseUrl: string;
readonly paths: { [key: string]: Array<string> };
readonly mainFields?: string[];
... |
21c568fbc9d05530b635dd1e6a782123e423b7622762ce623bb73cc381e0872b | TypeScript | 7,597 | 201 | /// <reference lib="webworker" />
import {DataFrame, fromCSV, Series, IDataFrame} 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 di... |
e249ba948c7f5af6979da7800704d9e66630f980d69c3dbc43497df9cb62d993 | TypeScript | 7,635 | 183 | import {AfterViewInit, Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import * as cytoscape from "cytoscape";
import * as fcose from "cytoscape-fcose";
import {saveAs} from "file-saver";
//import * as cxtmenu from "cytoscape-cxtmenu";
// @ts-ignore
//import * as cytoscapeSVG from "cytoscape-sv... |
5c427e212b9f4d51e1f6eefafd3193008fca1a7cf00b0b9eb97873de175ba6fc | TypeScript | 7,638 | 238 | import {Component, OnInit, ViewChild} from '@angular/core';
import {NgbActiveModal, NgbTypeahead, NgbTypeaheadSelectItemEvent} from "@ng-bootstrap/ng-bootstrap";
import {WebService} from "../../web.service";
import {DataService} from "../../data.service";
import {AccountsService} from "../../accounts/accounts.servi... |
e2b8310efd8182104d42f66aed88cc67e4115f1facc6e36ea5c69ba8681ebbb3 | TypeScript | 7,685 | 211 | import { expect, test, describe, beforeEach } from "@jest/globals";
import { DOCUMENTS, EMBEDDINGS, IDS } from "./data";
import { METADATAS } from "./data";
import { IncludeEnum } from "../src/types";
import { OpenAIEmbeddingFunction } from "../src/embeddings/OpenAIEmbeddingFunction";
import { CohereEmbeddingFunction }... |
a6fc590157b1f9fff9ba995acf6995349a9a3bdd6f34cf7b7e213009b33ce483 | TypeScript | 7,720 | 199 | 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 {FormBuilder} from "@angular/forms";
import {debounceTime, distinctUntilChanged, map} from "... |
5ded5082aa6426bfbb47b5f23a22f1953b1f5cd56e46b3d12f8af769b18f541e | TypeScript | 7,724 | 296 | import { Configuration, ApiApi as DefaultApi } from "./generated";
import { validateTenantDatabase } from "./utils";
import { ConfigOptions } from "./types";
import {
AuthOptions,
authOptionsToAuthProvider,
ClientAuthProvider,
} from "./auth";
import { chromaFetch } from "./ChromaFetch";
const DEFAULT_TENANT = "... |
b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30 | TypeScript | 7,741 | 191 | declare module 'path/posix' {
import path = require('path');
export = path;
}
declare module 'path/win32' {
import path = require('path');
export = path;
}
/**
* The `path` module provides utilities for working with file and directory paths.
* It can be accessed using:
*
* ```js
* const path = requ... |
5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea | TypeScript | 7,809 | 170 | /**
* **This module is pending deprecation.** Once a replacement API has been
* finalized, this module will be fully deprecated. Most developers should
* **not** have cause to use this module. Users who absolutely must have
* the functionality that domains provide may rely on it for the time being
* but should exp... |
dc3abd6cb9d07287f3d79a41b924fee93f63c9b751dd53feeb0a3f7cde624f2b | TypeScript | 7,818 | 183 | import {AfterViewInit, Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import * as cytoscape from "cytoscape";
import * as fcose from "cytoscape-fcose";
import {saveAs} from "file-saver";
//import * as cxtmenu from "cytoscape-cxtmenu";
// @ts-ignore
//import * as cytoscapeSVG from "cyt... |
71e44b5b7a289e29673f7c19a22efd6b7269d24831f606c846cc291725418dc0 | TypeScript | 7,898 | 267 | import {
ChromaClient,
ChromaValueError,
type EmbeddingFunction,
type EmbeddingFunctionSpace,
registerEmbeddingFunction,
} from "chromadb";
import {
snakeCase,
validateConfigSchema,
getChromaEmbedUrl,
} from "@chroma-core/ai-embeddings-common";
const NAME = "chroma-cloud-qwen";
export interface Chroma... |
fd62516eee1c9c050bec6f0303e7de8d902acec8a4f29432489f05bd93e6640e | TypeScript | 8,169 | 282 | import {
type SparseEmbeddingFunction,
type SparseVector,
registerSparseEmbeddingFunction,
} from "chromadb";
import { validateConfigSchema } from "@chroma-core/ai-embeddings-common";
import { newStemmer } from "snowball-stemmers";
import { DEFAULT_STOPWORDS } from "./stopwords";
const NAME = "chroma_bm25"... |
04f749c790ae736758ea278ef3b8a62bf1b00784645fd6bb1676129b431efe4a | TypeScript | 8,191 | 276 | /**
* @file index
* @author Paul Pillot <paul.pillot@libmol.org>
* @license MIT
* @copyright 2020-2021
*/
import {
makeSequence,
getSequenceType,
TSequence,
} from './sequence/sequence';
import { DEBUG, SEQUENCE_TYPE, getAlignmentParameters, DEFAULT_GAP_CHAR } from './align/params';
import { pairwiseA... |
d8e48acf8203790a02ce43931e47d9b9cbcb5cb58fd7b243a6e2f333722c418c | TypeScript | 8,318 | 329 | import { Injectable } from '@angular/core';
import {InputFile} from "./classes/input-file";
import {Differential} from "./classes/differential";
import {Raw} from "./classes/raw";
import {UniprotService} from "./uniprot.service";
import {SettingsService} from "./settings.service";
import {DataFrame, IDataFrame} from "d... |
57174133bec75c2ebf5306117bb728653b264b3075ae2146a03824e745f96df8 | TypeScript | 8,331 | 149 | import { NgModule, isDevMode } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import * as PlotlyJS from 'plotly.js-dist-min';
import { PlotlyModule } from 'angular-plotly.js';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
impor... |
038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e | TypeScript | 8,378 | 167 | /*! *****************************************************************************
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.... |
0fac65cc2dd574cc4d578ef0ae3449e1ad645ad82e2971767322d9c9d4777545 | TypeScript | 8,480 | 149 | import { NgModule, isDevMode } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import * as PlotlyJS from 'plotly.js-dist-min';
import { PlotlyModule } from 'angular-plotly.js';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
... |
087fdb94a75250b011944f68469caeaa05059ec5d7a43b417709dfe8022d0b7f | TypeScript | 8,542 | 304 | import { afterEach, describe, expect, jest, test } from "@jest/globals";
import { chromaFetch } from "../src/chroma-fetch";
import { CollectionImpl } from "../src/collection";
import { RecordService } from "../src/api";
import {
ChromaBackoffError,
ChromaConditionalWriteConflictError,
ChromaStaleReadError,
} from... |
3db199394ca04db7e48519c930afeda708fcdc2c41d4c0e33c48cd6371af66d6 | TypeScript | 8,595 | 215 | import { expect, test, beforeEach, describe } from "@jest/globals";
import { DefaultEmbeddingFunction, ChromaClient } from "../src";
import {
CreateCollectionConfiguration,
UpdateCollectionConfiguration,
} from "../src/CollectionConfiguration";
describe("collection operations", () => {
// connects to the unauthe... |
1c736888e62bf47483229be6c414bb1e9c31c3af25d849d616ba5ceaa226fd46 | TypeScript | 8,647 | 329 | import { Injectable } from '@angular/core';
import {InputFile} from "./classes/input-file";
import {Differential} from "./classes/differential";
import {Raw} from "./classes/raw";
import {UniprotService} from "./uniprot.service";
import {SettingsService} from "./settings.service";
import {DataFrame, IDataFrame} f... |
0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2 | TypeScript | 8,899 | 415 | /**
Basic foreground colors.
[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support)
*/
declare type ForegroundColor =
| 'black'
| 'red'
| 'green'
| 'yellow'
| 'blue'
| 'magenta'
| 'cyan'
| 'white'
| 'gray'
| 'grey'
| 'blackBright'
| 'redBright'
| 'greenBr... |
2d6d6265b74711f6b9605864ce317f76f101c3703cebc6637d4a36b8d7f5f3ec | TypeScript | 8,946 | 312 | import {
loadTsconfig,
tsConfigLoader,
walkForTsConfig,
} from "../tsconfig-loader";
import { join } from "path";
describe("tsconfig-loader", () => {
it("should find tsconfig in cwd", () => {
const result = tsConfigLoader({
cwd: "/foo/bar",
getEnv: (_: string) => undefined,
loadSync: (cwd... |
a74956994b4700cc44127e5ac9137374b0e49de123f3533f3a9896e98daf63a3 | TypeScript | 9,247 | 264 | import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {WebService} from "../../web.service";
import {DataService} from "../../data.service";
import {ScrollService} from "../../scroll.service";
import {SettingsService} from "../../settings.service";
import {NgbModal} from "@ng-bootstrap/ng... |
7ea8d971f6eadbddb79b14ba8923083d82bb1e2a208ec2f47deb6506eac48c36 | TypeScript | 9,284 | 294 | // Declare "static" methods in Error
interface ErrorConstructor {
/** Create .stack property on a target object */
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
/**
* Optional override for formatting stack traces
*
* @see https://v8.dev/docs/stack-trace-api#custom... |
446666103bcb9d982f2456734a3c592cca38f2b9dc2393e997fa39d694cc632f | TypeScript | 9,449 | 330 | import {Component, Input, OnInit} from '@angular/core';
import {DataService} from "../../data.service";
import {Series} from "data-forge";
import {UniprotService} from "../../uniprot.service";
import {PlotlyService} from "angular-plotly.js";
import {WebService} from "../../web.service";
import {StatsService} from "../.... |
7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c | TypeScript | 9,453 | 325 | /*! *****************************************************************************
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.... |
57b6cb95756d1fe3bfeb20205de27b0c5406e4a86e130c6dfa6bd92af641e09d | TypeScript | 9,617 | 301 | // Declare "static" methods in Error
interface ErrorConstructor {
/** Create .stack property on a target object */
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
/**
* Optional override for formatting stack traces
*
* @see https://v8.dev/docs/stack-trace-api#custom... |
023700fd6ca7987c4d14453053613e4e5f5ec0d10913d6d8902c63d921fb041a | TypeScript | 9,760 | 369 | import {
DeleteCollectionRecordsResponse,
GetUserIdentityResponse,
Include,
IndexStatusResponse,
SparseVector,
} from "./api";
/**
* User identity information including tenant and database access.
*/
export type UserIdentity = GetUserIdentityResponse;
/**
* Read level controls whether queries read from t... |
5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2 | TypeScript | 9,877 | 206 | /**
* The `tty` module provides the `tty.ReadStream` and `tty.WriteStream` classes.
* In most cases, it will not be necessary or possible to use this module directly.
* However, it can be accessed using:
*
* ```js
* const tty = require('tty');
* ```
*
* When Node.js detects that it is being run with a text ter... |
c3f63e368aa413ffa0c784be98aeb16011e12c01b5d5d3fcbdf3291444a43c27 | TypeScript | 10,313 | 359 | /**
* @file tree
* @author Paul Pillot <paul.pillot@libmol.org>
* @license MIT
* @copyright 2020
*/
import { DEBUG, TAlignmentParam } from '../align/params';
import { seqToProf, ProfPos } from './profile';
import { TSequence } from './sequence';
export const enum NODE_TYPE {
LEAF,
NODE,
ROOT
}
expor... |
1cec03ea8d40c1f5d0b5897100fae4cd6aa7f4c07c29110742a13c82da41259a | TypeScript | 10,421 | 326 | import path from "node:path";
import { exec, spawn, ChildProcess } from "node:child_process";
import { GenericContainer, Wait } from "testcontainers";
import bcrypt from "bcrypt";
import chalk from "chalk";
import http from "node:http";
const CHROMADB_PORT = 8000;
const BUILD_CONTEXT_DIR = path.join(__dirname, "../..... |
36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec | TypeScript | 10,621 | 326 | /*! *****************************************************************************
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.... |
1431c9a606609b629441d6759d1b843f3a04410286bf335c72bb9c13a10650f6 | TypeScript | 10,637 | 327 | import { Component, OnInit } from '@angular/core';
import {DataService} from "../../data.service";
import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap";
import {SettingsService} from "../../settings.service";
import {WebService} from "../../web.service";
import {Project} from "../../classes/project";
import {getPr... |
24d188103b5aa9ba7b1538f3fd926281897897aa664286f09bfca52d7a8a6deb | TypeScript | 10,638 | 328 | import { Component, OnInit } from '@angular/core';
import {DataService} from "../../data.service";
import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap";
import {SettingsService} from "../../settings.service";
import {WebService} from "../../web.service";
import {Project} from "../../classes/project";
import {getPr... |
2dbf6c125b22642dd6733a8ef51452573bd1ce05dbca29e20fc0e84a68918bf5 | TypeScript | 10,964 | 327 | import { Component, OnInit } from '@angular/core';
import {DataService} from "../../data.service";
import {NgbActiveModal} from "@ng-bootstrap/ng-bootstrap";
import {SettingsService} from "../../settings.service";
import {WebService} from "../../web.service";
import {Project} from "../../classes/project";
import ... |
599ec0d2ac9a00851940f6ff74dc6fe8f4c3d6acf464f39e757e27eda42ee99b | TypeScript | 11,637 | 499 | /* 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 namespace Api {
export interface AddCollectionRecords... |
bd90a8ae42bdd70ab513ed004f7c2d3d6eb289f2414d131ae24a87652a2c4832 | TypeScript | 11,821 | 387 | import { EmbeddingFunctionConfiguration, SparseVector } from "./api";
import { ChromaValueError } from "./errors";
import { ChromaClient } from "./chroma-client";
/**
* Supported vector space types.
*/
export type EmbeddingFunctionSpace = "cosine" | "l2" | "ip";
/**
* Interface for embedding functions.
* Embeddin... |
2cec1a31729b9b01e9294c33fc9425d336eff067282809761ad2e74425d6d2a5 | TypeScript | 11,891 | 369 | /**
* 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.
*/
import type {EqualsFunction} from '@jest/expect-utils';
import type * as jestMatcherUtils from 'jest-matcher-utils';
import {Test... |
0f1e6ae6306d01a7e2238aaaf5ba8f535d3ee2ac7fb0989df87f14a577ad0bd0 | TypeScript | 12,132 | 173 | /*! *****************************************************************************
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.... |
cf1236f6c097377a30de734b1464ca8ec56637b07c62097287ffd426d2a3dbc9 | TypeScript | 12,251 | 392 | /**
* @file estring.ts
* @author Paul Pillot <paul.pillot@libmol.org>
* @license MIT
* @copyright 2021
* @description E-strings (Edit strings) are operators that act on a string to
* add insertion characters.
* The follofing example is taken from MUSCLE (a) presentation:
* Sequence: MQTIF
* Estring: <3, -1, 2>... |
17f05b72c611839d900421966eb72deb39e78acbf1a383650aacdd730abe3b1f | TypeScript | 12,253 | 350 | import {Component, Input, OnInit, ViewChild} from '@angular/core';
import {InteractomeAtlasService} from "../../interactome-atlas.service";
import {UniprotService} from "../../uniprot.service";
import {DataService} from "../../data.service";
import {SettingsService} from "../../settings.service";
import {ToastService} ... |
5a2670427090755a02e21772a378a774b372b345275103e35edd948aee9202db | TypeScript | 12,283 | 391 | import {
IEmbeddingFunction,
EmbeddingFunctionSpace,
} from "./embeddings/IEmbeddingFunction";
import { DefaultEmbeddingFunction } from "./embeddings/DefaultEmbeddingFunction";
import { Api } from "./generated";
export type HnswSpace = EmbeddingFunctionSpace;
// --- Common Interfaces ---
export class InvalidConfi... |
f9fe65e3733c6b614084d873c78c0d5c6db2bb191eb5e58c9e043149c03f04dd | TypeScript | 12,293 | 424 | import {
describe,
expect,
test,
beforeAll,
afterAll,
jest,
} from "@jest/globals";
import {
loadSchema,
validateConfigSchema,
getAvailableSchemas,
getSchemaVersion,
} from "../../src/schemas/schemaUtils";
import {
OpenAIEmbeddingFunction,
CohereEmbeddingFunction,
JinaEmbeddingFunction,
Olla... |
191eee5acf51d9891680c4ec82395810fcdad9f0be61f0abbf7f43d5cb1e99d2 | TypeScript | 12,578 | 425 | import {Component, Input, OnInit} from '@angular/core';
import {DataService} from "../../data.service";
import {Series} from "data-forge";
import {UniprotService} from "../../uniprot.service";
import {PlotlyService} from "angular-plotly.js";
import {WebService} from "../../web.service";
import {StatsService} from "../.... |
8390ef9e97d9518660c007488db59b95759e2b37d8ea5a5794b8d681755de879 | TypeScript | 12,603 | 350 | import {Component, Input, OnInit, ViewChild} from '@angular/core';
import {InteractomeAtlasService} from "../../interactome-atlas.service";
import {UniprotService} from "../../uniprot.service";
import {DataService} from "../../data.service";
import {SettingsService} from "../../settings.service";
import {ToastServ... |
189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22 | TypeScript | 12,714 | 372 | /*! *****************************************************************************
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.... |
bc50148d625e899661ec373b28430ee48cd5369346af65e01e41ff92f9af2c39 | TypeScript | 13,003 | 425 | import {Component, Input, OnInit} from '@angular/core';
import {DataService} from "../../data.service";
import {Series} from "data-forge";
import {UniprotService} from "../../uniprot.service";
import {PlotlyService} from "angular-plotly.js";
import {WebService} from "../../web.service";
import {StatsService} from... |
4d1539d055a22b15f518cb0188b69e1ef55b4ca711260d0387ad9687715dc36d | TypeScript | 13,214 | 398 | import { Injectable } from '@angular/core';
import * as pluralize from '../../../node_modules/pluralize';
@Injectable({
providedIn: 'root'
})
export class AcronymService {
constructor() { }
// service string functions
// check if string contains a letter
private hasLetter(str: string): boolean {
for (... |
44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5 | TypeScript | 13,774 | 330 | declare module 'stream/web' {
// stub module, pending copy&paste from .d.ts or manual impl
// copy from lib.dom.d.ts
interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* Provides a convenient, chainable way of piping this readable stream
* t... |
6148c88a68eb292f5238afdb3dbe44c8adc76b978e411015042f9c60fd209add | TypeScript | 14,133 | 396 | import {Component, Input, OnInit} from '@angular/core';
import {DataFrame, IDataFrame} from "data-forge";
import {DataService} from "../../data.service";
import {SettingsService} from "../../settings.service";
import {UniprotService} from "../../uniprot.service";
import {WebService} from "../../web.service";
import {
... |
8cf3c9e3f389f5b0e4729580a02288423fe83c376fa88cbdc1b9562854f4185d | TypeScript | 14,323 | 473 | import { beforeEach, describe, expect, test } from "@jest/globals";
import { ChromaClient, EmbeddingFunction } from "../src";
import { DOCUMENTS, EMBEDDINGS, IDS, METADATAS } from "./utils/data";
class TestEmbeddingFunction implements EmbeddingFunction {
public name: string = "test";
constructor() {}
public asy... |
c1ccf088b7300c21fbf666c92940f630fdb407792b23b802e59f4bee68bddcc0 | TypeScript | 14,481 | 476 | import { beforeEach, describe, expect, test } from "@jest/globals";
import { IncludeEnum } from "../src/types";
import { EMBEDDINGS, IDS, METADATAS, DOCUMENTS } from "./data";
import { IEmbeddingFunction } from "../src/embeddings/IEmbeddingFunction";
import { ChromaNotFoundError } from "../src/Errors";
import { Chroma... |
e19a5d31e5b5ba7febeb7b443b1aa71d8f954e757eb59074415d4ca318eb568e | TypeScript | 14,529 | 396 | import {Component, Input, OnInit} from '@angular/core';
import {DataFrame, IDataFrame} from "data-forge";
import {DataService} from "../../data.service";
import {SettingsService} from "../../settings.service";
import {UniprotService} from "../../uniprot.service";
import {WebService} from "../../web.service";
impo... |
a2e57e044d591e1dd59afc34e839b72fbcc3f252c1409242c9c910b28d4724d7 | TypeScript | 14,562 | 562 | import type { SparseVector } from "../../api";
import { deepClone, isPlainObject, IterableInput } from "./common";
import { Key } from "./key";
export type RankLiteral = Record<string, unknown>;
export type RankInput =
| RankExpression
| RankLiteral
| number
| null
| undefined;
const requireNumber = (value:... |
4a272fe89b6f3d09ad0ae4feaec0ef2d38ccdcb9507d65255569d528e3a88b6a | TypeScript | 14,644 | 474 | /**
* @file profile
* @author Paul Pillot <paul.pillot@libmol.org>
* @license MIT
* @copyright 2020
*/
import { ALIGNOPT } from '../align/align';
import { SEQUENCE_TYPE, TAlignmentParam } from '../align/params';
import BitArray from '../utils/bitarray';
import { estringLength, estringToIdx } from '../utils/estrin... |
ca1056b999e84f20fb81f046ca0d5ce8465b96576e1e52bb7f495c19f7b79f2a | TypeScript | 14,731 | 497 | /**
* @file Bit array
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author Paul Pillot <paulpillot@gmail.com>
* @private
*/
/**
* Compute the Hamming weight of a 32-bit unsigned integer
* @param {Integer} v - a 32-bit unsigned integer
* @return {Integer} the Hamming weight
*/
export function hamm... |
ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929 | TypeScript | 14,892 | 496 | /*! *****************************************************************************
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.... |
e6725715db87038e3fe20511219f755b65acfb1b420d54886b81b6e89ce136ee | TypeScript | 15,442 | 503 | import { ChromaClient } from "./ChromaClient";
import { IEmbeddingFunction } from "./embeddings/IEmbeddingFunction";
import {
CollectionMetadata,
AddRecordsParams,
UpsertRecordsParams,
BaseGetParams,
GetResponse,
UpdateRecordsParams,
QueryRecordsParams,
MultiQueryResponse,
PeekParams,
MultiGetRespon... |
6a564065296978169220f9f2a8a139e466ec0e34efbdfd03f38c8d64944ad319 | TypeScript | 15,537 | 443 | import {Component, ElementRef, EventEmitter, OnDestroy, OnInit, Output, ViewChild} from '@angular/core';
import {WebsocketService} from "../../websocket.service";
import {FormBuilder} from "@angular/forms";
import {debounceTime, distinctUntilChanged, map, Observable, OperatorFunction, Subscription} from "rxjs";
import ... |
5593b89282611e903f69fd5ab825c1b9267a812810613c25e51b71f4072e841f | TypeScript | 15,538 | 545 | import { version } from "../package.json";
import { AdminClient } from "./AdminClient";
import { authOptionsToAuthProvider, ClientAuthProvider } from "./auth";
import { chromaFetch } from "./ChromaFetch";
import { Collection } from "./Collection";
import { DefaultEmbeddingFunction } from "./embeddings/DefaultEmbeddingF... |
b84c3895c5db610b9c35f2c20e0304516f5bbe84d52efe269bf641f309103893 | TypeScript | 15,581 | 455 | import {Component, Input, OnInit, ViewChild} from '@angular/core';
import {DataService} from "../../data.service";
import {DbStringService} from "../../db-string.service";
import {InteractomeAtlasService} from "../../interactome-atlas.service";
import {fromCSV} from "data-forge";
import {UniprotService} from "../../uni... |
14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c | TypeScript | 15,665 | 370 | /**
* The `dns.promises` API provides an alternative set of asynchronous DNS methods
* that return `Promise` objects rather than using callbacks. The API is accessible
* via `require('dns').promises` or `require('dns/promises')`.
* @since v10.6.0
*/
declare module 'dns/promises' {
import {
LookupAddres... |
923358305985777462038ee8ffb091d0c70f44093e02250610203ba3af999711 | TypeScript | 16,036 | 455 | import {Component, Input, OnInit, ViewChild} from '@angular/core';
import {DataService} from "../../data.service";
import {DbStringService} from "../../db-string.service";
import {InteractomeAtlasService} from "../../interactome-atlas.service";
import {fromCSV} from "data-forge";
import {UniprotService} from "../.... |
13c826ba56143221f265d45c88bc63fb2e5c3f59f33da62ac331f2731bfc3703 | TypeScript | 16,063 | 384 | import {Component, EventEmitter, OnInit, Output} from '@angular/core';
import {ToastService} from "../../toast.service";
import {DataFrame, fromCSV, IDataFrame, ISeries, Series} from "data-forge";
import {DataService} from "../../data.service";
import {UniprotService} from "../../uniprot.service";
import {selectionData... |
b983fac2b2b0c1029c59100143aa88becf7622229e83d29c5a1c31a71a268c6a | TypeScript | 16,084 | 462 | import {Component, ElementRef, EventEmitter, OnDestroy, OnInit, Output, ViewChild} from '@angular/core';
import {WebsocketService} from "../../websocket.service";
import {FormBuilder, NgForm} from "@angular/forms";
import {debounceTime, map, distinctUntilChanged, Observable, OperatorFunction, Subscription} from "rxjs";... |
4f82e403ac2902866c86718aa0fd2c0b1678f66c9e0995609b98ded1a6f93db9 | TypeScript | 16,546 | 462 | import {Component, ElementRef, EventEmitter, OnDestroy, OnInit, Output, ViewChild} from '@angular/core';
import {WebsocketService} from "../../websocket.service";
import {FormBuilder, NgForm} from "@angular/forms";
import {debounceTime, map, distinctUntilChanged, Observable, OperatorFunction, Subscription} from "rxj... |
9edbc8571109235d3f1ffe7a25861915508c2bd27ffdfb16b24714eb350e1aff | TypeScript | 16,840 | 489 | /**
* @file utils
* @author Paul Pillot <paul.pillot@libmol.org>
* @license MIT
* @copyright 2020
*/
import BitArray from '../utils/bitarray';
import { DEBUG, SEQUENCE_TYPE } from '../align/params';
import Log from '../utils/logger';
export type TSequence = {
/** Sequence as a string */
rawSeq: string;
... |
9a60b92bca4c1257db03b349d58e63e4868cfc0d1c8d0ba60c2dbc63f4e6c9f6 | TypeScript | 16,886 | 353 | /*! *****************************************************************************
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.... |
e2840fa96bb2beea35f37fb721ed0588d74428ce7d85ed7815861f3979965fcc | TypeScript | 17,022 | 543 | // TypeScript Version: 4.7
type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
interface RawAxiosHeaders {
[key: string]: AxiosHeaderValue;
}
type MethodsHeaders = Partial<{
[Key in Method as Lowercase<Key>]: AxiosHeaders;
} & {common: AxiosHeaders}>;
type AxiosHeaderMatcher = (th... |
d32ef3f2a73e0b6ce9531f130dfff6ebd9a0ac1f72d57c2ee16ea7644b8fee90 | TypeScript | 17,085 | 430 | import {Component, EventEmitter, OnInit, Output} from '@angular/core';
import {InputFile} from "../../classes/input-file";
import {DataService} from "../../data.service";
import {DataFrame, fromCSV, fromJSON, Series} from "data-forge";
import {UniprotService} from "../../uniprot.service";
import {SettingsService} from ... |
f08914736c925bdc1a31ee4ea94938909785e3f0f58d1d8a60a874447a0041a6 | TypeScript | 17,448 | 521 | import {Component, Input, OnInit} from '@angular/core';
import {UniprotService} from "../../uniprot.service";
import {DataFrame, IDataFrame} from "data-forge";
import {BiomsaService} from "../../biomsa.service";
import {forkJoin} from "rxjs";
import {PtmService} from "../../ptm.service";
import {PlotlyService} from "an... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.