sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
464928f4afa2dfd90dab319afc0bc36c94d7e7a79c056bcba080bc60eb959169 | TypeScript | 1,314 | 50 | import * as kubernetes from 'argo-ui/src/models/kubernetes';
import {Condition} from './workflows';
export interface Sensor {
metadata: kubernetes.ObjectMeta;
spec: {
dependencies: {
name: string;
eventSourceName: string;
eventName: string;
}[];
trig... |
b1122900f270e2b6afc1e1080d221e7d771ebbb5417de3bb401e665eaa85dc82 | TypeScript | 1,315 | 43 | /**
* @file Trackball Controls
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Stage from '../stage/stage';
import MouseObserver from '../stage/mouse-observer';
import Viewer from '../viewer/viewer';
import ViewerControls from './viewer-controls';
import AtomProxy from '../proxy/atom-pro... |
47c9e34aab7c3a550748397bc407cd2c163b4a9e5f13bca63e92687256318a43 | TypeScript | 1,316 | 37 | /**
* 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... |
465f970b627acbbfe2a2e18f4603bd97ec3fccb120f1bd1163726a4c89fd2bd8 | TypeScript | 1,317 | 54 | import {Icon} from '../icon';
export type Node = string;
type NodeGroup = string;
export interface NodeLabel {
label: string; // the label of the node - placed below the icon
genre: string; // the class or type of the node, displayed below the icon
icon?: Icon;
classNames?: string;
tags?: Set<stri... |
df08d62584988fcf511e4a59efd2e14889290f00732ffb49355d2cf263ccfa4b | TypeScript | 1,317 | 47 | import { Inject, Injectable, Optional } from "@angular/core";
import { concat, EMPTY, NEVER, Observable, of } from "rxjs";
import { delay, distinctUntilChanged, exhaustMap, shareReplay, switchMap, take } from "rxjs/operators";
import { TNehubaViewerUnit } from "../constants";
import { NEHUBA_INSTANCE_INJTKN } from "../... |
a1303882702c697e429e40f7eedd6d9557769e23af2e9a4f345ae548bd03d34e | TypeScript | 1,318 | 40 | /**
* 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... |
f9f3db8eee82b4c1e4c3274290fcbb78b812862cb83eeed4d58a23bcbc9fdd4f | TypeScript | 1,318 | 46 | import { AssetBase } from './asset';
export type LineageEdge = {
upstreamUniqueId: string;
downstreamUniqueId: string;
};
export type LineageGraph = {
/** Lightweight graph nodes — `AssetBase` (not the per-type `AssetSummary`
* union), since lineage carries only common fields with a wide resourceType. */
... |
b6ce23cac9db58df8f6d64a8081bf76abed6f0fb7cd9c0c0e3cdfd0077342c1e | TypeScript | 1,319 | 62 | import { InjectionToken } from "@angular/core";
interface ILoadTemplateByIdPayload {
atlas: {
id: string
}
template: {
id: string
}
parcellation: {
id: string
}
}
interface IResourceType {
swc: string
}
export type TVec4 = number[]
export type TVec3 = number[]
export type TMat3 = TVec3[]
ex... |
a5ae5db3aa58cb720bbefa027e203b1c28061ba70a6513d3da00454297be233b | TypeScript | 1,320 | 50 | import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild, ChangeDetectorRef, OnChanges, SecurityContext } from '@angular/core'
import { DomSanitizer } from '@angular/platform-browser'
import * as showdown from 'showdown'
@Component({
selector : 'markdown-dom',
templateUrl : `./markdown.template.ht... |
b0e9a883f2fdf01a191099831caac6c9f443a666570d658204532d5151d7ee6e | TypeScript | 1,320 | 37 | /**
* 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... |
270dd9dc47f4d1a7bcca7e1070993dc94fb17fc3ea7f71bb84235092e1bf10fc | TypeScript | 1,323 | 36 | /**
* 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... |
752b4a196b32efdd7c800c6dd594cde7aba107164d5383f677f862376556050c | TypeScript | 1,323 | 39 | /**
* 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... |
782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538 | TypeScript | 1,326 | 22 | /*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.... |
27d2a949665c9d5f73ab0c3cc084087af5d3e099f5f88755439bc8eedba4a540 | TypeScript | 1,327 | 39 | /**
* 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... |
d6a79aed864b285fcdac5228fc1991e5badcbebb5df71c8df1748c96c6710c21 | TypeScript | 1,329 | 37 | /**
* 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... |
2235370b33617b5c39012358e7248fc88c180bc8c6d10570f2e1fe7e12ef5629 | TypeScript | 1,331 | 43 | import { Grouping } from '../typings/costInsights';
import { UsageDataPoint } from '../typings/usage';
import { COLUMN_LABELS } from './columnLabels';
import { downloadCsv } from './csv';
import { formatDateForCsv } from './dateUtils';
/**
* Downloads usage data as a CSV file.
* The CSV includes raw numeric values f... |
42d9a9b069b6c98ea3f17cd31bbb81d24806c6de48497856aeba0c2f2effdafb | TypeScript | 1,331 | 40 | /**
* 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... |
97ca95ad742fccd3df816f8fa509c991bef606b8747bfc518dcc242a7223b316 | TypeScript | 1,331 | 33 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad | TypeScript | 1,331 | 39 | /*! *****************************************************************************
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.... |
42c690f7ee9160322cee49595ff6049bd81e9384d3f04f79cc47456276bae8a5 | TypeScript | 1,332 | 38 | /**
* 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... |
865dc95c80cb31b27f005b1669774ffb9bd8d17992b6dd890f0ff574e5044529 | TypeScript | 1,332 | 37 | /**
* 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... |
537ae5493199e20660e3e2b46f7ad7c7f0b18ee51a0b2db6e4025ae7a109813a | TypeScript | 1,334 | 65 | import { createAction, props } from "@ngrx/store";
import { CustomLayer, nameSpace, UseViewer } from "./const"
export const setOctantRemoval = createAction(
`${nameSpace} setOctantRemoval`,
props<{
flag: boolean
}>()
)
export const setMeshTransparency = createAction(
`${nameSpace} setMeshTransparency`,
... |
03192d3f40c78d7534b3a97cb82ab18692eeaf97394723ca3bf41fe4349594d8 | TypeScript | 1,335 | 43 | /**
* 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... |
49db4899887a94fd6c2badac9bb8a415c291aad2a96724f19d431bf0014a9f32 | TypeScript | 1,335 | 33 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
97bf939487697c2ca113e427b16391d5d3010b928bfdf36e1fe42e3f1e3f45c8 | TypeScript | 1,336 | 27 | /** A test's raw last-run outcome, including `reused` (an execution detail,
* not a pass/fail outcome) -- distinct from {@link TestStatusValue}, which
* is the already-normalized display status with no `reused` case. Mirrors
* dbt-dag's `TestStatus`. */
export type TestStatus = 'pass' | 'error' | 'fail' | 'warn' ... |
bb80814c32bdae5ad0eea0fca0fc18fd2594a17a3fdac6e44e76be61d334175f | TypeScript | 1,336 | 51 |
import { uint8ToLines, binarySearchIndexOf } from '../src/utils'
function str2bin (str: string) {
var uint = new Uint8Array(str.length)
for (var i = 0, j = str.length; i < j; ++i) {
uint[ i ] = str.charCodeAt(i)
}
return uint
}
describe('utils', function () {
describe('uint8ToLines', function () {
... |
54daa46d9f67dd01f39cd48f97f6df4851d533351f231c8603f333ca0b0319bc | TypeScript | 1,338 | 42 | import { useCallback, useRef, useEffect } from "react";
import { SYNC_WINDOW } from "../mixins/Syncable";
export const useUpdateBuffering = (
mediaRef: React.RefObject<HTMLMediaElement> | React.MutableRefObject<HTMLMediaElement | undefined>,
onBufferingChange: (isBuffering: boolean) => void,
) => {
const timeout... |
7a47de8dce6d93dd55006edd4a4abb90fd70355df55cb272991b893be4020d2c | TypeScript | 1,338 | 35 | /* 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... |
2bb9c0698484fc58ce495b390967210aa83543bc6ae47dfb7f18e01ad8bf9c68 | TypeScript | 1,339 | 32 | /**
* 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... |
abcab18ce0d4eab3ad55519b7c21289e57c09e30d5a8f43afa812afe0b06c025 | TypeScript | 1,340 | 45 | const STORAGE_KEY_PREFIX = "ls:visited-projects";
const MAX_PROJECTS = 10;
function getStorageKey(userId: number): string {
return `${STORAGE_KEY_PREFIX}:${userId}`;
}
/**
* Get the list of recently visited project IDs from localStorage for a specific user.
* Returns an array of project IDs sorted by most recentl... |
ebd2c9defb760c8020fa35d0e9c76f0799f33359df72fce740eb441c57b50108 | TypeScript | 1,340 | 39 | /*
* 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 ... |
af9acafb4ca60064f4f39732a17d48a4ba606dcccff76c2c2573ae35779abda3 | TypeScript | 1,342 | 42 | /*
* 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 ... |
990f2ee6d1c1f740c1cc103405d5b397a1e42e3d91efda52937a764f3317d375 | TypeScript | 1,343 | 49 | import { Injectable } from "@angular/core";
import { createEffect } from "@ngrx/effects";
import { Store } from "@ngrx/store";
import { map, mapTo } from "rxjs/operators";
import { actionSetAuxMeshes, IAuxMesh } from "../store";
import { atlasSelection } from "src/state"
import { LayerCtrlEffects } from "../layerCtrl.s... |
ca252648d61ade49586259ac7568054a393fe57e881b78b414d6faf0adeb32d9 | TypeScript | 1,343 | 42 | /**
* 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... |
0420303bdfef5ed9a11066f8d358280408fe0bb83c252a8e406a3bcb907f046e | TypeScript | 1,344 | 37 | /**
* 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... |
591073d12c8f30d4046a4287fe745af042c6376c77ea6eaad34c6fbed8d7f29b | TypeScript | 1,344 | 47 | /**
* 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... |
6352847a0195e0674ffa547d60f6342a5b2c0e8f0d7b0385a3d9b19496fff14e | TypeScript | 1,344 | 40 | /**
* 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... |
76605f1446cbe473c3bd85ef3dc6aff3016f2042a24e0fb99d297c8d45f754c8 | TypeScript | 1,344 | 36 | /**
* 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... |
d0fb9ca6d67b70a2b10651de9f2b9dbd8d5db6e875fc1010c73f7ef6cf17c26f | TypeScript | 1,344 | 34 | /*
* 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 ... |
e6827e8792da5631d9f40f35435d864a361f0edcca2916ea59bf647267235d20 | TypeScript | 1,346 | 66 | /**
* @file Worker Pool
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Worker from './worker'
class WorkerPool {
maxCount: number
pool: Worker[] = []
count = 0
name: string
constructor (name: string, maxCount = 2) {
this.maxCount = Math.min(8, maxCount)
this.name = ... |
f67063a07580ad0f200d359166ead3099b1a08366731f81c28a47dd75f4e8d22 | TypeScript | 1,346 | 37 | /**
* 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... |
fb228c6aebca4060265b311eeef6050f61c8810ed1e09cbf1af130430d4c23d8 | TypeScript | 1,346 | 33 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
3fb51e98336c44802b57314d3e04bc8e5828eeea80d378d0da25959d6bd61aac | TypeScript | 1,347 | 39 | import { TRACE_ID_PREFIX, TRACE_ID_V4_PREFIX } from '../constants';
/**
* Construct a V3-schema MLflow trace ID from an OTel hex trace ID.
* Format: `tr-<hex_trace_id>`.
*/
export function generateTraceIdV3(otelHexTraceId: string): string {
return TRACE_ID_PREFIX + otelHexTraceId;
}
/**
* Construct a V4-schema ... |
e7f182bfabcb87f37fe659aef6612892abcc0882dcf7d10df0d907027ca68bff | TypeScript | 1,347 | 36 | import { computeVerticalRightTooltipPosition } from "../vertical-tooltip-position";
const viewport = { width: 1000, height: 800 };
describe("computeVerticalRightTooltipPosition", () => {
it("centers tooltip and arrow on the button when there is room", () => {
const button = { top: 200, right: 240, bottom: 252, ... |
f4f05c87f29259232c1c02e9a9b174bbf5a2c0551c9c1e0f44320e4de038c3eb | TypeScript | 1,347 | 37 | /**
* 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... |
21e366e5284f0a40b5bd0d1fde4150231b49245809df123a2ea7caf4a039bff5 | TypeScript | 1,348 | 34 | import * as models from '../models';
import {Pagination} from '../pagination';
import requests from './requests';
import {queryParams} from './utils';
export const WorkflowTemplateService = {
create(template: models.WorkflowTemplate, namespace: string) {
return requests
.post(`api/v1/workflow-t... |
4c59225d1ca5c9f9041c3fe1193c86c34563c144277658d45f7ecabeb2bc1be8 | TypeScript | 1,348 | 42 | import { CommonModule } from '@angular/common'
import { TestBed } from '@angular/core/testing'
import { ComponentsModule } from 'src/components'
import { AngularMaterialModule } from 'src/sharedModules'
import { QuickTourModule } from 'src/ui/quickTour'
import { UtilModule } from 'src/util/util.module'
import { HelpOne... |
e250a4a9d94157a44e74f46ef516db10b0625e82182548fa688ef5b7cc185f76 | TypeScript | 1,348 | 36 | import { useQuery, type UseQueryResult } from '@tanstack/react-query';
import { readSiteBootstrap } from '../lib/siteBootstrap';
import type { Identity } from '../types';
/** Consent denied. Any failure to resolve identity resolves to this — telemetry
* never fails open. */
const CONSENT_DENIED: Identity = { is_log... |
7be13fac04b627f57da08bc3f0a42e912aa536da842f32dde00a60c3a3f5ce88 | TypeScript | 1,349 | 36 | /**
* Constants for tests
*
* Prefer deterministic waits over fixed timeouts where possible:
* - Instead of cy.wait(TWO_FRAMES_TIMEOUT), wait for a DOM/canvas condition, e.g.:
* cy.get('.konva-transformer').should('exist') or
* ImageView.drawingArea.find('.konva-shape').should('have.length.at.least', 1)
* - ... |
e909eeebf29d0884bdd23403b127a760b4c9ff280e0a84d2e417e3bac995de7b | TypeScript | 1,350 | 39 | import { useQuery } from '@tanstack/react-query';
import { useBootstrapData } from '../lib/bootstrapContext';
import type { NodeSummary } from '../types';
export interface UseAllNodesResult {
/** Null until the bootstrap read resolves. */
nodes: NodeSummary[] | null;
total: number | null;
isPending: boolean;
... |
91b18edab46a2f376aadc0182f45b1acf2b9912b48050855a0714fa2c6583ea8 | TypeScript | 1,351 | 40 | /**
* 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... |
b202370eba845b026f536adb188296e286b7da9e3f10c528713173c34a6ead67 | TypeScript | 1,352 | 78 | export type Icon =
| 'arrows-alt-h'
| 'arrow-left'
| 'arrow-right'
| 'bars'
| 'bed'
| 'bell'
| 'box'
| 'brain'
| 'calendar'
| 'cloud'
| 'compress'
| 'cube'
| 'chevron-circle-right'
| 'chevron-right'
| 'circle'
| 'circle-notch'
| 'clock'
| 'code'
... |
811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c | TypeScript | 1,353 | 30 | /*! *****************************************************************************
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.... |
0b10ebfc43254f61efa8a80d7fc83b8394083a2797eee22a6693a19c99ae064b | TypeScript | 1,354 | 45 | /*
* 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 ... |
146a2994986eadd60ec78c26e95781c8cdd1fa32acb1b63839574d36d7a48d67 | TypeScript | 1,356 | 37 | /*
* 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 ... |
e977abdc782e2eebb5db9d28dcffd85731e3e41aafb14909ff23b5be0ed093be | TypeScript | 1,356 | 39 | /**
* 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... |
627fbbb25880fd4b6fdae04153b9d967958cc4536020064208fbdd8e75658351 | TypeScript | 1,358 | 34 | /* 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... |
e047e7ccbf9aa4c64189fc5d49a7e0316135c5abefdb616809d5f9945e79ab40 | TypeScript | 1,358 | 55 | /**
* @file Network Streamer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Streamer from './streamer'
class NetworkStreamer extends Streamer {
_read () {
return new Promise((resolve, reject) => {
const url = this.src
const xhr = new XMLHttpRequest()
xhr.open(... |
efb07f4a3d3aab20b11d551db5de1e28af34f4661f0a7f3fbad2c3e846f08d3d | TypeScript | 1,358 | 41 | /*
* 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 ... |
98b1cef33f8aff7fceae57688c95cef85de9baf7a744d081dd795a093748fae2 | TypeScript | 1,359 | 33 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
8718062a5f9d983cf7050d195bbd4e65937439a4c81471aadc11bc3fab0ae701 | TypeScript | 1,360 | 33 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
bddcb5834c5f6d59b77ee1adf6b46eebfc95c16fdc3d03c4949ffd9142f3a39f | TypeScript | 1,360 | 37 | /**
* 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... |
3ff7640cafcea94c20c5a8fd5c89ba00c1f9f42b9ac60098ab88bd093c4d3ab7 | TypeScript | 1,362 | 48 | import type { ReactNode } from "react";
export type FilterShellAddOption = {
id: string;
label: string;
group?: string;
};
export type FilterShellAddFilter = {
options: FilterShellAddOption[];
onSelect: (id: string) => void;
disabled?: boolean;
searchPlaceholder?: string;
};
export type FilterShellItem... |
0ddb9d50cb0070057b3ab67e6446f6ef2ae061e7d3ee2627735592a0bea627f1 | TypeScript | 1,364 | 32 | /**
* 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... |
91e7ecf7700e392f24897e3fc4810af617352e4ae93266179f9c973cc74f4757 | TypeScript | 1,364 | 37 | import { AudioView, LabelStudio, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import * as audioFixtures from "../../data/audio/audio_paragraphs";
import { FF_LSDV_E_278 } from "../../../../src/utils/feature-flags";
describe("Audio: Paragraphs Sync", () => {
beforeEach(() => {
LabelStudio.addFeatureFl... |
0d802e16a28ed0493eab8b4af0edbcc0f8ca184cab3f4aa22efd71a883fa164a | TypeScript | 1,365 | 38 | /**
* 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... |
117fe59da9122f8217da1a51faed67073b60537027b5c4a5a6bc23c73cebdf21 | TypeScript | 1,365 | 45 | /*
* 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 ... |
5756f414072d5c0574554736521a81032818a174d8c544aaadc1dcdcffbee7ec | TypeScript | 1,370 | 31 | /**
* 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... |
cc8bef7b400b92fccbbc056c7276ec578a3ac5227309326d4739bd9219d73305 | TypeScript | 1,370 | 34 | /**
* @file Selection Test
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import AtomProxy from '../proxy/atom-proxy';
import ResidueProxy from '../proxy/residue-proxy';
import ChainProxy from '../proxy/chain-proxy';
import ModelProxy from '../proxy/model-proxy';
export declare type ProxyEntit... |
79c36c083dc0d4c6fb42b1e6acb918d8490ce6f6ce892b5d11e1f6fa424f31b2 | TypeScript | 1,371 | 35 | /**
* 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... |
c788695790b64422b23c593763b3f4345a425449b40798f267cf710e1cfaee7e | TypeScript | 1,371 | 40 | /**
* 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... |
37900c35c93be8abeacf5d06fe143839dd725bba376ba5ba0d7422b30a5087e2 | TypeScript | 1,372 | 45 | /**
* 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... |
4a1dd3037b1007a21fe93dd071fdf488069a15e119382e1ec14a24917678c9f1 | TypeScript | 1,372 | 55 | import { Destructable } from "./Destructable";
type AnyFunction = (...args: any[]) => any;
type ToFunction<T> = T extends AnyFunction ? T : never;
export class Events<ET, ETS extends keyof ET = keyof ET> extends Destructable {
private subscriptions = new Map<ETS, Set<any>>();
on<T extends ETS>(eventName: T, han... |
755477a1dc59e04e5b37e6224597c051c40fc2ffae3e125b159b2e6be9db95b7 | TypeScript | 1,372 | 53 | class ChoicesHelper {
private get _baseRootSelector() {
return ".lsf-choices";
}
private getСhoiceSelector() {
return ".lsf-choice__item .ant-checkbox + span, .lsf-choice__item .ant-radio + span";
}
private getCheckedСhoiceSelector() {
return ".lsf-choice__item .ant-checkbox-checked + span, .lsf-... |
5715d3ecbcc3053c2eba4aec387ea34b6258197aed291b5231f8bab4ef1847cd | TypeScript | 1,375 | 38 | /**
* Utility functions for comparing and validating SVG bounding boxes
* These are pure functions that don't depend on Cypress and can be unit tested
*/
export interface BoundingBox {
x: number;
y: number;
width: number;
height: number;
}
export class BoundingBoxUtils {
/**
* Check if two bounding bo... |
270b4ee3d34ccb1de9e6dac1cf3964eaf9e22e6c87258c3356a2457a1427fba9 | TypeScript | 1,376 | 32 | /*
* 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 ... |
001b48c6e6bd8e2370df1cf0d9985fe846e60e555fecea693cc52537ceace307 | TypeScript | 1,377 | 42 | /**
* 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... |
47c2acfa42b197c359be9bf3a0edd7a4fc386f5313a5ee6bc37f2359e199e891 | TypeScript | 1,377 | 36 | import { describe, expect, it } from "bun:test";
import { getUserOptionLabel, summarizeSelectedUsers } from "./UserSelect";
describe("Data Manager user option labels", () => {
it("includes email when it disambiguates a display name", () => {
expect(getUserOptionLabel({ email: "sdk-annotator-42@example.com" }, "S... |
70ead282b343ce4c506dd839a9e8d89703fc4e692a284370d5efd8752aaa01f4 | TypeScript | 1,381 | 51 | import { isAbsolute } from 'node:path';
import { fileURLToPath } from 'node:url';
/**
* Extract the scheme from an artifact URI.
*/
export function getArtifactUriScheme(uri: string): string {
const match = /^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(uri);
if (!match) {
return '';
}
const scheme = match[1].toLower... |
d1bd7569bf118bfd2be7709b0e2bb6a20c6366ed0c3baeb8d67de372134ecf53 | TypeScript | 1,381 | 43 | /**
* 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... |
52d17d99b2d088f63ca5746e476d5137cad00c52152801c66c218365749dddf1 | TypeScript | 1,382 | 33 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
91f07b23a97035089c1df6a33d2bede636cbb8f7103585fdce98f753e9d648b2 | TypeScript | 1,383 | 32 | /**
* 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... |
a0ad5a4f0fb0026ad6f1c7b0575663f8dd98422bc4019aea7df1d6bef922726c | TypeScript | 1,384 | 41 | /**
* 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... |
099f8e17c9a17dbecc84e2b5f74c14065ffbe6c96d7c38572dbd9584eccc0991 | TypeScript | 1,385 | 35 | /*
* 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 ... |
e2f9011bc3168b8c8b16d8d2ec636d748db7f204c2d3cc3416abd3628779e946 | TypeScript | 1,386 | 35 | /**
* 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... |
34a219fca38b99018a3287b93376df6ba0248b89058a64f70147f33f7903bfde | TypeScript | 1,387 | 53 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
7d657b429f988f5782f0b2ba159f5731aa04911b156d4177f79796677eee5a67 | TypeScript | 1,387 | 41 | /**
* 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... |
ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6 | TypeScript | 1,389 | 35 | /*! *****************************************************************************
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.... |
2a129a98d0fc6aa8f1633222bbc2cf30309a3ef12d58ff7508168be8888c0a7c | TypeScript | 1,391 | 44 | /*
* 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 ... |
75ff18bd98a5f265014ca0ee97ed6b689bb22fce8ae969f469fc477ea7166ba5 | TypeScript | 1,391 | 44 | /*
* 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 ... |
f2610cdb7bd9a76e85939afe4b94ce6e79dbd734550c889899f40f1764d3f7dd | TypeScript | 1,391 | 44 | /*
* 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 ... |
4f20aa519040fce68fa3039a2a17e9f70ab2cd223ff6edff9bf141406bf71994 | TypeScript | 1,393 | 43 | /**
* Daemon-side `MlflowClient` cache.
*/
import { createAuthProvider } from '../../auth';
import { MlflowClient } from '../../clients/client';
const cache = new Map<string, MlflowClient>();
/**
* Return the cached `MlflowClient` for `trackingUri`, constructing it
* lazily on first access. Subsequent calls with... |
85a49cf7b550dfc469a6d0b3eac3871f3d953b43d60521b58b87b0d2845f8e42 | TypeScript | 1,393 | 48 | /**
* @file Picking Behavior
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Stage from './stage'
import MouseObserver from './mouse-observer'
import Viewer from '../viewer/viewer'
import MouseControls from '../controls/mouse-controls'
class PickingBehavior {
viewer: Viewer
mouse: ... |
69ea5c1f8e37197f8bb4f2795e324aa4812689f3f41f9b2d47467acee8bc0904 | TypeScript | 1,395 | 40 | /**
* 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... |
8ce177c8da2d74a1cfbbe0853f14b73eced68276c2b5c92310012a6528da4326 | TypeScript | 1,395 | 64 | type Callback = (...args: any[]) => any;
export class EventInvoker {
events = new Map<string, Set<Callback>>();
on(eventName: string, callback: Callback) {
const eventMap = this.getEventMap(eventName);
if (!eventMap.has(callback)) {
eventMap.add(callback);
}
}
off(eventName: string, callba... |
91788abb5000f5519721622d577d6ccdc7b49bb09a1bd86551673182c4bead5f | TypeScript | 1,396 | 48 | /**
* 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... |
d6dd091935cc94220fae4b6b8eb06258c05dd85badcf5352ff590db271d5e748 | TypeScript | 1,396 | 40 | /**
* 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... |
e76865e030182bad773f914469c5ff3d71f91f0ffc60e418d7203d5329e8218d | TypeScript | 1,397 | 44 | /**
* project any angle onto the interval (-180;180]
*/
export function normalizeAngle(angle: number) {
let a = angle;
while (a > 0) a -= 360;
return ((a - 180) % 360) + 180;
}
type SequenceItem = {
frame: number;
[k: string]: any;
};
/**
* interpolate prop between two sequence items
* @return {any} pr... |
c102eda7b1f52ef1b614e41ac2bf178982a2d3cb07cf3187415f4af0a2046609 | TypeScript | 1,398 | 46 | import { Injectable } from "@angular/core";
import { Actions, createEffect, ofType } from "@ngrx/effects";
import { map } from "rxjs/operators";
import { COOKIE_VERSION, KG_TOS_VERSION, LOCAL_STORAGE_CONST } from "src/util/constants";
import * as actions from "./actions"
@Injectable()
export class Effects{
onUseMob... |
9b0091cf803c86c0415142e8b328b46bb822375343529a5df1434d525c6cf0fe | TypeScript | 1,399 | 43 | import { LabelStudio, ImageView, Taxonomy } from "@humansignal/frontend-test/helpers/LSF";
import { simpleImageTaxonomyConfig, simpleImageData, perTagTaxonomyResult } from "../../../data/control_tags/per-item";
import { commonBeforeEach } from "./common";
beforeEach(commonBeforeEach);
/* <Taxonomy /> */
describe("Cla... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.