sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
4cb365815ea8bf4d3e632078674e2f437dcf1f346a886cae6c1dca04dcfe36ff | TypeScript | 2,233 | 73 | import { ChangeDetectionStrategy, Component, ElementRef, Inject, Input, OnDestroy, OnInit, ViewChild } from "@angular/core";
import { fromEvent, Observable, Subscription } from "rxjs";
import { filter, share } from "rxjs/operators";
import {MAT_DIALOG_DATA, MatDialogRef} from "src/sharedModules/angularMaterial.exports"... |
1326fa08a20352bbd1e994720038d2f05a97a4d062d09d3d0880795560d4c7cc | TypeScript | 2,234 | 79 | /**
* Type declarations for the OpenClaw plugin SDK subpath imports.
*
* These types represent the OpenClaw plugin-sdk interface that this integration
* targets. Once OpenClaw publishes official TypeScript types, this file can
* be removed in favor of the `openclaw` package's own type definitions.
*/
declare mod... |
3c0325b692d7a659b633d9fe46db7fe98959e9564646581b5ac926ee7b492a13 | TypeScript | 2,236 | 58 | /**
* 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... |
6344281800cbfee9cbbef484b26b9d9d95c2f502a115a77ceb0236caa27d7131 | TypeScript | 2,236 | 64 | import { describe, expect, test } from 'vitest';
import type { FacetValue } from '../shared';
import { ALL_FACET_OPTION, facetOptions, selectedFacetOption } from './facetOptions';
describe('facetOptions', () => {
test('returns only the "All" option when values is undefined', () => {
expect(facetOptions(undefine... |
da82229488591d672bdb259fab680b901ece62871bc84f0a929f7185b6bf2930 | TypeScript | 2,239 | 51 | import { LabelStudio, Sidebar, useTaxonomy } from "@humansignal/frontend-test/helpers/LSF";
import { RichText } from "@humansignal/frontend-test/helpers/LSF/RichText";
import { textWithDualTaxonomyConfig, simpleTextData } from "../../data/control_tags/text-with-dual-taxonomy";
describe("Control Tags - Text with Dual T... |
df0bb316c325d4026c8ead15e0c051354cdd12f822f2b5a02316fbfc139e84ce | TypeScript | 2,242 | 85 | import { NgIf } from '@angular/common';
import { ChangeDetectorRef, Directive, Input, inject } from '@angular/core';
import { BehaviorSubject, combineLatest, concat, of } from 'rxjs';
import { debounceTime, filter, map, takeUntil } from 'rxjs/operators';
import { DestroyDirective } from 'src/util/directives/destroy.dir... |
89fa6c091da6338b234331ee6edd2aa163e620746b7f2257a0721c3fbf30ba2e | TypeScript | 2,243 | 83 | /**
* 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... |
dd3c78e39a4a48bc7feeda92e07ebad64e7d127a03de7b71b54f04289d99f0c8 | TypeScript | 2,245 | 64 | /**
* 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... |
b30d6bbbd28d188e950c1e97bcf5fdc7aa791acf06ce8f949a7a3dadfbc5534b | TypeScript | 2,246 | 49 | /**
* 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... |
1e80eb66b840f8647fba75f2192aec575e55d61edaff14a133decdbe5ed11892 | TypeScript | 2,250 | 73 | /**
* 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... |
5c4ff03939dbf7bc5ad94ba2b6ed6a288467f44a76e7e5c1f975c98b3bb4be34 | TypeScript | 2,251 | 69 | import { z } from "zod";
import type { FieldDefinition } from "./types/common";
import { getProviderConfig } from "./providers";
import { assembleSchema } from "./types/provider";
// Step validation schemas
export const step1Schema = z.object({
provider: z.string().min(1, "Please select a storage provider"),
});
//... |
984b72e83fce91d074660a1dd34c699a9b9f2ab697fdeafe796b94a10ef23752 | TypeScript | 2,251 | 49 | /**
* 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... |
12d1da14ccfd363781d4c72f25dd5429d3b241ab9a53ef7832bfecabeeab7b9c | TypeScript | 2,252 | 70 | /*
* 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 ... |
25ebb68d5a652bc01d3132914446e2793e2317e3b71455e43ff28f91cfbcfdd6 | TypeScript | 2,253 | 84 | import tags from "@humansignal/core/lib/utils/schema/tags.json";
import type { AttrSpec, ElementSpec } from "@codemirror/lang-xml";
export type SchemaInfoAttr = {
name: string;
description?: string;
type: string | string[];
required?: boolean;
};
export type SchemaInfoTag = {
name: string;
description?: s... |
0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376 | TypeScript | 2,257 | 53 | /*! *****************************************************************************
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.... |
5e066f687dffc2e9ad07d9808777952513c3e1c1d1645d6ace29be3bd6b0f267 | TypeScript | 2,259 | 64 | import type Keymaster from "keymaster";
import { useEffect, useRef } from "react";
import { Hotkey } from "../core/Hotkey";
type Keyname = keyof typeof Hotkey.keymap;
const hotkeys = Hotkey();
const attachHotkey = (key: Keyname, handler: Keymaster.KeyHandler, scope?: string) => {
if (Hotkey.keymap[key]) {
hotk... |
e201ac77d64539db24facbbb95899c900ee7af8790c13c504400656744caae86 | TypeScript | 2,259 | 77 | /**
* 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... |
e7e5dacfc7a8ad842ce83d10550f03cc843a9855a9bd4515d9fc58a2dd5cb96b | TypeScript | 2,261 | 60 | import path from 'path';
import { fileURLToPath } from 'url';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import { devSite } from './vite-dev-site';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export default defineConfig(({ mode })... |
af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74 | TypeScript | 2,262 | 48 | /*! *****************************************************************************
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.... |
0196f98c1b089995d4f289bcd18b360f6a0bdc00c6822a7274b46f52ba745403 | TypeScript | 2,264 | 56 | import {CoffmanGrahamSorter} from './coffman-graham-sorter';
import {Edge, Graph, Node} from './types';
const minSize = 1;
export function layoutGraphFast(graph: Graph, nodeSize: number, horizontal: boolean, hidden: (id: Node) => boolean) {
const gap = nodeSize * 1.25;
const layers = new CoffmanGrahamSorter(gr... |
914cd2816b2227176404bc989ed5fdc3cb31e2bed9bec4e7fa7ffcaa3c324e11 | TypeScript | 2,265 | 70 | /**
* 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... |
9c0bddef4fa9b0a315cb87bce8a9fd8529c19a7282e60b1c1a6e8f2328644cda | TypeScript | 2,265 | 60 | /**
* 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... |
334075f9b86de74048a5128448fad6953a07bc65f92fa680473282e99be40869 | TypeScript | 2,266 | 80 | import type { ProviderConfig } from "@humansignal/app-common/blocks/StorageProviderForm/types/provider";
import { IconCloudProviderAzure } from "@humansignal/icons";
import { z } from "zod";
export const azureProvider: ProviderConfig = {
name: "azure",
title: "Azure Blob Storage",
description: "Configure your Az... |
38bfb9f56eb196e25257c3bb57ed46a76ccaa5f65e2879d7535740e95be73033 | TypeScript | 2,267 | 56 | /**
* 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... |
cb42bf9b01237ab2984c9f5461e38a9473b5dec8d25088bef620af1fccc9fe58 | TypeScript | 2,267 | 71 | import { clamp } from "../../../../utils/utilities";
import type { TimelineRegionKeyframe } from "../../Types";
/** Default timeline viewport height when `timelineHeight` is not set on `<Video>`. */
export const DEFAULT_TIMELINE_VIEWPORT_HEIGHT = 64;
const KEYPOINT_ROW_HEIGHT = 24;
const KEYPOINT_VIRTUAL_OVERSCAN = 5... |
f1026c397adb22394aa0691b14c805bf9c3226bfe098d280596146b52e26c72b | TypeScript | 2,267 | 70 | /**
* 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... |
44a3beb534e9ba4e845cc121164e31b00ad609e18b3888cd1cdaa47609e7942c | TypeScript | 2,269 | 71 | import {
FF_FIT_ANNOTATIONS_VERTICAL_LAYOUT,
FF_INTERFACES,
FF_INTERFACES_AGENT_WORKFLOW,
FF_NEW_STORAGES,
FF_SEGMENT_ANYTHING_ML_BACKEND,
FF_THEME_TOGGLE,
} from "./flags";
const FLAGS_OVERRIDE: Record<string, boolean> = {
// While it's safe to have overrides living here forever,
// they could disrupt... |
302f4752811b2e7774d6d2499f76a7bfd58b963fad88c68d6e100e71b90454cb | TypeScript | 2,270 | 88 | import { Directive, Input, OnChanges, Output } from "@angular/core";
import { BehaviorSubject, Observable } from "rxjs";
import { distinctUntilChanged } from "rxjs/operators";
import { BoundingBox, SxplrTemplate, SxplrAtlas } from "src/atlasComponents/sapi/sxplrTypes"
type Point = [number, number, number]
type BBox = ... |
74e16a3208c6b65f7078a89a34ffa0c4109fafa8cc38f63dedb3d83c21326ef1 | TypeScript | 2,271 | 51 | /**
* 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... |
fa28c36016d5c49a7ffc9ae0a9e5ca03638839dc814ebeb89c29eefd4611d1a9 | TypeScript | 2,271 | 75 | /*
* 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 ... |
3d71f442f08294dd65d73cf32006ff4a77c5c1e36fa6cdc00c105169a020a88f | TypeScript | 2,272 | 74 | import { existsSync, readFileSync } from 'node:fs';
import { homedir } from 'node:os';
import { resolve } from 'node:path';
import { init } from '@mlflow/core';
let initialized = false;
const TRACING_CONFIG_FILE = 'mlflow-tracing.json';
interface TracingConfig {
trackingUri?: string;
experimentId?: string;
}
e... |
f2988ccd1b67681afec09273d7de00ed00b740595c54da2753a7fd91f81b5549 | TypeScript | 2,272 | 66 | /*
* 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 ... |
76ae1f3ea51f5184b3539c5beee1cdd01feb23e8797a70129ae130a97f43a48a | TypeScript | 2,274 | 67 | /**
* 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... |
96b1897920a052214c6ec5b8b9e887152ceaaa452dcbccc1c5dd057d810246c0 | TypeScript | 2,274 | 68 | import { Choices, LabelStudio, ToolBar } from "@humansignal/frontend-test/helpers/LSF";
import { FF_CUSTOM_SCRIPT, FF_REVIEWER_FLOW } from "../../../../src/utils/feature-flags";
enum RESPONSE_TYPE {
DRAFT = "draft",
SUBMIT = "submit",
}
const RESPONSE_DELAY = 100;
const WAITING_FOR_EVENTS_DELAY = 200;
describe("A... |
02402d8ad108383d4c41b7cb6fb2f815c234543a237eb192b93e4bcb0f7bf5d3 | TypeScript | 2,277 | 65 | /*
* 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 ... |
1682810e0d53a6b27809b96c80d809d9a2cb9945361cadf3a5a4942ec27e73ea | TypeScript | 2,277 | 70 | /**
* @file Cylinder Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3, Matrix4 } from 'three';
import CylinderGeometryBuffer, { CylinderGeometryBufferParameters } from './cylindergeometry-buffer';
import CylinderImpostorBuffer, { CylinderImpostorBufferParameters } from '.... |
ea795d7499902b756836cf20d5461354d21bb7f4d0c71f65d43ed291809395e6 | TypeScript | 2,277 | 75 | import type { APIUser } from "@humansignal/core/types/user";
import { getApiInstance } from "../../lib/api-provider/api-instance";
import { useAtomValue } from "jotai";
import { atomWithMutation, atomWithQuery, queryClientAtom } from "jotai-tanstack-query";
import { useCallback } from "react";
const currentUserAtom = ... |
679cddf4dec327e2388066fce367de496d40d6eb6840f468f13adf25617ed4d7 | TypeScript | 2,279 | 74 | import { spawn } from 'child_process';
import { tmpdir } from 'os';
import { mkdtempSync } from 'fs';
import { join } from 'path';
import { TEST_PORT, TEST_TRACKING_URI } from './core/tests/helper';
/**
* Start MLflow Python server. This is necessary for testing Typescript SDK because
* the SDK does not have a serve... |
fa7390dc343c0ddc76395e519bb35e3b512f0dcd8d0f382f805eb774dc55d870 | TypeScript | 2,279 | 74 | /**
* CLI dispatcher for `@mlflow/qwen-code`.
*
* Installed as the `mlflow-qwen-code` bin. Subcommands:
* - `setup` → registers the hook and writes mlflow-tracing.json
* - `stop-hook` → runs the Stop hook (reads stdin JSON from Qwen Code)
* - `--help`/`-h` → prints usage
*
* Qwen Code invokes `mlf... |
56e8378fd1bd7205c42eacd858124c99f42ec1f90d7aab567f98f7cdb9d3deca | TypeScript | 2,284 | 74 | /**
* @file Backbone Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { RepresentationRegistry } from '../globals'
import { defaults } from '../utils'
import BallAndStickRepresentation, { BallAndStickRepresentationParameters } from './ballandstick-representation'
import { ... |
d14c3b27d055bb012126254979a5eaebad747a3614942372eb2d9e6aa1c4d78a | TypeScript | 2,284 | 56 | /**
* 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... |
49e4594541eee9c0a9ef23209faeaf1d20b97ee25dea3eeafd208ae6b7adf275 | TypeScript | 2,286 | 86 | /*
* 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 ... |
baddd7f53dad3cdaa570dece2807e88a560e77a77126cf9e9c590aa7c5406517 | TypeScript | 2,289 | 78 | import { LabelStudio, ImageView, Taxonomy, ToolBar, Modals } from "@humansignal/frontend-test/helpers/LSF";
import {
perTagTaxonomyResult,
perTagMIGTaxonomyConfig,
simpleMIGData,
requiredPerTagMIGTaxonomyConfig,
TAXONOMY_REQUIRED_WARNING,
} from "../../../data/control_tags/per-item";
import { commonBeforeEach... |
96bb522990087d58e3f9784892ee49cb4532e555cf932fd5f6ab9bd47d10a3ae | TypeScript | 2,290 | 75 | /**
* 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... |
5b3307408b5843f28a3f779a0af2d00fa43fab4a072b703b183f21cd3f5a05be | TypeScript | 2,292 | 68 | /**
* 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... |
5b421d854337a8d2d3b871ca8145c609d693b83084f0874fdbf02ad1218a8970 | TypeScript | 2,292 | 77 | import { autocompletion, completionKeymap, startCompletion } from "@codemirror/autocomplete";
import { syntaxTree } from "@codemirror/language";
import { Prec, type EditorState } from "@codemirror/state";
import { keymap } from "@codemirror/view";
function isInsideOpenTag(state: EditorState, pos: number): boolean {
... |
e96dcd5264cc6e942a9930aebd4110d078f23a73bbb82f9c407629b79dc77f2a | TypeScript | 2,292 | 78 | import { Directive, OnDestroy } from "@angular/core";
import { Observable, Subject, Subscription } from "rxjs";
import { filter, switchMapTo, takeUntil, withLatestFrom } from "rxjs/operators";
import { Point } from "./point";
import { AbsToolClass, IAnnotationEvents, IAnnotationGeometry, IAnnotationTools, TAnnotationEv... |
3336008540d28f32cfe2907b90f25f1c1d3cc40eb2f812f867cb53c969fc7e66 | TypeScript | 2,293 | 79 | /**
* @file Wide Line Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
// @ts-ignore: unused import Vector3 required for declaration only
import { Vector2, Vector3, Matrix4 } from 'three'
import '../shader/WideLine.vert'
import '../shader/WideLine.frag'
import { BufferRegistry } from '... |
9dd95fecaee1bb1f26d7970720996ddf4193a1ba923ec69ab366bb64e13d0358 | TypeScript | 2,294 | 46 | /*
* 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 ... |
d60c8c8b6cb42626cee53406fd3aa507d3c69b375df59995fa47fed7d2194a68 | TypeScript | 2,294 | 56 | /*
* 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 ... |
0505c83a16369287aa2fac0af6d5d55bb9c0352e6c12fbb5cea3885aa488a353 | TypeScript | 2,295 | 73 | import { useCallback } from "react";
import { useToast, ToastType } from "@humansignal/ui";
interface UseCopyTextOptions {
successMessage?: string;
errorMessage?: string;
}
export const useCopyText = (options: UseCopyTextOptions = {}) => {
const toast = useToast();
const { successMessage = "Copied to clipboar... |
f9b0cf0c3ee3478ad7e592f74922e96df99dbd95c533809f50fe67a4cc9daa9e | TypeScript | 2,295 | 71 | /**
* 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... |
9ef478347494ae1fbfc9e64cdb343fc410bd0c91a1f55badd3fa0bbe5d9b1f22 | TypeScript | 2,296 | 56 | /*
* 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 ... |
3fbdcba1eb013534a7e1daf311e2d81310ca6f50ce84b16e570558521d2f1859 | TypeScript | 2,299 | 86 | import { Injectable } from "@angular/core";
import { ConfirmDialogComponent } from "src/components/confirmDialog/confirmDialog.component";
import { DialogComponent } from "src/components/dialog/dialog.component";
import { MatDialog, MatDialogRef } from 'src/sharedModules/angularMaterial.exports'
type TCancellable = {... |
e84b5c55c315273df985f620c15788890f18d8915076ac83953a72e5c963662b | TypeScript | 2,299 | 80 | /**
* 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... |
fc8e111ddfd9ba42d9c0ff56ca6861adf851172a2eecc3a1886df798ce5bd595 | TypeScript | 2,299 | 78 | /**
* @file Ellipsoid Geometry Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { IcosahedronGeometry, Vector3, Matrix4 } from 'three'
import { BufferRegistry } from '../globals'
import { defaults } from '../utils'
import GeometryBuffer from './geometry-buffer'
import { BufferDat... |
636873ea3f39cd12679da2f866bffcbb9a92e5ca317f261fd5195e86d34ee15c | TypeScript | 2,300 | 123 | /**
* @file Parse Xml
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
// https://github.com/segmentio/xml-parser
// MIT license
export type XMLNodeAttributes = { [k: string]: any }
export interface XMLNode {
name?: string
content?: string
attributes: XMLNodeAttributes
children?: XMLNo... |
c69f36533f180d59fc510cc04d2cae9a4b786549e50da974fb0dbf47feb76135 | TypeScript | 2,300 | 64 | /**
* @file Sphere Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
// @ts-ignore: unused import Vector3, Matrix4 required for declaration only
import { Vector3, Matrix4 } from 'three'
import { BufferRegistry, ExtensionFragDepth } from '../globals'
import SphereGeometryBuffer, { SphereG... |
481fe256ad75599f8f9135740f2791c9746a52bf2765a20287207755ea7aa03d | TypeScript | 2,307 | 88 | import { describe, expect, test } from 'vitest';
import type { AssetColumn, MacroAsset, ModelAsset } from '../shared';
import { getColumns, toRelationshipItem } from './assetView';
const column: AssetColumn = {
name: 'id',
description: null,
dataType: 'integer',
declaredType: null,
catalogType: null,
tags... |
08490274e6abd46274e5c2d6cc19423945fc54f0b61f6a224731d6d3ddf5ce24 | TypeScript | 2,308 | 85 | /*
* 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 ... |
1f3178b1cb57e87c9af2bb9d223d3fb87b005311162a4fc981d3fc8576f13c50 | TypeScript | 2,309 | 65 | /**
* 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... |
5662cb2bfe0933537b78db6a4214a872a73919c32bceb19ad18ddfb521328f10 | TypeScript | 2,313 | 59 | /**
* Error handling for the "Add or Update Columns" Data Manager action (`add_data_field`).
*
* The action can fail with field-level validation (e.g. an invalid Number/Expression value),
* and we want to show the user the specific reason in the dialog rather than a generic toast.
*/
const MAX_ERROR_LENGTH = 300;... |
2676f44b72192a52f43de6c15cd355041ea82964bd0cf36c25edd9b2d42e0cbc | TypeScript | 2,317 | 63 | /**
* 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... |
79b5c994e14ee10c9c5f9b3545c5820e7fe0db7034ab882b9195f42d12402223 | TypeScript | 2,318 | 80 | import { InjectionToken } from '@angular/core'
import { Observable } from 'rxjs'
import { IDS } from 'src/atlasComponents/sapi'
export const NEHUBA_VIEWER_FEATURE_KEY = 'ngViewerFeature'
export interface IRegion {
[key: string]: any
ngId: string
rgb?: [number, number, number]
}
export interface IMeshesToLoad {... |
1143efcfa1cc45fa40ab65c53d7adc862e5d0dcd99685355a91d5933a2e71bd7 | TypeScript | 2,321 | 61 | /**
* 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... |
91dee33e6b84f5b061ea1bde18c01e24e2b843031a3299f6f8aeb6a0317b3a5e | TypeScript | 2,321 | 83 | import { InjectionToken } from '@angular/core'
import { strToRgb } from 'common/util'
import { Observable } from 'rxjs'
import { atlasAppearance } from 'src/state'
export interface IColorMap {
[key: string]: {
[key: number]: {
red: number
green: number
blue: number
}
}
}
export function ... |
8ad37be1bd4d6b5206d03946480e561dd87f797bcbd30515dcd047e40bdc5ff4 | TypeScript | 2,322 | 64 | /**
* 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... |
eee3c8733dfa87427c4a71745b2ca74dba3b16e2825220b485c0056161a509d1 | TypeScript | 2,323 | 71 | /*
* 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 ... |
9dc78d73bbc43a5ffc98b11dbb5aa7b3ff76eadb512120ceca06dc666f926bad | TypeScript | 2,326 | 62 | /**
* 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... |
c7ffdda6d9b198df6f7d3722d0fe5bda149c2f4e3b9283c0f1d3032058c3114c | TypeScript | 2,326 | 92 | /**
* @file Kdtree
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3 } from 'three'
import { Debug, Log } from '../globals'
import _Kdtree from '../utils/kdtree'
import Structure from '../structure/structure'
import AtomProxy from '../proxy/atom-proxy'
import ResidueProxy from ... |
4653e26d0784bdf055605edfd8ecafee9aaa79a6b326c5394cdefce5b28fa845 | TypeScript | 2,327 | 75 | /**
* 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... |
2a5660eb904ec2121c2fa440e386a8514d212e67cbe451cea6c4235202dac98e | TypeScript | 2,331 | 68 | /**
* 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... |
4c4c7e2406604a05f15782c4be57648de1fff9b538759b8fc2ceb49c6e03a310 | TypeScript | 2,331 | 65 | /*
* 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 ... |
bfc6d0b2074cc655f2903ecc7f486216d0bf727a461b2a74e2fd1bef8f1757eb | TypeScript | 2,331 | 65 | /**
* 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... |
316bf535cd1449a53194936ccc78d7b9f6dd30ed53b4942b5d35c1ea34151650 | TypeScript | 2,332 | 70 | import {
differenceInHours,
differenceInMinutes,
differenceInSeconds,
isAfter,
} from 'date-fns';
import { formatInTimeZone } from 'date-fns-tz';
/**
* Format a date in the local timezone
* @param date - The date to format
* @param fmt - The format string (date-fns format)
* @returns A formatted date strin... |
40cafc1a5ec4442d20fa61b8df7df927d02a8e2a833a36635bb56b2cf4660a82 | TypeScript | 2,332 | 69 | import type { ResourceType } from './domain/asset';
/**
* Arguments identifying a single asset across any backend. `environmentId` is
* optional because docs-only sources (dbt-docs-v2) have no notion of an
* environment; the GraphQL Discovery API requires it.
*/
export type AssetArgs = {
uniqueId: string;
reso... |
24f7bbf8df7222f7ff91fa41ae42f1f18fd2c6467652d372735190ed3deaca53 | TypeScript | 2,333 | 72 | /*
* 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 ... |
71babd64ef5e5e25185248ae613fedfc09f85a51c6085edd8a15d94f025a3265 | TypeScript | 2,334 | 86 | /*
* 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 ... |
c6fb9a2d4b26f516bed745a8084364cca5c88f3014a6e2e8e483304640a67dc8 | TypeScript | 2,334 | 77 | /* 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... |
97b914ab7b907ad321a59749bb40319f42c923c79f19f339a2f81e5244752d26 | TypeScript | 2,335 | 89 | /*
* 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 ... |
787244b6cd81d6a90e28b436b01ee360f58f4c28d75c0b503a97585cdcd6717f | TypeScript | 2,336 | 64 | /**
* 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... |
f5acdefac69135b39ad3ea5871e5f7b352f1d9845ddfc36fa6d397f17fdc5165 | TypeScript | 2,336 | 81 | /**
* 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... |
23f74f9a20260f735112b6b93d5211dac1d77a1c10ebf26103cb05ae9bb7468d | TypeScript | 2,337 | 65 | import { components, paths } from "./schemaV3"
import { MetaV1Schema, BestViewPoint, EnclosedGeometry } from "./volumeMeta"
export { MetaV1Schema }
export type SapiAtlasModel = PathReturn<"/atlases/{atlas_id}">
export type SapiSpaceModel = PathReturn<"/spaces/{space_id}">
export type SapiParcellationModel = PathRetur... |
fb22da0febf8f656add6f9f300e075a67a6509988e2faa6cbc0afb339471b38f | TypeScript | 2,337 | 62 | /**
* 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... |
2346aea921798b8c47cf0393580df0d07e08551013703dc4df8f581ae937de2b | TypeScript | 2,338 | 72 | import { ChangeDetectionStrategy, Component } from '@angular/core';
import { select, Store } from "@ngrx/store";
import { concat, Observable, of } from 'rxjs';
import { atlasSelection } from 'src/state';
import { actions } from 'src/state/atlasSelection';
import { VALUES } from "common/constants"
import { floatEquality... |
2c66b00b69a0171236c63f161cc3f554da778438e5fa527031bbc5d96c37b4c9 | TypeScript | 2,339 | 59 | /**
* 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... |
45e605bb1d6fbaf892804c3cb27dc7c2cea91fa362438ac14d7bbb3fc906e34c | TypeScript | 2,340 | 61 |
import StringStreamer from '../../src/streamer/string-streamer'
import SdfParser from '../../src/parser/sdf-parser'
import { join } from 'path'
import * as fs from 'fs'
describe('parser/sdf-parser', function () {
describe('parsing V2000', function () {
it('basic', function () {
var file = join(__dirname... |
e07025947ff070ad8bd3140399c0a07c7537f73e5edc602de8b70dc31e043707 | TypeScript | 2,342 | 85 | /**
* 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... |
2bf94e47c3a001f5ce17b5fc065ab53214a63980d1e7fe98544cb2c01187efde | TypeScript | 2,343 | 67 | /**
* 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... |
78f9bc9083429c62458368f28022be670ae67af22fb201999be469dc0ea12f1d | TypeScript | 2,344 | 65 | /**
* 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... |
902cf01f50145d5c447da1470259c0a7974df047edcb6c9dce395997cf8e477a | TypeScript | 2,344 | 81 | export interface OpenAICompatibleProvider {
id: string;
name: string;
displayName?: string; // e.g., "Kimi (Moonshot AI)" - if different from name
codeRefName?: string; // e.g., "Kimi" - for code comments, defaults to name
baseUrl: string;
tsBaseUrl?: string; // if different from Python
apiKeyPlaceholder:... |
93d5844b943ffee04b9cdc9274364d6feb4945187aa02293a7318ce8f743f0dc | TypeScript | 2,346 | 75 | /**
* @file Key Controls
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { KeyActionPresets, KeyActionCallback } from './key-actions';
import Stage from '../stage/stage';
export declare type KeyControlPreset = keyof typeof KeyActionPresets;
export interface KeyControlsParams {
preset... |
8164fdc4e3e5688fa251c356c79e991b7882dfdbbbb6ccbf97461df57af74803 | TypeScript | 2,347 | 78 | /**
* @file Trajectory Player
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Signal } from 'signals';
import Trajectory from './trajectory';
export declare type TrajectoryPlayerInterpolateType = '' | 'linear' | 'spline';
export declare type TrajectoryPlayerMode = 'loop' | 'once';
expo... |
c7085ed52a6a09034f3b26981670a4bb6de7b63589d0216b608243e5b644d8e4 | TypeScript | 2,347 | 80 | /**
* 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... |
c8b883fb8406a5d33842965e7c5e7fcbeaa5097a5d066173033198c54014c7ca | TypeScript | 2,349 | 96 | /**
* @file Trace Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import '../shader/Line.vert'
import '../shader/Line.frag'
import { Log } from '../globals'
import Buffer, { BufferParameters, BufferData } from './buffer'
function getSize(data: BufferData){
const n = data.position!.l... |
bcf3e4293e4b76c80d4cee4a30787597636b00d4e30c36e17475791eeb024fd2 | TypeScript | 2,351 | 64 | import type { MediaView, ViewWithMedia } from "@humansignal/frontend-test/helpers/utils/media/types";
type SyncableView = MediaView & ViewWithMedia;
class SyncGroup {
views: SyncableView[];
constructor(views: SyncableView[]) {
this.views = views;
}
checkSynchronization(tolerance = 0.01, maxShiftAlias: st... |
ed24e0609bd9a0a0637384f80dc276debef197f8591c25d188d89cc573c430bd | TypeScript | 2,353 | 62 | // Import components
import { DeviceStartupComponent } from './device-startup.component';
// Import modules
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class SSEService {
constructor() { }
URL3 = "http://127.0.0.1:5000/stream"... |
db72991261ccb02ea3d7599813fa032acccafc9f46284c4781658d9d5918f63f | TypeScript | 2,357 | 80 | import { Directive, OnDestroy } from "@angular/core";
import { Observable, Subject, Subscription } from "rxjs";
import { filter } from 'rxjs/operators'
import { Point } from "./point";
import { AbsToolClass, IAnnotationEvents, IAnnotationGeometry, IAnnotationTools, TAnnotationEvent, TCallbackFunction, TToolType } from ... |
03d6ef8747021ee3e8bb4c7f1e4dcb1c1ef8ecdbbec2958b281c1d4a30615f35 | TypeScript | 2,358 | 65 | import { useCallback, useMemo, useState } from "react";
type ValueDecode<T> = (value: string, defaultValue: T) => T;
type ValueEncode<T> = (value: T) => string;
type Options<T> = {
decoder?: ValueDecode<T>;
encoder?: ValueEncode<T>;
};
type NextState<T> = T | ((x: T) => T);
type StateResult<T> = [T, (value: Nex... |
c2e9cba5ff98a309da7482ba73e5d49c19f988225a3490a942154b9808b0d815 | TypeScript | 2,358 | 66 | /**
* 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.