sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
bd5a50fa736c9e1fcad6d9da92f36dab1dd833e4696c1a073725819aebef3c2f | TypeScript | 732 | 16 | /*
This is an interface to receive the current trial data from the backend (Flask),
which is then displayed in the table on the client-end.
*/
export interface CurrentTrialData {
sess_time: string; // Duration of the session (min)
trial_n: string; // Current trial number (n)
trial_type: string; // Le... |
63fdebc0adbb54866fd638c05b0581deae22349d6c0c5672209d5469240b8b0c | TypeScript | 737 | 29 | import { Component, Input, ChangeDetectionStrategy } from "@angular/core";
import { Subject } from "rxjs";
import { map, startWith } from "rxjs/operators";
type TIVBColor = 'default' | 'primary' | 'accent' | 'warn'
@Component({
selector: 'iav-v-button',
templateUrl: './vButton.template.html',
styleUrls: [
'... |
abe90c35a3c54aa6b2d402b0bd0c538be99e276418b070bb55799f6c6afbc4db | TypeScript | 741 | 27 | /**
* @file STL Writer
* @author Paul Pillot <paul.pillot@cimf.ca>
* @private
*/
import Writer from './writer';
import Surface from '../surface/surface';
/**
* Create an STL File from a surface Object (e.g. for 3D printing)
*
* @example
* molsurf = new MolecularSurface(structure)
* surf = molsurf.getSurface({t... |
c489178610f86916ea935bb40819bbee2c8ec497ceb34e578339e4837f6deb8c | TypeScript | 741 | 32 | /**
* @file Writer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
/**
* Base class for writers
* @interface
*/
declare abstract class Writer {
readonly mimeType: string;
readonly defaultName: string;
readonly defaultExt: string;
/**
* @abstract
* @return {Anything}... |
32a6d908984f025790946ac0f4c2298d913e1d83c28d28ebde30c752269abe3d | TypeScript | 744 | 23 | /**
* @file Frames Trajectory
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Structure from '../structure/structure';
import Frames from './frames';
import Trajectory, { TrajectoryParameters } from './trajectory';
/**
* Frames trajectory class. Gets data from a frames object.
*/
decla... |
3791ff4a26da62af4296c6bd0f6f8fae07cbfeee9a9bba8e39e26145d037cd3c | TypeScript | 746 | 33 | function isMac(win) {
return win.navigator.platform.toLowerCase().indexOf("mac") >= 0;
}
function pressHotkey(hotkey: string, macHotkey?: string) {
let key = hotkey;
cy.window().then((win) => {
if (macHotkey && isMac(win)) {
key = macHotkey;
}
cy.get("body").type(key);
});
}
export const Hot... |
412a8e230916c7dccefc0ddc64ff623ad1093bfbf2b872680baeb9bb8538b46d | TypeScript | 746 | 28 | import {NodeType} from '../../../../shared/models';
interface CollapsedNode {
kind: string;
parent: string;
message: string;
type: NodeType;
}
export function getCollapsedNodeName(parent: string, message: string, type: NodeType): string {
return JSON.stringify({kind: 'collapsed', parent, message, ... |
4b22d62abff677e4d3ef1f9a5865ac04bc1a4e1943cd2856e7629aee74368dd6 | TypeScript | 746 | 20 | import { ImageView, LabelStudio, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
import { simpleConfig, simpleImageData, simpleResult } from "../../data/image_segmentation/layers";
describe("Image Segmentation - Layers", () => {
it("should keep selected region over unselected one", () => {
LabelStudio.p... |
c1dbcc6251b69434e462a2e152c8e22b6c9a900384a2b6099b4529dc2a534a39 | TypeScript | 746 | 22 | /**
* @file Structure Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Parser, { ParserParameters } from './parser';
import Structure from '../structure/structure';
import StructureBuilder from '../structure/structure-builder';
import Streamer from '../streamer/streamer';
export in... |
e4df97abeb2b4b21b8b6718eaa4adddba6772bf0a19bb2adc83308ad621990b1 | TypeScript | 746 | 21 | /**
* Side-effect module: register Infomodal + real `VirtualVideo` in the Bun registry before any
* `import("../VirtualVideo")` runs.
*
* `VirtualVideo.test.tsx` must **not** static-import `../VirtualVideo` alongside this file — sibling
* imports can be evaluated in either order, so setup can run too late on CI. U... |
015d53f76e0b13e2ff2008de22a4af475c87dd031462b392504de4e98adf7389 | TypeScript | 747 | 27 | import { useMemo } from 'react';
import {
homeLink,
packageDetailsLink,
resourceDetailsLink,
resourceFilterLink,
} from './linkGenerators';
import { useLinkPrefixRequired } from './LinkPrefixContext';
import type {
PackageDetailsParams,
ResourceDetailsParams,
ResourceFilterParams,
} from './linkTypes';
... |
44134212effa38585a04b5f026329ff4749504be862be6e09007e2b5078f2d79 | TypeScript | 750 | 25 | /**
* @file Mouse 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';
declare class MouseBehavior {
readonly stage: ... |
6b98e359c0c9da2c60f0493d36160534933a98594867bacf7d7cbed28b8976e3 | TypeScript | 753 | 9 | /** Shared "glass" treatment for floating DAG canvas panels (bottom bar, minimap).
* Simple backdrop-blur/saturate approximation, not a true refraction shader --
* see project notes for why that tradeoff was chosen. */
// Tailwind's `/NN` opacity modifier can't decompose a var(--bgMain)-based
// color into RGB chan... |
2c79c00b80318d3f56c61e1f32f2bcd7f5aa1acd8ab57f39427c6a0bf4a2bf3a | TypeScript | 755 | 23 | import type React from "react";
import { useEffect, useRef, useState } from "react";
export const useStateWithCallback = <T>(
initialState: T,
): [state: T, setState: (updatedState: React.SetStateAction<T>, callback?: (updatedState: T) => void) => void] => {
const [state, setState] = useState<T>(initialState);
c... |
5ab4e3380848c808792e68feba5d148e956eb1eb3b383bb2555764f211f452cc | TypeScript | 756 | 22 | export { TaxonomyMultiTreeSelect } from "./taxonomy-multi-tree-select";
export { TAXONOMY_LEVEL_PLACEHOLDER, TaxonomySelectionChip } from "./taxonomy-selection-chip";
export type { TaxonomySelectionChipProps } from "./taxonomy-selection-chip";
export {
buildTaxonomyTreeData,
getTaxonomyOptionPath,
TAXONOMY_TREE_S... |
6f2afa39391aa1febfbe1cae3807f349e4bc5008147775d41e650b11de589c5b | TypeScript | 758 | 26 | import {GetUserInfoResponse, Info, Version} from '../models';
import requests from './requests';
let info: Promise<Info>; // we cache this globally rather than in localStorage so it is request once per page refresh
export const InfoService = {
getInfo() {
if (info) {
return info;
}
... |
70b7ca5270ffefe87bf8409b74b28e41239084fafb6ebbaaba4867d7ddddc25b | TypeScript | 767 | 30 | import { Injectable } from "@angular/core";
import { asyncScheduler, fromEvent, Observable } from "rxjs";
import { debounceTime, shareReplay, throttleTime } from "rxjs/operators";
interface IThrottleConfig {
leading: boolean
trailing: boolean
}
@Injectable({
providedIn: 'root'
})
export class ResizeObserverSer... |
7b9ef1ca75445c6711e0935b2cae5f9734787fc6515caeaa0211b21a5134833c | TypeScript | 767 | 22 | /**
* @file Tube Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import CartoonRepresentation, { CartoonRepresentationParameters } from './cartoon-representation';
import { Structure } from '../ngl';
import Viewer from '../viewer/viewer';
/**
* Tube Representation
*/
declare cl... |
e7e78cce963d68048081779c11cc2874a7eb0493beb3efa4d6d03a928bbf19c4 | TypeScript | 767 | 36 | /** CM5 react-codemirror2 props that must not be forwarded to @uiw/react-codemirror. */
const CM5_ONLY_PROP_KEYS = new Set([
"extensions",
"detach",
"autoCloseTags",
"smartIndent",
"controlled",
"border",
"value",
"options",
"onBeforeChange",
"onChange",
"onKeyDown",
"onCursorActivity",
"onVie... |
f7ab59d2e1e642ca8b4b929ddb4f7fba03799cde42900eb16dee4ba768c3e0e4 | TypeScript | 767 | 29 | 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 { KeyFrameDirective } from "./keyframe.directi... |
c9727ba7efc1485c334f92cee03b529296f0d39e775ecbbfb39173cecc7ac7fa | TypeScript | 768 | 34 | import { createSelector } from "@ngrx/store"
import { nameSpace } from "./const"
import { AtlasAppearanceStore } from "./store"
const selectStore = state => state[nameSpace] as AtlasAppearanceStore
export const octantRemoval = createSelector(
selectStore,
state => state.octantRemoval
)
export const showDelineati... |
6c22b40b2e4964a07686d1a83a068fa4dc6dfdf6b0167873f3f6011f9a026f02 | TypeScript | 769 | 22 | /**
* @file Rope Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import CartoonRepresentation, { CartoonRepresentationParameters } from './cartoon-representation';
import Spline from '../geometry/spline';
import { Structure } from '../ngl';
import Viewer from '../viewer/viewer';
... |
2bc44a7b69cf4f701398c1b03ceaf5bd8866e9cb30a100372031a748e0d33383 | TypeScript | 773 | 23 | /**
* @file Selection Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Selection from '../selection/selection';
import Colormaker, { ColormakerParameters } from './colormaker';
import AtomProxy from '../proxy/atom-proxy';
import Structure from '../structure/structure';
export d... |
9b8b416836d0b1f1dcc38eb6dc84e396a713ecfd281274ecef32601a9cc7cae7 | TypeScript | 773 | 22 | import { filterChildrenOfSelectedParents } from "./tree-selected";
describe("filterChildrenOfSelectedParents", () => {
it("preserves selection order instead of sorting alphabetically", () => {
expect(filterChildrenOfSelectedParents(["zeta", "alpha", "middle"])).toEqual(["zeta", "alpha", "middle"]);
});
it("... |
36e748393748ded768f6fb5adea98041cd6324c5eff677168450e71858aec5da | TypeScript | 774 | 25 | /**
* Type definitions for the per-user trace upload WAL.
*
* The WAL is an append-only JSONL file. Each line is one of the variants of
* {@link WalLine}: either an append (a complete trace record) or a tombstone
* (a marker that shadows a previously-appended record by id).
*/
/**
* One queued trace upload, ser... |
fa39a11627314d6e29a94f40a59f715d2e42e5a46f7bc8898f9b5294b5cadcc4 | TypeScript | 774 | 25 | /**
* @file Trace Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import '../shader/Line.vert';
import '../shader/Line.frag';
import Buffer, { BufferParameters, BufferData } from './buffer';
/**
* Trace buffer. Draws a series of lines.
*/
declare class TraceBuffer extends Buffer {
... |
015078da59779b34674d894ea373db079d26078c029a8cf536e6fc8215accee1 | TypeScript | 775 | 29 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SidePanelComponent } from './side-panel.component';
import { AngularMaterialModule } from 'src/sharedModules/angularMaterial.module'
describe('SidePanelComponent', () => {
let component: SidePanelComponent;
let fixture: ComponentFixture<S... |
add4ad96229c89cd007810a50c52439641bdb7d68e4bebcf5d6ba145f1e71ada | TypeScript | 778 | 18 | /**
* @file Surface Utils
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { NumberArray } from '../types';
declare function laplacianSmooth(verts: Float32Array, faces: Float32Array, numiter: number, inflate: boolean): void;
declare function computeVertexNormals(position: Float32Array, in... |
2f17ca25dcea4ae8528afd683cccbfd1eb16debd4f537b313f892153fae56eb9 | TypeScript | 779 | 18 | import type {NavigationApi} from 'argo-ui/src/components/navigation';
import type {NotificationsApi} from 'argo-ui/src/components/notifications/notification-manager';
import type {PopupApi} from 'argo-ui/src/components/popup/popup-manager';
import type {AppContext as ArgoAppContext} from 'argo-ui/src/context';
import {... |
c8eba4d37aa1eeb0a32a37fd1e33a6b8e4ee3103ebe1f0b0a8c658baabfd2d2a | TypeScript | 779 | 31 | import { AfterViewInit, Directive, HostListener, Input, OnDestroy, TemplateRef, ViewContainerRef } from "@angular/core";
import { ContextMenuService } from "./service";
import { TViewerEvtCtxData } from "src/viewerModule/viewer.interface";
@Directive({
selector: '[ctx-menu-host]'
})
export class CtxMenuHost impleme... |
f508a7df6a20fe822832a14a306df3a9aefde7c1aac61effe509169a90ff1138 | TypeScript | 785 | 31 | import { InjectionToken } from "@angular/core";
import { MatDialogConfig, MatDialogRef } from "src/sharedModules/angularMaterial.exports"
export enum EnumActionToWidget{
OPEN,
CLOSE,
}
export interface IActionWidgetOption{
onClose?: () => void
data?: any
overrideMatDialogConfig?: Partial<MatDialogConfig>
... |
1413ed4aa9b3bf8aec46fedaab7338da55c9bf89d098f40396ea552cf631db6e | TypeScript | 786 | 27 | export const simpleTextConfig = `<View>
<Text name="text" value="$text"/>
<Labels name="tag" toName="text">
<Label value="region" background="green"/>
</Labels>
</View>`;
export const simpleHyperTextConfig = `<View>
<HyperText name="text" value="$text"/>
<Labels name="tag" toName="text">
<Label value... |
dcbcb160a8a2c0b9a149d7704d7df6c9dcbd8c12fd103174072db244d534aa65 | TypeScript | 786 | 30 | export const AUDIO_URL = "/public/files/barradeen-emotional.mp3";
export const shortcutTextareaConfig = (rows = 1) => `
<View>
<TextArea name="text" toName="audio" editable="true" rows="${rows}">
<Shortcut alias="[-]" value="-" hotkey="1" />
<Shortcut alias="[ + ]" value=" + " hotkey="2" />
<Shortcut ali... |
5569671fab42ad4207387cad38e11a09c9e8fec2d2883415d550895ac5360ebd | TypeScript | 787 | 23 | /**
* @humansignal/ui AI chat kit
*
* Presentation-only primitives for agent chat surfaces. Patterns inspired by
* Beautiful UI (https://beautiful-ui-five.vercel.app) — adapted with HumanSignal
* semantic light/dark tokens. No Beautiful UI source was copied; attribution is
* for design inspiration only.
*
* Sur... |
d17924fa8b7aad0d02d250ac2c60aea0707ef066f51b9c7a83b738f78e29cdc1 | TypeScript | 787 | 41 | /**
* @file Contact Store
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Store, { StoreField } from './store'
/**
* Bond store
*/
export default class ContactStore extends Store {
index1: Uint32Array
index2: Uint32Array
type: Uint8Array
get _defaultFields () {
return [
... |
0e93fa77fa786113094fa698cc5bfbec6b5cfdb9aa8f53976bae5c21f58155fb | TypeScript | 788 | 16 | /*
This is an interface to contain the response to all but one POST request.
Each POST request indicates a task used in backend logic, which gets
returned, as well as a status message depending on the processing
that occurs in the backend. The output is useful for if there is any data
to return to the... |
c7fc8187ae1e5ff7222f30f772cf4d819f3f07f9bf4774e9024d56ad7df978c9 | TypeScript | 788 | 10 | /**
* @file Viewer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
export declare function createProgram(gl: WebGLRenderingContext, shaders: WebGLShader[], attribs?: string[], locations?: number[]): WebGLProgram | null | undefined;
export declare function loadShader(gl: WebGLRenderingContext, s... |
a346a91c5a9435da338330fef4a5cfb219c5ce16118bf1e6ff01718bdeb13025 | TypeScript | 791 | 21 | /**
* @file Callback Trajectory
* @author Tarn W. Burton <twburton@gmail.com>
* @private
*/
import Structure from '../structure/structure';
import Trajectory, { TrajectoryParameters } from './trajectory';
declare type RequestCallback = (responseCallback: Function, i?: number, atomIndices?: number[][]) => void;
/**
... |
b4d23f7871625463eda10319bbdc9153d3048288d88c98af243d5fc6095936cc | TypeScript | 796 | 26 | /**
* @file ChemComp Map
* @author Paul Pillot <paul.pillot@tandemai.com>
* @private
*/
import Structure from "../structure/structure";
import { ResidueBonds } from "../structure/structure-utils";
interface ChemCompBonds {
atom1: string[];
atom2: string[];
bondOrders: number[];
}
declare class ChemCompM... |
495c437540614d265d06679a0739915078c2d6243ab452f52488a5faa512fa01 | TypeScript | 798 | 25 | /**
* @file Partialcharge Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Colormaker, { ColormakerParameters, ColormakerScale } from './colormaker';
import AtomProxy from '../proxy/atom-proxy';
/**
* Color by partial charge. The {@link AtomProxy.partialCharge} property is use... |
6eccbf4d8c1e726bf164e43402bf59712433e942929028f20ac79d76c1b344a6 | TypeScript | 798 | 15 | /**
* What to show when the active data source does not implement a surface.
*
* A `MetadataDataSource` advertises what it supports by which optional fetchers
* it defines, and the hooks disable themselves when one is absent. That keeps a
* missing surface from erroring — but "disabled" renders as an *empty* list,... |
300bff7338e9ee4bf77ac29c619d52938237c375f31eb4b879586b6d0f51880a | TypeScript | 800 | 29 | // Custom commands can be executed with `cy.[command_name]`
import "./commands";
import "@cypress/code-coverage/support";
// Output spec steps
require("cypress-terminal-report/src/installLogsCollector")({
filterLog: ([type, message]: [string, string]) => {
// Suppress noisy webpack-dev-server warnings
if (t... |
3749805de583091c3cc06b33f27581673108400ee26430c82e8af61a337ecaaa | TypeScript | 800 | 26 | import { Component, Input } from "@angular/core";
export type TypeMatBtnStyle = 'mat-button' | 'mat-raised-button' | 'mat-stroked-button' | 'mat-flat-button' | 'mat-icon-button' | 'mat-fab' | 'mat-mini-fab'
export type TypeMatBtnColor = 'basic' | 'primary' | 'accent' | 'warn'
@Component({
selector: 'iav-dynamic-mat... |
9cf49faf20dd5f806c92ccd2c840719d61ead5644a067d16c0cdfd4d26dce261 | TypeScript | 803 | 38 | class CollapseHelper {
private get _baseRootSelector() {
return ".ant-collapse";
}
private _rootSelector: string;
constructor(rootSelector) {
this._rootSelector = rootSelector.replace(/^&/, this._baseRootSelector);
}
get root() {
return cy.get(this._rootSelector);
}
get panels() {
re... |
cf57a5b6a1a071b2a147e5e46fefb46128f74480599d56d7dd52a7863468ef4c | TypeScript | 803 | 27 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { SapiViewsCoreAtlasModule } from "./atlas/module";
import { SapiViewsCoreParcellationModule } from "./parcellation/module";
import { SapiViewsCoreRegionModule } from "./region";
import { SapiViewsCoreRichModule } from "./r... |
64e55a2fd1ab473f3cf3c4459b95883eb0d7662970837498d9ccc0637e0326ee | TypeScript | 807 | 34 | import { Injectable } from "@angular/core";
import { BehaviorSubject } from "rxjs";
import { debounceTime, shareReplay } from "rxjs/operators";
import { THoverConfig } from "src/util/injectionTokens";
@Injectable({
providedIn: 'root'
})
export class MouseOverSvc {
#messages: THoverConfig[] = []
#messages$ = ne... |
d9dee4e50bbad30e1d49d42673d1afc1a021146337af7df55af314e90bf6c494 | TypeScript | 808 | 21 | import { Pipe, PipeTransform } from "@angular/core";
import { PluginManifest } from "./types";
import { SxplrAtlas, SxplrParcellation, SxplrTemplate } from "src/atlasComponents/sapi/sxplrTypes";
@Pipe({
name: 'pluginDisabledReasons',
pure: true
})
export class PluginDisabledReasons implements PipeTransform {
pu... |
d3793b7adc0a7ecc94b9dc8ee98ca6af5abac2d9d0c8afbbc76d1e0282d77ff9 | TypeScript | 810 | 41 | import { SpanStatusCode } from '@opentelemetry/api';
/**
* Enum representing the state of a trace
*/
export enum TraceState {
/**
* Unspecified trace state
*/
STATE_UNSPECIFIED = 'STATE_UNSPECIFIED',
/**
* Trace successfully completed
*/
OK = 'OK',
/**
* Trace encountered an error
*/
... |
6f1a275ea57231043bf77eb83ee8a8806e4a3de253f619ec268cca3f5335153b | TypeScript | 812 | 24 | // Avoid having an export on the first line for istanbul
const capitalizeFirstLetter = (str: string) =>
str.charAt(0).toUpperCase() + str.slice(1);
export const toTitleCase = (str: string | null | undefined) => {
if (!str) return '';
const words = str.split(' ');
const titleCasedWords = words.map((word) => ca... |
2fe6841713963de9eb3504f8841c45892cd3488582b3c8f8fa273dcfb98b06dc | TypeScript | 814 | 29 | /**
* @file Xml Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { XMLNode } from '../utils/parse-xml';
import Parser, { ParserParameters } from './parser';
import Streamer from '../streamer/streamer';
export interface XmlParserParameters extends ParserParameters {
useDomParser... |
4d4df212bf7ea6b981b70672ed74173d986b8e8ee9259f599c15bedc675264c6 | TypeScript | 814 | 25 | import { createSelector, select } from "@ngrx/store";
import { pipe } from "rxjs";
import { distinctUntilChanged, map } from "rxjs/operators";
import { SxplrAtlas, SxplrParcellation, SxplrTemplate } from "src/atlasComponents/sapi/sxplrTypes";
import { jsonEqual } from "src/util/json";
import * as selectors from "./sele... |
53df8b16c70e5ae4cb2b437d238412e530b92fd02cdafe59dca92fb0a254e93d | TypeScript | 815 | 33 | import { Component, Optional, Inject } from "@angular/core";
import { MAT_DIALOG_DATA } from "src/sharedModules/angularMaterial.exports";
interface IDialogAction{
type: 'mat-button' | 'mat-flat-button' | 'mat-raised-button' | 'mat-stroked-button'
color: 'primary' | 'accent' | 'warn' | 'default'
dismiss: boolean
... |
90b4d3e990393bf249ef71cb03759aeb85e1cf89fc2c65501f4b2e383612ecb1 | TypeScript | 816 | 23 | /**
* Examples
*
* * argo-events/EventSource/webhook
* * argo-events/EventSource/webhook/example
* * argo-events/Sensor/webhook
* * argo-events/Trigger/webhook/example
* * argo-events/Conditions/webhook/example - condition
* * argo-events/Workflow/webhook - condition
*/
type Type = 'EventSource' | 'Sensor' | '... |
d11f911c6f5a04da631107fba10254b93ceb46c9b62f0f9d6cf70e46aad7fe2c | TypeScript | 818 | 26 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SlSpotlightDirective } from './sl-spotlight.directive';
import { SpotlightBackdropComponent } from './spotlight-backdrop/spotlight-backdrop.component';
import { SpotLightOverlayDirective } from './spot-light-overlay.direc... |
3251a06f760244f1d3257bbc0aac1986462aa419811b3fc1b28eb484bda56480 | TypeScript | 819 | 30 | import type { FreshnessStatusValue } from '../domain/status';
/**
* GraphQL freshness status enum (capitalized values). Accepts the
* string-literal union so any consumer GQL client's enum can pass in without
* cross-module enum nominal-type issues.
*/
export type GqlFreshnessStatusLiteral =
'Pass' | 'Warn' | 'E... |
bab7873c7a8c60c67f1534617e3eec03875d12a8814b9ba4458e2d91c41d8f94 | TypeScript | 822 | 24 | import { useCallback } from "react";
import { useAtomValue } from "jotai";
import { themeAtom } from "../lib/ThemeToggle/ThemeToggle";
import { getTokenColor, type GetColorFn, type GetTokenColorOptions, type Theme } from "../utils/getTokenColor";
/**
* Hook that returns a theme-aware color getter function.
* Automat... |
8632a5279e80d62a0214caeb7084d216c5df5efb457d31920da7f77bee67fa32 | TypeScript | 823 | 34 | /**
* @file Value Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { ColormakerRegistry } from '../globals'
import Colormaker, { VolumeColormakerParams, ColormakerScale, manageColor } from './colormaker'
/**
* Color by volume value
*/
class ValueColormaker extends Colormake... |
81ce6db0dd5e3fde62e95d922ae78fa02642ceea61a3688e5943ac321bead7c1 | TypeScript | 829 | 32 | /**
* @file Tiled Renderer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Camera, WebGLRenderer } from 'three';
import Viewer from './viewer';
export interface TiledRendererParams {
factor?: number;
antialias?: boolean;
onProgress?: Function;
onFinish?: Function;
}
dec... |
ef77f7c260f30c15e96b1828402ebd6d4f39c4cef5fe11ee175c4971c9bb1f79 | TypeScript | 830 | 22 | import {useEffect, useRef, useState} from 'react';
/**
* useTransition is a React hook which returns a boolean indicaating whether a transition which takes a fixed amount of
* time is currently underway. At the time of writing, it is primarily used for syncing JavaScript logic with CSS
* transitions.
*/
export fun... |
468ef3a7905365971e42f8bf4c4896aa6878867312457051614d0068192cfb31 | TypeScript | 831 | 24 | export const imageToolsConfig = `<View>
<Image name="image" value="$image" />
<Rectangle name="rect" toName="image" />
<Ellipse name="ellipse" toName="image" />
<Polygon name="polygon" toName="image" />
<KeyPoint name="keypoint" toName="image" />
<Brush name="brush" toName="image" />
</View>`;
... |
95728a05900d45c407d6f6b6c8597dc3ece1c568a6af31bca55a1c9da1ee3ba4 | TypeScript | 832 | 22 | /**
* Library that serializes and deserializes JSON data to/from URL-safe strings
* using gzip to minimize the size of the serialized data.
*/
import { gzip, ungzip } from "pako";
import { fromUint8Array, toUint8Array } from "js-base64";
import { packJSON } from "./packJSON";
export const deserializeJsonFromUrl = ... |
e62bb4ba627008ae29c5b7f0a8a3cc374d1e19410f392099ec30728d50e57c03 | TypeScript | 832 | 23 | /**
* @file Metal Binding
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import Structure from '../../structure/structure';
import { Features } from './features';
import { Contacts } from './contact';
/**
* Metal binding partners (dative bond or ionic-type interaction)
*/
export declare function addMeta... |
c76ff87493439ee7b7a254e5508db3ec83e1cb093ec5778840eab93090be0642 | TypeScript | 834 | 19 | /**
* 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... |
870a9dd292ba2ae7d94049ee6abcb9dbf48e60970bf989afe4dbb3c9e052e6d7 | TypeScript | 837 | 26 | import StringStreamer from '../../src/streamer/string-streamer'
import PdbqtParser from '../../src/parser/pdbqt-parser'
import { Structure } from '../../src/ngl'
import { join } from 'path'
import * as fs from 'fs'
describe('parser/pdb-parser', function () {
describe('parsing', function () {
it('translates PD... |
1bb1894aba49ab948b4f020c2ca34b207f7574db1f80649b53803417b3f232b4 | TypeScript | 838 | 23 | const units: {[key: string]: number} = {
// https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go
'Ki': Math.pow(2, 10),
'Mi': Math.pow(2, 20),
'Gi': Math.pow(2, 30),
'Ti': Math.pow(2, 40),
'Pi': Math.pow(2, 50),
'Ei': Math.pow(2, 60),
// https://www.busines... |
32e975192d5a15878d97da044c5c6b2e251cc6858792274c538e8bccd68e072d | TypeScript | 838 | 33 | import { CommonModule } from "@angular/common";
import {CUSTOM_ELEMENTS_SCHEMA, NgModule} from "@angular/core";
import { SAPI } from "src/atlasComponents/sapi";
import { ConnectivityBrowserComponent } from "./connectivityBrowser/connectivityBrowser.component";
import { ReactiveFormsModule } from "@angular/forms";
impor... |
5fe901b4cfecec8f3edf8a856cb948fad1e05eeaed696a4245809f0b07f63e1e | TypeScript | 838 | 19 | /**
* 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... |
ca6c613383da0353fe5139fe2e85ae05fa3337499e6722ba518baff2badc352e | TypeScript | 838 | 18 | /**
* @file Align Utils
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Structure from '../structure/structure';
/**
* Perform structural superposition of two structures,
* optionally guided by a sequence alignment
* @param {Structure|StructureView} s1 - structure 1 which is superpos... |
023b03036dde298f2b9b4a391c4792b1d1b9313f2406a9db6a9cd8d260744abc | TypeScript | 841 | 27 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { BottomMenuCmp } from "./bottomMenuCmp/bottomMenu.component";
import { ATPSelectorModule } from "src/atlasComponents/sapiViews/core/rich/ATPSelector";
import { SmartChipModule } from "src/components/smartChip";
import { Sa... |
0e7531354780b26fcd7d14deee1dac4d01ddb887f3a8005baaee6d785ed8ed9a | TypeScript | 841 | 20 | /**
* 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... |
c3a228be2390523b3a9fbdb2ec11295a65f94f2afabccb1fe8797fe7a55aad91 | TypeScript | 841 | 28 | import { LabelStudio, Sidebar } from "@humansignal/frontend-test/helpers/LSF";
describe("Outliner - Regions tree", () => {
const text = "a".repeat(30);
const config =
'<View><Text name="text" value="$text"/><Labels name="labels" toName="text"><Label value="Label_1" /></Labels></View>';
const result = text.sp... |
9802b980702f4eea2b0692e5337f458da3a374558fbad7c59c1ddd037f4f2318 | TypeScript | 842 | 19 | /**
* 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... |
ba5a4757420ef2e7cbc17333087d0ae4a6818c932265fc1d2680f3bbb779a148 | TypeScript | 844 | 20 | /*
* 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 ... |
d97aaa4b5cd7ae558fad754273e0b33f9b09c37926bae72a8cc4f8bfd519e656 | TypeScript | 844 | 20 | /**
* 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... |
972183e487970b9ba3a802102e7f6bdc8539243c93d7338688d46e6d41f02f4f | TypeScript | 845 | 20 | /**
* 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... |
460c79f6b03ac2fa67414f4b0f4afa391b1eca2ae410b4130eb2f4ec9f798386 | TypeScript | 846 | 50 | /**
* @file Queue
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
class Queue<T> {
queue: T[] = []
pending = false
constructor(readonly fn: Function, argList?: T[]) {
this.next = this.next.bind(this)
if (argList) {
for (let i = 0, il = argList.length; i < il; ++i) {
... |
eb3a25d2bf7fd5c93baac39f4adc2178677f2511c15e16ca5b001366bc081af1 | TypeScript | 847 | 44 | /**
* @file Collection
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Component from './component'
import Element from './element'
class Collection<T extends (Component|Element)> {
constructor (readonly list: T[] = []) {
// remove elements from list when they get disposed
co... |
3c27295f5f5483d89c507ab1de8b2c7dd5457fd84c7744c2140f76ba4efd1b22 | TypeScript | 848 | 37 | /**
* @file Mapped Quad Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { BufferParameters, BufferData } from './buffer'
import MappedBuffer from './mapped-buffer'
const mapping = new Float32Array([
-1.0, 1.0,
-1.0, -1.0,
1.0, 1.0,
1.0, -1.0
])
const mappingIndices = ne... |
626a7d49cb169d0d63297d78cc3c9a528649fcde2753ae1975af0f5f4507a3a0 | TypeScript | 848 | 20 | /**
* 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... |
9366cba8c1042bfe2d92736e95caeaa5ff3357a3f12dbbfeb866eb99492cb67f | TypeScript | 848 | 27 | /**
* @file Bfactor Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Colormaker, { StuctureColormakerParams, ColormakerScale } from './colormaker';
import AtomProxy from '../proxy/atom-proxy';
/**
* Color by b-factor. The {@link AtomProxy.bfactor} property is used for coloring... |
06b673069faf2b0bb950a9788519fe416069ee4256c6984f9d647b10fef55011 | TypeScript | 850 | 28 | /**
* @file Superposition
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4 } from 'three';
import { Matrix } from '../math/matrix-utils';
import Structure from '../structure/structure';
declare class Superposition {
coords1t: Matrix;
coords2t: Matrix;
transformationM... |
2ef3474c15ac121320533f37483518920129873ce8859898e88773c55c3f2801 | TypeScript | 850 | 20 | /**
* 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... |
d2fc0cd51d0651f216fe4a69da8ffd77d0db3b0a14fc2dc6d4d7828635be07e0 | TypeScript | 850 | 19 | /**
* 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... |
ddf2ec10913f3088fcd04b1e9db528bc477df5689b8d3e1f2812d8810eb324e3 | TypeScript | 850 | 20 | /**
* 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... |
7447a871b816acf73356f82b1510dadbde86f3cdadc8d4322716cda23694b5c9 | TypeScript | 851 | 20 | /**
* 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... |
edfc49e4edd18b349b1a4c584080e03b91d7639acd6516d22e28ef7572ac7646 | TypeScript | 851 | 21 | // This file was automatically generated. Don't edit manually.
// Top level
export * as fusion from './fusion';
// Modules
export * as agent_interaction_pb from './agent_interaction_pb';
export * as beacon_pb from './beacon_pb';
export * as canvas_pb from './canvas_pb';
export * as copilot_pb from './copilot_pb';
exp... |
b57958b9f1212f40bd822f8fdd0b09ff3abea5a1dfb1d792abda4707d6d8eb4b | TypeScript | 852 | 30 | /**
* Codex notify hook handler.
*
* Codex passes the turn data as a JSON string in the first CLI argument:
* node cli.js '{"type":"agent-turn-complete","thread-id":"...","input-messages":[...],...}'
*
* Configured in ~/.codex/config.toml:
* notify = ["mlflow-codex"]
*/
import { ensureInitialized } from '.... |
50d89e06b729836dd1eb7762c50cbd9208ecbd33b320d33fcd283e850fffcae5 | TypeScript | 853 | 39 | /**
* @file Occupancy 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 occupancy
... |
8806fbd264058bde4f396fabb50fe1eb362a27aa6eb3e4dd182201a933521160 | TypeScript | 855 | 19 | /**
* 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... |
9f46fcb9406624f21354810ce813e0752a839e1ac7ffb102b64c0fb75b7f1a0c | TypeScript | 855 | 19 | /**
* 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... |
aaa0d73c241ee9dfa4c5f198c5a5dd931c6db4719b85703e94c5b6b10adce10e | TypeScript | 857 | 21 | /*
* 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 ... |
ed9807976e678fa1005970a10c24476052fabf8f2735b19981c358cd0c52df90 | TypeScript | 857 | 20 | import { atom } from "jotai";
import { getQueryParams } from "../utils/query";
export const defaultConfig = "<View>\n <!-- Paste your XML config here -->\n</View>";
export const configAtom = atom<string>(defaultConfig);
export const loadingAtom = atom<boolean>(false);
export const errorAtom = atom<string | null>(nul... |
6676d2b1fd1f3104c600aad80ab83f340752be9c70fcf5683df3172512faf814 | TypeScript | 858 | 21 | /**
* 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... |
f30bc44cd5e9a258c5dc60faa22be1f2e4d85b9c99f272405c221b9eace674d3 | TypeScript | 858 | 31 | /**
* Tiny ANSI styling helpers for the `mlflow-codex` CLI.
*
* No runtime dependency on `chalk`/`kleur`: we keep the bundle small and
* respect the usual opt-outs (non-TTY stdout, `NO_COLOR`, `FORCE_COLOR=0`).
*/
const COLOR_ENABLED = (() => {
if (process.env.FORCE_COLOR === '0' || process.env.NO_COLOR) {
... |
2b992046287794b21a80753bad24cf4d9a0ed7d67301f07649e24e9bd1343b37 | TypeScript | 859 | 20 | /**
* 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... |
2d71ba6011199ed62ddd41176fbacb11c25ff4120137ed44ea3f90de895e7ea7 | TypeScript | 860 | 39 | import { CommonModule } from "@angular/common";
import { Component, EventEmitter, Input, Output } from "@angular/core";
import { AngularMaterialModule } from "src/sharedModules";
@Component({
selector: 'sxplr-tab',
standalone: true,
imports: [
CommonModule,
AngularMaterialModule,
],
templateUrl: "./t... |
b8e777c8619ef9eb8ba7cc4742674ba210cdd8829ce459f5ee84eab2dc9bad93 | TypeScript | 861 | 44 | export const defaultStyle = {
fillcolor: "#666",
opacity: 0.2,
strokecolor: "#666",
strokewidth: 1,
};
export default {
FILL_COLOR: "",
STROKE_COLOR: "",
STROKE_WIDTH: 1,
// labels
LABEL_BACKGROUND: "#DA935D",
EMPTY_LABEL: "blank",
RELATION_BACKGROUND: "#fff",
// label on image
SHOW_LABEL_... |
ba6fbaf7b00df61476e7395d64820330190a20306dbea2c5572b73715f5099c1 | TypeScript | 861 | 21 | /**
* 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... |
87f81cca98c19940360a81e9a2c48c8b4df9c2d4763f9d8de455a563835edbad | TypeScript | 862 | 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 ... |
9dcced6b44d1da3a15902998da35d3b78fef46b32f96bb5733434e2b458fe77e | TypeScript | 862 | 43 | import { Injectable, OnDestroy } from "@angular/core";
import { BehaviorSubject, Subscription } from "rxjs";
export enum SCALE_ORIGIN {
LEFT = 'left',
RIGHT = 'right',
TOP = 'top',
BOTTOM = 'bottom',
CENTER = 'center',
}
@Injectable()
export class FabSpeedDialService implements OnDestroy{
public openState... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.