sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
5891cde06e48cc4b2dc742a8c14b44ecde542ed34e2d9d6c644fcf3d73cc539e
TypeScript
3,669
104
/** * State visual configuration - maps state labels to their icons and colors * Shared between StateHistoryPopover and StateHistoryPopoverContent * * Uses CSS variable references for dark mode support. * Colors are defined in tokens.prefix.css and automatically adapt to color scheme. */ import type React from "...
a0a7bec3b708f180d60da9c95146ce3555682b5357fc1bbcc065ef583fa2ec5f
TypeScript
3,681
92
const metaModifier = window.navigator.platform.toLowerCase().indexOf("mac") >= 0 ? "metaKey" : "ctrlKey"; export const Sidebar = { get outliner() { return cy.get(".lsf-outliner"); }, get toolBar() { return this.outliner.get(".lsf-view-controls"); }, get hideAllRegionsButton() { return this.toolBa...
419b92e61e3a9f2971cd36df15aa78e3196b69a73fcb30ae6eebf61a02dacfca
TypeScript
3,694
199
type THref = { href: string } type TSpaceType = 'mri' | 'histology' type TNgTransform = number[][] type TVolumeType = 'nii' | 'neuroglancer/precomputed' | 'neuroglancer/precompmesh' | 'detailed maps' | 'threesurfer/gii' | 'threesurfer/gii-label' type TParcModality = 'cytoarchitecture' | 'functional modes' | 'fibre...
7cb3045e525889c4677fdffe8d111775c8f4050d9a0c393164de0f0a159ba368
TypeScript
3,694
127
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
f6c7a17c34058f97b3bdfb0edc538faac0150137379d7238d5d7f8b9338ad941
TypeScript
3,697
153
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
3ed03d02da97bc99afc0eb3698fba793b220e7c7f95d650a8f4ce29347898e9b
TypeScript
3,698
62
// @generated by protoc-gen-es v2.2.5 with parameter "target=ts" // @generated from file dbtlabs/proto/public/v1/events/fusion_onboarding.proto (package v1.public.events.fusion_onboarding, syntax proto3) /* eslint-disable */ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import { fileDesc, me...
935a62e74be8c44ba828746b126d8cea6f00362799b543ca65db7c4d907351dd
TypeScript
3,699
72
import fs from "node:fs"; import path from "node:path"; /** * The Order by control is a segmented pair: the ColumnPicker trigger and the sort-direction * button, wrapped in a collapsed ButtonGroup. ButtonGroup collapses the pair down to a single * divider with sibling selectors (`button:not(:first-child)`, `button:...
c6b3cd37650fb07a0ed7e6902616c7057eb9fc2a3f18dc2d32e59ceecead765d
TypeScript
3,701
138
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
f5196dac71c533bf80294684751b68855942ca09aa499559f0987eba9752d67b
TypeScript
3,701
137
/** * @file Trr Parser * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Debug, Log, ParserRegistry } from '../globals' import { ensureBuffer } from '../utils' import TrajectoryParser from './trajectory-parser' class TrrParser extends TrajectoryParser { get type () { return 'trr' } ...
2e9090e19db4613ff9e631daa8840533c90ee48d5b290255dbbf2ab4160a2574
TypeScript
3,705
143
declare global { interface Window { APP_SETTINGS: any; } } export const formDataToJPO = (formData: FormData) => { if (formData instanceof FormData) { const entries = formData.entries(); return Array.from(entries).reduce((res, [key, value]) => { return { ...res, [key]: value }; }, {}); } ...
d733fec5e206e1a742a1444b42a0863e1976a6f162ec8f256210d3bf7aded203
TypeScript
3,707
118
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewChild } from "@angular/core"; import { FormControl } from "@angular/forms"; import { BehaviorSubject, combineLatest, concat, from, of, timer } from "rxjs"; import { debounceTime, filter, map, shareReplay, switchMap, take, takeUntil, tap } fro...
080ef31d9d3125430403a76c21916f7059e3849dfb4bc0b0b8493def0dfee424
TypeScript
3,713
131
import { Component } from "@angular/core"; import { AtlasWorkerService } from "src/atlasViewer/atlasViewer.workerService.service"; import { MatSnackBar } from "src/sharedModules"; @Component({ selector: 'freemode-ui', templateUrl: './freemode-ui.template.html', styleUrls: [ './freemode-ui.style.scss' ] }) ...
0c0b25d392a18e94009972fa8954ac476abd4c0a3414db1cce659437c6fd4a9e
TypeScript
3,713
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...
4819b081ecf25cd97163afc3e5cb0043e7363fe7fe594f3a566604a2754ca562
TypeScript
3,717
123
import { Injectable } from "@angular/core"; import { MatSnackBar, MatBottomSheet, MatBottomSheetRef } from 'src/sharedModules/angularMaterial.exports' import { Actions, createEffect, ofType } from "@ngrx/effects"; import { select, Store } from "@ngrx/store"; import { of } from "rxjs"; import { filter, map, mapTo, pairw...
50a69e45a6c2b049e87d4392b7d259c8ffe51e8299663e48ce0ba1869160b5b7
TypeScript
3,719
112
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
a3cdedcd4aefd53a6b3665180dcc4325f1aad6b8db9b475a23d35fe41143e775
TypeScript
3,720
149
// Video + Audio + Paragraphs synchronization test configuration export const videoAudioParagraphsConfig = ` <View> <Video name="video" value="$url" sync="sync1" height="150"/> <Audio name="audio" value="$url" hotkey="space" sync="sync1" /> <Header value="Sentiment"/> <ParagraphLabels name="label" toName="text"...
e9d88657259d55a0531bc7037b4e46d93be90da451b36b474234ae6b04e2c68e
TypeScript
3,722
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...
36c411da7ce40dee383bf935b0f15392ddb24dd8512a6a1da02594efc0498517
TypeScript
3,724
148
import { fakeAsync, tick } from '@angular/core/testing' import { hot } from 'jasmine-marbles' import { Observable, of } from 'rxjs' import { switchMap } from 'rxjs/operators' import { switchMapWaitFor, bufferUntil, arrayOfPrimitiveEqual, encodeBool, decodeBool } from './fn' describe(`> util/fn.ts`, () => { describ...
639c90898f26595c9a241453633125a7ae565d2bbe294aae8e671375faefa915
TypeScript
3,726
123
import { AfterViewInit, Component, Injector, Input, OnDestroy, Pipe, PipeTransform, Type, ViewChild, ViewContainerRef } from "@angular/core"; import { IAnnotationGeometry, UDPATE_ANNOTATION_TOKEN } from "../tools/type"; import { Point } from '../tools/point' import { Polygon } from '../tools/poly' import { UntypedFormC...
3482faf073fba7d60bac620901c287acd6f8a5e0b2fadc99c6b6ec3690c76fd8
TypeScript
3,738
100
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1d0479f35d2dcdb147395e1d72e4ff36b3caa5680d6afc45a823549e0d01adb6
TypeScript
3,739
111
/* 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...
18ffb3195ec8cc28301e5279d6afe83d5d444750816fc2deb1bfd537865bd9a9
TypeScript
3,742
121
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
f01c0145d4f775cc8971cca683441aae1458f9a37b12da64db0d3510823e4e31
TypeScript
3,745
118
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
430708e10a6c2be7a9d8af549b35f7de91b3f989acd3207835e40f1724fc7be8
TypeScript
3,750
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...
eed0600fe64690285db1ee410b8e103c0b471c7fa42f86dbef041fd9fd0379f6
TypeScript
3,750
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...
e253638adb555b0f75e27e24de58baaa27c9aa7037285d29cd91b1c10307c1d9
TypeScript
3,751
56
/** * @file Array Utils * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3 } from 'three'; import { NumberArray } from '../types'; export declare function circularMean(array: NumberArray, max: number, stride?: number, offset?: number, indices?: NumberArray): number; export declare...
42047c0029a06aaafd03be16678376f36ba62d11f97561df969d47db2cfd2ce1
TypeScript
3,752
132
import simplify from "simplify-js"; /** * Generates outline contours from a pixel-based region/mask * * @param item - Object containing the canvas with pixel data and rendering properties * @returns Array of flattened point coordinates forming contours around the shapes */ export function generateMultiShapeOutlin...
65fa00b1ad7d31058ce3ac016d121374176a269c8a80f9a5819de9969f234ccd
TypeScript
3,752
143
/** * MSW-based OpenAI API mock server for testing * Provides realistic OpenAI API responses for comprehensive testing */ import { http, HttpResponse } from 'msw'; import { ChatCompletion, ChatCompletionCreateParams, CreateEmbeddingResponse, EmbeddingCreateParams, } from 'openai/resources/index'; import { R...
63a142411e53e96a1c9475a7ae844145cc23b4d7b49dcfea657bc1d1ab1d6b9e
TypeScript
3,753
141
import { AfterContentInit, ContentChildren, Directive, Input, OnDestroy, QueryList } from '@angular/core'; import { combineLatest, merge, of, Subject, Subscription } from 'rxjs'; import { distinctUntilChanged, map, scan, shareReplay, switchMap } from 'rxjs/operators'; import { ListDirective, TranslatedFeature } from '....
bc68a854c6eca1c284e350d40c64596150fef40629e24cdc53ea1939be5fb9d6
TypeScript
3,758
110
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
5294e428655431ea4a64ebc4f79afff09c2cf069bd45245b643c6a00202ed26e
TypeScript
3,769
140
/** * @file Point Representation * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { RepresentationRegistry } from '../globals' import { defaults } from '../utils' import StructureRepresentation, { StructureRepresentationParameters, StructureRepresentationData } from './structure-represen...
7d7a6d107b3013f25c4a68d42a97c2f5ca68bf7406d4eb6a3d4183acd42bc0a2
TypeScript
3,769
120
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
add612714a52e7f2db41c8156f4139a9933f1a707cdb6dc3828f308ed7d2031f
TypeScript
3,773
124
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
f8d13f6c621a7aaa9e6f82f1af1f6c1c41bbdcf220ee7cdbd8a8333231a8bbf2
TypeScript
3,774
128
import { Input, Directive, SimpleChanges, OnDestroy } from "@angular/core"; import { BehaviorSubject, combineLatest, forkJoin, of, Subject, Subscription } from "rxjs"; import { distinctUntilChanged, shareReplay, startWith, switchMap } from "rxjs/operators"; import { SAPI } from "src/atlasComponents/sapi"; import { Feat...
ff4b849c0001b7c56c3830825e2700768aeb31cbd613676d61dd282f47119926
TypeScript
3,778
118
import type { BezierPoint } from "../types"; // Calculate the bounding box of a cubic bezier curve // Uses the derivative method to find extrema points function getBezierCurveBoundingBox( p0: { x: number; y: number }, p1: { x: number; y: number }, p2: { x: number; y: number }, p3: { x: number; y: number }, ): ...
5ffbd69e5a8c1a81607a362ac1a1b68cd414608f2a4be6d2d33c056e5b2a3b6e
TypeScript
3,780
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 ...
6c19f2e53d2a8ca68395af8c1c0e41f5cbf03995c0ccaea1b16ce4138c23afd5
TypeScript
3,790
123
/** * MLflow Tracing wrapper for the @google/genai Gemini SDK. */ import { withSpan, SpanAttributeKey, SpanType, type TokenUsage, type LiveSpan } from '@mlflow/core'; const SUPPORTED_MODULES = ['models']; const SUPPORTED_METHODS = ['generateContent']; /** * Create a traced version of Gemini client with MLflow tra...
d5d7d4f32e83d08ec6dc62961618f0b49f5da5c7e6f2e661d3b73fed7cd5d2e9
TypeScript
3,790
87
import path from 'node:path'; import { fileURLToPath } from 'node:url'; import { storybookTest } from '@storybook/addon-vitest/vitest-plugin'; import react from '@vitejs/plugin-react'; import { defineConfig } from 'vitest/config'; const dirname = path.dirname(fileURLToPath(import.meta.url)); /** * Two test projects,...
68e00ed046000a14df432b1c21f095f1f55df20c7936dd05ea211338251c0b01
TypeScript
3,811
104
import { type MutableRefObject, useCallback, useEffect, useRef } from "react"; import { FF_VIDEO_FRAME_SEEK_PRECISION, isFF } from "../../../utils/feature-flags"; import type { VideoRef } from "../VideoCanvas"; type UseLoopRangeProps = { loopFrameRange?: boolean; selectedFrameRange?: { start: number; end: number }...
632bc8d52232c76f4bbe5a3b7d444e49a4215ea73876e83aab11e1136f2fb1fb
TypeScript
3,817
120
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
a5a07119c53f60ac951526da11e34efefc34919c532d65d765284c78141f1477
TypeScript
3,822
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...
dbffb65d01b62da46ee30fcf1d98cd4893379f686bae4ed6587aa48a718a0871
TypeScript
3,825
130
import { RATE_LIMITED_RENDER_FPS } from "../constants"; /** * A utility class that provides rate-limited rendering functionality. * Handles both debounced zoom operations and rate-limited scrolling. */ export class RateLimitedRenderer { private lastDrawTime = 0; private pendingDraw: { getContext: () => any;...
f3f87c24289d69eb6bfd8591c05f3cca0f295be2c63b56386bfe429ee759c784
TypeScript
3,826
159
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
0168dc25d9dd50cf1f2ef35c3d4ebc0c2ea310d186b2b06241f0129dd496b2f7
TypeScript
3,831
110
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
10780d79a69a4c878664619acf1685711d1a6da6c857caeeaf1f2893467d5017
TypeScript
3,836
91
/** * @file Line Representation * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import StructureRepresentation, { StructureRepresentationParameters, StructureRepresentationData } from './structure-representation'; import WideLineBuffer from '../buffer/wideline-buffer'; import { AtomPicker } fro...
8bd1563a988d313f67d8d1f2c282462d912d26162132044fcb1e75eb95541d69
TypeScript
3,840
110
/** * Cost estimation for Claude models, used to populate `mlflow.llm.cost`. * * The Claude Code transcript carries the model and token usage but no cost, and * neither the MLflow TypeScript SDK nor the Databricks tracing backend computes * cost from usage (unlike the OSS Python path, which does it server-side or ...
e5d2705af77a0d3276f0ec044d5b9602454c2ae1a864c7fcb8f44b0ffe5cb773
TypeScript
3,841
118
import { test } from 'node:test'; import assert from 'node:assert/strict'; import { checkTemplate } from '../template.ts'; // A template with the same shape as .github/pull_request_template.md: a // multi-line comment block (containing its own headers, which must NOT be // treated as required sections), a Fixes placeh...
6ef307c43f902dc75a030f9eca53046b8e9c811bb3221b99f5e58ac0d7feee09
TypeScript
3,849
149
/** * @file Gro Parser * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Debug, Log, ParserRegistry } from '../globals' import StructureParser from './structure-parser' import { calculateBonds, calculateChainnames, calculateSecondaryStructure } from '../structure/structure-utils' cla...
fa974b87baf9b20a6e97cf209ff74a281fdd145d98a0d42f4aa432c20b976604
TypeScript
3,850
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...
27bfaa86705944aea1b8142f911ebce874e9d241212fa123f20b43601ae73518
TypeScript
3,851
109
///<reference path="pqueue.ts"/> /** * @module shortestpaths */ module cola.shortestpaths { class Neighbour { constructor(public id: number, public distance: number) { } } class Node { constructor(public id: number) { this.neighbours = []; } neighbours: Neighbo...
68fbb9f85bc05e5eceb248f9f7429a84924c5c0d059c678218e03d5a340afe8e
TypeScript
3,860
117
import { Directive, Input, Optional } from "@angular/core"; import { VoiFeature } from "./guards"; import { map, switchMap } from "rxjs/operators"; import { ExperimentalService } from "src/experimental/experimental.service"; import { BehaviorSubject, combineLatest, from, Observable, of } from "rxjs"; const BIGBRAIN_XZ...
2797d6cde9519e90835504a79424ff4084b6017305b2b3621ebf64ba05f259c6
TypeScript
3,864
148
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
95ea17931d180a674ed80e25c97e28cb4cafa21728cd53ba043ad1ffd2c9d249
TypeScript
3,866
110
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
0619a2b56357c15dff26c6d1a1ea7c515d401d2338ade891ce19481d234519d5
TypeScript
3,868
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...
77725740e0370e34eb339a82756ccf9f1b7d0bb6f113dcf7bcc0858d943f961c
TypeScript
3,872
97
/** * `window.__DBT_DOCS__` — build-scoped facts inlined into `index.html`. * * `dbt docs generate` injects this at export time (see the Rust `export::bootstrap` * module). It carries facts about the *build* rather than about the data: the dbt * version that produced the site, which distribution produced it, wheth...
1649018171e17437ee23775bf78b5c337c62792212bd4d6fac28447df2283109
TypeScript
3,875
112
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
2008309495eb1c25ad22e4c07b94a452990602f434be5b9f536bac61da92d80f
TypeScript
3,877
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...
8083137036ca65b3f7f4ec76f32acb9bee0126827368c21d503926818a712f62
TypeScript
3,877
141
import { buildSearchVisiblePaths } from "./virtualized-search-filter"; /** Cap deep-search matches so broad queries (e.g. `id`) do not expand thousands of subtrees. */ export const DEEP_SEARCH_MAX_MATCHES = 500; /** Build a JSON path segment the same way react-json-virtualization does. */ export function buildChildJs...
b5dd75f794fcaaf4007208a97a18061d9f71b273064503bbfd879d11db0edc78
TypeScript
3,878
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...
c1472a2c0efacf63d4b7115364ebfc09be0fb6303382ca490d964b7d5c7af932
TypeScript
3,878
103
import { existsSync } from 'node:fs'; import { resolve } from 'node:path'; import type { Plugin } from 'vite'; /** * Makes `pnpm dev` work against a generated site. * * The app decides how to load data by whether `window.__DBT_DOCS__` is present, which * `dbt docs generate` injects. The dev server serves `index.h...
e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb
TypeScript
3,878
96
/*! ***************************************************************************** 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....
1c0a50de591969e2c9c0d8807d937c5233ffd88880de7eaa4e245fd9bdc525cc
TypeScript
3,880
160
import { ConfigurationError } from "../utils/errors"; interface ObjectTag { name: string; } interface CustomTag<ViewTag = unknown> { tag: string; isObject?: boolean; model: ObjectTag; description?: string; view: React.ComponentType<ViewTag>; detector?: (value: object) => boolean; resultName?: string; ...
06e68f27eebaadfb31c82a8ca03a90bc1691d9d6c8d0cb717aa4b3d98e21864b
TypeScript
3,886
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...
d7f339c12f636349c8f529539b440a1cbf466a671fbb03d437c6a0670d786e6d
TypeScript
3,886
110
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
3411827c2e648e10b96b82e730df309f5f29e5fd4f290122a1950ee059a6563c
TypeScript
3,888
137
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
82794cbb78beccf8813cc9fd5ef59668b8df19906e82cd7e161889d9e3f389c5
TypeScript
3,892
130
import { fakeAsync, TestBed, tick } from "@angular/core/testing"; import { HttpClientModule, HTTP_INTERCEPTORS, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpResponse, HttpHeaders } from "@angular/common/http"; import { Effects } from "./effects"; import { Observable, of } from "rxjs"; import { Action } fro...
71f981559c86b88b7eb4650086ac96800d37747f3c76d437416db05bf00967d5
TypeScript
3,900
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...
250172246581b5ff3be21ac0a9dd8b1f56e8de97a283a396cf2f30d6e1541ccc
TypeScript
3,901
152
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
90584443ab94fdea70caeee41d61799b08bf0539f3e11cc464d4e44da1e5a80f
TypeScript
3,909
95
import { TraceLocation, TraceLocationType, createTraceLocationFromExperimentId, deserializeTraceLocation, } from '../../../src/core/entities/trace_location'; describe('TraceLocation', () => { describe('constructor and basic functionality', () => { it('should create a TraceLocation with MLflow experiment'...
95313378898a8aeaaf468a6f85f1866bd308d4b603ca85650adee71902dabeca
TypeScript
3,910
148
/** * @file Wide Line Buffer * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3, Matrix4 } from 'three'; import '../shader/WideLine.vert'; import '../shader/WideLine.frag'; import MappedQuadBuffer from './mappedquad-buffer'; import { BufferData, BufferParameters } from './buffer';...
a46166985dfaa850ca5484cb867ade7065c8ad0a267a28d9365899abcc52aa8f
TypeScript
3,912
145
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
3f6c5eb0aab861be3c0bfded2d7f8009aa20f5897231b2d96f0b7e83071cd525
TypeScript
3,914
109
import { AssessmentSourceType, Feedback, STACK_TRACE_TRUNCATION_LENGTH, STACK_TRACE_TRUNCATION_PREFIX, assessmentFromJson, assessmentToJson, assertFeedbackPayload, isFeedback, standardizeSourceType, truncateStackTrace, } from '../../../src/core/entities/assessment'; describe('assessment entities', ...
a2a46ff476b027724f81ad3de580fc1e4549fee4ae2a9543fff17c3176c56f36
TypeScript
3,920
125
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
ae61aa1a3b7386d43031f358d3a6ffe76a1a944aaca6048a0ba6b6e66c01d13a
TypeScript
3,923
130
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
624cef21331b70c784044ec7eca208c87e1eb82365211da6c9f6616d4ca66092
TypeScript
3,924
86
import * as models from './models'; import {execSpec, ResourceScope, WorkflowStep} from './models'; export function getResolvedTemplates(workflow: models.Workflow, node: models.NodeStatus): models.Template { let tmpTemplate = { template: node.templateName, templateRef: node.templateRef } as Wor...
4a34442613e6b6577383789eab2702c58740c0b202183be939a6366441b55c35
TypeScript
3,925
139
import { ChangeDetectionStrategy, Component, Inject, Input, Optional, TemplateRef, } from "@angular/core"; import { Observable, of } from "rxjs"; import { map } from "rxjs/operators"; import { AuthService } from "src/auth"; import { MatBottomSheet, MatDialog, MatDialogConfig, MatDialogRef } from 'src/shared...
d8959651e078f18f5884f239a83fa36053fc6537003097214b70cff6c41671a4
TypeScript
3,926
128
import { Injectable } from "@angular/core"; import { take } from "rxjs/operators"; import { SAPI } from "./sapi.service"; import { SxplrAtlas, SxplrParcellation, SxplrTemplate } from "./sxplrTypes"; type PossibleATP = { atlases: SxplrAtlas[] spaces: SxplrTemplate[] parcellations: SxplrParcellation[] } @Injecta...
ea7a1019b824dd086aeefe7c4f74a16aa7734119162203efe2e0e4fbde3ffdb8
TypeScript
3,931
107
import { SpanStatusCode as OTelSpanStatusCode } from '@opentelemetry/api'; import { SpanStatus, SpanStatusCode } from '../../../src/core/entities/span_status'; describe('SpanStatus', () => { describe('initialization', () => { // Test both enum and string initialization (parameterized test equivalent) const t...
1ddf7eb3c523a2f2d57b2074f4848fa616ea6dd3af0404780c59a3f740a4afe8
TypeScript
3,933
154
/** * @file Binary Heap * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ /** * Binary heap implementation * @class * @author http://eloquentjavascript.net/appendix2.htm * @param {Function} scoreFunction - the heap scoring function */ class BinaryHeap<T> { content: T[] = [] constructor...
7c79785fe7719fdf79fe7f26640f8bfaedf206651753de676c9ff0e9d9b20820
TypeScript
3,933
110
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
f4a95bd112b2862f38c84737497e45a61f04a2b1064618bbb462cb5718aa23ad
TypeScript
3,933
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...
2b7b438bf19f367e5c0eacb133369dadedc3397adec72f80a0f5a6929c7c71cc
TypeScript
3,934
146
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
207a4c3e742bc4660d0cf14b3e0ffa255bf9e1f3a1b87feccaacae9f6e0155b9
TypeScript
3,945
112
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
c19655326f707461d498c244ca9981bed3236b6d8d8955eab8c4281cb7aaa2f8
TypeScript
3,947
119
/** * Classification of Custom Interface dimensions. * * A Custom Interface has no labeling config, so the backend reports every one * of its dimensions as `is_categorical: false` regardless of what the field * actually holds. The dashboard recovers the distinction from the values, and * shows the ones it still c...
72f43044e7911e71de142636c2c64d8016b4df7d6be812559fce5b357a573eda
TypeScript
3,949
103
/** * @jest-environment jsdom */ import StringStreamer from '../../src/streamer/string-streamer' import PdbParser from '../../src/parser/pdb-parser' import PdbWriter from '../../src/writer/pdb-writer' import { join } from 'path' import * as fs from 'fs' const LINES_1CRN = 1 + 327 + 1 // TITLE + ATOM + END const...
5ec9a4cfba41c76cf06a3d94e9f2ebd75faf83324038414bac4dadb5fdd3da14
TypeScript
3,950
82
/** * @file Distance Representation * @author Alexander Rose <alexander.rose@weirdbyte.de> * @author Fred Ludlow <fred.ludlow@gmail.com> * @private */ import BitArray from '../utils/bitarray'; import MeasurementRepresentation, { MeasurementRepresentationParameters } from './measurement-representation'; import Bond...
29efa2b60a2f820607206c5c855b2041eb5dbf977d4e92d9275c09900d4d3af8
TypeScript
3,952
110
import { afterEach, describe, expect, it, vi } from 'vitest'; import { dataBaseUrl, hasSiteBootstrap, readSiteBootstrap, type SiteBootstrap, SUPPORTED_BOOTSTRAP_SCHEMA_VERSION, } from './siteBootstrap'; function bootstrap(overrides: Partial<SiteBootstrap> = {}): SiteBootstrap { return { schema_version...
6ee30ac3705887e328243c560c9402f9fe0eada6ceb149074254d0eaf9ede2eb
TypeScript
3,953
131
/** * Pure helpers for finalizing SAM2 video tracking after cancel or completion. * Keeps incomplete / malformed keyframes out of VideoVectorRegion.sequence * (BROS-1511). */ export type BackendTrackFrame = { frame: number; time_ms?: number; }; /** * Map backend frame metadata into the editor's one-based dis...
13aa7e85a7669b8262750c1857bf52e9c76dc112ae2d25e5dc9c5d11f3a4ea7f
TypeScript
3,955
115
/** * @file Globals * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { getBrowser, getQuery, boolean } from './utils' import Registry from './utils/registry' import _ColormakerRegistry from './color/colormaker-registry' import _ParserRegistry from './parser/parser-registry' import _Worke...
d7b3996807b6469c71206a726d89d0b32f8ce72a5186abc9e4ecd055808b9622
TypeScript
3,956
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 ...
3e19eea5cb703ff91d636849b4e70c11c3de98012d545a4235b931f98fb5718f
TypeScript
3,958
102
import { describe, expect, it } from "bun:test"; import { linearizeOpenVectorPath } from "../utils"; type V = { id: string; x: number; y: number; prevPointId?: string | null }; // Open polyline A -> B -> C -> D via prevPointId (A head, D tail). function makeChain(): V[] { return [ { id: "A", x: 0, y: 0, prevPoi...
fb565b5f2dc8203695110d854a8c15f298472127b5d17b65281374d10f38f05e
TypeScript
3,958
148
/** * @file Animation * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Vector3, Quaternion } from 'three'; import ViewerControls from '../controls/viewer-controls'; import Stats from '../viewer/stats'; /** * Animation. Base animation class. * @interface */ declare abstract class Anim...
b18b51fa389e452cb507def77b964563073809078ed77ceaad16a529acac5867
TypeScript
3,962
144
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1df802f5e5090fce416ed1828b87de0d92163195a730e0ed1be3f52acd31d0c7
TypeScript
3,963
144
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
f86ffbac487f4d6479df9d9686fb665359872b03ee9b168544a264c56e3f7099
TypeScript
3,969
124
/** * @file Trajectory Component * @author Alexander Rose <alexander.rose@weirdbyte.de> * @private */ import { Signal } from 'signals' import Element, { ElementSignals, ElementDefaultParameters } from './element' import Stage from '../stage/stage' import Trajectory, { TrajectoryParameters } from '../trajectory/tr...
a56edcbb81d46eca48178a645d79b7c2df143a63df06c6ab89cd62461c60a2d4
TypeScript
3,972
122
class TaxonomyHelper { private get _baseRootSelector() { return ".taxonomy"; } /** * Whether the fragment is operating in legacy mode. * NewTaxonomy (Popover + tree) is the default since the FF_TAXONOMY_ASYNC * flag was removed. Set isLegacy = true only when the config uses legacy="true". */ pu...
326cee20343b4dbeba56bc89dc99ccb393d87f917da0ce16e4232ad74ad76d89
TypeScript
3,974
131
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
367f7f0af57c56912d59f3a99540ed0094bc7aa1e2cee350606a0bcf2203268f
TypeScript
3,980
144
/** * Types for Qwen Code transcript parsing. * * Qwen Code transcripts are JSONL files with ChatRecords linked by * uuid/parentUuid but emitted in chronological order. Messages use a * Gemini-style `{role, parts: [...]}` envelope, and parts can be one of: * - `{text, thought?}` — model/user text (thought=true ...
eaa0b036cd9e16b24b9594c14d85383b0a749f3e870b22a7ba14a61fc1989129
TypeScript
3,980
118
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
c4c12397922ef7b0f9a5c902819c8d663be57c27b121ef646c778c6daedae3aa
TypeScript
3,982
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...