sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 17k | content stringlengths 1 200k |
|---|---|---|---|---|
5e1049ea147fa4fa479687e12bcbd5abe7b2893f8749515e7fb665fe9d291f3b | TypeScript | 18,629 | 553 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
28cada6b27342ca27ad80f1a88b413df833aedeb2d5839745ffee7c0d104fbf7 | TypeScript | 18,712 | 436 | import {
matchesAnnotationsListFilter,
filterAnnotationsList,
isFilterActive,
hasActiveStatusFilters,
normalizeAnnotationsListFilter,
stripReviewStatusFilters,
DEFAULT_ANNOTATIONS_LIST_FILTER,
DEFAULT_ANNOTATIONS_LIST_STATUS_FILTERS,
} from "../annotations-list-filter";
import type { AnnotationsListFilt... |
0a532dde312aee4002fddb36e476620c33b953a133080293fe86c6716eef8dfd | TypeScript | 18,977 | 812 | /**
* @file Atom Proxy
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3 } from 'three'
import { NumberArray } from '../types'
import {
Elements,
SecStrucHelix, SecStrucSheet, SecStrucTurn,
ProteinType, RnaType, DnaType, WaterType, IonType, SaccharideType,
CgProteinBack... |
98d3ed231a3455c161b88472222ca1c51ae94060427a4924ae321fc81b424dea | TypeScript | 19,085 | 666 | /**
* @file Spline
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3 } from 'three'
import { ColormakerRegistry } from '../globals'
import { AtomPicker } from '../utils/picker'
import RadiusFactory, { RadiusParams } from '../utils/radius-factory'
import { copyArray } from '../m... |
0590c029c64d7b340b13309b77ae0bed8c8056f05723fe3c5bfff96a15151bd9 | TypeScript | 19,120 | 591 | /**
* Integration tests for createTracedQuery against a real MLflow tracking server.
*
* Mirrors core/tests/core/api.test.ts: the global-server-setup spawns a
* local MLflow server, we create a real experiment, drive the wrapper with
* scripted SDKMessage sequences, flush, then fetch the trace via the client
* AP... |
40e091ff102df5fa5157d2cdca58b95b58ba5d512fe220b242ad6c33cbc2c6c4 | TypeScript | 19,140 | 604 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
07dc36a4c831ac5679d0e0c3d4fa861d96a96ae8f4ea5dfcd794e6568d6d77e6 | TypeScript | 19,226 | 456 | module cola.geom {
export class Point {
x: number;
y: number;
}
export class LineSegment {
constructor(public x1: number, public y1: number, public x2: number, public y2: number) { }
}
export class PolyPoint extends Point {
polyIndex: number;
}
/** tests if... |
e6887474739c46f86fb1421dbcf525224248a38361ff6194c8b061e0a52a957e | TypeScript | 19,260 | 727 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
8bc76114304f00cb0ff71336dab77c38f90a3bb7e9d5de0f000f062ff9dcaba1 | TypeScript | 19,411 | 588 | // Track mock spans
let spanCounter = 0;
const mockSpans: Record<string, any> = {};
const mockTraceInfo: {
traceMetadata: Record<string, string>;
} = {
traceMetadata: {},
};
jest.mock('@mlflow/core', () => {
return {
init: jest.fn(),
startSpan: jest.fn((options: any) => {
const id = `span-${++spanC... |
ff4a955c4e8ff24073dc33fb40b56e0568a84681297504b70e0094ed33c75d94 | TypeScript | 19,453 | 627 | /**
* Unit tests for Waveform (lib/AudioUltra/Waveform.ts)
*/
import { Waveform } from "../Waveform";
import * as mediaLoaderModule from "../Media/MediaLoader";
import * as tooltipModule from "../Tooltip/Tooltip";
import * as visualizerModule from "../Visual/Visualizer";
import * as cursorModule from "../Cursor/Curso... |
43832effc7e4162012f56f8a5b77540a9d77c5ecf3cbb02cb4a6f83fdc778593 | TypeScript | 19,616 | 694 | /**
* @file Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Color, Vector3, Matrix4 } from 'three'
import { Debug, Log, ColormakerRegistry, ExtensionFragDepth } from '../globals'
import { defaults } from '../utils'
import Queue from '../utils/queue'
import Counter from... |
b6b83018592545fcc4e93d8448d2a9df3158b1904299b15d5d73293ba0055f1b | TypeScript | 19,678 | 649 | /**
* @file Text Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
// @ts-ignore: unused import Vector3, Matrix4 required for declaration only
import { Color, CanvasTexture, Vector3, Matrix4 } from 'three'
import '../shader/SDFFont.vert'
import '../shader/SDFFont.frag'
import { BufferRe... |
0efde6ea8b6fdfd4d67b4f77d86445103991845a73b4f793dafc25e1ddc1440c | TypeScript | 19,845 | 751 | /**
* @file Residue Type
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author Fred Ludlow
* @private
*/
import { defaults } from '../utils'
import PrincipalAxes from '../math/principal-axes'
import { Matrix } from '../math/matrix-utils'
import { calculateResidueBonds, ResidueBonds } from '../structure... |
66f6086bd41a265f9bcdb4a97221525b8d9ac001a15f1adcabb330d058c60b34 | TypeScript | 19,909 | 547 | export type Day = number | null;
export enum Side {
start = "start",
end = "end",
}
export enum Field {
date = "date",
time = "time",
}
export enum Meridian {
am = "AM",
pm = "PM",
}
export type DateByNumbers = {
day: number;
month: number;
year: number;
};
export interface DateTimeByNumbers exten... |
0cab66caada4b28acf41c7a87bf7b89a7c99de3ef481a224650421f4fda4e923 | TypeScript | 19,934 | 576 | /**
* @file Dihedral Histogram Representation
* @author Rudolfs Petrovs <rudolfs.petrovs@astx.com>
* @private
*/
import { Color } from 'three'
import { calcArcPoint, parseNestedAtoms } from './measurement-representation'
import StructureRepresentation, { StructureRepresentationParameters } from './structure-repres... |
7afdc9a0a26de3e3af3986cb3068b17a5c9c5713db21baf007e899f786698f9c | TypeScript | 20,041 | 631 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
831f5f929392065cad4dba4032a98f4a61de81694ce51e97cb6cd528e0486af2 | TypeScript | 20,155 | 536 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/events/copilot.proto (package v1.public.events.copilot, syntax proto3)
/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc } from "@b... |
5931eb52b3519d29a87ed9e14872d8f01ea243ace5e8f833ba7d3a048ffb3941 | TypeScript | 20,221 | 686 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
bd67f9b73c69a7fd25e368648a92972dc4d223cc6621042a2438ed27c34d02c9 | TypeScript | 20,228 | 554 | /**
* Cross-type search.
*
* Ported from `handlers/search.rs`, the largest surface in the API and the one with
* the most behavior that is not expressible as "select some columns". Three parts:
*
* 1. **A base union** over every searchable artifact, each branch projecting the
* same fifteen columns so the res... |
bf039ec251ed70507a76c8cf4dfd0a6034da6103dcd9f843522e5fc44e630241 | TypeScript | 20,288 | 348 | /**
* @file Symmetry Constants
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
export const SymOpCode: { [k: string]: string } = {
' ': 'X',
'!': 'Y',
'#': 'Z',
'$': '-X',
'%': '-Y',
'&': '-Z',
"'": 'Y+1/2',
'(': '1/2+X',
')': '1/2+Y',
'*': '1/2-X',
'+': '1/2+Z',
',': '... |
46ec9b748cef957c1fead02c86c7a2c8a32b6d90bb493594cc1ed53c5b940f9d | TypeScript | 20,420 | 609 | /**
* `MetadataDataSource` over the site's own parquet, no server involved.
*
* Implements the same interface `createRestDataSource` does, so components and
* hooks are untouched — `main.tsx` picks one and everything below the seam follows.
* Rows are projected with the handlers' snake_case aliases and fed to the ... |
530e4c99f8e8c8733cca1995a7cc925975266049da3355a9996e79c9e5d497dc | TypeScript | 20,464 | 643 | import { existsSync } from 'node:fs';
import { resolve, dirname, basename } from 'node:path';
import {
startSpan,
flushTraces,
InMemoryTraceManager,
SpanType,
SpanAttributeKey,
TraceMetadataKey,
type LiveSpan,
} from '@mlflow/core';
import type { SubagentGroup, TokenUsage, ToolResultInfo, TranscriptEntr... |
196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405 | TypeScript | 20,528 | 445 | /*! *****************************************************************************
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.... |
37e07d3a9c3b4a059aade3bc25ea8875bf2733f29f62a00e32927dae7c92563b | TypeScript | 20,679 | 657 | import { trace as otelTrace, context, Span as ApiSpan, INVALID_TRACEID } from '@opentelemetry/api';
import { Span as OTelSpan } from '@opentelemetry/sdk-trace-node';
import { DEFAULT_SPAN_NAME, SpanLogLevel, SpanType, TraceMetadataKey } from './constants';
import { createMlflowSpan, LiveSpan, NoOpSpan } from './entitie... |
b5086964934ee5ab037b9beab367b3953aa6bd29052f38f2780d4ce0c75c991d | TypeScript | 20,817 | 516 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
cb1226b6d75b675324ada31ff807ab30036aefbad37168079e38b38d15389505 | TypeScript | 20,826 | 554 | import { AudioView, LabelStudio } from "@humansignal/frontend-test/helpers/LSF";
import { FF_DEV_2669 } from "../../../../src/utils/feature-flags";
const config = `
<View>
<Audio name="audio" value="$url" hotkey="space" sync="text" />
<Header value="Sentiment"/>
<ParagraphLabels name="label" toName="text">
<... |
cf8d3f596ff1890ff5fbbf35682286a66b762042f12fbd9ab2a4ec3b48069959 | TypeScript | 20,914 | 645 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
b0b2a05b458967f3223538ce05428be7130fbb712613909749a4b705d9c37ece | TypeScript | 20,959 | 630 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
d3236e4f5929dd11acf47f0a9d1f0d153638fcac9cd6d712d42fb73d76274a29 | TypeScript | 20,997 | 758 | import { describe, expect, test } from 'vitest';
import {
fromCapabilities,
fromColumnLineageResponse,
fromDistribution,
fromExposureSummary,
fromFileList,
fromGroupSummary,
fromLineageResponse,
fromMacroSummary,
fromMetricSummary,
fromModelDetail,
fromModelSummary,
fromNodeCounts,
fromProjec... |
1b98923c21209764177f5dda7d1e36035445bee6a6c94951c64ea0850e4bb26f | TypeScript | 21,076 | 552 | ///<reference path="vpsc.ts"/>
///<reference path="rbtree.d.ts"/>
module cola.vpsc {
export interface Leaf {
bounds: Rectangle;
variable: Variable;
}
export interface Group {
bounds: Rectangle;
padding: number;
leaves: Leaf[];
groups: Group[];
minVar:... |
ae93b019e3dd4978df0db328ee3633ffdb33f108e4e14e2c05aea88e4a5ee00f | TypeScript | 21,104 | 732 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
19cdefe87d8367d658bbc3d4cb57d80b357ed3d6b6bf2b4bc423850c9dacefef | TypeScript | 21,342 | 658 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
2f619ef40f110ebf942091690498a40ba2032465319b9c81c47e959e8973b0b3 | TypeScript | 21,570 | 635 | /**
* The trace-uploader daemon — long-lived background process that drains
* the WAL on behalf of all hooks running for this OS user.
*/
import { appendFileSync } from 'node:fs';
import { mkdir, readdir, unlink } from 'node:fs/promises';
import { createServer, Server, Socket } from 'node:net';
import { join } from... |
7202215af8f68301f189c359326a6809612b92e095bd03855d3b3838f5e0a697 | TypeScript | 21,571 | 752 | import { Injectable, OnDestroy } from "@angular/core"
import { select, Store } from "@ngrx/store"
import { forkJoin, from, Subscription } from "rxjs"
import { distinctUntilChanged, filter, take } from "rxjs/operators"
import {
linearTransform,
TVALID_LINEAR_XFORM_DST,
TVALID_LINEAR_XFORM_SRC,
} from "src/atlasCom... |
73da80fa9d05140730db2c5f48a4c0e56fd12d5fc5ec7bd5f8a406ba0b5e6217 | TypeScript | 21,591 | 704 | import { Injectable } from "@angular/core";
import { HttpClient } from '@angular/common/http';
import { map, shareReplay, switchMap, tap } from "rxjs/operators";
import { CachedFunction, getExportNehuba, noop } from "src/util/fn";
import { MatSnackBar } from 'src/sharedModules/angularMaterial.exports'
import { AtlasWor... |
a00e824bf0ea31d2699d7847670b1f0c16b9476fbe4ccb70b449b63381e6162a | TypeScript | 21,847 | 315 | export * from "./icons";
export { ReactComponent as IconAIAssistant } from "./ai-assistant.svg";
export { ReactComponent as IconAllProjects } from "./all-projects.svg";
export { ReactComponent as IconAnalytics } from "./analytics.svg";
export { ReactComponent as IconAnnotation } from "./annotation.svg";
export { React... |
f41bafa5b8720abc86807bfab2eda60b84322b14423daa947f9541b5c292a2ab | TypeScript | 21,867 | 1,030 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
f82434b10ac6d2a347072b07b4bc514bbd942bc9bf85b55bedafc0e7bfdb1025 | TypeScript | 21,976 | 898 | import SurfaceParser from "./surface-parser"
import { ParserRegistry } from "../globals"
import { BufferGeometry, Color, Float32BufferAttribute } from "three"
/**
* Port of PLYLoader from the MIT-licensed three.js project:
* https://github.com/mrdoob/three.js/blob/97b5d428d598228cae9b206d9a321f18d53a3e86/examples/js... |
7eb8b3e72bcfadd528643c2e6bff37b08f676216b3f5899f654db1e145e1d8d6 | TypeScript | 22,059 | 739 | /* 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... |
30c0cfe5164db0d1f5f1a17a667eb32979f1e47597f5721aabffbfcc6e3c17ea | TypeScript | 22,106 | 770 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
4997d764409e94584db45e714c78828da839d26489940b172c3d1ed68a94bbf9 | TypeScript | 22,141 | 668 | import type { FC, MutableRefObject, ReactNode } from "react";
import { clamp } from "../../../utils/utilities";
import {
DEFAULT_PANEL_HEIGHT,
DEFAULT_PANEL_MAX_HEIGHT,
DEFAULT_PANEL_MAX_WIDTH,
DEFAULT_PANEL_MIN_HEIGHT,
DEFAULT_PANEL_WIDTH,
PANEL_HEADER_HEIGHT,
} from "../constants";
import { Comments, Cust... |
64c4c450cbd3a8491b5d8a6f6fc0aec9e739af7cf26bdc1a8cad8de4fd95d415 | TypeScript | 22,195 | 638 | /**
* Per-resource-type list queries, and the facets that drive their filters.
*
* Mirrors the REST source's `REGISTRY`: one table keyed by resource type, holding
* the SQL that produces that type's summary rows plus the mapper that turns them
* into domain objects. `fetchAssetList` and `fetchFacets` are generic l... |
963ac4075bbdacc509b5a30b9057284732cbb91a0459e59bb2d13d4add6340f5 | TypeScript | 22,424 | 595 | import { Inject, Injectable } from "@angular/core";
import { UrlSegment, UrlTree } from "@angular/router";
import { map } from "rxjs/operators";
import { IDS, SAPI } from "src/atlasComponents/sapi";
import { translateV3Entities } from "src/atlasComponents/sapi/translateV3";
import { SxplrRegion } from "src/atlasCompone... |
639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a | TypeScript | 22,438 | 474 | /*! *****************************************************************************
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.... |
842a5841aabfa96c210f1676f272548eed24922174c42301ef58ff4e2864c11a | TypeScript | 22,573 | 668 | import { trace } from '@opentelemetry/api';
import { BasicTracerProvider } from '@opentelemetry/sdk-trace-node';
import {
createMlflowSpan,
Span,
NoOpSpan,
type LiveSpan,
type SerializedSpan,
} from '../../../src/core/entities/span';
import { SpanEvent } from '../../../src/core/entities/span_event';
import { ... |
e71f95f038fab6054cd978eca85b8cf5c09d761cb96966e0d664ede42e281850 | TypeScript | 22,634 | 762 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
d6c6331ce67c41b2ad5bfb0c8c022403980b479a377a44da8f16b61120418f66 | TypeScript | 22,768 | 340 | /*! *****************************************************************************
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.... |
bf0052c09194a43f64361cc1d0b72d9cc61fba3bb54036e2cbe347db7129217f | TypeScript | 22,818 | 781 | import {
HrTime,
INVALID_SPANID,
INVALID_TRACEID,
SpanStatusCode as OTelSpanStatusCode,
TraceFlags,
} from '@opentelemetry/api';
import type { Span as OTelSpan } from '@opentelemetry/sdk-trace-base';
import {
SpanAttributeKey,
SpanLogLevel,
SpanType,
toSpanLogLevel,
NO_OP_SPAN_TRACE_ID,
TRACE_ID_P... |
b0cf2a746f501a509adb51bdce3978dd3038880044d18c83747b66b0321922ff | TypeScript | 22,863 | 609 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671 | TypeScript | 22,866 | 597 | /*! *****************************************************************************
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.... |
33c850402c77c3091a7922ce7becaa655cf08149a6dc9b4ed5936ff16a8773a2 | TypeScript | 23,241 | 564 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/events/beacon.proto (package v1.public.events.beacon, syntax proto3)
/* eslint-disable */
// Vortex events for the Beacon copilot surface (dbt-ui authoring). Today this
// only contains split-pane events; f... |
ddb55a75fa1aece9a6b7b4e8088ed4c2a217c58e1fb69dbdb0390ed0fa4fd702 | TypeScript | 23,262 | 877 | /**
* @file Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import {
Color, Vector3, Matrix4,
FrontSide, BackSide, DoubleSide,
// VertexColors,
NoBlending,
BufferGeometry, BufferAttribute,
UniformsUtils, UniformsLib, Uniform,
Group, LineSegments, Points, Mesh, Object3D,
... |
77771a7ee750d8aa02dfd647c4bf58544a5df763dcc0b3cf87783a95ec185efc | TypeScript | 23,382 | 816 | /**
* @file EDT Surface
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { VolumeSurface } from './volume'
import { iGrid, makeGrid } from '../geometry/grid'
import { computeBoundingBox } from '../math/vector-utils'
import { getRadiusDict, getSurfaceGrid } from './surface-utils'
import {... |
cba60fa73596f658b00e13d6037ac51ffffff7b2adb8bcd57a989886bf468605 | TypeScript | 23,385 | 736 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
81d03508259fb587e329ab8183b2990875042a6e6426bf50eb3e9967664f5dfe | TypeScript | 23,535 | 636 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
217333dec408b3cf76673b93bb2c4d41c90b1b11379c2b6e4f34e3509403313b | TypeScript | 23,536 | 812 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
6f32c7f63cb78b7dac78c26a40a8e84c912a7a99357943035407e3f4ed8a715e | TypeScript | 23,631 | 669 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
2de3015a1203bbe99b100923c02a2cf17a6c76c630a12697dec3019ac4ee30ea | TypeScript | 23,785 | 638 | import fs from 'fs';
import os from 'os';
import path from 'path';
import {
createAuthProvider,
createKubernetesAuth,
_setKubeconfigLoader,
_setKubeconfigCacheKeyFn,
} from '../../src/auth';
const ENV_KEYS = [
'MLFLOW_TRACKING_TOKEN',
'MLFLOW_TRACKING_USERNAME',
'MLFLOW_TRACKING_PASSWORD',
'MLFLOW_WORK... |
0f5de0ea17caf755bec5cc66498a4b3bfb639d8d6b53bbd24a4bb5f30a430201 | TypeScript | 23,825 | 655 | import { Component, Inject, Injectable, InjectionToken, Injector } from "@angular/core";
import { Actions, createEffect, ofType } from "@ngrx/effects";
import { combineLatest, concat, forkJoin, from, NEVER, Observable, of, throwError, TimeoutError } from "rxjs";
import { catchError, debounceTime, distinctUntilChanged, ... |
553961a3cacabe74a923ce97293f952ce303e6c7360d3b7becd6ecbe99c9a415 | TypeScript | 24,075 | 683 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
627e5f4842f97e0c4b7887533efd19a7f6eb286937cd92548e820605b42b055e | TypeScript | 24,472 | 824 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
8c93fa425d125d7c8291027edf02898b854765c9b466bc1b7b0335801b804f4d | TypeScript | 24,554 | 621 | import { mkdtemp, rm } from 'fs/promises';
import { tmpdir } from 'os';
import { join } from 'path';
import { ROOT_CONTEXT, SpanKind } from '@opentelemetry/api';
import { ExportResult, ExportResultCode } from '@opentelemetry/core';
import {
BasicTracerProvider,
ReadableSpan as OTelReadableSpan,
Span as OTelSpan,
... |
deca11f2876694787666f4bece664c043df9898bf067616f3e7dc88c2a639168 | TypeScript | 24,653 | 640 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
71bd8b88d2e2011a96ee25b38b78238787702b50323ead212001bbb508f51faa | TypeScript | 24,669 | 778 | import type { BezierPoint, GhostPoint } from "./types";
import { PointType } from "./types";
import { HIT_RADIUS } from "./constants";
import { snapToPixel, getDistance } from "./eventHandlers/utils";
import { generatePointId, resolveDrawingOriginPointId } from "./utils";
export interface PointCreationState {
isCrea... |
1c8ee27b2cfb8925c75e2b9b427940fefe71794bf7169efd4b36985c46290829 | TypeScript | 24,671 | 806 | /**
* Fixtures for Storybook.
*
* `createFakeDataSource.ts` next door already builds *minimal valid* objects — the
* right default for a test, which wants nothing on screen it did not put there. A
* story wants the opposite: enough populated fields that a component renders the way a
* real project makes it render... |
ff085406622f62d7f2f3cf8236cf6c97abc95fd00e057e9174c7f5708114dd5c | TypeScript | 24,812 | 647 | import type { Mock } from "bun:test";
/**
* Unit tests for MediaLoader (lib/AudioUltra/Media/MediaLoader.ts)
*/
import * as waveformAudioModule from "../WaveformAudio";
import { MediaLoader } from "../MediaLoader";
const mockInvoke = mock();
const mockSetError = mock();
const mockSetLoadingProgress = mock();
const m... |
10fe9e658745d60799a59680ca1439522c0684cb04974950d308a18ecb0aff62 | TypeScript | 24,986 | 659 | import { resolve } from 'node:path';
import { mkdirSync, mkdtempSync, readFileSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
import type { TranscriptEntry } from '../src/types';
// Keep unit tests offline and deterministic: disable the remote model-catalog
// lookup so processTranscript price... |
a247f810e6e98985f25cd6521f5d6164c2d5f7d3db5ab9a330f1ac90d4fc779a | TypeScript | 24,987 | 812 | import { Injectable, OnDestroy, Type } from "@angular/core";
import { ARIA_LABELS } from 'common/constants'
import { Inject, Optional } from "@angular/core";
import { select, Store } from "@ngrx/store";
import { BehaviorSubject, combineLatest, fromEvent, merge, Observable, of, Subject, Subscription } from "rxjs";
impor... |
d34362d39ff903a3ae9ea0b7c7eee507b2a2c7e19734ef63ab635da5f020a973 | TypeScript | 25,180 | 893 | import { flatten, isDefined } from "../../../utils/utilities";
// line feed
const LF = "\n";
// carriage return
const CF = "\r";
type DDExtraText = string;
/**
* Array of all characters and dummy placeholders
*
* Content is a way to store information about the displayed text
* and be able to restore global offse... |
e952354f67d43bb0023c6f86a85a26162f1caf9afd5b7070183aac18140da1d7 | TypeScript | 25,314 | 703 | // @generated by protoc-gen-es v2.2.5 with parameter "target=ts"
// @generated from file dbtlabs/proto/public/v1/fields/common_types.proto (package v1.public.fields.common_types, syntax proto3)
/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc ... |
adb9e127a629139b9a2afa15d968219cc19062a0d29252917c4ade75e20d75f9 | TypeScript | 25,325 | 735 | import TriggerOptions = Cypress.TriggerOptions;
import ObjectLike = Cypress.ObjectLike;
import ClickOptions = Cypress.ClickOptions;
import { withMedia } from "@humansignal/frontend-test/helpers/utils/media/MediaMixin";
import { LabelStudio } from "@humansignal/frontend-test/helpers/LSF/LabelStudio";
import type { ViewW... |
b431adcc7747fafcc64afa0bbb5ba1c592165763c89a4fdbdf28d9fd65bc52fb | TypeScript | 25,343 | 724 | import type { KonvaEventObject } from "konva/lib/Node";
import type { EventHandlerProps } from "./types";
import { PointType } from "../types";
import { HIT_RADIUS } from "../constants";
import { getDistance, isPointInCanvasBounds, snapToPixel, stageToImageCoordinates } from "./utils";
export interface ShiftInsertGate... |
45eb46edbcc9d18ffa0792b9eaac7b9820a7be19490ccf9914a54247489b04dd | TypeScript | 25,351 | 375 | /**
* A `LabelStudio` configuration that includes all types of labels but does not contain nested elements
*/
export const allLabelsEmptyConfig = `<View>
<Header value="Configuration Example with Various Label Types" />
<Text name="text" value="$text"/>
<Labels name="label_general" toName="text"/>
<Image na... |
51ac3d16acf9758b3c7e561e8bdf9e4485298de8d2885a0ebb6733ff3a979b75 | TypeScript | 25,518 | 793 | /**
* @file Kin Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Debug, Log, ParserRegistry } from '../globals'
import { Vector3 } from 'three'
import Parser from './parser'
function hsvToRgb (h: number, s: number, v: number) {
h /= 360
s /= 100
v /= 100
let r, g, b
c... |
5f4ca983c419d98d40bc17904cf6bf7dc42cbdbd8532ef7954655d493824fdb8 | TypeScript | 25,717 | 744 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
cf1f43acf32cbe391e23646c84ce62168ab951798abe584338773a291fc79c77 | TypeScript | 25,719 | 731 | import { types } from "mobx-state-tree";
import { isFF, FF_DEV_2669, FF_LSDV_E_278 } from "../../../../utils/feature-flags";
import type { Mock } from "bun:test";
const createMockStoreType = (paragraphsModel: any, typesApi = types) => {
const makeAnnotationStore = () => {
const store: Record<string, unknown> = {... |
0858d73b35fdafacf4fa10c12f123c078865b8f6a9921f1c18be61adbd146dc7 | TypeScript | 25,777 | 920 |
import StringStreamer from '../../src/streamer/string-streamer'
import PdbParser from '../../src/parser/pdb-parser'
import CifParser from '../../src/parser/cif-parser'
import Structure from '../../src/structure/structure'
import StructureView from '../../src/structure/structure-view'
import Selection from '../../src/s... |
de3f8d6860429a3cea4a834b1a6b44b36cc881cf91e9e2e808bd63e0d9982388 | TypeScript | 25,810 | 740 | /**
* @file Pdb Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4 } from 'three'
import { Debug, Log, ParserRegistry } from '../globals'
import { defaults } from '../utils'
import StructureParser from './structure-parser'
import Entity, { EntityTypeString } from '../stru... |
5b00a9cfadfaa901117f8321683048c4edf92241ed8249d2abe7332dac0f697f | TypeScript | 26,440 | 957 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
4141631ee96aec45e64ed49e6c104445ef14a57b5153f9cbecef06d06880412b | TypeScript | 26,528 | 753 | import { BaseAudioDecoder } from "./BaseAudioDecoder";
import { info } from "../Common/Utils";
import {
type AudioDecoderWorker,
type WasmAudioStreamConfig,
getAudioDecoderWorker,
} from "@humansignal/audio-file-decoder";
import decodeAudioWasmUrl from "@humansignal/audio-file-decoder/decode-audio.wasm?url";
/**... |
6629405e3efaec9a1b1dc4b00985194524c02a4dabfb14f44181338eae47dc6f | TypeScript | 27,052 | 849 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
730c5d320180b3ab5c5dce0af8c97a84af55fb79c583d30c2f6e321afb3f2584 | TypeScript | 27,084 | 711 | /**
* Unit tests for Player (lib/AudioUltra/Controls/Player.ts).
* Player is abstract; we test it via Html5Player with mocks.
*/
import { ff } from "@humansignal/core";
import type { Mock } from "bun:test";
const { Html5Player } = require("../Html5Player") as any;
function createMockWaveform(overrides: Record<strin... |
eacb98838ab5d0c977b988e0686bb1f4237fdd805f8cc5c2c47c813bbb60e03c | TypeScript | 27,220 | 771 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
7261ca3019583cc11b0fb9fa8b724e41c9757fc7eadf282550f12a46070e99d1 | TypeScript | 27,728 | 700 | /// <reference path="../extern/three.d.ts"/>
/*
Copyright (c) 2013, Faculty of Information Technology, Monash University.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code ... |
a937c0815231f535b37e1525426d58e5e970c2b46801d2065152e51e59d95434 | TypeScript | 27,770 | 887 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
2978bdd6370df11822aee3f1f81a9f1e5193e92d51c0e1f2cf477540069637e9 | TypeScript | 27,980 | 880 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
bf43b435750a1fbe82b10dffd624a12eadefbfd76b8c505a452eb73470fefd97 | TypeScript | 28,305 | 824 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
ac615e9ad5e56aa7ff312885a56c92aeefc5424f92e8fa9ba31109f215e97f77 | TypeScript | 28,324 | 950 | import { Component, Output, EventEmitter, ElementRef, OnDestroy, AfterViewInit, Optional, ChangeDetectionStrategy } from "@angular/core";
import { EnumViewerEvt, IViewer, TViewerEvent } from "src/viewerModule/viewer.interface";
import { BehaviorSubject, combineLatest, concat, forkJoin, from, merge, NEVER, Observable, o... |
c3438578d98c299426a93d59e0120678fe0754bd4bab8580f92d8dd03054e6f9 | TypeScript | 28,474 | 896 | /**
* MLflow Tracing service for OpenClaw.
*
* Creates an OpenClawPluginService that subscribes to agent lifecycle events
* via api.on() and creates MLflow traces in real-time. Maps OpenClaw events
* to a span hierarchy: root AGENT → child LLM / TOOL / sub-AGENT spans.
*/
import type { OpenClawPluginApi, OpenCl... |
3f51fe78b3e16aae922d7a882f612d406430e752df18a3fb4067b3ec9464e44e | TypeScript | 28,530 | 828 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
5595aef3a43a4438bf096e90d14138156c576bbbd499380fc14ad7ce6fb68f08 | TypeScript | 28,583 | 851 | import { createRequire } from "node:module";
import path from "node:path";
import { pathToFileURL } from "node:url";
import React from "react";
import * as matchers from "@testing-library/jest-dom/matchers";
import { afterEach, expect, mock, spyOn } from "bun:test";
import { JSDOM } from "jsdom";
import fetchMock from ... |
a9b1403a8589eefffdf3364538d9a4bc267587baf2d8a733397a1e9418bc2182 | TypeScript | 28,896 | 854 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
a62a0545aa2bdcd42071c4f78c4e81d5b8bc8a3dd27e7fa86bd2e7e55fd33d0a | TypeScript | 28,900 | 881 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
2373dbedaa2bad3f77706bea6297faa72e508dc1ee8e68127feeeaf2fc84cd82 | TypeScript | 29,268 | 858 | /**
* Unit tests for Visualizer (lib/AudioUltra/Visual/Visualizer.ts) — parity-86.
*/
const { Visualizer } = require("../Visualizer") as any;
import type { Waveform } from "../../Waveform";
import type { WaveformAudio } from "../../Media/WaveformAudio";
import type { Mock } from "bun:test";
import * as uiModule from ... |
90f485dd13280107c53baf23a912e1051c7901f74be0e13fc4a723f4f1c47273 | TypeScript | 29,328 | 957 | /**
* @file Stage
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3, Box3 } from 'three'
import { Signal } from 'signals'
import {
Debug, Log, Mobile, ComponentRegistry, ParserRegistry
} from '../globals'
import { defaults, createParams, updateParams } from '../utils'
import ... |
151d759291af17f7e40449105946530a4549f05bf7848a79911a916e96aced6b | TypeScript | 29,600 | 2,030 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43 | TypeScript | 29,802 | 571 | /*! *****************************************************************************
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.... |
d9a353782973598b51ca2851aa80b2d97a81be4fb9a55130b2d95c90469fcc30 | TypeScript | 30,703 | 645 | // language=HTML
export const configAllTags = `
<View>
<Style>
.in-config-block {
border: 1px solid #ccc;
border-radius: 4px;
padding: 24px;
}
.in-config-block h4 {
font-size: 28px;
}
.in-config-block h4:nth-child(n+2) {
font-size: 20px;
... |
c71707e8b66788a369140f75fb0e0649b32b6f7b3d16a815a8923317c1c722f5 | TypeScript | 31,038 | 790 | /*
All classes responsible for the application state, i.e. the "source of truth" go here.
*/
// Holds data common to all datasets, and sends notifications when data changes
class CommonData {
public selectedNode = -1;
public nodeIDUnderPointer: number[] = [-1, -1, -1, -1, -1]; // for yoked display; the l... |
614ecb9279f6f996c87dded9772d9ba5fa1ce271aedc47c68f442e4eff9616a8 | TypeScript | 31,150 | 1,124 | /**
* @file Structure
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3, Box3 } from 'three'
import { Signal } from 'signals'
import { CifBlock } from 'molstar/lib/mol-io/reader/cif'
import { Debug, Log, ColormakerRegistry } from '../globals'
import { defaults } from '../utils'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.