sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
870ae95c29538083580b48aa2a1e647ba92fdea922fef419842b5c672bfcb289 | TypeScript | 5,353 | 164 | /**
* 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... |
50f0e476bdf1f5aa147f27134ef7862b5f2b0add09b64d6b731d61c71cadca64 | TypeScript | 5,355 | 143 | /**
* 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... |
6b47bc4ce08bfb29830d8ceaa466e2aa5f737f49b70787f7b3f09c45bedfc212 | TypeScript | 5,355 | 163 | import { Injectable, OnDestroy } from "@angular/core";
import { Actions, createEffect, ofType } from "@ngrx/effects";
import { select, Store } from "@ngrx/store";
import { combineLatest, NEVER, of, Subscription } from "rxjs";
import { debounce, distinctUntilChanged, filter, map, mapTo, switchMap, tap, withLatestFrom } ... |
986d8a75fa590e1396a6c8f856e745a0c75f65edd08239e9dd95d8be470ff815 | TypeScript | 5,358 | 197 | import { AbsToolClass, getCoord, IAnnotationEvents, IAnnotationGeometry, IAnnotationTools, INgAnnotationTypes, TAnnotationEvent, TBaseAnnotationGeomtrySpec, TCallbackFunction, TSandsPoint, TToolType } from "./type";
import { Observable, Subject, Subscription } from "rxjs";
import { Directive, OnDestroy } from "@angular... |
3653b3263fd43aa1c41b3e4faa576b4cc641db74b82636172e6beae099407730 | TypeScript | 5,360 | 182 | /**
* 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... |
002d8dbaea06153ccae3c10e7b18cb8e6a2d89036c0796b8e071ac1a80f62054 | TypeScript | 5,363 | 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... |
80e4a66b898dca28353b2bb267607eb97cbab93c0e03a426a5aec1025fa9b37a | TypeScript | 5,366 | 214 | import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse, HttpErrorResponse } from "@angular/common/http"
import { Injectable } from "@angular/core"
import { interval, merge, Observable, of, Subject, throwError, timer } from "rxjs"
import { catchError, filter, finalize, map, switchMap, switchMapTo, t... |
431d62bcd19407d0560bf3110f5e5fd8760de8d6f5f00b07791d42ed9ec1a416 | TypeScript | 5,368 | 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 ... |
522b6d91df5ff406fb604527e7191560330ed98c2604c650266825abd42ff24e | TypeScript | 5,368 | 153 | /**
* 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... |
86e90183fbbafcdb83c8a5aed7d687c194b35e2554b0e4a2c0bd4a8b4a04e251 | TypeScript | 5,373 | 138 | import type { Edge, Node as ReactFlowNode } from '@xyflow/react';
import { describe, expect, it } from 'vitest';
import { applyDagreLayout, NODE_HEIGHT } from './dagreLayout';
const ROOT = 'model.jaffle_shop.customers';
/** A card of a given measured size. Widths vary because a card is as wide as the name
* it ren... |
96dcc88f2166975c3349cc8cbbc017bb052b360d969405afc477281c5faa501e | TypeScript | 5,374 | 209 | /**
* 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... |
2561faecba8d93950ef92c9bf7deab2fc515b9f85a994ed9619c1ea8b15101a0 | TypeScript | 5,384 | 140 | /**
* 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... |
6bb985f9158bb5c68d44985987d17bd18315eccd498af65936c7f6a212339877 | TypeScript | 5,395 | 211 | /**
* 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... |
d73796ba6e99ee881ccbfc8650428bfb51fab0453f08a60b15fe31a15bbbd4d2 | TypeScript | 5,396 | 162 | /**
* 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... |
01e6fb6599717a924b2bc37f49d97f3641358c1a430019c91cb558ba99af6a31 | TypeScript | 5,401 | 139 | /**
* 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... |
0e3b175f87c5a1c8186ac32a9695d314e84effd702b24543c36ae6757bae1714 | TypeScript | 5,406 | 165 | /**
* 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... |
77d8d60eff3906c75fda19eea025961dc705120f0a35b2ebdca7f7f1ea0b6ba2 | TypeScript | 5,409 | 141 | /**
* 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... |
2006f9c8e799f7c1341c085b4d554c850928c102cb3f5629ff03fd5533803824 | TypeScript | 5,411 | 165 | /**
* 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... |
435b1f59a4010151b60ba8f438e546214a3193ad0125c0810f204066c421c5dd | TypeScript | 5,416 | 162 | /**
* 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... |
838ef546fba4676abab5242c9bf05a950d1474918e2c6ee4b6cd1cc828b41d53 | TypeScript | 5,418 | 166 | /**
* @file Colormaker Registry
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Colormaker, { ColormakerConstructor, ColormakerParameters } from './colormaker';
import { SelectionSchemeData } from './selection-colormaker';
declare type ColormakerDefinitionFunction = ((this: Colormaker, p... |
46ff220ede3fa3c76d7a6e455cdbc8900b3277fa027c795472eb7105490e8a26 | TypeScript | 5,423 | 183 | /**
* 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... |
c248db85b1e80703578cfe6956c493bafa19e9abcba22d7649cc0ec0e34f74ba | TypeScript | 5,433 | 192 | /**
* @file Top Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Debug, Log, ParserRegistry } from '../globals'
import StructureParser from './structure-parser'
import { WaterNames } from '../structure/structure-constants'
import {
assignResidueTypeBonds, calculateBondsBetween... |
6ae3ec9d17aa83bf3d8c722df8360b034a77ab5d9a25fc11a6cc3213a93a76a6 | TypeScript | 5,437 | 140 | /**
* @file Mouse Actions
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import PickingProxy from './picking-proxy';
import Stage from '../stage/stage';
export declare type ScrollCallback = (stage: Stage, delta: number) => void;
export declare type DragCallback = (stage: Stage, dx: number, dy:... |
e2fa875042876f19f25d6db7b12d3b378caacce95b8d65e1653c9a71975067ac | TypeScript | 5,440 | 177 | /**
* 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... |
fb9c1c9bdc5332bd4982f95f580108d829a9192ba06971545c4771267c53adba | TypeScript | 5,450 | 149 | import { mkdir, readFile, writeFile } from 'node:fs/promises';
import { join } from 'node:path';
import { TraceTagKey } from '../../core/constants';
import { SerializedTraceData, TraceData } from '../../core/entities/trace_data';
import { TraceInfo } from '../../core/entities/trace_info';
import { JSONBig } from '../..... |
b729a7933cf4d1c72ffc0b689dd6e93a79aaaff7d80a851d643af97a6c69ff30 | TypeScript | 5,461 | 151 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/events/fusion/onboarding/onboarding.proto (package v1.public.events.fusion.onboarding, syntax proto3)
/* eslint-disable */
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
i... |
d527f97beb762e90374b01e306d35aca371aeb6f84cd7f4062be9316adb3db18 | TypeScript | 5,467 | 189 | import { Observable, Subject } from "rxjs"
import { getExportNehuba, getUuid } from "src/util/fn"
import { IMessagingActions, IMessagingActionTmpl, TVec4, TMat4 } from "../types"
import { INmvTransform } from "./type"
export const TYPE = 'bas:datasource'
const NM_IDS = {
AMBA_V3: 'hbp:Allen_Mouse_CCF_v3(um)',
WAX... |
dbbd11242c7ec8946058d564c5107524b616d0090a79d336d1df8136ded8ddd4 | TypeScript | 5,477 | 169 | /**
* 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... |
1b4adbdfa0928925345ba894b54aef596164892e4b145b86899195ae6c5f2edb | TypeScript | 5,490 | 221 | /**
* @file Double Sided Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
// @ts-ignore: unused import Vector3, Matrix4 required for declaration only
import { Group, BufferGeometry, Object3D, Mesh, LineSegments, Vector3, Matrix4 } from 'three'
import Buffer, { BufferSide } from './buffe... |
0dc4e3a7cb6329f56bbd063dbe8ef006ac5141df195b22b0294438b777ee962a | TypeScript | 5,491 | 170 | import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs';
import { homedir, tmpdir } from 'node:os';
import { join, resolve } from 'node:path';
jest.mock('node:os', () => ({
...jest.requireActual<typeof import('node:os')>('node:os'),
homedir: jest.fn(),
}));
import {
readTranscript,
parseTimest... |
30fd4aae5f1df1bc480fb0503d7e21d20258c6779748fa92d6a78c3f834c4b40 | TypeScript | 5,497 | 162 | /**
* 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... |
5cbb75a55b59d858849a9f0286834969e28be366c5b25cc635cefa21ca90f052 | TypeScript | 5,501 | 199 | import { Component, HostListener, Inject, OnDestroy, Output, EventEmitter, Optional, ViewChild, TemplateRef } from "@angular/core";
import { MatDialog, MatSnackBar } from 'src/sharedModules/angularMaterial.exports'
import { combineLatest, Observable, Subject, Subscription } from "rxjs";
import { distinctUntilChanged, m... |
e3688ba05a8039f05a3bafd39df20824e2a53b45ae74f35f3d6546f1c6a80088 | TypeScript | 5,510 | 189 | /**
* 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... |
bc777a41b5fe06b235b8afc0c9f83aa4fb9d82e0e0244bd576a14863192cc2ef | TypeScript | 5,517 | 194 | import { ImageView, LabelStudio, Relations, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
const config = `
<View>
<Image name="img" value="$image"></Image>
<RectangleLabels name="tag" toName="img">
<Label value="Planet"></Label>
<Label value="Moonwalker" background="blue"></Label>
... |
7134682e5fc9aa95ddff927cfcb70a5b39293b318d2b665c70a739e895c041cb | TypeScript | 5,518 | 190 | import { JSONBig } from '../core/utils/json';
import { HeadersProvider } from '../auth';
const MAX_ERROR_BODY_LENGTH = 1000;
/**
* Error thrown when an HTTP request to the MLflow backend returns a non-2xx response.
* Carries the parsed status code and (when present) the `error_code` field from the
* response body ... |
50cbe90f426834d641772ccf30a2139b46313aa5dc0cd02919cb2380ff50ab2e | TypeScript | 5,525 | 184 | import { makeRequest, MlflowHttpError } from '../../src/clients/utils';
describe('makeRequest', () => {
const mockHeaderProvider = () => Promise.resolve({ 'Content-Type': 'application/json' });
beforeEach(() => {
// Clear all mocks before each test
jest.clearAllMocks();
});
afterEach(() => {
jest... |
b92728b119d8aa37a58b3731e7eded0afc196754c9ac5ec5b36645722eadf0ad | TypeScript | 5,528 | 141 | import {
TraceLocationType,
createTraceLocationFromUcTablePrefix,
getOtelSpansTableName,
getUcLocationString,
isUcTraceLocation,
ucTablePrefixLocationString,
} from '../../src/core/entities/trace_location';
import {
constructTraceIdV4,
generateTraceIdV3,
parseTraceIdV4,
} from '../../src/core/utils/tr... |
b0b3437a003d9d98fefc69bda62fd62f0aa056f8bfd2eb30801d6a695b159e1a | TypeScript | 5,537 | 208 | import { DEFAULT_HOTKEYS, HOTKEY_SECTIONS, getDynamicHotkeys, getDynamicSections, getDynamicVersion } from "./defaults";
// Type definitions - centralized here to avoid duplication
export interface Hotkey {
id: string;
section: string;
element: string;
label: string;
key: string;
mac?: string;
active: bo... |
0ee1fca9163228a85a74c8c77ff030fd631b8c303ed80e99815a50a36c35c241 | TypeScript | 5,540 | 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... |
c3955360f774f8fc16463daa83da715bacfa0a09b02d39d38116933483d71f4c | TypeScript | 5,548 | 123 | import { describe, expect, it } from 'vitest';
import type { ResourceType } from '../../typings/domain/asset';
import { DETAIL_REGISTRY, detailSpecFor, nodeColumnsSql } from './details';
describe('the detail registry', () => {
it('covers every type that had its own REST detail endpoint', () => {
expect(Object.k... |
a353ace28b46e4f1e8787b82425052d35f06792b92bde5ad633cea78a49f716e | TypeScript | 5,550 | 207 | /**
* @file Assembly
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4, Box3, Vector3 } from 'three'
import { uniqueArray } from '../utils'
import Selection from '../selection/selection'
import Structure from '../structure/structure'
import StructureView from '../structure/stru... |
705af9bb35e7d150267a76eb3517097750963ea1b7e6bafa754e022e96d69684 | TypeScript | 5,552 | 202 | import designTokens from "../../../../design-tokens.json";
export type ColorFormat = "hex" | "rgb" | "rgba";
export type Theme = "light" | "dark";
export interface GetTokenColorOptions {
format?: ColorFormat;
alpha?: number;
theme: Theme;
}
type TokenValue = {
$type?: string;
$value?: string;
$variable_m... |
1c2b321db61ca732d17dc2b4359ca53442b8dd38e09e09ff059f102ea649e76f | TypeScript | 5,559 | 187 | import { ImageView, Labels, LabelStudio, Modals, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
const config = `
<View>
<Image name="img" value="$image"></Image>
<RectangleLabels name="tag" toName="img">
<Label value="Planet"></Label>
<Label value="Moonwalker" background="blue"></Label>... |
d05b247bb13993cac50eb0cb7d90aa73766a874c05bdfac23dac986175aefa0c | TypeScript | 5,559 | 153 | /**
* Unit tests for MaskConverter (ml-interactive/primitives/MaskConverter.ts).
*
* These are pure functions over binary masks — no DOM, no MST, no mocks
* needed. We cover the marching-squares contour tracer, the skeleton
* extractor, and the invariants they're supposed to hold (non-empty result
* on non-empty ... |
846cc2b6789e4339ca4f748c3642420e8d82960cf4bbb9f651da66964caee055 | TypeScript | 5,562 | 146 | import type { KonvaEventObject } from "konva/lib/Node";
import type { BezierPoint, Point, GhostPoint } from "../types";
import type { PointType } from "../types";
export interface EventHandlerProps {
instanceId?: string; // Add instanceId for tracker integration
initialPoints: BezierPoint[];
width: number;
hei... |
441308f039c7dc139eb04516ece6b84ad352c37c1e0fc31fa6b8798d28f2e3f2 | TypeScript | 5,566 | 192 | export const BitmaskDrawing = {
/**
* Draws initial point on the canvas
*/
begin({
ctx,
x,
y,
brushSize = 10,
eraserMode = false,
}: {
ctx: CanvasRenderingContext2D;
x: number;
y: number;
brushSize: number;
color: string;
eraserMode: boolean;
}): {
x: number... |
e4fa49743967f23462bf42db5646c37e918d103ea642ccf4139585fc4d17eb1d | TypeScript | 5,583 | 175 | /**
* 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... |
3c73bd65b76e9a06fbe8bf75b0f3b09048580ae8fe187be843d2938d6c85acd7 | TypeScript | 5,587 | 178 | /**
* 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... |
648a6b821573a467ffcca3e14ccbc51b506087e753dd2fa49a6bf8a85cd96e7e | TypeScript | 5,589 | 183 | /**
* Transcript parsing utilities for Qwen Code JSONL files.
*
* Qwen Code writes chat records to
* `~/.qwen/projects/<project-id>/chats/<sessionId>.jsonl`. Records have
* `uuid`/`parentUuid` for tree traversal but are also emitted in
* chronological order, so we walk them sequentially for span creation and
* u... |
df16a773869001cbed40d75eb5716f919ab496d85c8403099687ec1ec255ca8e | TypeScript | 5,589 | 193 | /**
* @file Trackball Controls
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3, Matrix4, Quaternion } from 'three'
import { defaults } from '../utils'
import Stage from '../stage/stage'
import MouseObserver from '../stage/mouse-observer'
import Viewer from '../viewer/viewer'
... |
4a1418b827cea28a3a3c52f74aeab415b9fb61f34a64eb2e28694bba4d571a82 | TypeScript | 5,603 | 160 | /**
* 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... |
5de4776e7f2c15aeefa6ceae80b76fcf4dca55f12c2d435ab6ef86b588d8f4af | TypeScript | 5,603 | 222 | /**
* @file Image Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3, Matrix4, DataTexture } from 'three';
import '../shader/Image.vert';
import '../shader/Image.frag';
import { Picker } from '../utils/picker';
import Buffer, { BufferTypes } from './buffer';
declare type Im... |
63a713690ae06fc568918774697a869903619148d7092229336f197b9954fdce | TypeScript | 5,606 | 182 | /**
* 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... |
3f877b26d7e9336ed2d920d20c8d5037e7f455d2e84af9c0151a0f9dde7ff806 | TypeScript | 5,609 | 172 | /**
* 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... |
7c65b1099848c175a23550cdbdc268d61d8adb08165fe9f7b564155e1ad1ba48 | TypeScript | 5,612 | 212 | /**
* @file Unitcell
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Color, Vector3, Matrix4 } from 'three'
import { defaults } from '../utils'
import { degToRad } from '../math/math-utils'
import {
uniformArray, uniformArray3, centerArray3
} from '../math/array-utils'
import { Uni... |
7f204c2158b677ef6ef51063a82a45a682025695493607beadff54c5fd99b9c3 | TypeScript | 5,613 | 159 | import { execFileSync } from 'node:child_process';
import { existsSync } from 'node:fs';
import { join } from 'node:path';
import { describe, expect, it } from 'vitest';
import { DETAIL_REGISTRY, GENERIC_DETAIL, nodeColumnsSql } from './details';
import { buildListQuery, FACET_QUERIES } from './lists';
import type { S... |
7b78914fdc6ecc0657c22b560a23314d0f42a7548e940b2410cc2fff6d3ad29c | TypeScript | 5,616 | 177 | import { Labels, LabelStudio, Relations, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import {
labelStudio_settings,
panelState,
resultWithRelations,
simpleConfig,
simpleData,
} from "../../data/outliner/region-index";
import { RichText } from "@humansignal/frontend-test/helpers/LSF/RichText";
imp... |
41ec35c0176db7f5be8b0210ef5ff32ad2046bff51108a4e8967baec75e76984 | TypeScript | 5,629 | 161 | /*
* 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 ... |
aae3f659a7ee12fbfb5c862d271643936b8e0b008778466abd26d958286dae09 | TypeScript | 5,638 | 150 | import path from "node:path";
import { cpSync, existsSync } from "node:fs";
import { createRequire } from "node:module";
import type { AcceptedPlugin } from "postcss";
import { type UserConfig, defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
import pos... |
49885aab64fdb7109136134ba3677e5bc3e7455a209a3470e1887e18c583b5df | TypeScript | 5,649 | 174 | /**
* 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... |
dd1a1729f8ef7570b4491dd9b7fbc052d0f5b404bb793835c438e576c51c49fe | TypeScript | 5,649 | 134 | /**
* @file Ball And Stick Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import StructureRepresentation, { StructureRepresentationParameters, StructureRepresentationData } from './structure-representation';
import WideLineBuffer from '../buffer/wideline-buffer';
import Viewer f... |
5b88d851dacf6c0f803233b0c77e9cf7b2a50821cb35152a235e2b10b36ae875 | TypeScript | 5,652 | 180 | import type { BezierPoint } from "./types";
export interface GlobalSelectionState {
selectedInstances: Map<string, Set<number>>; // instanceId -> selected point indices
activeInstanceId: string | null;
isTransforming: boolean;
transformerState: {
rotation: number;
scaleX: number;
scaleY: number;
... |
2594b3ef92540f4540dfc17dcda8ba76fac0b2098d2131e94802783d065dd57b | TypeScript | 5,655 | 184 |
class PairingHeap<T> {
private subheaps : PairingHeap<T>[];
// from: https://gist.github.com/nervoussystem
//{elem:object, subheaps:[array of heaps]}
constructor(public elem: T) {
this.subheaps = [];
}
public toString(selector) : string {
var str = "", needComma = false;
... |
5163b1482a616f63078af586c3bccd7d3fd6d33d6132d5051ebdf92dda8d2947 | TypeScript | 5,657 | 187 | // Test configurations with multiple label blocks for each object tag
export const imageRectangleLabelsConfig = `
<View>
<Image name="img" value="$image"/>
<RectangleLabels name="shapes" toName="img">
<Label value="Circle" background="red"/>
<Label value="Rectangle" background="blue"/>
</RectangleLabels>
... |
2f1e0edb4e27c397ae7c7279ce75da0d551024069868f3f3c8999e7b0d09e137 | TypeScript | 5,666 | 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 ... |
239367658ae2a7b7b2f11694779b2a56083aec0d39ba66f4955823cccde14561 | TypeScript | 5,673 | 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... |
26cb675b6882f160ef523cb8324a62b1bb3b124c028246de32d2df5aa5b08261 | TypeScript | 5,684 | 152 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/common/vortex_telemetry_contexts.proto (package v1.public.common.vortex_telemetry_contexts, syntax proto3)
/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
impor... |
99108845399e0141a9ad8bbede5d8d52ace8e0129bcb6a5ad03e48776ea43c55 | TypeScript | 5,685 | 158 | /*
* 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 ... |
203c62e44a387a177479bd1d527f393498d05f48e3bbdf6ec6434fab68e8bf44 | TypeScript | 5,686 | 180 | import type { FileEntry } from '../shared';
import { buildFileTreeItems } from './fileTree';
function entry(overrides: Partial<FileEntry>): FileEntry {
return {
uniqueId: 'model.pkg.x',
name: 'x',
resourceType: 'model',
packageName: 'pkg',
originalFilePath: 'models/x.sql',
patchPath: null,
... |
6d55b112c1b01d8ed6fe35ef3bdf3cf988554784d483e09b7c0d91f264fc4e7c | TypeScript | 5,700 | 183 | import { ImageView, LabelStudio, Relations, Sidebar, Tooltip } from "@humansignal/frontend-test/helpers/LSF";
const config = `
<View>
<Image name="img" value="$image"></Image>
<RectangleLabels name="tag" toName="img">
<Label value="Planet"></Label>
<Label value="Moonwalker" background="blue"></La... |
a59539842479c3acfad7af8f10109b227b269b7d8fbbdbf95dbd04899fb73297 | TypeScript | 5,705 | 207 | import { readFileSync } from 'node:fs';
import type { TranscriptEntry } from './types.js';
// ============================================================================
// Constants
// ============================================================================
const NANOSECONDS_PER_MS = 1e6;
const NANOSECONDS_PER... |
cb5010e962b4ea06fa93ac861caded2efc018f29764d2bd6399fe39c7f2a314a | TypeScript | 5,705 | 174 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/events/fusion/hook/hook.proto (package v1.public.events.fusion.hook, syntax proto3)
/* eslint-disable */
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { enumDesc, ... |
7c44884d540832198b61fd9cffca33ac1308a5ba38d4c45a764e7973cdcacb20 | TypeScript | 5,706 | 199 | /**
* @file Mol2 Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Debug, Log, ParserRegistry } from '../globals'
import {
assignResidueTypeBonds,
calculateChainnames, calculateSecondaryStructure,
calculateBondsBetween, calculateBondsWithin
} from '../structure/structure-ut... |
eb0c7749d563532f079c891508e37a19c161638bc5ea7b68179d6be05f52675d | TypeScript | 5,712 | 209 | /**
* 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... |
cf25f0b94e5448396abeee812feb3227aff232ebff3fa25c3aa063535f7eddab | TypeScript | 5,721 | 164 | /**
* 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... |
f0f93e4d21d776d17dc8d3d732c6a9599439bcf57ba863cbfe3e7726d2450afa | TypeScript | 5,723 | 215 | /**
* 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... |
13372813d331c15ce80d4efc95d3a5a6beec9ab193833636e7f0bed30a08429a | TypeScript | 5,725 | 193 | /**
* 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... |
caa0d9e0db4fca5ca60b46293e516568a846d72233a7c6593c32296d5bef47f5 | TypeScript | 5,729 | 137 | /**
* Shared types for the dbt-docs-v2 upsell surface — consumed by
* `UpgradeCard`, `UpgradeStatusPanel`, and `UpgradeRailStack`.
*
* The kind / user-state matrix and per-cell copy come from the
* "Gating and UI Review for docs v2" doc (Notion 358bb38e-bda7-…),
* which is the source of truth for what ships in th... |
7ce2c2f7b98b33b141083b91c3603e448687fabb01ea986a8a1452771aff7ec4 | TypeScript | 5,730 | 162 | import { ImageView, LabelStudio, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import { image, imageToolsConfig } from "../../data/image_segmentation/ctrl";
describe("Image Segmentation - Drawing with ctrl pressed", () => {
it("should add region to selection when something selected - Rectangle", () => {
... |
5f04aa4f6930196f81323f124f01912a62a6dfbaa7b04ef3fec0dfc4622408cf | TypeScript | 5,740 | 123 | /**
* @file Label Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { LabelType } from '../utils/label-factory';
import StructureRepresentation, { StructureRepresentationData } from './structure-representation';
import TextBuffer from '../buffer/text-buffer';
import { Repres... |
f628be62954ee385ce6b3d7309c75ba9e061d6c4ae48c19dfee1492e2c4fc745 | TypeScript | 5,742 | 219 | /**
* @file Ribbon Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import '../shader/Ribbon.vert'
import { getUintArray } from '../utils'
import { serialArray } from '../math/array-utils'
import MeshBuffer from './mesh-buffer'
import { BufferParameters, BufferData } from './buffer'
imp... |
1ff44b9c750c8d5a5f7841064faa4068b05b98c9238d584a339693b5ab986ea2 | TypeScript | 5,746 | 151 | import { ImageView, LabelStudio, Labels, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import { bitmaskConfig, bitmaskImageData } from "../../../data/image_segmentation/tools/bitmask";
describe("Image segmentation - Tools - Bitmask", () => {
it("creates a bitmask region with serializable pixel payload", (... |
f16bafc6c365abc6c0873fd07c4ab8b036f13df8bb66cdc22512fc10213b32ff | TypeScript | 5,746 | 179 | /**
* 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... |
f2afdf152dccbaeedb107da1b7d2b83c0bbfbed32d86594c3bd320489326c51b | TypeScript | 5,748 | 185 | /**
* @file Slice Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { defaults } from '../utils'
import Representation, { RepresentationParameters } from './representation'
import ImageBuffer, { ImageBufferParameters, ImageBufferData } from '../buffer/image-buffer'
import V... |
96587a786a73df746a7ac844ac05ec07da98a75311838f02157511998a4883ef | TypeScript | 5,757 | 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... |
f38bee3ac79649092f78855d3a7ce13a0035d59dbe1554dbf049bda77fa6f2eb | TypeScript | 5,759 | 182 | import { useChoices, LabelStudio, Textarea, ImageView, Sidebar, Choices } from "@humansignal/frontend-test/helpers/LSF";
import {
multipleChainedViewsVisibilityConfig,
perRegionVisibilityConfig,
perRegionVisibilityResult,
simpleVisibleWhenVisibilityConfig,
textareaVisibilityConfig,
visibilityImageData,
vi... |
5b30287b3cbb053290bdd4ec180d7e9fbaa7e3fbbfebd77938946602d4fcad29 | TypeScript | 5,762 | 153 | import { beforeEach, describe, expect, it, mock } from "bun:test";
import { effectiveHotkeys, mergeCustomHotkeys, toEditorKeymap } from "./effectiveHotkeys";
describe("effectiveHotkeys", () => {
beforeEach(() => {
window.APP_SETTINGS = {
user: { customHotkeys: {} },
editor_keymap: {
"annotati... |
490b074c8d285f0c58aea7630e33dbf0441e2f9bfdab820687482055b2daa7f6 | TypeScript | 5,773 | 142 | /*
* 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 ... |
e862332186ae5b79094ec2b6cf657c30f806eeecaa0835367fb1d37853e6c9dc | TypeScript | 5,785 | 206 | /**
* 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... |
cc61f5396ea808db9a16c83b66011d7260e3c51ca4aa4995bd5ae0f9314d1d36 | TypeScript | 5,792 | 210 | /**
* @file Rocket Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { RepresentationRegistry } from '../globals'
import { defaults } from '../utils'
import { AtomPicker } from '../utils/picker'
import StructureRepresentation, { StructureRepresentationParameters } from './s... |
6fe0add4987b7ed29bf662fc92049104e2e9e73bd82b5fb1a9b871f92b2c21b5 | TypeScript | 5,794 | 140 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/common/vortex_options.proto (package v1.public.common, syntax proto3)
/* eslint-disable */
import type { GenEnum, GenExtension, GenFile } from "@bufbuild/protobuf/codegenv1";
import { enumDesc, extDesc, fil... |
41804e73271c97b7a20068352c97acf439933d791644850ff21b15ba9e060191 | TypeScript | 5,800 | 181 | import { existsSync } from 'node:fs';
import {
getEffectiveTracingConfig,
isValidTrackingUri,
parseTraceLocation,
resolveExperiment,
resolveSettingsPath,
writeTracingSettings,
type ConfigPathOptions,
} from '../config.js';
export interface SetupOptions extends ConfigPathOptions {
trackingUri?: string;... |
8f865d83d79734d0d7b54cebcc74d82a1bc4f6ac14c20f99988f8e4387e1826d | TypeScript | 5,801 | 175 | /**
* 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... |
96d2cfceeb58d26ab4febb25d8d55c397cd31743d8e237ce420862da560b3f47 | TypeScript | 5,802 | 140 | import path from "node:path";
import { createRequire } from "node:module";
import { fileURLToPath } from "node:url";
import type { StorybookConfig } from "@storybook/react-vite";
import type { ESBuildOptions, Plugin } from "vite";
import postcssNested from "postcss-nested";
import autoprefixer from "autoprefixer";
impo... |
1e7be184a5cfa060114d6082a02c8f6aa721796fcd65dadb7d298d86a0c2d64e | TypeScript | 5,808 | 162 | /**
* @file Animation Controls
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3, Quaternion, Matrix4 } from 'three';
import Animation, { AnimationList } from '../animation/animation';
import Stage from '../stage/stage';
import Component from '../component/component';
import View... |
6e7f4b1657c9c2eaa119b45f4f7fd47a5e2e5541e8c11705348010ff8018c90a | TypeScript | 5,809 | 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... |
5a2448a714ba1a8057c36b0274979600ce29c4f7430abae9cdb785a97398781f | TypeScript | 5,821 | 210 | import {
deserializeTraceLocation,
serializeTraceLocation,
type SerializedTraceLocation,
type TraceLocation,
} from './trace_location';
import type { TraceState } from './trace_state';
import { TraceMetadataKey } from '../constants';
import {
assessmentFromJson,
assessmentToJson,
isFeedback,
type Assess... |
229e12e9196f9b67644fb1eee2da6f58d2a803327a2d879aba3c5c8d5051cff8 | TypeScript | 5,822 | 161 | import { Hotkeys, Labels, LabelStudio, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import { RichText } from "@humansignal/frontend-test/helpers/LSF/RichText";
import { configSimple, dataSimple, resultSimple } from "../../data/core/info_panels";
describe("Label Studio UI info panels", () => {
it("Open ev... |
51688a2634f5c9fbab8bb2b50f2a3d3988e4a207f73577c0f9658800e2dd31cb | TypeScript | 5,824 | 170 | /**
* @file Trajectory
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Signal } from 'signals';
import { NumberArray } from '../types';
import Selection from '../selection/selection';
import Structure from '../structure/structure';
import TrajectoryPlayer, { TrajectoryPlayerInterpolate... |
3c5d9a3cb1cbd6e7b03be1bd97b0a53d7cda86c7e42a3c7297f435aad487f85d | TypeScript | 5,833 | 185 | import { camelCase } from "@humansignal/core/lib/utils/string";
export const formDataToJPO = (formData: FormData) => {
if (formData instanceof FormData) {
const entries = formData.entries();
return Array.from(entries).reduce((res, [key, value]) => {
return { ...res, [key]: value };
}, {});
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.