sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
8d0f1a3709b044ad45e521c82425040359bc1a4caf58e357d4f816781bb22603
TypeScript
2,913
107
/** * @file Geometry * @author Fred Ludlow <Fred.Ludlow@astx.com> * @author Alexander Rose <alexander.rose@weirdbyte.de> */ import { Vector3 } from 'three' import { Elements } from '../structure/structure-constants' import { degToRad } from '../math/math-utils' import AtomProxy from '../proxy/atom-proxy' // Chan...
3b008325b55ed894fa6c65b81f6d16d4d18c4feee5fdc37980258c0985c98df3
TypeScript
2,920
105
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
85b85f4459638538ddeb2d44b25cac3642b6ce8563b00fe791f6b07c89cdd9d1
TypeScript
2,920
104
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
657a590a6172dd33e66bc24dfe3f9d22cc878514de3a1e1f61a1c6ab486cc9ee
TypeScript
2,921
42
/** * @file Vector Utils * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3 } from 'three'; import { NumberArray } from '../types'; /** * Calculate the two intersection points * Converted to JavaScript from * {@link http://paulbourke.net/geometry/pointlineplane/lineline.c} */ ...
10a4a7d63f926007e76a3b29ea9cf7deeebb438fb2184e6029a2d2e66c0ddf11
TypeScript
2,922
142
/** * Generated by https://transform.tools/json-schema-to-typescript * From schema retrieved from https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#list-releases * On 2023-05-12 */ /** * A release. */ export interface Release { url: string html_url: string assets_url: string upload_...
15e36f38751d2b724e30ae8eef94fa176a76d2fe92d6820855f59b4039069f04
TypeScript
2,923
88
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
8ed703d2da2c574c444bde11d07ae400e755c137d063e93c6f77885ba79b7d26
TypeScript
2,926
80
/** * @file Assembly * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Matrix4, Box3, Vector3 } from 'three'; import Selection from '../selection/selection'; import Structure from '../structure/structure'; import StructureView from '../structure/structure-view'; /** * Assembly of transf...
213bd3afd080022e30dca63a1a7873c2547aa5c8a1fa7bb745af9f5b72bdedb3
TypeScript
2,928
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...
52ab55ba857412e04496658378585e0a9edf7f8109e8780d1207bd53b92a79ed
TypeScript
2,930
90
import { describe, expect, it } from "bun:test"; import * as userHooks from "./useUsers"; import { deduplicateUsers, getUsersItemCount, getUsersPageSize, mergeSelectedUsers, normalizeSelectedUserIds, normalizeUsersResponse, } from "./useUsers"; const user = (id: number) => ({ id, username: `user-${id}`...
002845043e5cb3ecdde3ac9e9acb2591515f1767abfa93318016d36f5547bfa6
TypeScript
2,931
111
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
bec28729dc74eb3135b6e07014afc96730b1e06282666ecfd2dc7afa6cbf4aa1
TypeScript
2,931
99
import type { APIAnnotation, APIPrediction, APITask, LSFAnnotation, LSFTaskData } from "../types/Task"; /** Same string as `AnnotationDraftSerializer.get_created_username` (snake or camel user fields). */ export function formatDraftCreatedUsernameFromUser(user: { id: number; first_name?: string | null; last_name...
71cfb720bb9677b8b9c575bc3c911848b610f8003e336201ddc26271a512905e
TypeScript
2,934
108
import { SpanStatus as OTelStatus, SpanStatusCode as OTelSpanStatusCode } from '@opentelemetry/api'; /** * MLflow Span Status module * * This module provides the MLflow SpanStatusCode enum and SpanStatus class, * matching the Python MLflow implementation. */ /** * Enum for status code of a span * Uses the same...
9b34653b4a0f0d2ad22f32599d74cb289d0632c0166909ddd349fd6a61a9a929
TypeScript
2,937
78
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
7dc820f518eff3ac3cc402863cd85e8c6d2561d486da1aebedb4d116e6fb683e
TypeScript
2,939
86
// Test data for TimeSeries interactive behavior and boundary validation // Tests navigation, zoom operations and ensures charts stay within visible bounds // Configuration for TimeSeries with MultiChannel export const multiChannelConfig = ` <View> <Header value="TimeSeries Interactive Navigation Testing"/> <TimeS...
3b3a0d35b64985c55307087cb5fcd08efffc28a91165af3daac35fba55acb355
TypeScript
2,940
103
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
8ca1afd72fb1e9a99315b0f570bbd02df88b0825ea0ef6b317a6c16dead536b1
TypeScript
2,943
101
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
5876d12012cfbfa552e1062b687944b64f6a081d45c4c5dcf3f9139f4cb6074c
TypeScript
2,947
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...
ee73af058d57e74ea02061b1d05ef7df9419f0b33a6ee382d9c86b3034d3e35d
TypeScript
2,948
128
/** * Writer class for sdf/mol files. */ import { sprintf } from 'sprintf-js' import Writer from './writer' import Structure from '../structure/structure' import AtomProxy from '../proxy/atom-proxy' import BondProxy from '../proxy/bond-proxy' // Hard-coded chiral as false as we don't specify it any atoms const Cou...
225778c91a7f7dbceeb394ccffe64a4b80f9de0999fe66b3bed86bad16b6da23
TypeScript
2,949
86
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
ea3f91ef75bc768e5ea653be124307d761cb7c73815c1aa963b473fb03b8a1e8
TypeScript
2,950
78
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
bd17deeca1baf6335895648538b6547b6e2b06577f8d8867ccd37b8f0b8de8c1
TypeScript
2,953
75
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df
TypeScript
2,956
42
/*! ***************************************************************************** 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....
13006a5cb0e7ed0c6eba546056829fc3e29df0b47f2145cc1d3e51dfabda5c22
TypeScript
2,958
78
// Deterministic PR-description / template compliance check. Replaces the // earlier GitHub Models check: it needs no model, no network and no special // permissions, so it works regardless of org/enterprise policy. It catches // the common "didn't fill it in" cases (empty body, untouched placeholders, // missing or em...
0006c9c3c400e5ff54a37ed5ef31f8c74e24934fb7e73d4fafe9a8700c8d4f59
TypeScript
2,961
72
import { DatasourceType, NativeFilterScope } from '@superset-ui/core'; import { Datasource } from 'src/dashboard/types'; import { DASHBOARD_ROOT_ID } from './util/constants'; /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed ...
dc349ec0b3e55b52a0ff593821454b85e2f00744caed1f7d011b0102a7bf07ce
TypeScript
2,962
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...
efb955b0072827537b5bcb1f874c1a24cbfc2cf91eb82278d6f14c9aa13e168c
TypeScript
2,963
105
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
65783c9dfc743b282cc05339b693e1ac8bbe8cea3086454432e2bbd36d5cae70
TypeScript
2,971
114
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1c8d397f5fd75980c2e5bc0735aac8d1e2e8fe05e5632e641cb1911d18b56618
TypeScript
2,972
119
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
061063b5337b04dcc408a9928e741751e98a6bbe1f28e896a92da2c9e1a62b6d
TypeScript
2,975
119
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
3dc6e7862ce978ce01abe1f56158eed981c4dbeb9459d25ae816163fac662cd6
TypeScript
2,976
82
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
fff562685714d2c9308ba78a52cae5842aa07d6bdb051b20cbde1a35c2c011cf
TypeScript
2,981
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...
2801a208024f468a1146ad344b555609739238738f404b7434bf936133e45367
TypeScript
2,982
71
// Import modules import { Component, Input } from '@angular/core'; import { MatSlideToggleChange } from '@angular/material/slide-toggle'; // Import services import { FlaskService } from '../total.service'; @Component({ selector: 'app-run-trial', templateUrl: './run-trial.component.html', styleUrls: ['./run-tr...
b1380a53441876a2c135b8c0e455d114acc504f1132fabc7c21abcb367e266f5
TypeScript
2,983
80
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts" // @generated from file dbtlabs/proto/public/v1/events/fusion/artifact/artifact.proto (package v1.public.events.fusion.artifact, syntax proto3) /* eslint-disable */ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import ...
2b7b9fd90db9d7944711705d1df82778e176557ce47e678034712df60fb92a56
TypeScript
2,986
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...
a2608313fb59c121ed35f3171f34ff52b19dc5f67c377a532c82339dfa69f84d
TypeScript
2,988
87
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
a133064f187101912d33b2fe5f2e5b93c549351100b2e9bba40df49337c47949
TypeScript
2,990
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...
661d836fe2f4159e099cf7fea2f963ec615ff3a4ba3eb2574c7b70249e117c48
TypeScript
2,991
92
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
d21ca16842d9ea784bef44fd762a100357e33a825cfc3bac1e60deb0c6972b02
TypeScript
2,995
103
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
21fd283ddab6d741c561704b69758366c9ca50d071b740d521bc459f93319a59
TypeScript
2,997
105
import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, EventEmitter, HostBinding, Input, OnChanges, Output, QueryList, SimpleChanges } from "@angular/core"; import { SmartChipContent } from "../smartChip.content.directive" import { SmartChipMenu } from "../smartChip.menu.directive"; import { rgbToH...
2e3ac4a4a4c2af78cd433516b0e9de194702dd0259521d2a08d4ca3f86daeadb
TypeScript
2,997
61
import { buildTaxonomyTreeData, getTaxonomyOptionPath, taxonomyCodeFromTreeId, taxonomySelectionToTreeId, taxonomySelectionsToTreeIds, treeIdsToTaxonomySelections, } from "./taxonomy-multi-tree-utils"; import type { TaxonomyOption, TaxonomySelection } from "./types"; const flatOptions: TaxonomyOption[] = [...
57e1e5e610035346cda34ec64afdc7116ce91c190c914f43c69aba7ead19ccee
TypeScript
3,000
75
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
6e3ef1513f9ec8b666b1d21208afef11458c9a22ae071995d7b16ba3b70d03e5
TypeScript
3,004
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...
9eba3d354a167877dfc6799ec04c2401029e9324222bafce7d8da4935838694e
TypeScript
3,006
87
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
3107db9edcb425d438f41b3d0621434b45005ce50c84a416a7da3cbae0e2949c
TypeScript
3,007
108
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
b59f013806e76dc195d2c73721ef1662ddd70c814983d0b2992e63acdc53151f
TypeScript
3,011
139
export const simpleConfig = `<View> <Text name="text" value="$text" /> <Labels name="label" toName="text"> <Label value="Label 1" /> <Label value="Label 2" /> <Label value="Label 3" /> </Labels> </View>`; export const simpleData = { text: "It is just a simple text for testing.", }...
b9d3ca49fe9a3b23d121c68b67c94603592ca94f654c4128940afff506a598ba
TypeScript
3,012
106
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
00f36051fa2a3a59fdf3c6a5d01141c1c9cbc0804185d22fa12c45145973aaab
TypeScript
3,017
67
import MeasurementRepresentation, { MeasurementRepresentationParameters, LabelDataField } from './measurement-representation'; import MeshBuffer from '../buffer/mesh-buffer'; import TextBuffer from '../buffer/text-buffer'; import WideLineBuffer from '../buffer/wideline-buffer'; import { Structure } from '../ngl'; impor...
bf464d368710fdcc0a4aece305cc5c519da0d19a606cd2e1868e48c661b52289
TypeScript
3,017
121
/** * TypeScript interfaces for Claude Code transcript entries. */ // ============================================================================ // Content block types // ============================================================================ export interface TextBlock { type: 'text'; text: string; } ex...
5c473a5d302ecf99c9febc242cc6d409567765e3cdc7c69fc5bcb2c85b356417
TypeScript
3,019
87
/** * @file Double Sided Buffer * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Group, BufferGeometry, Mesh, LineSegments, Vector3, Matrix4 } from 'three'; import Buffer, { BufferSide } from './buffer'; import { Picker } from '../utils/picker'; /** * A double-sided mesh buffer. Takes ...
96bdbfcb08561a92a6e546189e547dc14f1c757a94c4d7c88c21d5d0f0e3d6cd
TypeScript
3,020
94
import { HYBRID_LINEAR_DOWNSAMPLE_SPLIT } from "../constants"; /** * Downsample FFT data for the linear scale by hybrid pooling (average for low bins, max for high bins) * @param fftData * @param bins */ export function downsampleLinear(fftData: Float32Array, bins: number): Float32Array { const binCount = fftDat...
9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb
TypeScript
3,021
83
/*! ***************************************************************************** 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....
d4e57f1ef7f7c3feb4870beca47591a8d9a2c4c6fd31215da1cd944b0a131975
TypeScript
3,022
102
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
6a236232a0bf37437c45a7a3e0ca07f096af126cf7b26b594ddf3cb416f4a218
TypeScript
3,023
101
import { NgModule } from "@angular/core"; import { ComponentsModule } from "src/components/components.module"; import { FormsModule, ReactiveFormsModule } from "@angular/forms"; import { LayoutModule } from "src/layouts/layout.module"; import { ScrollingModule } from "@angular/cdk/scrolling" import { HttpClientModule }...
9b59336d9b5de8a5c1054b2ee6c1a23fb5426a577c4fa9cc48a642aa6c3e2f82
TypeScript
3,023
96
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
34f5e25da0489aa72e0238084cd3af69c372ce41946297e1341f5f4e115f1fdd
TypeScript
3,024
85
export function addMatchImageSnapshotCommand(defaultOptions: any = {}) { Cypress.Commands.add( "matchImageSnapshot", { prevSubject: ["optional", "element", "window", "document"] }, (subject: any, nameOrOptions?: string | any, commandOptions?: any) => { let name: string | undefined; let options...
4ed29bbac5ba6e517f8ba5b72a264b7f1bea2df8fc2f98c4a66345cf48d89e03
TypeScript
3,026
83
import * as helpers from "../helpers"; describe("helpers", () => { const originalMaxSafeInteger = Number.MAX_SAFE_INTEGER; beforeEach(() => { // Mock Number.MAX_SAFE_INTEGER to a smaller value for testing purposes as NodeJS supports larger integers than Web. Object.defineProperty(Number, "MAX_SAFE_INTEGER...
0f0b2d778822aeec60c24c9b69fe975716c549df556fa9ff9481aab5b9001d51
TypeScript
3,027
101
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
77cfbc46cff47937049ea2cab44f3622cd4dee74ecaf412c46cc73a055d34009
TypeScript
3,027
74
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regardin * g copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License");...
23331e71c01916eeb1f22913a3d0f657fd64901bfe245a488167c0b446e08c4a
TypeScript
3,031
74
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regardin * g copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License");...
78f6472f4e8a0a7e435c63c2a7c27e815fa55b60f535abae0dfd89f1de7b3268
TypeScript
3,033
95
import { describe, expect, it } from "bun:test"; import type { BezierPoint } from "../types"; import { PointCreationManager } from "../pointCreationManager"; // Build a simple open path of `count` connected points: p0 <- p1 <- p2 ... function makePoints(count: number): BezierPoint[] { return Array.from({ length: cou...
0ccd345740d58ae2f8bb68fa7954493f10b74ec6a5714da9da932277bac0ae85
TypeScript
3,034
85
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
c930bf25d5b1ec7c020ce80f972881c0e1ffcae07f6b72a0336ddef1e083e1e6
TypeScript
3,038
85
export * from "./lib/Card/Card"; export * from "./lib/InputFile/InputFile"; export * from "./lib/MultiStateToggle/MultiStateToggle"; export * from "./lib/ThemeToggle/ThemeToggle"; export * from "./lib/Tooltip/Tooltip"; export * from "./lib/Userpic/Userpic"; export * from "./lib/badge/badge"; export * from "./lib/badge-...
b65a4a106e1e94ba42bf2586481885a3a7c9665c6350bf4d3f1db9f3e731a81c
TypeScript
3,042
107
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
66cc9946ef3f87bcec8e1421f3e743b2017b285d59b7024fc2e7f59b7e8131db
TypeScript
3,046
101
import type { MediaView, ViewWithMedia } from "./types"; export function withMedia<T extends new (...args: any[]) => ViewWithMedia>( Base: T, ): T & (new (...args: any[]) => MediaView) { return class extends Base implements MediaView { /** Shared by timeline controls, Paragraphs, and VideoCanvas buffering over...
e25f41db7ac94ba43bed38a66b098ea6d78468319a5117a1dc24c612b474a86d
TypeScript
3,047
99
/** * @file Cone Buffer * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Matrix4, Vector3 } from 'three'; import GeometryBuffer from './geometry-buffer'; import { BufferData } from './buffer'; export interface ConeBufferData extends BufferData { position1: Float32Array; position...
6e1050424a894712acc2d71ea3c4518cd81f29d6807683184a7504c03624dabc
TypeScript
3,050
80
/** * Emits a Django-compatible manifest.json: maps logical names (e.g. "main.js") to /react-app/<hashed> URLs. * Vite's default manifest uses entry file paths as keys; Django templates expect "main.js", "vendor.js", etc. */ import type { Plugin } from "vite"; import path from "node:path"; import fs from "node:fs"; ...
6d2c49a64b3404c74c4a03d795308b35571d400defe171ab27139eeae36b7ecc
TypeScript
3,051
135
type MessengerResponder = (result: Record<string, any>) => void; type MessengerCallback = (data: any, storage: Record<string, any>, respond: MessengerResponder) => void; type MessengerInput = { compute: MessengerCallback; precompute?: MessengerCallback; }; export class ComputeWorker { private worker: Worker; ...
ebdb3b198d9e63ada5001344efccd16a76c61041287595277fe41dc57def6048
TypeScript
3,053
106
import { z } from "zod"; import type { ProviderConfig } from "@humansignal/app-common/blocks/StorageProviderForm/types/provider"; import { IconCloudProviderS3 } from "@humansignal/icons"; export const s3Provider: ProviderConfig = { name: "s3", title: "Amazon S3", description: "Configure your AWS S3 connection wi...
04fe58ce4865bb3085289a9c6a7b04b9074c1fd7b651acc17edc2d43dfbaee08
TypeScript
3,057
98
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
075099671b691129c7977c91d9de135957db43486d6de0f56c08c6ba5e00dbd9
TypeScript
3,057
101
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
429f136ca322a93cda1a9eb3a2163898fd6affab5e0ca02f8597aec9d58dceb6
TypeScript
3,057
85
export const Relations = { get relations() { return cy.get(".lsf-relations"); }, get relationOrderList() { const relationList = []; cy.get(".lsf-relations__item").each(($el) => { const from = $el.find(".lsf-detailed-region .lsf-labels-list span").first().text().trim(); const to = $el.find...
6017906ebfd0b49645c733fe8597c9483960a5ef56098a0a2196562f185aed06
TypeScript
3,058
73
/** * @file Hyperball Stick Buffer * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ // @ts-ignore: unused import required for declaration only import { Vector3, Matrix4 } from 'three' import { ExtensionFragDepth } from '../globals' import { calculateMinArray } from '../math/array-utils' import ...
6801ca10458e19eb71926e2fcc7c84ab2500697af6fff0c70036adbe78efa2b8
TypeScript
3,062
123
import { Events } from "../Common/Events"; import { info } from "../Common/Utils"; interface AudioDecoderEvents { progress: (chunk: number, total: number) => void; chunkLoaded: (chunk: number) => void; } export const DEFAULT_FREQUENCY_HZ = 44100; export abstract class BaseAudioDecoder extends Events<AudioDecoder...
dc7b1704447767ff91256a407b68c147de3b8ce072d2156d6f46909bf8cdfb26
TypeScript
3,065
97
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
9964966f3a6228042f5399c06fb3234e18de74ff5348f36b8a77f5aa8ab9505d
TypeScript
3,066
119
import { MockStore, provideMockStore } from '@ngrx/store/testing'; import { ExperimentalFlagDirective } from './experimental-flag.directive'; import { ComponentFixture, TestBed, fakeAsync, tick } from '@angular/core/testing'; import { userPreference } from 'src/state'; import { Component, Input, ViewChild } from '@angu...
18d0c1346e7b3adf1aa8dde95acc0778b67aef70a18928332249eba93ce22113
TypeScript
3,071
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...
ebfaa95f2998a444d5bb7330b9eaf238b44a2ec2a31bd7507e82324926e50777
TypeScript
3,072
81
import { describe, expect, it } from "bun:test"; import { isEndpointVertexId, resolveVideoAppendOriginId } from "../utils"; // Open polyline A -> B -> C -> D, connectivity expressed via prevPointId (the same // topology the renderer uses). A is the head (no prevPointId), D is the tail. function makeChain() { return ...
a75158a7cc83dfb08dfe0ce7cdd9d99414da4e3872199a7d0f0e825756d7f94a
TypeScript
3,073
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...
556137fbb332fa2c1f04ff284a25ea04a7d37ebc6812107b05a791311ca2408a
TypeScript
3,074
94
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
376e9ef03feec717c13ab0e0c88da25d414d4bc0ee4e95b7a164347873749bfe
TypeScript
3,075
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...
09aea05dd2d2015af54a7b63def86d7d8f608502bde3122b30bfc621f0ce59d9
TypeScript
3,077
81
import StringStreamer from '../../src/streamer/string-streamer' import CifParser from '../../src/parser/cif-parser' import { join } from 'path' import * as fs from 'fs' describe('parser/cif-parser', function () { describe('parsing', function () { it('basic/mmcif', function () { var file = join(__dirname...
4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1
TypeScript
3,077
68
/*! ***************************************************************************** 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....
b313c5d68da1750de9aae6d4d95f3622361f1f7a325f3d28942877a189b3749a
TypeScript
3,077
84
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
7e6237b1b610b8a52085f86bb80e8e10d6dc03c754d9a27a6a63f12454d1ae2e
TypeScript
3,079
84
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
28481d4facc28f60026244bf6ad08733568b89508f5dcab1ec84b7bd15e5aa6c
TypeScript
3,082
95
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
4f22739fa266ae41c9a16c633b34d6a9c12a045b1e290d22f43e228bff12daed
TypeScript
3,084
104
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
9f2e52555d5e91039671b93b6a2f4c7cdb84c96cb2e29c29fd43b49070a23b0b
TypeScript
3,088
90
import { Injectable } from "@angular/core"; import { select, Store } from "@ngrx/store"; import { from, Observable } from "rxjs"; import { map, switchMap } from "rxjs/operators"; import { SAPI } from "src/atlasComponents/sapi"; import { NgSegLayerSpec, SxplrRegion } from "src/atlasComponents/sapi/sxplrTypes"; import { ...
a3a0f9f6e4262081e68e84930439a03f12d3409f68ab558d392c2b7833745e8e
TypeScript
3,091
84
import { http, HttpResponse } from 'msw'; import { setupServer } from 'msw/node'; // Mock the OTLP proto exporter (Jest can't load its dynamic http imports). const exporterCtors: { url?: string; headers?: Record<string, string> }[] = []; jest.mock('@opentelemetry/exporter-trace-otlp-proto', () => ({ OTLPTraceExporte...
ae9bfa2c4a7a6d286baace013d12c42e8b9f37cc648cd1214e94e5c78f0c7cae
TypeScript
3,094
109
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
89bb49a09196aa5f84b54d25e35910fb5dddb401eadfd8dc6f3ca7a60494b7e7
TypeScript
3,096
90
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
bce00ddcc65db5b2bfa276aface51fedfaba1b79a7e068e8e5e694399c616e8c
TypeScript
3,096
97
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
3c7d509376d324f71c7b7e476963fc2ed571edeead8c8407d73f3a1d781ed6fa
TypeScript
3,098
119
import { ChangeDetectorRef, Directive, ElementRef, EventEmitter, HostBinding, HostListener, Input, OnDestroy, Output } from "@angular/core"; import { fromEvent, merge, Observable, of, Subscription } from "rxjs"; import { debounceTime, distinctUntilChanged, map, scan, switchMap } from "rxjs/operators"; import { MatSnack...
a4246a7fb0d1557d034a7ce481f472b91a55137322435dda071cd2b37dc19722
TypeScript
3,098
82
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
e4a2f7d0b50477fe7003e27cbbaf793e988cb3a72c12061ad16f8ef29b5b6af4
TypeScript
3,101
90
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
87713f7391255aee7e2aa002eba955e7c0d1ab2884349f3615beb96360099d3d
TypeScript
3,106
87
/** * @file Netcdf Reader * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private * * Adapted from https://github.com/cheminfo-js/netcdfjs * MIT License, Copyright (c) 2016 cheminfo */ import IOBuffer from './io-buffer'; export interface NetCDFRecordDimension { length: number; id?: number; ...
62383901a0add5337edcd3b944e341e487149a6d31f81a6e3da18068f0baec9d
TypeScript
3,108
83
import { useInfiniteQuery } from '@tanstack/react-query'; import { useMetadataDataSource } from '../context/MetadataDataProvider'; import type { ListArgs } from '../typings/args'; import type { SearchFilter, SearchHit, SearchResult } from '../typings/domain/search'; import { searchKey } from '../util/queryKeys'; impor...
2490e3aa8347943f93de147b27dbfcb864225aabb1cb7737403ab4d6b4464214
TypeScript
3,109
162
/** * @file Element Colormaker * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { ColormakerRegistry } from '../globals' import { defaults } from '../utils' import Colormaker, { ColormakerParameters, manageColor } from './colormaker' import AtomProxy from '../proxy/atom-proxy' // from J...
e70c72308b6bbaa81a4120d4a4d3311ce5d700bc1f6e0d5b2cd43d3922b586b6
TypeScript
3,110
105
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
2a9aec246196bc6bf30f9cf5c8ec4efd89d8bdbc3d0582fab400632642531712
TypeScript
3,111
123
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
e5bb65fd57fd660ece28e256c96338df1a54d4d61619637c9669dd1825c003b7
TypeScript
3,114
82
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...