sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 17k | content stringlengths 1 200k |
|---|---|---|---|---|
1cc19bc1642ce75c1bd9746dfea6847c8041890aa80caa2f604852d8d9d95861 | TypeScript | 8,481 | 257 | import fs from 'fs';
import os from 'os';
import path from 'path';
import { init, getConfig } from '../../src/core/config';
describe('Config', () => {
describe('init and getConfig', () => {
describe('environment variable resolution', () => {
afterEach(() => {
delete process.env.MLFLOW_TRACKING_URI;... |
7d3b24738df823e919499534b5c5405255893192996c63c57e8949f35ab74d75 | TypeScript | 8,491 | 294 | /**
* @file Axes Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Color, Vector3 } from 'three'
import { RepresentationRegistry } from '../globals'
import { defaults } from '../utils'
import { AxesPicker } from '../utils/picker'
import { uniformArray, uniformArray3 } fr... |
e7bccceb9c81976d8d173922fc339acb72a9ddf436e5f55d39c5dfdaa320a7c5 | TypeScript | 8,523 | 293 | /**
* 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... |
c21739290dba1245904a82c7ab0801fbeddda7ec86e86aa4af6dc6794756631b | TypeScript | 8,540 | 254 | /**
* 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... |
1c6be5e22764ea0a87bd51a73cb543752a3333cc57b9f00c4ea7e0575948f72d | TypeScript | 8,552 | 278 | /**
* 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... |
ad81ea38c2c775ae9bd067ab2b1620e2b0b8bd80c384d47ea927592868cee988 | TypeScript | 8,554 | 267 | import type { HrTime } from '@opentelemetry/api';
import { Span } from '../entities/span';
import { SpanAttributeKey } from '../constants';
import { TokenUsage } from '../entities/trace_info';
/**
* OpenTelemetry Typescript SDK uses a unique timestamp format `HrTime` to represent
* timestamps. This function converts... |
8b426820028a0a89817b5ca2a18a2e05598f32623ae458112ce509c167dc3990 | TypeScript | 8,560 | 271 | import { afterEach, beforeEach, describe, expect, it, type Mock, vi } from 'vitest';
import type { AnalyticsEvent, Identity } from '../types';
import {
type SiteBootstrap,
SUPPORTED_BOOTSTRAP_SCHEMA_VERSION,
} from './siteBootstrap';
import {
getTelemetryContext,
initTelemetry,
isTelemetryInitialized,
rese... |
6d0713a30aa0ca54cb88797e54fe91ff257a2e950c90eff70addaa6c20b65871 | TypeScript | 8,564 | 268 | /**
* 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... |
2a208391b1b3f5a721bb2fddf8841cc2d1afd723c2f56a3d0571527c3e225758 | TypeScript | 8,583 | 321 | /**
* 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... |
be917922aa6c2ef2d495ce9c1b8456a03c15097df35b385a77c75e921302dabb | TypeScript | 8,585 | 306 | /**
* 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... |
5125572b4ee6d4dcc5991bbadecfb21b139988cbbd5ea23849d8e46db45a737c | TypeScript | 8,589 | 258 | import { TestBed, fakeAsync, tick } from "@angular/core/testing"
import { DefaultUrlSerializer, NavigationEnd, Router } from "@angular/router"
import { BehaviorSubject, Subject, of } from "rxjs"
import { SAPI } from "src/atlasComponents/sapi"
import { RouterService } from "./router.service"
import { RouteStateTransform... |
2239a8146b3f5123c7ce3c11d1a0b29416604f9d61942f2fba69bafa807687fd | TypeScript | 8,617 | 289 | /**
* 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... |
7adabb6e5fa4c6ce31c4a86c71d33fbfd6f06fb146ad901ab316249b702acdd4 | TypeScript | 8,618 | 249 | // Mock node:fs/promises with a passthrough so individual tests can flip a
// single method (e.g. `rename`) to fail/inject without breaking the
// dozens of real fs operations the rest of the suite needs. Hoisted by
// ts-jest above the storage.ts import so storage's
// `import { ... } from 'node:fs/promises'` resolves... |
7b2d0efea19d1f2df553240e3c72e9f595e1c240fb5cb88ea3b1998b4e549a21 | TypeScript | 8,632 | 324 | /**
* 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... |
3558a7c493099555479eeaef0a9905e637b841ccbdaa62e4bf573ea325f20930 | TypeScript | 8,645 | 346 | /**
* 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... |
ad24810e8a3a12ad2e10a722790db150d1eb98572acd94bcceac4780308a56df | TypeScript | 8,674 | 231 | /**
* First-paint data, read without DuckDB.
*
* DuckDB-WASM is ~6.8 MB brotli on a cold cache. Waiting for it before rendering
* anything would be a visible regression against the REST app, so the shell,
* sidebar and home page come from a handful of small artifacts read with
* hyparquet — a ~88 KB pure-JS parqu... |
22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47 | TypeScript | 8,676 | 148 | /*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.... |
6499b509ac46c76c51c24df00cb19350f435d2cba2c90d8c17f0ba0c5d14e0f2 | TypeScript | 8,683 | 284 | import Loggable = Cypress.Loggable;
import Timeoutable = Cypress.Timeoutable;
import Thresholdable = Cypress.Thresholdable;
import CompareScreenshotOptions = Cypress.CompareScreenshotOptions;
import { addMatchImageSnapshotCommand } from "../../cypress-image-snapshot/command";
addMatchImageSnapshotCommand({
failureT... |
5016d14e326699a422bfb18908ef823a30a028d3936e0e76fa636dd5e24f1719 | TypeScript | 8,698 | 267 | import type { Layer } from "../Layer";
export interface RenderContext {
x: number; // relative [0,1]
y: number; // relative [0,1]
width: number; // relative [0,1]
height: number; // relative [0,1]
}
export interface LayerMProps {
isVisible: () => boolean;
width: () => number;
height: () => number;
}
fu... |
0be761f50bbc248900aafd7e77d9b0d3e38b0529ace38e244b40e6d0c1172e39 | TypeScript | 8,701 | 207 | /**
* 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... |
8f66503b737e52a02ab0735d16193d55ea1c6b794ac819ea8089535c0ddb329a | TypeScript | 8,706 | 223 | import { spawn } from 'child_process';
import { existsSync } from 'fs';
import { mkdtemp, readFile, rm, writeFile } from 'fs/promises';
import { tmpdir } from 'os';
import { join } from 'path';
import { readLockHolderPid, tryAcquirePidLock } from '../../../src/exporters/wal/pid_lock';
import { getPidLockPath } from '..... |
e5411478bc472046d3f28620e657777f5ac6f920a793d5bb7105fcb943e3bf2b | TypeScript | 8,719 | 279 | /**
* 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... |
5fe62517efc65f4f5ead5e2ce40d8c9b3ee916a6e6cf21637c8bc6099223ae8d | TypeScript | 8,720 | 260 | import { mkdtemp, readFile, rm } from 'node:fs/promises';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
import { pathToFileURL } from 'node:url';
import { MlflowArtifactsClient } from '../../../src/clients/artifacts/mlflow';
import { TraceInfo } from '../../../src/core/entities/trace_info';
import... |
a9a5338417ea96b04d6a89d75dda32bd9131dc9e22f5c4aadbb539f2515a61cd | TypeScript | 8,745 | 270 | /**
* 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... |
2531b097f863b0bb05be1da438bae66ea7f5e37707bfb4f46769ebc41afa8694 | TypeScript | 8,761 | 249 | import { ImageView, LabelStudio, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import { Hotkeys } from "@humansignal/frontend-test/helpers/LSF/Hotkeys";
import {
imageData,
imageToolsConfig,
imageToolsConfigWithRotate,
} from "../../data/image_segmentation/stage_interactions";
describe("Image Segmenta... |
47df86a7e388dbcb6eab15e4728eada2c87b70d52c25e92bb1113590f240c27c | TypeScript | 8,776 | 295 | /**
* @file Structure View
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3, Box3 } from 'three'
import { Debug, Log } from '../globals'
import Structure from './structure'
import Selection from '../selection/selection'
import BitArray from '../utils/bitarray'
import BondProx... |
a02b1dd5d1f44f8b6524e8a5a34866ca20fd417b4173252f2b556abb870fd6c2 | TypeScript | 8,776 | 285 | import { InjectionToken } from '@angular/core'
import { Observable, of, pipe } from 'rxjs'
import { filter, scan, shareReplay, take } from 'rxjs/operators'
import { NehubaViewerUnit } from './nehubaViewer/nehubaViewer.component'
import { userInterface } from 'src/state'
const flexContCmnCls = ['w-100', 'h-100', 'd-fle... |
7f11f467571d7d73c9a00a400c77293b8e8daa400cf9b476dcc6e319f89f346f | TypeScript | 8,781 | 316 | /**
* @file Valence Model
* @author Fred Ludlow <Fred.Ludlow@astx.com>
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
/**
* Reworked ValenceModel
*
* TODO:
* Ensure proper treatment of disorder/models. e.g. V257 N in 5vim
* Formal charge of 255 for SO4 anion (e.g. 5ghl)
* Have removed a lot ... |
38e67e28f3f11610008ccbe26aafe3fc647049061cfd8df82255fa9225be3bca | TypeScript | 8,782 | 529 | /*
* 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 ... |
a58c3c9afc64b444f165a8023d110325cc405f625e9672e8f40f169523d3bdbf | TypeScript | 8,793 | 296 | /**
* 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... |
cb8f8275ab3cfa79bb9794d30348a868f0254ad26f56a231770ecf0d645a501f | TypeScript | 8,800 | 344 |
import BitArray from '../../src/utils/bitarray'
describe('utils/bitarray', function () {
describe('BitArray', function () {
it('set basic', function () {
var ba = new BitArray(40)
expect(ba.get(10)).toBe(false)
ba.set(10)
expect(ba.get(10)).toBe(true)
ba.clear(10)
expect... |
62778b44f8de055fdc0936425b0e23c7d0c70445097f81f62d943abc7d5c0ecc | TypeScript | 8,805 | 207 | /**
* @file Sturucture Component
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Signal } from 'signals';
import { RingBuffer, SimpleDict } from '../utils';
import Component, { ComponentSignals } from './component';
import RepresentationCollection from './representation-collection';
im... |
03be67e289ecdd259b90c153ebeceb7c27b280d44c2b19979985c8f12adb6fc0 | TypeScript | 8,841 | 291 | /*
* 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 ... |
7c2af6c32c70d8454dde6a57db8556224f33fefd4b343c025e4a1fa2a8122c0d | TypeScript | 8,858 | 297 | import type { ReadableSpan } from '@opentelemetry/sdk-trace-base';
// MLflow span type constants (inline to avoid @mlflow/core dependency)
const SPAN_TYPE_LLM = 'LLM';
const SPAN_TYPE_TOOL = 'TOOL';
const SPAN_TYPE_EMBEDDING = 'EMBEDDING';
/**
* AI SDK operation IDs → MLflow span types.
*
* Mirrors the server-side... |
73e21be6712aa08260dadc174a9165bd0bb2414724b2ee7e8a3a9e64935157e8 | TypeScript | 8,864 | 253 | import type { KonvaEventObject } from "konva/lib/Node";
// String enums for union types
export enum ShapeType {
POLYGON = "polygon",
POLYLINE = "polyline",
}
export enum ExportFormat {
SIMPLE = "simple",
REGULAR = "regular",
}
export enum PathType {
MAIN = "main",
}
export enum PointType {
REGULAR = "re... |
0081a04b5674e5ff1703816d02f75b63cdb16f03e52b3f1c84ebbff91ffe9cd5 | TypeScript | 8,888 | 291 | /**
* 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... |
9d06465412ca4297e4c8337afbdb5e58cc6e5d02b380fa011896e32f04708a91 | TypeScript | 8,900 | 223 | /*
* 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 ... |
88d3500f3202fd1acc6201a7cefbc92e8458cc46a1f2c1d3c6590395dd4b7b53 | TypeScript | 8,910 | 203 | // Orchestration for the PR Readiness Helper workflow. A single entry point,
// run(), called from one actions/github-script step in pr-readiness.yaml:
// resolve the PR, gate the author, classify checks, check the description
// against the template, sync the not-ready label, and render the sticky
// comment (or the d... |
f2b29b6a835578d05606f006ea54bd484ee9a2751911bded9fbbf345a5ceb801 | TypeScript | 8,937 | 284 | /**
* @file Refine Contacts
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3 } from 'three'
import { Debug, Log } from '../../globals'
import { defaults } from '../../utils'
import Structure from '../../structure/structure'
import AtomProxy from '../../proxy/atom-proxy'
import... |
94411405f673e99884af1b2c5eb3c9cb91e874cbbd72fc29bc487e61cac1393c | TypeScript | 8,967 | 274 | /**
* `mlflow-qwen-code setup` — interactively register the Stop hook in the
* user's Qwen Code settings and write an MLflow tracing config alongside it.
*
* Writes:
* - `settings.json` — registers the `mlflow-qwen-code stop-hook` entry
* under `hooks.Stop`; leaves unrelated fields untouched.
* - `mlflow... |
12e1cd6e84d70896b0d285a87dc15a18e94d8c251dbc353d76af20d06bd7b213 | TypeScript | 8,968 | 270 | import type { TipsCollection } from "./types";
export const defaultTipsCollection: TipsCollection = {
projectCreation: [
{
title: "Did you know?",
content: "It’s easier to find the projects when you organize them into workspaces using Label Studio Enterprise.",
closable: true,
link: {
... |
290891deb40b2ef57442ba0322592b28ed4c62193c2df09e54cbaf78c3629963 | TypeScript | 8,978 | 296 | /**
* @file Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3, Matrix4, BufferGeometry, Uniform, Group, LineSegments, Points, Mesh, ShaderMaterial } from 'three';
import { GenericColor, TypedArray } from '../types';
import { ShaderDefines } from '../shader/shader-utils';
i... |
f796abfb67ec43caa7dfdf16876e5e1613a3a1bcba0db90dbce1eb0ed1ae7569 | TypeScript | 8,987 | 296 | /**
* 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... |
2caefe0e1ae1ccb4222f37e32064eca01a34d3d405ac99625d45f31e1ba5ab0e | TypeScript | 8,993 | 304 | /**
* 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... |
da30b8000e2e4ccc6e58ee6709e9415b876e1e6271d8fe297b63b867ec5044fa | TypeScript | 9,000 | 323 | import { LabelStudio, ImageView, Rating, ToolBar, Modals, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import {
simpleImageRatingConfig,
simpleImageData,
perTagRatingResult,
perTagMIGRatingConfig,
simpleMIGData,
requiredPerTagMIGRatingConfig,
RATING_REQUIRED_WARNING,
perRegionMIGRatingConfig... |
ed0213e7527f84e17ba23b2db53f196f658ad023692d645b15c373096a587bfc | TypeScript | 9,036 | 323 | import { LabelStudio, ImageView, ToolBar, Number, Modals, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import {
simpleImageNumberConfig,
simpleImageData,
perTagNumberResult,
perTagMIGNumberConfig,
simpleMIGData,
requiredPerTagMIGNumberConfig,
NUMBER_REQUIRED_WARNING,
perRegionMIGNumberConfig... |
be25647c71365171a5285eb98b248eed16d00b9660f4ce92cf34df9c6e8f52ac | TypeScript | 9,043 | 261 | /**
* 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... |
a78e4dffe4f6f39e426c6e204768d5a9da678e3f32901ca30ecab19bf8de9976 | TypeScript | 9,064 | 367 | /**
* 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... |
e239156560fed7488830cc9efa216bb78e06b0d4eb7008416bd0b9c2064d1072 | TypeScript | 9,079 | 274 | /**
* 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... |
bb07bc3c851366fa15ae9a0318786a27df641a993a14ae1c1550adcb51df2a24 | TypeScript | 9,081 | 310 | import { nanoid } from "nanoid";
import { rgba, type RgbaColorArray } from "../Common/Color";
import { Events } from "../Common/Events";
import { clamp, getCursorTime } from "../Common/Utils";
import { CursorSymbol } from "../Cursor/Cursor";
import type { Visualizer } from "../Visual/Visualizer";
import type { Waveform... |
3d4612eabd5b467ab8b9f7cc26a545545b885a99891dff26f4cba362766c7671 | TypeScript | 9,088 | 311 | import { ChangeDetectorRef, Component, Inject, OnDestroy } from "@angular/core";
import { select, Store } from "@ngrx/store";
import { combineLatest, fromEvent, merge, Observable, of, Subject, Subscription } from "rxjs";
import { userInterface } from "src/state";
import { NehubaViewerUnit } from "../../nehubaViewer/neh... |
f70b066c75add153c6f99cc06b2cd432eb169ab54dc3f371d93678a5dea79520 | TypeScript | 9,097 | 251 | /**
* 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... |
a2f3e73c77921c7a2103f773c95b43e355052057d4fdf58411d147983c166239 | TypeScript | 9,118 | 254 | /**
* Unit tests for resolveActiveBinding (ml-interactive/resolve.ts).
*
* The resolver picks one (control, binding) pair from the annotation
* config using two patterns:
* 1. self-labeled controls (RectangleLabels, VideoVectorLabels, ...)
* 2. sibling <Labels> + drawing control (VideoRectangle + Labels)
* a... |
896a3f51ceac5582ee975777578bdbbb1bd0e182d09c7222c4af3d09d79a4493 | TypeScript | 9,126 | 258 | /**
* 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... |
e51d1157c0e0188b9a7495364ca70df5df1308291e4d0c95abdd133f12fcbfd8 | TypeScript | 9,131 | 293 | export class MaskUtil {
input: HTMLInputElement;
maskPattern: string;
proxyChar: string;
numValidate: any;
stringValidate: any;
mask: any;
validators: any;
placeholder: string;
regExp: string;
onChange: (value: string) => void;
/**
* Construct a new MaskUtil instance
* @param {HTMLInputEleme... |
24f781a1dab5ee115abceedbf2071972584435adfd3bf04177b9e73fbe493008 | TypeScript | 9,133 | 292 | import { LiveSpan, Span } from './entities/span';
import { TraceInfo } from './entities/trace_info';
import { Trace } from './entities/trace';
import { TraceData } from './entities/trace_data';
import {
REQUEST_RESPONSE_PREVIEW_MAX_LENGTH,
SpanAttributeKey,
TraceMetadataKey,
} from './constants';
/**
* Internal... |
522d32e33b4b68f58d3e726c4ee525082fbb74be9f831bd57a354863ab1dff11 | TypeScript | 9,134 | 254 | /**
* Tests for MLflow Gemini integration with MSW mock server
*/
import * as mlflow from '@mlflow/core';
import { tracedGemini } from '../src';
import { GoogleGenAI } from '@google/genai';
import { http, HttpResponse } from 'msw';
import { setupServer } from 'msw/node';
import { geminiMockHandlers } from './mockGem... |
3f084748c73cb73ae1478c062f9a495d786efb5f06c5c7e73756ba567eed41ec | TypeScript | 9,172 | 318 | /**
* 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... |
79963fc4c141efffdc06bb5428da39dc3d58a85b6484b2f8229901ec4d1eec3d | TypeScript | 9,172 | 281 | import { Injectable } from "@angular/core";
import { createEffect } from "@ngrx/effects";
import { select, Store } from "@ngrx/store";
import { combineLatest, concat, forkJoin, from, merge, of } from "rxjs";
import { switchMap, withLatestFrom, catchError, map, debounceTime, shareReplay, distinctUntilChanged, tap, pairw... |
604f1cbb7a4636ed07812ee4b437484ee14df1d36655c8060ca7bc366221ee70 | TypeScript | 9,179 | 181 | export const multiChannwlCnfig = `
<View>
<!-- Control tag for region labels -->
<TimeSeriesLabels name="label" toName="ts">
<Label value="Run" background="red"/>
<Label value="Walk" background="green"/>
<Label value="Fly" background="blue"/>
<Label value="Swim" background="#f6a"... |
4f8d0b90fc6faa3a98eddcbdbb5c27e5e0c41093e987404cfb9f038828962cb5 | TypeScript | 9,188 | 323 | /**
* 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... |
75cd3e1308e987dcc12063b6066d3e307afbc045833257af034c0f2599c90dee | TypeScript | 9,212 | 280 | import {
clearDynamicHotkeySections,
type ComponentManifestLike,
manifestToHotkeySection,
registerDynamicHotkeySection,
} from "./utils";
export const KNOWN_INTERFACE_COMPONENTS: Record<string, ComponentManifestLike> = {
AudioCanvas: {
name: "AudioCanvas",
title: "Audio Canvas",
description: "Sho... |
f070c3b4f29508583e950d863958a0576e937f83dc355038527f9a815a978220 | TypeScript | 9,221 | 288 | /**
* Hook ↔ daemon IPC over the daemon's lock socket / Named Pipe.
*
* Client side ({@link submitRecord}):
* 1. Connect to {@link getLockSocketPath}.
* 2. Write a single newline-terminated JSON request.
* 3. Read a single newline-terminated JSON response.
* 4. Close.
* The promise resolves only after t... |
ab788bca497d0e0a7694f2916a152612b97b0f194cd6117ac3e1783eac4f293e | TypeScript | 9,228 | 329 | /**
* 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... |
949854c10fa097e3d4c117f6a0d359ebfe23438abb84906e0698d623534f05e3 | TypeScript | 9,243 | 340 | /**
* 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... |
9228ff375a19db74e8fdb68b7720dc6758c9b709d7770260cb2c360dd23d051d | TypeScript | 9,262 | 277 | /**
* @file Mouse Actions
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import PickingProxy from './picking-proxy'
import { almostIdentity } from '../math/math-utils'
import Stage from '../stage/stage'
import StructureComponent from '../component/structure-component'
import SurfaceRepresenta... |
0fc630c9726a0583dcface730d49207fb3055cd46fb77d7a1ce2107690f2e2b6 | TypeScript | 9,288 | 265 | import type { Layer } from "../../Layer";
import type { SpectrogramScale } from "../../../Analysis/FFTProcessor";
import type { ColorMapper } from "../../ColorMapper";
import type { RendererPlugin } from "./RendererPlugin";
import type { WaveformAudio } from "../../../Media/WaveformAudio";
import type { RenderContext }... |
c515855f9ac79a728e7dce75ec82cee964d6e54352df1d357609b407361430ad | TypeScript | 9,312 | 353 | /**
* 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... |
7e17ad97f6ba1616f463b1cfcc9105a1ef210a5dc1f5ed79a3b110a5f6914728 | TypeScript | 9,327 | 323 | /*
* 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 ... |
05cb27442a92aa92c15d788b9c1ae0c2b4445dc3bb83d963230755cdecfeece9 | TypeScript | 9,333 | 242 | import { LabelStudio, TimeSeries } from "@humansignal/frontend-test/helpers/LSF";
import {
multiChannelConfig,
singleChannelConfig,
heavyDatasetForDisplacement,
} from "../../data/timeseries/charts-displaying";
import { TWO_FRAMES_TIMEOUT, CANVAS_STABILIZATION_TIMEOUT } from "../utils/constants";
describe("TimeS... |
ff65e159b5bed2c68e20d6b1b0eebe14875926d05c38d7f4eed4a59486025221 | TypeScript | 9,337 | 244 | import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
import { createInterface } from 'node:readline';
import { runSetup } from '../src/commands/setup';
import { selectPrompt } from '../src/ui-select';
jes... |
2882b5667a5d9d9150dda6a182af81ecbc4d2e306f3c0908ebc2f922f0f67963 | TypeScript | 9,361 | 340 | /**
* 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... |
7eac3b16dca120f2929fa135c3951e8cbf26acf04753cd51f35b5237b51cc22a | TypeScript | 9,361 | 355 | import { ChangeDetectionStrategy, Component, Inject, Input, inject } from '@angular/core';
import { BehaviorSubject, Observable, combineLatest, concat, of } from 'rxjs';
import { catchError, debounceTime, distinctUntilChanged, filter, map, shareReplay, switchMap, takeUntil, withLatestFrom } from 'rxjs/operators';
impor... |
a17a39d6b8aba3a3af2ac7eb405d3994c64a302dc43803855ef33069112dfd7e | TypeScript | 9,384 | 274 | /**
* @file Hydrogen Bonds
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author Fred Ludlow <Fred.Ludlow@astx.com>
*/
import { defaults } from '../../utils'
import { degToRad } from '../../math/math-utils'
import Structure from '../../structure/structure'
import AtomProxy from '../../proxy/atom-proxy'
i... |
8c1ef4e856682b943a54b0b0c54674e97d0e35a3e790efceeefe22a6f1ae90ab | TypeScript | 9,398 | 233 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/events/mcp.proto (package v1.public.events.mcp, syntax proto3)
/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc } from "@bufbuild/... |
f9d5b2fcceb5f47385c83056ad0b42951167127bee67459f2d97317ca45ac974 | TypeScript | 9,406 | 305 | import { LabelStudio, Sidebar, VideoView } from "@humansignal/frontend-test/helpers/LSF";
import {
timelineVideoConfig,
timelineVideoData,
singleTimelineRegionResult,
multipleTimelineRegionsResult,
overlappingTimelineRegionsResult,
multipleTimelineRegionsLongResult,
} from "../../data/video_segmentation/tim... |
05ab9d91106cc7bf1faffed7d04316a6f940bdaac88d4b4dab9b34debccac549 | TypeScript | 9,416 | 284 | /**
* 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... |
a6b645486c306680bf864983c07323522ff5f2fce2fb280a4cda9ba22e748c1d | TypeScript | 9,426 | 252 | import { mock, describe, it, expect, beforeEach, afterEach, spyOn } from "bun:test";
import * as mst from "mobx-state-tree";
import { annotationNeedsHydration, applyAnnotationHydrationFromApi } from "./annotationLazyHydration";
describe("annotationNeedsHydration", () => {
it("returns false for non-annotation", () =>... |
cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573 | TypeScript | 9,451 | 322 | /*! *****************************************************************************
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.... |
86165e71b7d86d33f57a1b074671b07752d16c23bc85c6d63fd67ccc9dd4eed6 | TypeScript | 9,469 | 255 | /**
* 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... |
ef189a76e2347f14ccc6628779a4894f3a2439fd0666ce39d97169513aae9b07 | TypeScript | 9,474 | 248 | import { isListMembershipOperator, LIST_MEMBERSHIP_OPERATORS, recoverFilterSnapshot } from "./tab_filter";
import { fieldAliasFromFilterId, sanitizeIntegerUserListValue } from "./filter_snapshot_utils";
// `recoverFilterSnapshot` runs in TabFilter.preProcessSnapshot on every view load.
// Its job: heal views that were... |
42f3f5eddb62d118e9a1625291f9a2430b2940c4bcca0082615b41aecf7fd32c | TypeScript | 9,488 | 364 | /**
* 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... |
8c4c5b05423d65f31a0f9735d0cf9f5a0ffe86a2ac28e9ff2fa5ea4084a1ede6 | TypeScript | 9,505 | 254 | import { describe, expect, it } from 'vitest';
import type { ResourceType } from '../../typings/domain/asset';
import {
buildListQuery,
constantFacets,
decodeCursor,
encodeCursor,
FACET_QUERIES,
LIST_REGISTRY,
supportedFilterFields,
toPage,
} from './lists';
function queryFor(resourceType: ResourceTyp... |
26c4e178be467723f0d35161c996abe98e28dc825ff7bd3cecb0e9186cba8874 | TypeScript | 9,508 | 233 | /**
* Hook that merges two layers of ground truth data into a single effective state:
* 1. **Baseline** (base) — when a saved GT exists, this is the API extraction
* of that annotation. When no GT is saved, it's a clear-winner majority vote
* computed on the FE; ties are intentionally left empty so the ... |
992f82f55ec14dfe33643ab7c590ea9ab898a81f67670ddfd4ffd73b145d0a58 | TypeScript | 9,509 | 336 | import { LabelStudio, ImageView, Textarea, ToolBar, Modals, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import {
simpleImageTextareaConfig,
simpleImageData,
perTagTextareaResult,
perTagMIGTextareaConfig,
simpleMIGData,
requiredPerTagMIGTextareaConfig,
TEXTAREA_REQUIRED_WARNING,
perRegionMIG... |
731c4f5cbb792863e53f28ad5b37ece169ab7215bb6821ae224b722a865bf497 | TypeScript | 9,515 | 270 | import { LabelStudio, Taxonomy, Tooltip, useTaxonomy } from "@humansignal/frontend-test/helpers/LSF/index";
import {
dynamicTaxonomyConfig,
taxonomyDataWithSimilarAliases,
dataWithPrediction,
simpleData,
legacyTaxonomyConfig,
legacyDynamicTaxonomyConfig,
legacyLargeTaxonomyData,
legacyTaxonomyResult,
... |
e5a184172e34a7e7286ec5950a57567687e36abbb1c4b1e650c3472152cd38d7 | TypeScript | 9,559 | 308 | /**
* 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... |
a5e03656bea69e64b6f5cb45b017b00d4bd0dbf81414447fe4bd61bbc89ed127 | TypeScript | 9,560 | 287 | /**
* 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... |
60659725230aaa0ae101d7ccd5cb14137fe54e40636de180b7f8da32adf0b42c | TypeScript | 9,602 | 378 | /**
* @file Atom Proxy
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3 } from 'three';
import { NumberArray } from '../types';
import { Elements } from '../structure/structure-constants';
import Structure from '../structure/structure';
import ChainStore from '../store/chain-sto... |
bda86295a78ad1b56e62da81b040bb6ebe0d082b39131805dcbde408d7753752 | TypeScript | 9,616 | 353 | /**
* 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... |
d2517c7fab3b04d1184f907d6f535c5d5fa6e3575f2166827623aea889067df2 | TypeScript | 9,645 | 410 | import { ff } from "@humansignal/core";
import { Destructable } from "../Common/Destructable";
import type { WaveformAudio } from "../Media/WaveformAudio";
import { clamp } from "../Common/Utils";
import type { Waveform } from "../Waveform";
const isSyncedBuffering = ff.isActive(ff.FF_SYNCED_BUFFERING);
export abstra... |
14f0c491ce49d8aa8a5293215fa705c0a60a428aa41594f319b9a0ebec38d284 | TypeScript | 9,658 | 283 | /**
* 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... |
ab2d6bb9defdcf96a5d35448b755b0a6858eb0998ba40ada3734543c1d81ac9b | TypeScript | 9,667 | 360 | import { CdkDragDrop, moveItemInArray } from "@angular/cdk/drag-drop";
import { Component, Optional, inject } from "@angular/core";
import { add, getUuid, mul } from "src/util/fn";
import { timedValues } from "src/util/generator";
import { AUTO_ROTATE, TAutoRotatePayload, ViewerInternalStateSvc } from "src/viewerModule... |
fd3296fa99ba364deb82f7c7e9a65a39cb5655c6d060b27646d0aad8a393ec71 | TypeScript | 9,672 | 311 | import { fromBinary, toBinary } from '@bufbuild/protobuf';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import {
DocsSiteOpenedSchema,
ResourceViewedSchema,
SearchPerformedSchema,
} from '../proto/dbtlabs/proto/v1/events/docs_pb';
import {
type SiteBootstrap,
SUPPORTED_BOOTSTRAP_... |
6886c80d5b8ec4466717970d62d219086255c6a47cf190bc935561f4147fdbc2 | TypeScript | 9,673 | 337 | import { LabelStudio, ImageView, DateTime, Modals, Sidebar, ToolBar } from "@humansignal/frontend-test/helpers/LSF";
import {
DATETIME_REQUIRED_WARNING,
perItemDateTimeResult,
perItemMIGDateTimeConfig,
perRegionDateTimeResult,
perRegionMIGDateTimeConfig,
perRegionRegionsResult,
perTagDateTimeResult,
per... |
44aa9c7d12585f40534a32117a6b26e8dfee6577fc31aa56b2f81c93e83d0206 | TypeScript | 9,676 | 240 | import { Collapse, LabelStudio } from "@humansignal/frontend-test/helpers/LSF";
import {
simpleData,
basicCollapseConfig,
nonAccordionCollapseConfig,
borderedCollapseConfig,
globalOpenCollapseConfig,
mixedOpenCollapseConfig,
globalOpenWithOverridesConfig,
allParamsCollapseConfig,
} from "../../data/visu... |
1f6a45e97531f316b933671fd1e70419093ade66d78a8f071b5e1200a0df7e18 | TypeScript | 9,688 | 302 | /**
* 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... |
9c066aade35242be44a94f7531ef8f1fc39c885218ed6e1cbbbf430c56596b5e | TypeScript | 9,718 | 369 | import { fixLSParams } from "@humansignal/frontend-test/helpers/utils/fixLSParams";
import { expect } from "chai";
import { ImageView } from "./ImageView";
type LSParams = Record<string, any>;
class LSParamsBuilder {
params: LSParams = {
config: "<View></View>",
interfaces: [
"panel",
"update",
... |
9e0934a6fb5fefa0c116c9d49edd734b9df022b12a00980134731418861e0cdc | TypeScript | 9,719 | 352 | /**
* @file Helixorient
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3 } from 'three'
import { ColormakerRegistry } from '../globals'
import { ColormakerParameters } from '../color/colormaker'
import { AtomPicker } from '../utils/picker'
import RadiusFactory, { RadiusParams ... |
3d3895abd90a57735d4df3da474c4b3829ea873c29cfe4350a8113b4a4bbea1c | TypeScript | 9,736 | 314 | import { TestBed, fakeAsync, tick, flush, ComponentFixture } from '@angular/core/testing'
import { SaneUrl } from './saneUrl.component'
import { By } from '@angular/platform-browser'
import { NoopAnimationsModule } from '@angular/platform-browser/animations'
import { SaneUrlSvc } from './saneUrl.service'
import { Angul... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.