sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
4007159529c629954ed27eb185065c2716f55e7acde88d0f3c68e33974efc7a3
TypeScript
2,061
81
import { CommonModule } from "@angular/common"; import { NgModule } from "@angular/core"; import { Subject } from "rxjs"; import { AngularMaterialModule } from "src/sharedModules"; import { UtilModule } from "src/util"; import { LineUpdateCmp } from "./line/line.component"; import { PointUpdateCmp } from "./point/point...
0b5f1c3789a67bd8aafe8aeba42c09dbf052b80765d54bfe51e13c45beba3278
TypeScript
2,063
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...
3cbe2e0dc33143d1c5ca4b7aecaccd183f13d9271fba728d9775ae8ca622c686
TypeScript
2,064
65
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
00823d2374a8ddfc3d6c0a213b9f526b14f8030bfcbb0db781014ff9236e9e0e
TypeScript
2,067
59
import { EditorView } from "@codemirror/view"; /** Label Studio token colors aligned with code-editor.module.css CM5 classes. */ export const labelStudioCm6Theme = EditorView.theme({ "&": { height: "100%", width: "100%", display: "flex", flexDirection: "column", minHeight: 0, overflow: "hidde...
f032cd2992f2b758a555812aebee97280f65445cf17c4914d6b6c3fffc17b329
TypeScript
2,067
65
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
e7695a63147aa42d005ee0b01abe8c8fe3c11c5b713945cb94150b90a4cc5bba
TypeScript
2,068
71
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
4be28c4d38ee9954a2a90fda246b829838cb9af4cb251353362f64ba97c6d2d9
TypeScript
2,069
91
import { useQuery } from "@tanstack/react-query"; // Extend Window interface to include DataManager properties declare global { interface Window { DM?: { store?: { apiCall: (method: string, params?: any) => Promise<any>; }; apiCall?: (method: string, params?: any) => Promise<any>; }...
c19fe38ec11c1e935c8127830150229de771802c6d3026956c08ad2e955817fd
TypeScript
2,072
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 ...
7fd4c8fa9df6ecf2af81737fab26f44162e6af738ae6408d7099ca83cce83ddb
TypeScript
2,073
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...
db0ff0ac36cb9a17b5a2470c90529c63741e0c91fbf7288b89ea31ac7a560fcf
TypeScript
2,073
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...
6d7dcc1a78ee8080af123ea7174eaff2f010ba88bb8c4cbdb17033f319bd5f0e
TypeScript
2,076
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...
ad034a01f5ae6bdbe20f418af3ba629ec68507cbac71554c455038dfa54ba724
TypeScript
2,077
49
/** * React hooks for the ML-interactive capability store. * * Phase-1 scaffolding only: these expose the data the rest of the stack * will consume in later phases. Nothing here touches the DOM or the * editor yet — components opt in by calling the hooks. */ import { useEffect, useMemo } from "react"; import { ...
1ca26d47dc2eefcd1be2b6ab8b261f1f5c84ff1acb309a98d987e56f0b28c993
TypeScript
2,081
71
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
434b9df48dfb677374ae929c9b924b7dbac61d02d22d78a16c7457326819e1d9
TypeScript
2,082
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...
24ed9fb17ca9bf99ced3ceafd7b6b0d305e40ef975718195d1993c9269c587df
TypeScript
2,083
80
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
a8d48eb93b29303b92237d7970e309a2bab292072799ba92f1af88079360f4d2
TypeScript
2,083
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...
f3db7ff8475db3d6dd0e3ca064f5f9cd96fbec80bb93e62e5a62c7e2c210f426
TypeScript
2,085
43
import { LabelStudio, Relations } from "@humansignal/frontend-test/helpers/LSF"; import { CREATE_RELATION_MODE, LINK_COMMENT_MODE } from "../../../../src/stores/Annotation/LinkingModes"; import { simpleTextConfig, simpleTextData, simpleTextResult } from "../../data/linked_modes/to_comments"; describe("Linking modes: T...
5ca283e972ff8bd84c7cd2920c220f76e81312d20bc2120ab353a2b88fca909b
TypeScript
2,086
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...
91752fb0ba96b16ae8fc61616a978c680e49bad04d6fcef1d1db810ed869fbeb
TypeScript
2,086
69
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
5a4b39e1e302394df49d2a21bea17254a77fefcc46fd2860553701fe4f468bb2
TypeScript
2,087
67
import StringStreamer from '../../src/streamer/string-streamer' import PdbParser from '../../src/parser/pdb-parser' import { join } from 'path' // import * as fs from 'fs' import { promises as fsp } from 'fs' import AtomProxy from '../../src/proxy/atom-proxy' async function loadExample() { const file = join(__di...
e12070f98295377cd5a8e582a65d4e3737dc9742a13174f0a5a0e3c57e4c850f
TypeScript
2,089
76
import { Span as OTelSpan, ReadableSpan as OTelReadableSpan } from '@opentelemetry/sdk-trace-base'; import { LiveSpan } from '../core/entities/span'; import { InMemoryTraceManager } from '../core/trace_manager'; /** * Hooks to be executed by the span processor. * Primary used for adding custom processing to the span...
2ce6d33946a2169d4ab92870e599a1463a21b8c265d023501809516f8b398448
TypeScript
2,091
72
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
e035b45c565d673caa9d71424f16c517f8cee64a21c32e503eeaaa8d4376152e
TypeScript
2,091
38
import {ENV_FACTOR} from '../fixtures/auth'; import {expect, test} from '../fixtures/test'; import {failingWorkflow, sleepWorkflow} from '../fixtures/workflows'; test('terminates a running workflow from the details page', async ({api, confirmDialog, workflowDetailsPage}) => { const name = await api.submitWorkflow(...
908227b439a426c978ec485ebd73b803a07e8c6a2269a3cfbfa0f195a5350c30
TypeScript
2,099
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...
c111c62e9fe5609af2c6882f6fdcfb3eddb5bbdaac39c56b02a7eec47031ea04
TypeScript
2,099
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...
1431350bb75ac3692268a93caed29a121c4127b6b96aed02c1bf09718b94990d
TypeScript
2,100
58
import { format } from "date-fns"; /** * Converts a d3.utcFormat pattern to a date-fns format pattern * @param {string} d3Format - The d3 format pattern (e.g. "%Y-%m-%d") * @returns {string} - The equivalent date-fns format pattern (e.g. "yyyy-MM-dd") */ export function d3FormatToDateFns(d3Format: string) { // Ma...
7395b59dfdcffe43a1af5b17bbc1a65e42849e00e565a529bc72341228e43790
TypeScript
2,101
70
/** * @file Unitcell * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3, Matrix4 } from 'three'; import { UnitcellPicker } from '../utils/picker'; import Structure from '../structure/structure'; export interface UnitcellParams { a: number; b: number; c: number; alp...
74074710ed4366156fa51201993944f8fdf156a8742ecd0330340f6b972139d9
TypeScript
2,103
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...
4ba705761bc40cfc576951747ace8a689df73fc543ca6a88a729629ac708a740
TypeScript
2,106
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...
d207a8fd4c64ac6ca492cda10db5d8188f73797fe6d6d991d2f5efd1c25627d9
TypeScript
2,106
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 ...
41e8e3dfd228eba31504fb12c2c1475a1ff848c7994c7a9fb5fdab0521abe872
TypeScript
2,109
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...
5b4930de5b35ff7a92105f398f3167087009f95deaddec9a906fbffc5bc288ea
TypeScript
2,109
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...
17338a6bd89deb508c3c83c8681893bc104d100f1ecd35adeacc9a42c43ecf5e
TypeScript
2,112
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...
85d74d254bf082a0e4d8da161707e3f2b64480b29f028ef9060e269544d90b68
TypeScript
2,117
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...
030012ad7ddf4006a7ba201b177d84fe5b3be46570ba3a29249748694fecd6da
TypeScript
2,120
76
/** * @file Shader Utils * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { ShaderChunk } from 'three' import './chunk/fog_fragment.glsl' import './chunk/interior_fragment.glsl' import './chunk/matrix_scale.glsl' import './chunk/nearclip_vertex.glsl' import './chunk/nearclip_fragment.gl...
e3579e8b004fe0033963f79e5d22312cc3c9ee1948322b2ee815eaee7a4d04a1
TypeScript
2,122
73
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
06afd6aad22dc487272540ecba921353f2fd9c3490670f13fc4f007753f5218a
TypeScript
2,123
69
import { viewFromPath } from './viewFromPath'; describe('viewFromPath', () => { it('returns home for the root path', () => { expect(viewFromPath('/')).toEqual({ kind: 'home' }); }); it('returns home for an unknown path', () => { expect(viewFromPath('/some/unknown/path')).toEqual({ kind: 'home' }); });...
35eb36d31bce4427b9e6da033eab42485bcde3965f4715f219a97ae36692081a
TypeScript
2,123
70
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
46b10f9a2cf1fc03bc87a56f668f296f661961f71df42d55e287d02f90ed2c0b
TypeScript
2,123
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...
cde17ff683a74a883b6100fffbbc5ae8d9e574416eb98f03d69dad59d5f750c5
TypeScript
2,123
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...
56ed6f679974338f5051ca7fc02bb2b930b26937227572c385dcd2db51ad4335
TypeScript
2,124
72
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
d17680e24daf5960851da5e77eaa7b53badbe264966191aa8fbbaf96005cfe10
TypeScript
2,124
58
import { useEffect } from 'react'; import { NativeFilterType, usePrevious } from '@superset-ui/core'; import { FilterRemoval } from './types'; /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional i...
977fbe5c298019fe182429af5621ba56490075e78520152578fc2ef4a6e7a640
TypeScript
2,126
64
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1ecb2aa088c7f2ca789fcb9ee585b248ee497b043cb234919bf97ea5e215387e
TypeScript
2,128
84
import * as kubernetes from 'argo-ui/src/models/kubernetes'; import {Condition} from './workflows'; export interface EventSource { metadata: kubernetes.ObjectMeta; spec: { amqp?: {[key: string]: any}; azureEventsHub?: {[key: string]: any}; azureQueueStorage?: {[key: string]: any}; ...
262e7372ebf03b742e89157d380880a4dffb32a42284cf71b1897039860b9770
TypeScript
2,132
61
/** * @file Rocket Representation * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { AtomPicker } from '../utils/picker'; import StructureRepresentation, { StructureRepresentationParameters } from './structure-representation'; import Helixbundle, { Axis } from '../geometry/helixbundle'; i...
f8ae885bc3d04793a2cef21c2876a3389c9dbbad72ddfad357ff14b3ca4199ff
TypeScript
2,133
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...
4c3800670eb4e38739c8864e9a6b3a7a484cc99356a0853defef3584cd9cba4f
TypeScript
2,135
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...
eb6003184a8b702dd7792ff29a1864319bcfc0ab94f143a793ddbd19b0bf581d
TypeScript
2,139
90
/** * @file Selection * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Signal } from 'signals' import { parseSele } from './selection-parser' import { SelectionTest, SelectionRule, makeAtomTest, makeResidueTest, makeChainTest, makeModelTest } from './selection-test' import { Selec...
f5fbe554498ac4f9a909c374970f2e2afd82acf411eea042d6d66911e9175936
TypeScript
2,142
76
import { logLabelStreamDebug, logReviewStreamDebug } from "./streamDebugLog"; describe("streamDebugLog", () => { let logSpy: jest.SpyInstance; beforeEach(() => { logSpy = jest.spyOn(console, "log").mockImplementation(() => undefined); }); afterEach(() => { logSpy.mockRestore(); }); it("logs labe...
c16f8e67a628762d23d7de6ad8db3ed322e7a679624eb4936cd4403078b09405
TypeScript
2,143
82
import { getHsTelemetry, type EmitEventOptions, type EmitPageviewOptions } from "./contract"; /** Re-exported for LSE registration and product code typing. */ export type { EmitEventOptions, EmitPageviewOptions } from "./contract"; export function isCloudInstance(): boolean { try { return getHsTelemetry()?.isEn...
ea6c88b26eed23c90fbc5f4e0bffa8ef30e4727c3a4fbd79470025a536293a4b
TypeScript
2,146
72
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
ff83194e6f278b5ac97c56704ca9f380acf7b3d380ae88a32ebbe20d64188df1
TypeScript
2,146
71
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
52e1bff84c55e51ccd8badb0d711ad742c02f99a5cea5a2cc9397de2abcf6bfb
TypeScript
2,148
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...
772ad81586e43c99f3e92b61dabbe2ddaafc7b70143a4f279cbc17b1a61f5f62
TypeScript
2,149
70
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
b1548895f814abb2af2953aac6b2632acc307b37d629c6f6f8bbe83bcaf06e53
TypeScript
2,154
67
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
f4e1edcd249d0721928e266abc7ca30e5fc42eb8def6104cf76e4072c2489df0
TypeScript
2,154
69
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
b06811281c85aa8843fc837950fca9919ec9f31b7ad8aec68671bf7742ac0b3f
TypeScript
2,156
64
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
923eb6960b53e439407004ec4626bda7ea384060d18f7461198ab4f017df456f
TypeScript
2,157
70
/** * @file Base Representation * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { RepresentationRegistry } from '../globals' import { defaults } from '../utils' import BallAndStickRepresentation, { BallAndStickRepresentationParameters } from './ballandstick-representation' import { Stru...
bc8b563e435bdb62f5afeca9e4d6aa572de98262303bf52d1e77344f63d9ed9d
TypeScript
2,158
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 ...
688e1a0202688effb48951207f792c8ecde5ab4261faca967c7ff42a14f880ec
TypeScript
2,159
71
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
da8bac5ce55179f2d94ed32cd876eef8ea5c02ed38ea5d263cb27b90001a00d0
TypeScript
2,159
98
import { CommonModule } from "@angular/common"; import { ChangeDetectionStrategy, Component, Inject, Input, Optional } from "@angular/core"; import { MAT_SNACK_BAR_DATA, MatSnackBarRef } from "@angular/material/snack-bar"; import { AngularMaterialModule } from "src/sharedModules"; import { MarkdownModule } from "../mar...
092941b499087a8a11fbf8b5641d5460f6d23082b629ec523a519488c0b44572
TypeScript
2,161
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...
0fc78e7b9a580ed546770671fdaa28495361a0b0c3864e5300ddadb6ba74eefa
TypeScript
2,162
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 ...
89433ea521f6493dd4c25c179fc8592c124e2db209cd20117df338154b0fb6b5
TypeScript
2,163
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...
34ce5c4f9e18495537f5af28aaa88c82c9d860313f61fad9b68deb8d52556fda
TypeScript
2,164
70
/** * @file Surface Component * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { ComponentRegistry } from '../globals' import Component, { ComponentParameters } from './component' import Stage from '../stage/stage' import Surface from '../surface/surface' import { Vector3, Box3 } from 't...
8d19bd13a102de5ac0ab7ad9c82fc8b981162d16e58d274ddbbf999863b5d98a
TypeScript
2,168
70
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
9138adcf42a507bdced4dc77a57fa2b6993083f72a6c66ae05465f85a0ac2078
TypeScript
2,178
62
/* 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...
97896bb2ee0249be906eef05cea23259e36892fdcfc0916b81ecc567d1ac590c
TypeScript
2,178
88
import { Directive, HostListener, Input } from "@angular/core"; import { RouteParam, SapiRoute } from "../typeV3"; import { SAPI } from "../sapi.service"; import { BehaviorSubject, from, of } from "rxjs"; import { switchMap, take } from "rxjs/operators"; import { MatDialog } from "src/sharedModules" import { CodeSnippe...
467acbc53325f43777cc16211c00e84df767902ee5c2159c78bf00458c9035ba
TypeScript
2,180
90
/** * @file Component Controls * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3, Matrix4, Quaternion } from 'three' import * as signalsWrapper from 'signals' import { ensureVector3 } from '../utils' import Component from '../component/component' import Stage from '../stage/sta...
7808a663249ee4bae1141a431f7059d70820f73f582ba91b4885d8279b39a542
TypeScript
2,180
66
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
d7708200173c22c6eedc86c321d8acebf51290e7a5dec090ef9c3c9c33438121
TypeScript
2,181
78
import * as fs from 'fs'; import { XMLParser } from 'fast-xml-parser'; import fetch from 'node-fetch'; async function readSitemap(input: string): Promise<string> { if (/^https?:\/\//.test(input)) { const res = await fetch(input); if (!res.ok) { const responseBody = await res.text(); throw new Err...
c5cb5f1615f2560a020241d583e3272d6b433c7ccb91d39a0282fe725db4f2e9
TypeScript
2,183
56
import {map} from 'rxjs/operators'; import {EventSource, EventSourceList, EventSourceWatchEvent, LogEntry} from '../models/event-source'; import requests from './requests'; export const EventSourceService = { create(eventSource: EventSource, namespace: string) { return requests .post(`api/v1/e...
9f47356cb251866b4a66698ff087c2b95c79e0b7d07190c7dc819679fb53a7d5
TypeScript
2,184
56
import { AudioView, Choices, LabelStudio, Rating, Taxonomy, ToolBar } from "@humansignal/frontend-test/helpers/LSF"; import { FF_DEV_3391 } from "../../../../src/utils/feature-flags"; import { audioConfig, audioData, audioPerRegionConfig, audioResult, ratingConfig, ratingResult, taxonomyConfig, taxonomy...
d4528233ffa5f3a6b770e162b5a3112063f4de26f44ebef99b2f68d50438fb4d
TypeScript
2,187
67
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
b932fbe62079e92fa1f0fe9de447ac0d29fc7033e579eaa7635b1ee53740b5b7
TypeScript
2,192
73
import type { SparkleAreaOptions } from "./types"; /** * Generate a random position for a sparkle within an area, avoiding a cutout in the center. */ export function randomPositionAvoidingCenter(options: SparkleAreaOptions): { top: number; left: number } { const { areaShape, areaWidth = 28, areaHeight ...
70a9baffd63988b082ef1d7f812c672da72a62f69032c805009098e29cbdb485
TypeScript
2,193
81
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
a16fe5134f359c2f35b2f4ac9d1c95cce88fa8cd6fd17e6ca687cd5923fb9aa9
TypeScript
2,194
65
import { Component, Inject, OnDestroy, Optional } from "@angular/core"; import { ModularUserAnnotationToolService } from "../tools/service"; import { ARIA_LABELS } from 'common/constants' import { ClickInterceptor, CLICK_INTERCEPTOR_INJECTOR, CONTEXT_MENU_ITEM_INJECTOR, TContextMenu } from "src/util"; import { TViewerE...
8cc2dcac27071e3987e9bb257421bef073e65bb7f1f4fec7c628d061ccc5435b
TypeScript
2,195
54
/** * Thin fetch helpers for the ML-backend capability discovery flow. * * Both helpers talk to the existing LS Django proxy, not the ML backend * directly — so no new Django routes are required for Phase 1. The * `capabilities` event reuses `/interactive-annotating`, which the SAM * backend now short-circuits be...
457aeee73fee1ff26534b1a6a2c44869adc21d8fc3900a08dbc13eeb7337071b
TypeScript
2,196
76
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
93ee73a4fd7f056cc990e435b38d6a96144b2ef7b12f557aafd0f25c275d56f8
TypeScript
2,196
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...
bb4473c565f1b46c6e1621fde2202d37da47b09d9dda43736fc1aaa742ecdc6c
TypeScript
2,196
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 ...
bd9dbf08ceb197671a9b7d07420efa2b72d4925cec9c2cfe4d9272b15d43e132
TypeScript
2,200
83
import { ComponentPortal } from "@angular/cdk/portal"; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, HostBinding, Inject, Optional } from "@angular/core"; import { RM_WIDGET, EnumWidgetState } from "../constants"; type TWidgetCss = { transform: string width: string } const widgetStateToTransform...
cb91138a3408c3979262b00e92fd159f144fe6fb474671bf1b7ebb186b2f4d8f
TypeScript
2,204
73
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
9e3b0b9dbc41397777f66bb551df41a017df10d9c942497cf3eb1876819d6bc1
TypeScript
2,206
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...
4262ac6903a3679e9fb7e6525e54f8a79acf10eafd9c0004deb0d4c5568f9999
TypeScript
2,211
76
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
741592c9f63e7d08f309a4105507862a136cfbab8fb0c1f64f22f12a2baed1ba
TypeScript
2,212
103
/** * @file Radius Factory * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { defaults } from '../utils' import { NucleicBackboneAtoms } from '../structure/structure-constants' import AtomProxy from '../proxy/atom-proxy' export const RadiusFactoryTypes = { '': '', 'vdw': 'by vdW rad...
7f6022decc26847d03bdfb237968f0ad14a4ee30b3f78b5bf670577c9cdccec4
TypeScript
2,213
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...
1b4a2dc76d0e4ffa41aacef85d84b911835bb12e9e09bd85d46814b8e75aa8ad
TypeScript
2,215
91
import { HttpClientTestingModule, HttpTestingController } from "@angular/common/http/testing" import { APP_INITIALIZER } from "@angular/core" import { TestBed } from "@angular/core/testing" import { hot } from "jasmine-marbles" import { AuthService } from "./auth.service" describe('>auth.service.ts', () => { describ...
3e19001ea2abd657283db142163992b711beab384f9188d07deda8a566fb11ac
TypeScript
2,220
63
import type { StorybookConfig } from '@storybook/react-vite'; /** * Storybook for the dbt docs v2 SPA. * * Stories are colocated with their components (`Foo.stories.tsx` next to `Foo.tsx`), * the same convention the `.test.tsx` files follow. * * The builder picks up `vite.config.ts` automatically, which is what ...
006aae0910c8354e3ff54a43547e20f9f3e2d623fb8cd052c752564a2ab01042
TypeScript
2,221
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...
a0cf0b9b93a61cac469ab7d14682f57cb6ae13474fd6dbfbdd1850ca1ef6a60b
TypeScript
2,221
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 ...
516ce6894d6a43cb55f43d56420f26f726d9840c82667df17fef708f9b039c5f
TypeScript
2,223
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...
9b9faf1d445425b1a31e4bf623d6c280aabc7951889230aed2fbb7972268bcc9
TypeScript
2,225
80
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
45b3a1203d633787d04b420e9d357d4bbe35460a3f47335567b1b0a3bf1a371b
TypeScript
2,226
77
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
909a7a89f8759ddefb159b41eec1659e9922237c53c1fad03341ed49eca0fb25
TypeScript
2,226
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...
bf49726734af4842311b133315de2c6fc620bcf8d0c350e88956e7e00cdf07b4
TypeScript
2,227
77
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
3f29cfac45f60f5365b7c333b742cb4f910daa7155bccf06373fb6e4d02f5b8c
TypeScript
2,230
70
import { HttpClient } from "@angular/common/http"; import { Injectable, Injector, NgZone } from "@angular/core"; import { WIDGET_PORTAL_TOKEN } from "src/widget/constants"; import { WidgetService } from "src/widget/service"; import { WidgetPortal } from "src/widget/widgetPortal/widgetPortal.component"; import { setPlug...
ea6614b8d03c041e7e03e3b6851c070744326f499fd31c170289f62611a7a8e1
TypeScript
2,230
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...
4ba73f3df5309a86a79550d61d3d61899a815d0c17fa0b12cb0c6a9cc272e4b4
TypeScript
2,231
80
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
01412d8475c18ac125fef1c9af56f64bbc8a363c36a58728aa34bc234ca523ce
TypeScript
2,233
96
/** * @file Volume Colormaker * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3 } from 'three' import { lerp } from '../math/math-utils' import { ColormakerRegistry } from '../globals' import Colormaker, { VolumeColormakerParams, ColormakerScale, manageColor } from './colormake...