sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
0c36a4d2474355a2210f54097bdd69a872cb98877755ea5d3833878f31cea331 | TypeScript | 3,344 | 96 | /**
* 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... |
9760f7d53fd143812c7af9f41283cfde03c80d63755d249f28cc44b57ed28a40 | TypeScript | 3,348 | 88 | import {Artifact, ArtifactRepository, NodeStatus, WorkflowStatus} from './models';
export const nodeArtifacts = (node: NodeStatus, ar: ArtifactRepository) =>
(node.inputs?.artifacts || [])
.map(a => ({
...a,
artifactNameDiscriminator: 'input'
}))
.concat((node.output... |
c6f4c80aee3bcc4ab25aa44e467eedc7762a56bd7c99af93a293e305a0b32b3c | TypeScript | 3,349 | 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... |
dc61da54febf1fc2bd5ca9b01408313faf8d6237728acbce6822ed7697bc3f2b | TypeScript | 3,349 | 94 | /**
* 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... |
8a19f3c47d4055538a1bdad12b7616da1abd11f146df7fbe14182019a0b12e6a | TypeScript | 3,351 | 87 | /**
* @file Contact Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import StructureRepresentation, { StructureRepresentationParameters } from './structure-representation';
import TextBuffer from '../buffer/text-buffer';
import Viewer from '../viewer/viewer';
import { Structure }... |
e24ebc6d302e2f607b59467b6e6b05732a52548df3729ea7d9922740e5646333 | TypeScript | 3,351 | 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... |
164d3e0cd45142306e9d82d28c1dc8502ec73b3abe4a11cc743dbbae47645da4 | TypeScript | 3,352 | 114 | import {createInitialState, reducer, setObjectActionCreator} from './use-editable-object';
describe('createInitialState', () => {
test('without object', () => {
expect(createInitialState()).toEqual({
object: undefined,
serialization: null,
lang: 'yaml',
initi... |
f5a4877fb90e6ca3e734d14e9580ef7d0435e3247df80af4cfd259fdf774e4ae | TypeScript | 3,356 | 103 | /**
* 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... |
1e9adeda72bce9bbca5d9ba89cd5d19c87102a9145aa34aeb750a44c7de6329a | TypeScript | 3,357 | 97 | /**
* 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... |
4bee8053d77c852642b56983b4adc858fe7880a3bb00e0f137a581dd1a1c1ae4 | TypeScript | 3,366 | 104 | /**
* 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... |
59cc31274a251efb1b64c45ae3fc40864adf119bbce16606cee00ea9204b8613 | TypeScript | 3,367 | 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... |
cab5e4aabdbe118e99b21a72698848402db3863ca327ed08fa7e1f5bba61b229 | TypeScript | 3,367 | 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... |
70b73602281d08c845f6739c986120da94994e27c061492085d60013e9e25244 | TypeScript | 3,370 | 88 | import { runSetup, runStatus } from './commands/setup.js';
function printUsage(): void {
console.error('Usage: mlflow-claude-code <command> [options]');
console.error('');
console.error('Commands:');
console.error(' setup Configure MLflow tracing for Claude Code.');
console.error(' Opti... |
30c057d7ef1a11a216735566b679d9837c26ccde2665386927a598012bb96495 | TypeScript | 3,373 | 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... |
abd8d575a0b407bb19243059cb74ad5050e1ed53dcf5e46c8de76b74d1661fcb | TypeScript | 3,374 | 78 | import {expect, Locator, Page} from '@playwright/test';
import {NAMESPACE} from '../fixtures/auth';
// Page object for the workflows list (ui/src/workflows/components/workflows-list).
export class WorkflowListPage {
readonly nameFilter: Locator;
readonly submitButton: Locator;
constructor(private readonl... |
1b741c2ef09a2b36f0b3f1af622e5bfcd82db37c9eacbe885b6a76e13ee97dd4 | TypeScript | 3,378 | 97 | /**
* 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... |
825974f1ca3fb633d434447bd23d9583ee0d1b6e3e0755eecd2e1c4238420673 | TypeScript | 3,379 | 102 | /**
* 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... |
08e4fa0b838e47ac6b100ec55057347403741661aabf2aa816e40716fed0aaed | TypeScript | 3,381 | 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... |
078ba6209bc946910c2f30d65adeed66dc53bca20844d74608360c9cf4220361 | TypeScript | 3,384 | 109 | /**
* 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... |
6ddbcadf58582c87ade934bac5c1a208c90d6d65744c1b7bc8fb0e7507fa5670 | TypeScript | 3,389 | 93 | import type { Waveform } from "..";
import { rgba } from "../Common/Color";
import type { Visualizer } from "../Visual/Visualizer";
import type { Regions } from "./Regions";
import { Segment, type SegmentGlobalEvents, type SegmentOptions } from "./Segment";
export interface RegionGlobalEvents extends SegmentGlobalEven... |
00211bf8621617ec73475b406a32967b961ff73d52536e85d3a3c71c7f4d6694 | TypeScript | 3,390 | 93 | /**
* 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... |
7f88beb0a688fbeb247cf73848ce13496e05a8ffb71bbaebbed5702217f13883 | TypeScript | 3,390 | 116 | /**
* 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... |
dd1e74f934499bd3beae156d7460f1819e8c6241508dc1017a2033eb694a5a59 | TypeScript | 3,392 | 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 ... |
2e339d073eeae32d7a77746d9bd0198b0c4b476922079888ca8ed32585f9b350 | TypeScript | 3,394 | 105 | /**
* 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... |
d390ddf9b815c7a225efb58da13ba7e776676f710d2619b352af832c1eba2563 | TypeScript | 3,396 | 101 | import * as Sentry from "@sentry/browser";
import * as ReactSentry from "@sentry/react";
import type { RouterHistory } from "@sentry/react/build/types/reactrouter";
import { Route } from "react-router-dom";
import { isDefined } from "../utils/helpers";
const SENTRY_DSN = APP_SETTINGS.sentry_dsn;
const SENTRY_ENV = APP... |
98adfc6258ba28fab05476b3a9f750d49858295ec9abbae6991373b1fe2c2d2d | TypeScript | 3,401 | 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... |
3fc2b70e67be85236c3b5cf26f4663a41ff5a927b3618ea197aaa91de551a503 | TypeScript | 3,403 | 148 | /**
* @file Atom Type
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { guessElement } from '../structure/structure-utils'
import {
AtomicNumbers, DefaultAtomicNumber,
VdwRadii, DefaultVdwRadius,
CovalentRadii, DefaultCovalentRadius,
Valences, DefaultValence,
OuterShellElectro... |
0ef6a9e4afa31d3e6d14a7cbc578403c649b35da90f7e0d1251c81ba065fdd1e | TypeScript | 3,410 | 93 | /**
* 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... |
3664169e7f89a6f3dc13f202ad6ee6f1113ad7fe68ca420b7e33d397437efa13 | TypeScript | 3,410 | 101 | /**
* Filesystem paths for the MLflow trace WAL (Write-Ahead Log) spool.
*
* A spool is shared across all Claude Code sessions
*
* The daemon's singleton lock is scoped per `(user, spool root)` on both
* platforms; its exact location depends on the platform and the resolved
* spool root's length:
* - POSIX, com... |
a2e5cfebe83dfffeb0de52ce26e22735957d2d807b0b4eb77a1c73823a7555f0 | TypeScript | 3,414 | 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... |
be701b565e25a9b2288725434324232996be1b2bf518992e04216c97bbb0c99e | TypeScript | 3,415 | 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 ... |
59c1512117bce649926b0bb80886b2c33901c84e8f2a873138460edda2c2c02e | TypeScript | 3,419 | 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... |
7b1afba766949147995a2140e033de5ba6838d6277ec13ea6a126abf5425b2a1 | TypeScript | 3,420 | 136 | import {exampleWorkflowTemplate} from '../examples';
import {parse, stringify} from './object-parser';
describe('parse and stringify are inverses', () => {
it('handles creationTimestamp', () => {
const testWorkflowTemplate = exampleWorkflowTemplate('test');
testWorkflowTemplate.metadata.creationTim... |
75b5c2d97b00a78bfba6a6c525652512e674e90ec42be157702315c74cc7aa07 | TypeScript | 3,422 | 150 | /**
* @file Tiled Renderer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { defaults } from '../utils'
import { Camera, WebGLRenderer } from 'three'
import Viewer from './viewer'
export interface TiledRendererParams {
factor?: number
antialias?: boolean
onProgress?: Function
o... |
690a5a173c2fd6e95d19372f8b3acfbcfdae8f45eae689d53208703f78f85fa4 | TypeScript | 3,423 | 106 | import { SpanEvent } from '../../../src/core/entities/span_event';
describe('SpanEvent', () => {
describe('constructor', () => {
it('should create a span event with all parameters', () => {
const timestamp = BigInt(Date.now()) * 1_000_000n; // nanoseconds
const attributes = {
key1: 'value1',
... |
f35679fa3b6b3729f6c6bccc1edd6be87735c60cbcc21ca3b48e603e8a62ff0b | TypeScript | 3,431 | 124 | import { AfterViewInit, Component, EventEmitter, OnDestroy, Output, ViewChild } from "@angular/core";
import { concat, of, Subscription } from "rxjs";
import { withLatestFrom } from "rxjs/operators";
import { EnumViewerEvt, TViewerEvent } from "../../viewer.interface";
import { NehubaLayerControlService } from "../laye... |
011a0a684a228e1cd8b490a9dce7f2f05678541a05b86ce1ebe2ff0090a5c0d9 | TypeScript | 3,438 | 158 | import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
const sidebarsSelfHosting: SidebarsConfig = {
selfHostingSidebar: [
{
type: 'doc',
id: 'index',
label: 'Overview',
className: 'sidebar-top-level-category',
},
{
type: 'category',
label: 'Architectur... |
ddc4518f3aae571cc035cf024d61ccadb2ddf35a24dcf14e3441adc7a3f90890 | TypeScript | 3,442 | 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 ... |
344ec4a641ada37bd3439809176a9a514e5f01330cce54e121f5156abb90e54f | TypeScript | 3,447 | 83 | /**
* @file Dot Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Representation, { RepresentationParameters } from './representation';
import FilteredVolume from '../surface/filtered-volume';
import SphereBuffer from '../buffer/sphere-buffer';
import PointBuffer from '../bu... |
51fdf91075049a14b5075d0a30a5c504c84b135356aabbeb21387307c2cbe586 | TypeScript | 3,448 | 74 | /**
* 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... |
b22cb813913848630981e4e8d04d3f0bd9d9804e5973b7b0784b488cb1cf3f7c | TypeScript | 3,449 | 123 | import { ActionReducer, StoreModule } from "@ngrx/store"
export { StateModule } from "./state.module"
import * as atlasSelection from "./atlasSelection"
import * as annotation from "./annotations"
import * as userInterface from "./userInterface"
import * as atlasAppearance from "./atlasAppearance"
import * as plugins... |
3c83bfcf5d8e5abef4b2531b96e46415d9fed47e6ef78b2d592be42ddb21cc2c | TypeScript | 3,453 | 106 | // eslint-disable-next-line
// @ts-ignore
import { info } from "../Common/Utils";
import { BaseAudioDecoder } from "./BaseAudioDecoder";
export class WebAudioDecoder extends BaseAudioDecoder {
private arraybuffer?: ArrayBuffer;
private context?: OfflineAudioContext;
/**
* Initialize the decoder if it has not... |
0e85023657dff460a649b4df69352ef810d56cd8620bb60d5a38cb78f17b95ea | TypeScript | 3,454 | 94 | /**
* 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... |
d81202e21eaadf5b1cf338f825af896411d1586509ddd74534bfd1c5cf46fbd1 | TypeScript | 3,454 | 77 | import {APIRequestContext, expect} from '@playwright/test';
import {bearer, ENV_FACTOR, NAMESPACE} from './auth';
import type {TestWorkflow} from './workflows';
// Seeds and inspects backend state directly over the REST API (proxied through
// the webpack dev server at /api/v1). Tests prefer submitting here and waiti... |
1ec15aaa39e90e46aaf645138ebd7b7af7f3912a518a588cc7012c0392a2600f | TypeScript | 3,460 | 114 | /*
* 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 ... |
db8bbcd573749ed192e84a6d461257d3d9589688bb866b062fc3363c65ccfd14 | TypeScript | 3,465 | 137 | /**
* @file Mapped Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { getUintArray } from '../utils'
import { calculateCenterArray, serialArray } from '../math/array-utils'
import Buffer, { BufferParameters, BufferData } from './buffer'
export type MappingType = 'v2'|'v3'
/**
*... |
1a1360e1547437f7fa1e4e9f0bce771a8380547a5e145e03d17439720cf34abb | TypeScript | 3,468 | 132 | import type { WaveformAudio } from "../Media/WaveformAudio";
import type { Waveform } from "../Waveform";
import { Player } from "./Player";
export class WebAudioPlayer extends Player {
private audioContext?: AudioContext;
private audioBufferSource?: AudioBufferSourceNode;
private gainNode?: GainNode;
constru... |
da7d36581fb127237c4e850bf42856a59b238a069dc07ef2923d3d16dcba16b2 | TypeScript | 3,468 | 120 | /**
* 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... |
e46475eaa4f8349c909205ae0127fb1fdc17e07a439af563451e9d595fd0b7ff | TypeScript | 3,468 | 90 | /**
* @file Molecular Surface Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import StructureRepresentation, { StructureRepresentationParameters, StructureRepresentationData } from './structure-representation';
import MolecularSurface from '../surface/molecular-surface';
import ... |
8ac5ffda0b6b98649bb5a7639142917fde4ed1cf9e759aba5b07098f24fdafe3 | TypeScript | 3,472 | 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... |
8074299bbe198cb6e84cb15b6b9a8c731d1dcd9724b06627316a350f48192e79 | TypeScript | 3,474 | 104 | import { useMemo } from "react";
import type { Table } from "@tanstack/react-table";
import type { DataShape, DataTableProps } from "../lib/data-table/data-table";
import { resolveColumns, createColumnSizeKey } from "../lib/data-table/tools";
/**
* Hook to manage column sizing and persistence
*
* Converts TanStack ... |
d7fbc79dabad43cddb36d6ff55c34656aa098c57ee27cf22ccaa679db90dd161 | TypeScript | 3,474 | 96 | import { describe, expect, it } from 'vitest';
// The real document, copied verbatim out of a `--generate-info-schema` run.
// Parsing a hand-written approximation would prove nothing: the point of
// reading `views.sql` at all is that the generator owns its shape.
import realViewsSql from '../../../test/fixtures/info... |
12aeeb48250c591d11908a451e1901bf3cdad1c0887dc210f0971e9ae68aee2f | TypeScript | 3,483 | 171 | /**
* Here, you will find the type interface used by siibra-explorer
* SAPI types can change in the future, but hopefully, the setup can allow
* a much smoother transition to new API
*/
/**
* TODO do a global search on typeV3
* anything outside src/atlasComponent should directly import from sxplrTypes, and not ... |
4a64e722e85270359f49641541f2bec161fca15efc8cf51729aca7fccab7e4a3 | TypeScript | 3,486 | 123 | /**
* @file Loader Utils
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import {
DatasourceRegistry, DecompressorRegistry, ParserRegistry, ScriptExtensions
} from '../globals'
import ParserLoader, { ParserParams } from './parser-loader'
import ScriptLoader from './script-loader'
export int... |
341c39ed5092ca7beed8c0ad01fa288caf9e3b3c9906af2f3d6c933286797b6f | TypeScript | 3,498 | 108 | class RichTextHelper {
private get _baseRootSelector() {
return ".lsf-htx-richtext";
}
private _rootSelector: string;
constructor(rootSelector) {
this._rootSelector = rootSelector.replace(/^&/, this._baseRootSelector);
}
get root() {
return cy.get(this._rootSelector);
}
get content() {
... |
8ca870e98b4336e96f6162c0029bf2918545e7e259bf21403794837e226e79c1 | TypeScript | 3,501 | 115 | import { HttpHeaders } from "@angular/common/http"
export const LOCAL_STORAGE_CONST = {
GPU_LIMIT: 'fzj.xg.iv.GPU_LIMIT',
ANIMATION: 'fzj.xg.iv.DISABLE_ANIMATION_FLAG',
MOBILE_UI: 'fzj.xg.iv.MOBILE_UI',
AGREE_COOKIE: 'fzj.xg.iv.AGREE_COOKIE',
AGREE_KG_TOS: 'fzj.xg.iv.AGREE_KG_TOS',
QUICK_TOUR_VIEWED: 'fzj.... |
bd08a70f3c7e7079f163aea7627c3521eeddfcc3b0609e7a335bc6dac4c2f4f4 | TypeScript | 3,509 | 103 | import { PNG } from "pngjs";
import pixelmatch from "pixelmatch";
import fs from "fs";
import path from "path";
type MatchImageSnapshotOptions = {
screenshotPath: string;
snapshotsDir: string;
snapshotName: string;
threshold?: number;
failureThresholdType?: "pixel" | "percent";
updateSnapshots?: boolean;
... |
1c4da4d0acf452f4d84febd1be443c5cefa9c716fdb5a06044830872d1c5b083 | TypeScript | 3,510 | 110 | /**
* 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... |
b4bd67cbd703d6e046c8608b86a109c371aa40f9720b9d362208a7042c92214c | TypeScript | 3,510 | 129 | import colormap from "colormap";
import { clamp } from "../Common/Utils";
// Define known color schemes
export const COLOR_SCHEMES = {
JET: "jet",
HSV: "hsv",
HOT: "hot",
COOL: "cool",
SPRING: "spring",
SUMMER: "summer",
AUTUMN: "autumn",
WINTER: "winter",
BONE: "bone",
COPPER: "copper",
GREYS: "... |
af20e78f0f1e79418a007fd34d510b8d580ab1f932b92ec59b4e77cebe9f6653 | TypeScript | 3,515 | 109 | /**
* 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... |
4a73e69df0d7ffda3b88d4e7710ebf0dc3d1d73e635d73beb4bba8f8a896545f | TypeScript | 3,517 | 90 | import {useReducer} from 'react';
import {Lang, parse, stringify} from '../shared/components/object-parser';
import {ScopedLocalStorage} from '../shared/scoped-local-storage';
type SetObjectAction<T> = {type: 'setObject'; payload: {object: T; serialization?: string}};
type Action<T> = {type: 'setLang'; payload: Lang}... |
55e2e35974071d48fe769cffa34c78c1e38c0f02891bdd4bf40ce13a42484525 | TypeScript | 3,520 | 138 | import { ChangeDetectionStrategy, Component, OnInit } from "@angular/core";
import { select, Store } from "@ngrx/store";
import { combineLatest, merge, of, Subscription } from "rxjs";
import { map, pairwise, withLatestFrom} from "rxjs/operators";
import { ARIA_LABELS, CONST } from 'common/constants'
import * as nehubaS... |
b235566b1289a372c9ef2b35f1ddcdf7c0c6d9efd0894aac8808794eda0c9650 | TypeScript | 3,527 | 91 | /**
* 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... |
04708037799b12f52e3a8d4b2d45408cca348e9de01f9c3cd8332dea41e95ac6 | TypeScript | 3,530 | 75 | /**
* @jest-environment jsdom
*/
import KinParser from '../../src/parser/kin-parser'
import FileStreamer from '../../src/streamer/file-streamer'
import * as path from 'path'
import * as fs from 'fs'
var file = path.join(__dirname, '/../data/1xgoFH-multi.kin')
var str = fs.readFileSync(file, 'utf-8')
var blob = ne... |
382b1fae71720ee40cf118d90516b645227fc44175aec43ef71a6679492d179f | TypeScript | 3,530 | 154 | /**
* Constants for KonvaVector component
*
* This file contains all hardcoded values used throughout the KonvaVector component
* to ensure consistency and maintainability.
*/
// Instance ID generation
export const INSTANCE_ID_PREFIX = "konva-vector-";
export const INSTANCE_ID_LENGTH = 9;
// Default transform va... |
9ae55ef42b6abe036d3fdb89a460d2ffed92992174c9a62888e1868a6029dc62 | TypeScript | 3,539 | 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... |
7623c8895739c0f9284ccc1a8e38402bc9f547d33650f6d455bb90aab4646506 | TypeScript | 3,540 | 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... |
5a6ff218ef05e3b86109ff5b9b429e3a6f17200c44fd9ffdbd342a76c32a0817 | TypeScript | 3,541 | 111 | /**
* 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... |
e41168ed25527085dee8761b5df033f86f5c3f8ef8c817fb3609fdc088ea4a1d | TypeScript | 3,546 | 87 | /*
* 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 ... |
05c8ca5fb9b1ba69708e15c7ffc3d807e82e126a70a1c2f3b6208cc39a434118 | TypeScript | 3,552 | 106 | /**
* 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... |
6bc249c276732c57b4b0680dafdb292d89db8d3c4b43c09a885f2021301923e2 | TypeScript | 3,553 | 91 | import { Injectable, OnDestroy } from "@angular/core";
import { select, Store } from "@ngrx/store";
import { Subscription } from "rxjs";
import { filter, map, pairwise, startWith } from "rxjs/operators";
import { AnnotationLayer, TNgAnnotationAABBox, TNgAnnotationLine, TNgAnnotationPoint } from "src/atlasComponents/ann... |
1e22466bcb1d78ab432bed4ae3ed9164a3461e83eaa77b204f2b0517379afa20 | TypeScript | 3,559 | 92 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/events/fusion/log/show_result.proto (package v1.public.events.fusion.log, syntax proto3)
/* eslint-disable */
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { enumD... |
1e83807bef0dcb9b23d0ba666de9ffc77c5f90dc49bd1236b81027f5c1967f12 | TypeScript | 3,563 | 107 | /**
* @file Representation Element
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Signal } from 'signals';
import { Color } from 'three';
import Stage from '../stage/stage';
import Representation, { RepresentationParameters } from '../representation/representation';
import Component f... |
75ab105a5355ab65c818555a3daa7346c3504cd3b330e042d456cd42ca49f626 | TypeScript | 3,563 | 120 | /**
* 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... |
c09588e0d744e1a6f58e297181281ad9b5f81329f7e8e87550428439f601a531 | TypeScript | 3,567 | 101 | /**
* 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... |
8661f7f044396eaf156bf5be2eafa59ae64a64f9cb8edea6fea5b3281b56bfc5 | TypeScript | 3,572 | 95 | /**
* @file Structure View
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Structure from './structure';
import Selection from '../selection/selection';
import BitArray from '../utils/bitarray';
import BondProxy from '../proxy/bond-proxy';
import AtomProxy from '../proxy/atom-proxy';
imp... |
6f0a79e7582442e3e16aeb164f86efe60b9ce507b2d000bf011a1051aa1ac241 | TypeScript | 3,575 | 136 | /**
* 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... |
625e219c14a6684788bf485b586af1eda111114de06ff3d94d46a4eddaf1fd60 | TypeScript | 3,589 | 124 | import { registerAnalytics } from "./analytics";
import type { Mock } from "bun:test";
describe("analytics", () => {
const testPath = "/page";
let originalRequestIdleCallback: any;
let originalSendBeacon: any;
let mockSendBeacon: Mock<any>;
beforeEach(() => {
// Mock window.requestIdleCallback
origi... |
6a3dbdf7199709d2f6d2a4be902203423a3ef7c56a0a200b41b04d72ee1e627e | TypeScript | 3,592 | 127 | /**
* 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... |
7c531f5d9e75bd2c5f1da71a14a5cd8b4364c14e000b40296251f9f78971b6fe | TypeScript | 3,593 | 96 | /**
* @file Mouse Controls
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { MouseActionPresets, MouseActionCallback } from './mouse-actions';
import Stage from '../stage/stage';
import MouseObserver from '../stage/mouse-observer';
export declare type MouseControlPreset = keyof typeof Mo... |
1f2a0ac990ec707991e5473765e33315ed998f5f4cc679234a8418c3c19f4df4 | TypeScript | 3,598 | 124 | import { SpanLink } from '../../../src/core/entities/span_link';
const TRACE_ID = 'tr-0123456789abcdef0123456789abcdef';
const SPAN_ID = '0123456789abcdef';
describe('SpanLink', () => {
describe('constructor', () => {
it('should create a span link with all parameters', () => {
const link = new SpanLink({
... |
5fe6ff524c384de93f777559c491be4ef69d35457e0083be3155fcdf6018461b | TypeScript | 3,599 | 127 | /**
* 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... |
7ea728f08f29a3379df457f5357691b95fa09f47322f5c99c3aa4ffde1340f0e | TypeScript | 3,604 | 109 | /**
* 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... |
ee45a9a57e9d8ce6d90e410cb1d46f1c245efd3db693739dff708dad82bf063b | TypeScript | 3,609 | 91 | /**
* 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... |
39bd41b1de3d4361d2e26b1ed07c02fbefea132c4ca01397e16730773871fd02 | TypeScript | 3,613 | 98 | /**
* 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... |
1ea78e83f6bf56ac02bfb3316d8112e8763a0d3fe7ba0da9e4c7f48d44cbffb8 | TypeScript | 3,617 | 102 | /**
* 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... |
c831735fc5b28f7b1ce740f8929ac352735046cb348df23dddb4086cefcb7afd | TypeScript | 3,619 | 131 | /**
* 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... |
0f3f403b2fa4d066c0ecb579411906a72bc00f688a458b11190ef46cd75c0f69 | TypeScript | 3,625 | 119 | import chroma from "chroma-js";
import { observe } from "mobx";
import { useContext, useEffect, useMemo, useState } from "react";
import { ImageViewContext } from "../components/ImageView/ImageViewContext";
import Constants, { defaultStyle } from "../core/Constants";
import { isDefined } from "../utils/utilities";
con... |
a8e270cdec38a2190d805ba52c0b48ef2ab6e89a6938eb198d2abe8bbb7ac101 | TypeScript | 3,630 | 123 | import type { KonvaEventObject } from "konva/lib/Node";
import type { Box, Transformer } from "konva/lib/shapes/Transformer";
import type { WorkingArea } from "./types";
// define several math function
export const getCorner = (pivotX: number, pivotY: number, diffX: number, diffY: number, angle: number) => {
const d... |
f850aa5dfe00703f6f81fc4cec111745ae7585a4c8bf4a7af4fc8b1f625b4c70 | TypeScript | 3,634 | 120 | /**
* 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... |
0c4e14aa604c4f1fe71b51938a180526c4efa296a1a5f4364d44c20e28da34cf | TypeScript | 3,639 | 153 | /**
* @file Dx Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4 } from 'three'
import { Debug, Log, ParserRegistry } from '../globals'
import { degToRad } from '../math/math-utils'
import VolumeParser from './volume-parser'
const reWhitespace = /\s+/
interface DxHeade... |
653ebb153a180af1b151dc746f0a25dc1b413cd94b86ce1cdf7996ff8474568e | TypeScript | 3,644 | 102 | import { trace } from '@opentelemetry/api';
import { BasicTracerProvider } from '@opentelemetry/sdk-trace-node';
import { Trace } from '../../../src/core/entities/trace';
import { TraceInfo } from '../../../src/core/entities/trace_info';
import { TraceData } from '../../../src/core/entities/trace_data';
import { TraceS... |
04c7cc62f26ef82134fbc1502f77a4b445d41a459256eb29bb3aa34233cd925e | TypeScript | 3,645 | 109 | /**
* 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... |
a0f65639e13fc046dd1b8b938ff7204584696c84736e463b3ab82d3bdf1dea7a | TypeScript | 3,652 | 102 | /**
* @file Residue Type
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author Fred Ludlow
* @private
*/
import { ResidueBonds } from '../structure/structure-utils';
import Structure from '../structure/structure';
import ResidueProxy from '../proxy/residue-proxy';
import AtomProxy from '../proxy/atom-pr... |
140a5458ab883ca212ab1a105651dcfab70a56d9737e6e66e5b9ed7b1c752ff3 | TypeScript | 3,653 | 99 | /**
* Persistence layer for "Recent filter fields" in the Data Manager filter dropdown.
*
* Each project stores up to MAX_RECENT_FIELDS entries in localStorage.
* An entry captures the full filter state { id, operator, value } so it can be
* fully restored when the user picks a field from the "Recent" section.
*
... |
c079cce47565c38d313c2dcc70d58aac078f79300bf4307710ace36019082fab | TypeScript | 3,654 | 109 | import { ComponentFixture, TestBed } from "@angular/core/testing"
import { AnnotationList } from "./annotationList.component"
import { FileInputModule } from "src/getFileInput/module"
import { CommonModule } from "@angular/common"
import { ModularUserAnnotationToolService } from "../tools/service"
import { NoopAnimatio... |
51765e9d30cbbc2e0a2613a190bf1fbc7df536035352a42484e7eaa7b5145b80 | TypeScript | 3,657 | 104 | import * as kubernetes from 'argo-ui/src/models/kubernetes';
import {Observable} from 'rxjs';
import {RetryWatch} from './retry-watch';
interface Resource {
metadata: kubernetes.ObjectMeta;
}
type Type = 'ADDED' | 'MODIFIED' | 'DELETED' | 'ERROR';
type Sorter = (a: Resource, b: Resource) => number;
// put the y... |
5d1f7d888665bd46e0094b95b87a1d7f468a2600861b05774dc00ce89646469d | TypeScript | 3,659 | 107 | /**
* Review-state resolution for annotation list filtering and classic editor mappers.
*
* Canonical runtime values after normalization:
* - "accepted" — plain accept
* - "rejected"
* - "fixed" — Fix + Accept (API/history "fixed_and_accepted" maps here)
*/
import type { SharedAnnotation } from "./types";
expor... |
0faa7462c7bdc81a16e289ded05faef3f9d214823c70e4ed8cdd13efb65e62c2 | TypeScript | 3,662 | 136 | /**
* 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... |
a6caa9faffd2194c4b7232aeb2c9679208f38271dbc192d70f78b115013f8b12 | TypeScript | 3,664 | 98 | import { FF_FIT_720_LAZY_LOAD_ANNOTATIONS } from "@humansignal/core/lib/utils/feature-flags";
import { LabelStudio, ToolBar } from "@humansignal/frontend-test/helpers/LSF";
import { FF_DEV_3391 } from "../../../../src/utils/feature-flags";
import { ratingConfig, ratingResult, textData } from "../../data/view_all/readon... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.