sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
eeee7fedd15fa54ffe17779922b0e18158f6cd69ea25c8a8ce18cfe628b88276 | TypeScript | 625 | 17 | import {} from 'jasmine'
import { ParseDoiPipe } from './parseDoi.pipe'
describe('doiPipe.pipe.ts', () => {
const pipe = new ParseDoiPipe()
describe('DoiParsePIpe' , () => {
it('should parse string without prefix by appending doi prefix', () => {
const result = pipe.transform('123.456')
expect(resu... |
2f6213aab4657a7063c49fe23fc833dc41468544a54855f8b52f8ca4f4f29e67 | TypeScript | 626 | 19 | /**
* @file Remote Trajectory
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Structure from '../structure/structure';
import Trajectory, { TrajectoryParameters } from './trajectory';
/**
* Remote trajectory class. Gets data from an MDsrv instance.
*/
declare class RemoteTrajectory ext... |
84d19cc9d289479fcdb6bf4df9cb3a1b248a67faf83245bd705c6a93bb902a81 | TypeScript | 626 | 17 | import {} from 'jasmine'
import { DoiParserPipe } from './doiPipe.pipe'
describe('doiPipe.pipe.ts', () => {
const pipe = new DoiParserPipe()
describe('DoiParsePIpe' , () => {
it('should parse string without prefix by appending doi prefix', () => {
const result = pipe.transform('123.456')
expect(res... |
321af82483ecf8a108e4ca5b05ca7a1e896a35b5f9796eb63b3424384c55ef36 | TypeScript | 627 | 20 | export const imageWithRectanglesConfig = `<View>
<Image name="image" value="$image" />
<Rectangle name="rect" toName="image" />
</View>`;
export const imageWithBrushConfig = `<View>
<Image name="image" value="$image" />
<Brush name="brush" toName="image" />
</View>`;
export const imageWithBothToolsConfig = ... |
38096fcb43e6802759db514d5eb533426377409b4365c863f9e3f5af2ccca5dd | TypeScript | 627 | 18 | /**
* @file Component Collection
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import RepresentationElement from './representation-element';
import Collection from './collection';
import { GenericColor } from '../types';
declare class RepresentationCollection extends Collection<Representation... |
7ca6cc3c352d83eb7807a576d6e3d7876cd22dc29092df9cb91a1abb33644a2b | TypeScript | 627 | 15 | /**
* This function will fix LabelStudio parameters
* as parameters created in cypress tests are not considered as plain objects by MST as it has it's own Object and Object.prototype is uniq as well
*/
export function fixLSParams(params: Record<string, any>, win: Window): Record<string, any> {
if (Array.isArray(pa... |
9974c6007e12848c38cb82061166b568e5bb07c7f939bc34d85621b85ca608b6 | TypeScript | 628 | 10 | /**
* @file Dash
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { CylinderBufferData } from '../buffer/cylinder-buffer';
import { WideLineBufferData } from '../buffer/wideline-buffer';
export declare function getFixedCountDashData<T extends CylinderBufferData | WideLineBufferData>(data:... |
33d4e3208124f17678791f18ecf25e5c580fa786ac1c2c4347683bfdca6a18bc | TypeScript | 629 | 20 | /**
* @file Mapped Box Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { BufferParameters, BufferData } from './buffer';
import MappedBuffer from './mapped-buffer';
/**
* Mapped Box buffer. Draws boxes. Used to render general imposters.
* @interface
*/
declare class MappedBoxBu... |
af829325a63bdb480aa28b2e2bb57d9d4a1d9ed5730f6e316fcad817666980ce | TypeScript | 629 | 18 | /**
* @file MDsrv Datasource
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Datasource from './datasource';
declare class MdsrvDatasource extends Datasource {
baseUrl: string;
constructor(baseUrl?: string);
getListing(path?: string): any;
getUrl(src: string): string;
... |
d39133dc0bd65aa23d639851612f8876a86c6fae94a9afb62429d7bf848a2961 | TypeScript | 629 | 25 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { MarkdownModule } from "src/components/markdown";
import { StrictLocalModule } from "src/strictLocal";
import { DialogDirective } from "./dialog.directive"
import { DialogFallbackCmp } from "./tmpl/tmpl.component";
import ... |
521b14565e5eb515b33b937628ef79b5b94df0d7a92c7b6859d004c11b998cd2 | TypeScript | 630 | 25 | /**
* @file Pass Through Datasource
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { DatasourceRegistry } from '../globals'
import { getFileInfo } from '../loader/loader-utils'
import Datasource from './datasource'
class PassThroughDatasource extends Datasource {
getUrl (path: strin... |
3654cb39eca0c8c2a90a266d597ae7bd05dad5758de36983ff60f3559899f021 | TypeScript | 631 | 16 | import {Locator, Page} from '@playwright/test';
// The app-wide confirmation popup (argo-ui's PopupManager.confirm), which gates
// both the workflow list's bulk actions and the details page's toolbar
// operations. The buttons carry no accessible id beyond their text.
export class ConfirmDialog {
readonly contain... |
b4c245232f7ae8dcb2c85250f927ce735b099e7514491704efd2e06f776f7ec3 | TypeScript | 633 | 19 | import { FF_DEV_3391 } from "@humansignal/frontend-test/feature-flags";
import { LabelStudio } from "@humansignal/frontend-test/helpers/LSF";
import { FF_LSDV_4583 } from "../../../../src/utils/feature-flags";
import { allTagsSampleData, configAllTags } from "../../data/view_all/smoke";
beforeEach(() => {
LabelStudi... |
da27ddc47b3ae4ad1e1c988eec6ade6ede28e8b40198dacdd4352567bc6e8242 | TypeScript | 634 | 17 | /**
* @file Colordata Colormaker
* @author Fred Ludlow <fred.ludlow@gmail.com>
* @private
*/
import Colormaker, { ColorData, ColormakerScale, StuctureColormakerParams } from './colormaker';
import AtomProxy from '../proxy/atom-proxy';
import BondProxy from '../proxy/bond-proxy';
declare class StructuredataColormake... |
cf9018668824206cb1295d9b1b98f852dd5ac23f71090f8a61b091f643c1c66b | TypeScript | 635 | 34 | export interface Link {
name: string;
scope: string;
url: string;
target?: string;
}
export interface Column {
name: string;
type: string;
key: string;
}
export interface Info {
modals: {string: boolean};
managedNamespace?: string;
links?: Link[];
navColor?: string;
colu... |
84a94b25900366ac7f260f4181e40338e15c4f7a4aa917cc310e4ab9b857fd58 | TypeScript | 636 | 18 | import { useMetadataDataSource } from '../context/MetadataDataProvider';
import { searchFacetsKey } from '../util/queryKeys';
import { useSourceQuery } from './useSourceQuery';
/**
* Fetch project-wide distinct facet values for the cross-type search/filter
* surface from the active {@link MetadataDataSource}. Disabl... |
d27fc03fbe93c9aa274f9e9be25b6bcccdee7b688f5ba28102c6f33a7d7d285e | TypeScript | 636 | 35 | import { createReducer, on } from "@ngrx/store";
import * as actions from "./actions"
import { PanelMode } from "./const"
export type UiStore = {
panelMode: PanelMode
panelOrder: string // permutation of 0123
}
export const defaultState: UiStore = {
panelMode: "FOUR_PANEL",
panelOrder: "0123",
}
export const... |
114c9a79bdd2239a65a31a6f9686f0f8d576bbcb3cd721229eb37d8153250903 | TypeScript | 637 | 22 | import { Pipe, PipeTransform } from "@angular/core";
import { Qualification } from "src/atlasComponents/sapi/typeV3"
const QUALIFICATION_TRANSLATION: Record<Qualification, string> = {
APPROXIMATE: "is approximately",
CONTAINED: "is contained by",
CONTAINS: "contains",
EXACT: "is exactly",
HOMOLOGOUS: "is hom... |
7b206cad61c541befef578cc9bdd10cd8a81d04d9b5826c515ce07ad554202d7 | TypeScript | 637 | 27 | import { Observable, Subject } from "rxjs"
import { IMessagingActions, IMessagingActionTmpl } from "../types"
export const TYPE = 'iav.unload'
type TUnload = {
['@id']: string
}
export const processJsonLd = (json: TUnload): Observable<IMessagingActions<keyof IMessagingActionTmpl>> => {
const sub = new Subject<IM... |
de51865df26a25cb36749f552d68fca7533a36dc0ae405250519c863b0552c28 | TypeScript | 637 | 29 | export const audioWithLabelsConfig = `<View>
<Audio name="audio" value="$audio" />
<Labels name="labels" toName="audio">
<Label value="Noise" />
<Label value="Music" />
<Label value="Speech" />
</Labels>
</View>`;
export const audioWithLabelsData = {
audio: "/public/files/barradeen-emotional.mp3",
... |
79bc8573aaf6d9ce10833b8b5405ec00f4e012a5c3a4e8beb26fb709d4a0b738 | TypeScript | 639 | 24 | /**
* @file Chainid Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Colormaker, { StuctureColormakerParams, ColormakerScale } from './colormaker';
import AtomProxy from '../proxy/atom-proxy';
export declare type ChainidDict = {
[k: string]: number;
};
/**
* Color by chain... |
f9dd7d9b08370ae2e1a969a9c673e6ddcdcfe02c8f16a37cf58242bdd9695924 | TypeScript | 639 | 24 | /**
* @file Picking Controls
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import PickingProxy from './picking-proxy';
import Stage from '../stage/stage';
import Viewer from '../viewer/viewer';
/**
* Picking controls
*/
declare class PickingControls {
readonly stage: Stage;
viewer: ... |
85a484c662bb2f0e3d84565fa18a890fee8d01e1fa8a9b418767ae317eaa10e9 | TypeScript | 640 | 37 | export const simpleTextConfig = `<View>
<Text name="text" value="$text" />
<Labels name="label" toName="text">
<Label value="Label" />
</Labels>
</View>`;
export const simpleTextData = {
text: "Hello world!",
};
export const simpleTextResult = [
{
id: "1",
from_name: "label",
to_na... |
89f8b78deef6b44e92d5368c618633b5593c80c0fc2dd90d41de66f0084f9898 | TypeScript | 640 | 20 | /**
* @file Mapped Quad Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { BufferParameters, BufferData } from './buffer';
import MappedBuffer from './mapped-buffer';
/**
* Mapped Quad buffer. Draws screen-aligned quads. Used to render impostors.
* @interface
*/
declare class Ma... |
02fbc186ffe1fa80c5899deb0444c8eed464b7696d3f34605976e8043d036111 | TypeScript | 641 | 22 |
import StringStreamer from '../../src/streamer/string-streamer'
import TextParser from '../../src/parser/text-parser'
import { join } from 'path'
import * as fs from 'fs'
describe('parser/text-parser', function () {
describe('parsing', function () {
it('basic', function () {
var sampleText = 'Moin world... |
51c0002cb40f5e5c5dcfd6f3bb9aa4468038a608a821e119c9840fccc5cdcbae | TypeScript | 644 | 23 | import { Pipe, PipeTransform, SecurityContext } from "@angular/core";
import { DomSanitizer, SafeResourceUrl } from "@angular/platform-browser";
@Pipe({
name: 'iframeSrc',
pure: true
})
export class IFrameSrcPipe implements PipeTransform {
constructor(private domSanitizer: DomSanitizer){}
transform(src: stri... |
f9cad72e3cde580b0c1c06607efcd185c405385f22f486fbb9f18a1a3703fee3 | TypeScript | 644 | 22 | /**
* @file Volume Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Vector3 } from 'three';
import Colormaker, { VolumeColormakerParams, ColormakerScale } from './colormaker';
/**
* Color by volume position
*/
declare class VolumeColormaker extends Colormaker {
valueSca... |
e6ff87a28d829fb57b714d6c3e3b2fa03a187bbe44e911b7281190dee650fd5d | TypeScript | 646 | 21 | import { Pipe, PipeTransform } from "@angular/core";
import { IAnnotationGeometry } from "./tools/type";
import { SxplrTemplate } from "src/atlasComponents/sapi/sxplrTypes"
type TOpts = {
reverse?: boolean
}
@Pipe({
name: 'filterAnnotationsBySpace',
pure: true
})
export class FilterAnnotationsBySpace implement... |
a3b5e33dabde257c0ca4116535bd93b55adba24f73dd7fff46af3fe9eec3efbb | TypeScript | 647 | 27 | /**
* @file Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Streamer from '../streamer/streamer';
export interface ParserParameters {
name: string;
path: string;
}
declare class Parser {
streamer: Streamer;
name: string;
path: string;
[k: string]: any;
... |
fd64460f4c05e722904a309cd3c870e79c469883702c46baf88b7c94f219c380 | TypeScript | 647 | 19 | /**
* @file Structure Trajectory
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Structure from '../structure/structure';
import Trajectory, { TrajectoryParameters } from './trajectory';
/**
* Structure trajectory class. Gets data from a structure object.
*/
declare class StructureTraj... |
f04674829ff985054cf1c89e8f3d02583bf60367780955e3faab550d659425f5 | TypeScript | 649 | 23 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { DeviceStartupComponent } from './device-startup.component';
describe('DeviceStartupComponent', () => {
let component: DeviceStartupComponent;
let fixture: ComponentFixture<DeviceStartupComponent>;
beforeEach(async () => {
await Tes... |
4bf80dcffdd9aee26d6aacdcfb6895214c55863f5bd189f2a000180504eaa21e | TypeScript | 650 | 22 |
import StringStreamer from '../../src/streamer/string-streamer'
import PqrParser from '../../src/parser/pqr-parser'
import { join } from 'path'
import * as fs from 'fs'
describe('parser/pqr-parser', function () {
describe('parsing', function () {
it('basic', function () {
var file = join(__dirname, '/..... |
c809c9852d4578f27aa42f399dbc8194a66dd820aba9f33eb67f53eef6d11b14 | TypeScript | 650 | 13 | /**
* @file Trajectory Utils
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Structure from '../structure/structure';
import Frames from './frames';
import { TrajectoryParameters } from './trajectory';
import FramesTrajectory from './frames-trajectory';
import StructureTrajectory from '.... |
ea28138e8d4c0019556bac57501b627a052c427615f16eb32637a880de46be8f | TypeScript | 650 | 31 | /**
* @file Geometry Group
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Box3, BufferGeometry } from 'three'
class GeometryGroup {
geometryList: BufferGeometry[]
boundingBox: Box3
constructor (geometryList: BufferGeometry[] = []) {
this.geometryList = geometryList
}
... |
915b5ab35b3e31e24421f30db9c258d12d11c5072a9500c09c6a51e516171468 | TypeScript | 653 | 24 | /**
* @file Chainname Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Colormaker, { StuctureColormakerParams, ColormakerScale } from './colormaker';
import AtomProxy from '../proxy/atom-proxy';
export declare type ChainnameDict = {
[k: string]: number;
};
/**
* Color by c... |
5a2272ebf166d0c617c732df0d0c1c07fba132fe722ad8af456e4b1df06cc431 | TypeScript | 654 | 23 | /**
* @file Geoquality Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Colormaker, { StuctureColormakerParams } from './colormaker';
import AtomProxy from '../proxy/atom-proxy';
/**
* Color by validation gometry quality
*/
declare class GeoqualityColormaker extends Colormake... |
9d295b6424434ebe5dfe708b4dff703b3ef3a76dfcd3ca113f1c458cb6922c9f | TypeScript | 654 | 22 |
import StringStreamer from '../../src/streamer/string-streamer'
import GroParser from '../../src/parser/gro-parser'
import { join } from 'path'
import * as fs from 'fs'
describe('parser/gro-parser', function () {
describe('parsing', function () {
it('basic', function () {
var file = join(__dirname, '/..... |
2d49011639d828ad2e24976c775afe1aea3d9934544d3bfff247c6544c97be0b | TypeScript | 656 | 19 | /**
* @file Hydrophobic
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import Structure from '../../structure/structure';
import { Features } from './features';
import { Contacts } from './contact';
/**
* Hydrophobic carbon (only bonded to carbon or hydrogen); fluorine
*/
export declare function addHydr... |
6f9baf24bf95fa9fde14e785d02258a8539b4977c3991e2674bb85e3c03df410 | TypeScript | 657 | 28 | import { CommonModule } from "@angular/common";
import { ChangeDetectionStrategy, Component, Inject, Optional } from "@angular/core";
import { AngularMaterialModule } from "src/sharedModules";
import { OVELAY_DATA, SxplrOverlayCfg } from "./overlay.service";
@Component({
selector: 'sxplr-overlay',
templateUrl: './... |
7a251df55ee60b126ab3475d095af9b42b158c1f6697f5569a05ed8b740ccaaf | TypeScript | 657 | 35 | import { Component } from "@angular/core";
import { AuthService, IAuthMethod, IUser } from "../auth.service";
@Component({
selector: 'signin-modal',
templateUrl: './signinModal.template.html',
styleUrls: [
'./signinModal.style.css',
],
})
export class SigninModal {
constructor(
private authService: ... |
e04a0e7ec1a1630134c2194a7538405ec48b1a4918518b6d45a0fa5b01cbb6da | TypeScript | 657 | 30 | // Mock types for @opencode-ai/plugin
export interface PluginEvent {
type: string;
properties?: Record<string, unknown>;
}
export interface EventParams {
event: PluginEvent;
}
export interface Hooks {
event?: (params: EventParams) => Promise<void>;
}
export interface PluginClient {
session: {
get: (par... |
8cdbdc481b2e779aed3d2d2f96293c4db52f8a7dd70d03344005581daf626048 | TypeScript | 658 | 23 |
import StringStreamer from '../../src/streamer/string-streamer'
import DxParser from '../../src/parser/dx-parser'
import { join } from 'path'
import * as fs from 'fs'
describe('parser/dx-parser', function () {
describe('parsing', function () {
it('basic', function () {
var file = join(__dirname, '../../... |
968056c826fc4828e959ccd5b293f6c4c1a728fcfdffb29d173d2ced95e59e78 | TypeScript | 658 | 18 | import { useMetadataDataSource } from '../context/MetadataDataProvider';
import { overviewKey } from '../util/queryKeys';
import { useSourceQuery } from './useSourceQuery';
/**
* Fetch the project's `{% docs __overview__ %}` block. Resolves `null` when the
* project defines none — the caller renders its own default ... |
0ba7a4741c1336fdcb21c03f4537788e6603b0b5416cf16e9396e6b004e61a47 | TypeScript | 659 | 23 | /**
* @file Densityfit Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Colormaker, { StuctureColormakerParams, ColormakerScale } from './colormaker';
import AtomProxy from '../proxy/atom-proxy';
/**
* Color by validation density fit
*/
declare class DensityfitColormaker exte... |
33224dcf5a157c6cfe934943a2d4dedb37c0fc5ad54c46c400451660814ddf95 | TypeScript | 659 | 34 | class NumberHelper {
private get _baseRootSelector() {
return ".lsf-number";
}
private _rootSelector: string;
constructor(rootSelector) {
this._rootSelector = rootSelector.replace(/^&/, this._baseRootSelector);
}
get root() {
return cy.get(this._rootSelector);
}
get input() {
return ... |
f4e3291e68dad5deef905fb82ee9c23e8d34574e68f71152cbf1b7f5c9867d7e | TypeScript | 660 | 37 | /**
* @file Uniform Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { ColormakerRegistry } from '../globals'
import Colormaker, { manageColor } from './colormaker'
/**
* Color by uniform color
*/
class UniformColormaker extends Colormaker {
@manageColor
atomColor () {
... |
ad0569130eed3973b0098140a0e2784bc8324bcc857f9ea4cd74175cd8f1a77f | TypeScript | 661 | 31 | import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'prettyPresent',
pure: true
})
export class PrettyPresentPipe implements PipeTransform {
transform(value: unknown, toFixed: number=4): unknown {
if (value === null) {
return null
}
if (typeof value === "string") {
return ... |
d5d946e37614016156b032ece13b461821f5ad77c8fc3829a53891e73980a562 | TypeScript | 661 | 18 | import { Pipe, PipeTransform } from "@angular/core";
import { SxplrParcellation } from "src/atlasComponents/sapi/sxplrTypes";
import { GroupedParcellation } from "./groupedParcellation";
import { IsGroupedParcellation } from "./isGroupedParcellation.pipe"
const pipe = new IsGroupedParcellation()
@Pipe({
name: 'parc... |
fbdd928f3ce33675f0b4eb0197750eec0f7b42791171074351875b9ef95f6c99 | TypeScript | 663 | 37 | import { SxplrRegion } from "src/atlasComponents/sapi/sxplrTypes";
import { INavObj } from "./constants";
export type TNehubaContextInfo = {
nav: INavObj
mouse: {
real: number[]
voxel: number[]
}
nehuba: {
layerName: string
labelIndices: number[]
regions: SxplrRegion[]
}[]
}
export type ... |
e7f1005d76468cea7baa8d2f837b29deef5c4c5b2b181d95aaeb5e929b08db93 | TypeScript | 664 | 22 |
import StringStreamer from '../../src/streamer/string-streamer'
import Mol2Parser from '../../src/parser/mol2-parser'
import { join } from 'path'
import * as fs from 'fs'
describe('parser/mol2-parser', function () {
describe('parsing', function () {
it('basic', function () {
var file = join(__dirname, '... |
6172cbd0b3e9d26f251e6cf854e944b759c50826c80e0cfd6c4a2f0863832d69 | TypeScript | 667 | 18 | import YAML from 'yaml';
export type Lang = 'json' | 'yaml';
// Default is YAML 1.2, but Kubernetes uses YAML 1.1, which leads to subtle bugs.
// See https://github.com/argoproj/argo-workflows/issues/12205#issuecomment-2111572189
const yamlVersion = '1.1';
export function parse<T>(value: string): T {
if (value.s... |
a376622bb2fce67dd73d88df6b27af9cebfdc150e981d8df5f9e81521bfd80f0 | TypeScript | 670 | 23 |
import BinaryStreamer from '../../src/streamer/binary-streamer'
import DxbinParser from '../../src/parser/dxbin-parser'
import { join } from 'path'
import * as fs from 'fs'
describe('parser/dxbin-parser', function () {
describe('parsing', function () {
it.skip('basic', function () {
var file = join(__di... |
aa9e9feb86fde2974853da23fe6db6f67480584fc7b8a03f8ae8be757d69a460 | TypeScript | 670 | 24 | import { Pipe, PipeTransform } from "@angular/core";
import { Point, SimpleCompoundFeature } from "src/atlasComponents/sapi/sxplrTypes";
export function isPoint(val: string|Point): val is Point{
return !!(val as any).spaceId && !!(val as any).loc
}
export type CFIndex<T extends string|Point=string|Point> = SimpleC... |
14d83dc7a64b156afcd43a4f08db37f170b2205d38eb2585dee63bd24f629ece | TypeScript | 671 | 29 | import {Arguments, kubernetes, WorkflowTemplateRef} from './index';
export interface Event {
metadata: kubernetes.ObjectMeta;
involvedObject: {
name: string;
kind: string;
};
reason: string;
message: string;
lastTimestamp: kubernetes.Time;
type: string;
}
export interface W... |
d203dff7d738557563660e75fab13010940b38279dcd3b4971784c3594942323 | TypeScript | 671 | 15 | import {Node, NodeLabel} from '../shared/components/graph/types';
import {buildGraph} from './build-graph';
describe('build graph', () => {
test('empty', () => {
const g = buildGraph([], [], [], {}, false);
expect(g.nodes).toEqual(new Map<Node, NodeLabel>());
});
test('event source', () => ... |
80c8a776ceeb7941096251b71558e098e48bbb54e6f670f063d33e5a5398bbaa | TypeScript | 672 | 22 |
import StringStreamer from '../../src/streamer/string-streamer'
import CsvParser from '../../src/parser/csv-parser'
import { join } from 'path'
import * as fs from 'fs'
describe('parser/csv-parser', function () {
describe('parsing', function () {
it('basic', function () {
var file = join(__dirname, '/..... |
297ec6b7959489c01a5ae1f919c6e6f9115aced74ee3967cf184074348510858 | TypeScript | 674 | 23 |
import StringStreamer from '../../src/streamer/string-streamer'
import CubeParser from '../../src/parser/cube-parser'
import { join } from 'path'
import * as fs from 'fs'
describe('parser/cube-parser', function () {
describe('parsing', function () {
it('basic', function () {
var file = join(__dirname, '... |
8fca5379a4ca69b32f6adcdec4d18a998aded4a4ee1dcff782669fe7d17cc67f | TypeScript | 674 | 25 | import { ScrollingModule } from "@angular/cdk/scrolling";
import { CdkTreeModule } from "@angular/cdk/tree";
import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { AngularMaterialModule } from "src/sharedModules";
import { FlatHierarchySpacer } from "./spacer.pipe";
import { ... |
f2e8a78430e90de40089205f4e19e65dbdd33e590959161445fe7662f529dbef | TypeScript | 674 | 16 | import { NumberArray, TypedArray } from "../types";
/**
* @file Grid
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
export interface iGrid {
data: TypedArray;
index: (x: number, y: number, z: number) => number;
set: (x: number, y: number, z: number, ...arg: number[]) => void;
t... |
2ca56d03aea5a4f98f7d2c0f92d41a6eee827bbdaeaa63497c956e90b64dde23 | TypeScript | 675 | 29 | /**
* @file Bond Hash
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import BondStore from './bond-store'
import { createAdjacencyList } from '../utils/adjacency-list'
class BondHash {
countArray: Uint8Array
offsetArray: Int32Array
indexArray: Int32Array
constructor (bondStore: Bond... |
f2dbf6612dcf1e7b3b54fa3019adc0dd7d5e340f6d93c4498057f86affe00ecf | TypeScript | 675 | 26 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { FileInputDirective } from "./getFileInput.directive";
import { FileInputModal } from "./fileInputModal/fileInputModal.component";
import { FormsModule } from "@angular/forms";
import { AngularMaterialModule } from "src/sh... |
e89a16b347adefdc565ef7ad9713e1b43adabdd03db52090eb1ec6ac76a1ab6b | TypeScript | 678 | 24 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { LayoutModule } from "src/layouts/layout.module";
import { AngularMaterialModule } from "src/sharedModules";
import { ConfigComponent } from "./configCmp/config.component";
import { ReactiveFormsModule } from "@angular/for... |
6bbe529649e6311c0586481613b331aae1580baad30abe2d98bd4830fa1e6319 | TypeScript | 679 | 22 | /**
* @file Parser Registry
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Registry from '../utils/registry';
declare class ParserRegistry extends Registry {
constructor();
__hasObjName(key: string, objName: string): any;
isTrajectory(key: string): any;
isStructure(key: ... |
1f71b1691d241d746e93fe0ce076108067cb300eb4db3c7c933394ff721e2494 | TypeScript | 684 | 21 | import { Directive, ElementRef, HostListener, Output, EventEmitter } from '@angular/core';
@Directive({
selector: '[iav-outsideClick]'
})
export class ClickOutsideDirective {
constructor(private elementRef: ElementRef) { }
@Output('iav-outsideClick')
clickOutside: EventEmitter<any> = new EventEmitter()
@H... |
4a6675fc65722f11f7742ec878a2736e405bcf8edba5c24f6a359cd42a922f83 | TypeScript | 684 | 30 | import { getSnapshot, getType, type IStateTreeNode } from "mobx-state-tree";
import { guidGenerator } from "../utils/unique";
/**
* TODO: refactor
*/
export { guidGenerator };
/**
* Helper function to detect HTX Component
*/
export function isHtx(component: any, name: string) {
return typeof component.type === ... |
6e8d9f2574207ba097434fded185e71d3bc6c18743080abfa94f86766545b3e2 | TypeScript | 687 | 32 | import type { FC } from "react";
export type PageProps = {
children: React.ReactNode;
};
export type PageComponent = FC<PageProps>;
export type PageContext = FC<PageProps>;
export type PageSettings = {
path: string;
title?: string | ((options: any) => string);
titleRaw?: string;
exact?: boolean;
context... |
828643cca79bfbb949836ee027dc8e71f3e854df4a83203a777fffd57a3a7648 | TypeScript | 691 | 19 | import { useMetadataDataSource } from '../context/MetadataDataProvider';
import type { ResourceType } from '../typings/domain/asset';
import { facetsKey } from '../util/queryKeys';
import { useSourceQuery } from './useSourceQuery';
/**
* Fetch the list filter facet options for a resource type from the active
* {@lin... |
16e950fd4a910429afc35dcefcc3546a186e9265daecdd92dec41943a145240e | TypeScript | 692 | 23 |
import StringStreamer from '../../src/streamer/string-streamer'
import ObjParser from '../../src/parser/obj-parser'
import { join } from 'path'
import * as fs from 'fs'
describe('parser/obj-parser', function () {
describe('parsing', function () {
it('basic', function () {
var file = join(__dirname, '/..... |
531f82e93bb46a39f8ff48ad50804e5ce064f31e08a558ed98b749b62e9c159f | TypeScript | 694 | 32 | import { Directive, HostListener, Input } from "@angular/core";
import { Clipboard, MatSnackBar } from 'src/sharedModules/angularMaterial.exports'
@Directive({
selector: '[iav-clipboard-copy]',
exportAs: 'iavClipboardCopy'
})
export class ClipboardCopy{
@Input('iav-clipboard-copy')
copyTarget: string
cons... |
79af779776fbd453271cd82a22859cf9b001cba0f40ebb79f0e2351a00b1833f | TypeScript | 695 | 37 | export type TUrlStandaloneVolume<T> = {
sv: T // standalone volume
}
export type TUrlAtlas<T> = {
a: T // atlas
t: T // template
p: T // parcellation
r?: T // region selected (deprecated)
rn?: T // region selected (hashed)
g?: T // geometry selected (point, face (NYI))
}
export type TUrlPlugin<T>... |
5b3e481ffbc708979bc5ccbff2bf5f91f101d0e6388912a1be6be1cf13fad7a1 | TypeScript | 699 | 29 | /**
* @file Surface Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Parser, { ParserParameters } from './parser'
import Surface from '../surface/surface'
import Streamer from '../streamer/streamer';
class SurfaceParser extends Parser {
constructor (streamer: Streamer, params?:... |
51ef37b0b9f90112ae056558262e02ad07a4f744b1d519f2e560e3d11158d4ce | TypeScript | 701 | 17 | /**
* @file Marching Cubes
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
interface MarchingCubes {
new (field: number[], nx: number, ny: number, nz: number, atomindex: number[]): void;
triangulate: (_isolevel: number, _noNormals: boolean, _box: number[][] | undefined, _contour: boolea... |
108371f78e09fc03070312f78b659bb299d27d80b656e0a944d8678c48696243 | TypeScript | 703 | 23 |
import BinaryStreamer from '../../src/streamer/binary-streamer'
import DcdParser from '../../src/parser/dcd-parser'
import { join } from 'path'
import * as fs from 'fs'
describe('parser/dcd-parser', function () {
describe('parsing', function () {
it('basic', function () {
var file = join(__dirname, '/..... |
816b5ff07fc41d68d7d2b9b50079e59a1ee14b388d8db81a24fd20b76d328956 | TypeScript | 704 | 24 |
import StringStreamer from '../../src/streamer/string-streamer'
import XmlParser from '../../src/parser/xml-parser'
import { join } from 'path'
import * as fs from 'fs'
describe('parser/xml-parser', function () {
describe('parsing', function () {
it('basic', function () {
var file = join(__dirname, '/..... |
831f02d7d28fce218a2017dc063dea39505abae0ef149365702d09c3a1b7447d | TypeScript | 706 | 22 | import {Condition} from '../shared/models';
export function statusIconClasses(conditions: Condition[], icon: string): string {
let classes = [icon];
if (!conditions || conditions.length === 0) {
classes = [icon, 'status-icon--init'];
return classes.join(' ');
}
for (const condition of ... |
892838b6a03a1cc18200027a69d52adf8d6ecc5095848ef7c534743065d1da58 | TypeScript | 707 | 35 | /**
* @file Text Parser
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { ParserRegistry } from '../globals'
import Parser, { ParserParameters } from './parser'
import Streamer from '../streamer/streamer';
class TextParser extends Parser {
constructor (streamer: Streamer, params?: Pa... |
ce25c3b11c33e92b746ef695510bf24b9c9431aa1bb1e5778dd5bb462917054a | TypeScript | 707 | 34 | class RatingHelper {
private get _baseRootSelector() {
return ".ant-rate";
}
private _rootSelector: string;
constructor(rootSelector) {
this._rootSelector = rootSelector.replace(/^&/, this._baseRootSelector);
}
get root() {
return cy.get(this._rootSelector);
}
get rates() {
return th... |
6a95b63db7bffe8968787f8ad702c80a25ac6c2fb2ddda932ef3196fdd083e9a | TypeScript | 708 | 30 | import { createReducer, on } from "@ngrx/store";
import * as actions from "./actions"
export type PluginStore = {
initManifests: Record<string, string[]>
}
export const defaultState: PluginStore = {
initManifests: {}
}
export const reducer = createReducer(
defaultState,
on(
actions.clearInitManifests,
... |
83039a876596dc43a30f95051bd73b5f4e3d3af83922eefacd60f4f2a2a0b027 | TypeScript | 709 | 25 | export interface ViewWithMedia {
/**
* View's container
*/
get root(): Cypress.Chainable<JQuery<HTMLElement>>;
/**
* Get the main media element for this helper
*/
get mediaElement(): Cypress.Chainable<JQuery<HTMLElement>>;
}
export interface MediaView {
_bufferingIndicatorSelector: string;
buf... |
efd66472bd45e84b102f22b015a0e54b7d461ac2d2dec6a0b044b404e4a741d9 | TypeScript | 709 | 21 | /**
* @file Mapped Aligned Box Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { BufferParameters, BufferData } from './buffer';
import MappedBuffer from './mapped-buffer';
/**
* Mapped Aligned box buffer. Draws boxes where one side is always screen-space aligned.
* Used to rend... |
e528dd1654aa20f6c16cc4cb318fc8ffa9d43487d8e07fc594512cb90d4a0b2e | TypeScript | 710 | 31 | import { CommonModule } from "@angular/common";
import { Component, Inject } from "@angular/core";
import { TextareaCopyExportCmp } from "src/components/textareaCopyExport/textareaCopyExport.component";
import { AngularMaterialModule, Clipboard, MAT_DIALOG_DATA } from "src/sharedModules";
@Component({
templateUrl: '... |
ec98cef63d0a088fe48b42532616735cd063f798e31f749fbefbd31511ef5fee | TypeScript | 713 | 23 |
import BinaryStreamer from '../../src/streamer/binary-streamer'
import MsgpackParser from '../../src/parser/msgpack-parser'
import { join } from 'path'
import * as fs from 'fs'
describe('parser/msgpack-parser', function () {
describe('parsing', function () {
it('basic', function () {
var file = join(__d... |
8e259dd04c53caeb91da3dc23f327808fbd0a3e11d0ad5ac0fb99752c71a9e6d | TypeScript | 715 | 22 | import azureProvider from "./azure";
import azureSpiProvider from "./azure_spi";
import databricksProvider from "./databricks";
import gcsProvider from "./gcs";
import gcsWifProvider from "./gcswif";
import localFilesProvider from "./localFiles";
import redisProvider from "./redis";
import { s3Provider } from "./s3";
i... |
36bbeca8483632e3860d3bca09235148652dbbdd192678e8c6157d5464d61d80 | TypeScript | 718 | 16 | /**
* Build identity of the metadata backend — *not* a feature capability (see
* {@link Capabilities}). Separates "what binary" (`isProprietary`) from "is the
* user authed" (`isLoggedIn`), which the REST `/distribution` endpoint reports
* as `name` / `is_logged_in`. A GraphQL catalog source can synthesize this
* ... |
590f180cf83bab1dde6b63fae15f71e81d96a740698d7fe69d92920060264ebb | TypeScript | 718 | 18 | /**
* @file EDT Surface
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { TypedArray } from '../types';
interface EDTSurface {
getVolume: (type: string, probeRadius: number, scaleFactor: number, cutoff: number, setAtomID: boolean) => {
data: TypedArray;
nx: number;
... |
4f4ea3b4cfaec227fbe4a6d1d4e0d08be5b86fc4dec8eaaf6eabd3ed3837ae55 | TypeScript | 722 | 25 | /**
* Qwen Code Stop hook handler.
*
* Qwen Code fires the Stop hook via stdin with JSON:
* {"session_id": "...", "transcript_path": "...", "cwd": "...", ...}
*
* Configured in .qwen/settings.json under hooks.Stop.
*/
import { readStdin } from '../utils/stdin.js';
import { ensureInitialized } from '../config.... |
50010e5f4e67c3d2abaf91d665093443391fa14ea55cac76d2eaeb731dc0cfa5 | TypeScript | 722 | 32 | /**
* @file Animation Behavior
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import Stage from './stage'
import Viewer from '../viewer/viewer'
import Stats from '../viewer/stats'
import AnimationControls from '../controls/animation-controls'
class AnimationBehavior {
viewer: Viewer
anim... |
107e7dd74e406e9ae098b601133db1881058cdfc4a1bfe4a193c2a8dec4d9ea7 | TypeScript | 723 | 28 | import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { ComponentsModule } from "src/components";
import { WidgetCanvas } from "./widgetCanvas.directive";
import { WidgetPortal } from "./widgetPortal/widgetPortal.component"
import { PortalModule } from "@angular/cdk/portal";
i... |
97443b2be7998a697d45c498909ed5a8188134866b1b6fd5bddeacfc86a1769b | TypeScript | 723 | 16 | import {parseResourceQuantity} from './resource-quantity';
describe('resource quaniity', () => {
test('binary SI', () => {
expect(parseResourceQuantity('1Ki')).toEqual(1024);
expect(parseResourceQuantity('2Ki')).toEqual(2048);
});
test('decimal SI', () => {
expect(parseResourceQuant... |
cebcd2a5a0c60da9edd0ece5bec4849d7a1149c9b984eb87644dea12b4d2804c | TypeScript | 724 | 15 | /**
* Phosphor icons re-exported as a stable module boundary.
*
* This file is intentionally kept separate from the main icons barrel (index.ts).
* During Vite HMR, any change to index.ts causes it to re-evaluate. If Phosphor
* exports lived there, the module would get a new reference on every hot reload —
* Reac... |
fc1ac3cb683ccf183e1d8a7ee8772c3f828cdc010c421e70e9be7985dcf606b4 | TypeScript | 725 | 27 | import { ChangeDetectionStrategy, Component, Input } from "@angular/core";
import { userInterface } from "src/state"
@Component({
selector: 'current-layout',
templateUrl: './currentLayout.template.html',
styleUrls: [
'./currentLayout.style.css',
],
changeDetection: ChangeDetectionStrategy.OnPush,
})
exp... |
6890e6ebe23c14e3a5cec4f29b9abc3af365fa9b89dcc4b45075a967838226d0 | TypeScript | 727 | 19 | import { useMetadataDataSource } from '../context/MetadataDataProvider';
import type { LineageArgs } from '../typings/args';
import { lineageKey } from '../util/queryKeys';
import { useSourceQuery } from './useSourceQuery';
/**
* Fetch node-level lineage for an asset via the active {@link MetadataDataSource}.
* Disa... |
afa8fc162d3e3f72b54af3544bb33b9b17ff834a88f0e233226313e1d4731e0a | TypeScript | 727 | 27 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { ComponentsModule } from "src/components";
import { SapiViewsCoreSpaceBoundingBox } from "./boundingBox.directive";
import { AngularMaterialModule } from "src/sharedModules";
import { DialogModule } from "src/ui/dialogInfo... |
a2da2e6e0f2b83c7fb3661cc3bb5e0cbdf106dc85cca4e8ecd1b395be7c96bbf | TypeScript | 728 | 35 | /**
* @file Static Datasource
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { getAbsolutePath } from '../utils'
import { getFileInfo } from '../loader/loader-utils'
import Datasource from './datasource'
const reProtocol = /^((http|https|ftp):)*\/\//
class StaticDatasource extends Da... |
cb53b4aa0d14679462860544110d6f2243d4b981ab97dcbc6e4214bf44c4a0e8 | TypeScript | 728 | 19 | import StlWriter from '../../src/writer/stl-writer'
describe('writer/stl-writer', function () {
describe('writing', function () {
it('getData', function () {
const surf = {
normal: [0, 0, 1, 0, 0, 1, 0, 0, 1],
index: [0, 1, 2],
position: [0, 0, 0, 0, 1, 0, 0, 0, 1]
}
con... |
a4cb1266cea018bcc95351e17d3d2cd50e801b930dfbff72dea8a1a7d11b7444 | TypeScript | 729 | 31 | /**
* @file Worker Registry
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { makeWorkerBlob } from './worker-utils'
class WorkerRegistry {
activeWorkerCount = 0
private _funcDict: { [k: string]: Function } = {}
private _depsDict: { [k: string]: Function[] } = {}
private _blob... |
8e08e36b1b0f62034b505b2788819a62004bb427715d6e62506dce56dbb6af40 | TypeScript | 730 | 27 | import {
animate,
AnimationTriggerMetadata,
state,
style,
transition,
trigger,
} from '@angular/animations'
export const readmoreAnimations: AnimationTriggerMetadata = trigger('collapseState', [
state('collapsed',
style({ height : '{{ collapsedHeight }}px' }),
{ params : { collapsedHeight : 45, f... |
ef87913b474d51df316e0bd552f5d92d7b1ccbb94c511ce4a1a28dbc074e966b | TypeScript | 730 | 31 | import { Injectable } from "@angular/core";
import { ActionDialog } from "src/ui/actionDialog/actionDialog.component";
import {
MatSnackBar,
MatSnackBarConfig,
MatDialog,
MatDialogConfig
} from 'src/sharedModules/angularMaterial.exports'
@Injectable({
providedIn: 'root',
})
export class UIService {
cons... |
2535610fa22020932545b110b26d14bfbcb2de5124b09253447771af017cbb2e | TypeScript | 731 | 28 | import { FullscreenOverlayContainer, OverlayContainer } from "@angular/cdk/overlay";
import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { UtilModule } from "src/util";
import { AngularMaterialModule } from "src/sharedModules";
import { ScreenshotCmp } from "./screenshotCmp/... |
a6986b8f5ac3a090ebd4a29fdcc4547b7257ef53933e15b57fa576288d075984 | TypeScript | 732 | 30 | import { Directive, Input } from "@angular/core";
import { BehaviorSubject } from "rxjs";
import { Release } from "./type"
import { HttpClient } from "@angular/common/http";
import { map, switchMap } from "rxjs/operators";
@Directive({
selector: 'sxplr-newest-release'
})
export class NewestRelease {
#ownerRepo = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.