sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 17k | content stringlengths 1 200k |
|---|---|---|---|---|
7621fc5113ac90dd7cf4154d0d479d4afb6d9d462aa8e0c0c42b8f4b9fa5c896 | TypeScript | 7,371 | 198 | import { http, HttpResponse } from 'msw';
import { setupServer } from 'msw/node';
import { context, SpanKind, ROOT_CONTEXT, trace as otelTrace } from '@opentelemetry/api';
import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks';
import {
BasicTracerProvider,
ReadableSpan as OTelReadable... |
efc3e74676d13189482923b1edc76137764ead30129e82e7d83863ac294a50fe | TypeScript | 7,379 | 192 | /**
* 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... |
6fc9b432df4ce500f2d3ee56397fd0bed0c1439ee5206c2853ee056a7e64c172 | TypeScript | 7,434 | 272 | /**
* @file Trajectory Player
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Signal } from 'signals'
import { defaults, createParams, updateParams } from '../utils'
import Trajectory from './trajectory'
export type TrajectoryPlayerInterpolateType = ''|'linear'|'spline'
export type ... |
94d7e7d788620359241c16a1fc28d8dc6989e93d97948dea3f4a11652f647fc2 | TypeScript | 7,442 | 193 | import { LabelStudio, TimeSeries, Labels, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import { multiChannelSampleData, multiChannwlCnfig } from "../../data/timeseries/multichannel";
import { TWO_FRAMES_TIMEOUT } from "../utils/constants";
describe("MultiChannel", () => {
it("should render correctly", ()... |
b7b01d6310e0b4a7f5305d620efb4812c12f8447c127349d74454cb185f4873a | TypeScript | 7,445 | 238 | /**
* 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... |
1f47e1dead3359223af1e069e405dc623e7ea7f20f5c95144326af1d942a7387 | TypeScript | 7,462 | 308 | /**
* @file Chain Proxy
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { UnknownBackboneType } from '../structure/structure-constants'
import Structure from '../structure/structure'
import Selection from '../selection/selection'
import ChainStore from '../store/chain-store'
import Re... |
ecdd5607febb7bc2c113510c96ffcc74c34be11cbabe194964c9ebc53f9339ef | TypeScript | 7,468 | 267 | /**
* @file Colormaker Registry
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { generateUUID } from '../math/math-utils'
import Colormaker, { ColormakerConstructor, ColormakerParameters } from './colormaker'
import SelectionColormaker, { SelectionSchemeData } from './selection-colorma... |
0650bbeb718b2947615359f2ab5bcb4a64df396ad3cb0dcdeb3921b6fd75746f | TypeScript | 7,500 | 225 | // Revisit whether or not we want to do this
import { intersection } from 'lodash';
import type { ResourceType } from '../../lib/resourceType';
import {
ExposureHealthIssueType,
HealthIssueType,
SourceHealthIssueType,
} from '../typings/discoveryEnums';
import { AdditionalMetadata, HealthIssue } from '../typings... |
9e6bee43ff94965864b0daa343d15a34d1f6b25926c54417d2c9e9c00afa042a | TypeScript | 7,503 | 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... |
2060728bf9b908c572324be15e99aaf37288e1d89406709a46557e7574560964 | TypeScript | 7,508 | 235 | /**
* 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... |
67a69188200d81500ad52e73ee21231b8d8f35666f57053950825d68b693aa8c | TypeScript | 7,527 | 239 | import { clamp, repeat, toPrecision } from "./Utils";
export const colorToInt = (x: string) => Number.parseInt(x.replace(/_/g, ""), 36);
const COLOR_MAP =
"1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xae... |
f5cbcadfdf7817f17bd8d932709cf877cbe869d04225c34c0fc505a1563e0446 | TypeScript | 7,542 | 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 ... |
92cfd57a2ae78e6c79d0adcfe3b77a92ffce76ee065e57f00647b1ff01ee8117 | TypeScript | 7,550 | 246 | import type { FC, MouseEvent } from "react";
import type { ViewTypes } from "./Views";
import type * as Controls from "./SideControls";
import type { SpectrogramScale } from "../../lib/AudioUltra/Analysis/FFTProcessor";
export type TimelineControls = Partial<Record<keyof typeof Controls, boolean>> & {
ZoomControl: b... |
616b85472d282df233b249fc4fed7513e59e057b823a81ee6da9cf3127480394 | TypeScript | 7,553 | 265 | import { TestBed } from "@angular/core/testing"
import { MockStore, provideMockStore } from "@ngrx/store/testing"
import { hot } from "jasmine-marbles"
import { NehubaMeshService } from "./mesh.service"
import { atlasAppearance, atlasSelection } from "src/state"
import { SxplrRegion } from "src/atlasComponents/sapi/sxp... |
a7f84c0223d0ec5e423388409bfde851926bd6fc878b89ac32ecd688e252a756 | TypeScript | 7,556 | 246 | /**
* 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... |
81e117320dbf143f16c55653d02422a28d6caa899bb67fdf99ed4129757da472 | TypeScript | 7,570 | 195 | /**
* 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... |
53776751bc1533201f320bea9ae86e6da5606bdac1d9b2fcd4457f882de0e9aa | TypeScript | 7,575 | 239 | import { resolve } from 'node:path';
import {
readTranscript,
parseTimestampToNs,
extractTextContent,
findLastUserMessageIndex,
findFinalAssistantResponse,
} from '../src/transcript';
import type { TranscriptEntry } from '../src/types';
const FIXTURES_DIR = resolve(__dirname, 'fixtures');
// =============... |
55dbc026b08f599b50900d65e1b4de1cd354bda17d96391a93ea4da8933902c7 | TypeScript | 7,592 | 203 | /**
* 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... |
98400d53baa574ad61924597bad27abad3310a8ab425c94b820da52740eec775 | TypeScript | 7,597 | 273 | import { useCallback } from "react";
import { useMutation } from "@tanstack/react-query";
import { isDefined, useAPI } from "@humansignal/core";
import { getProviderConfig } from "../providers";
import { omitHiddenProviderFields } from "../types/provider";
interface UseStorageApiProps {
target?: "import" | "export";... |
8c59a25d76cbd19d031296ef709c9834fd2ae3cb96e50dd16bbc84e1cb8a7ecd | TypeScript | 7,625 | 264 | /**
* 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... |
e327e8597b7acd51af129cff0733824275e41cc0347c322a19b0ab4fa54ff1a9 | TypeScript | 7,628 | 228 | /**
* 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... |
1b18fbaf841c3a41c5362e44a2464ee736789495de3c8d4bc3c6fede4ce98f78 | TypeScript | 7,635 | 358 | /**
* @file Animation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3, Quaternion } from 'three'
import { defaults, ensureVector3, ensureQuaternion } from '../utils'
import { lerp, smoothstep } from '../math/math-utils'
import ViewerControls from '../controls/viewer-controls'... |
d5494b72d2e4ba80cd2fabbe50329d04d800d393a177b3741213c35770ebc7b2 | TypeScript | 7,640 | 209 | import { describe, expect, it } from 'vitest';
import {
buildSearchQuery,
escapeIlike,
highlight,
highlightDescription,
highlightFor,
MAX_PAGE_SIZE,
tokenize,
} from './search';
function sqlFor(query: string, filter = {}) {
const built = buildSearchQuery(query, filter, 50, 0);
if (!built) throw new ... |
0f0b2d24ef5609ede9663554816cfe8900872d86fbb1f4e0524f1c5ccda258d2 | TypeScript | 7,646 | 238 | /**
* @file Picker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3 } from 'three';
import { ArrowPrimitive, BoxPrimitive, ConePrimitive, CylinderPrimitive, EllipsoidPrimitive, OctahedronPrimitive, SpherePrimitive, TetrahedronPrimitive, TorusPrimitive, PointPrimitive, WidelinePr... |
02208c509954ee61136450b9eb1459aa6fd173a80182d1eb10b59325e964cec4 | TypeScript | 7,656 | 191 | /*
* 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 ... |
4fdc56d0b4117ce5f7521d39ea8f4f73bc171663ced357286be579bdeb1ff5d1 | TypeScript | 7,676 | 200 | /**
* 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... |
8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8 | TypeScript | 7,692 | 145 | /*! *****************************************************************************
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.... |
403278fe4f5a1a6a9bd6f201f2e10a1fb0d09affb2faa502aa92431186feb271 | TypeScript | 7,697 | 174 | import { getRecentFilterFields, addRecentFilterField, updateRecentFilterField } from "./filter-recents";
describe("filter-recents", () => {
const projectId = 42;
const storageKey = `dm:recentFilterFields:${projectId}`;
beforeEach(() => {
localStorage.clear();
});
describe("getRecentFilterFields", () =>... |
deb5f8899f7cfd8b62b1ad18e0963034aed94529d376bd482f4e36aba537a2d3 | TypeScript | 7,706 | 257 | /**
* 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... |
36069e91e355d736a0a2e2416513d0d05af86cc212a0260c156440c7934a0793 | TypeScript | 7,715 | 186 | /**
* 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... |
b2b3895ba426a069db3574c892057ca3d4b7bdca822f37c9865e84807028a554 | TypeScript | 7,733 | 215 | import { Hotkeys, ImageView, LabelStudio, Labels, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import { magicWandConfig, magicWandData } from "../../../data/image_segmentation/tools/magicwand";
import { drawMask } from "../../../../../src/utils/magic-wand";
describe("Image segmentation - Tools - MagicWand"... |
abfe24e3119705d64fc9461b1834da845778d834b7ba93b3099d20a69eaa4e69 | TypeScript | 7,734 | 237 | import { type Instance, types } from "mobx-state-tree";
import { ff } from "@humansignal/core";
import { FF_DEV_3391 } from "../utils/feature-flags";
const isSyncedBuffering = ff.isActive(ff.FF_SYNCED_BUFFERING);
/**
* Supress all additional events during this window in ms.
* 100ms is too short to notice, but covers... |
c686e974f2649b4eaa3505e1a002b2f7d97d8721b453152ea31a411a9f6617a2 | TypeScript | 7,735 | 303 | import { BehaviorSubject, Observable } from "rxjs";
import { distinctUntilChanged } from "rxjs/operators";
import { getUuid, retry } from "src/util/fn";
import { PeriodicSvc } from "src/util/periodic.service";
import { NehubaLayerControlService } from "src/viewerModule/nehuba/layerCtrl.service";
export type TNgAnnotat... |
c5fc272e51821ee34739117bbf5ec63e70bfb20163f5e4ca03c2672df9dbcedd | TypeScript | 7,741 | 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... |
844a3ad3a5ba5c785c6d1dd3084c78be7ee1fd890622510bbe44000f595e521c | TypeScript | 7,752 | 281 | /**
* 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... |
264583dc7c37a1d8d050d574b61dcb084aa358d6dda7cf603cd2d87fdbea275d | TypeScript | 7,757 | 208 | /**
* 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... |
8c11bf6a56b214728951509ee5668357e7baeba3e974b80cdb19f9731809fecd | TypeScript | 7,783 | 246 | /* eslint-disable no-negated-condition */
/**
* 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 Li... |
417b02737ccad28183fc7ca2a99b4bee5f947949a38d45b855c011b87eb037fd | TypeScript | 7,793 | 217 | /**
* 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... |
d0728fbfabaf87ba60b18bcf0155f2a47befedc7d590af0fe6b1b7c0cacba809 | TypeScript | 7,798 | 177 | /**
* @file Structure Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { RepresentationParameters, default as Representation } from './representation';
import Selection from '../selection/selection';
import { RadiusType } from '../utils/radius-factory';
import Structure fro... |
8b369d349d5013e33ae2e8b59c77e00fe85e378d8eeff4513184b68923fc021d | TypeScript | 7,806 | 239 | /**
* 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... |
01e060cf3750062c4f9a93d653b84c28eca2882fa42b108165282d43d7171f96 | TypeScript | 7,820 | 247 | /**
* 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... |
c6b8e6f53698bdae55289d97a981bf9cdf410ba60021fb21e6cbe34464218752 | TypeScript | 7,821 | 210 | /**
* 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... |
ef1cbed50022806b6a59e1796296acf31c26a27e5ce0662eebfe5a97cdb034bd | TypeScript | 7,826 | 217 | /**
* 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... |
e921b10db7bbe41bc91a7bffa9faa016f25df340faa7ce92436af3d8aa19d55f | TypeScript | 7,839 | 212 | /**
* 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... |
f1aea02880052c9915dd08b2f70b1e2ed422c4665b27d85ef8f9c70d898a4051 | TypeScript | 7,842 | 240 | /* 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, Versio... |
7ea96ee47899972411791c09c910313b6a737730905298c4df7edcfbfe98c0e4 | TypeScript | 7,844 | 242 | /**
* 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... |
3378880a10ca34a965178dd1b7accd1608131835ecba3fe90998e7e290c2a914 | TypeScript | 7,851 | 349 | /**
* 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... |
9b63ab12db82b7e2d38ddc88ec7f1be57d30430ad5cdd0223e4c6da29f351f3d | TypeScript | 7,855 | 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 ... |
73d025a6bb0f33c8066d928a3c212ef17f7aa8c83214176ed4f559a34148de9a | TypeScript | 7,862 | 188 | /**
* 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... |
c7140e99604e3d748a30a80d31b45cd906f853fe08289e9ba58676499842355c | TypeScript | 7,875 | 278 | /**
* @file Kdtree
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { NumberArray } from '../types'
import BinaryHeap from './binary-heap'
/**
* Kdtree
* @class
* @author Alexander Rose <alexander.rose@weirdbyte.de>, 2016
* @author Roman Bolzern <roman.bolzern@fhnw.ch>, 2013
* @aut... |
c5f14acaae2b6bcf5c04ddae9b4ef618cbff2e19018272cea3f2e834e7b70749 | TypeScript | 7,912 | 268 | /**
* @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';
export interface IOBufferParameters {
offset?: nu... |
4fed9ace54d8d4e77c720a1b93454c8c7e6ea975587435ea66a040f0d713afea | TypeScript | 7,913 | 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... |
76ad41cf370090ab62573fc87bd7f01586b7118104f913863bfd0c8fb0319519 | TypeScript | 7,926 | 242 | /**
* @file Metal Binding
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { defaults } from '../../utils'
import Structure from '../../structure/structure'
// import { valenceModel } from '../../structure/data'
import { Elements, AA3, Bases } from '../../structure/structure-constants'
// import { h... |
228645a7c357e487a4b394c602350c5ab9327d7d697467c53c3c5aa145f2afdf | TypeScript | 7,928 | 196 | import * as fsPromises from 'node:fs/promises';
import { mkdtemp, readFile, rm } from 'fs/promises';
import { tmpdir } from 'os';
import { join } from 'path';
import { BatchingWriter } from '../../../src/exporters/wal/batching_writer';
import { getWalPath } from '../../../src/exporters/wal/paths';
import { appendTombst... |
6e34ed36e59ea5d42ff1ef510bbce8b31b2f98563b23c46739f851e90442790e | TypeScript | 7,929 | 237 | /**
* @file Prmtop Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Debug, Log, ParserRegistry } from '../globals'
import StructureParser from './structure-parser'
import {
assignResidueTypeBonds, calculateBondsBetween,
calculateBondsWithin, calculateChainnames
} from '../st... |
25281bffe66b45079195f53991ff1e80f915d69c657b7d4bec4c8571f21000bf | TypeScript | 7,939 | 225 | /**
* 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... |
eb375ebb534bf3fa971398a0e81136bb962c181300d839848a17bbb7787ec8b3 | TypeScript | 7,942 | 261 | /**
* Transcript parsing utilities for Codex CLI rollout JSONL files.
*
* Codex CLI transcripts use a RolloutLine format defined in
* codex-rs/protocol/src/protocol.rs. Each line is:
* {"timestamp": "...", "type": "<variant>", "payload": {...}}
*
* Turns are delimited by event_msg task_started / task_complete ... |
410c2b9aaee3d7faf64d22853d9b8402d24b9877ecbf028569134cc06c5367f0 | TypeScript | 7,951 | 230 | import type Konva from "konva";
import type { BezierPoint } from "../types";
import { snapToPixel } from "../eventHandlers/utils";
export interface TransformResult {
newPoints: BezierPoint[];
transformer: Konva.Transformer;
}
/**
* Applies transformation from proxy nodes to real points
* This function handles b... |
87cd86bc5ca0b1084867c734532d83892bd1bf47bd396666c3fcaa6f0c65212d | TypeScript | 7,961 | 245 | /**
* @file Sdf Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Debug, Log, ParserRegistry } from '../globals'
import { assignResidueTypeBonds } from '../structure/structure-utils'
import StructureParser from './structure-parser'
const reItem = /> +<(.+)>/
class SdfParser ext... |
a308f983a3aa4362771dcf5d524eed97c7d128a6ac0e0387073e7fb8f96584fa | TypeScript | 7,974 | 303 | /**
* 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... |
c7bc0332afc325edff494f1913f935ce0793fcd4b38e772a0c5686d030f0af24 | TypeScript | 7,987 | 242 | import { useSyncExternalStore } from 'react';
import {
type AnalyticsEvent,
type DocsSiteOpenedEvent,
type Identity,
type LineageViewedEvent,
type ReferralLinkClickedEvent,
type ResourceViewedEvent,
type SearchPerformedEvent,
type UpsellPromptClickedEvent,
type UpsellPromptDismissedEvent,
type Upse... |
97c8b8157e436a45d7126d5d2bffed03e5f0dee1be2d4b3cac34446261b5a81b | TypeScript | 7,988 | 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... |
03084b8d7936834a1835a32a2600b656de127f404e63b68cf98051abcf3f908b | TypeScript | 7,996 | 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 ... |
2ea574aa647be69832be1d600e1b4638bf9add780a985c51b6dad0eaf64a0d90 | TypeScript | 8,007 | 207 | /**
* @file Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Color, Vector3, Matrix4 } from 'three';
import Counter from '../utils/counter';
import Viewer from '../viewer/viewer';
import { BufferParameters, BufferSide, default as Buffer } from '../buffer/buffer';
import {... |
9fc4ec502a8ed48072b97a1d7e8ef5ca94fe684f7fffc91bdd31e00609b266d8 | TypeScript | 8,010 | 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... |
dfff1234334c51a98783bc453368e6318e7fcbcb0446fec2b3a28a6f07e882fe | TypeScript | 8,014 | 217 | import webfft from "webfft";
import { applyWindowFunction, type WindowFunctionType } from "../Visual/WindowFunctions";
import { MelBanks } from "./MelBanks";
import { SPECTROGRAM_DEFAULTS } from "../Visual/constants";
export type SpectrogramScale = "linear" | "log" | "mel";
export interface FFTProcessorOptions {
ff... |
16a388e25763f091ffdeb835d49e6f96c4d97c6a8739cbb3d3dc22d0d2aef5d4 | TypeScript | 8,021 | 202 | /**
* Shared TopBar contract types.
*
* These types are the only thing the shared TopBar layer in `@humansignal/core/lib/topbar`
* accepts. They MUST stay independent of MobX/MST and Jotai. Each editor implements a thin
* wrapper that maps its own state graph onto these props.
*/
/**
* Plain user shape consumed... |
4fe68ee768757b2cdc6999dd003364a491c3ec9465ad803df7991acda6183587 | TypeScript | 8,030 | 257 | /**
* 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... |
24d1ee5bc683f36b61045b86f3281d55b5e6ac43b9b4e07c3674d51fd38b54c4 | TypeScript | 8,041 | 232 | /**
* 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... |
52c954ed48659177de25256616abc834c766a13aaa9de92187608404e2e8397d | TypeScript | 8,057 | 306 | /**
* @file Vector Utils
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3 } from 'three'
import { NumberArray } from '../types'
import { EPS } from './math-constants'
/**
* Calculate the two intersection points
* Converted to JavaScript from
* {@link http://paulbourke.net/... |
796f6a655fa859fd59a796344b8a00d1714f33520056aebdb717fab8a2625ebd | TypeScript | 8,111 | 198 | /**
* 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... |
2566915faa2965fe37947fdac85c03806228c8df782ca2ad286d55592d220c96 | TypeScript | 8,113 | 225 | /**
* Unit tests for InteractivePromptMixin (mixins/InteractivePromptMixin.ts).
*
* We test the concrete `InteractivePromptMixinImpl` / `InteractivePromptMixinNoop`
* models directly rather than going through the flag-gated `InteractivePromptMixin`
* alias — Bun's module cache isn't reliably bustable per-test, and... |
cf6c45deffdd3fec7783b6c6a06e849bad18fb56521f240f3cdb41aeefac2a20 | TypeScript | 8,114 | 315 | import {
IAnnotationTools,
IAnnotationGeometry,
TAnnotationEvent,
IAnnotationEvents,
AbsToolClass,
INgAnnotationTypes,
TToolType,
TSandsLine,
getCoord,
TBaseAnnotationGeomtrySpec,
TCallbackFunction,
} from "./type";
import { Point, TPointJsonSpec } from './point'
import { Directive, OnDestroy } fr... |
b8bf2091ed18fb0bf181206473f931aa95ba7dc5c822f05fe60fbfe6eb52e4f9 | TypeScript | 8,131 | 287 | import { ChangeDetectionStrategy, Component, Inject, Input, OnChanges, OnDestroy } from "@angular/core";
import { Store, select } from "@ngrx/store";
import { isMat4 } from "common/util"
import { CONST } from "common/constants"
import { Observable } from "rxjs";
import { atlasAppearance, atlasSelection } from "src/stat... |
9ce1df2672651fa86862830f11cd9900dde54f746049605e0a4ebcbfded1ead2 | TypeScript | 8,136 | 248 | /**
* Pure filter logic for the annotations list.
*
* Applied *after* the capability-based type filter (enableAnnotations / enablePredictions)
* that already lives in AnnotationsCarousel. This layer adds user-facing filtering:
* text search, type toggle, and tri-state boolean status filters.
*/
import type {
An... |
34c75a6a03b1335dfce6659b0bb89159b9a0e57ed7822029ba9c977787382725 | TypeScript | 8,139 | 161 | import {TextEncoder} from 'util';
import {ANNOTATION_KEY_POD_NAME_VERSION} from './annotations';
import {NodeStatus, Workflow} from './models';
import {createFNVHash, ensurePodNamePrefixLength, getPodName, getTemplateNameFromNode, k8sNamingHashLength, maxK8sResourceNameLength, POD_NAME_V1, POD_NAME_V2} from './pod-nam... |
38d355a7c5b081090526c98a9b31c03ad0bdd895cde8eeb4d7c74bfd07c61f85 | TypeScript | 8,160 | 219 | /**
* 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... |
54bf9472cc42286893406b24c9897d64bcbc7af3c5121a2a04082e0975a0da4c | TypeScript | 8,181 | 224 | /**
* 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... |
8a9e9bbbd575033102cdb3f7dc666b3a2a8df2e3bad9df34c12d31973ccc0587 | TypeScript | 8,189 | 257 | /**
* 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... |
68c0ad75b4f6638c1dc32c01f9eeaf8a5a7151f9451861ac3f8429b5ab16e354 | TypeScript | 8,190 | 290 | /**
* 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... |
2d8c2df4cc49151ca2aa97e2d628d71ad6d6f8b1d8efb5f51d3c9986a76a430d | TypeScript | 8,209 | 224 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/events/fusion/query/query.proto (package v1.public.events.fusion.query, syntax proto3)
/* eslint-disable */
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { enumDes... |
40bc46db6f38e28352a6cdf64fab78e00f529eb846fe419853229a9288ae9ca7 | TypeScript | 8,216 | 269 | /*
* 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 ... |
ff8b4a675ebe21e5cae3aa97c94383680c1490576ce489ee608b5b67d49d8112 | TypeScript | 8,218 | 249 | /**
* 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... |
a0524c40309209cdab356938fcc58190761749eb26a2cd41e29b7f1f28db2f90 | TypeScript | 8,238 | 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... |
965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d | TypeScript | 8,245 | 166 | /*! *****************************************************************************
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.... |
01086daf27fd9098de7a43cc5814fa00ae675afa20a3ea9b7fd2ed93d3880d1c | TypeScript | 8,291 | 287 | /**
* TypeScript counterparts of Python `mlflow.entities.assessment` for the
* V3 assessments REST API. Field names on the wire are proto JSON (snake_case).
*/
export const AssessmentSourceType = {
SOURCE_TYPE_UNSPECIFIED: 'SOURCE_TYPE_UNSPECIFIED',
HUMAN: 'HUMAN',
LLM_JUDGE: 'LLM_JUDGE',
CODE: 'CODE',
} as... |
2a52610de481ba19c1bf094f5e558cca0cec625941bdee1324d8721b0d97a3ad | TypeScript | 8,299 | 266 | /**
* 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... |
84ed7fb54db68657baa0e6779450eb2bde3a0a4561256359dfbfa0ee7ab07d69 | TypeScript | 8,301 | 259 | import { DragDropModule } from '@angular/cdk/drag-drop'
import { CommonModule, DOCUMENT } from "@angular/common";
import { APP_INITIALIZER, NgModule } from "@angular/core";
import { FormsModule } from "@angular/forms";
import { AngularMaterialModule } from 'src/sharedModules'
import { AtlasViewer } from "./atlasViewer/... |
bc4f068c8e5289568a714b1586814ce8839672e6ba4addc2c25a0577301a8ed9 | TypeScript | 8,310 | 247 | import path from "node:path";
import { createRequire } from "node:module";
import type { AcceptedPlugin } from "postcss";
import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
import { djangoManifestPlugin } from "./vite-manifest-plugin";
import pos... |
bb7f5c9f9cf4c6a736f5d6f36d71946fab3063d6caecb1ebb405adc52a26a526 | TypeScript | 8,314 | 208 | /**
* Unit tests for WebAudioDecoder (lib/AudioUltra/Media/WebAudioDecoder.ts)
*/
import * as utilsModule from "../../Common/Utils";
import { info } from "../../Common/Utils";
import { WebAudioDecoder } from "../WebAudioDecoder";
import type { Mock } from "bun:test";
function createFakeAudioBuffer(
overrides: { nu... |
223bca724205158d1e2421dce83a06f5c1834a17b73d28162ecd6e1d60f15477 | TypeScript | 8,348 | 284 | // biome-ignore-all lint/correctness/noUnusedPrivateClassMembers: AudioUltra; skip unsafe removal
import type { Interactive } from "./Interactive";
export interface InteractionManagerOptions {
container: HTMLElement;
pixelRatio?: number;
getLayerInfo?: (interactive: Interactive) => LayerInfo | null;
}
export in... |
02b0b57de9c8412f2093f14f06d79cd930fcce7feecf27d69f98329f509587d1 | TypeScript | 8,359 | 240 |
class CommonUtilities {
static timeTracker = new Date().getMilliseconds();
static alertType = {
"ERROR": 2,
"SUCCESS": 0,
"WARNING": 1,
"INFO": -1
};
static alertNumber = 0;
static isDiscreteValues(values: number[], threshold?) {
if (!threshold) threshold = 1... |
8dc369db811145bd45c0af0a8a38f88c9592b6babeaa6b582401de2a963e3440 | TypeScript | 8,365 | 249 | /**
* Sends docs analytics straight from the browser.
*
* The server-side relay (`POST /api/v1/analytics/events`) existed because ADR-9
* judged three things unsafe in the browser: enforcing consent, keeping PII off the
* wire, and CORS. Two of those no longer hold for a static site:
*
* - **Consent** is resolve... |
02b660e6e52829b3805c6a2b39b6a7563b7581dca69c08ba04e866a4190532f3 | TypeScript | 8,400 | 249 | import { Trace } from '../core/entities/trace';
import { ExportResult } from '@opentelemetry/core';
import {
Span as OTelSpan,
SpanProcessor,
ReadableSpan as OTelReadableSpan,
SpanExporter,
} from '@opentelemetry/sdk-trace-base';
import { Context } from '@opentelemetry/api';
import { createAndRegisterMlflowSpan... |
0c038f375e2add883b89519b15d8a118ce8e72ad3d6929c68209344d4daf80fc | TypeScript | 8,415 | 188 | import { Labels, LabelStudio } from "@humansignal/frontend-test/helpers/LSF";
import { RichText } from "@humansignal/frontend-test/helpers/LSF/RichText";
import {
multilineTextData,
simpleHyperTextConfig,
simpleHyperTextData,
simpleTextConfig,
simpleTextData,
} from "../../data/ner/emoji";
describe("NER - Em... |
646a3f6267047c1c95af42547585d239d44c647dcf273a2b34b0116da064ec22 | TypeScript | 8,434 | 257 | import type { BezierPoint } from "./types";
import { generatePointId } from "./utils";
// Create a new point with UUID and reference to previous point
export const createPoint = (
x: number,
y: number,
prevPointId?: string,
options: Partial<BezierPoint> = {},
): BezierPoint => {
return {
id: generatePoin... |
ed1cd185d0996be1df124dc847db957546d3ca74de9d23ad88d9da95752a983f | TypeScript | 8,441 | 282 | /**
* @file Mrc Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3, Matrix4 } from 'three'
import { Debug, Log, ParserRegistry } from '../globals'
import { ensureBuffer } from '../utils'
import VolumeParser from './volume-parser'
interface MrcHeader {
MAP: string,
MA... |
6104527dcc873e9be7374c532bc8644529b4bcdc268609ea84a3edb7f4ad4722 | TypeScript | 8,451 | 314 | /**
* @file Animation Controls
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3, Quaternion, Matrix4 } from 'three'
import { ensureMatrix4 } from '../utils'
import Animation, {
SpinAnimation, RockAnimation, MoveAnimation, ZoomAnimation,
RotateAnimation, ValueAnimation,... |
0fbedddd1c2b0ec133d23154f3d056d3afabc1020daf896769adc031dd6381f4 | TypeScript | 8,473 | 291 | import { Component, inject, Inject, OnInit, Optional } from '@angular/core'
import { select, Store } from '@ngrx/store';
import { combineLatest, Observable, of } from 'rxjs';
import { debounceTime, distinctUntilChanged, map, startWith, takeUntil } from 'rxjs/operators';
import { isIdentityQuat } from 'src/viewerModule/... |
8fff3c9db96b40b0a5a73e74a9f80850abc5d02001ee24897e08b8e74b671032 | TypeScript | 8,477 | 286 | /**
* 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.