sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
72a25b12f9000e8b692107479e329422358f0652520f9e596e37b3c1888130b7 | TypeScript | 14,234 | 421 | /**
* Live trace construction for the Claude Agent SDK message stream.
*
* Mirrors the span shape produced by processTranscript (CLI Stop-hook path)
* but emits spans incrementally as SDKMessages arrive so that long-running
* agent sessions show progress and partial traces survive crashes.
*
* Span tree (matches... |
7d8697ad9a839cddf48932d12cbac123ea5cbe99206d14633c556b2ab6866317 | TypeScript | 14,249 | 441 | import { SxplrAtlas, SxplrTemplate, SxplrParcellation, SxplrRegion } from "src/atlasComponents/sapi/sxplrTypes"
import { IDS } from 'src/atlasComponents/sapi/constants'
import { atlasSelection } from 'src/state'
import { MultiDimMap } from 'src/util/fn'
import {
NehubaConfig,
NgConfig,
RecursivePartial,
} from ".... |
00a4eda1ebbf54592f736626834154254305cbffde4587737b043341773c3c77 | TypeScript | 14,283 | 477 | /**
* 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... |
243038d3b23d57b8d63722d9b982dda0ed5dcce4e214872799184024de4a580f | TypeScript | 14,315 | 374 | /**
* Unit tests for Playhead (lib/AudioUltra/Visual/PlayHead.ts)
*/
import { Playhead } from "../PlayHead";
import { rgba } from "../../Common/Color";
import type { Mock } from "bun:test";
function createMockVisualizer(overrides = {}) {
return {
height: 100,
width: 800,
reservedSpace: 10,
fullWidt... |
4a897893123fc099fceceec947def45eef8e656077c749a4c314940e6e4ebd82 | TypeScript | 14,315 | 448 | import { Injectable, OnDestroy } from "@angular/core";
import { select, Store } from "@ngrx/store";
import { combineLatest, merge, Observable, Subject, Subscription } from "rxjs";
import { debounceTime, distinctUntilChanged, filter, map, pairwise, shareReplay, startWith, switchMap, withLatestFrom } from "rxjs/operators... |
9605b915e1a11f6c540c1323dbfc0801faeb2f343abebf9da640cd4c92caae32 | TypeScript | 14,404 | 394 | /**
* 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... |
a23ca05a9a05a773a8aa263f1e80d8c4d130f59c9e2104711b7fd3a8c6caab9b | TypeScript | 14,493 | 528 | /**
* 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... |
0dea25740ba3e37a225d1ae5ce0ec15ee6847bbc343b7a277cf0794eafda176a | TypeScript | 14,511 | 429 | /**
* 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... |
c43e079cf884815a82528b4f32d7d3cfd807c82b1fccb93fb93329eb2b6fcaa3 | TypeScript | 14,554 | 461 | import { TraceInfo } from '../../../src/core/entities/trace_info';
import { TraceData } from '../../../src/core/entities/trace_data';
import { TraceLocationType } from '../../../src/core/entities/trace_location';
import { TraceState } from '../../../src/core/entities/trace_state';
import { DatabricksArtifactsClient } f... |
1232b876fa8d4f9bd33d42aa573366d63ceb1e13ca341240c9cb3b6bdcd19fb0 | TypeScript | 14,562 | 584 | /**
* 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... |
c457c141ee9521197c96e43098366b931889cf1c347f412b48accde9b3367af2 | TypeScript | 14,626 | 434 | /**
* 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... |
16655f713709f1ae884e8a3efb97b2fb777d3980289c00783cd5274abd899b3a | TypeScript | 14,726 | 927 | /*
* 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 ... |
8a1ee1cfe6ad77dc2698ce89694f5fa01f1686de4e1136819180f1dfe8246ca4 | TypeScript | 14,735 | 529 | import { formDataToJPO } from "../utils/helpers";
import statusCodes from "./status-codes.json";
import type {
APIProxyOptions,
ApiResponse,
EndpointConfig,
RequestMethod,
RequestMode,
ResponseError,
ResponseMeta,
WrappedResponse,
} from "./types";
type ApiMethods<T extends Record<string, EndpointConfi... |
f570ea76f808f647689fff4cf48a8f198040a79a1d951e13f2be6f181321152b | TypeScript | 14,752 | 567 | /**
* 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... |
aee593a8ce49ced447d550fc2c2644509969f4e8246fe501c76499b19bc6bf63 | TypeScript | 14,812 | 576 | /**
* @file Utils
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector2, Vector3, Matrix4, Quaternion } from 'three'
export function getQuery (id: string) {
if (typeof window === 'undefined') return undefined
const a = new RegExp(`${id}=([^&#=]*)`)
const m = a.exec(window.lo... |
7dc8792adf097654e2f75d65f90ac6afe698f69617ab209aa3b77e8594e18c0c | TypeScript | 14,818 | 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... |
1eed730918307d81f88ded55b69ffb11ce13e7ec8989ecf4199c24286951e658 | TypeScript | 14,821 | 670 | /**
* 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... |
d3b70000a5ea33ad0670a01c82270e4425287350654f06e8700691926dfd4217 | TypeScript | 14,830 | 517 | import { TestBed } from "@angular/core/testing"
import { provideMockActions } from "@ngrx/effects/testing"
import { Action } from "@ngrx/store"
import { MockStore, provideMockStore } from "@ngrx/store/testing"
import { hot } from "jasmine-marbles"
import { EMPTY, NEVER, ReplaySubject, of, throwError } from "rxjs"
impor... |
84bb9024604f5f9457b1a350c5778613768e48599b852247620d59895df905e1 | TypeScript | 14,836 | 541 | import { rgba, type RgbaColorArray } from "../Common/Color";
import {
clamp,
defaults,
findLast,
getCursorPositionX,
getCursorPositionY,
isInRange,
pixelsToTime,
} from "../Common/Utils";
import { CursorSymbol } from "../Cursor/Cursor";
import type { LayerGroup } from "../Visual/LayerGroup";
import type {... |
2eb421ab01cafe18cf1375391250f728695a71f8007fa8ba8204914a401c47d6 | TypeScript | 14,847 | 532 | /**
* 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... |
52a79ea5770f3828da163a4a5ce69887022cf495143e9d7acaf3e7e6466a33dc | TypeScript | 14,917 | 457 | /**
* Hook: resolves the interactive ML backend for the current project and
* provides a `predict` callback that calls `/api/ml/:pk/interactive-annotating`.
*
* This is the ML-backend counterpart to `useWorkerLifecycle` — same mask
* contract (`item.setMask`), different inference transport.
*/
import { useCallba... |
83ecd425f4aaadeaec295f0539ea1b49e6b8fa9db4e27415f54bea75c32ff732 | TypeScript | 15,166 | 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 ... |
91a5e36607c93306cc1a29033303202a111ab1ffb3c763466b84fffecdae956c | TypeScript | 15,188 | 433 | /**
* 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... |
77c7537d3ec58f58b5ec5716252f747d4bb8f8589295df3f782aacbc7d3fe271 | TypeScript | 15,201 | 429 | import { randomUUID } from 'crypto';
import * as mlflow from '../../src';
import { MlflowClient, type SearchTracesOptions } from '../../src/clients/client';
import type { ArtifactsClient } from '../../src/clients/artifacts';
import { Feedback } from '../../src/core/entities/assessment';
import { Trace } from '../../src... |
ab5112c04ebe401062a17fd69c2bea486d4fa587ec9cdf9c7b0e4769244da8c1 | TypeScript | 15,241 | 415 | /**
* Tests for ImageCache: Content-Type validation, cache lifecycle (refs,
* forceClear, dedup), and the fetch-based loader contract from TRIAG-2331.
*/
import { imageCache } from "./ImageCache";
// Mock URL.createObjectURL / revokeObjectURL (not available in jsdom).
// Use a counter so each blob URL is unique; o... |
3d9cf21525c0297e2704b1411ecad803b7170033735710e4ec7e989207ef3644 | TypeScript | 15,285 | 433 | import { confirm } from "@humansignal/ui/lib/modal";
import { ToastType, useToast } from "@humansignal/ui/lib/toast/toast";
// @ts-ignore
import { useAPI } from "@humansignal/core";
import { useCallback, useEffect, useRef, useState } from "react";
import { type CustomHotkeys, effectiveHotkeys, mergeCustomHotkeys } from... |
90d182930f237f1ff6b4ad2ed45c39eff7e68a84b61ab593158308d8b93b2217 | TypeScript | 15,354 | 359 | /**
* Hook: video auto-tracking — propagates Segment Anything mask across subsequent frames
* with optical-flow-adjusted prompts and drift detection.
*/
import { useCallback } from "react";
import { computeCentroidFromMask, findVideoElement, getNativeDimensions } from "./utils";
import { maskToLargestShape, maskToB... |
ff352717bcc57f8905a4a05bc92b680bca905755e3c27d83dd1c36f0840d76cd | TypeScript | 15,366 | 453 | import { endOfWeek, startOfMonth, startOfWeek } from 'date-fns';
import { CostInsight, CostInsightByJob, Grouping } from '../typings/costInsights';
import { COLUMN_LABELS } from './columnLabels';
import { downloadCsv } from './csv';
import { formatDateForCsv, formatLocalDate } from './dateUtils';
import { formatMinute... |
a460834bb86cf80948910aa2d0a0b15db5bba89faa7e82c8f9a661bc867c0817 | TypeScript | 15,425 | 429 | /**
* Tests for MLflow Anthropic integration with MSW mock server
*/
import * as mlflow from '@mlflow/core';
import Anthropic from '@anthropic-ai/sdk';
import { tracedAnthropic } from '../src';
import { http, HttpResponse } from 'msw';
import { setupServer } from 'msw/node';
import { anthropicMockHandlers, createStr... |
2ca7065adb7090fc002302d3b38689c59cecb960c57b8e21447d0ff06e345876 | TypeScript | 15,439 | 456 | /*
* 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 ... |
6d1a25e9441dff235d81194a1bf9199042039fed1e23e06372e38ddeb63db5f9 | TypeScript | 15,460 | 512 | /**
* Converts binary segmentation masks to vector paths.
*
* Extension point — add new converters here for brush, bitmask, etc.
*/
interface Point {
x: number;
y: number;
}
/**
* Marching-squares contour extraction → Douglas-Peucker simplification.
* Returns array of closed polygons (one per foreground blo... |
87b9b87090e7b4f8c18e873b8ff0d6d81a75adad76f46e3fc080138bb447dea3 | TypeScript | 15,462 | 585 | /**
* 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... |
ee4d24613f186281ed7e1f721aa25258295f73c6e648f840aa26b9f4cf7d7054 | TypeScript | 15,476 | 500 | /**
* 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... |
20f15262bd659bb2529a3f587ee6db9c7d3039f5aa3fa59e3f69c9d79e41ed28 | TypeScript | 15,505 | 593 | /**
* 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... |
396d41f40226b99f0f6ac5a9ba0925a15d01c4524920214008c06d063ecee959 | TypeScript | 15,695 | 450 | /**
* @file Shape
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
// @ts-ignore: unused import Matrix4 required for declaration only
import { Box3, Vector3, Color, Matrix4 } from 'three'
import { createParams, ensureFloat32Array, getUintArray } from '../utils'
import {
ArrowPrimitive, BoxPr... |
0bdb47d0694926619bf058dde0601938be5ce6e9d2372e02a823a51fcdeb7511 | TypeScript | 15,777 | 532 | /**
* 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... |
3d1c5fd1d7e154d0eab3b8adbbfda566fbbe3fae809764ad78b0890e120716e5 | TypeScript | 15,896 | 518 | /**
* @file Dihedral Representation
* @author Fred Ludlow <fred.ludlow@gmail.com>
* @private
*/
import { Color } from 'three'
import { RepresentationRegistry } from '../globals'
import MeasurementRepresentation, { calcArcPoint, parseNestedAtoms, MeasurementRepresentationParameters, LabelDataField } from './measure... |
32c634b62e2ce0152c63e2d4937baef5a99e56f8af54a1159a59eb613e72a630 | TypeScript | 16,056 | 438 | /**
* 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... |
4c912a6c00c6e5f0895e7f4734b617d5897f03e2caf1f220b8aca7190118e1d8 | TypeScript | 16,056 | 685 | import type { TimelineSettings } from "../../components/Timeline/Types";
import { ff } from "@humansignal/core";
import { Events } from "./Common/Events";
import { MediaLoader } from "./Media/MediaLoader";
import type { Player } from "./Controls/Player";
import { Html5Player } from "./Controls/Html5Player";
import { We... |
f6bf2d84b51d388703fbead4e6cf2685c4546a42a00f2342a5236ef5b6462e7d | TypeScript | 16,064 | 542 | /**
* 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... |
84fe568c0cf023c249077c357b86db5231d00a5c0796a6a5c98811d1623bbc43 | TypeScript | 16,107 | 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... |
2eff02eb73be0ffed1e5ed9c8fc8c35a4337a7cadc47188e48c09334f00a4fc0 | TypeScript | 16,351 | 497 | /**
* @file Mouse Observer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector2 } from 'three'
import { Signal } from 'signals'
import { LeftMouseButton, RightMouseButton } from '../constants'
import { defaults } from '../utils'
import Viewer from '../viewer/viewer'
import MouseCo... |
4d31b3e5991509bad559f18b02dc33013f6255f3be6ec416c077c3ff52713e21 | TypeScript | 16,370 | 597 | import { Component, ElementRef, ViewChild, Input, SimpleChanges, HostListener, OnChanges, inject } from "@angular/core";
import { Store, select} from "@ngrx/store";
import { BehaviorSubject, combineLatest, merge, concat, NEVER} from "rxjs";
import { switchMap, map, shareReplay, distinctUntilChanged, withLatestFrom, fi... |
25b560eb437429978414d3219a97cc91126ae75f7b5bf09df0863aa884874fb0 | TypeScript | 16,401 | 439 | /* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
import {
AudioView,
ImageView,
Labels,
LabelStudio,
Sidebar,
TimeSeries,
VideoView,
} from "@humansignal/frontend-test/helpers/LSF";
import { RichText } from "@humansignal/frontend-test/... |
a440d689312c08e18d78d880ced590270106e2cda0e8991e57f9fff3f816d722 | TypeScript | 16,420 | 735 | /**
* @file Matrix Utils
* @private
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*
* svd methods from Eugene Zatepyakin / http://inspirit.github.io/jsfeat/
*/
import { NumberArray } from '../types'
import { v3new, v3cross } from './vector-utils'
export class Matrix {
size: number
data: Float32Arra... |
bd500d50d13a1a085d1931bd2f87f3e33fec7f7af32be4ccb93ecb4496d5c7bb | TypeScript | 16,440 | 721 | /**
* 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... |
e1c0aab200fe61a094a0b4b5d49fa7ceaa4b18a7d20a11154d4d1c34c5fc3545 | TypeScript | 16,460 | 457 | /*
* 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 ... |
9063927e154b5f7b53ca2f44ffc2b7741460dd8b2086370f105b75978972bddb | TypeScript | 16,465 | 614 | import { Inject, Injectable, Optional } from "@angular/core";
import { select, Store } from "@ngrx/store";
import { Subject } from "rxjs";
import { distinctUntilChanged, filter, map, switchMap, take } from "rxjs/operators";
import { SAPI } from "src/atlasComponents/sapi";
import { Point } from "src/atlasComponents/sapi... |
b75dc7f81bbb2a7ce0adac148e1f3ed3aa9ffd7bfbeb25fe8c5a1b75bd875227 | TypeScript | 16,478 | 471 | import { TraceInfo } from '../core/entities/trace_info';
import { Trace } from '../core/entities/trace';
import {
CreateAssessment,
CreateExperiment,
CreateTraceInfoV4,
DeleteExperiment,
ExportOtlpTraces,
ExportOtlpTracesOss,
GetExperiment,
GetExperimentByName,
GetTraceInfoV3,
SearchTracesV3,
Star... |
b42f07530c69c96652f62003fd0f1a328bcc6251a08fab29f08063a4e645a6a8 | TypeScript | 16,542 | 457 | /**
* Tests for MLflow OpenAI integration with MSW mock server
*/
import * as mlflow from '@mlflow/core';
import { tracedOpenAI } from '../src';
import { OpenAI } from 'openai';
import { Stream } from 'openai/streaming';
import { http, HttpResponse } from 'msw';
import { openAIMswServer, useMockOpenAIServer } from '... |
0e5929fe526bb73987b467ac158574848caa70d0dc6114e429118bfa6d216d32 | TypeScript | 16,557 | 457 | /**
* 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... |
4b1b7a22f4522f1d72cf169907802cb78addf963c14866a0cdd104086ce8a22c | TypeScript | 16,559 | 616 | /**
* @file Netcdf Reader
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*
* Adapted from https://github.com/cheminfo-js/netcdfjs
* MIT License, Copyright (c) 2016 cheminfo
*/
import IOBuffer from './io-buffer'
export interface NetCDFRecordDimension {
length: number,
id?: number,
name?... |
427e8e9a0b13e5c1c10d7a62f5aa58db41345edcf605e832f81c9d653950148b | TypeScript | 16,567 | 574 | import { ChangeDetectionStrategy, ChangeDetectorRef, Component, TemplateRef, ViewChild, inject } from "@angular/core";
import { select, Store } from "@ngrx/store";
import { BehaviorSubject, combineLatest, Observable, of } from "rxjs";
import { debounceTime, distinctUntilChanged, map, shareReplay, switchMap, take, takeU... |
421d32ed48b40668e0f3730f81b520f258d6a6610427cc561c1792f85ea4bd4f | TypeScript | 16,569 | 477 | import TriggerOptions = Cypress.TriggerOptions;
import ObjectLike = Cypress.ObjectLike;
import ClickOptions = Cypress.ClickOptions;
import { SINGLE_FRAME_TIMEOUT } from "../../../../editor/tests/integration/e2e/utils/constants";
import { withMedia } from "@humansignal/frontend-test/helpers/utils/media/MediaMixin";
impo... |
3247dd254bc708cc01d236b1b4ddfb4650c5690063083184be796c1a4931b620 | TypeScript | 16,589 | 579 | /**
* 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... |
cdc16f616f62be266ce4f737817a564400de6c3bfe2bac917926a9937b8a8ff4 | TypeScript | 16,641 | 578 | import { interval, Observable, of } from 'rxjs'
import { filter, mapTo, take } from 'rxjs/operators'
import { MetaV1Schema } from 'src/atlasComponents/sapi/typeV3'
// eslint-disable-next-line @typescript-eslint/no-empty-function
export function noop(){}
export async function retry<T>(fn: () => T, config={timeout: 1... |
8a63aec02f4a779766b5c5e99bcc05e0442a8ab76b048d83681afd820b99abaf | TypeScript | 16,647 | 721 | /**
* 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... |
f3e163a3fb6addf2e2e44e99a47af4a46e18cc7d2851389597c77cdfd16e31c1 | TypeScript | 16,669 | 625 | /**
* @file Trajectory
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Signal } from 'signals'
import { Log } from '../globals'
import { defaults } from '../utils'
import { NumberArray } from '../types'
import { circularMean, arrayMean } from '../math/array-utils'
import { lerp, spli... |
9fe5338c2811b6fa32cf64e9efedcbdd4f4e42e169a4524cbb712f00096d7789 | TypeScript | 16,750 | 593 | /**
* 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... |
6ff0089d8bdf816a7ab74a140330d1aefef526ae2fd09e3e69e6b7f7340c6784 | TypeScript | 16,770 | 593 | /**
* 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... |
5bfba1ec598f58b7cab8047295d3888cbc17b39b637a79b0f2e9ce5f98536bf9 | TypeScript | 16,790 | 505 | /**
* @file Sturucture Component
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Signal } from 'signals'
import { ComponentRegistry, MeasurementDefaultParams } from '../globals'
import {
defaults, /*deepEqual, */createRingBuffer, RingBuffer, createSimpleDict, SimpleDict
} from '../... |
71e7d0f3e53f8d8a345ba8c553faaa7071b78991e1390c95ac85ab8620b43995 | TypeScript | 16,810 | 553 | /*
* 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 ... |
6b01024d70c1f2b96bc5a5143dd5291eb102d58ca90750ac052ecb9c05ed79ae | TypeScript | 16,817 | 455 | /**
* React Query hook for fetching and deriving agreement dashboard data.
*
* Fetches from GET /api/tasks/{taskId}/summary/ and transforms the
* response into structures ready for each dashboard panel.
*
* All read-only data (task metadata, annotation info, agreement scores)
* comes exclusively from the API — n... |
632357aad6c59e8bdd8a2270d1aef4676ebc37c7c6fec0f8766e50cd1e6ab325 | TypeScript | 16,864 | 594 | /**
* 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... |
3a2c6f72b717b00bc9b9a0c5cfc1d7656f9f73dbe4b8dc24d0244637c5f62822 | TypeScript | 16,906 | 459 | import { afterEach, describe, expect, it, vi } from 'vitest';
import {
type SiteBootstrap,
SUPPORTED_BOOTSTRAP_SCHEMA_VERSION,
} from '../../../lib/siteBootstrap';
import type { BootstrapData } from './bootstrap';
import type { DuckDbEngine, TableName } from './engine';
import { createDuckDbDataSource } from './in... |
fe53b66f8d771dea102f928ccb69b191f9b2898c8c844491e232d95bb1ef7e15 | TypeScript | 16,909 | 430 | import { mkdtemp, readFile, rm } from 'fs/promises';
import { createServer, Server } from 'net';
import { tmpdir } from 'os';
import { join } from 'path';
import { BatchingWriter } from '../../../src/exporters/wal/batching_writer';
import {
createIpcConnectionHandler,
ipcRequestByteLength,
MAX_REQUEST_BYTES,
su... |
69d27d061bbd213c8222d50be9c4edcf53a282062aabb20f1f7cbc49024e5d4d | TypeScript | 17,036 | 475 | import { LabelStudio, Modals, Sidebar, Textarea, ToolBar } from "@humansignal/frontend-test/helpers/LSF";
import {
simpleData,
textareaConfigSimple,
textareaConfigWithValue,
textareaConfigWithValueAndRows,
textareaConfigWithRowsAndMaxSubmissions,
textareaConfigWithMaxSubmissions,
textareaConfigWithValueAn... |
5920e41e9a67793c210461aef0f9880c31a2e671bcbe4ce8202ad2fbed6119b3 | TypeScript | 17,071 | 601 | /**
* 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... |
0f3a55d7bfa07713b3f8adc010323d70e85274f32480e869e675c6fbac74d5b0 | TypeScript | 17,092 | 515 | /**
* Ground Truth Mode state management hook.
*
* Manages the full lifecycle of ground truth adjudication:
* - Toggle active state
* - Auto-accept unanimous / majority dimensions
* - Manual per-cell resolution
* - Progress tracking and summary
*
* State is persisted in localStorage per task so reviewers don't... |
fb9be306b5675a69e4a6f343fdfe96d30592bbd246da1aba0d8f881728d8fb7c | TypeScript | 17,133 | 628 | /**
* 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... |
1ef928fc7b276b998eacce7efa609e620de810c2dd43bd932b4a97b05e06f36b | TypeScript | 17,198 | 574 | /**
* 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... |
0765810d214203217720e0d54d98a5d64538c3b7797cc898e0f4cafa0ff47024 | TypeScript | 17,285 | 791 | /**
* 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... |
321ea8780c2c0b9c76f7593006b68b5e4c8d795105c11e53742e50490ff864cc | TypeScript | 17,290 | 528 | /**
* `MetadataDataSource` variants for Storybook.
*
* Nearly every state a data-connected component can be in is a property of the
* *source*, not of a prop: populated, empty, still loading, errored, or served by a
* source that never implemented the surface at all (which the hooks report as an
* error rather th... |
a912023208b660203a5b5aacff707002fd2575be866760cedcfe3f0a040833b6 | TypeScript | 17,295 | 585 | /**
* 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... |
412d970612dbf22232c123175d2cf997e03d263f830d3dc109a12c8cf38d2926 | TypeScript | 17,323 | 545 | /**
* 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... |
6c9f3013a93ce75f47b651e6af7de85bab93d427a701c11d1504582fb68fcbb3 | TypeScript | 17,351 | 559 | /**
* 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... |
51b2a333face0c446e6717d00e306029532740d6c7d6947059ceed5150275217 | TypeScript | 17,352 | 469 | import type { BezierPoint, SimplePoint, PointInput, Point } from "./types";
import { nanoid } from "nanoid";
// Calculate closest point on a line segment
export const getClosestPointOnLine = (p: Point, a: Point, b: Point): Point => {
const ax = a.x;
const ay = a.y;
const bx = b.x;
const by = b.y;
const px = ... |
bdedb490e333b8557b345de1ef60c8f88a1f03f6aadd172d62223969920d2caf | TypeScript | 17,434 | 663 | /**
* 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... |
f63805da68aeb7ed62369e8181831b872321e2d950644529560114a500be2c94 | TypeScript | 17,486 | 559 | import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
import { apiReferencePrefix } from './docusaurusConfigUtils';
const sidebarsClassicML: SidebarsConfig = {
classicMLSidebar: [
{
type: 'doc',
id: 'index',
className: 'sidebar-top-level-category',
label: 'MLflow',
},... |
05ab72e9616e4d2b73fc6ffd7fe1d4674c5423f440768e72d1397c7f8e02eeef | TypeScript | 17,509 | 535 | /**
* 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... |
249302876c08a8d2f2e00643559adfccb2197b6cb5d32fba18aceed2da7dcf01 | TypeScript | 17,522 | 461 | /**
* @module cola
*/
module cola {
/**
* Descent respects a collection of locks over nodes that should not move
* @class Locks
*/
export class Locks {
locks: any = {};
/**
* add a lock on the node at index id
* @method add
* @param id index of node to... |
7a342ccf2213cfe001282b2a6940abde3aec1f4affd574d6dbe91ccf0f99884a | TypeScript | 17,673 | 494 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/events/litellm_gateway.proto (package v1.public.events.litellm_gateway, syntax proto3)
/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messag... |
3aed0028480cebdf043bdf8836df0622c4dd42dd020cb01a5431ff28facf35ae | TypeScript | 17,883 | 408 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/events/canvas.proto (package v1.public.events.canvas, syntax proto3)
/* eslint-disable */
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { enumDesc, fileDesc, messa... |
a8925c3ff1a72c90ac98d549f1282a90eaff870588ac32bf3664494fa8fbaeb3 | TypeScript | 17,885 | 516 | module cola.vpsc {
export class PositionStats {
AB: number = 0;
AD: number = 0;
A2: number = 0;
constructor(public scale: number) {}
addVariable(v: Variable): void {
var ai = this.scale / v.scale;
var bi = v.offset / v.scale;
var wi = v.w... |
4edee6f571c2f7e7e2638d875b76d8b350f1ea037ba51f391519d20bf70946a0 | TypeScript | 17,900 | 601 | /**
* MLflow Tracing Plugin for OpenCode
*
* This plugin listens for session.idle events and creates MLflow traces
* directly using the @mlflow/core TypeScript SDK.
*
* Usage:
* 1. Install: npm install @mlflow/opencode @mlflow/core
* 2. Add to opencode.json: { "plugin": ["@mlflow/opencode"] }
* 3. Set en... |
0f1f899ab14a1e85ebf0661dfe4a1709dc45d0be78d30813e8bdbc1e2e3e5dda | TypeScript | 17,913 | 488 | import { resolve } from 'path';
let spanCounter = 0;
const mockSpans: Record<string, any> = {};
const mockTraceInfo: {
traceMetadata: Record<string, string>;
} = {
traceMetadata: {},
};
jest.mock('@mlflow/core', () => {
return {
init: jest.fn(),
startSpan: jest.fn((options: any) => {
const id = `s... |
12b3ebb869a495b24ed6e4afb793ace8610e97f96d5302db07ee13374aa33ed7 | TypeScript | 17,943 | 582 | /**
* 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... |
bdeb414649816a61ca4a41032178641711725107e8cb1b1464806e5f3d33a8ac | TypeScript | 17,959 | 718 | /**
* 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... |
09e694f47bca08683fde5038f600daeb87b64235873dfb0811f6fda3105de470 | TypeScript | 18,043 | 541 | import { Component, Inject, ViewChild, ChangeDetectionStrategy, inject, HostListener } from "@angular/core";
import { FormControl } from "@angular/forms";
import { select, Store } from "@ngrx/store";
import { BehaviorSubject, combineLatest, concat, merge, NEVER, Observable, of, Subject } from "rxjs";
import { switchMap... |
290db29b8dac102d7e6859c2371cffee0ef27e2a0a1fbe4586cb316fc82e42f9 | TypeScript | 18,129 | 437 | import { createUtcFormatter } from "./date";
// Serves `Access-Control-Allow-Origin: *`, which the Image tag needs because it loads
// with crossOrigin="anonymous" by default, and is same-origin with the deployed playground.
const SAMPLE_ASSETS_BASE = "https://labelstud.io/static/samples";
const SAMPLE_IMAGE = `${SAMP... |
84a5149ae1c5ca0a10a1b27ecb910e5f69159173eec4ce58056f36b09b835ea9 | TypeScript | 18,195 | 527 | /**
* 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... |
0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3 | TypeScript | 18,200 | 605 | /*! *****************************************************************************
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.... |
970cd33680ea4c3ea1bb73bd58b7ad3bbf9b9de0ef7c921e8a33155bcc0b6a45 | TypeScript | 18,223 | 637 | /**
* 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... |
61e309a13f974ce0eeddc16427beb6b6a9b655f6a6d7453f11e28da45bf250b6 | TypeScript | 18,229 | 542 | import { LabelStudio, ImageView, Choices, ToolBar, Modals, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import {
simpleImageChoicesConfig,
simpleImageData,
perTagChoicesResult,
perTagMIGChoicesConfig,
simpleMIGData,
requiredPerTagMIGChoicesConfig,
CHOICES_REQUIRED_WARNING,
perRegionMIGChoice... |
1d1479f86c077dcd8ae554858a7029c6579aaac108e34ccc4bf86c267132a647 | TypeScript | 18,315 | 579 | /* 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... |
6e85dc5455e83340a8dfd3db413b36943dd331e02adf5e155bf6f1162678d821 | TypeScript | 18,428 | 532 | /**
* MLflow TypeScript SDK Authentication Module
*
* This module provides authentication for MLflow tracking servers:
*
* ## Databricks-hosted MLflow
*
* For `databricks://` URIs, authentication is delegated entirely to the
* Databricks SDK which supports multiple authentication methods:
* - Personal Access T... |
9c906b7747ee6875559cc0543fcc8c9021f8bafe1328143b99516ff9fd490700 | TypeScript | 18,447 | 628 | /**
* @file AV Surface
* @author Fred Ludlow <fred.ludlow@gmail.com>
* @private
*/
import { getSurfaceGrid } from './surface-utils'
import { VolumeSurface } from './volume'
import { uniformArray } from '../math/array-utils'
import {
computeBoundingBox, v3multiplyScalar, v3cross, v3normalize
} from '../math/vecto... |
10572b905a905ca82e7047709b90243a98fb7daea467fdf91d0eb03c80039261 | TypeScript | 18,475 | 603 | /*
* 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 ... |
446b9657931f09f71a2e795d82b3facd53f252cbdeec6be9a00c6dbcb901b081 | TypeScript | 18,497 | 847 | export const simpleImageData = {
image: "https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg",
};
export const simpleMIGData = {
images: [
"https://data.heartex.net/open-images/train_0/mini/0030019819f25b28.jpg",
"https://data.heartex.net/open-images/train_0/mini/00155094b7acc33b.jpg",
... |
a337426ce3280f8daa560feb304c176f29f36f27a214614115d9cb35e454a87a | TypeScript | 18,595 | 600 | /**
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.