sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
6f8a84c8252301fca5ef50d23449c5014c1173eb6f71241e1d5f35e8b2590a71 | TypeScript | 1,148 | 24 | /**
* 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... |
192fc3f3a97ab6181bfc8d71844fc27c2e9786d45b94fd51047ff7af50ee7a39 | TypeScript | 1,150 | 29 | /**
* 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... |
646b06772b56ff484cc5fb6f92647e79f8e9c4875ff9e7fd3dee97cff2e0bfa9 | TypeScript | 1,150 | 32 | import { SpanLogLevel, SpanType } from './constants';
/**
* Span types whose default level is INFO. These represent the user-visible
* semantic operations (model calls, tool calls, retrievals, agent turns, etc.)
* that should remain visible at the default UI threshold. Everything else --
* chain glue, output parsi... |
669c18ddb67f71d210d55c201c7ea980d3d831dc04ee8c2c6e688e736a9d0609 | TypeScript | 1,150 | 45 | import { Directive, OnDestroy } from "@angular/core";
import { NavigationEnd, Router } from "@angular/router";
import { Observable, Subscription } from "rxjs";
import { filter, map, startWith } from "rxjs/operators";
const jsonVersion = '1.0.0'
// ver 0.0.1 === query param
interface IJsonifiedState {
ver: string
... |
bcf1c5be1f3abc231f0afa0b03dda21800c88e58220020466f8081b92d5f21a0 | TypeScript | 1,150 | 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 ... |
a815c68bccd03470146140e3f3a6f9d90f7de1f8beeacc261ca2019ddd717422 | TypeScript | 1,151 | 35 | import { beforeEach, describe, expect, it } from "bun:test";
import { effectiveHotkeys } from "./effectiveHotkeys";
describe("bootstrapHotkeys side-effect module", () => {
beforeEach(() => {
window.APP_SETTINGS = {
user: {
customHotkeys: {
"annotation:annotation:submit": { key: "shift+ent... |
e9c25e203ec6061897b2dde85a94af99051d009962deb266cbb349784de86ac6 | TypeScript | 1,151 | 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... |
62a27318521c235b88212c923a0ebc076adbd09c46c85cabfd789326e34c20b1 | TypeScript | 1,153 | 44 | /**
* @file Element
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Signal } from 'signals';
import Stage from '../stage/stage';
export declare const ElementDefaultParameters: {
name: string;
status: string;
};
export declare type ElementParameters = typeof ElementDefaultParame... |
9ad40be1706bd56f2119585ed4390508291eb6ebafb4bc9c33e386284e3a1e51 | TypeScript | 1,153 | 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 ... |
2a87ebb4070d29d8bebbf3464797a4f5421c594e2306ff2da376f28a33edf034 | TypeScript | 1,155 | 29 | /**
* 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... |
3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004 | TypeScript | 1,155 | 25 | /*! *****************************************************************************
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.... |
5f28e1428ca89111d2f343efc69a52d17ad78a13714c96c5f45179f637e70128 | TypeScript | 1,155 | 44 | import { useCallback, useEffect, useState } from 'react';
const STORAGE_KEY = 'dbt-docs-v2:query-history';
const MAX_ENTRIES = 20;
function read(): string[] {
try {
const raw = sessionStorage.getItem(STORAGE_KEY);
if (!raw) return [];
const parsed = JSON.parse(raw);
return Array.isArray(parsed) ? pa... |
0b3d4060195c6616971f9e0380c8e924cb3f14b41634001e33ff2bd5e609295e | TypeScript | 1,156 | 42 | import { ChangeDetectionStrategy, Component } from "@angular/core";
import { PureATPSelectorDirective } from "../pureATP.directive";
import { take } from "rxjs/operators";
@Component({
selector: "sxplr-pure-atp-dropdown",
templateUrl: './pureATPDropDown.template.html',
styleUrls: [
"./pureATPDropDown.style.c... |
20f720c6afaebc43cb8c880a293ce049ecf5b709a26f869401890534e0a37bed | TypeScript | 1,156 | 28 | /**
* Public entry point for the Agreement Explorer dashboard.
*
* Kept deliberately narrow — it exposes only the store-agnostic dashboard, so
* consumers outside this library (the LSE editor-shell) pull in the agreement
* components without dragging in the MST editor.
*/
export { TaskSummaryDashboard } from "./... |
2fc0103ec864581972a53118cb8b67f85785ef6cb6f30a61916b3467a22564e2 | TypeScript | 1,156 | 44 | /**
* @file Helixorient
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3 } from 'three';
import { ColormakerParameters } from '../color/colormaker';
import { AtomPicker } from '../utils/picker';
import { RadiusParams } from '../utils/radius-factory';
import Polymer from '../prox... |
45a27558300e0438ecf2885830b2e5c642bccc269932642d4bdfdce3d041777b | TypeScript | 1,157 | 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... |
2463d8e541545595c5baf7ca9d040f6dce33edc727ab87cca2eb377757079b8e | TypeScript | 1,158 | 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... |
0c5e6410ef8c937366660eeef0656dd82a510a1084af35d18ebcadf07af73807 | TypeScript | 1,160 | 30 | /**
* 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... |
7100e75271fc357f4dc841b1198c4f045234bc486013675c8d6212d11b0212be | TypeScript | 1,161 | 58 | class TextareaHelper {
private get _baseRootSelector() {
return ".lsf-text-area";
}
private _rootSelector: string;
constructor(rootSelector) {
this._rootSelector = rootSelector.replace(/^&/, this._baseRootSelector);
}
get root() {
return cy.get(this._rootSelector);
}
get input() {
re... |
82bfbd4502134d147bab09e2df5b1dd6b16fb5cd50faf53c9f1f1f67a0bc3e1c | TypeScript | 1,161 | 24 | import { HighlightStyle, syntaxHighlighting } from "@codemirror/language";
import { tags as t } from "@lezer/highlight";
/** Label Studio token colors — class names match cm6-code-editor-theme.ts and legacy CM5 CSS. */
export const labelStudioHighlightStyle = HighlightStyle.define([
{ tag: t.keyword, class: "tok-key... |
c96f67eb565357952d1a4ae06d0ae8fc456821fd9d8c0f4774a621de37732c47 | TypeScript | 1,161 | 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 ... |
e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962 | TypeScript | 1,162 | 26 | /*! *****************************************************************************
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.... |
1418c591d9bbfcfd0be853b24dff90f490e4e9d07e153c337617b282c76d9e87 | TypeScript | 1,165 | 34 | /**
* @file Icosahedron Buffer
* @private
*/
import { Matrix4 } from 'three';
import GeometryBuffer from './geometry-buffer';
import { BufferData, BufferParameters } from './buffer';
export interface IcosahedronBufferData extends BufferData {
heightAxis: Float32Array;
depthAxis: Float32Array;
size: Float... |
766c59016da9bbd20267b995f1d0d11ed675e5875891eaae696176975e28396b | TypeScript | 1,165 | 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 ... |
e535c93c995df63e457fa7aa35c61482cc9fe873e1131ace7be694b76589c24d | TypeScript | 1,165 | 28 | /**
* BROS-1203 / FIT-2416 — Frontend allowlist for the `in_list` / `not_in_list` operators.
*
* Mirrors the backend allowlist in two places:
* - `services/lso/label_studio/data_manager/serializers.py::_column_supports_list_membership`
* - `services/lso/label_studio/data_manager/managers.py::_is_supported_in_l... |
1e161ee132b0a3cc553a3873dceac7fe90db73a295cb262c4188d42beaecc610 | TypeScript | 1,166 | 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... |
8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe | TypeScript | 1,166 | 26 | /*! *****************************************************************************
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.... |
a3d5ab8633100dbbae63b2112e2c3b9fe05a9c8c900b8c8a633ca5febc472565 | TypeScript | 1,166 | 35 | /**
* @file Sphere Impostor Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import '../shader/SphereImpostor.vert';
import '../shader/SphereImpostor.frag';
import MappedQuadBuffer from './mappedquad-buffer';
import { SphereBufferData } from './sphere-buffer';
import { BufferParameters } ... |
ceb9ee9e9cca4bfd4c8ad733be716dc83c93994c3cfcdc2e0dbb89d5a26cd5b1 | TypeScript | 1,166 | 38 | import { encodeCustomState, verifyCustomState } from './util'
describe('> util.ts', () => {
describe('> verifyCustomState', () => {
it('> should return false on bad custom state', () => {
expect(verifyCustomState('hello')).toBeFalse()
})
it('> should return true on valid custom state', () => {
... |
0ac2aa644ba296a1b62c43655d6eee0bc1c218bf628aac720aa1a1d4eb5e67e1 | TypeScript | 1,167 | 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 ... |
38ebf0d498e8efb4b24b7a79ceafb7092e85725aa9044cb2105f2c0e4a4e1b88 | TypeScript | 1,167 | 26 | /*
* 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 ... |
5dd683c62869fce980df3170a5908e505407c73ccf33b67a44c420aa6b88398f | TypeScript | 1,167 | 38 | /// <reference path="../extern/jquery.d.ts"/>
/// <reference path="../extern/jqueryui.d.ts"/>
/// used to delete visualisation data
function deleteFunction() {
let query = window.location.search.substring(1);
// check of URL parameters
if (query && query.length > 0) {
var p = query.spli... |
6996a82bab4e7a2d7cdd4a612b21730f1ff70fa120048400d106334dcc86c94b | TypeScript | 1,167 | 32 | import { useQuery } from '@tanstack/react-query';
import { useMetadataDataSource } from '../context/MetadataDataProvider';
import type { ColumnLineageArgs } from '../typings/args';
import { columnLineageKey } from '../util/queryKeys';
/**
* Fetch column-level lineage for an asset via the active
* {@link MetadataDat... |
b4bb25e6386791d5e97d161bc9fcd2367b75d210147c32c6ae4dc44bcaa20203 | TypeScript | 1,167 | 48 | /**
* @file Tube Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { RepresentationRegistry } from '../globals'
import { defaults } from '../utils'
import CartoonRepresentation, {CartoonRepresentationParameters} from './cartoon-representation'
import { Structure } from '../... |
460a6eb15deaf789f5c5abd028dd8de1a02fa26bbe2bb7dce6db7f71c78cb573 | TypeScript | 1,168 | 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 ... |
1b0432381ae769e31bcba4e927e0d4ef5ed9002980c30241d466f5c314c7b993 | TypeScript | 1,169 | 36 | /**
* @file Loader
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import FileStreamer from '../streamer/file-streamer';
import NetworkStreamer from '../streamer/network-streamer';
import { LoaderParameters, LoaderInput } from './loader-utils';
/**
* Loader parameter object.
* @typedef {Objec... |
4a5f93f765a3737bc502c38153b6525f10d7953c5a3cacc0f50aa35d90dc593c | TypeScript | 1,169 | 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... |
3bb0116e4908901dc87d2df9eb0fbb204738799baf365784e9f63a27cef76ef2 | TypeScript | 1,170 | 30 | import {ClusterWorkflowTemplateService} from './cluster-workflow-template-service';
import {CronWorkflowService} from './cron-workflow-service';
import {EventService} from './event-service';
import {EventSourceService} from './event-source-service';
import {InfoService} from './info-service';
import {SensorService} fro... |
73ed5821c5694484275592acb21f01318b85ba8ca7d54a8545b124d7c34d1e68 | TypeScript | 1,170 | 36 | // Type definitions for mmtf
export = Mmtf;
export as namespace mmtf;
declare namespace Mmtf {
export type Fields =
"mmtfVersion"| "mmtfProducer"|
"unitCell"| "spaceGroup"| "structureId"| "title"|
"depositionDate"| "releaseDate"|
"experimentalMethods"| "resolution"| "rFree"| "rWork"|
"bioAssemb... |
fbc932f4440e48cd033b419b5297956abc8b6fb933076a6b33b9ce4deee1f703 | TypeScript | 1,171 | 22 | export { FilterShell } from "./filter-shell";
export { formatFilterOverflowLabel } from "./filter-value-label";
export type { FilterShellAddFilter, FilterShellAddOption, FilterShellItem, FilterShellProps } from "./types";
/**
* Stable class for MultiTreeSelectDropdown `dropdownClassName`. Dropdown's bem `.mix()` pref... |
db2ec31f1415e57ac09ef9453fcee47e2a3a297b4991be65190b7109bb104659 | TypeScript | 1,172 | 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 ... |
41530c327e77893fa168684181f9f792a6ae7fde060e495ab6d5f432801d5e9f | TypeScript | 1,174 | 28 | /*
* 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 ... |
429aa9083871f467aa57327fde1b32dfc0daedc1674b6813b5be25f3150469a3 | TypeScript | 1,176 | 43 | import { Component, Inject, Input } from "@angular/core";
import { MAT_DIALOG_DATA } from "src/sharedModules/angularMaterial.exports";
@Component({
selector: 'confirm-dialog-component',
templateUrl: './confirmDialog.template.html',
styleUrls: [
'./confirmDialog.style.css',
],
})
export class ConfirmDialogC... |
7b419cc3d93019a62ecf97f318dc489d3f3dd4801da60bd98d02804008739527 | TypeScript | 1,176 | 24 | /**
* 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... |
3f52328ed7c7e72702d542c5a788d1017acd86ce0dca4f0360a57185093798fc | TypeScript | 1,177 | 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 ... |
ad11a34877674ddcef79bd34bef050f122ea5ab53198d266468a62f915e3f028 | TypeScript | 1,177 | 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 ... |
a7a6229cd22c88b349a8cda1062345508da50a5e2c573312ec34fd28f46a08da | TypeScript | 1,179 | 28 | /*
* 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 ... |
387f809136a8b20e22aff66a3078d9d0d4224735ffc7893f0096632330bb9c66 | TypeScript | 1,180 | 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 ... |
6eb00e3c7adebb7c0995ee98735670de6671fd8b9138a605bfd75d3fe6962426 | TypeScript | 1,180 | 35 | import { isDefined } from "@humansignal/core/lib/utils/helpers";
import { API } from "apps/labelstudio/src/providers/ApiProvider";
import { projectAtom } from "apps/labelstudio/src/providers/ProjectProvider";
import { atomWithQuery } from "jotai-tanstack-query";
export const sampleDatasetAtom = atomWithQuery((get) => ... |
9733e7bb8fdfa43668118b0a7d1538d7d9f2db5abd4eb93a5e558b7797d253f3 | TypeScript | 1,180 | 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 ... |
fdfe2f1b0c5eb37ce6f949c5a18fe30f099b26546f1c72383459bc80250988c6 | TypeScript | 1,180 | 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 ... |
94e56aa9dd8d67cae59e10903e0e12ffc16977be35b3d981094b33fb90076816 | TypeScript | 1,182 | 47 | export const simpleVideoData = { video: "/public/files/opossum_intro.webm" };
export const simpleVideoConfig = `<View>
<Video name="video" value="$video" />
<VideoRectangle name="box" toName="video" />
<Labels name="tag" toName="video">
<Label value="Label 1" background="green" hotkey="1"/>
<Label value=... |
b83faf42a0e5469a7e7613996fa2f4d458dd9c8d67e00a25e22ecfaa6f28d98d | TypeScript | 1,182 | 42 | import { Directive, EventEmitter, Input, OnDestroy, Output } from "@angular/core";
import { Subscription } from "rxjs";
import { ModularUserAnnotationToolService } from "../tools/service";
import { TCallback } from "../tools/type";
type TAnnotationEv<T extends keyof TCallback> = {
type: T
callArg?: TCallback[T]['c... |
9f690cee4ce039f4ff96383e06ad6c1b2fe25bcd34af15f48c16310ecc6103dc | TypeScript | 1,183 | 33 | import { global } from "@storybook/global";
import { atomWithStorage } from "jotai/utils";
import { atom } from "jotai/vanilla";
import { PARAM_KEY } from "./constants";
export const themeAtom = atomWithStorage(PARAM_KEY, "auto");
export const evaluatedThemeAtom = atom((get) => {
let theme = get(themeAtom);
if (t... |
16d6e9344b9106e1b388eed92bbb60ec0957798f31466fb12b50c8cde081a3fe | TypeScript | 1,185 | 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... |
de82e3fed99e3182f24a32edf9113a2f036775739dfce8f9c0e01f7bab454927 | TypeScript | 1,185 | 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 ... |
0cce5c57341155b3c6aeea1caf426a075d1d676aa69c9dd019dcde130cb3aa78 | TypeScript | 1,187 | 35 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { ComponentsModule } from "src/components";
import { AngularMaterialModule } from "src/sharedModules";
import { UtilModule } from "src/util";
import { Viewe... |
3aaac0b9669a90e802c30e2a4ecc144f73bd545406ae28b56aff16bf19bb739e | TypeScript | 1,187 | 55 | import { createReducer, on } from "@ngrx/store";
import * as actions from "./actions"
import { INehubaFeature } from "./type";
/**
* TODO port from global store to feature store
*/
export enum EnumPanelMode {
FOUR_PANEL = 'FOUR_PANEL',
V_ONE_THREE = 'V_ONE_THREE',
H_ONE_THREE = 'H_ONE_THREE',
SINGLE_PANEL ... |
9a505678ab3bb2ef758fdd0e4cd8d0d22d68ed9b0f3b8873036fb800312450ce | TypeScript | 1,189 | 54 | /**
* A simple LRU cache implementation
* @param K - Key type
* @param V - Value type
* @example
* const cache = new LRUCache<string, number>(10);
* cache.set("foo", 1);
* cache.set("bar", 2);
* cache.set("baz", 3);
* cache.set("qux", 4);
*/
export class LRUCache<K, V> {
private maxSize: number;
private m... |
53d671c44fa235ef46fb58dd9b5241ff49dfe7b2fbd5459eb017394ccd0b9473 | TypeScript | 1,190 | 37 | import { LabelStudio, VideoView } from "@humansignal/frontend-test/helpers/LSF/index";
import { simpleVideoConfig } from "../../data/video_segmentation/regions";
import { FF_VIDEO_FRAME_SEEK_PRECISION } from "libs/editor/src/utils/feature-flags";
const simpleVideoData = { video: "/public/files/fps_24_frames_24_video.w... |
67b0a1a3d4ecc1d9e03f1788d83ecf74ca2912f0664a06fc43540deb3047aab2 | TypeScript | 1,191 | 34 | import defaultKeymap from "./settings/keymap.json";
import { Hotkey } from "./Hotkey";
describe("Hotkey.setKeymap", () => {
const originalKeymap = Hotkey.keymap;
afterEach(() => {
Hotkey.keymap = { ...defaultKeymap } as typeof Hotkey.keymap;
});
afterAll(() => {
Hotkey.keymap = originalKeymap;
});
... |
8d85d881db94ba0266a35e719b16c2717f1987901c14a09a33ed80e74837eb26 | TypeScript | 1,192 | 22 | import { describe, expect, it } from "bun:test";
import { getProjectHotkeysSettingsPath, getProjectIdFromPathname } from "@humansignal/core/lib/utils/hotkeysProject";
describe("hotkeysProject helpers", () => {
it("extracts project ids from labeling paths", () => {
expect(getProjectIdFromPathname("/projects/123/d... |
8f9f03178973fbab8f861f59f5a51e420001b355766fe931d2364e23f8ad1164 | TypeScript | 1,192 | 42 | /**
* @file Dxbin Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Debug, Log, ParserRegistry } from '../globals'
import { uint8ToLines, ensureBuffer } from '../utils'
import DxParser from './dx-parser'
class DxbinParser extends DxParser {
get type () { return 'dxbin' }
get... |
6ad9a38e4beb89152fc9bc03187a0936e58072fa0251482534212e62c02d23e0 | TypeScript | 1,193 | 48 | /**
* @file Partialcharge Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { ColormakerRegistry } from '../globals'
import Colormaker, { ColormakerParameters, ColormakerScale, manageColor } from './colormaker'
import AtomProxy from '../proxy/atom-proxy'
/**
* Color by partia... |
0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c | TypeScript | 1,194 | 29 | /*! *****************************************************************************
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.... |
15b251c0b81a4aa4abb855b2c9df03e1e183a4dbf178e2dd3fc1f9d2117233ef | TypeScript | 1,195 | 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 ... |
406d2aafc25ed6f32e9fd717e4a6e668f916136de1482a7fb240d0c41ed75448 | TypeScript | 1,197 | 54 | import { SerializedTraceInfo, TraceInfo } from './trace_info';
import { SerializedTraceData, TraceData } from './trace_data';
/**
* Represents a complete trace with metadata and span data
*/
export class Trace {
/**
* Trace metadata
*/
info: TraceInfo;
/**
* Trace data containing spans
*/
data: ... |
620dca94ee7315d57928d7686a1fb26ad527326cbd7804832eb2bd5a165da7d4 | TypeScript | 1,197 | 28 | /**
* 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... |
b8d25f65df236a69bcee3ffef0e0337c6915fd6d0a9c277112b0dbfe5319a13d | TypeScript | 1,200 | 30 | /*
* 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 ... |
e84517f71aed325dde94b2aca24d574737275ce8afaf8ea895c7d35a652415a1 | TypeScript | 1,200 | 29 | /**
* Returns the base URL for documentation depending on deployment type.
* - Enterprise: https://docs.humansignal.com/
* - Open Source: https://labelstud.io/
*/
export function getDocsBaseUrl(): string {
if (typeof window !== "undefined" && window.APP_SETTINGS?.billing?.enterprise) {
return "https://docs.hu... |
5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4 | TypeScript | 1,201 | 27 | /*! *****************************************************************************
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.... |
3e4dc98c119cce3521f1782549f44b385186786f38a3943b73ea737e0f0d1862 | TypeScript | 1,202 | 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... |
30930ce5e2eb3d2473b63416c857fee85c87ad21a7ece54e3a3626eff80fd4fa | TypeScript | 1,203 | 47 | import { Component, EventEmitter, Output } from "@angular/core";
import { Store } from "@ngrx/store";
import { merge } from "rxjs";
import { debounceTime, mapTo } from "rxjs/operators";
import { atlasSelection } from "src/state";
import { TViewerEvent } from "src/viewerModule/viewer.interface";
/**
* TODO this compne... |
40339d583853ebb88442d0ad7266b69716358fff9c7418099d282c91c6db9e39 | TypeScript | 1,203 | 46 | /**
* @file Residue Map
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Structure from '../structure/structure'
import { ResidueBonds } from '../structure/structure-utils'
import ResidueType from './residue-type'
function getHash (resname: string, atomTypeIdList: number[], hetero: bool... |
bbd92235427fb1b1c13d8dffc65c96d15969a3845475bbe10723c64858ab4d27 | TypeScript | 1,204 | 28 | /**
* 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... |
1e1bf352ac42a7aafce59800a7081ccacf05f9f4c191bcbbb60d06ee317247f1 | TypeScript | 1,205 | 34 | /**
* @file Geometry
* @author Fred Ludlow <Fred.Ludlow@astx.com>
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import AtomProxy from '../proxy/atom-proxy';
export declare const enum AtomGeometry {
Spherical = 0,
Terminal = 1,
Linear = 2,
Trigonal = 3,
Tetrahedral = 4,
TrigonalBi... |
6721dbbf0bd37fe85649509b347ff6401749a217fab184df6326434d7d22f797 | TypeScript | 1,206 | 53 | /**
* @file Mapped Aligned Box Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { BufferParameters, BufferData } from './buffer'
import MappedBuffer from './mapped-buffer'
// +Y /
// 0**********2
// * | / **
// * |/ * *
// -----------3---- +X
// * /| ... |
cc6cac58abf515406b54ca0416729adcb551e5ecb48a0ff5dcf13eec467778b4 | TypeScript | 1,207 | 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 ... |
952b4fdaefae76d2f1a2a6620f13048f4d7946e81c7be505b3c23857dbfd7549 | TypeScript | 1,209 | 25 | /* 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... |
2bfd99d7b279ac1c421673595681fd29d9f601ee185ef6d06e2682f4215867b0 | TypeScript | 1,211 | 35 | /**
* @file Octahedron Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4 } from 'three';
import GeometryBuffer from './geometry-buffer';
import { BufferData, BufferParameters } from './buffer';
export interface OctahedronBufferData extends BufferData {
heightAxis: Floa... |
28edab707fbaab5ae65bca8ee4a9a99f28eb0b204f48e5987cf944586cc13440 | TypeScript | 1,212 | 29 | /**
* 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... |
e1e1d97176b0939c4026672ab04a75c170b6a17420edab8ed735de28c7973f7f | TypeScript | 1,213 | 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 ... |
62515b7677271868008c951b0c3eae50bedda69aa4e938b50d1e16968bddd6c9 | TypeScript | 1,214 | 40 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { ComponentsModule } from "src/components";
import { AngularMaterialModule } from "src/sharedModules";
import { StrictLocalModule } from "src/strictLocal";
import { DialogModule } from "src/ui/dialogInfo/module";
import { U... |
cc0c37e839509fb68fef071957f2438a5146aa9d7d1d7180bd4a3eee396e9dec | TypeScript | 1,214 | 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... |
f1757d09c843d78b7a692772b7de9ab7a9a4057a565bd20a80ff0e65c7ccfb94 | TypeScript | 1,218 | 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... |
b3d3d4499a09d56cd35184cdeeff1118f20674f45ba2b58375f11f7915095f52 | TypeScript | 1,219 | 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... |
0d07dc5bfab4b7fae6baf153bd534955d13848283cef9ee76d4417cbf7351829 | TypeScript | 1,221 | 35 | /**
* @file Tetrahedron Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4 } from 'three';
import GeometryBuffer from './geometry-buffer';
import { BufferData, BufferParameters } from './buffer';
export interface TetrahedronBufferData extends BufferData {
heightAxis: Fl... |
1b8792f6f5b6eb1c0c065ff12d4fe756d9dd72c35c7fd0230448c83f9fdc21ec | TypeScript | 1,222 | 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... |
41de586ae705637aa0cebbc2586c832a760850b0cc5207565fd6fdf638180aa6 | TypeScript | 1,222 | 39 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { MarkdownModule } from "src/components/markdown";
import { SmartChipModule } from "src/components/smartChip";
import { DialogModule } from "src/ui/dialogInfo";
import { UtilModule } from "src/util";
import { SapiViewsCoreP... |
b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9 | TypeScript | 1,224 | 29 | /*! *****************************************************************************
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.... |
c17c770c4ab92caf7430f9e341aabdf1623fce79723f31c6eeb8512416fa21a6 | TypeScript | 1,224 | 42 | import { Injectable } from "@angular/core";
import { NEVER } from "rxjs";
import { debounceTime, map, switchMap, take } from "rxjs/operators";
import { RouterService } from "src/routerModule/router.service";
import { SaneUrlSvc } from "src/share/saneUrl/saneUrl.service";
import { userAnnotationRouteKey } from "./consta... |
6b49d440528ee2e7b35508efbc808652b74b7cd1e1a5eccdc42cdc4b6c349fb7 | TypeScript | 1,225 | 46 | import { APP_BASE_HREF } from "@angular/common";
import { NgModule } from "@angular/core";
import { RouterModule } from '@angular/router'
import { RouterService } from "./router.service";
import { RouteStateTransformSvc } from "./routeStateTransform.service";
import { DECODE_ENCODE, routes, decodeCustomState, verifyCus... |
a3633c3cc329a3695151d57ea6a80299650e6479d74b0e81ad47b1a50b7c94dc | TypeScript | 1,225 | 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 ... |
0a9f5637d169f2aac2816169e87d7704a95921d94acc09ced83d32abcc60b2d6 | TypeScript | 1,229 | 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 ... |
7e57dfc1f536d1d4d92588e9c2d9c86dff80fd21319f60eca12503e7dc192f3a | TypeScript | 1,229 | 32 | /**
* Filters a node's raw `config` block down to what's worth showing in the
* Config tab. dbt fills in defaults for nearly every config key, so an
* unfiltered dump is mostly noise — this drops null/empty entries
* (recursively, for nested blocks like `contract`/`docs`) and reports `null`
* when nothing visible ... |
ba22336b6e3fde54ca4410a9e49e518710c5c83bdd2490dc59d4db00ba14a6b3 | TypeScript | 1,229 | 40 | import React from "react";
/**
* React hook to detect if user prefers reduced motion (for accessibility)
*/
export function usePrefersReducedMotion() {
const [prefers, setPrefers] = React.useState(false);
React.useEffect(() => {
const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
setPrefers... |
87088b3efea956bba66b43ec7acbb2a8614d18f0cf44686a1f0d28a2524fad88 | TypeScript | 1,231 | 37 | import { ChangeDetectionStrategy, Component } from '@angular/core'
import { environment } from 'src/environments/environment'
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { default: info } = require('!!raw-loader!../data/info.md')
// eslint-disable-next-line @typescript-eslint/no-var-requires
c... |
717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca | TypeScript | 1,232 | 37 | /*! *****************************************************************************
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.... |
17943446e4a3fa43a215739fc2dfc595010be89ce50ca17c7a4a93aa28136a25 | TypeScript | 1,233 | 63 | /**
* @file Key Actions
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Stage from '../stage/stage'
export type KeyActionCallback = (stage: Stage) => void
/**
* Key actions provided as static methods
*/
class KeyActions {
/**
* Stage auto view
*/
static autoView (stage: St... |
646c5640800dc3825d4da513a9c0530a7bf8b19fdd02161b25a218cfe4ce87e1 | TypeScript | 1,233 | 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.