sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
f8b215f3ce002dac9778ccf75c2aa6d568ebbab65f942e273e1dd87147a29bae
TypeScript
929
38
import { ChangeDetectionStrategy, Component } from "@angular/core"; import { Store } from "@ngrx/store"; import { tap } from 'rxjs/operators' import { SAPI } from "src/atlasComponents/sapi/sapi.service"; import { SxplrAtlas } from "src/atlasComponents/sapi/sxplrTypes"; import { atlasSelection } from "src/state" @Compo...
78e72c36f8a09eb9bd292e4739f1ab1c205e61bfcede873708c3819f99ba9bae
TypeScript
930
21
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
3b9a7a140c947efca090154dfd3ae155a5a5f8e8b1f425337a1bd4086439e42a
TypeScript
931
33
import { useState, useCallback } from "react"; /** * React hook that persists state in localStorage with JSON serialization. * * @param key - localStorage key * @param defaultValue - initial value when key is absent * @returns tuple of [value, setter] similar to useState */ export function useLocalStorage<T>(key...
12b23b128a4f44b209dec9d67fea6f67e18e985cb45cc241cdd6ed4ba22c709b
TypeScript
932
39
import { types } from "mobx-state-tree"; /** * @todo rework this into MetaMixin for all the meta data * @todo it's used by too much files, so that's for later * Meta Information * Additional information for regions and their results, like text and lead_time * Only text is used here actually, lead_time is stored d...
bc71eb62a80ed95ca27be7824aa092a897536378c0fed742e211c09f9ec3cd9a
TypeScript
934
40
/** * @file Entitytype Colormaker * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { ColormakerRegistry } from '../globals' import Colormaker, { manageColor } from './colormaker' import AtomProxy from '../proxy/atom-proxy' import { PolymerEntity, NonPolymerEntity, MacrolideEntity, W...
0732beda456ce4b451030ca7141da99c7b9d260cba475c3c780ebc21e2b287bb
TypeScript
935
25
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you m...
8ac93c7e9612b735d4a328d7b25541633aad7ba8405d1fb8ae129b0b6254da84
TypeScript
938
46
/** * @file Writer * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { defaults, download } from '../utils' /** * Base class for writers * @interface */ abstract class Writer { readonly mimeType: string readonly defaultName: string readonly defaultExt: string /** * @abstra...
b1f96fb7c08e5ffbff09f54f63e02d3a60cea574453db6fabaf8ad34d069578e
TypeScript
940
30
/** * @file Csv Parser * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import Parser, { ParserParameters } from './parser'; import Streamer from '../streamer/streamer'; export interface CsvParserParameters extends ParserParameters { delimiter: string; comment: string; columnNames: b...
bf90f33c748c8131a4947922d64f46900484758324458bd7abb3c98fcef2a4c8
TypeScript
940
35
import { FabSpeedDialService } from './fabSpeedDial.service' describe('FabSpeedDialService', () => { let service: FabSpeedDialService let openStateNextSpy: jasmine.Spy beforeEach(() => { service = new FabSpeedDialService() openStateNextSpy = spyOn(service.openState$, 'next').and.callThrough() }) it...
f47983eba6ff2d061eb38ec8fc2397dd91ae16133008c9ba54be973e4a98ba0f
TypeScript
940
38
import { CommonModule, DOCUMENT } from "@angular/common"; import { APP_INITIALIZER, NgModule } from "@angular/core"; import { AngularMaterialModule } from 'src/sharedModules/angularMaterial.module' import { LeapSignal } from "./leapSignal/leapSignal.component"; import { LeapService } from "./service"; import { LeapCont...
57f0b49533d6a10586aebb4e2ee57bee0c4efa1912c9d0abadd60f234a40ea2d
TypeScript
941
39
/** * @file Key Behavior * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import Stage from './stage'; import Viewer from '../viewer/viewer'; import KeyControls from '../controls/key-controls'; declare class KeyBehavior { readonly stage: Stage; viewer: Viewer; controls: KeyControls; ...
b5bd3abe4b7ec69ad3dc6516059768fffccebae5c99dfb900aeca3ea8cd25c3d
TypeScript
943
20
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
7663ff9df29504ff672e3d9af9a51415152af4e8c5ba15d18389ab7a800997ec
TypeScript
944
24
export { confirm, info } from "./Modal"; /** * Imperative `modal()` and class `Modal` for legacy app-chrome dialogs. * * @deprecated For non-confirmation surfaces, prefer `ModalWindow` from `@humansignal/ui` with local open state and a feature flag at the call site. Continue using `confirm` and `info` for confirmati...
ff9cef91aa3f3b27dd2c6bf149922748126693bd6547f50a5d793d20238ed138
TypeScript
944
24
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
785024617ecb9b1548906f07d4f0759e08fc335b4c8d95e00b4bf01635f54bbf
TypeScript
946
22
import fs from "node:fs"; import path from "node:path"; describe("Annotators.prefix.css review badges", () => { const css = fs.readFileSync(path.join(__dirname, "Annotators.prefix.css"), "utf8"); const importMatch = css.match(/@import\s+"(.+userpic-badge\.prefix\.css)";/); const sharedCss = importMatch ? fs.read...
84c4d8c4157ab95c16b3966b60937ef23871162cfefe3a303856041186579787
TypeScript
947
20
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
9eb68afce30586148bbefdddd42ee6217630052d130dd86b83b44ea8bd2b08bc
TypeScript
947
23
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
ac0a704555a845619037122e3558e39fcd2fc69b7610d5fb6d0abd94a8b0434c
TypeScript
947
28
export const environment = { GIT_HASH: 'unknown hash', VERSION: 'unknown version', PRODUCTION: false, BACKEND_URL: null, // N.B. do not update the SIIBRA_API_ENDPOINTS directly // some libraries rely on the exact string formatting to work properly SIIBRA_API_ENDPOINTS: // 'http://localhost:5000/v3_0...
00756c28ade7e6a5534e37a475fc4115d04a11d04f83a65b67e5ee22e491eafa
TypeScript
948
22
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
7dff3be9da6f45876223270610b57745ecc734cef1ac1c97b06a875cbace670f
TypeScript
948
19
/** * @file Shader Utils * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import './chunk/fog_fragment.glsl'; import './chunk/interior_fragment.glsl'; import './chunk/matrix_scale.glsl'; import './chunk/nearclip_vertex.glsl'; import './chunk/nearclip_fragment.glsl'; import './chunk/opaque_back_f...
75a647db8952c7c2f2fab8c168a124a3515be8673f689a93e9b30afd0a2003e3
TypeScript
949
19
/** * Resolve the effective skeleton mode for a vector control. * * Skeleton mode lets a vector branch into open paths. SAM2 (interactive ML), * however, always produces a closed mask, so allowing skeleton mode while a * SAM2 backend is bound to the control makes no sense — the result must always * be a plain non...
9f6d92268263c04c27ba75ef8ec4c2b3adeaf7d3900ac4c5176db67ffaa5517a
TypeScript
949
37
/** * @file PubChem Datasource * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Log, DatasourceRegistry } from '../globals' import { getProtocol } from '../utils' import { getFileInfo } from '../loader/loader-utils' import Datasource from './datasource' const baseUrl = '//pubchem.ncbi...
a1d761a38c76aff73da555e6dc51d968b761460e8070470f1bc946fec66ceb74
TypeScript
950
40
/** * @file Netcdf Parser * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Debug, Log, ParserRegistry } from '../globals' import Parser, { ParserParameters } from './parser' import NetcdfReader from '../utils/netcdf-reader' import Streamer from '../streamer/streamer'; class NetcdfPars...
4314f4c3060ef210c8f238256b6129a8770f253751d74bff8e41dc73e8e300a9
TypeScript
951
20
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
5e064b9faafa3d3bb0b7b3ab6f63a640837e0dc361df2603917e7177083bf6c5
TypeScript
952
22
/** * @file Validation Representation * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import StructureRepresentation, { StructureRepresentationParameters } from './structure-representation'; import { Structure } from '../ngl'; import Viewer from '../viewer/viewer'; import StructureView from '.....
7d5a4c8600a79e705b4d04ece87b0d938701f5029934a585def5ddd65317f77f
TypeScript
952
40
import { Component, Input } from "@angular/core"; import { TPRB } from "../util"; import { CommonModule } from "@angular/common"; import { AngularMaterialModule } from "src/sharedModules"; import { BehaviorSubject } from "rxjs"; import { map, throttleTime } from "rxjs/operators"; @Component({ selector: 'tpbr-viewer'...
aa636c5ff9bb0472aec02a7e9a4fd73666e3c578be8240370462acac3484da97
TypeScript
952
28
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
797a1157e84a7232b6fa1d0543024297e1c9e1500dd8574b9b9f8faf27826293
TypeScript
953
22
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
49530ef0b216d34c14ffc09f7f92ff471fe7f053b2e0543540aed78cfba1f97f
TypeScript
954
22
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
8735d8951d456814000952f0a98a00c2f4e2dbeeab70a6258e6bc6d27174e1a6
TypeScript
954
24
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
b701d8354247d063ec4521ed0caa7cbb05719a085119f466eec7c23eb2a517d5
TypeScript
954
26
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
e5f4564afe60cf5afa7ad5f8d376beeb3daf76840bd6f9db21de0324369213de
TypeScript
955
21
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
9d37f72629d448bf8797ff8c465c227f90bf0abbc33a81356e7d532170f21d59
TypeScript
956
42
import { Directive, Input, Output, EventEmitter } from "@angular/core"; import { BehaviorSubject } from "rxjs"; @Directive({ selector: '[iav-switch]', exportAs: 'iavSwitch' }) export class SwitchDirective{ switchState: boolean = false @Input('iav-switch-delay') delay: number = 0 @Output('iav-switch-event')...
c88665e803af1474667fb492b5a507806cb2bc3e288e03ff8803f14a1410857c
TypeScript
957
38
/** * @file Validation Parser * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Debug, Log, ParserRegistry } from '../globals' import XmlParser, { XmlParserParameters } from './xml-parser' import Validation from '../structure/validation' import Streamer from '../streamer/streamer'; cla...
74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b
TypeScript
958
23
/*! ***************************************************************************** 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....
8bffd6d79d463ae53a1525ee24b922cbcbb74125a043b593bf1b90d16cc2f12a
TypeScript
958
28
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
3296671226dc7c411ec89067e77d55b43dbed0d1d59d623a72822ac35e3ba3f6
TypeScript
959
32
import Structure from './structure' import SpatialHash from '../geometry/spatial-hash' import { ValenceModel } from '../chemistry/valence-model' export interface Data { structure: Structure '@spatialLookup': SpatialHash | undefined '@valenceModel': ValenceModel | undefined } export function createData(structur...
7a7ce1039570bcb886f310b986466f02acf46b5116b1f0f8390cbc8eac1ddaed
TypeScript
959
28
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
362dfee9448da66525a32c921719f2a28cc2e10c002bd22b4c098b9073807954
TypeScript
960
41
/** * @file Msgpack Parser * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Debug, Log, ParserRegistry } from '../globals' import Parser, { ParserParameters } from './parser' import { decodeMsgpack } from '../../lib/mmtf.es6' import Streamer from '../streamer/streamer'; class Msgpack...
784453ae8137ed3ca59513c3e4b00918a6442e765a9b7ef4ca38c6243a71b434
TypeScript
961
21
import type { JsonThemeOverride } from "react-json-virtualization"; /** * Maps Label Studio JsonViewer CSS variables to react-json-virtualization theme tokens. * Required because the library applies theme via inline custom properties on .rjv-container, * which otherwise wins over parent-scoped --rjv-* overrides. *...
a11f79cdcd4341f79735ccc1702091c285670259e5b5de2a826056dd0658b925
TypeScript
961
42
/** * @file File Streamer * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import Streamer from './streamer' interface FileReaderEventTarget extends EventTarget { result:string | ArrayBuffer | null } interface FileReaderEvent extends ProgressEvent { target: FileReaderEventTarget | nul...
142c6e31555a6ef45c345926779aa58a6d33ac599249efe58a28fde553983f5e
TypeScript
963
26
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
82877d06ec30a31f2aa5f1dfd6e384da4a1c9df1b4e73d29cef5db8474656416
TypeScript
964
22
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75
TypeScript
965
21
/*! ***************************************************************************** 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....
61d4dfbf63a699992b4b80515dbd70f2fa6b71fa84afcfc592f9d976da5f4ae4
TypeScript
965
25
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
045d0da3e695fb67bd58c1cc9d2668c3775a7ce48527a067d6ef8505174b5a92
TypeScript
966
40
import { Component } from "@angular/core"; import { map } from "rxjs/operators"; import { LeapService } from "../service"; import { HandShape } from "../service" @Component({ selector: 'leap-control-signal', templateUrl: './leapSignal.template.html', styleUrls: [ './leapSignal.style.css' ] }) export class ...
2f9a725088ddaba9e448c049778f9cd8a3b305c5a3bdb44f06537346139c028e
TypeScript
966
22
export { AudioView } from "./AudioView"; export { ImageView } from "./ImageView"; export { Labels } from "./Labels"; export { LabelStudio } from "./LabelStudio"; export { Sidebar } from "./Sidebar"; export { VideoView } from "./VideoView"; export { Tooltip } from "./Tooltip"; export { DateTime, useDateTime } from "./Da...
8d8009ab5b03dd343a33a168e4a2e289354adcbd3db48c0a86f18c8dc867f4eb
TypeScript
966
22
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
8b718d4f32156898b2b4355d5cc68deb813d62ec655aa3a7f960f79c31b78283
TypeScript
967
23
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1f977db0a9a85846a27bff090abf681a1b22c768f5d79892a53ace1ce4b509cc
TypeScript
968
28
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
5467a5d268bc1ac1c555dbd6ab1136a51dcdda4ef7f76824a3afc0cfcee4b1b0
TypeScript
968
26
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
687a245cca594a7662f4e5d34f7213b38df474cb575c548a9409c0ad2c9efb94
TypeScript
968
29
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
88ecf9968746d0f287d86d3a8dba773e554bab77b05b7c17f825ab2f622b751d
TypeScript
968
24
import {formatLabel} from './label'; const getLabels = (label: any): string[] => { return [label.props.children[0].props.children, label.props.children[1].props.children]; }; describe('format label', () => { test('wraps correctly', () => { const label = formatLabel('foobar-longname-1234'); exp...
b8d577332fc4fb5b35f9df84122f1cf78dfe1ab74e3df3f8b68439bfdda1286a
TypeScript
968
25
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
df9359d32c6eac1380f0f5d901124a46ab2be02f6868236afdf5a8b472425c9e
TypeScript
968
31
/** * Downloads data as a CSV file. * The CSV includes raw values for proper spreadsheet compatibility. * Spreadsheet applications will handle their own formatting. * * @param headers - Array of column headers * @param rows - 2D array of row data (each row is an array of string values) * @param filename - Filena...
e022bdbe028a9e98cf7039ac8182503f35e353f28ee8582b8890e268875e6540
TypeScript
968
43
import { ARIA_LABELS } from 'common/constants' import { ComponentStore } from "src/viewerModule/componentStore"; import { TExportFormats } from "./type"; import { Subscription } from "rxjs"; export abstract class ToolCmpBase { public ARIA_LABELS = ARIA_LABELS public viableFormats: TExportFormats[] = ['json', 'san...
573d73b3ef45f7743d5ddb851f210c30917f09bf3136c7288be06880f6fa90cb
TypeScript
969
25
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
87098a41324fa7371748543d95cbde47cb5678a7207b18c0739daed722d1385a
TypeScript
972
31
/** * @file Helixbundle * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { AtomPicker } from '../utils/picker'; import { RadiusParams } from '../utils/radius-factory'; import Helixorient, { HelixPosition } from './helixorient'; import Polymer from '../proxy/polymer'; import { ColormakerPa...
99d23fc58818f28ada513e7a101e049c1be71e0d678d17182a008fe9b648708f
TypeScript
974
32
export class ScopedLocalStorage { private readonly scope: string; constructor(scope: string) { this.scope = scope; } // get the item from storage, returning default if there are any problems public getItem<T>(key: string, defaultValue: T) { const value = localStorage.getItem(this.s...
a27270fc06e7ed4401755e00984a6182cd1532bb49b8c314495cbf698374b6e2
TypeScript
974
33
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
22bb8bc9582eafdc6c4af5c06d1b865d19cf4611105b6a97a424e7f2863a1144
TypeScript
977
44
import { useCallback, useEffect, useMemo, useRef } from "react"; export interface AbortControllerHook { controller: React.MutableRefObject<AbortController>; renew: () => void; abort: () => void; } /** * Creates a shared AbortController, which can be used to abort requests. * Automatically cancels the current ...
9333dd384e7592307f37f7036f04e6397bc86e6c053f43c39cef8d6166aea4eb
TypeScript
977
31
import { TestBed } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [ AppComponent ], }).compileComponents(); }); it('should create the app', ()...
97b4a7569742fc78ec4c233e9269f82a6b3968585c5d4379b72ecc4d9b9931c0
TypeScript
977
36
/** * @file Selection * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Signal } from 'signals'; import { SelectionTest, SelectionRule } from './selection-test'; export declare type SelectionSignals = { stringChanged: Signal; }; /** * Selection */ declare class Selection { sign...
a785c0a501eb2a484439ef008fa89c7e71d96204655617a53a6139d8db1dcd13
TypeScript
977
43
import { Injectable } from "@angular/core"; import { fromEvent } from "rxjs"; import { filter, take } from "rxjs/operators"; import { getUuid } from "src/util/fn"; interface IWorkerMessage { method: string param: any transfers?: any[] } @Injectable({ providedIn: 'root', }) export class AtlasWorkerService { ...
b0865a2bf0401bbd10e2b5297fce589d17c3137387674ed11b4e7e3dd5f9d4e5
TypeScript
978
25
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
c4602a2348a5134a4ed28c158ccaf5ab2a22ea5c5192415aa98f9b73fab81406
TypeScript
978
37
import { CommonModule } from "@angular/common"; import { NgModule } from "@angular/core"; import { ComponentsModule } from "src/components"; import { UtilModule } from "src/util"; import { AngularMaterialModule } from "src/sharedModules"; import { AboutCmp } from './about/about.component' import { HelpOnePager } from "...
04c6e5ad0e8becacd1cb4ad5c2e073c107b3c9faee8828e8e34144ad6d6eb507
TypeScript
979
27
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
7b75fa23f25a205a8281cdf3a78bfc49fea31ed3d463e0460aa29fb6e57c987c
TypeScript
979
36
import { Injectable } from "@angular/core"; import { select } from "@ngrx/store"; import { Observable, ReplaySubject, Subject } from "rxjs"; import { shareReplay } from "rxjs/operators"; export class LockError extends Error{} /** * polyfill for ngrx component store * until upgrade to v11 * where component store be...
1ba4c69eaa958f9efbb6ca26e461ac6b861a3db4f4137ebef19dd997a64f0155
TypeScript
981
42
/** * @file Moleculetype Colormaker * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { ColormakerRegistry } from '../globals' import Colormaker, { manageColor } from './colormaker' import AtomProxy from '../proxy/atom-proxy' import { WaterType, IonType, ProteinType, RnaType, DnaType...
699b8f2d936b74db9f31bd0cf4bb660edab4a31c627bd465a0e4a93b4d2cba61
TypeScript
981
35
/** * First attempt at encoding int (e.g. selected region, navigation location) from number (loc info density) to b64 (higher info density) * The constraint is that the cipher needs to be commpatible with URI encoding * and a URI compatible separator is required. * * While a faster solution exist in the same post,...
196977bb5babbd13cbb174e80f2e275a5386922d734be83f9d47671b9c591bbb
TypeScript
984
26
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
81e12442f5dec93108534e9be4fe83dabd302573371d57953fb2ae5046f00f77
TypeScript
984
32
import { describe, expect, test } from 'vitest'; import type { Distribution } from '../shared'; import { deriveUserState } from './deriveUserState'; const dist = (isProprietary: boolean, isLoggedIn: boolean): Distribution => ({ isProprietary, isLoggedIn, version: '0.0.0', }); describe('deriveUserState', () => ...
b006182d9f3e06706b09bf15b6f3c218048f0e8dbb6c1fa9d6222692a79c269c
TypeScript
984
23
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
b2172c3e6e23f029f951d793ed3b35b73b73a588c64e25b6a6f05ba1539b898e
TypeScript
984
25
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
12768c6353c51264861519a5adfe3b7cb13d0c9ffedf4c8d6241f2e85ae3a256
TypeScript
985
37
/** * @file Script * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Signal } from 'signals'; import Stage from './stage/stage'; export interface ScriptSignals { elementAdded: Signal; elementRemoved: Signal; nameChanged: Signal; } /** * Script class */ declare class Script ...
591930fdbb54784d5bd161570cb9567143ebff12897bd671cef867acbd6f9752
TypeScript
985
24
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
7fe01b8392a326bf7dfa09326d7a5537783d22928be3288d5914165310e11076
TypeScript
987
26
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
92083a5ed00640c5dd6c07b23a793fafd51a40f482ed31ba3afe4fc4c450aba8
TypeScript
987
22
/** * @file Licorice Representation * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import BallAndStickRepresentation, { BallAndStickRepresentationParameters } from './ballandstick-representation'; import { Structure } from '../ngl'; import Viewer from '../viewer/viewer'; /** * Licorice repres...
b9d07c74de183433521ae5ff6f6bb174f5b790d60f1df6a991162644617e8694
TypeScript
987
38
import { DOCUMENT } from "@angular/common"; import { Directive, HostListener, Inject, Input } from "@angular/core"; import { TZipFileConfig } from "./type"; @Directive({ selector: '[single-file-output]', exportAs: 'singleFileOutput' }) export class SingleFileOutput { @Input('single-file-output') singleFile: ...
dfec735e4f859afef4908c1b9d6374293d48edfab13a38700b55f78ea23156fc
TypeScript
987
32
import { Pipe, PipeTransform } from "@angular/core" import { CFIndex, isPoint } from "./util" import { SxplrTemplate } from "src/atlasComponents/sapi/sxplrTypes" import { translateV3Entities } from "src/atlasComponents/sapi/translateV3" type Icon = { fontSet: string fontIcon: string message: string } @Pipe({ ...
e14282bf08b65550ea695e82d1c7e6503c9b9338e47aae7a6ed889b09edcd47d
TypeScript
987
24
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
42ca634831b4dbbec46f315121e0d45c09d19f296a887b6d388fb8defc08f278
TypeScript
988
27
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
ed9b12f88d5d64bcccd494fe18d21be5dc06af4f73328bfb50344467d299c649
TypeScript
988
34
import { CommonModule } from "@angular/common"; import { HttpClientModule } from "@angular/common/http"; import { NgModule } from "@angular/core"; import { LoggingModule } from "src/logging"; import { AngularMaterialModule } from "src/sharedModules"; import { UtilModule } from "src/util"; import { IFrameSrcPipe } from ...
6b9d6e6ab708e2276d9058c3a3f29a1a3a5a8c43ab4074c317db7412d712c23f
TypeScript
989
27
import type { APIUser } from "@humansignal/core/types/user"; import { getApiInstance } from "../lib/api-provider/api-instance"; import { atomWithMutation, atomWithQuery, queryClientAtom } from "jotai-tanstack-query"; import { refreshTelemetrySessionJwt } from "../telemetry/telemetrySessionJwt"; export const currentUse...
a16253177d1aed75b0242832f83cb9aa308b88119c3f2c29f3fc4bef187ea4a8
TypeScript
990
26
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
287d958d3450211eebc2a888fbaa560bdf9689dd7dd836aef236a8f64d785ef0
TypeScript
992
35
import { CommonModule } from "@angular/common"; import { NgModule } from "@angular/core"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { SmartChip } from "./component/smartChip.component"; import { HasSubMenuPipe } from "./hasSubmenu.pipe"; import { SmartChipContent } from "./s...
a7297ff837fcdf174a9524925966429eb8e5feecc2cc55cc06574e6b092c1eaa
TypeScript
992
22
/*! ***************************************************************************** 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....
e2fbfa137f876f98e70195f82af72cb459ac96c90535ed089e72457ef472400f
TypeScript
992
32
import * as kubernetes from 'argo-ui/src/models/kubernetes'; import {WatchEvent} from 'argo-ui/src/models/kubernetes'; import {Observable} from 'rxjs'; import {RetryObservable} from './retry-observable'; interface Resource { metadata: kubernetes.ObjectMeta; } /** * RetryWatch allows you to watch for changes, au...
a369632da59f0050edc3424b13e6ab5d3cdce33e5457e9f00f8e3f5ad02412e2
TypeScript
994
23
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
d722aa8a86b534b48a4f38ff798e0be615dcb00963d2b35f0ed3e15d6060375d
TypeScript
994
26
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
143b603e1650ed5753d85f7dfea0bf9064215d831bc648dbc56bc5b71371ebb3
TypeScript
995
23
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
3b02c1e8560683923f0a3e5ad50ea66ac62971c02994b791859d0e4efe533ebe
TypeScript
995
30
/** * @file Trajectory Utils * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import Structure from '../structure/structure' import Frames from './frames' import { TrajectoryParameters } from './trajectory' import FramesTrajectory from './frames-trajectory' import StructureTrajectory from './st...
6052af773705f5e2098836d4b02cbe90462bb0c19229f5fd1ef4e077d3fafed2
TypeScript
995
22
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
99ab51d61994ed6ef8e09a487110ae294c3671fd54e50e613e13ef8814339847
TypeScript
995
38
import { SxplrAtlas, SxplrTemplate, SxplrParcellation, SxplrRegion, BoundingBox } from "src/atlasComponents/sapi/sxplrTypes" import { TSandsPoint, TFace } from "src/util/types" export const nameSpace = `[state.atlasSelection]` export type ViewerMode = 'annotating' | 'key frame' export type BreadCrumb = { id: string ...
2719ab3debd50ac0d090e110c32381c8a352186cb78316f97378545490e04892
TypeScript
999
41
/** * Repeater (no pagination). */ export const repeaterConfig = ` <View> <Repeater on="$items" indexFlag="{{idx}}"> <View> <Text name="item_{{idx}}" value="$items[{{idx}}].label" /> </View> <View> <Choices name="choice_{{idx}}" toName="item_{{idx}}" showInline="true"> <Choice value=...
27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10
TypeScript
999
22
/*! ***************************************************************************** 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....
28a6beb443e4ae8bd73827cedf7d861b994a6effdfe89b739e74dc5c86c51a9d
TypeScript
999
30
/** Shared text data for choice configs. */ export const simpleData = { text: "This text exists for no reason", }; export const choicesConfig = `<View> <Text name="text" value="$text" /> <Choices name="choices" toName="text" choice="single"> <Choice value="Choice 1" /> <Choice value="Choice 2" hint="A hin...
8a6063e0be6a295d2798753d533a7522a5c73bf12f46761706e212c67313f84f
TypeScript
999
21
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
edf6bedb2b5917922319684cdf66bc32f9fe938c825b90eecb5347cc47d762f1
TypeScript
1,000
25
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
09f94d180a62472aa0a73617b5c3308c70cc6a6f26af71f1aad3f8077bfa71f8
TypeScript
1,001
21
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...