sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 17k | content stringlengths 1 200k |
|---|---|---|---|---|
fd5f6742c699b631120341a91767125194a3d58c886fedd24d0fc7607cc9590f | TypeScript | 11,433 | 486 | /**
* @file Picker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3 } from 'three'
import { PickerRegistry } from '../globals'
import { calculateMeanVector3 } from '../math/vector-utils'
import Selection from '../selection/selection'
import {
ArrowPrimitive, BoxPrimitive, Co... |
cde13f2fd78e3729b8574cee7324dda67d791d1f3fedbd9514a335fe5f66ef91 | TypeScript | 11,445 | 339 | /**
* 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... |
8ee1ed532310b59279c557cea50fef51131456f66751e855f00e5cfc01cb17fa | TypeScript | 11,493 | 368 | /**
* 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... |
17494aa1697300c1418702307ddccf9d5d1fce6a725c971f11c20fc949b485fc | TypeScript | 11,496 | 278 | /**
* DuckDB-WASM over the site's parquet artifacts.
*
* The engine is fetched from a CDN at runtime and is never bundled: it is ~6.8 MB
* brotli, it is versioned independently of this app, and jsDelivr serves it
* `immutable` so it is cached once per visitor. Loading is lazy — nothing here
* touches the network ... |
7d3f5c16af69ed8f0b4b1132039cb5048ea59c71ff97aaaa15c593083b482383 | TypeScript | 11,528 | 392 | /**
* @file Dot Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { ExtensionFragDepth } from '../globals'
import { defaults } from '../utils'
import Representation, { RepresentationParameters } from './representation'
import Volume from '../surface/volume'
import FilteredV... |
38411b120b6895567b3d91cb0521348669c32f13a1a86609a2f072078d683c50 | TypeScript | 11,536 | 277 | /**
* 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... |
ceb303bd857d41ea19052d9866c73661c7b27932ce022297895bf866b7cc1ed4 | TypeScript | 11,547 | 294 | import * as childProcess from 'node:child_process';
import { existsSync } from 'fs';
import { mkdtemp, readFile, rm, unlink, writeFile } from 'fs/promises';
import { createServer, Server } from 'net';
import { tmpdir } from 'os';
import { join } from 'path';
import {
ensureDaemon,
isDaemonAlive,
resolveDaemonEntr... |
60fc68d536cebf2a2a68372fce084ce9d8b751f7a149a091cf0379e5fc148202 | TypeScript | 11,561 | 285 | /**
* Unit tests for Loader (lib/AudioUltra/Visual/Loader.ts)
*/
import { Loader } from "../Loader";
describe("Loader", () => {
beforeEach(() => {
if (!customElements.get("loading-progress-bar")) {
customElements.define("loading-progress-bar", Loader);
}
spyOn(window, "requestAnimationFrame").moc... |
d1108f4ed4c3238420231884ccbfda3cd2a1a1e2ac55412d49bdafa375ad6f09 | TypeScript | 11,568 | 315 | /**
* 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... |
427e842affab6eb71ebcefc08a637280ce78ab66855ad699c299ff00fa4e11fa | TypeScript | 11,673 | 413 | import { IAnnotationTools, IAnnotationGeometry, TAnnotationEvent, IAnnotationEvents, AbsToolClass, INgAnnotationTypes, TToolType, TBaseAnnotationGeomtrySpec, TSandsPolyLine, getCoord, TCallbackFunction } from "./type";
import { Point, TPointJsonSpec } from './point'
import { Directive, OnDestroy } from "@angular/core";... |
0068c08cf0c469a4d6c2d1dfd6334cc36845595690765cf6364413143bec3460 | TypeScript | 11,722 | 404 | /**
* @file Structure Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { ExtensionFragDepth, Mobile } from '../globals'
import { defaults } from '../utils'
import { RepresentationParameters, default as Representation } from './representation'
import Selection from '../sele... |
3700d2b7eee3ca1862d0429a09a0bc65b9a586d190fb5b45b56e8713e49387d1 | TypeScript | 11,725 | 327 | import { getCurrentTheme } from "@humansignal/ui";
import { rgba, type RgbaColorArray } from "../Common/Color";
import type { Padding } from "../Common/Style";
import { defaults, toPrecision } from "../Common/Utils";
import type { Layer } from "../Visual/Layer";
import type { Visualizer } from "../Visual/Visualizer";
i... |
a82f0094108883416e27bd27eeb5c657097e53b58ddd2e3cd97d918e90da0734 | TypeScript | 11,727 | 422 | /**
* 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... |
973c691051cabc86d5619e1b848a9d7b6f2c789656fdbfb9056eb250ddd9a26e | TypeScript | 11,733 | 337 | import type { Layer } from "../Layer";
import type { Renderer, RenderContext } from "./Renderer";
import type { Interactive } from "../../Interaction/Interactive";
export interface ResizeRendererConfig {
borderColor?: string;
borderWidth?: number;
borderStyle?: "solid" | "dashed" | "dotted";
opacity?: number;
... |
8bef8fe4f112f035a53f9697c596b453b213d417528df415fc640fa63e0f60e3 | TypeScript | 11,755 | 379 | /**
* @file Obj Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { BufferGeometry, BufferAttribute } from 'three'
import { ParserRegistry } from '../globals'
import SurfaceParser from './surface-parser'
export interface _OBJLoader {
regexp: {[k: string]: RegExp}
}
interface _... |
1cb5d4455eaad3aafbe774cc7afd917d4dfb4191be422f2889db2628c7fd043a | TypeScript | 11,760 | 426 | /**
* 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... |
39e76277a29f6e1b4a0d10a2f2686945c870c12ebc4e7bd0cb4da6ff4ae3b893 | TypeScript | 11,767 | 259 | /**
* @file Shape
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Box3, Vector3, Color } from 'three';
import Buffer from '../buffer/buffer';
import { TextBufferParameters } from '../buffer/text-buffer';
export declare const ShapeDefaultParameters: {
aspectRatio: number;
sphere... |
62a242bf4791a972b9c973610dc80a7c73261f3b8480ff295e6146b194c20866 | TypeScript | 11,774 | 412 | /**
* 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... |
d344c0c646a2d4967dc2941613b79dadac99bc2730d4f0c946f6027753892312 | TypeScript | 11,782 | 324 | /**
* Main tracedAnthropic wrapper function for MLflow tracing integration
*/
import {
startSpan,
getCurrentActiveSpan,
SpanAttributeKey,
SpanType,
SpanStatusCode,
TokenUsage,
LiveSpan,
withSpan,
} from '@mlflow/core';
const SUPPORTED_MODULES = ['Messages'];
const SUPPORTED_METHODS = ['create', 'str... |
9462d0dc2ded123bd42c465be2f59d32e4463777a1934753106039f74850d628 | TypeScript | 11,865 | 411 | /**
* 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... |
17f1c6458301bdc3219d9ba5a7bdf98407b9c7b65607a1a16301dd1a413a8151 | TypeScript | 11,877 | 332 | /**
* 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... |
e438db06e5a9c50eb9edf5a861d5bfd26dd128587c9a7ec5f454699716a10c8e | TypeScript | 11,942 | 462 | /**
* 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... |
462eb1db3d8337fef7857e5ff2ab6953d4a28baf6f82509edc529c994cb9d114 | TypeScript | 12,000 | 314 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/events/agent_interaction.proto (package v1.public.events.agent_interaction, syntax proto3)
/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, me... |
959047ae79008c356c9fdfcbbeec15faa2119ea109bd4eff3993810676c901e3 | TypeScript | 12,001 | 395 | /**
* 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... |
1cbfc0cd72804f11d677ca96210bf98753dfd5a0fce066308a608149fdd553ac | TypeScript | 12,073 | 402 | /**
* 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... |
edda86ac9b1f1b6f0a63f69a507de2dcb0b56b5680cff6dfd78fafe0ad8f752a | TypeScript | 12,087 | 395 | /**
* 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... |
9801f0c3fb970f3bdf842a77ef35151334d9b3dfed7841269a45af8185aa63f1 | TypeScript | 12,111 | 342 | /**
* Per-resource-type detail queries.
*
* `fetchAsset` was routing every type through `fromNodeDetail`, the generic
* fallback the REST source kept for types with no endpoint of their own. That
* rendered a model with a source's worth of fields — no columns, no materialization,
* no contract. This routes each t... |
4388656d6e027a49a3b2269d68709a3a7ef187022692215f92d9ef626efce994 | TypeScript | 12,149 | 412 | /**
* 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... |
2d7ac9c76ffa102c4016a026968afa4694acbde0256e23bd1025d4af1b7fdfa7 | TypeScript | 12,188 | 411 | /**
* 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... |
4eeeba854b7cdf117d6df897aef30df27d0fb56de3efb5438f85fb2ca27654eb | TypeScript | 12,214 | 300 | import type { KonvaEventObject } from "konva/lib/Node";
import type { EventHandlerProps } from "./types";
import { HIT_RADIUS } from "../constants";
import { isPointInHitRadius, stageToImageCoordinates } from "./utils";
import { closePathBetweenFirstAndLast } from "./drawing";
import { VectorSelectionTracker } from "..... |
18e0d01aea76324fff1f76ee08bcee4c952eab33c29f6b87fd591380d65c503d | TypeScript | 12,223 | 381 | /**
* State Registry System for Label Studio
*
* This module provides an extensible state management system that allows
* Label Studio Enterprise to extend state definitions without modifying base code.
*
* Instead of mapping states directly to colors (CREATED → "grey"), we use semantic
* types that represent me... |
287394f076cc5462de7d836cf364952b7ee344731aa0fb61ab8a2d8928192c73 | TypeScript | 12,239 | 416 | /**
* 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... |
7c089f0b02405e53d4831743ceca25272de60413e36ba43bfdda2d9489b241c8 | TypeScript | 12,292 | 380 | /**
* MLflow tracing integration for Qwen Code.
*
* Parses the current turn from a Qwen Code JSONL transcript and emits an
* MLflow trace shaped like the opencode/Claude Code integration:
*
* AGENT qwen_code_conversation
* ├─ LLM llm_call (one per assistant record; messages + tool_calls in OpenAI chat form... |
6f5a6da0da540fa2939c4209b1585504593311567e2da6108d9d0d0db7348122 | TypeScript | 12,322 | 398 | import {
Component,
TemplateRef,
HostBinding,
Inject,
inject,
} from "@angular/core";
import { select, Store } from "@ngrx/store";
import { LoggingService } from "src/logging";
import { NehubaViewerUnit } from "../nehubaViewer/nehubaViewer.component";
import { Observable, Subject, combineLatest, concat, merge... |
302ca57238f26b1d2a935ffd66376bea3df1d34cd4d971174c0b0f7a05c3844a | TypeScript | 12,326 | 413 | /**
* @file Surface Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4, Vector3, Box3 } from 'three'
import { defaults } from '../utils'
import Representation, { RepresentationParameters } from './representation'
import Volume from '../surface/volume'
import Surfa... |
9ca9a8970ef32406436bbbeb6097204ea65711df5ee38ab7df1362ec42fc1b1d | TypeScript | 12,416 | 253 | /*
* 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 ... |
8ffced5dd91d6af26dd483ee4bc8f949584c69b2addf6958ea4681a3f7ed9c4a | TypeScript | 12,427 | 353 | /**
* @file Label Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { RepresentationRegistry, ColormakerRegistry } from '../globals'
import { defaults } from '../utils'
import LabelFactory, { LabelType } from '../utils/label-factory'
import RadiusFactory from '../utils/radi... |
d020dbfcbe5bcbe1d2b6db9edcd4d4470881f329e31443f2058dc6d3d2bc7db1 | TypeScript | 12,429 | 384 | /**
* Main tracedOpenAI wrapper function for MLflow tracing integration
*/
import { CompletionUsage } from 'openai/resources/index';
import { ResponseUsage } from 'openai/resources/responses/responses';
import { ChatCompletionChunk } from 'openai/resources/chat/completions';
import { Stream } from 'openai/streaming'... |
32cbd4b914864b130af491a039f6573e898f5c8a0412e763946eaa3996ec1245 | TypeScript | 12,450 | 384 | /**
* 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... |
a1db2c3d2c68d4149630c0f1ba07b38619b716d633260feab06b8ebd0c13777e | TypeScript | 12,515 | 702 | /*
* 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 ... |
7da1f3657fd89717eb2741340271f59ad313bddaaf4e63baf6037c69a5e0fd88 | TypeScript | 12,539 | 420 | /**
* 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... |
78e96e9b798c9cc162eaf699d85d391418d65119e7a0282dfcd40bacbac0bce0 | TypeScript | 12,556 | 316 | /**
* MST mixin that adds interactive-ML-prompt state to a control tag.
*
* Composed into control tags that can be driven by an ML backend (SAM et al).
* When the user selects a label in the control AND a capability binding is
* registered for the control's tag type AND the global auto-annotation
* toggle is on, ... |
e88356228e721407f61ea3568b73e37f14f05610fed3657605089599660de31d | TypeScript | 12,575 | 339 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/events/fusion/log/log.proto (package v1.public.events.fusion.log, syntax proto3)
/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc ... |
af3e0d2fe63419c5a9f6e9b88fd81cc37cd6af7104914db62db3192e89b26730 | TypeScript | 12,580 | 387 | import { emitEvent } from "@humansignal/core/telemetry";
type LabelingStore = {
project?: { id?: number | string | null };
task?: { id?: number | string | null };
reviewMode?: boolean;
hasInterface?: (name: string) => boolean;
};
type LabelingEntity = {
pk?: number | string | null;
id?: number | string | ... |
2d24be5ff42d54f28d2d4fe1614c3e0303f742d173e9c557775aa0a81203cdaa | TypeScript | 12,652 | 517 | /**
* @file IO Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*
* Adapted and converted to TypeScript from https://github.com/image-js/iobuffer
* MIT License, Copyright (c) 2015 Michaël Zasso
*/
import { TypedArray } from '../types'
const defaultByteLength = 1024 * 8
const charArray: ... |
05adbe9daceca7f23548f6162ac6d11b9e3b7aaa67711e1e5256ccbef478cdbd | TypeScript | 12,653 | 394 | /**
* @file Mmtf Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4 } from 'three'
import { Debug, Log, ParserRegistry } from '../globals'
import StructureParser from './structure-parser'
import {
buildUnitcellAssembly, calculateBondsBetween, calculateBondsWithin
} from... |
4ed02acef3c6b0ad1d35b4425c537bf375db74632ab9bdf44c223ad2baba78fd | TypeScript | 12,673 | 341 | import { ImageView, LabelStudio, Relations, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import {
fourRectanglesResult,
keypointLabelsLinkingConfig,
keypointLabelsLinkingResult,
simpleEllipseConfig,
simpleEllipseResult,
simpleImageData,
simplePointConfig,
simplePointResult,
simplePolygonCo... |
d652b0e64cc0fddd2562596db90ebb20e66ea36d2204403fa183e0fc77082a7a | TypeScript | 12,690 | 376 | /**
* @file Selection Test
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { binarySearchIndexOf, rangeInSortedArray } from '../utils'
import { kwd, AtomOnlyKeywords, ChainKeywords } from './selection-constants'
import AtomProxy from '../proxy/atom-proxy'
import ResidueProxy from '../p... |
3de9c2f9151d62a72a4e62cf54923a40279ab96505e1ca43050ed6393077ad23 | TypeScript | 12,721 | 552 | /**
* @file Residue Proxy
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { NumberArray } from '../types'
import { defaults } from '../utils'
import {
SecStrucHelix, SecStrucSheet, SecStrucTurn,
ProteinType, RnaType, DnaType, WaterType, IonType, SaccharideType,
CgProteinBack... |
94d38e3ab702b7b009d93d4abafd80810033192ca5ba21e2773a1deb9864c723 | TypeScript | 12,812 | 395 | /**
* @file Measurement Representation
* @author Fred Ludlow <fred.ludlow@gmail.com>
* @private
*/
// @ts-ignore: unused import Vector3, Matrix4 required for declaration only
import { Color, Vector3, Matrix4 } from 'three'
import Selection from '../selection/selection'
import { Browser } from '../globals'
import ... |
764cf96b27ba5ddd536275acb6fe407718d5b0e7bf4fb4e41d2525384c542372 | TypeScript | 12,813 | 300 | // Importing modules
import { Component } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
// Importing services
import { FlaskService } from '../total.service';
import { SSEService } from './sse.service';
// Importing interfaces
import { postDic } from '../postDic';
import { DropDownInf... |
aca27baf4b9b1870550aa4802c33eac4114cc5677778ffb261a5acfe61b18a61 | TypeScript | 12,842 | 529 | /**
* @file Array Utils
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3 } from 'three'
import { NumberArray } from '../types'
import { TwoPI } from './math-constants'
export function circularMean (array: NumberArray, max: number, stride = 1, offset = 0, indices?: NumberArray... |
f6b2c36bbff73f12973a94901be058794cd5c42b7c75b3a3db21446e73cbd4aa | TypeScript | 12,845 | 354 | /**
* SQL the browser runs against the site's parquet.
*
* Written against the **dbt information schema** — `dbt.models`, `dbt.seeds`,
* `dbt.docs_blocks`, `dbt_rt.freshness`, and the `dbt_internal.resources` union
* for the surfaces that span resource types. The relations themselves are defined
* by the `views.s... |
3c197c48ffb8ed9a43e3c2ea69e910b7d15fad4b15ea7a8f4cdd00407cf7dc87 | TypeScript | 12,886 | 479 | /**
* 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... |
d276b3ada863b82d2f9c7ac8fe0e927499d72a2a3ed84de1cf02272a7a6c3c7a | TypeScript | 12,953 | 430 | /**
* 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... |
11d41ab9db4284b1db6a699b8f6754a9f13c68e668ed1bfc5652bda611783b10 | TypeScript | 12,980 | 437 | export type ResourceType =
| 'model'
| 'seed'
| 'snapshot'
| 'source'
| 'exposure'
| 'metric'
| 'macro'
| 'semantic_model'
| 'test'
| 'unit_test'
| 'saved_query'
| 'function'
| 'group'
| 'analysis'
| 'operation';
export type Relation = { database: string; schema: string; identifier: strin... |
1f1232f112cd52999825fb2ae2c3be80967892e35fa0ec4d70dc1bf190389872 | TypeScript | 13,055 | 428 | import { TestBed, fakeAsync, tick, ComponentFixture } from "@angular/core/testing"
import { CommonModule } from "@angular/common"
import { NehubaViewerUnit, scanFn } from "./nehubaViewer.component"
import { LoggingModule, LoggingService } from "src/logging"
import { IMeshesToLoad, SET_MESHES_TO_LOAD } from "../constant... |
8e232ed26f06110cd5256624e40c94402a2e39d9dccb603c03741796b87bf93f | TypeScript | 13,059 | 404 | /**
* Global image cache that persists across annotation switches
* This prevents re-downloading the same images when switching between annotations on the same task
*/
/**
* Custom error class for image cache errors that should not be sent to Sentry
* These are expected errors (network issues, invalid images) not... |
323157e2dca8738bb02aea01df50256774c0c9bfaaf1b58828eeead7f0b256ce | TypeScript | 13,110 | 340 | /**
* One contract, every implementation of it.
*
* `duckdb/*.test.ts` asserts SQL; neither it nor any component test says what a
* `MetadataDataSource` *is*. This does, and runs the same assertions against every
* implementation.
*
* There are two, and the second matters more than it looks. `createFakeDataSourc... |
25ef647ea8985a4b3978d11df682663c38abcb8d9044b47bd089ff585eafc8af | TypeScript | 13,124 | 407 | import {
sanitizeOpenClawText,
sanitizeValue,
normalizeProvider,
toolKey,
evictOldest,
asNonEmptyString,
closePendingSpans,
attachTokenUsage,
resolveTraceOutputs,
attachTraceMetadata,
type ActiveTrace,
type PendingChild,
} from '../src/service';
type MockSpan = {
setAttribute: jest.Mock;
se... |
b58a6a4d8bb57e10904ef09f8a50e30092760f8379abff6889d6f220904da05e | TypeScript | 13,133 | 447 | /*
* 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 ... |
8c4b173c9e546f69b902dabef0a0057e295dffc9dac868dbee7e194ddf2f93ea | TypeScript | 13,168 | 290 | import {EMPTY, from, Observable, of} from 'rxjs';
import {catchError, filter, map, mergeMap, switchMap} from 'rxjs/operators';
import {NameFilterKeys} from '../../workflows/components/workflow-filters/workflow-filters';
import {uiUrl} from '../base';
import * as models from '../models';
import {Event, isWorkflowInClus... |
41630bf37418ef6921ee51e45c2243d6803fa5bd6acd6612460c6e1904fa779e | TypeScript | 13,185 | 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
*/
function hammingWeig... |
315515d130aca9e9064181e17ac0b7ae7a574c7c005cb03f581adeb153a1f991 | TypeScript | 13,189 | 455 | /**
* 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... |
8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea | TypeScript | 13,192 | 384 | /*! *****************************************************************************
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.... |
fce1972bf74cf0decdc7a3af499a5b115a652a8a5870b69ba2190fbd094d54f4 | TypeScript | 13,193 | 498 | /**
* 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... |
2c7d733db8c339ba740d9a08464dbc57d6ac500d8eaf48c34ffc16f20e1fe974 | TypeScript | 13,205 | 440 | import { Directive, ViewContainerRef, ComponentRef, Output, EventEmitter, ChangeDetectorRef, Injector, Optional, Inject, inject } from "@angular/core";
import { NehubaViewerUnit } from "../nehubaViewer/nehubaViewer.component";
import { Store, select } from "@ngrx/store";
import { Subscription, Observable, combineLatest... |
2ec0415e16980250533da4c6be3e2d034434f1ad4e09c1372d23abb84520eeea | TypeScript | 13,221 | 291 | /**
* Hook: attaches event listeners for click capture (add/subtract points),
* cursor management, and keyboard shortcuts on the annotation canvas.
*/
import { useEffect } from "react";
import { getNativeDimensions } from "./utils";
import type { InteractiveController } from "../controller";
import type { PredictBo... |
1a23a4ce4e4bd2bb0343c8ce3fdcf860e1aa4423667932909e46a512dfa65332 | TypeScript | 13,299 | 365 | /**
* 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... |
2a355c2449c581c618f544d2fde9418797fd5f9ea5d58150e55ea98c7a55d4cf | TypeScript | 13,308 | 452 | /**
* 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... |
d469c6ea1b135a5989c39da8b68c22fe33bf2fb01e5962d062286c5893522469 | TypeScript | 13,326 | 431 | /**
* 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... |
df41a49f3a75613525f1da672ca323d55c3c618c40a17a94a2c556d119f1fcb1 | TypeScript | 13,345 | 355 | import { ApiContext } from "@humansignal/core";
import { ToastProvider } from "@humansignal/ui";
import { act, renderHook, waitFor } from "@testing-library/react";
import { createElement, type PropsWithChildren } from "react";
import { effectiveHotkeys, mergeCustomHotkeys } from "../hotkeys/effectiveHotkeys";
import ty... |
8f55546a48346d18d41d9d75275e4c040b945e3aecf1f6e40431170b39653c8f | TypeScript | 13,352 | 415 | /**
* 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... |
0d6d20b87791f7744234ab3c2d1c458ce9c1f9da69566d4c631bc6aba0c6d977 | TypeScript | 13,354 | 355 | /**
* @file Stage
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3, Box3 } from 'three';
import { Signal } from 'signals';
import Counter from '../utils/counter';
import Viewer from '../viewer/viewer';
import { ImageParameters } from '../viewer/viewer-utils';
import MouseObserve... |
b14dbcc58db4cf5f388bb0dd52ead6c2b81064a4c3f27e9d5a9ca4acdbd19a06 | TypeScript | 13,383 | 385 | /**
* Unit tests for RichText domManager (tags/object/RichText/domManager.ts)
*/
import DomManager from "../domManager";
function makeSelectionMock(root: Node) {
const lastRanges: Range[] = [];
let currentRange: Range | null = null;
return {
rangeCount: 0,
getRangeAt(_i: number) {
return currentR... |
e87e0a312cf1a6c44febbf8dc1541ce44a729b127fe53ecaac8f426f1ec339a1 | TypeScript | 13,400 | 398 | /**
* 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... |
a26234a75208383352f71ee8964dba687d7fbd22b3a13ec7cec7a25853ce2208 | TypeScript | 13,478 | 324 | /**
* Canonical registry for all frontend feature flag constants (FF_*).
* Add new flags here only — do not define new constants in editor, datamanager,
* LSE, or app-level feature-flags files. Use via `import { ff } from "@humansignal/core"`.
* See `.agents/skills/feature-flags/SKILL.md`.
*/
//// LEGACY FLAGS //... |
dd2cddb260dc8e3b83e0a294f5eb4f27ec2cd8cee44eb27ca3be85224b011292 | TypeScript | 13,537 | 478 | /**
* 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... |
b5c37254657c571ac50bd57d2873c308623022bdf690b12fe45de6221d8277f5 | TypeScript | 13,599 | 421 | /*
* 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 ... |
0956aac6103f1c9df00f424e72022c752c9598d3946162d8c2974553ed308fd2 | TypeScript | 13,654 | 365 | import {
addEdge,
applyEdgeChanges,
applyNodeChanges,
type Edge,
type Node as ReactFlowNode,
type OnConnect,
type OnEdgesChange,
type OnNodesChange,
} from '@xyflow/react';
import { create } from 'zustand';
import { devtools } from 'zustand/middleware';
import { useShallow } from 'zustand/react/shallow'... |
62c9108954f2df0bcde5fda5481890d96a5f2efa1c8334622734a83262ccbf9e | TypeScript | 13,693 | 469 | /* eslint-disable react/sort-prop-types */
/**
* 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 L... |
038f2e0ed36d920e248967544571e9df0958530961ec835800e95a4f8c592448 | TypeScript | 13,744 | 430 | /**
* @file Angle Representation
* @author Fred Ludlow <fred.ludlow@gmail.com>
* @private
*/
import { Color } from 'three'
import { RepresentationRegistry } from '../globals'
import MeasurementRepresentation, { parseNestedAtoms, calcArcPoint, MeasurementRepresentationParameters, LabelDataField } from './measuremen... |
a0a1a64a29f888a064aae362f9dcdf441971cc7dfb7068660a47414ac33ce732 | TypeScript | 13,765 | 404 | import type { HrTime } from '@opentelemetry/api';
import {
convertNanoSecondsToHrTime,
convertHrTimeToNanoSeconds,
encodeSpanIdToBase64,
encodeTraceIdToBase64,
decodeIdFromBase64,
mapArgsToObject,
} from '../../../src/core/utils';
describe('utils', () => {
describe('convertNanoSecondsToHrTime', () => {
... |
841040403f6e9ce958373b4dfbca101208812eb49be66583aa57a5f0c9f89ce7 | TypeScript | 13,821 | 525 | import keymaster from "keymaster";
import { inject } from "mobx-react";
import { observer } from "mobx-react";
import { createElement, Fragment } from "react";
import { Tooltip } from "@humansignal/ui";
import Hint from "../components/Hint/Hint";
import { cn } from "../utils/bem";
import { isDefined, isMacOS } from "..... |
ebb47e02c4c59cc868a143c54d8f17e0172415e5bd3851e5383e2577622291df | TypeScript | 13,827 | 421 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/events/vortex.proto (package v1.events.vortex, syntax proto3)
/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc } from "@bufbuild/p... |
f2de05e44d84123eb995e001ecac6e1f3fe190c99ac8734400f8b6cbe7113364 | TypeScript | 13,844 | 398 | /**
* 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... |
9df30d4326321b251e4e8273a972ec16764f6f9382784c6a316e9e1ae2f5b69d | TypeScript | 13,868 | 462 | import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import type React from "react";
import type { TagAutocompleteOption, TagAutocompleteProps, NormalizedTagOption } from "./types";
import { normalizeOption } from "./types";
export interface UseTagAutocompleteReturn<T> {
// State
selectedValu... |
8c43b2ebe89cdcc5a600d0ccab1b6ed7d075c9fef6ee2c8b0c934c417f3cb204 | TypeScript | 13,875 | 400 | /**
* MLflow tracing integration for Codex CLI.
*
* Two integration modes:
*
* 1. **Notify hook** (recommended): Codex passes turn data as a JSON CLI arg
* after each agent turn. Simple, no transcript parsing needed.
* Configured via `notify` in config.toml.
*
* 2. **Transcript parsing**: Reads the rollo... |
fd6eba05b9db3e06c559fab00a59205183bb3f90616b462f31767549744f60e4 | TypeScript | 13,959 | 449 | /**
* 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... |
cb9d7a24fec5b8ae45ba1d7cf4c433a456f43f13a21b9862e3e427400a5f6186 | TypeScript | 14,016 | 545 | import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
import { apiReferencePrefix } from './docusaurusConfigUtils';
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be gene... |
6c42b753962d902097424369c240e5de15b795948ffdcc9d27885e7b973db569 | TypeScript | 14,036 | 416 | import { useCallback, useState, useEffect } from "react";
import { z } from "zod";
import { formatValidationErrors } from "../schemas";
import { getProviderConfig, providerRegistry } from "../providers";
import { coalesceSelectFieldValue, extractDefaultValues } from "../types/provider";
import type { FormState } from "... |
1444cce1e2bc08e280bb511196bc85e94d91936b8f4ca0ad9e7343c6cc3e3f55 | TypeScript | 14,039 | 497 | /* eslint camelcase: 0 */
/**
* 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... |
42e754b5508f17a9e9d375d45e7aa1a6f311cfe5d9dbe33f353a85dff9eabd5b | TypeScript | 14,062 | 526 | import { clamp, OFFSCREEN_CANVAS_SUPPORTED } from "../Common/Utils";
import { Events } from "../Common/Events";
import type { LayerGroup } from "./LayerGroup";
export type CanvasCompositeOperation =
| "source-over"
| "source-in"
| "source-out"
| "source-atop"
| "destination-over"
| "destination-in"
| "de... |
bc1708148c3802ad9e275105b97d9587a414b88fbaa7e2466bbb92daec5fca07 | TypeScript | 14,079 | 473 | /**
* 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... |
b5d53a7786b1652bbb235ddf9fbb0f750c9643f0037a2d5f2c97fee7e80a7abe | TypeScript | 14,129 | 461 | import { nanoid } from "nanoid";
import { rgba, type RgbaColorArray } from "../Common/Color";
import { Events } from "../Common/Events";
import { clamp, defaults, getCursorPositionX, getCursorTime, pixelsToTime } from "../Common/Utils";
import { CursorSymbol } from "../Cursor/Cursor";
import type { Layer } from "../Vis... |
ae9b52955cb36c5dc0d3b7cb31ad62430eac24e873517f43c0610bc918a9b60b | TypeScript | 14,164 | 499 | /**
* 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... |
da9b94afb0d2f62c4edc7a0ea7383d364a30fa6e3f281e5356bd8cb91465853c | TypeScript | 14,169 | 391 | import { cnb as cn } from "./bem";
describe("BEM utility (cn/cnb)", () => {
describe("Basic block", () => {
it("creates block class with toString()", () => {
expect(cn("button").toString()).toBe("ls-button");
});
it("creates block class with toClassName()", () => {
expect(cn("button").toClas... |
25b6fef7b39363b1eba0377bc40fd473277a2d62922d0edfb7246d8c9eaff045 | TypeScript | 14,182 | 529 | /**
* @file Volume
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3, Box3, Matrix3, Matrix4 } from 'three'
import { WorkerRegistry, ColormakerRegistry } from '../globals'
import { defaults } from '../utils'
import WorkerPool from '../worker/worker-pool'
import { VolumePicker }... |
1cafcf0443caf346c8157fb8765212843ece1db5516527dcec9163dde40cfab3 | TypeScript | 14,191 | 351 | /**
* 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... |
663efc1cd076a48820027e77fec604e3c3417cc2897c71961b1c0a074f719170 | TypeScript | 14,210 | 478 | // @ts-nocheck
/**
* 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
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.