sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
db82259961a001b6537e7a149bb46c3111a0e6ec03111a605853c2e6409b8e9e | TypeScript | 219 | 13 | import { useRef } from "react";
export function useFirstMountState(): boolean {
const isFirst = useRef(true);
if (isFirst.current) {
isFirst.current = false;
return true;
}
return isFirst.current;
}
|
f4a6c54c395a91d059992565cb016d84a36b243592bffd8da6c301319ab31477 | TypeScript | 219 | 3 | // Re-exports @humansignal/core feature flags. New FF_* constants belong in
// services/lso/web/libs/core/src/lib/utils/feature-flags/flags.ts — not here.
export * from "@humansignal/core/lib/utils/feature-flags/ff";
|
1e972d05bb33ed0c0436ad1abc87ae81fab1144f84cf68acd3b364edfc07a28d | TypeScript | 220 | 6 | export function regionFlattener(region: any) {
return[
[ region ],
...((region.children && region.children.map && region.children.map(regionFlattener)) || []),
].reduce((acc, item) => acc.concat(item), [])
}
|
90013abc9aaef5e3918a24590eb275389118f43e96540a0d71b961e391645559 | TypeScript | 220 | 4 | /// Raw shadcn components for re-export
export { Skeleton } from "./shad/components/ui/skeleton";
export { Tabs, TabsList, TabsTrigger, TabsContent } from "./shad/components/ui/tabs";
export { cn } from "./utils/utils";
|
e48e5fca6ce36f47abadc79cae352161d9ba3ab19eb701889dd5e33e680038bd | TypeScript | 220 | 4 | export { ProviderSelectionStep } from "./provider-selection-step";
export { ProviderDetailsStep } from "./provider-details-step";
export { PreviewStep } from "./preview-step";
export { ReviewStep } from "./review-step";
|
9a0d07581d0441131c74af2ec392f1a13cb1d59bfecef2645971d3aa8522a3b5 | TypeScript | 221 | 13 | import { Component } from "@angular/core";
@Component({
selector: 'layout-four-panel',
templateUrl: './fourPanel.template.html',
styleUrls: [
'./fourPanel.style.css',
],
})
export class FourPanelLayout {
}
|
92d8d6bf22b0da52ce317fcab2e6ab79439de18f960062e405caffe980e31d2d | TypeScript | 222 | 13 | import { Component } from "@angular/core";
@Component({
selector: 'picture-in-picture-panel',
templateUrl: './pip.template.html',
styleUrls: [
'./pip.style.css',
],
})
export class PictureInPicturePanel {
}
|
dcdde0aa560205ec6396ee6e7edcd0dac41db99251ca34e3705e14530771a1f9 | TypeScript | 222 | 7 | export * from './copy';
export * from './CopyCommandSnippet';
export * from './types';
export * from './UpgradeCard';
export * from './UpgradeRailStack';
export * from './UpgradeRow';
export * from './UpgradeStatusPanel';
|
fe57c3d1ea6bced719523d81e8e0b975935cedee874c20dab81b73bf5b1a77c2 | TypeScript | 222 | 13 | import { Component } from "@angular/core";
@Component({
selector: 'layout-horizontal-one-three',
templateUrl: './h13.template.html',
styleUrls: [
'./h13.style.css',
],
})
export class HorizontalOneThree {
}
|
20727e61fac706d96afc1e6bad5679e1e28e6f17afb438bd1eaa441448445b74 | TypeScript | 224 | 8 | import { Observable } from "rxjs";
export class NotFoundError extends Error{}
export interface IKeyValStore {
getKeyVal(key: string): Observable<unknown>
setKeyVal(key: string, val: unknown): Observable<void|string>
}
|
d7a4301e33606019728149fe54fbec4f8af726184871018abfa81483ea42a789 | TypeScript | 224 | 8 | /**
* @file Constants
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
export declare const LeftMouseButton = 1;
export declare const MiddleMouseButton = 2;
export declare const RightMouseButton = 3;
|
862fa8f3debd82d76c0879fdce06e2c14903c837389b88e67a017a7954d21002 | TypeScript | 226 | 3 | export const ANNOTATION_KEY_POD_NAME_VERSION = 'workflows.argoproj.io/pod-name-format';
export const ANNOTATION_TITLE = 'workflows.argoproj.io/title';
export const ANNOTATION_DESCRIPTION = 'workflows.argoproj.io/description';
|
1648f35ae401c64c0f9608ded612752e6f48fc06f429a39c84611c7315cea37d | TypeScript | 227 | 7 | // This file was automatically generated. Don't edit manually.
// Top level
// Modules
export * as vortex_options_pb from './vortex_options_pb';
export * as vortex_telemetry_contexts_pb from './vortex_telemetry_contexts_pb';
|
45490a1131580fa8d55bcea1723aee1df64c45df742495188a71b10dd863668c | TypeScript | 228 | 8 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SpotlightBackdropComponent } from './spotlight-backdrop.component';
describe('SpotlightBackdropComponent', () => {
// TO BE IMPLEMENTED
});
|
3864d57f315edac8c7383a780ad18a2fb4d723a3430ce51f7eea939a14d2f5b9 | TypeScript | 229 | 5 | export * as selectors from "./selectors"
export * as actions from "./actions"
export { reducer, PluginStore, defaultState } from "./store"
export { Effects } from "./effects"
export { nameSpace, INIT_MANIFEST_SRC } from "./const" |
b00e2239e55b214ce242662e9f5143ea06019acc505f889a7a1c25d2b583b073 | TypeScript | 229 | 9 | import * as pages from "./pages";
export { pages };
// Hooks
export { useStateHistory, type StateHistoryItem, type StateHistoryResponse } from "./hooks/useStateHistory";
// Components
export * from "./components/state-chips";
|
bada6b2e4e9c343ff12cd3173bc9d8621a7334581fb67fad331051ec0c33d811 | TypeScript | 229 | 9 | import { TestBed } from '@angular/core/testing';
import { SlServiceService } from './sl-service.service';
import { SpotLightModule } from './spot-light.module';
describe('SlServiceService', () => {
// TO BE IMPLEMENTED
})
|
5569ac9b59eaff306ba638289781f0b3d63ae98f754aa67fda209ed4595544e1 | TypeScript | 230 | 10 | /**
* @file Pqr Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import PdbParser from './pdb-parser';
declare class PqrParser extends PdbParser {
get type(): string;
}
export default PqrParser;
|
74e5cd4b38b3b95e4e29932ff4397d4daa8a02988e1c21d205857e22f5b7e1a0 | TypeScript | 230 | 10 | export type UsageDataPoint = {
date: string; // YYYY-MM-DD format
builds: number;
reused: number;
runDuration: number; // in seconds
creditsUsed: number;
creditsSaved: number;
cost: number;
costSavings: number;
};
|
6c61ea5aa47e1ab57233b130ef012a76ba94beef45fa01e30fae6bae27d10e21 | TypeScript | 231 | 9 | /**
* @file Symmetry Utils
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4 } from 'three';
export declare function getSymmetryOperations(spacegroup: string): {
[k: string]: Matrix4;
};
|
e442405aad8d3a12c1202fa4ba1848358d2e823a1c736d3cbd5c5ab97d365eea | TypeScript | 231 | 11 | /**
* @file Symmetry Constants
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
export declare const SymOpCode: {
[k: string]: string;
};
export declare const EncodedSymOp: {
[k: string]: string;
};
|
21b39eb145779f3fb15b7c88404dbe9d83e3c9afe4cd0c888696872fb0f9933e | TypeScript | 233 | 12 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'getUniquePipe',
pure: true
})
export class GetUniquePipe implements PipeTransform {
public transform(arr: any[]) {
return Array.from(new Set(arr))
}
}
|
b88af44df867019dae6ef3ecfaa838232791977a66967c2d0311b9920e8b454c | TypeScript | 233 | 8 | /**
* @file Selection Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { SelectionRule } from './selection-test';
declare function parseSele(string: string): SelectionRule;
export { parseSele };
|
2b61ed1469225c6635c193a21430d3043a1c53e97df8b31bacc5b9a30d169877 | TypeScript | 234 | 9 | import { getHsTelemetry } from "./contract";
export async function refreshTelemetrySessionJwt(): Promise<string | null> {
try {
return (await getHsTelemetry()?.refreshSessionJwt?.()) ?? null;
} catch {
return null;
}
}
|
0c02ce511e5cf1ea5e05a58e0a863e682dc8c98392023570ba55745a58de32d7 | TypeScript | 236 | 10 | /**
* @file Pdbqt Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import PdbParser from './pdb-parser';
declare class PdbqtParser extends PdbParser {
get type(): string;
}
export default PdbqtParser;
|
60c2d9501059bb62f79ad236d3202373c1aef14707f92f8586e4129232261e02 | TypeScript | 236 | 12 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'nmToMm',
pure: true
})
export class NmToMm implements PipeTransform{
public transform(nums: number[]): number[] {
return nums.map(num => (num / 1e6))
}
}
|
176fc2b91376bec5cda4e77b39c2f89ad2f528ea521bc607b9a6e9e26bc0a6fd | TypeScript | 238 | 20 | export const WS_ZOOM_X = {
min: 1,
max: 1500,
step: 10,
default: 1,
};
export const WS_SPEED = {
min: 0.5,
max: 2,
step: 0.01,
default: 1,
};
export const WS_VOLUME = {
min: 0,
max: 1,
step: 0.01,
default: 1,
};
|
1a7e5aa1825eeb3d270055159fbfb752a8b75d539863307b15144c2ac5e8f4bc | TypeScript | 238 | 11 | /**
* @file Math Constants
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
export const EPS = 0.0000001
export const TwoPI = 2 * Math.PI
export const DEG2RAD = Math.PI / 180
export const RAD2DEG = 180 / Math.PI
|
277f50aaf1b59a5672d54a3667ddcdeaa48095da84730542f62c7dd4bb2796d8 | TypeScript | 239 | 7 | export * from "./tree-context";
export * from "./tree-node";
export * from "./tree-search";
export * from "./tree-select";
export * from "./tree-selected";
export * from "./multi-tree-select";
export * from "./multi-tree-select-dropdown";
|
99129bae028a8dfd8cd68407f043c9a0148490dafcd01d8e0c189c10f99d5788 | TypeScript | 240 | 9 | import { Directive, Inject, TemplateRef } from "@angular/core";
@Directive({
selector: `ng-template[sxplrSmartChipMenu]`
})
export class SmartChipMenu {
constructor(@Inject(TemplateRef) public templateRef: TemplateRef<unknown>){}
}
|
114a43ede7d972694f2a3519d8461757a69ac3105c1d820aef0c80e0160c1717 | TypeScript | 242 | 9 | import { Directive, Inject, TemplateRef } from "@angular/core";
@Directive({
selector: `ng-template[sxplrSmartChipAction]`
})
export class SmartChipAction {
constructor(@Inject(TemplateRef) public templateRef: TemplateRef<unknown>){}
}
|
14db55e3e3d86343a1e55b013ee953fc0fb7bf72deb420e91fd04d8cca3a5416 | TypeScript | 242 | 10 | /**
* @file File Streamer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Streamer from './streamer';
declare class FileStreamer extends Streamer {
_read(): Promise<unknown>;
}
export default FileStreamer;
|
a1ded958d7ec349643d57914d9e6214b27d60433fa61cf0f1f4c453f4b8cdf7b | TypeScript | 242 | 9 | import { Directive, Inject, TemplateRef } from "@angular/core";
@Directive({
selector: `ng-template[sxplrSmartChipHeader]`
})
export class SmartChipHeader {
constructor(@Inject(TemplateRef) public templateRef: TemplateRef<unknown>){}
}
|
6c9b32edc34d8dcca931a4e2a939e594c73a1dc84bbcce5360b4237aa7908f93 | TypeScript | 244 | 11 | export type {};
declare global {
interface Window {
APP_SETTINGS: Record<string, any>;
FEATURE_FLAGS: Record<string, boolean>;
LSF_CONFIG: Record<any, any>;
DEFAULT_LSF_INIT: boolean;
LabelStudio: any;
Htx: any;
}
}
|
d4f813f81499ac5f43cb5b4a9d4e20e46aa0508737c57d717225e6e743cab6a4 | TypeScript | 244 | 6 | /**
* Stub for @humansignal/editor in tests so konva/canvas and full editor don't load.
* PreviewPanel checks `if (!LabelStudio) return` so we export null to skip mounting.
*/
export const LabelStudio = null;
export default { LabelStudio };
|
d83f61dc210a7cbe0362abd662d6220b650d24166b274a557b3b5154a56bccd2 | TypeScript | 245 | 8 | import { CategoryAccDirective } from './category-acc.directive';
describe('CategoryAccDirective', () => {
it('should create an instance', () => {
const directive = new CategoryAccDirective();
expect(directive).toBeTruthy();
});
});
|
debf827702560e7ac60563915a3a1f0e849b77488fb77ea845dc66b4b6dbd55a | TypeScript | 245 | 9 | /**
* @file Math Constants
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
export declare const EPS = 1e-7;
export declare const TwoPI: number;
export declare const DEG2RAD: number;
export declare const RAD2DEG: number;
|
18787b50bfbf3b76155bb077d0d64782452c927bbc0ab3d86fd086c99c89d6b1 | TypeScript | 246 | 9 | import { Directive, Inject, TemplateRef } from "@angular/core";
@Directive({
selector: `ng-template[sxplrSmartChipContent]`
})
export class SmartChipContent {
constructor(@Inject(TemplateRef) public templateRef: TemplateRef<unknown>){}
}
|
1374b647c2a3b05ff50a481162d51d596918c67ee134ecefb1c1493a2c227087 | TypeScript | 247 | 10 | import { defineConfig } from "cypress";
export default defineConfig({
e2e: {
specPattern: "src/**/*.cy.{js,jsx,ts,tsx}",
supportFile: "src/support/e2e.ts",
baseUrl: "http://localhost:8080/",
injectDocumentDomain: true,
},
});
|
19ff8aec31ac41448b446d5a5b0186fa35b0efd83e60decd91990ad817d93091 | TypeScript | 247 | 11 | export const Tooltip = {
get root() {
return cy.get('[data-testid="tooltip"]');
},
get body() {
return this.root.find('[data-testid="tooltip-body"]');
},
hasText(text) {
this.body.should("be.visible").contains(text);
},
};
|
399701e9a3cbcfb2a3eaa98437246f6c3077bd7d51159914b9ca3dab44fb2e37 | TypeScript | 248 | 13 | import { Component } from "@angular/core";
@Component({
selector: 'three-surfer-viewer-config',
templateUrl: './tsViewerConfig.template.html',
styleUrls: [
'./tsViewerConfig.style.css'
]
})
export class ThreeSurferViewerConfig {
}
|
3a460756331c9ea62baf4728795032532398c881845ef94d83bd1fd3d6c1c5f0 | TypeScript | 248 | 6 | export * as actions from "./action"
export * as selectors from "./selector"
export * as const from "./const"
export { nameSpace } from "./const"
export { reducer, AtlasAppearanceStore, defaultState } from "./store"
export { Effect } from "./effect" |
7ba15b9436a16a7be2ac8af0da49d69a1844772f245225cd9ab8e2a43576e0ac | TypeScript | 248 | 4 | export { WidgetModule } from './widget.module'
export { WidgetPortal } from "./widgetPortal/widgetPortal.component"
export { WidgetService } from "./service"
export { EnumActionToWidget, TypeActionToWidget, IActionWidgetOption } from './constants'
|
bcec9fe37ce262a30292c00500b4da4be689bb5d8cc9ef3eba30734d33816e1a | TypeScript | 249 | 15 | /**
* @file Version
* @private
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import * as data from '../package.json'
/**
* Version name
* @type {String}
*/
const Version = (data as any).version as string
export default Version
|
20c09e18344fdcb70bc85344689ce9c52246d025aa65c915d17d3d5af9bad709 | TypeScript | 250 | 7 | /**
* @file Representation Utils
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Viewer from '../viewer/viewer';
export declare function makeRepresentation(type: string, object: any, viewer: Viewer, params: any): any;
|
bd3e0d60da7010f25a689c9607c23a5e16584e5af5cef1cdd209aa8dd5f5d660 | TypeScript | 250 | 5 | export const TOOL_ID = "theme-toggle";
export const ADDON_ID = "storybook-addon-theme-toggle";
export const PARAM_KEY = "theme-toggle:prefers-color-scheme";
export const DEFAULT_THEME = "auto";
export const THEMES = [DEFAULT_THEME, "light", "dark"];
|
8eee9b3dfa688a5ccc903c4885be62f0cafe8370e47cc3c7bcc3c49f1f150ce3 | TypeScript | 251 | 10 | /**
* @file Network Streamer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Streamer from './streamer';
declare class NetworkStreamer extends Streamer {
_read(): Promise<unknown>;
}
export default NetworkStreamer;
|
b39bb9df5bf751b3a21dfcdfc0b20473c7cf9ac519befe6dbf7b769a71880466 | TypeScript | 251 | 12 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'featureNamePipe',
pure: true,
})
export class FeatureNamePipe implements PipeTransform{
public transform(name: string): string {
return name.split(".").slice(-1)[0]
}
}
|
24ade9b155f04a172452411b58301952929d2319e50c3e2f7cd35ed3c4a99ff4 | TypeScript | 253 | 4 | export * as actions from "./actions"
export { Annotation, AnnotationState, reducer, defaultState, TypesOfDetailedAnnotations, UnionAnnotation, AnnotationColor } from "./store"
export { nameSpace } from "./const"
export * as selectors from "./selectors"
|
8028c00b8a07f40498ac2166245894f0c040d4d6d3ee2f69966364ee2bc9745b | TypeScript | 253 | 6 | /**
* Re-exports of lodash-replacement utilities from es-toolkit.
* Uses es-toolkit/compat for lodash-compatible API (string keys in uniqBy, NaN handling in clamp, etc.).
*/
export { throttle, clamp, get, isMatch, uniqBy } from "es-toolkit/compat";
|
45b78bd4aec94f2ae9a52b7016d2b474d081f5bc5b9100dd0a24112ccb5a393f | TypeScript | 256 | 6 | export * as selectors from "./selectors"
export { fromRootStore } from "./util"
export { nameSpace, AtlasSelectionState } from "./const"
export { reducer, defaultState } from "./store"
export * as actions from "./actions"
export { Effect } from "./effects" |
a85bfcfa123f0ae64265d7ed69916bc10d07adfa81c3efbc93ca5f56998cf7ee | TypeScript | 257 | 10 | import {majorMinor} from './version';
describe('version', () => {
test('untagged', () => {
expect(majorMinor('untagged')).toEqual('untagged');
});
test('v0.1.0', () => {
expect(majorMinor('v0.1.0')).toEqual('v0.1');
});
});
|
6edacd100163e53b4256dd5c641be9794b35baed1d6034753d075d2efe6e5909 | TypeScript | 259 | 8 | import { LabelStudio } from "@humansignal/frontend-test/helpers/LSF";
import { FF_LSDV_4583 } from "../../../../../src/utils/feature-flags";
export const commonBeforeEach = () => {
LabelStudio.addFeatureFlagsOnPageLoad({
[FF_LSDV_4583]: true,
});
};
|
2158e547ed6e549795c91bde06bc0701a28be624f5ee793d12337848759abf1e | TypeScript | 260 | 5 | /** Parse `location.search`. Must use `URLSearchParams` so `+` decodes as space. */
export function parseLocationSearch(search: string | undefined): Record<string, string> {
if (!search) return {};
return Object.fromEntries(new URLSearchParams(search));
}
|
075fc2eccb0af1c9e241cb4f465cb2695423a5f6fc51e34b69eca14cd8afc244 | TypeScript | 262 | 6 | /**
* Shared asset URLs for integration tests.
* Use these to avoid duplicating URLs across data modules.
*/
export const IMAGE_URL_SAMPLE =
"https://htx-pub.s3.us-east-1.amazonaws.com/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg";
|
5ac7c3c868252fe07224dcc91195bad3497d9b3160ad143109c9fdb135ed57b0 | TypeScript | 263 | 6 | /** Above this size, CM6 skips schema autocomplete (syntax highlighting stays enabled). */
export const LARGE_DOCUMENT_CHAR_THRESHOLD = 100_000;
export function isLargeDocument(charCount: number): boolean {
return charCount >= LARGE_DOCUMENT_CHAR_THRESHOLD;
}
|
84b52cb716dd13174f88b15ebd9c9dca4ff809fc2ae9d3eaef98f0fc06031b45 | TypeScript | 263 | 8 | import { TRegionDetail } from "./types";
export function getPosFromRegion(region: TRegionDetail){
if (!!region?.props?.components?.[0]?.centroid) {
return region.props.components[0].centroid.map(v => v*1e6) as [number, number, number]
}
return null
} |
58d6215da354d176d0320648cfd8f53b376693e34052839aae4246a5c14aa16f | TypeScript | 266 | 12 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'mapToProperty',
pure: true
})
export class MapToPropertyPipe implements PipeTransform{
public transform(arr: any[], prop: string){
return arr.map(item => prop ? item[prop] : item)
}
}
|
de9068d80ce73dec54328aa59b36a4c744f3afce4f6aed6e74aba3d9ffab83a7 | TypeScript | 266 | 8 | import { SpotLightOverlayDirective } from './spot-light-overlay.directive';
describe('SpotLightOverlayDirective', () => {
it('should create an instance', () => {
const directive = new SpotLightOverlayDirective();
expect(directive).toBeTruthy();
});
});
|
83e6bcdc394cd7f0a013c0da65b340347b9f60c092bb03b70036cf04cf1eba1f | TypeScript | 267 | 10 | export const getParentUrl = () => {
// Check if in iframe, use labelstud.io playground url as fallback
if (window.self !== window.top) {
const url = "https://labelstud.io/playground/";
return new URL(url);
}
return new URL(window.location.href);
};
|
f36c45c6e7c1e85339f8d2a7d131faee4778d36ce723b45c6c56fce62e67c743 | TypeScript | 267 | 11 | import { VoiFeature } from "src/atlasComponents/sapi/sxplrTypes"
export { VoiFeature }
export function isVoiData(feature: unknown): feature is VoiFeature {
return !!(feature?.['bbox'])
}
export function notQuiteRight(_feature: unknown): string[] {
return []
}
|
0b610a14a23fc9bb2ab862185bd3a143f5b9cc555ee21a279661c11d32e42158 | TypeScript | 268 | 11 | /**
* @file Gro Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import StructureParser from './structure-parser';
declare class GroParser extends StructureParser {
get type(): string;
_parse(): void;
}
export default GroParser;
|
332db3cd56b3919983c6b69769ba2c78e0ad718b09a578c6c1bbdb3f79b5a76e | TypeScript | 268 | 15 | export const genres = {
Artifact: true,
Collapsed: true,
Container: true,
DAG: true,
HTTP: true,
Pod: true,
Plugin: true,
Retry: true,
Skipped: true,
StepGroup: false,
Steps: true,
Suspend: true,
TaskGroup: false
};
|
3db0f1b4fda260a2adb6d4fb163f0a2601a1a8acc5d3ab3c003ab45a1fb6bff5 | TypeScript | 268 | 11 | /**
* @file Top Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import StructureParser from './structure-parser';
declare class TopParser extends StructureParser {
get type(): string;
_parse(): void;
}
export default TopParser;
|
b064d623ea5b008e45961bb66c4c277ea907ec36307b7e815bd98fdce674d4f5 | TypeScript | 268 | 11 | /**
* @file Psf Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import StructureParser from './structure-parser';
declare class PsfParser extends StructureParser {
get type(): string;
_parse(): void;
}
export default PsfParser;
|
4c9f4db092239374a51e145dd4789efec0b61e49828cd4fe2ded293fd6cdd357 | TypeScript | 269 | 4 | export { FabSpeedDialModule } from './fabSpeedDial.module'
export { FabSpeedDialChild } from './fabSpeedDialChild.directive'
export { FabSpeedDialContainer } from './fabSpeedDialContainer.directive'
export { FabSpeedDialTrigger } from './fabSpeedDialTrigger.directive'
|
e75b816143a1024e9b913be092f46c073e50126071daebccebd7c0a7c74555fd | TypeScript | 271 | 11 | /**
* @file Mol2 Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import StructureParser from './structure-parser';
declare class Mol2Parser extends StructureParser {
get type(): string;
_parse(): void;
}
export default Mol2Parser;
|
47513288aa9b1bd1655669a88b40e87ac838c2cda789b55e6314a643d634c8e7 | TypeScript | 273 | 11 | import Streamer from './streamer';
/**
* Provides a streamer interface for a string.
* Used in unit tests
*/
declare class StringStreamer extends Streamer {
get type(): string;
get __srcName(): string;
_read(): Promise<any>;
}
export default StringStreamer;
|
ffd4de4771809ccefdee88323c5e912a998a218970536e377d207c943adfa459 | TypeScript | 275 | 21 | export type FontWeight =
| "normal"
| "bold"
| "bolder"
| "lighter"
| "initial"
| "inherit"
| "300"
| "400"
| "500"
| "600"
| "700"
| "800"
| "900";
export interface Padding {
top?: number;
bottom?: number;
left?: number;
right?: number;
}
|
75522a52ae09a41245eeb6427e1f401cd894231fcb63936f994b820af71c839c | TypeScript | 277 | 11 | /**
* @file Prmtop Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import StructureParser from './structure-parser';
declare class PrmtopParser extends StructureParser {
get type(): string;
_parse(): void;
}
export default PrmtopParser;
|
b5d7874c612b0431b7204f5c5f2008edfaaa3410472cee71605ccb754075c2ca | TypeScript | 277 | 15 | import { Directive, ViewContainerRef } from "@angular/core";
import { WidgetService } from "./service";
@Directive({
selector: `[widget-canvas]`
})
export class WidgetCanvas {
constructor(
wSvc: WidgetService,
vcr: ViewContainerRef,
){
wSvc.vcr = vcr
}
}
|
19857fcda9799e5d907895f7cd6028993b9e5b3c3f0f262693925d34528a7e0d | TypeScript | 278 | 7 | /**
* @file Edt
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { NumberArray } from '../types';
export declare function edt(data: NumberArray, width: number, height: number, f: NumberArray, d: NumberArray, v: NumberArray, z: NumberArray): void;
|
83cff74c832119f57a5f1f8f132d2cd866adfb1309c2ce60da20f2fa0c4b101b | TypeScript | 279 | 10 | import { createSelector } from "@ngrx/store";
import { PluginStore } from "./store"
import { nameSpace } from "./const"
const storeSelector = state => state[nameSpace] as PluginStore
export const initManfests = createSelector(
storeSelector,
state => state.initManifests
)
|
8c4a6e2d72f31c344321f7ef6f0958b66e0f19afed10e026f95622e1942289b5 | TypeScript | 279 | 13 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'combineFn',
pure: true
})
export class CombineFnPipe implements PipeTransform{
public transform(fns: CallableFunction[]): CallableFunction{
return () => {
for (const fn of fns) fn()
}
}
}
|
0c9ece3225893ab42a78059ac871f5ccb5fa2075fd519ad082e1d009eabbe4f3 | TypeScript | 282 | 7 | export { UtilModule } from './util.module'
export { CLICK_INTERCEPTOR_INJECTOR, ClickInterceptor, CONTEXT_MENU_ITEM_INJECTOR, TClickInterceptorConfig, TContextMenu } from './injectionTokens'
export {
DoublyLinkedList,
FindInLinkedList,
IDoublyLinkedItem
} from './LinkedList'
|
12672e07a939083fe8818625a3acd74af8e01b4841aee67140da1aadd2bfcbae | TypeScript | 282 | 12 | /**
* @file Dxbin Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import DxParser from './dx-parser';
declare class DxbinParser extends DxParser {
get type(): string;
get isBinary(): boolean;
_parse(): void;
}
export default DxbinParser;
|
8904729d7b5fc3ccc67b5ff7702713ee0bb0ccd8e13f090c2031af947d33a128 | TypeScript | 283 | 12 | declare class Iterator<T> {
next(): T;
prev(): T;
}
declare class RBTree<T> {
constructor(comparator: (a: T, b: T) => number);
insert(data: T): boolean;
remove(data: T): boolean;
findIter(data: T): Iterator<T>;
iterator(): Iterator<T>;
size: number;
} |
1838272dfdfb78bd6e423409ce8ee6f4586ddd75b1367b690d4ebb182ab631c9 | TypeScript | 284 | 12 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'numbers',
pure: true
})
export class NumbersPipe implements PipeTransform{
public transform(nums: number[], decimal: number = 2): number[] {
return nums.map(num => num.toFixed(decimal)).map(Number)
}
}
|
5cb465a9ac125960e389f53d2b383202bf28ead252e850564ad5c48532164a30 | TypeScript | 286 | 5 | export { Dropdown } from "./dropdown";
export { DropdownTrigger, useDropdown } from "./dropdown-trigger";
export { DropdownContext } from "./dropdown-context";
export type { DropdownRef, DropdownProps } from "./dropdown";
export type { DropdownContextValue } from "./dropdown-context";
|
7256873c659c144540bfb831422245664015cdcb90b604051fffadd9fe3d4823 | TypeScript | 287 | 17 | import { Pipe, PipeTransform } from "@angular/core";
type TObj = Record<string, any>
@Pipe({
name: 'mergeObj',
pure: true
})
export class MergeObjPipe implements PipeTransform{
public transform(o1: TObj|null, o2: TObj){
return {
...(o1 || {}),
...o2
}
}
}
|
e4a48e8e7921d9fa32d5f21520864ea2b661e1c8f2513164a13ece7f3ead45a7 | TypeScript | 287 | 15 | import { Directive, EventEmitter, OnInit, Output } from "@angular/core";
@Directive({
selector: '[sxplr-triggers]',
standalone: true
})
export class SxplrTriggers implements OnInit{
@Output('init')
init = new EventEmitter()
ngOnInit(): void {
this.init.emit(null)
}
}
|
51e22581fd3a332703608463e638a9d51dc456e436dcb2203c94886e51930466 | TypeScript | 289 | 11 | /**
* @file RCSB Datasource
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Datasource from './datasource';
declare class RcsbDatasource extends Datasource {
getUrl(src: string): string;
getExt(src: string): string;
}
export default RcsbDatasource;
|
80d7cff44551011405ef8e9fbf8eb5ab3e3f5f5a53e3d17aa10aef81ddafe928 | TypeScript | 289 | 11 | /**
* @file PDB Europe Datasource
* @author Paul Pillot <paul.pillot@tandemai.com>
* @private
*/
import Datasource from './datasource';
declare class PDBeDatasource extends Datasource {
getUrl(src: string): string;
getExt(src: string): string;
}
export default PDBeDatasource;
|
eb23f43fbdc04334d26189165ecb314c0fc4a61c27f54c425c9e6c4ca1fdfb5d | TypeScript | 289 | 11 | import { Color } from "./ngl"
export type TypedArray = (
Int8Array | Int16Array | Int32Array |
Uint8ClampedArray | Uint8Array | Uint16Array | Uint32Array |
Float32Array | Float64Array
)
export type NumberArray = number[] | TypedArray
export type GenericColor = number|string|Color |
7cfbc77a4904bb9673ef8aaaed45bc0da82359a5907197042ace60f54b802abd | TypeScript | 290 | 8 | import type { RunStatus } from '../discoveryEnums';
/**
* GraphQL run status enum values (lowercase). Accepts the string-literal
* union so any consumer GQL client's enum can pass in without cross-module
* enum nominal-type issues.
*/
export type GqlRunStatusLiteral = `${RunStatus}`;
|
8f2e23c01c9c692a9080b7ada875e40a18c0899077645489b3441e804bd8c277 | TypeScript | 290 | 13 | /**
* @file Registry
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
export default class Registry {
name: string;
private _dict;
constructor(name: string);
add(key: string, value: any): void;
get(key: string): any;
get names(): string[];
}
|
eecc6b29f16db2831edec156ba46330e996c8cb741e0e34ad919441b216f8dc0 | TypeScript | 290 | 10 | import { SxplrParcellation } from "src/atlasComponents/sapi/sxplrTypes"
export class GroupedParcellation{
name: string
parcellations: SxplrParcellation[]
constructor(name: string, parcellations: SxplrParcellation[]){
this.name = name
this.parcellations = parcellations
}
}
|
2dc37d6169bcf2fed5d547b7da3f134daf6b3584374824bc309715ba480bf6a8 | TypeScript | 291 | 19 | declare module '*.json' {
const value: any
export default value
}
declare module '*.glsl' {
const value: string
export default value
}
declare module '*.vert' {
const value: string
export default value
}
declare module '*.frag' {
const value: string
export default value
} |
d5c9748caa20724fec07d3ee31980addb63ad7e8bc0487f0fd02e58f6fbc0d29 | TypeScript | 291 | 12 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'getProperty',
pure: true
})
export class GetPropertyPipe<R extends Record<string|number, unknown>> implements PipeTransform{
public transform(input: R, property: keyof R) {
return input && input[property]
}
}
|
bedb303869317b2d5145c0b329e31051284c444d07d514f7e6fde1f8b78e584a | TypeScript | 292 | 6 | /** Lowercase, domain-shaped freshness status. Independent of GraphQL casing. */
export type FreshnessStatusValue =
'pass' | 'warn' | 'error' | 'outdated' | 'unconfigured' | 'skipped' | 'unknown';
export type TestStatusValue =
'pass' | 'fail' | 'warn' | 'error' | 'skipped' | 'unknown';
|
ed2073d7669568eb1a8df55e70efe7258b3f04cb3ace4bed5a6110e15d501f58 | TypeScript | 293 | 14 | import { addons } from "storybook/manager-api";
import { create } from "storybook/theming/create";
const theme = create({
base: "dark",
brandTitle: "Label Studio",
brandUrl: "https://labelstud.io",
brandImage: "logo.svg",
brandTarget: "_blank",
});
addons.setConfig({
theme,
});
|
7097e9be6424bdad793666e18d0cfe8a27e4c0096b2fd22799fe19627dece4a6 | TypeScript | 294 | 12 | /**
* @file Sdf Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import StructureParser from './structure-parser';
declare class SdfParser extends StructureParser {
get type(): string;
_parse(): void;
_postProcess(): void;
}
export default SdfParser;
|
c21e5bd5ac7769e03a9cae70bbecfe84de5c7d5ac8a634534854a54b351d4fb0 | TypeScript | 295 | 11 | import { useEffect, useRef } from "react";
export const useMemoizedHandlers = <T extends Record<string, any>>(handlers: T): T => {
const handlersRef = useRef(handlers);
useEffect(() => {
Object.assign(handlersRef.current, handlers);
}, [handlers]);
return handlersRef.current;
};
|
17a2c494ef1bfc1b5498ae45809e3b7a26c099729d432b834ff3558dfb1250e8 | TypeScript | 296 | 12 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'hasSubMenu',
pure: true
})
export class HasSubMenuPipe<T extends object> implements PipeTransform{
public transform(item: T, getChildren: (obj: T) => T[]): boolean {
return (getChildren(item) || []).length > 0
}
}
|
b1b96a554425d68e9653cb5d965b7424c88aca43d8d330b861e8ac3a315ad72b | TypeScript | 296 | 11 | export const rect3Config = `
<View>
<Image name="image" value="$image" />
<Rectangle name="rect" toName="image" />
</View>
`;
export const simpleImageData = {
image:
"https://htx-pub.s3.us-east-1.amazonaws.com/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg",
};
|
86290b4f907f3b9aa9ec49771679301eeb33a28c49dc1d03f3c627ffb78eb0ce | TypeScript | 297 | 12 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'filterArray',
pure: true
})
export class FilterArrayPipe implements PipeTransform{
public transform<T>(arr: T[], filterFn: (item: T, index?: number, array?: T[]) => boolean){
return (arr || []).filter(filterFn)
}
}
|
9c7e983db6a0ab4954e8bbc2988a22725f2ec236acbf886eabd158ea040d9531 | TypeScript | 297 | 6 | import * as path from 'path';
// Shared filesystem locations, resolved relative to this file so they are
// independent of the working directory Playwright happens to run from.
export const AUTH_DIR = path.join(__dirname, '.auth');
export const STORAGE_STATE = path.join(AUTH_DIR, 'state.json');
|
c52dbfb5147a2d5e2936258e584dff8860acdd14b07a8484c9d7b3b10edb8ae5 | TypeScript | 298 | 11 | /**
* @file PubChem Datasource
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Datasource from './datasource';
declare class PubchemDatasource extends Datasource {
getUrl(src: string): string;
getExt(src: string): string;
}
export default PubchemDatasource;
|
11f23b7f1f6f9a59f8810741e30caa23d9fc007c373ca524cab3186c812a1c6b | TypeScript | 299 | 11 | /**
* @file Alphafold Datasource
* @author Fredric Johansson <fredric@fredricj.se>
* @private
*/
import Datasource from './datasource';
declare class AlphafoldDatasource extends Datasource {
getUrl(src: string): string;
getExt(src: string): string;
}
export default AlphafoldDatasource;
|
bad6b1c8730b82ad1ad0b4193c75823c9fe0efee8861a024ef400ed6b347a0a5 | TypeScript | 299 | 7 | import { TraceData } from '../../core/entities/trace_data';
import { TraceInfo } from '../../core/entities/trace_info';
export interface ArtifactsClient {
uploadTraceData(traceInfo: TraceInfo, traceData: TraceData): Promise<void>;
downloadTraceData(traceInfo: TraceInfo): Promise<TraceData>;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.