sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
0b26026bf7f8383ae50fb93e465c5c00c053cd81bfda410f9d4bf3138659c88a | TypeScript | 1,692 | 48 | /**
* 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... |
4ab343c35b2524a5a691dcffe2863f0f73024e53b7288b10c5b6ad626d6ff722 | TypeScript | 1,693 | 52 | /**
* 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... |
755f7e442bc9d6839282f19a3198718db345a9eb93c8e07ca012ae2cfb6e071f | TypeScript | 1,693 | 51 | /**
* @file Valence Model
* @author Fred Ludlow <Fred.Ludlow@astx.com>
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
/**
* Reworked ValenceModel
*
* TODO:
* Ensure proper treatment of disorder/models. e.g. V257 N in 5vim
* Formal charge of 255 for SO4 anion (e.g. 5ghl)
* Have removed a lot o... |
05b3cb3cc2ecbe15c9eb299707c8dd1790900280281e8367fd6cc84f75de6ff0 | TypeScript | 1,695 | 64 | /**
* @file Mouse Behavior
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Stage from './stage'
import MouseObserver from './mouse-observer'
import Viewer from '../viewer/viewer'
import MouseControls from '../controls/mouse-controls'
class MouseBehavior {
viewer: Viewer
mouse: Mous... |
197cb9616df21e19488d4ab17f68f22f1205e41eba7b71d6e62381a26794f603 | TypeScript | 1,696 | 61 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
ed8d6c6016a25e650230683d04dbb3c6762e19027b1cd4f1f79e8671dea65608 | TypeScript | 1,697 | 48 | /**
* 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... |
1327fe977d7127be38331394cf776a9a3fed8d3a6a71224751ffaa0f2ce2435f | TypeScript | 1,702 | 58 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
361c626e0d9d012007cd0b8c5088dffbfd78f5c1758f2cf6d3ca6aab2b629912 | TypeScript | 1,704 | 60 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
b811259b4bae46f3048ea27c3128cd8cf17e82c1ae698648ab5e540c8a3c9381 | TypeScript | 1,704 | 51 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
61964b1ae024befa159f2dccd4e5d9b71ac04d04b0fdb7a38bbeb1fc62621b03 | TypeScript | 1,705 | 56 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
9f35384ef44680816ffb130713f74059234b84b16e76bf98a9a456732fe3695a | TypeScript | 1,706 | 37 | /**
* 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... |
a7f5b1e1211419172500b1f5e3dd9108b6e1f9610d2a994d93e9817195888522 | TypeScript | 1,706 | 62 | import { Input, OnChanges, Directive, SimpleChanges } from "@angular/core";
import { BehaviorSubject, combineLatest } from "rxjs";
import { debounceTime, map } from "rxjs/operators";
import { SxplrParcellation, SxplrRegion, SxplrTemplate } from "src/atlasComponents/sapi/sxplrTypes";
import { BBox } from "./util";
@Di... |
120e97244e9a454a4d1624e5b4dea3476532ee4dc5df1a5140547149420f7321 | TypeScript | 1,707 | 52 | /**
* 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... |
b8cc45df8c8376672877b1fb2c3db3bee3cefd51d09490bce627fec14ce61c17 | TypeScript | 1,707 | 73 | import { Component } from "@angular/core";
import { TestBed } from "@angular/core/testing";
import { CommonModule } from "@angular/common";
import { FabSpeedDialTrigger } from "./fabSpeedDialTrigger.directive";
import { By } from "@angular/platform-browser";
import { FabSpeedDialService } from "./fabSpeedDial.service";... |
c0b1279c4c56605080c602944d41d2765f92f5d84b60681a115e70975e4a732b | TypeScript | 1,707 | 45 | /**
* 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... |
aeda9bbc6bee8a78062cbeb0b3c16d3ca2adbcf4e0330d67155e2d15ab87bf7b | TypeScript | 1,710 | 69 | /**
* @file Structure Trajectory
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Structure from '../structure/structure'
import Trajectory, { TrajectoryParameters } from './trajectory'
/**
* Structure trajectory class. Gets data from a structure object.
*/
class StructureTrajectory e... |
0493d9e69900bf90dd04dd83bf175597d6bbb2ccb2c27a332ba8c09096db7fcc | TypeScript | 1,712 | 58 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
270915442d12614c45c320e77e9a2daea3947d373ca3aeefcdb35322b622cf97 | TypeScript | 1,712 | 47 | /**
* 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... |
41e5941115c5133bdf6d531d2708366350319fb805fe09652bf60531b3d368bb | TypeScript | 1,713 | 43 | /*
* 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 ... |
902818fff9b4db5ae091b37d39ca43a46fd136cfc7ee58ccd68fe7aa5e48af47 | TypeScript | 1,713 | 48 | import { describe, expect, test } from "bun:test";
import { ANNOTATION_REDISTRIBUTED, redistributedAnnotationDetail } from "./operation-error-toast";
const DETAIL = "This rejected annotation was passed to another annotator and can no longer be updated.";
describe("redistributedAnnotationDetail", () => {
test("retur... |
fda6c9380f69e723d407f5c3dee848d29bdb2d6d9fecd004e4286bfc321d19d9 | TypeScript | 1,715 | 41 | /*
* 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 ... |
ed5bd4586e6ce0964d1ccc86f7c9290da629df1ec617492acce5f00fe6c47541 | TypeScript | 1,716 | 41 | /*
* 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 ... |
56a059400ee54af8c22cdb29af7546d8edf9851dd180fc3eb1cac3978d6e2796 | TypeScript | 1,722 | 43 | /**
* 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... |
88efd0556b100ed308a74ce2436e98cffa4187101207757470f3d8cfce43c64b | TypeScript | 1,724 | 51 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
09fca4bb884257c3f7e60003835ae2d501e74c186b88ebe48dfdfabf02e38c33 | TypeScript | 1,725 | 54 | /**
* 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... |
0aca3321f13bf6b54af543885da3f850f0e0433aef31c85f6e1be75f1fcc9153 | TypeScript | 1,725 | 47 | /**
* 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... |
61aba6dd139a48a4490e4bf2ed8acab13c4bf5cd34b8f8c560c11c1f37052d8a | TypeScript | 1,725 | 49 | import {test as base} from '@playwright/test';
import {ConfirmDialog} from '../pages/confirm-dialog';
import {LoginPage} from '../pages/login-page';
import {WorkflowDetailsPage} from '../pages/workflow-details-page';
import {WorkflowListPage} from '../pages/workflow-list-page';
import {ApiClient} from './api';
interf... |
fdd161957064967db76e2e52db639a99f9a5b3b05cb97dd8f1f8e34db2db4903 | TypeScript | 1,725 | 57 | /**
* 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... |
7811ee12c6ee8e4239658ff5a14ea67a551a18231c2477dda68f1c26c1b9aa2a | TypeScript | 1,727 | 51 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
56fa9d2599d9ac3fca0b2d08dad7cf973c4d44de27f467f113f1ec29e5dcdd3c | TypeScript | 1,729 | 41 | /**
* Unit tests for isVectorSkeletonEnabled (components/KonvaVector/skeleton.ts).
*
* Skeleton mode (branching open paths) is incompatible with SAM2: SAM2 always
* emits a closed mask, so when an interactive-ML backend is bound to the
* control the skeleton attribute must be ignored and a plain non-skeleton
* cl... |
c10e68fa6dca6e624bab4a62a8f1a787145baadb945ab7e5644572ededbdca98 | TypeScript | 1,730 | 65 | /**
* @file Worker Utils
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { uniqueArray } from '../utils'
export type FunctionWithDeps = { __deps?: Function[] } & Function
export interface WorkerEvent {
data: {
__name: string
__postId: string
}
}
function getWorkerDeps (var... |
8c150f121325da6e97f9506429f52c93b5678fd5765c2adb7e21abe1a5b309a4 | TypeScript | 1,733 | 53 | /**
* 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... |
7f1ee201542174b88b6750a98b64e5be01a4fb012ec9fd585e3b69d75509d845 | TypeScript | 1,735 | 62 | /**
* @file Selection Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Color } from 'three'
import { ColormakerRegistry } from '../globals'
import Selection from '../selection/selection'
import Colormaker, { ColormakerParameters } from './colormaker'
import AtomProxy from '... |
f013ee06a9ec5f72aa8fde319c38ff5851909983f348f096454fa7982224e732 | TypeScript | 1,735 | 52 | /**
* 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... |
b0c99dc2fb1319d752cf26d2816db862f59333303ed5910c18fbc765ca0dc4fe | TypeScript | 1,736 | 42 | import { renderHook, waitFor } from '@testing-library/react';
import { afterEach, describe, expect, it } from 'vitest';
import { useResizable } from './useResizable';
describe('useResizable', () => {
afterEach(() => localStorage.clear());
it('starts at defaultWidth when nothing is stored', () => {
const { re... |
bbe77b9b49aa29c618cbab406e8310cd81c542ac0d72bfd67fffbf8dcb521d16 | TypeScript | 1,739 | 41 | /*
* 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 ... |
91d367efbe0f533d3d042983cf9fbddad604e4eba7067b815b4060fff549c9c4 | TypeScript | 1,741 | 41 | /**
* 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... |
08e9917d81630d5f3ab895824291047946a66d466bccb0fad57409798f95b3d8 | TypeScript | 1,742 | 49 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
587d3665d6c417fb18ca845b51be10fc321fa90220edc78cc9444a8267f0eb35 | TypeScript | 1,742 | 47 | import { getValidationErrors, validationFieldMessages } from "./validation-errors";
describe("getValidationErrors", () => {
it("reads nested response.validation_errors", () => {
const result = { response: { validation_errors: { foo: ["a"] } } };
expect(getValidationErrors(result)).toEqual({ foo: ["a"] });
... |
d71c4537b7e01b2a5da0920a7355b76e9330a5ef77df4f296c771a960e6955ce | TypeScript | 1,743 | 70 | import { useEffect, useRef } from "react";
const enterFullscreen = (el: HTMLElement) => {
if ("webkitRequestFullscreen" in el) {
(el as any).webkitRequestFullscreen();
} else {
el.requestFullscreen();
}
};
const exitFullscreen = () => {
if ("webkitCancelFullScreen" in document) {
(document as any)... |
1c47ca90e011f84ffdf0daacce87fd8f08523ac60f4982616d16a337422c0705 | TypeScript | 1,744 | 58 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
701dc7cb1fc57b27631473538d711f7b86a0a8eb0b14af36c8005761eca16acc | TypeScript | 1,744 | 54 | import { Directive, ElementRef, EventEmitter, OnDestroy, OnInit, Output, Input, Inject } from "@angular/core";
import { fromEvent, Subscription } from "rxjs";
import { switchMapTo, takeUntil } from "rxjs/operators";
import { DOCUMENT } from "@angular/common";
@Directive({
selector: '[iav-captureClickListenerDirectiv... |
227b3b30b7bfa64d648d12d78c0178cdac768b3519cb2cc2ed392e4a909aa287 | TypeScript | 1,745 | 72 | import { Component, TemplateRef } from "@angular/core";
import { PluginService } from "../service";
import { PluginManifest } from "../types";
import { combineLatest, Observable, Subject } from "rxjs";
import { map, scan, startWith } from "rxjs/operators";
import { Store } from "@ngrx/store";
import { MatDialog } from ... |
3ccd73de130febe69efaea3475e9b69788fff1ab915b7f5fdef1c138b4cd76f2 | TypeScript | 1,745 | 48 | /**
* 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... |
cfe974ef8e7a79fee1b71d7beca9dae664b8144de1c38bc9ed6da4bb09804da3 | TypeScript | 1,745 | 70 | /**
* @file Xml Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Debug, Log, ParserRegistry } from '../globals'
import { defaults } from '../utils'
// @ts-ignore: unused import XMLNode required for declaration only
import { parseXml, XMLNode } from '../utils/parse-xml'
import Pa... |
7ffc4a9e73d4d22f2a002d653ee3030c3834b42a5028d7249ce8d666287bcd08 | TypeScript | 1,746 | 52 | /*
* 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 ... |
17f1e43cbbd380defdcd9e194e5fcc40ebc5cae03f93c1368fe30a52537f84c9 | TypeScript | 1,747 | 47 | /**
* 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... |
f2b086bdbb909761cd987ed19cd663cc997e977079396d568582ee45c33a97c9 | TypeScript | 1,747 | 57 | import {Observable, Subscription} from 'rxjs';
/**
* RetryObservable allows you to watch for changes, automatically reconnecting on error.
*/
export class RetryObservable<E, V> {
private readonly watch: (v: V) => Observable<E>;
private readonly onOpen: () => void;
private readonly onItem: (event: E) => v... |
da15fc36d24a683285b7ee7e0976ee931f3751be90c614252a226f7ecb1754f6 | TypeScript | 1,748 | 70 | import { LiveSpan } from '../src/core/entities/span';
import { SpanType } from '../src/core/constants';
/**
* Port and tracking URI for the local MLflow server used for testing.
* If the server is not running, jest.global-setup.ts will start it.
*/
export const TEST_PORT = 5000;
export const TEST_TRACKING_URI = `ht... |
c2a94165b6b920c0d6e2893f7f055a8c1582da8a273ab2783f0c611801e4e890 | TypeScript | 1,749 | 55 | /**
* 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... |
f62a2cb8114907976c92d0571d957d248d6bf2260d36060a0f41495ba402b32a | TypeScript | 1,749 | 64 | /**
* @file Loader Utils
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { ParserParams } from './parser-loader';
export interface LoaderParameters {
ext: string;
compressed: string | false;
binary: boolean;
name: string;
dir: string;
path: string;
protocol: s... |
854cdca942071baeb4dec79ba40dcf3ded21e2bd519b0398ea18daf1241df5a8 | TypeScript | 1,750 | 68 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
3175904bc01037f00fac921f8c3592d5989e5273815968dcb38b9a3f21b270a9 | TypeScript | 1,751 | 51 | import { TVec3, TVec4, INavObj } from "../constants";
import { arrayOfPrimitiveEqual } from "src/util/fn";
export function navMul(nav: INavObj, scalar: number): INavObj {
return {
zoom: nav.zoom * scalar,
perspectiveZoom: nav.perspectiveZoom * scalar,
position: nav.position.map(v => v * scalar) as TVec3... |
ca5bb321bdf06c4797dc37fc107773fea186ef5aa82a8213b5603649364836e1 | TypeScript | 1,752 | 63 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
d57ea2409e8baebaef1caa51726e2ba02cd5d84ffa33ba15d6caac309a3bac94 | TypeScript | 1,752 | 65 | /**
* Hook for fetching state history from the API
*/
import { useQuery } from "@tanstack/react-query";
import { getApiInstance } from "@humansignal/core/lib/api-provider/api-instance";
export interface StateHistoryItem {
state: string;
created_at: string;
triggered_by: {
first_name?: string;
last_nam... |
2199d42d9ca08cc1b76b6694d218e46a0977f1e0509dbe00178ab445f1252bbd | TypeScript | 1,753 | 43 | /**
* 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... |
71f2462900d292684eef396517991f50a521d77eb96646c0ad698e8089cb834c | TypeScript | 1,757 | 41 | /*
* 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 ... |
98ed9d1ef02445447ea0fb9157a338a4520bfd951e66268c50b841dfaf7107bc | TypeScript | 1,757 | 62 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
2de8399153f778ad5f85fa5ca90780091523a1dfb284ff58638bd5f9ac5644b8 | TypeScript | 1,758 | 38 | /**
* 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... |
14b7de5dc71b9b462692b4365596080babce611b660289b3aa28ee8eea206631 | TypeScript | 1,759 | 53 | /**
* 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... |
ea8e59fb9c76a29b422dae03a6ed2009fe16f2526ad44a3151b146616edf3211 | TypeScript | 1,760 | 48 | import { describe, expect, it } from "bun:test";
import { computeKeypointsVirtualBounds } from "./Utils";
/** Previous hardcoded viewport used by KeypointsVirtual before FIT-2656. */
const LEGACY_VIRTUAL_VIEWPORT = 165;
describe("computeKeypointsVirtualBounds", () => {
it("covers all visible rows for default timeli... |
ed381d022d2f199c2457df1849108d54ef25fe16aa92e63509f59422f3d673fc | TypeScript | 1,760 | 56 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
5f28218f6a8ed129e101638a7af107d12877cee77ac5309dc28e35e948dacaa4 | TypeScript | 1,764 | 57 | /**
* 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... |
bebe3aca41f8642c4320dc9a8cec6d4591da0215d329118ac74fb941d3296ee3 | TypeScript | 1,764 | 50 | /**
* @file Ribbon Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { SplineParameters } from '../geometry/spline';
import StructureRepresentation, { StructureRepresentationParameters } from './structure-representation';
import RibbonBuffer from '../buffer/ribbon-buffer';
i... |
d7ab51598a368e8011f8a5b6ea500c87084cf40d8d5b3dfcaf0a1bd003376c66 | TypeScript | 1,765 | 46 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
63450795897b52a34a7fc7637ebcfddc4b1090115ea7db554eea14d46259334d | TypeScript | 1,768 | 52 | /**
* 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... |
e2271c3ed55f79700845f2d2f8e78694d9544503fb476f0c76cffd156788932f | TypeScript | 1,768 | 70 | import * as util from 'common/util'
import { getRgb } from './layerCtrl.util'
describe('> layerCtrl.util.ts', () => {
describe('> #getRgb', () => {
let strToRgbSpy: jasmine.Spy
let strToRgbValue: [number, number, number]
beforeEach(() => {
strToRgbSpy = spyOn(util, 'strToRgb')
strToRgbValue =... |
021821a380a13a5e20b56eae849c0066673526b9acb087cb5b4af65a9d5036d7 | TypeScript | 1,769 | 57 | /**
* 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... |
c479cfb57635a52e67783af6e39f0953df9fcb78ed026c6021fe0d2cd39a5f4e | TypeScript | 1,770 | 54 | /**
* 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... |
88717db3e3e9cc9e1c99ae1c0b8f5dff454727c4eeba94b52d5b3b0ad1877eb4 | TypeScript | 1,772 | 57 | /**
* 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... |
0c04d6e9bfe185983b48da8ce29f92341b038d093f5eb3bf5e3eca354204ef43 | TypeScript | 1,773 | 56 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
fda74bd1ef5b49ad633dd2c337a0f0f3b1c211d6fec6893a18bce9b7c502367a | TypeScript | 1,775 | 57 | /**
* 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... |
c237a4904fcaf9db1f89bc2f9b3cce0b1e1a115b9bac8526ea69988223dd9449 | TypeScript | 1,779 | 48 | /**
* 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... |
3becc55e8685c79e67a8b496991a35dffdee27cbd92993dd028eee36559e144d | TypeScript | 1,780 | 58 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
32257617fb3fd8f459b36f9f84f4bed3077b1c4b82d602e33b60b25158893adb | TypeScript | 1,783 | 47 | /**
* 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... |
226f4af3b7f04b3cfd7503bb337b18a1b8a82efbf95b8227687919df35f85c42 | TypeScript | 1,784 | 59 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
5b2148954ad549d98a19429f32073a08228ed334414f6e3633188fe93dadf5da | TypeScript | 1,784 | 72 | /**
* @file Callback Trajectory
* @author Tarn W. Burton <twburton@gmail.com>
* @private
*/
import Structure from '../structure/structure'
import Trajectory, { TrajectoryParameters } from './trajectory'
type RequestCallback = (responseCallback: Function, i?: number, atomIndices?: number[][]) => void
/**
* Callb... |
b1f11f92ff96d651d4b1f58311352097562b386ddfde6f55369706fcfbfaf83b | TypeScript | 1,785 | 48 | /**
* 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... |
d4a18d11f46b0bb5a0135ac07c0988c7517db9ae7c7d790aafa74791dd0bc4cb | TypeScript | 1,785 | 55 | /**
* 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... |
56de0df12f334e732a5f5710693d2f756a9486cf2cff3d651b223f84a498505f | TypeScript | 1,787 | 43 | /*
* 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 ... |
e3f3d2f8d6fe432fdbe97e4c8c1988fcd370eaaf107cffcbb05b0334463927b3 | TypeScript | 1,787 | 72 |
import { Matrix, svd } from '../../src/math/matrix-utils'
describe('math/matrix-utils', function () {
describe('Matrix', function () {
it('initialization', function () {
var m = new Matrix(5, 10)
expect(5).toBe(m.cols)
expect(10).toBe(m.rows)
expect(5 * 10).toBe(m.size)
})
})
... |
db92f4ee50c529019aab7f2b69fcb4795cf1642fa20dbc7f17066c2ba51f076c | TypeScript | 1,788 | 85 | import { MetaV1Schema } from "src/atlasComponents/sapi/volumeMeta"
export type RecursivePartial<T> = {
[K in keyof T]?: RecursivePartial<T[K]>
}
type Vec4 = [number, number, number, number]
type Vec3 = [number, number, number]
export type NgConfigViewerState = {
perspectiveOrientation: Vec4
perspectiveZoom: nu... |
ac753914d4741a360ff00988fd65f755eac831f7119b48bd04c470dda986d594 | TypeScript | 1,790 | 75 | import { Component, EventEmitter, HostBinding, Output } from "@angular/core";
import { Store, select } from "@ngrx/store";
import { combineLatest } from "rxjs";
import { map, shareReplay } from "rxjs/operators";
import { MainState, atlasSelection, userInteraction } from "src/state";
@Component({
selector: 'sxplr-bot... |
1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032 | TypeScript | 1,791 | 35 | /*! *****************************************************************************
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.... |
471ded1c984a7fe38fbfff7cf8de6a5ba489682ffe9e405356603d0f1b95fa0f | TypeScript | 1,791 | 66 | /**
* @file Volume Component
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { ComponentRegistry } from '../globals'
import Component, { ComponentParameters } from './component'
import Stage from '../stage/stage'
import Volume from '../surface/volume'
import { Box3, Vector3 } from 'thre... |
becfa607cfa8d3bec8370439f7309176d8f01f0543149c61d873715bd34b2a45 | TypeScript | 1,791 | 50 | /* 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... |
3d28e549687d89897816d967139b899a93979c508c5bfc2d910426ec1e185bad | TypeScript | 1,792 | 64 | import { NumberArray, TypedArray } from "../types";
/**
* @file Grid
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
export interface iGrid {
data: TypedArray
index: (x: number, y: number, z: number) => number
set: (x: number, y: number, z: number, ...arg: number[]) => void
toArray: (x... |
c3196ec448d20e85bdbde87749df1b130b5ed9e3684e9807cbfd2645c2c4d8eb | TypeScript | 1,793 | 54 | /**
* 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... |
c49f75832345927ef4e7ccaa25826509f67e1305e4112466fd5fc90fe1fca899 | TypeScript | 1,793 | 49 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
5d0b9e36c0645a7a21b3b7ca7932aa357f9532a07f0fb18328876564c426fae6 | TypeScript | 1,794 | 49 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
e588976127df9024af4023f5527ec680c7ac509dd64768ff6fd3933ee66f5fca | TypeScript | 1,799 | 54 | /**
* 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... |
5a62178c8942e22d072e24014ee6b9478864b06289a5dc85eb5b629a9190bb21 | TypeScript | 1,801 | 53 | /**
* 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... |
6be7f840313f712102e48e58ab700145cf54c8822a4b3cc80a2b73d64166b90a | TypeScript | 1,801 | 44 | /**
* 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... |
9c6fd75d488edd8e991d69e160ccf4e9354c77edaddb52f3d9851c16aab62fb0 | TypeScript | 1,802 | 53 | /**
* 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... |
934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab | TypeScript | 1,803 | 47 | /*! *****************************************************************************
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.... |
38f1f8e4f7ba9e9bca765e07babbd29feeb11528b26b129b8c1579834e3c615d | TypeScript | 1,804 | 57 | /** Default tree depth for Task Source–scale payloads (root + data + one annotation object). */
export const VIRTUALIZED_DEFAULT_EXPAND_DEPTH = 3;
/** Matches json-edit-react default `stringTruncate`. */
export const DEFAULT_STRING_TRUNCATE = 200;
export function clipString(value: string, maxLength: number): string {... |
25d9cb0c32383cb9333899f175d6d2709e999a66d7ec3185cf43b6e43d5314b5 | TypeScript | 1,806 | 53 | /**
* 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... |
ddcdf47a5888b4a6159c9146791295658ab6a6bb82a8b0e835af2d89e01dfc8d | TypeScript | 1,807 | 67 | /**
* @file Counter
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import * as signalsWrapper from 'signals';
/**
* {@link Signal}, dispatched when the `count` changes
* @example
* counter.signals.countChanged.add( function( delta ){ ... } );
* @event Counter#countChanged
* @type {Integer... |
3fe8096643aa1c48864fbcca4a748f176a86ef96317ce05a47516f869ada2d8b | TypeScript | 1,809 | 56 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
af31545cd83fe09b3e6ae01b3b445aee13dc8bb54d22a39e539a77c8440f748f | TypeScript | 1,809 | 64 | /**
* Tests for debounce — validates the es-toolkit/compat re-export behaves as expected.
*/
import { debounce } from "./debounce";
describe("debounce", () => {
beforeEach(() => {
mock.clearAllMocks();
});
it("invokes the function only once after wait when called repeatedly", async () => {
const func... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.