sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
9ffe1b69ac9f1b0810d129af3bb0fd8fbaa2e5ec46aaad3a1921af9f70f1bd28
TypeScript
2,706
94
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
90442232f039d5dcc16c117a8cff6d12cdfe652225eece96b41655e4eb8758ec
TypeScript
2,710
87
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
91f5007ab6264de796a2d7d357ce79b7085e0d400bd8d7dbdec0dda629470193
TypeScript
2,710
88
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
3ab58ea27c8c2b4678d07d2e7539661400014ee92ee1dfc7733adcc16830e272
TypeScript
2,711
71
import BinaryStreamer from '../../src/streamer/binary-streamer' import MmtfParser from '../../src/parser/mmtf-parser' import { join } from 'path' import * as fs from 'fs' describe('parser/mmtf-parser', function () { describe('parsing', function () { it('basic', function () { var file = join(__dirname, '...
b74280e039260f736485ca7657ea0a0b0c255e5d46e106039b3cc924e9b394be
TypeScript
2,716
81
import {NameFilterKeys} from '../../workflows/components/workflow-filters/workflow-filters'; import {Pagination} from '../pagination'; export function queryParams(filter: { namespace?: string; name?: string; namePrefix?: string; namePattern?: string; nameFilter?: NameFilterKeys; phases?: Array<...
e855fd880ea24449ab1a8acece302f5f9998716eee4a8431360497b1a6afac8a
TypeScript
2,717
88
// import { CommonModule } from "@angular/common"; // import { Component, Input, Output, inject } from "@angular/core"; // import { Store, select } from "@ngrx/store"; // import { BehaviorSubject, EMPTY, merge, of } from "rxjs"; // import { map, switchMap, withLatestFrom } from "rxjs/operators"; // import { PathReturn ...
4e63e832cd08c197db77bc8079b5c5b89c938c3d14125a0acd43e9284b08d090
TypeScript
2,721
87
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
a1e1106f964a83ca2fe9f1ca89e97efbeb5b9a01699f0fa01b88bb0cfea6fc2e
TypeScript
2,721
81
import { RegDereg } from "./regDereg.base" describe('> regDereg.base.ts', () => { describe('> RegDereg', () => { let regDereg: RegDereg<(arg: string) => boolean> beforeEach(() => { regDereg = new RegDereg() }) describe('> #register', () => { it('> adds interceptor fn', () => { le...
97f9874725caa05df35521e1c992c941c35b2ca670ac843ec2ceeb3a1a0aaf36
TypeScript
2,722
84
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
286ae8c574a10dfe8cecdad3aa8f2fbe90de388032cf94e62eed78e992c10d73
TypeScript
2,723
88
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
5d70052cdb91a3721f3e2d1bc70b1fc39c20e8d7da5fdb07def3883b0f9da0dc
TypeScript
2,724
92
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
7bea772e13542d9fcdf5f14f031bfa4f6dd7f1603374f3ac1098d5f6f3880fd7
TypeScript
2,726
81
/** * Unit tests for acceptInteractiveMask (ml-interactive/actions.ts). * * BROS-1422 — when SAM2 (interactive ML) is active, Vector / VideoVector must * always produce CLOSED polygons. The accept path is the SAM2-only entry point, * so it ignores the control's `closable=false` and always closes the traced * cont...
f582ba7e446605ef3fae723e3602e96f7d5c455e6da98bbb264f9454981502d9
TypeScript
2,726
74
import { useMemo } from 'react'; import type { Edge, Node as ReactFlowNode } from '@xyflow/react'; import type { DagNodeData } from '../components/LineageV2/DagNode'; import { RESOURCE_TYPE_ORDER } from '../lib/resourceType'; type GraphNode = ReactFlowNode<DagNodeData>; export type ResourceGroup = { resourceType: st...
20a2db8de314580169840c1bc97c0e3d1b6b39709ebd6d9bfdf9dd2eb6ae6f50
TypeScript
2,727
102
import { DOCUMENT } from "@angular/common" import { Component } from "@angular/core" import { ComponentFixture, fakeAsync, TestBed, tick } from "@angular/core/testing" import { By } from "@angular/platform-browser" import { KeyListenerConfig, KeyListner } from "./keyDownListener.directive" @Component({ template: `` ...
a3d9b07feccb3d5e20e3154b59a60ccd81f413b35ad933f5349c044fc1b81f1f
TypeScript
2,728
85
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
a03dedfffe7b24204b040265dc6ace86b37b0f45ca2d0193d2d090aa1187f2eb
TypeScript
2,729
104
import { Component, ElementRef, Inject, Input, OnDestroy, Optional, ViewChild } from "@angular/core"; import { MatSnackBar } from 'src/sharedModules/angularMaterial.exports' import { Polygon, POLY_ICON_CLASS } from "../poly"; import { ToolCmpBase } from "../toolCmp.base"; import { IAnnotationGeometry, TExportFormats, U...
3ab6c51b984fd2760f5965ae93b4a88d4556dd7495cc764c018c3903c5aa444c
TypeScript
2,730
71
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
d876a81243453954311dd847460c53e6635d9bf5fe1f2b526b0824fc8b93e2a3
TypeScript
2,730
111
type OnProgressCallback = (total: number, loaded: number, progress: number) => void; /** * @class FileLoader * @description Allows to download any file from a given URL and provide a data URL for it */ export class FileLoader { private fileCache: Map<string, string> = new Map(); private errorCache: Map<string, ...
2e6022d8c14c2b9e487e49e06ac8ea355ab67f91632f076e6876059aa8db6812
TypeScript
2,731
127
import { Overlay, OverlayRef } from "@angular/cdk/overlay" import { TemplatePortal } from "@angular/cdk/portal" import { Injectable, TemplateRef, ViewContainerRef } from "@angular/core" import { ReplaySubject, Subject, Subscription } from "rxjs" import { mutateDeepMerge } from "src/util/fn" import { RegDeregController ...
b060c750dc5bec7c2a8ab6e2c9453d8e69fce3157305618df95767a17b13f593
TypeScript
2,731
88
/** * @file Sphere Geometry Buffer * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3, Matrix4 } from 'three'; import GeometryBuffer from './geometry-buffer'; import { SphereBufferData } from './sphere-buffer'; import { BufferParameters } from './buffer'; export declare const Sphe...
0bb182087eee794abc919d6c02f298a42df0650016e519d79d0424a1c5009765
TypeScript
2,733
61
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1e971810624b89889dc19d0c495648aaf0a7820223e9e5e9e9bade3676d27068
TypeScript
2,733
85
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
22762646bfada7eac2305687b045377a68d981098493084f0b718242f7ef7f5d
TypeScript
2,734
90
import { info } from "../Common/Utils"; import type { BaseAudioDecoder } from "./BaseAudioDecoder"; import { WebAudioDecoder } from "./WebAudioDecoder"; import { AudioDecoder } from "./AudioDecoder"; import { WasmStreamingDecoder } from "./WasmStreamingDecoder"; export type DecoderCache = Map<string, BaseAudioDecoder>...
a9cb4ed97e614599ee80cc1cebe0e08d56a8d5a9d926152de22dbe9e0088ead9
TypeScript
2,736
91
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
91b7da0efcf137b5186d25c3ed53d7682e84633bfc6c59739116a9bf8d22be8e
TypeScript
2,740
70
import { describe, it, expect } from "bun:test"; import { normalizeColumnActionErrors } from "../column-action-errors"; describe("normalizeColumnActionErrors", () => { it("prefers field-level validation messages over the generic detail label", () => { const errors = normalizeColumnActionErrors({ response: ...
a7c79aed88a33207b39fa3159435f035937a51775aabc14774023f3597772d66
TypeScript
2,741
91
/** * @file Tetrahedron Geometry Buffer * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3, Matrix4 } from 'three'; import GeometryBuffer from './geometry-buffer'; import { BufferData } from './buffer'; export interface TorusBufferData extends BufferData { majorAxis: Float32Ar...
450a70ebecbe8e00c83d42386e821cfd9afa8ef699e91013540c8dd3c4ba50df
TypeScript
2,747
82
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
6966aac3ae0241a903fbcbb495ebdb11cf46094609d97aacf8cf834e6960fe5c
TypeScript
2,748
94
/** * @file Vector Buffer * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ // @ts-ignore: unused import Vector3, Matrix4 required for declaration only import { Color, Matrix4, Vector3 } from 'three' import '../shader/Line.vert' import '../shader/Line.frag' import { uniformArray3 } from '../ma...
cc94189140864d66341bcca59f38c361f8cd0fd9602e779692f53d4c54325c0c
TypeScript
2,752
58
import { describe, expect, it } from "bun:test"; import { resolveVideoAppendOriginIdFromGhost } from "../utils"; // Open polyline A -> B -> C -> D, connectivity expressed via prevPointId (the same // topology the renderer uses). A is the head (no prevPointId), D is the tail. function makeChain() { return [ { id:...
e6772c954499c21a5776ec7860ea8d19e47d960813379398b5716964ca8e231f
TypeScript
2,754
73
// eslint-disable-next-line no-unused-vars import StructureView from '../../src/structure/structure-view' import StringStreamer from '../../src/streamer/string-streamer' import PdbParser from '../../src/parser/pdb-parser' import GroParser from '../../src/parser/gro-parser' import CifParser from '../../src/parser/cif-p...
104f290f892ff3f67c86bc6fbfd0562209e20478fd97040eea8ce6e9023a62a5
TypeScript
2,755
84
/** * Label Studio Open Source - State Registry * * This file registers core LSO project states with the state registry from app-common. * * The base registry (imported from @humansignal/app-common) provides: * - StateRegistry class and singleton instance * - StateType enum (INITIAL, IN_PROGRESS, ATTENTION, TERM...
46929d17f18c99ea7a57c179142d7e5d6113898d79854b1aa7147ae59cd50903
TypeScript
2,755
86
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
6e5472127b06509c254af1c2a26d2053444023988676b576e98aa2ba104fbeb3
TypeScript
2,756
99
/* eslint-disable camelcase */ /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Vers...
4744c3d585e1d4814faf8b6d9e4fe1690c8a806b98b626830d0891921ccc7532
TypeScript
2,762
78
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
5beecb2cf6c8fbe3d26faf67bce41dd70ba832339f5dc3f0d4cf451592ea7d6a
TypeScript
2,763
92
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
7d871fcc177f1304060506ef33197e4f2490504f1d4041ae5cdfd9984b28293c
TypeScript
2,775
103
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
c3f15f7ba3a07f4f9c8afe56c3b9a89bcfd9431c62a468718ceea49552b3fb05
TypeScript
2,777
62
/** * @file Globals * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import Registry from './utils/registry'; import _ColormakerRegistry from './color/colormaker-registry'; import _ParserRegistry from './parser/parser-registry'; import _WorkerRegistry from './worker/worker-registry'; import { Me...
b014e1eed123f9bf153304620d80e890e8e5269b2676a4bb8f7e856c9c660b6e
TypeScript
2,778
82
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
9b336d2f32b42e70233d47cae76731e7b04903380c07aea913e1276cd72559a2
TypeScript
2,781
78
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts" // @generated from file dbtlabs/proto/public/v1/events/fusion/log/compiled.proto (package v1.public.events.fusion.log, syntax proto3) /* eslint-disable */ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import { fileDesc, message...
11f27594d58da7a49be66a62fa9ccf1a1bab450565207935f9d5f38c8555ac14
TypeScript
2,782
122
import { Component, ElementRef, EventEmitter, Inject, Input, Optional, TemplateRef, ViewChild } from "@angular/core"; import { MAT_DIALOG_DATA } from "src/sharedModules/angularMaterial.exports"; import { IFileInputConfig, TFileInputEvent } from "../type"; const FILEINPUT_DEFAULT_LABEL = 'File input' @Component({ se...
3f07695cdf1f921358888f29acf9d211afdbf676fd8eb12f6030304ee1958c3d
TypeScript
2,789
88
/** * @file Cylinder Impostor Buffer * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ // @ts-ignore: unused import Vector3 required for declaration only import { Matrix4, Vector3 } from 'three' import '../shader/CylinderImpostor.vert' import '../shader/CylinderImpostor.frag' import MappedAlig...
4831f47375120ee311609f054eb4ea4e1ce47332dbaa8fe198a38f5f04db4e33
TypeScript
2,790
91
/** * @file Key Behavior * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { SupportsPassiveEventHandler } from '../globals' import Stage from './stage' import Viewer from '../viewer/viewer' import KeyControls from '../controls/key-controls' const passive = SupportsPassiveEventHandler ? ...
5f7199922e96712980a04eb1641459fe29b3a66b06d6105ecf4cc53c71df3754
TypeScript
2,797
96
/** * Minimal arrow-key select prompt for the `mlflow-codex` setup CLI. * * No runtime dependency on `inquirer`/`prompts`: we manage raw-mode stdin * ourselves so the bundled binary stays small, matching the policy in * `ui.ts`. Falls back to the default option when stdin is not a TTY so * piped input (CI, `echo ...
3ca51218c7df8d24f80da6edfc57a109f5855d3b66633b2d0196e8d121e15e9e
TypeScript
2,799
114
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
cadd1166c3b720e18c94bc0e73a202141b57d006dc96a3a4f13c958368c40336
TypeScript
2,799
78
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
c9817ab4f5791743298e31ca0406ab95f8e3bfb7711e5442e5b5311447fa0c91
TypeScript
2,800
129
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
8030c3778304ff80b114bd8a9372460cfc04125d3ce107e0e6f93817578e49ad
TypeScript
2,802
92
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
b0a561865cecb373ef0d8c452d2ca190a43b7d0a540c98b8bca7576176fbb644
TypeScript
2,802
93
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
c70c2da79ad77b3eb70153b3c0116e7f1494f03a64de7f092bb97ab048e2ab8b
TypeScript
2,805
96
/** * Minimal arrow-key select prompt for the `mlflow-qwen-code` setup CLI. * * No runtime dependency on `inquirer`/`prompts`: we manage raw-mode stdin * ourselves so the bundled binary stays small, matching the policy in * `ui.ts`. Falls back to the default option when stdin is not a TTY so * piped input (CI, `e...
0b928afe297fbb508248f167cd32f433a57c6cfa324733794f6a54d2b56bd04b
TypeScript
2,811
92
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
ae557f996366d14e0cd9d40d983d9ca53caf9f0eebb3c25055568a7a8e1eb5a7
TypeScript
2,819
78
import { renderHook, act } from "@testing-library/react"; import { useRecentFilters } from "./useRecentFilters"; const projectId = 99; const storageKey = `dm:recentFilterFields:${projectId}`; describe("useRecentFilters", () => { beforeEach(() => { localStorage.clear(); }); it("exposes recentEntries with ra...
e150f4dfe129185a661b6ca46043eef0a523f9cfca82e4488e984896b5e30b8c
TypeScript
2,820
100
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
f53e5576f5beee2f0e33f8a1ff5827bb7bce593aafbb6600007d2b74e72c8ef9
TypeScript
2,824
83
// Type definitions for pako 1.0.4 // Project: https://github.com/nodeca/pako // Definitions by: Denis Cappellin <https://github.com/cappellin>, Caleb Eggensperger <https://github.com/calebegg> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = Pako; export as namespace pako; declare namespace...
129b873c550ca8645819e5c0e17e7363c854043e166f55f1cff001aea2202fb2
TypeScript
2,825
84
import { useEffect } from 'react'; import { useLineageStore } from '../stores/lineageStore'; import { useLineageData } from './useLineageData'; // The data layer (LineageArgs.depth) only supports one symmetric depth today, not // independent upstream/downstream. "max" also isn't real yet -- there's no bare-plus // (u...
813f3b71572ca702a68fe938f3b685f678630d6cf4f6b521ef0bda108eb53a5d
TypeScript
2,825
78
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
38cb768e4a0f401d98ba7ba66d4e941fa3c69d992ba6397ab048096dd6b693e0
TypeScript
2,829
91
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
c8c70e46faa0d15291b4ae940438626e83aee5d0e4538dac2457c2d1444a0cef
TypeScript
2,830
85
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
0cdeb0e2f86ee3163f611be069d9d1049a135a555bdbce4066aa3954977b7d80
TypeScript
2,835
71
import { describe, expect, it } from "bun:test"; import { filtersToPickerGroups } from "./ColumnPicker"; function makeFilter(id: string, title: string, opts: { parentTitle?: string; alias?: string } = {}) { const parent = opts.parentTitle ? { key: `parent:${opts.parentTitle}`, title: opts.parentTitle } : undefined; ...
7a7c45c07197c7715e1d9c6c1a423ad949c3918dffe59e9b82b2c81a8bc6314b
TypeScript
2,837
93
import { renderHook, waitFor } from '@testing-library/react'; import { afterEach, describe, expect, it, vi } from 'vitest'; import { type SiteBootstrap, SUPPORTED_BOOTSTRAP_SCHEMA_VERSION, } from '../lib/siteBootstrap'; import { createQueryWrapper } from '../test/renderWithProviders'; import type { Identity } from...
7cdf90fdde9d4f13b4d442efada5356fc4223558d769ddd8b4630c89f7673e05
TypeScript
2,837
93
import { LabelStudio } from "@humansignal/frontend-test/helpers/LSF"; import { imageData, imageWithBothToolsConfig, imageWithBrushConfig, imageWithRectanglesConfig, } from "../../data/image_segmentation/initial_tool"; describe("Image - Initial tool", () => { it("should be set from the first avaliable tool in...
12aea7c2d9ee8634ec615ef893a3b0b6783f09b0abb5ec17c1f828d86c79937b
TypeScript
2,838
72
import { artifactUriToLocalPath, getArtifactUriScheme, isLocalArtifactUri, toAbsoluteLocalPath, } from '../../../src/core/utils/artifact_uri'; describe('artifact_uri helpers', () => { describe('getArtifactUriScheme', () => { it('returns the scheme for URIs that have one', () => { expect(getArtifact...
3a9efc6b2cac0e38e9846d8b16aad8edafdca85013f4b44ef6d83c4aee2b408f
TypeScript
2,838
68
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
e8697b510142d68e1d1eaa9619ef42de91592f04bd2e6a854fc679c788606f97
TypeScript
2,842
71
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
4b56ad04b8b342a212200395220a032b6891ab9d94d1a8df81b7accf3da5f8dd
TypeScript
2,843
85
import { LabelStudio } from "@humansignal/frontend-test/helpers/LSF"; import { FF_SIMPLE_INIT } from "libs/editor/src/utils/feature-flags"; describe("Label Studio UI init", () => { it("Initialize empty Label Studio", () => { LabelStudio.init({ config: "<View></View>", task: { annotations: [],...
dedf28fcaf13578a7c7e05764d42aa2531e8c0f829f1b38e297196b4c927c393
TypeScript
2,846
70
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
fa7a29989d822b9f7c57f3d0f710e0fb9ccaf051ffb5adf5faeec066407cfa24
TypeScript
2,846
82
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
9d944e71e904a0298c31bf025b54dd8055544ea79e5ce72587ebeec49042efa5
TypeScript
2,847
74
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
aa1fc06cece11e6fbbe7cf3f28e0ed8db8c0de3c0ebe13b65a1aa8cc2b9be40e
TypeScript
2,847
75
/** * @file Axes Representation * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { AxesPicker } from '../utils/picker'; import StructureRepresentation, { StructureRepresentationParameters, StructureRepresentationData } from './structure-representation'; import SphereBuffer from '../buffer...
ab3b7dc97cdff5fa19496ef64906cf94c0610d1c3b6d63cb98e6ee945917f667
TypeScript
2,847
90
/** * @file Store * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { TypedArrayString } from '../utils'; export declare type StoreField = [string, number, TypedArrayString]; /** * Store base class * @interface */ export default class Store { [k: string]: any; length: number; ...
f0594ecdbace8796137edddd737ecdfa293b3559c23fe1e2cefc4f5e102e523a
TypeScript
2,847
96
import { ChangeDetectionStrategy, Component, EventEmitter, OnDestroy, Output } from "@angular/core"; import { IViewer, TViewerEvent } from "../../viewer.interface"; import { NehubaMeshService } from "../mesh.service"; import { NehubaLayerControlService, SET_COLORMAP_OBS, SET_LAYER_VISIBILITY } from "../layerCtrl.servic...
5b216b97b58fdcbf21ff3b08a55a501b88cc4a32ba25c0aa831f2d4cd0b79c47
TypeScript
2,849
101
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
94464c8b8eb0dc525f8220368100c0e97feeb0b382a33e7647f7b8e8987791f5
TypeScript
2,849
65
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
2a0ffb1d019c35aad15e60e177af1092075b1976c9575902c7bb2cf6930a5964
TypeScript
2,853
84
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
78c7d919609f4671d669fec46417d28adbf70cd6da9c741c9d99351139012b17
TypeScript
2,856
87
declare namespace Cypress { interface Thresholdable { threshold?: number; } interface MatchImageSnapshotOptions { customDiffConfig?: any; customDiffDir?: string; customSnapshotsDir?: string; customSnapshotIdentifier?: string | ((parameters: any) => string); failureThreshold?: number; f...
84a1d3cf4621383e16af3acd6c51b15f44b8e60293e2f5153a807b00ac61461b
TypeScript
2,856
79
/** * @file Surface * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3, Box3, BufferGeometry, Group } from 'three'; import { AtomPicker, SurfacePicker } from '../utils/picker'; import { ColormakerParameters } from '../color/colormaker'; import { Structure, Volume } from '../ngl'; ...
f5fd25d6feb5bf771bf6f9879453a82fac01ef50b83386e3d8957377e13645a8
TypeScript
2,856
115
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
66df8bd895a22cb309688cb7b9fbc901f24738aee44fcaf595b241bd9ab670a6
TypeScript
2,857
76
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
0966ce410bdd57328c7ef15a198fcc522fa18dbb443da9384e8312f63c5e932a
TypeScript
2,859
94
// Renders the sticky PR-readiness comment. One comment per PR, identified by // MARKER, edited in place. import type { CommentVariant, TemplateIssue } from './types.ts'; export const MARKER = '<!-- pr-readiness-bot -->'; // Must match the label that exists in the repo (Settings → Labels): // "problem/bot-not-ready ...
76d052c5edf3e7c593a8e38df415bf051d14ff45b010a6b124b150e45863c8a0
TypeScript
2,860
83
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
8151e96746cca21cebdf9f1191893f08f65404091275769f7aba75aa9140ac3d
TypeScript
2,871
94
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
5a7a362102de96b79fa33851afacfb46b847289d41481e94c4243a15547cbc3a
TypeScript
2,877
90
import { readFile, stat } from "node:fs/promises"; import * as esbuild from "esbuild"; import type { Plugin } from "vite"; function pathLooksLikeLsoLibJs(id: string): boolean { const n = id.replace(/\\/g, "/"); if (!/\.js$/.test(n)) return false; if (n.includes("/node_modules/")) return false; // Must match an...
a550cf393486800e261301349971e3beec8e0cae5f7e99a3fc6945fa32ee70fc
TypeScript
2,879
84
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
e40ef5d8732a671e875e64331eb1f34c8c609370bd20ac52fe8ec2b9fd7bb7ab
TypeScript
2,880
70
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
18a8e8bbf17f36a5e5edfd1c6202b2b4ac4673ded4fa30de41767a04ab62ddfb
TypeScript
2,881
100
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
4d1abf58e15e8fc93298c570adcdb23116aac3dae35ef4e71682844083abc0c4
TypeScript
2,882
68
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
6d7b2550d03dba55ff99d4eb1c4edd135d08b0007d6cf38a8074a4e72a610b60
TypeScript
2,885
96
/** * @file Tube Mesh Buffer * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3, Matrix4 } from 'three'; import MeshBuffer from './mesh-buffer'; import { BufferData, BufferParameters } from './buffer'; export interface TubeMeshBufferData extends BufferData { binormal: Float32A...
d81023ce704d32d8d3751d3d7cfed7812a098d06fbb8fb12cb96ddb5f3ca5acb
TypeScript
2,885
135
import { ClickInterceptorService } from "./glue" import { getRandomHex } from 'common/util' const mockActionOnSpyReturnVal0 = { id: getRandomHex(), matDialogRef: { componentInstance: { untouchedIndex: 0 } } } const mockActionOnSpyReturnVal1 = { id: getRandomHex(), matDialogRef: { componen...
43609972b00e6c9a68b741cd1b2218050b8af1c33b689c65ee02cba857aab84a
TypeScript
2,887
68
import { LabelStudio } from "@humansignal/frontend-test/helpers/LSF"; import { listObjectTableConfig, listObjectTableData, listPrimitiveTableConfig, listPrimitiveTableData, objectTableConfig, objectTableData, } from "../../data/table/table"; describe("Table", () => { it("sorts key-value object rows by ke...
ba4fee9af2bf0246add25776cac780a08ed77255b7748a44c20063d2b073bcfe
TypeScript
2,887
111
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
4f4503dfbb07e12ac038d9684f0f82b4c22092fd1632c473af4fb9ed9acff5e2
TypeScript
2,890
117
export const config = ` <View> <Audio name="audio" value="$url" hotkey="space" sync="text" /> <Header value="Sentiment"/> <ParagraphLabels name="label" toName="text"> <Label value="General: Positive" background="#00ff00"/> <Label value="General: Negative" background="#ff0000"/> <Label value="Company: ...
0f2e02aeb2f1a86b90df6950fad77ee2f3a890f1dfd3ae88f6aa99dcd5201f39
TypeScript
2,892
77
import type { WindowFunctionType } from "./WindowFunctions"; import type { ColorScheme } from "./ColorMapper"; export const SPECTROGRAM_DEFAULTS = { FFT_SAMPLES: 512, MEL_BANDS: 64, WINDOWING_FUNCTION: "blackman" as WindowFunctionType, COLOR_SCHEME: "viridis" as ColorScheme, MIN_DB: -80, MAX_DB: -10, } as ...
257034c95cd7234b47758d8a2a269ca9035a80f09836ec6c36af0f8b9ec4b20b
TypeScript
2,897
80
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
a702bfc5ba1a033ce28acf7c2fb344093a1543188a07fcc43d66be81119e6382
TypeScript
2,898
89
/** * CLI dispatcher for `@mlflow/codex`. * * Installed as the `mlflow-codex` bin. Subcommands: * - `setup` → registers the notify hook and writes mlflow-tracing.json * - `notify-hook` → runs the Codex notify handler (Codex appends the JSON * payload as the final argv entry) * - `...
194c9f1dae69dbdcb308b5168d5e1554ad2e70b2f7552b2e6c276b128c9ddb3b
TypeScript
2,899
78
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
6227d034108eddc7ee61ea4b2631fa789b25b7a7d4c8ada10e80c261f0bace8f
TypeScript
2,900
117
/** * @file Key Controls * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { KeyActionPresets, KeyActionCallback } from './key-actions' import Stage from '../stage/stage' export type KeyControlPreset = keyof typeof KeyActionPresets export interface KeyControlsParams { preset?: KeyContr...
f7f2772c2694ed0eb77f9e9cfda97b13965d18c348116d8d3f6dc8cecc8d158a
TypeScript
2,900
91
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
e3b1578fa26d1e0adcb08a8b078d1953f89b10af2f4483227500121373828578
TypeScript
2,901
92
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
aa702dc2bc2114963ad5f5636b3ad9b40fe4a8c713448b06a6ffd32f7699e2b1
TypeScript
2,905
97
import { afterEach, beforeEach, describe, expect, it, mock } from "bun:test"; import { APIProxy } from "./index"; describe("APIProxy path-parameter URL encoding", () => { const originalFetch = globalThis.fetch; let recordedUrls: string[]; beforeEach(() => { recordedUrls = []; globalThis.fetch = mock(asy...
906f990ab4ac4e4de1cb475b242dc47d251e799eccc8ef4c93abcb05a6952acc
TypeScript
2,909
67
import { LIST_MEMBERSHIP_OPS, supportsListMembership } from "./list-membership"; describe("LIST_MEMBERSHIP_OPS", () => { it("contains in_list and not_in_list", () => { expect(LIST_MEMBERSHIP_OPS.has("in_list")).toBe(true); expect(LIST_MEMBERSHIP_OPS.has("not_in_list")).toBe(true); }); it("does not conta...
19c5755f0acfd07fa6c926a85f7d3149479ab57d5702542129d35f7fd89a0ff7
TypeScript
2,911
76
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...