sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
7f35ddbcd821710ea873457f05b2955051690c82a6990d2186e206811105c72f | TypeScript | 4,404 | 117 | /*
* 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 ... |
079e8bf1dd9be5784a25f29939146b62c8af74955fe69fa4bca462038115d652 | TypeScript | 4,409 | 133 | /**
* 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... |
a5ff7181bdd0b9a650eb255684de56e94d6c72752cfeb63a8126876389bd626e | TypeScript | 4,410 | 139 | import { useCallback, useEffect, useRef, useState } from "react";
export interface ResizeObserverSize {
width?: number;
height?: number;
}
export interface UseResizeObserverOptions<T extends ResizeObserverSize = ResizeObserverSize> {
/**
* Function to extract size data from ResizeObserver entries
* Defaul... |
5913a26e0d6aa5714e0ad7786dcac165ab46e94581a622ae4ef5cb9c2081c371 | TypeScript | 4,411 | 183 | import { DoublyLinkedList, FindInLinkedList } from './LinkedList'
describe('> LinkedList.ts', () => {
describe('> DoublyLinkedList', () => {
let linkedList: DoublyLinkedList<{}>
beforeEach(() => {
linkedList = new DoublyLinkedList()
})
it('> expect size === 0', () => {
expect(
li... |
b0918ba00a10dfa23f43f92a91bfbd5979e4b8d2d452055f2d95a12f06b60b5a | TypeScript | 4,413 | 130 | /**
* 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... |
55fcbdad4dd5fb8bbff73ffb0368fff5add6471895b5ca2a758c8a82f68304bd | TypeScript | 4,414 | 199 | import { createAction, props } from "@ngrx/store";
import { BoundingBox, SxplrAtlas, SxplrParcellation, SxplrRegion, SxplrTemplate } from "src/atlasComponents/sapi/sxplrTypes";
import { BreadCrumb, nameSpace, ViewerMode, AtlasSelectionState } from "./const"
import { TFace, TSandsPoint } from "src/util/types";
/**
* @... |
3bb67be2540d976e77df3ae5a133d4c3ea452da2849c94ff7411755c7957e085 | TypeScript | 4,416 | 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 ... |
fb98ac575b545fc380d19b0831a853387cd71730c72c8d4d43fb51ae123fa2ba | TypeScript | 4,418 | 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... |
f314dfa652b53ecb50c8f4719afc93f54e3bd4686da5c71114e19a41e586973a | TypeScript | 4,424 | 149 | /**
* 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... |
19b32410b63f107861da061d3c98712f1dda3e6a219dcfab39fea98c6aff05c3 | TypeScript | 4,425 | 118 | import { AudioView, LabelStudio, Paragraphs } from "@humansignal/frontend-test/helpers/LSF";
import { Network } from "@humansignal/frontend-test/helpers/utils";
import { fullOpossumSnowData, videoAudioParagraphsConfig } from "../../../data/sync/video-audio-paragraphs";
// Local type extensions for this test
type TestW... |
2ed855c0d2912a29ddbd62b50c90eec9597a7e32576a8bce8e17153719a8b350 | TypeScript | 4,438 | 157 | /**
* @file Cylinder Impostor Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4, Vector3 } from 'three';
import '../shader/CylinderImpostor.vert';
import '../shader/CylinderImpostor.frag';
import MappedAlignedBoxBuffer from './mappedalignedbox-buffer';
import { BufferParam... |
ddfe4059d0f3e8699a5d835029f265802fc228787bf49caeb7e8217e3827548c | TypeScript | 4,441 | 197 | /**
* 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... |
e5eabc8d17e0d97ee1a9a2fc20b93b12a164c9907164ae61ea57116452599791 | TypeScript | 4,448 | 151 | /**
* 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... |
c42006b21a05004cfbf8f0f8b0f74c72eecfeba91538d556d3f2b93b7beb4215 | TypeScript | 4,452 | 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... |
d0acfbae2649a16eacc46b672fba80ee54f28ea803bbb734876931bef5c12647 | TypeScript | 4,452 | 133 | /**
* 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... |
e6523d9b4cf7c597f28b0ee24dcb3d98164942a61d7d3b074a94674b94479a1a | TypeScript | 4,454 | 163 | /**
* 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... |
3e782c12788afd86fbd178d3ac278e00c3834db66c6b3f96804014ab956c3b33 | TypeScript | 4,460 | 135 | import { z } from "zod";
import type { FieldDefinition } from "./common";
import { assembleSchema, coalesceSelectFieldValue, isFieldVisible, omitHiddenProviderFields } from "./provider";
function secretField(overrides: Partial<FieldDefinition> = {}): FieldDefinition {
return {
name: "client_secret",
type: "p... |
4e4011000e287724d2a90a05b87598e4a5d4f73b2d370c1fecb9b2b4fa940827 | TypeScript | 4,462 | 140 | import { useEffect, useRef, useState, type RefObject } from "react";
import { useQuery } from "@tanstack/react-query";
import { queryClient } from "../lib/utils/query-client";
interface UserData {
id: number;
first_name?: string;
last_name?: string;
username?: string;
email?: string;
avatar?: string;
ini... |
6917c393a30250fb26e1f19d3470bb7ca77dc2117ea10a38212a88d0a042b2a1 | TypeScript | 4,463 | 118 | /**
* 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... |
ca1c5ca7ac841929532484c5263fa6ee332b81e9cb35b16b81d9f43575765cda | TypeScript | 4,467 | 125 | import {denominator} from '../shared/duration';
import {getColorForNodePhase, Workflow} from '../shared/models';
export function workflowsToChartData(workflows: Workflow[], limit: number) {
const filteredWorkflows = workflows
.filter(wf => !!wf.status.finishedAt)
.map(wf => ({
name: wf.... |
70bf105d4dbc28aa8470856c701bd48c7f37b503ca73b48ad62900d8b804e692 | TypeScript | 4,469 | 136 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/events/fusion/dev/dev.proto (package v1.public.events.fusion.dev, syntax proto3)
/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc ... |
30dccaf4a933fbb420750e7df584db4f155fae4501a382c3dd13b7f3891ac0fd | TypeScript | 4,470 | 151 | // @ts-nocheck
/**
* 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
* ... |
308a57996570c4c8bdf89dd2d97b4d3fd4eb5f9508e7da62b4acee473d440d6c | TypeScript | 4,471 | 119 | /**
* 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... |
69ed48278d025a5cb174c26eb04a597f947ae71191263b40c8d2edfe4db3602e | TypeScript | 4,476 | 112 | /**
* 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... |
5d5185c507058345383c0021f37edd78b6f858d15b86f2d1d00d4c3549572f81 | TypeScript | 4,480 | 125 | import type {
AssetArgs,
AssetFilter,
ColumnLineageArgs,
LineageArgs,
ListArgs,
} from '../typings/args';
import type { SearchFilter } from '../typings/domain/search';
/**
* react-query key for a single asset. Single source of truth shared by
* `useAssetDetail` (read) and `wrapDataSource` (invalidation) — ... |
fe77e2f8eb6b02d385de1d779be629a8fceb15fa3f8ea1355636affa702e8e34 | TypeScript | 4,481 | 118 | /**
* 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... |
2e41979d794612a347394e6d6f2582996082eb1bdc90afdd9fd2f7c14267f40f | TypeScript | 4,490 | 186 | import { nanoid } from "nanoid";
import { rgba, type RgbaColorArray } from "../Common/Color";
import { Events } from "../Common/Events";
import { getCursorPositionX, getCursorPositionY, getOffsetLeft, getOffsetTop } from "../Common/Utils";
import type { Visualizer } from "../Visual/Visualizer";
interface CursorEvents ... |
8a01cf8d2cbe574aba6492535baf68d949a04c843cfd8caa73967f22137658c7 | TypeScript | 4,493 | 133 | /**
* Cross-process exclusion lock for the daemon singleton.
*
* The lock is POSIX-only; on Windows the daemon's named-pipe path is
* kernel-refcounted and provides cross-process exclusion natively, so
* `acquireLock` skips this module on `process.platform === 'win32'`.
*/
import { randomUUID } from 'node:crypto... |
2d0ee47ab8a91f6f8df29cf19734ff51f21e41d2ea64798f0ff95103f24b0508 | TypeScript | 4,498 | 130 | /**
* @file Filtered Volume
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { defaults } from '../utils'
import Volume from './volume'
import { Box3, Matrix4, Matrix3, Vector3 } from 'three';
class FilteredVolume {
volume: Volume
data: Float32Array
position: Float32Array
atomin... |
5ba44cd0735a806d8b993a1f2683415abe4c6eabf12f4849007fe1cd343aad28 | TypeScript | 4,502 | 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 ... |
c17bd97fb1ea4a0c1e2878ef61616ec5de7963c88c7517e5596f9d4baae1dd5d | TypeScript | 4,508 | 176 | /*
* 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 ... |
171e610e5969c560f173fce713e8321114718140aeef40b7ea8b63afce3d50d0 | TypeScript | 4,512 | 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 ... |
32fece4874e16b6e3bc94289a269bef330f162d9de8a47608c420e8f5900560d | TypeScript | 4,517 | 137 | import { decodeToNumber, encodeNumber, encodeURIFull } from "./cipher"
describe('common.ts', () => {
const FLOAT_PRECISION = 6
describe('> encodeNumber/decodeToNumber', () => {
const getCompareOriginal = (original: number[]) => (element: string, index: number) =>
original[index].toString().length >... |
a1d4ffe289792743fccb5fd2ca0eacfe7b7d6c8098551c87f81dcf2a0835b308 | TypeScript | 4,524 | 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... |
0ee26905110020218b393e7d2dd58fab7278c2ec84be4e700f3bd81ad06fc3c0 | TypeScript | 4,528 | 144 | /**
* @file Unitcell Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { RepresentationRegistry } from '../globals'
import { defaults } from '../utils'
import StructureRepresentation, { StructureRepresentationParameters, StructureRepresentationData } from './structure-repre... |
368551cecf723d0698ca8470cd35df8836c4fe7449f418c9b6f05981e053d148 | TypeScript | 4,533 | 124 | /**
* 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... |
6d7041a0691b8487ff794deffa386e2b0cafb3c3d58ee396d86a0604f0352fe3 | TypeScript | 4,533 | 117 | /**
* 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... |
92445c1641acf456df47d045a1b057fcd8e3f2324fdfc27ab2071413478e1075 | TypeScript | 4,534 | 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... |
7881d28d1bc7f90cab086ec1dae98b0b29c755c75f5ec1e327e3c9ec35c5d242 | TypeScript | 4,536 | 145 | /**
* 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... |
349be2e88dc6b67fd8b9f2634040a9939c3b804d201558e4daa9c5773aa6d952 | TypeScript | 4,540 | 100 | /**
* 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... |
413c61db7ddef7024c171a32bd09cd4435cff0033533b249b433a8ef44e54316 | TypeScript | 4,540 | 219 | export const simpleImageData = {
image:
"https://htx-pub.s3.us-east-1.amazonaws.com/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg",
};
export const simpleRectangleConfig = `
<View>
<Image name="image" value="$image" />
<Rectangle name="rect" toName=... |
ccb4c98a707cf166c8b2c138430d210953ddd018a941029ba702ef9f4de964a3 | TypeScript | 4,544 | 168 | import { Subject, Subscription } from "rxjs"
import { AbsToolClass, IAnnotationEvents, IAnnotationGeometry, TAnnotationEvent } from "./type"
class TmpCls extends IAnnotationGeometry{
annotationType: 'tmpl-cls'
getNgAnnotationIds(){
return []
}
toNgAnnotation() {
return []
}
toJSON() {
return {}... |
581a4e9a6d47043d98df1f29cb6f0d61aaf72f8ddc3587d7ffa885358c01e51b | TypeScript | 4,554 | 166 | import { Injectable, OnDestroy } from "@angular/core";
import { select, Store } from "@ngrx/store";
import { combineLatest, Observable, of } from "rxjs";
import { map, switchMap } from "rxjs/operators";
import { IMeshesToLoad } from '../constants'
import { selectorAuxMeshes } from "../store";
import { LayerCtrlEffects ... |
1231d42991f0643d55eb0d8925eefd0b0259524bb940e5ae1bf5018dc725c2d8 | TypeScript | 4,557 | 155 | /**
* 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... |
44fcad11fa5688670cfbfd4839d6d58eabc49a838fedc464bbd3edac83279ccf | TypeScript | 4,560 | 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 ... |
5d84f68805ee820b0bc18fc4afd85bd5b36f717f42a330c108fdf6e0acd6518d | TypeScript | 4,562 | 121 | /**
* 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... |
5b506224869a911950051430dd5d95b345ca986a6c74e9a7e2f62fad84fc3fff | TypeScript | 4,570 | 141 | import { AsyncLocalStorage } from 'node:async_hooks';
import { TraceMetadataKey } from './constants';
/**
* Options for the tracingContext function.
*/
export interface TracingContextOptions {
/**
* Key-value pairs to inject into the trace's request_metadata (immutable after trace creation).
*/
metadata?:... |
9e8428c7f73e406bc92a3693f13d51017e4103461a4e80a61c79c3d311adaab6 | TypeScript | 4,572 | 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... |
864aa20a8a1fd2054039fd5432cecb3497c8178458fe25018f33a57848ab2b07 | TypeScript | 4,591 | 151 | import { Directive, HostListener } from '@angular/core';
import { MatSnackBar } from 'src/sharedModules/angularMaterial.exports'
import { Store, select } from '@ngrx/store';
import { Subject, concat, of } from 'rxjs';
import { distinctUntilChanged, shareReplay, take } from 'rxjs/operators';
import { IDS, SAPI } from 's... |
1f3255523f16b974bf7a7f12a7f1581245015c6f6af26657ae851f679bc1aa40 | TypeScript | 4,594 | 123 | import path from "node:path";
import { createRequire } from "node:module";
import type { AcceptedPlugin } from "postcss";
import { defineConfig, loadEnv } from "vite";
import type { Plugin } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
import postcssNested from "postcss-ne... |
1bd9b13089ec886b2ad9242c1d05a146d7a2bc98014ee3bf316fec87a1ec6182 | TypeScript | 4,595 | 117 | import { Inject, Injectable } from "@angular/core";
import { HttpClient, HttpHeaders, HttpErrorResponse } from "@angular/common/http";
import { catchError, timeout, map } from "rxjs/operators";
import { of, Observable } from "rxjs";
import { environment } from 'src/environments/environment'
import { IDS } from "src/atl... |
8a27e686a394f2c5575e125f26d3d053cd4921b031dacd4b71a6aae032e336f9 | TypeScript | 4,606 | 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... |
7d8ca804f2a2b27318911869af6f4873d7d4156b9660c8d351470d5126cef9da | TypeScript | 4,616 | 154 | import { ComponentRef, Inject, Injectable, Optional } from "@angular/core";
import { BehaviorSubject, Subject } from "rxjs";
import { Overlay, OverlayRef } from "@angular/cdk/overlay";
import { ComponentPortal } from "@angular/cdk/portal";
import { QuickTourThis } from "./quickTourThis.directive";
import { DoublyLinked... |
7a478568f53f7f9b16be7e15e97b88e9f564748a48f8c5f2d3d4f91bc4341db0 | TypeScript | 4,620 | 150 | /**
* 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... |
f3c8685653591040f023f45c2444b30d1daa64c7b407bc809a4b04c83f6f7440 | TypeScript | 4,639 | 161 | /**
* MLflow Span Event Entities
*
* This module provides TypeScript implementations of MLflow span event entities,
* compatible with OpenTelemetry for recording specific occurrences during span execution.
*/
/**
* Type definition for attribute values that can be stored in span events.
* Compatible with OpenTel... |
d4496cfcb9a68c8128d65cf8722675678b05be1806bdd0b9c8495ae6c6e1b839 | TypeScript | 4,640 | 190 | import { fakeAsync, TestBed } from "@angular/core/testing"
import { MockStore, provideMockStore } from "@ngrx/store/testing"
import { NehubaLayerControlService } from "./layerCtrl.service"
import {
annotation,
atlasAppearance,
atlasSelection
} from "src/state"
import { LayerCtrlEffects } from "./layerCtrl.effects... |
05850cfb97a5beb8cb21ca9bba9f353de47b6aa267be36c5cd8f11b717cfcec9 | TypeScript | 4,644 | 242 | export const simpleConfigTL = `
<View>
<Image name="img" value="$image"/>
<RectangleLabels name="tag" toName="img">
<Label value="Label 1" background="purple"/>
</RectangleLabels>
</View>
`;
export const simpleConfigTR = `
<View>
<Image
name="img"
value="$image"
horizontala... |
c8acec176a9ab05d6e92cebb33cb61317eb905c21b4d566becb43a0ef4e0942e | TypeScript | 4,648 | 146 | /**
* 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... |
820b0b5977900f139ebff7778b13b0d69d2fb79ed4fdb9fc1c8eb42a2c298e08 | TypeScript | 4,654 | 191 | /**
* @file Point Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
// @ts-ignore: unused import Vector3, Matrix4 required for declaration only
import { DataTexture, Vector3, Matrix4 } from 'three'
import '../shader/Point.vert'
import '../shader/Point.frag'
import { BufferRegistry } fro... |
00ee900915376728796cb4b54bd72e857d45d00e74d91e4374695bde8c2fb943 | TypeScript | 4,659 | 135 | /**
* 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... |
d97acd2746f45664e73e2c1faf06e3e96d7e9b0a663f25ec784b6ae103fa75dc | TypeScript | 4,659 | 138 | /**
* CLI script to bump the version of MLflow TypeScript libraries.
*
* Updates the version of the core package and every published integration
* package, and rewrites each integration's `@mlflow/core` constraint (declared
* in either `dependencies` or `peerDependencies`) to match.
*/
import { readFileSync, wri... |
b54155937e8c5215476df4d9037843cb471a44fc691a583b048245d0ab48b2dd | TypeScript | 4,666 | 165 | /**
* @file Spatial Hash
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Box3 } from 'three'
export type Positions = {
x: ArrayLike<number>,
y: ArrayLike<number>,
z: ArrayLike<number>,
count?:number
}
function createBoundingBox(positions: Positions) {
const { x, y, z } =... |
0041ef383bd92eb0c8763ab90061124969732a0bc1fc8617a7e9e00dc21c3997 | TypeScript | 4,669 | 127 | import { Hotkeys, Labels, LabelStudio, Sidebar, VideoView } from "@humansignal/frontend-test/helpers/LSF/index";
import { videoVectorConfig, videoVectorData } from "../../data/video_segmentation/vector";
const suiteConfig = {
retries: {
runMode: 3,
openMode: 0,
},
};
const pointCount = () =>
LabelStudio... |
e326937e58b9e056f7a83190b47b4554b2e269a1f7afd0a2de8be79ae9786422 | TypeScript | 4,669 | 204 | /**
* @file Streamer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { DecompressorRegistry } from '../globals'
import { uint8ToString, defaults } from '../utils'
export interface StreamerParams {
compressed?: string|false
binary?: boolean
json?: boolean
xml?: boolean
}
abstra... |
3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b | TypeScript | 4,676 | 121 | /*! *****************************************************************************
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.... |
cc88b0e879bb1ab25a7d22b4965cc6e0f48c3cb86068e6871bc31412c3886233 | TypeScript | 4,676 | 154 | /**
* 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... |
e8f1a710f50740fbcda0ebafca90039750102580faf8de7ee8eaedfd09d0b995 | TypeScript | 4,676 | 146 | import { IdDelimiter } from "../multi-tree-select/tree-context";
import type { TaxonomyOption, TaxonomySelection } from "./types";
export interface TaxonomyTreeNode {
code: string;
label: string;
children: TaxonomyTreeNode[];
disabled?: boolean;
}
export const TAXONOMY_TREE_SCHEMA = {
id: "code",
label: "... |
bc0f029f86e44ecce6b8d8c05cb9da18e06ec8645f35c6cb349689b0a4fdeda8 | TypeScript | 4,677 | 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... |
c69c3e4e93b1c7996bf848d48e19ff361c08f8efcce0572fd8b6eb62fb9a7866 | TypeScript | 4,692 | 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... |
f4e32e8ba65a5486091c1f2a52a16f0001c614701a4696b3355e1076f40559f6 | TypeScript | 4,692 | 116 | /**
* @file Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3 } from 'three';
import * as chroma from 'chroma-js';
import { NumberArray } from '../types';
import Structure from '../structure/structure';
import Surface from '../surface/surface';
import Volume from '../s... |
071906dd3d317b7bafa838d41d2dbc78c3e28fea7ef4f9b8cb2ccae32fdfd6bf | TypeScript | 4,698 | 136 | import type { Mock } from "bun:test";
import * as sentryBrowserModule from "@sentry/browser";
import * as sentryReactModule from "@sentry/react";
const mockAppSettings = {
debug: false,
sentry_dsn: "test-dsn",
sentry_environment: "test",
sentry_rate: "0.25",
user: { email: "test@example.com", username: "test... |
b386adf30cfcf89f6e37f40d88916c592b65e93d097792aee5ec890f1230c97b | TypeScript | 4,699 | 190 | /**
* @file Principal Axes
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3, Matrix4, Quaternion } from 'three'
import {
Matrix, meanRows, subRows, transpose, multiplyABt, svd
} from './matrix-utils'
import { projectPointOnVector } from './vector-utils'
import Structure fr... |
5904584425a1ebd1eefb79b78732f662f0867db8887f3c8398fe3d88fc3f3c51 | TypeScript | 4,702 | 150 | /**
* 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... |
610a071e57abd08fc2a07f47da738d36545f30c08ad9c454946103fd490a60ec | TypeScript | 4,704 | 166 | /**
* 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... |
e995a6550c59f0d86a92a887cc21963209ea027dcc43aa9fbb981893bb38cd19 | TypeScript | 4,707 | 145 | interface TransformCoordinate {
x: number;
y: number;
}
/**
* Utility class for handling SVG transform operations
* Supports parsing transform strings, combining matrices, and applying transformations to coordinates
*/
export class SVGTransformUtils {
/**
* Extract and combine transform matrix for element ... |
88cee90b2708e17bb9d6b8eec8aebea89727810ee44188a86d3cf1e0ed4ec65a | TypeScript | 4,709 | 189 | type X4Affine = number[][]
type ShaderEnum =
| "greyscale"
| "viridis"
| "plasma"
| "magma"
| "inferno"
| "jet"
| "rgba (4 channel)"
/**
* Preferred colormap in order of preference
*/
type PreferredColormap = ShaderEnum[]
type X1Vector = [number, number, number]
type X1Vector1 = [number, number, number... |
b06d5c64cb2d62ede89db4416459cb9a8f36c4f18d41cc98e59f48bc5994aa50 | TypeScript | 4,709 | 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 ... |
bca3d5b9752f08241657efa3441b6c9951472aaf09818c75230261c929b2401f | TypeScript | 4,711 | 121 | /**
* 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... |
bce62bb7f048181e640c66cfcd7f4b1d96cb2996f468162a7dbabb5fbd1a76e0 | TypeScript | 4,717 | 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... |
1388910be4c564c77e688d529e3cd50276955709d249008a26e5e55007476efd | TypeScript | 4,718 | 154 | import { Component, inject, Optional, ViewChild } from "@angular/core";
import { ARIA_LABELS, CONST } from "common/constants";
import { ModularUserAnnotationToolService } from "../tools/service";
import { IAnnotationGeometry, TExportFormats } from "../tools/type";
import { ComponentStore } from "src/viewerModule/compon... |
cf9aab416e7f64cabfe4cb225def84cbc963b8586e9d7762ade374ee81a039a3 | TypeScript | 4,721 | 165 | import {ClusterWorkflowTemplate, CronWorkflow, EventSource, Sensor, Template, Workflow, WorkflowTemplate} from './models';
const randomSillyName = () => {
const adjectives = ['wonderful', 'fantastic', 'awesome', 'delightful', 'lovely', 'sparkly', 'omniscient'];
const nouns = ['rhino', 'python', 'bear', 'dragon... |
0e54fdc10db604684e9d54a42ccc8ce4ba79c5a1a684b817dd2c27ecec96d3b7 | TypeScript | 4,722 | 128 | /**
* 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... |
8ec8564629ecf5bdefe75518dcd18c8094c79625da71c615f99afb54aff00d3e | TypeScript | 4,722 | 104 | /**
* Shared metadata component and data layer.
*
* Forked from `@dbt-labs/metadata-shared` (dbt-ui) when the docs v2 UI moved into
* this repo. Only the transitive closure of what this app imports came across, so
* the platform-only pieces upstream carries -- charts/echarts, the urql GraphQL
* client, app-nav, L... |
fd72da55e522c535f195c6263825ddc5434856bdaed743484e6af43d92292825 | TypeScript | 4,726 | 146 | /**
* 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... |
8c704cd3bf731bbc1648953c33a8750a900f15fec045bfd6098d8e37e8dba3db | TypeScript | 4,730 | 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... |
fd0fa96dd68d321f984f5fae0817e337b496970d2a8677f663855cd7e2faa03a | TypeScript | 4,730 | 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... |
ec7bd2fdd0ff2d4b40aa42830055e13292667f69c40dc2b24a1473941ec6d273 | TypeScript | 4,735 | 148 | /**
* 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... |
37d000df2f5c7bd9998941d65a22acad83697308729e1c549e186fd138ec9e33 | TypeScript | 4,743 | 113 | /**
* 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... |
4fbf322d3b86395a96afb0d362c5544cd0f4c199fb1860ef5137b7fda7f6bc52 | TypeScript | 4,743 | 144 | /**
* mobx store for ML-backend capabilities, keyed by projectId.
*
* Design goals:
* - One fetch per (projectId, backendId), shared across all components.
* - Observable so the UI re-renders when capabilities land.
* - Lives outside the editor's MST tree so we don't couple enterprise
* code to OSS App... |
5687751446fda4c99dd1f65e2ef7c90e77288f5e419bb4256d54163e114c6108 | TypeScript | 4,754 | 175 | import type { FC, MutableRefObject, ReactNode } from "react";
import { DEFAULT_PANEL_HEIGHT, DEFAULT_PANEL_MAX_HEIGHT, DEFAULT_PANEL_WIDTH } from "../constants";
export type TabProps = {
name: string;
rootRef: MutableRefObject<HTMLDivElement | undefined>;
tabTitle: string;
panelKey: string;
tabIndex: number;... |
554c14b49a713a4ed4053fc2c6f0b914aaf04d83b43472217f7aa14b26ae8fa3 | TypeScript | 4,757 | 149 | /**
* Shared vocabulary that outlived the REST API.
*
* This was `api.ts`, a client for `/api/v1/*`. That API is gone — the site queries
* parquet in the browser — but the wire *shapes* it defined are still the shapes the
* app is written against: `dbt.nodes_index` rows arrive as {@link NodeSummary}, and
* teleme... |
5449a2794cbd5a17ae37b1cdd778db8f359057b2e49760be47f22a22fb943449 | TypeScript | 4,759 | 149 | import { TestBed } from '@angular/core/testing';
import { PluginDisabledReasons } from 'src/plugin/pluginEnabled.pipe';
import { PluginManifest } from 'src/plugin/types';
import { SxplrAtlas, SxplrParcellation, SxplrTemplate } from 'src/atlasComponents/sapi/sxplrTypes';
describe('PluginDisabledReasonsPipe', () => {
... |
2413f9449f6c7538880c179bac4d596079468459e950edfc81cf9b447bc86123 | TypeScript | 4,761 | 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 ... |
ed1b41b1c4cc676c6f5b1d8e798425fa407841573024a29cf9951a6ff370294e | TypeScript | 4,770 | 183 | /**
* @file Image Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import {
// @ts-ignore: unused import Vector3, Matrix4 required for declaration only
Vector2, Vector3, Matrix4, BufferAttribute, DataTexture,
NormalBlending, NearestFilter, LinearFilter
} from 'three'
import ... |
16dd1786c6439e0affc834f8a8ef2cac10b799b0561375cba51b6eae5065a409 | TypeScript | 4,773 | 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... |
64025ed6c91ce2977f201901baf8acbbcef3343f8ab13bb6fae2dac4414731ff | TypeScript | 4,775 | 156 | /**
* 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... |
8f1710c5dda181aab7f03c986876bba61b0ede4807d8fc31e37454edc7f134b5 | TypeScript | 4,780 | 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 ... |
bc391cd5758f225d71f5a412776ed53909535d0fbe1f07323a4058bc2660be48 | TypeScript | 4,786 | 163 | /**
* 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... |
05fa8a5ab62d374db9edef6fde1794d58c6570eaf7631f37adf482f5745f0f3f | TypeScript | 4,799 | 167 | /**
* Append-only JSONL store backing the trace upload WAL.
*/
import { createReadStream, existsSync } from 'node:fs';
import { mkdir, open, rename, stat, unlink } from 'node:fs/promises';
import { dirname } from 'node:path';
import { createInterface } from 'node:readline';
import { JSONBig } from '../../core/utils/... |
a37193c43115bf03d751701a744427b6c0c3d6e6c55976144a510296ea6bf29f | TypeScript | 4,804 | 173 | /**
* 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.