sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
1ceec231cb4a01edc705892a7bdc917684cc1c44ffa94c403a68afc3d20ce8ee
TypeScript
6,532
210
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
2f1641b35f3c69f1c4cc428a464c9113f0989a9acf08ffe147e5107386266eff
TypeScript
6,532
176
import { mkdtemp, rm } from 'fs/promises'; import { tmpdir } from 'os'; import { join, resolve } from 'path'; import { getDaemonLogPath, getDeadLetterPath, getLockSocketPath, getWalDir, getWalPath, } from '../../../src/exporters/wal/paths'; describe('wal/paths', () => { const originalEnv = process.env.MLFL...
f392b83820f7433b5fe71efcb0dab0503b1819610c7ef7378d8b5b85af257a79
TypeScript
6,545
171
/** * 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...
e509f43b81b0c5ed037fa859693b12be24756a9daef277a4cade653c88c9fc4a
TypeScript
6,551
181
/** * 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...
c46354b954b5345933b54c83ffb4c640fcc3857bba36a1b98fbf4c33c900772c
TypeScript
6,560
201
/** * 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...
452c751fee9fe3b9464446f35ce58816448e620fd7fca85b4ef58b5468caf00b
TypeScript
6,575
188
/** * README: the purpose of this file is to monkey patch discrepency between siibra-api * backend and original backend. * * In principle, these should be built into siibra-python, and this file should become obsolete. */ import { IHasId } from "./interfaces"; import { TRegionSummary } from "./siibraApiConstant...
8ea27d1dc62bcfc5dab2e5a8996cf083d80df9d06e73caf888f0d0e39781a1b9
TypeScript
6,575
190
/* * 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 ...
e7ff408aa96b2dfe39c3e687fbbe851e2559515a3c3c031bad6a7d4d53e98480
TypeScript
6,575
246
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
cc6479d73c572794e701254e9c30d792f83220a46a3cee3373b3d58370c0817c
TypeScript
6,577
185
/** * 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...
63734f56411df14cc245f9162fe83a32c26f0b34090180690d0a63cdcba5707b
TypeScript
6,596
195
import { useLayoutEffect, useRef, useState } from "react"; interface UseBadgeOverflowProps { enabled: boolean; containerRef: React.RefObject<HTMLDivElement>; itemCount: number; recalcTrigger?: number; } /** * Custom hook to calculate badge overflow and determine how many badges should be visible * Returns t...
e8ebbc593634b6792e153c62697600064f17a9c70e24c78a6d0a0bdb745b180a
TypeScript
6,607
206
import { ComponentFixture, TestBed } from "@angular/core/testing" import { CommonModule } from "@angular/common" import { AngularMaterialModule } from "src/sharedModules" import { StatusCardComponent } from "./statusCard.component" import { Directive, Component } from "@angular/core" import { NEVER, of } from "rxjs" im...
0ea0ba7a6003a7aa62b811b1d5f7b76e628ec9d5511854f178ecdb564ccfdd51
TypeScript
6,618
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...
3f6cb7bb151c9b939570236393486a0e08b08ecfef36deadcd0a9ff6ce53dc67
TypeScript
6,627
228
/** * @file Cartoon Representation * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { defaults } from '../utils' import { Debug, Log, RepresentationRegistry } from '../globals' import Spline from '../geometry/spline' import StructureRepresentation, { StructureRepresentationParameters, St...
ed2cd87f190ccc17fa1ef50605490f57a385b2ea043ddbfee1408103266cb860
TypeScript
6,635
216
/** * 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...
c31f656ff10c9caea35ec34fda1026a3aa103130b7e3643b9e283d55ba8ac67e
TypeScript
6,645
223
/** * 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...
a29fdb767783ff0f78f43cd08c3142c84dc55bd869ed68c1a33540c8a9ad0f0b
TypeScript
6,651
298
/** * @file Atomindex Colormaker * @author Fred Ludlow <Fred.Ludlow@astx.com> * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3 } from 'three' import { ColormakerRegistry } from '../globals' import Colormaker, { StuctureColormakerParams, ColormakerScale, manageColor } from './...
9159733d091c5aab3ba6e6c20687c9125396315f6e44589eccf3cae4e451c885
TypeScript
6,653
207
/** * 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...
baee3a87dcd2ddd2cc0064f6f58e0b365bb67f84b4df37486bd0fc2d78da1bc8
TypeScript
6,662
179
/** * Per-cell copy + CTA registry for the `(kind, userState)` upsell matrix. * * Lifted verbatim from the Notion "Gating and UI Review for docs v2" doc * (358bb38e-bda7-…). That doc is the source of truth for what ships in * the v1 prototype. Components do no string interpolation — every visible * row resolves t...
ea7999679978e401017df7ff39a7023b59a85d94d8aba0b23ef7f5ec1d91dd23
TypeScript
6,680
224
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
ff85c5243268643d5e2af9afa74cc41d63e8a92fdc033d1c7c27e2b122cc7c5a
TypeScript
6,686
152
/** * 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...
6cf993ab3c7f611807366fef82d66ddfeb8188b89cafb336718e3b14ca4f708c
TypeScript
6,708
222
/** * 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...
af74115600a8e5aad1df58885480beed4edcc72cf38cde112786f58f30d22602
TypeScript
6,714
167
import { trace as otelTrace } from '@opentelemetry/api'; import { BasicTracerProvider } from '@opentelemetry/sdk-trace-node'; import { SpanAttributeKey, SpanLogLevel, SpanType, toSpanLogLevel } from '../../src/core/constants'; import { defaultLogLevelForSpanType } from '../../src/core/log_level'; import { createMlflow...
1cbc876b884063aedbff5aee939d4b7cf07ccdc38dbceedf67963cc3e5bcda18
TypeScript
6,717
212
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
33f08a941f9afdc6c108a03c6b1385fc1d12e8feace08d76cdb7338c0cb99855
TypeScript
6,718
233
/** * @file Dsn6 Parser * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Matrix4 } from 'three' import { Debug, Log, ParserRegistry } from '../globals' import { ensureBuffer } from '../utils' import { degToRad } from '../math/math-utils' import VolumeParser from './volume-parser' int...
2d3eac219425099d4bfeef267737156fc1102ee83b1b606b1f766e5ad730d970
TypeScript
6,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...
da89ddd75407e90cabe0f04210b5bbe7317db6a5b4e62dfc51f92f470100cf1e
TypeScript
6,729
207
/** * 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...
22ab2a4f8070cd995c4b106bdfc44cb2adb4dbdcdedba78f14b0fd3f45b27ef4
TypeScript
6,737
240
/** * 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...
55b4f8972bd008b8570cad58947b88185456af49ec4032039ca5d87d8567830e
TypeScript
6,739
201
/** * @file Component * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3, Quaternion, Matrix4, Euler, Box3 } from 'three'; import { Signal } from 'signals'; import Annotation, { AnnotationParams } from '../component/annotation'; import ComponentControls from '../controls/component...
63f22a3d759415dff8fda707d909ca5fe31650071a64ff917034f336ab5091c5
TypeScript
6,747
202
/** * 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...
a9a8094e2ba9cd523a95adfa09058129d3ab258160c030c6a2f457fd3633fdc0
TypeScript
6,752
292
/** * 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...
ab8d6a5ef02125ee052f3780deae96447c70523d523b62907065510dc0ec26eb
TypeScript
6,782
194
/** * Wraps the Claude Agent SDK `query()` function so each call produces an * MLflow trace. The wrapper sets `forwardSubagentText: true` on options by * default so sub-agent activity flows through the parent message stream and * can be attributed via `parent_tool_use_id`. * * The actual span construction lives i...
a3ad31612f20c064fa517cc5ed9457c2179dfa4b2026eca7e6462656e9c57038
TypeScript
6,804
222
/** * 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...
51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa
TypeScript
6,806
193
/*! ***************************************************************************** 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....
3e71648088d1b2cacae6de299108e6bf8ec33a66a49b4966146d43ec142663ec
TypeScript
6,807
244
/** * 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...
3f25ddd538c858a184d7639100641592f19520b69967ed0f03a2d27adffee326
TypeScript
6,814
234
import { Component, Input, OnDestroy, Output, TemplateRef, EventEmitter } from '@angular/core'; import { Clipboard, MatDialog, MatDialogRef, MatSnackBar } from 'src/sharedModules/angularMaterial.exports'; import { BehaviorSubject, EMPTY, Observable, Subscription, combineLatest, concat, of } from 'rxjs'; import { catchE...
311be2b4f5b46d6f34af5dcf9eb9856b1bdcc8682c175858c18ad84e2e9e0862
TypeScript
6,823
179
/** * Unit tests for mask-output (ml-interactive/primitives/mask-output.ts). * * Focus: * - BROS-1221 — SAM2-generated VideoVector regions must reflect the detected * region. The conversion always traces the region's boundary contour * (marching squares) and the `closed` flag follows the control's `closable` ...
65b1df3100d65cb0f5401ef8b3bb7bd8b9e307797e2ada77c7a4a65d26702b73
TypeScript
6,831
213
/** * 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...
193fa6f9ac9a9a38150f4d20852c03cd0958f376c5de77c62cf65b1cb43a049b
TypeScript
6,834
245
/** * 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...
3708bc1b29cec854ae7f510753dc6c6d61b9af7c6d2d884a1527029771873405
TypeScript
6,836
203
/** * Pure functions to convert Segment Anything binary masks into various output formats: * polygon vertices, bitmask PNG data URLs, and bounding boxes. */ import { maskToClosedVectors } from "./MaskConverter"; /** * Downsample + trace the mask, returning contour shape data for all detected shapes. * * Always ...
bbf200738cf7e769bd88d513ec6dc69834497ff853e6fd6d127a88e5122be321
TypeScript
6,837
187
/* * 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 ...
65215767b44f9023afc4db592ec89e6eae4d5108b72e455ed968e141f90d5371
TypeScript
6,839
245
export const simpleVisibleWhenVisibilityConfig = `<View> <Text name="text" value="$text"/> <View name="Level 1"> <Header value="Level 1"/> <Choices name="level1" toName="text" choice="single" showInLine="true"> <Choice value="1A"/> <Choice value="1B"/> </Choices> </View> <Choices n...
0c2d5979f0f5badefdd0d47a6e75d63a359119e3fcfbd0034a72a6a070cc54ab
TypeScript
6,851
204
/* * 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 ...
849bb61471293afd29e820f5c21b87854755dbeee51d929c862cdc9a1886327c
TypeScript
6,863
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...
d7f412cc82e224fcba2f6c1ad305724caa2736aec4c015c5419ea0fe29b0941e
TypeScript
6,864
239
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
4382717e2227f3220b3b435de51899a1ab3e3401fcab1276c454077990653b31
TypeScript
6,871
201
import { useLayoutEffect, useRef, useState } from "react"; interface UseAvatarOverflowProps { enabled: boolean; containerRef: React.RefObject<HTMLDivElement>; itemCount: number; recalcTrigger?: number; } /** * Custom hook to calculate avatar overflow and determine how many avatars should be visible. * Retur...
7d322878857be0bf644818a8120b84da2aa7753a711e41413ed4fe5c4ecf85eb
TypeScript
6,871
189
import { Component, Injector } from "@angular/core" import { TestBed, ComponentFixture, fakeAsync, tick, flush, discardPeriodicTasks } from "@angular/core/testing" import { By } from "@angular/platform-browser" import { MockStore, provideMockStore } from "@ngrx/store/testing" import { NehubaViewerUnit } from "../nehuba...
fe47e7b8b57efa36e98b80e600e0f3ee658b6c9ef7ef73530f42dc69fa0e5ccb
TypeScript
6,880
224
import { useRefCallback } from "@humansignal/core/hooks/useRefCallback"; import { type MutableRefObject, useContext, useEffect, useMemo, useRef, useState } from "react"; import { TimelineContext } from "../../../components/Timeline/Context"; import { isTimeRelativelySimilar } from "../Common/Utils"; import type { Laye...
d8544e777c75dbca4ccc61345021b0b573f6b1c9ccaf26116d94b4f374829085
TypeScript
6,895
182
import { TestBed } from "@angular/core/testing" import { of } from "rxjs" import { SAPI } from "src/atlasComponents/sapi" import { RouteStateTransformSvc } from "./routeStateTransform.service" import { DefaultUrlSerializer } from "@angular/router" import { atlasAppearance, atlasSelection, userInteraction, userInterface...
ff73b8b7585479b5dd4827c8a27928fc102e69deb6ef8c653aa2f460eb3f16c4
TypeScript
6,912
222
/** * @file Colormaker * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3, Color } from 'three' import * as chroma from 'chroma-js' import { createParams } from '../utils' import { NumberArray } from '../types' import Structure from '../structure/structure' import Surface from '...
ea384171c7e4be2ac79fe9efcf8af79e04db13b1e4beaa1c857f4c84c1dc2eef
TypeScript
6,916
177
import { ImageView, LabelStudio, Sidebar } from "@humansignal/frontend-test/helpers/LSF"; import { simpleImageData, simpleRectangleConfig, simpleRectangleResult, } from "../../data/image_segmentation/tools/selection-tool"; import { FF_DEV_2671 } from "../../../../src/utils/feature-flags"; describe("Image Segment...
0223fa07b88b4fe13e9f769ae23c8fea2bc230cd3b9be6ca9ec8ec1fece18e7a
TypeScript
6,924
234
import { AfterViewInit, Component, HostBinding, OnDestroy, OnInit, Renderer2, TemplateRef, ViewChild, ElementRef, Inject, Optional, } from "@angular/core"; import { Store, select } from "@ngrx/store"; import { Observable, Subscription, merge, timer, fromEvent } from "rxjs"; import { filter, delay,...
728c09e615224432c6519b3d24bc22f98e03312c7bcb6be41e5897c5c7a0c163
TypeScript
6,931
243
import { Inject, Injectable, Optional } from "@angular/core"; import { Observable } from "rxjs"; import { getUuid, noop } from "src/util/fn"; import { ConfirmDialogComponent } from "src/components/confirmDialog/confirmDialog.component"; import { IMessagingActions, IMessagingActionTmpl, WINDOW_MESSAGING_HANDLER_TOKEN, ...
e8757e1c754fa03d16b312a890a1e7de600f22e8469a1f4153093264222540c7
TypeScript
6,931
236
/** * 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...
9c71e91461a35169b69b0a008f1c9b6e0b6da575704a5e2d753eabc4a2fa16fc
TypeScript
6,936
194
/** * 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...
8bbf0c7898a9535df851748b0d535f3d66e2faa90e481989ba5ea3ba65a4ab6f
TypeScript
6,942
172
/** * @file Dihedral Histogram Representation * @author Rudolfs Petrovs <rudolfs.petrovs@astx.com> * @private */ import { Color } from 'three'; import StructureRepresentation, { StructureRepresentationParameters } from './structure-representation'; import { Structure } from '../ngl'; import StructureView from '../s...
5e2363707cc08f5cb6205e3d552d0af299fe55cba697def9b8cf2f735a299407
TypeScript
6,946
205
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts" // @generated from file dbtlabs/proto/public/v1/events/fusion/phase/phase.proto (package v1.public.events.fusion.phase, syntax proto3) /* eslint-disable */ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import { enumDes...
845825c9c765926a3132967668ae4816f65319412c318bd78aca21972fd80b57
TypeScript
6,946
265
import { formatDistanceToNow } from "date-fns"; import { destroy, detach } from "mobx-state-tree"; import { camelCase, snakeCase } from "@humansignal/core/lib/utils/string"; /** * Internal helper to check if parameter is a string * @param {*} value * @returns {boolean} */ export const isString = (value: any): valu...
3165879e6e4e9277f722edcb89a42b774d01541c0238761be6b1b6266ac484aa
TypeScript
6,948
242
import { existsSync, mkdtempSync, readFileSync, rmSync } from 'node:fs'; import { tmpdir } from 'node:os'; import { join } from 'node:path'; import { parseSetupArgs, runSetup } from '../src/commands/setup'; jest.mock('../src/config', () => { // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment cons...
64ff381dceaeefbd0eb6f9b2a26b11318a2f7f711b45759dc7c97c97e0bb4c2f
TypeScript
6,948
181
/** * 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...
594f066b3e598b946a5fa7302ea5a2a7e7056ab8a7da740b9b099020c9ec4824
TypeScript
6,956
196
/** * 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...
8c13805e5441dc3b3e07080d9f31a6d29ebe19b7606132d46459f405cc9dfb61
TypeScript
6,957
185
// Importing modules import { Injectable } from '@angular/core'; import { HttpClient, HttpParams } from '@angular/common/http'; // Importing services import { SSEService } from './device-startup/sse.service'; // Importing interfaces import { postDic } from './postDic'; @Injectable({ providedIn: 'root' }) export ...
3a66b8d30984b869e30d0c83b95e047b3be64d5866713ef64c45c9a99f39c385
TypeScript
6,983
285
/** * 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...
82985ac63e4f93d159f7ae534ca7ff87adbce73aa389c80c90796dad41aeb9c6
TypeScript
6,991
181
/** * 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...
ad87953d7398f3d2c410808dae56cae0505fd2c5f0ef3af6bc34f64f6656736e
TypeScript
6,991
216
/* 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...
7eb726774459760b17d65751ceab9c5f861882dd739d277b26612a0cadc6483d
TypeScript
7,003
211
import { AudioView, LabelStudio } from "@humansignal/frontend-test/helpers/LSF"; const config = ` <View> <Video name="video" value="$url" sync="v1" framerate="29.970628" /> <Audio name="audio" value="$url" hotkey="space" sync="v1" /> <Header value="Sentiment"/> <ParagraphLabels name="label" toName="text"> ...
a1cc9b99d097c6c7ec3f6588058b4906796b3bfa85b897ca1937e0891954920e
TypeScript
7,013
246
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
4bd17bb11f42891692380687a6ddadcea8fe24c0cb455839acc6566e52570fb3
TypeScript
7,024
178
import { readFileSync } from 'node:fs'; import { join } from 'node:path'; import { afterEach, describe, expect, it, vi } from 'vitest'; import { readBootstrap } from './bootstrap'; /** * These read real parquet, not a mock. * * The fixtures are the actual output of `dbt compile --generate-info-schema` on a * thre...
2bf86d3f1bee942f86d31240de00f610de1afe94ba6ac2740a1f5560ace95b71
TypeScript
7,025
258
import { ff } from "@humansignal/core"; import { patchPlayPauseMethods } from "../../../utils/patchPlayPauseMethods"; import { Events } from "../Common/Events"; import { audioDecoderPool } from "./AudioDecoderPool"; import { type BaseAudioDecoder, DEFAULT_FREQUENCY_HZ } from "./BaseAudioDecoder"; const isSyncedBufferi...
60c67ba111c1a6bf025a090d6b8f751184d8c1d094d64e04de20509885bf6987
TypeScript
7,042
279
/** * @file Surface * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3, Box3, BufferGeometry, Group, Color } from 'three' import { Debug, Log, ColormakerRegistry } from '../globals' import { getUintArray } from '../utils' import { AtomPicker, SurfacePicker } from '../utils/picke...
f41da275575e9b10d0424d18fb1f440b1023e08e6e5f2e87197d52116739284b
TypeScript
7,055
204
/** * 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...
0dabd61c8531a3455d5cdf8a8ad5e21e170cf4a6d10343d29d1850ce60b98d4c
TypeScript
7,074
236
import { resolve } from 'path'; import { buildToolResultMap, formatResultDisplay, getFunctionCalls, getLastTurnRecords, getMessageText, getTokenUsage, getToolOutput, isFunctionCallPart, isTextPart, parseTimestampToNs, readTranscript, } from '../src/transcript'; import type { ChatRecord, GeminiPar...
c8998687ecd43666017ab66257ad8f46e74b11f97c6861188e349e8b9fa8f69d
TypeScript
7,076
267
/** * 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...
6e68a8570d77cdba413f33e22f59c15100e1ee5aaf1447cd663e0f1805aacbf6
TypeScript
7,084
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...
613c99793344a6bffc042f6542bb32ce797cd96c4ec80453058057690723a898
TypeScript
7,101
273
/** * 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...
66b019a98dfceb82ffe0e1ee59150baf5083068449c9754e8d48007f30f10cdf
TypeScript
7,114
219
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...
c28294da3e71bb3159bb03b5bd9d2aa65a650bee61e84a74199edaf9592058f6
TypeScript
7,115
197
import { type AudioDecoderWorker, getAudioDecoderWorker } from "@humansignal/audio-file-decoder"; /** URL to decode-audio.wasm so the package can fetch and instantiate it with its own Emscripten env. */ import decodeAudioWasmUrl from "@humansignal/audio-file-decoder/decode-audio.wasm?url"; import { BaseAudioDecoder } f...
a0ff8903f4652ccf7f3ae709bc76f1382d2a36e70643e0bd1b0d52ac12407476
TypeScript
7,134
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...
a04d8e3051ab881d1c42743a32a4a1990b53814e8346235986629340714df9bb
TypeScript
7,139
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...
573f5e2b472ef69a2eb0d569fb8f2fc1b5096ed1529f20858499e1b02208b105
TypeScript
7,170
239
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
cf18b762f7a3102600d7f38e237b746192771eed197b985f52a78f056ba45cb4
TypeScript
7,185
240
/** * Highly improved version of CodeMirror's XML hint addon * https://codemirror.net/5/addon/hint/xml-hint.js */ import CM from "codemirror"; const Pos = CM.Pos; const topTags = ["View"]; function matches(hint: string, typed: string, matchInMiddle?: boolean) { if (matchInMiddle) return hint.includes(typed); r...
9d35bfc22a16f9e7b25b5424d2e5b6aae6cb2ee83ceeaaddafcb0896dde3c93f
TypeScript
7,186
256
import { AfterViewInit, Component, Inject, QueryList, TemplateRef, ViewChildren, inject } from '@angular/core'; import { select, Store } from '@ngrx/store'; import { distinctUntilChanged, map, scan, shareReplay, switchMap, take, takeUntil } from 'rxjs/operators'; import { IDS, SAPI } from 'src/atlasComponents/sapi'; im...
958fa1d0039a883b9c12b78c32858594ef926f4d30f99b64f0ab9afead75875c
TypeScript
7,195
197
import Constants from "../../core/Constants"; import type { MSTControlTag } from "../../stores/types"; import { contrastColor, convertToRGBA } from "../../utils/colors"; import type { ControlTag, LabelColors, LabelCounts, ObjectTagEntry, ObjectTypes } from "./types"; const defaultLabelColor = Constants.LABEL_BACKGROUN...
a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012
TypeScript
7,209
135
/*! ***************************************************************************** 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....
2abc629f835ce07f935cf17cbf13e3d6e1c3e622bf8ed7f30f83ecb3aee781aa
TypeScript
7,211
324
/** * @file Primitive * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3, Color, Box3 } from 'three' import { BufferRegistry, PickerRegistry } from '../globals' import Shape from './shape' import { getFixedLengthDashData } from './dash' function addElement (elm: any, array: any...
dee131a02e30e9cf4a134795fc08c10a5115bf50a7d03f305b50340ddd4e2780
TypeScript
7,236
241
/** * 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...
0c25632086c5f8470e45745e5a8eddd3963b9cbff84383008ea3c2a3672a8ce9
TypeScript
7,238
248
/** * 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...
a3f29928051141f1b6fad680eb6d17fd6b72748af449b852542337aa2c27fb15
TypeScript
7,253
199
/** * @module cola */ module cola { export interface LinkAccessor<Link> { getSourceIndex(l: Link): number; getTargetIndex(l: Link): number; } export interface LinkLengthAccessor<Link> extends LinkAccessor<Link> { setLength(l: Link, value: number): void; } // compute the ...
73c35f89812e44efdb9cd33185ddaaeb692ed20ff33803199e93f9d8a431b44a
TypeScript
7,256
201
import { isEnterpriseEdition, normalizeReviewAcceptedState, resolveClassicEntityReviewState, resolveFlexibleRejectButtonTitle, resolveReviewAcceptedStateFromTaskSource, resolveReviewBarCopy, } from "../review-accepted-state"; describe("isEnterpriseEdition", () => { const origAppSettings = (window as { AP...
f1fccb5b3376b0c0f77bc730cb3a41818c6180faaa35cc0afa2d5070b523633b
TypeScript
7,256
167
/* * 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 ...
d71a4bb25423ce77e001d5c4381e4f1328558bc3171b023c00fa818948155157
TypeScript
7,266
234
/** * Types of trace locations */ export enum TraceLocationType { /** * Unspecified trace location type */ TRACE_LOCATION_TYPE_UNSPECIFIED = 'TRACE_LOCATION_TYPE_UNSPECIFIED', /** * Trace is stored in an MLflow experiment */ MLFLOW_EXPERIMENT = 'MLFLOW_EXPERIMENT', /** * Trace is stored in ...
fcf44f4d765257b831de12143f4e2f375611a8ade26c6a14bfbba0ab869c77a9
TypeScript
7,274
233
/** * 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...
703388c6795093bb98d860009561e62f0d9c8ec4398489d8cd8d439222276e29
TypeScript
7,284
229
/** * FIT-720: Shared annotation fetching hook using TanStack Query * * Provides caching, deduplication, and invalidation for annotation fetches. * Cache invalidation utilities (invalidateAnnotationCache, invalidateTaskAgreementCache) * live in @humansignal/core/lib/utils/annotation-cache and are re-exported from ...
256dbfc41409598ca9d693a138a274d4a74ef3ef204bea7089f4f01fe463190b
TypeScript
7,296
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...
2c8f68597244c42ee2930ba9c792454a6bfac44160ae45e168d88af7a9125b9e
TypeScript
7,297
262
/** * @file Dash * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3 } from 'three' import { CylinderBufferData } from '../buffer/cylinder-buffer' import { WideLineBufferData } from '../buffer/wideline-buffer' import { calculateDirectionArray, calculateCenterArray, replicateA...
4bbb794b512a43b3fd2975e44faa477024f6760f88b948bbca0fd988160bf683
TypeScript
7,315
329
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
4fe5a6558b8bce6b980a98831b8416b2cedad18a277c90e4a81405216d4f30a5
TypeScript
7,325
159
/* * 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 ...
d0444b77138ed6518b0ff2580b378b46234915b660ce45dbab12b6909a8c4abc
TypeScript
7,331
201
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts" // @generated from file dbtlabs/proto/public/v1/events/metadata_telemetry.proto (package v1.public.events.metadata_telemetry, syntax proto3) /* eslint-disable */ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import { e...
27306637541315f7e086b9f1dc30666d9aa677aea36b866eb1a4e429d4d6c0f7
TypeScript
7,346
203
import { useCallback, useRef } from "react"; import { useInfiniteQuery } from "@tanstack/react-query"; // Extend Window interface to include DataManager properties declare global { interface Window { DM?: { store?: { apiCall: (method: string, params: any) => Promise<any>; }; apiCall?: (...
74d0121dff15d48f7e15e61d2f8fce21109d9e63fa23c542abf2a8e336dcc130
TypeScript
7,348
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...
2be0fa5f43b2671ed258a9b1e2181ef628d3ec7540aac0899bb55da331accedf
TypeScript
7,361
252
import { DOCUMENT } from "@angular/common"; import { Inject, Injectable, Optional } from "@angular/core"; import { BehaviorSubject, EMPTY, interval, Observable, Subject } from "rxjs"; import { distinctUntilChanged, filter, map, switchMap, take, takeUntil } from "rxjs/operators"; import { NehubaViewerUnit } from "../neh...