sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
65c19b4315251a515074daf52657c53addc65a1aa2b100bca3a37d7eaf7683f3 | TypeScript | 1,505 | 48 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
eeb87d20839a1ea89a2270fdfadd777d179613d84aa6cb8b890329a40bb1dc99 | TypeScript | 1,505 | 40 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
3a3008d278d1491b5b6382f98e2ff01044203dfe1a222e6c2f75580faa44e629 | TypeScript | 1,506 | 44 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
066f3e296cc7c1981a8c9eff3e09f8b76e45b01842d4677e01531f4ba9e2378d | TypeScript | 1,507 | 38 | import {createBrowserHistory} from 'history';
import {getWorkflowParametersFromQuery} from './get_workflow_params';
describe('get_workflow_params', () => {
it('should return an empty object when there are no query parameters', () => {
const history = createBrowserHistory();
const result = getWorkf... |
497b3f75a22ca865ff6a36267c4cab7e9adb4da502a17fa0e5001dce250670e9 | TypeScript | 1,508 | 56 | /*
* 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 ... |
833c2bed8ffc6c03e29a285c44d808a3f058f9081eeea202ba979cbbc69ec36b | TypeScript | 1,509 | 46 | /**
* 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... |
d6055a052c812ce840e82d58cefdb991d1fdaadbba8465c9cf08a43e6a3bc623 | TypeScript | 1,509 | 39 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
f841b42b4b294681ca2dd50531666386dc4670ed1c446eae37a15543bc5a05fd | TypeScript | 1,510 | 40 | /**
* @file Point Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import StructureRepresentation, { StructureRepresentationParameters, StructureRepresentationData } from './structure-representation';
import PointBuffer from '../buffer/point-buffer';
import { Structure } from '../... |
1d57c7c25c04dc20566b322414083e115d2d964aa0a36e2c953e191e511e0a92 | TypeScript | 1,511 | 52 | /*
* 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 ... |
7b4f986324f0833eccc8f5b675ab8194757ac57ce26173bfb37223f83bf6191e | TypeScript | 1,512 | 43 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
f3daacd9b15bcd95badb4a10457b9de84f9bf0972670e65813ce213b372c0897 | TypeScript | 1,512 | 38 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
2efa756e5e80db7ab6e8324cadb204c76f976395ae2f29bbddefdd6581f4bd25 | TypeScript | 1,513 | 51 | import type { TimelineRegion, TimelineView } from "../../Types";
import { Frames } from "./Frames";
import { Minimap } from "./Minimap";
import { Controls } from "./Controls";
import { findClosestKeypoint } from "./Utils";
const getKeyframePosition = (position: number, regions: TimelineRegion[], direction: -1 | 1) =>... |
427c900f1c2ee968c6455a7c9ee7487cf4978dfe901ad7e83dc5f09c08443e30 | TypeScript | 1,513 | 62 | /**
* @file Densityfit Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { ColormakerRegistry } from '../globals'
import Colormaker, { StuctureColormakerParams, ColormakerScale, manageColor } from './colormaker'
import AtomProxy from '../proxy/atom-proxy'
/**
* Color by valid... |
051923369a62aec016e379e90ab8c29a2d164bb5488bca4f5bcf3f34a672b1d3 | TypeScript | 1,515 | 42 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
3e360148a13ca0dd0c0965857f2bf7b33ca8d484ad9148e65e31ff3493fbb168 | TypeScript | 1,516 | 72 | import { createReducer, on } from "@ngrx/store"
import { OpenMINDSCoordinatePoint } from "src/atlasComponents/sapi/typeV3"
import * as actions from "./actions"
type Line = {
pointA: OpenMINDSCoordinatePoint
pointB: OpenMINDSCoordinatePoint
}
type BBox = {
pointA: OpenMINDSCoordinatePoint
pointB: OpenMINDSCoor... |
a180b42cd68f30869aeecbff583dce5ce6d987a536f570d692291316c24f264e | TypeScript | 1,516 | 44 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
bd83a53d21c22794ddb64ec6ce3fbb929d9d9f01bfdcb88c373f82b46a162026 | TypeScript | 1,516 | 50 | /*
* 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 ... |
115f7c07cd70860aad6b959f09a573dd323e914d579d63cde931ab33d3382b3c | TypeScript | 1,517 | 49 | import { type MutableRefObject, useEffect } from "react";
interface Handlers<T extends HTMLElement = HTMLElement, D = any> {
elementRef: MutableRefObject<T | undefined>;
disabled?: boolean;
capture?: boolean;
passive?: boolean;
onMouseDown?: (e: MouseEvent) => D;
onMouseMove?: (e: MouseEvent, data?: D) => ... |
14b1028ddbaa47fe303386bdb5eea3ab9321802a0d3145567b8e59db11f080c8 | TypeScript | 1,518 | 60 | import BitArray from '../utils/bitarray';
import { AtomPicker, BondPicker } from '../utils/picker';
import BondStore from '../store/bond-store';
import { ColormakerParameters } from '../color/colormaker';
export interface RadiusParams {
scale: number;
radius?: number;
type?: string;
}
export interface AtomD... |
c80b1df96769e9ccafa717c1bf95d3ea55981d66841aa349dd83688a957fbc5f | TypeScript | 1,521 | 43 | /* eslint-disable camelcase */
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Vers... |
ef3d90eeadd30c47d107782feb4486c75b13ab872b8116ef1550bcb8abc67d1e | TypeScript | 1,521 | 46 | /**
* 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... |
fe11cb2112a483c812bfd00b85b2c9a50d57ff22401b18b7a30f9e64d1e40161 | TypeScript | 1,521 | 44 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
ffc3bb2cad7d48843b8313eaea2dacfe903a92ca89932412af367a52a821af51 | TypeScript | 1,521 | 37 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
ed27a8c7b5eed0a4b886c2e31562fa3e85b11264dae885507bcb2acdfeeb519e | TypeScript | 1,522 | 37 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
c841a63d3d428695f07bcfe5e5dfb1f548647aa377faad39f64089258161a3c5 | TypeScript | 1,523 | 41 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
ee30f4ce491406bd96f167c36ed10bebe99a35ec0575d17dcb1b154dcd7127d2 | TypeScript | 1,525 | 38 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
098de97af72807cf2dc41cbd06718be6ea9ba04bccd92e77f4a02f34a4600818 | TypeScript | 1,527 | 44 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
3f7e431da65eb3a9beec65488a9d020e76e92e994de6f271b0ff39225f7a0642 | TypeScript | 1,527 | 42 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850 | TypeScript | 1,528 | 37 | /*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.... |
e0d5b407f737f80847f1ea6e48d59afb3659c36dfbbab4317f080b622cdc493a | TypeScript | 1,528 | 50 | /*
* 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 ... |
4b0c300a0b83ee25562a016a8340bad4c556b2455dd46c221c2b595b22705e6a | TypeScript | 1,529 | 54 | /*
* 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 ... |
b981ca780097e13942492690bf8d585e304f5314d4f1ae962f9308a214485722 | TypeScript | 1,529 | 46 | /**
* 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... |
1f16a657ac1452ac2161006099bc1bba6e6becc50aae70f5a186ead4a88bb1b9 | TypeScript | 1,531 | 52 | import { ComponentPortal } from "@angular/cdk/portal";
import { ComponentRef, Injectable, Injector, ViewContainerRef } from "@angular/core";
import { RM_WIDGET } from "./constants";
import { WidgetPortal } from "./widgetPortal/widgetPortal.component";
@Injectable({
providedIn: 'root'
})
export class WidgetService {... |
cf81b59fac6e45edd6c4d7c96cccd9296b3f959c55f47e96427f5b2360d9d134 | TypeScript | 1,532 | 60 | /**
* 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... |
9dd3bfe22e4333ce02d96274e6d4486779b6a02af4a537e8c49cc06cb18e0625 | TypeScript | 1,533 | 46 | /**
* 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... |
c011480b3f750f906d93f5e91c93593f78ebdcd70a95f1a2f2661122ca4ae560 | TypeScript | 1,533 | 37 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
3e97488951a49d1cb78717a1a7d263e9e8f7fe0131cd1ac5b5347cda95400483 | TypeScript | 1,534 | 44 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
335b893f0e89b59227c35e6ff8f97344c0c2aea26244bd18cffdab7ff9599950 | TypeScript | 1,535 | 47 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
d3da83dbe41fad19d906895cbb720ddb4880edb80e4d1fd447ddadc3e0068337 | TypeScript | 1,535 | 46 | /**
* 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... |
526706f4bf6c042c97afac6bd8d712726ea827e67efe95ce47b8c9d1d3f06574 | TypeScript | 1,536 | 41 | /**
* @file Geometry Buffer
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Matrix4, BufferGeometry } from 'three';
import MeshBuffer from './mesh-buffer';
import { BufferParameters, BufferData } from './buffer';
/**
* Geometry buffer. Base class for geometry-based buffers. Used to dr... |
74c77e5f62754310a6e26dc14cfda8820d16eedbf7bc51350691e66d71e4c965 | TypeScript | 1,536 | 43 | import { ensureInitialized } from '../src/config';
import { runNotifyHook } from '../src/hooks/stop';
import { processNotify } from '../src/tracing';
jest.mock('../src/config', () => ({ ensureInitialized: jest.fn() }));
jest.mock('../src/tracing', () => ({ processNotify: jest.fn() }));
const ensureInitializedMock = j... |
7fd5216aa114265d55775c1211c688ffef73c44e3023be349fabf7e086b5f931 | TypeScript | 1,536 | 40 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
70959b79acba22c328448bcb117fb4483fb40c66656a2620b9d77e1f96bb95e3 | TypeScript | 1,537 | 61 | import { Directive, HostListener, Input, inject } from "@angular/core";
import { Store, select } from "@ngrx/store";
import { DestroyDirective } from "src/util/directives/destroy.directive";
import { atlasSelection } from "src/state";
import { takeUntil } from "rxjs/operators";
import { ViewerMode } from "src/state/atl... |
2b849d2c7592a111518e95ea430ce87ab204d2de572c9817850e095e186ae42b | TypeScript | 1,538 | 40 |
import { computeVertexNormals } from '../../src/surface/surface-utils'
describe('surface/surface-utils', function () {
describe('computeVertexNormals', function () {
it('position, no index, no normal', function () {
var position = new Float32Array([ 1, 1, 1, 2, 1, 2, 3, 1, 1 ])
var normal = comput... |
6e40908b11764cb4f13044aab71d7d7e39bdc5fdc5c32007cf138221ba02992e | TypeScript | 1,538 | 59 | import { Directive, Input, HostBinding, OnDestroy } from "@angular/core";
import { Subscription } from "rxjs";
import { FabSpeedDialService } from "./fabSpeedDial.service";
const NORMAL = 150
const MAX_CHANGE = 70
const INDEX_FACTOR = 5
@Directive({
selector: '[iav-fab-speed-dial-child]',
exportAs: 'iavFabSpeedDi... |
7143474214d6b8d238d0820586941c1ec551e73bc8be2ce4770fa6e05556d02b | TypeScript | 1,539 | 61 | /**
* Function that returns a random number between min and max including min and max
*/
export const random = (min: number, max?: number) => {
if (max === undefined) {
max = min;
min = 0;
}
return Math.floor(Math.random() * (max - min + 1) + min);
};
export const Generator = {
generateImageUrl({ wid... |
d785382810f70830a43707d166446bedb2c20b02addccf8324199999c778e3c6 | TypeScript | 1,540 | 47 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
e9981ee1fdce54bace299b0bb5e38e4cb7ac2a7c3eb25e0e52ed6cbf16526a8a | TypeScript | 1,541 | 58 | import { Injectable } from "@angular/core";
import { BehaviorSubject } from "rxjs";
export const AUTO_ROTATE = `[special] autoRotate`
export type TAutoRotatePayload = {
play: boolean
speed?: number
reverse?: boolean
}
export type TInteralStatePayload<TPayloadShape> = {
'@type': 'TViewerInternalStateEmitterEve... |
954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667 | TypeScript | 1,542 | 53 | /*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.... |
b8bbbb7977c5d46e8b37f423cb5352cebf2efaff2d9b87d0ffbff6262b5d7289 | TypeScript | 1,542 | 48 | import {DfsSorter} from './dfs-sorter';
import {Graph, Node} from './types';
export class CoffmanGrahamSorter {
private graph: Graph;
private width: number = 9999;
constructor(g: Graph) {
this.graph = g;
}
public sort() {
// normally you should remove transitive here, but this is ... |
81d0994088ac16b651c7cb8bb3e79eb56936ef57fe8f4adce55b7a9e2cefec52 | TypeScript | 1,543 | 53 | /**
* @file Chainname Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { ColormakerRegistry } from '../globals'
import Colormaker, { StuctureColormakerParams, ColormakerScale, manageColor } from './colormaker'
import AtomProxy from '../proxy/atom-proxy'
import ChainProxy from ... |
4db8246154bc2d6433fc9bfefedbf9124515d0890c53c58c8c9460312302834f | TypeScript | 1,545 | 78 | /* [LICENSE TBD] */
// @ts-nocheck
/* eslint-disable */
// from http://bl.ocks.org/3687826
export default function (config?) {
var columns = [];
var dg = function (selection) {
if (columns.length == 0) columns = d3.keys(selection.data()[0][0]);
// header
selection
.selectAll('.header')
.da... |
c059219604f28c700985aeb23f779245b355b7a4911397a22ccaacc792637995 | TypeScript | 1,545 | 56 | import { Context } from '@opentelemetry/api';
import {
Span,
ReadableSpan,
SpanProcessor,
SpanExporter,
BatchSpanProcessor,
} from '@opentelemetry/sdk-trace-base';
import { translateSpanForMlflow } from './translate';
/**
* A SpanProcessor that translates Vercel AI SDK span attributes into
* MLflow's expec... |
55ee5cbd8e6f6c7be6cd9bdc6dfbe31d74d0c7efa64ff9bb89a0687db81573c9 | TypeScript | 1,546 | 43 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
e07453a6cc747a14c5bf42f6458ac94846af423646c728cc196e03c266bb2424 | TypeScript | 1,546 | 54 | /**
* @file Selection Constants
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
export enum kwd {
PROTEIN = 1,
NUCLEIC = 2,
RNA = 3,
DNA = 4,
POLYMER = 5,
WATER = 6,
HELIX = 7,
SHEET = 8,
TURN = 9,
BACKBONE = 10,
SIDECHAIN = 11,
ALL = 12,
HETERO = 13,
ION = 14,
SA... |
6ef4c86584dc0eb5d946d7c90777a23abf5b7b07c7c6a0fcf187abc816ae9272 | TypeScript | 1,547 | 49 | /**
* Enums transcribed from the dbt platform Discovery API schema.
*
* Upstream, `metadata-shared` gets these from its GraphQL codegen artifact
* (`src/__generated__/graphql.ts`, ~7.2k generated lines). This server talks REST,
* so only the handful of enums the forked components actually reference are
* transcri... |
5ddaf77967911825743aebf53ef505b8177c311bd7b86031b1485702998deab2 | TypeScript | 1,550 | 71 | /**
* @file Resname Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { ColormakerRegistry } from '../globals'
import Colormaker, { manageColor } from './colormaker'
import AtomProxy from '../proxy/atom-proxy'
// protein colors from Jmol http://jmol.sourceforge.net/jscolors/
c... |
6d19d3fcd69e67bd90f635ac2e726c455cf6c9a867738172a0a9455dcf9f7e3f | TypeScript | 1,550 | 42 | /**
* Tests for time/number formatting helpers.
*/
import { formatTime } from "./helpers";
describe("formatTime", () => {
it("formats whole seconds, minutes, and hours", () => {
expect(formatTime(45)).toBe("45s");
expect(formatTime(322)).toBe("5m 22s");
expect(formatTime(3600)).toBe("1h");
expect(... |
b141bebd02b2d7ac445a5dcf93d264e3a6c68458addd3f6dac50140f8f679303 | TypeScript | 1,550 | 65 | /**
* 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... |
cfe598b27d888a55b622337be795e12ad0c562e559a5406db087c1408d544ebe | TypeScript | 1,550 | 39 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
61352b63cd2d05c508e8592e166acd4c17d69c35f32250917534f9a3adc5166b | TypeScript | 1,551 | 51 | /**
* 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... |
216160d292400234889fd6a337829a7b4b6c08d1b4a886c33520600ebfd0b5bb | TypeScript | 1,552 | 43 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
1b161e2e26f1212fc4af7f98468c1494a781517f3ebfb355d6008f92ebe47bd4 | TypeScript | 1,553 | 44 | import { ChangeDetectionStrategy, Component } from '@angular/core'
import { NewestRelease } from '../newestRelease.directive'
import { HttpClient } from '@angular/common/http'
import { map } from 'rxjs/operators'
import { MatDialog } from 'src/sharedModules/angularMaterial.exports'
import { HowToCite } from '../howToCi... |
abed11413cb936bcccf3ba81552f193c21293b9006ec317665315c8aaa000c8a | TypeScript | 1,553 | 43 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
c328bf0c0b9ede2854e85fe8a53aaa1831e5b3304d54b893d1d60da05b992e7e | TypeScript | 1,553 | 51 | import { AudioView, LabelStudio, Relations } from "@humansignal/frontend-test/helpers/LSF";
import { audioWithFourRegionsResult, audioWithLabelsConfig, audioWithLabelsData } from "../../data/relations/audio";
describe("Relations: Audio", () => {
it("Should be able to create a relation", () => {
LabelStudio.param... |
c4e56bf2f83cf5aa199efc4f0fc1b2565031d70a584548d4c8637ab47b7a7653 | TypeScript | 1,553 | 61 | /**
* @file Hydrophobicity 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'
import {
ResidueH... |
776a559b49a8d4eabdb809c6b2a72ac8c7a774436801cbbc855f9b4f48906cc0 | TypeScript | 1,554 | 40 | interface PatchedHTMLMediaElement extends HTMLMediaElement {
_playPausePatched?: boolean;
}
type PatchableMethod = "play" | "pause";
const PATCHABLE_METHODS: PatchableMethod[] = ["play", "pause"];
/*
* This patch prevents unhandled promise rejections in development mode
* it will help in development with alerts t... |
e45b310d6600cf1692893eb1bbf93aa1307b28fc8d97096a6d5dfa096bdedf02 | TypeScript | 1,555 | 60 | export const icons: {[key: string]: string} = {
'arrows-alt-h': '\uf337',
'arrow-right': '\uf061',
'bed': '\uf236',
'bell': '\uf0f3',
'box': '\uf466',
'calendar': '\uf133',
'cloud': '\uf0c2',
'chevron-circle-right': '\uf138',
'chevron-right': '\uf054',
'circle': '\uf111',
'ci... |
8838e21f1ae3b4eb0a0db7da7482806d8d8d8e816b4ca0f0a774c738a99c83b3 | TypeScript | 1,556 | 37 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
6e35c6a1722514fd7473d443e9e7c44778484032961539ac758bc580d9a56c6a | TypeScript | 1,558 | 43 | import * as dagre from '@dagrejs/dagre';
import {Graph, Node} from './types';
const minSize = 1;
export function layoutGraphPretty(graph: Graph, nodeSize: number, horizontal: boolean, hidden: (id: Node) => boolean) {
const gap = nodeSize * 1.25;
const g = new dagre.graphlib.Graph<dagre.GraphLabel, dagre.NodeL... |
3879d30c685c2f2a6450193e56fe95e80bf216c178596d57f5b308da9e9fdd35 | TypeScript | 1,559 | 40 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
d5e02677a36668c50760823a5f664855b584c8f2d155c2b9869951150e90b70e | TypeScript | 1,559 | 30 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
c29a0b75469430f71355b1e83c132e647832a8a1ff322b807a1122fe1f132407 | TypeScript | 1,561 | 47 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
9d22d6f095e960e18fab2fef7f8c6c08310ea434d759743421fe81996f79ba6c | TypeScript | 1,562 | 48 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
5d050222426c376e242841dc3d2d020226c0f7c533216d0cad62f0bebfca4f10 | TypeScript | 1,563 | 60 | import { ScrollingModule } from '@angular/cdk/scrolling'
import { NgModule } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
import { MarkdownModule } from './markdown';
import { CommonModule } from '@angular/common';
imp... |
ba626a6a2050b4005c5d7b29116418033e459fd79b9d54d521f1e97d88ffe6cb | TypeScript | 1,563 | 65 | import { Component, Input } from "@angular/core";
import { MatSnackBar } from 'src/sharedModules/angularMaterial.exports'
import { ARIA_LABELS } from 'common/constants'
import { Clipboard } from "@angular/cdk/clipboard";
import { AngularMaterialModule } from "src/sharedModules";
import { CommonModule } from "@angular/c... |
29ac3fbbec093e07dab3d7760fbb1d94dbf8064c1acf9d84275bb128cc43d27c | TypeScript | 1,568 | 35 | import {expect, test} from '../fixtures/test';
import {echoWorkflow} from '../fixtures/workflows';
test('resubmits a workflow from the details page', async ({api, workflowDetailsPage}) => {
const name = await api.submitWorkflow(echoWorkflow());
await api.waitForPhase(name, 'Succeeded');
await workflowDeta... |
251ea4333d2af9266c03bb33a14c95fad757e49d776354b5879e602309e9cd31 | TypeScript | 1,571 | 56 | import { useCallback, useEffect, useState } from 'react';
/** Persist a width to localStorage so the user's resize choice survives
* reloads. Min/max clamp prevents pathological drags. */
export function useResizable(
key: string,
defaultWidth: number,
min: number,
max: number,
) {
const [width, setWidth] ... |
d3f3888dc1b5c7e439c6ff6fcc9aa05b0216ba6ef71375b4f6e9856a50ae741c | TypeScript | 1,572 | 47 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
d4f7a7b08d5b8a5b80c1dd3d5c7b4d0058899f8c04d4b5709953f45f1885efcf | TypeScript | 1,572 | 48 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
b874c18a9292835056e555a349370a9685ad6740f933fa288446196823659b77 | TypeScript | 1,573 | 52 | /* eslint-disable camelcase */
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Vers... |
6b12fa24f5960c2dbf0c2d912be9746a3995d31bc00f52154f5173d9d5a9985c | TypeScript | 1,574 | 43 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
afdad8c32cc7e746a765fd0f208b2bcc1d89329279b0713b11b0cb36833762a7 | TypeScript | 1,574 | 48 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
b12fac281898dccffc5b83a4c9c4312157d581620b999318b627f5cae9eb74d3 | TypeScript | 1,574 | 58 | /*
* 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 ... |
cf8b76d258976cf388a28bef9f3f3535f720c90da64fc40529abc00a8b024e48 | TypeScript | 1,576 | 41 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
d7d051b187916630232cbbe4dae121d7bc16a587b231667138ee53e2a46b14b5 | TypeScript | 1,576 | 69 | /**
* @file Script
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { Signal } from 'signals'
import { Log } from './globals'
import Stage from './stage/stage'
export interface ScriptSignals {
elementAdded: Signal
elementRemoved: Signal
nameChanged: Signal
}
/**
* Script class
... |
081bf6991491067994933d4a18e617faad6e4557166d329d793b3214c6298bf5 | TypeScript | 1,577 | 63 | /**
* @file Bfactor Colormaker
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { ColormakerRegistry } from '../globals'
import Colormaker, { StuctureColormakerParams, ColormakerScale, manageColor } from './colormaker'
import AtomProxy from '../proxy/atom-proxy'
import Selection from '..... |
24b80d227a79fccad4a34ec1a68197d38db8e6473ca2937c23e51b48c72ddd86 | TypeScript | 1,578 | 47 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
f6d39f168f14601c9dc30f980ca757be1f25b06515aa933bbe0ee97b1b3a52b4 | TypeScript | 1,578 | 46 | /**
* 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... |
2e15336ba695dc8d1a19f4aa5d26155cfb71781c7696cff7f5b744c6c2bb91f8 | TypeScript | 1,579 | 40 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
1d57215e48b7537edfa42950ef9c5ec7f3474b15d851b8d1fc9e4958e69e96cb | TypeScript | 1,581 | 40 | import { describe, expect, it } from "bun:test";
import defaultKeymap from "../../core/settings/keymap.json";
import { hotkeyLabel, rejectTooltip, REJECT_ACTION_HOTKEY_NAMES } from "../rejectHotkeys";
describe("reject hotkeys", () => {
it("names a keymap entry for every reject action", () => {
for (const name of... |
9ac6cb557362b0caeab995a659d3eead02d404c20fa17627389c85d43462fe95 | TypeScript | 1,581 | 39 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
7f49a2e360f8e0705d53dcbec70697065dbbb97a883e0aad3d039ab2d2a4a19e | TypeScript | 1,583 | 45 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
e94e490b32c6c1bdcc8d73c2abbdedaa623f2ec8f18e9616bfe07a5d9fe63240 | TypeScript | 1,583 | 61 | /**
* @file Parser Loader
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import { ParserRegistry } from '../globals'
import type { InferBondsOptions } from '../structure/structure-utils'
import Loader from './loader'
import { LoaderParameters, LoaderInput } from './loader-utils'
export inter... |
d1410923e8618ccde7aa93b68d77bd7834de5b0dbf549b43ac64128096edade9 | TypeScript | 1,585 | 36 | /**
* @file Backbone Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import BallAndStickRepresentation, { BallAndStickRepresentationParameters } from './ballandstick-representation';
import { Structure } from '../ngl';
import Viewer from '../viewer/viewer';
import AtomProxy from ... |
cca3d5e1076497a74e284e4c24ab1d62043ea474f7187dc7c739e9b76c6bab51 | TypeScript | 1,586 | 52 | /*
* 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 ... |
368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1 | TypeScript | 1,587 | 28 | /*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.... |
d64e32ea23c6cf3ec1f45cb5a6ca38cebd266aff2b5e81f389a640187ca0a070 | TypeScript | 1,587 | 59 | /**
* 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... |
ed6841d2fda809916e15a83940d7c545a69a76e06136496ee58e92f0dd7bf68f | TypeScript | 1,588 | 45 | /**
* @file Trace Representation
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @private
*/
import StructureRepresentation, { StructureRepresentationParameters, StructureRepresentationData } from './structure-representation';
import TraceBuffer from '../buffer/trace-buffer';
import { Structure } from '../... |
fe24c68614d77060fb4e1f4b542f03df71732860eacc966540e99a6f65413235 | TypeScript | 1,588 | 56 | import { LabelStudio } from "@humansignal/frontend-test/helpers/LSF";
describe("Feature Flags", () => {
it("can set feature flags on the global object", () => {
const flagName = "customFeatureFlag";
const anotherFlag = "anotherFlag";
cy.visit("/");
LabelStudio.setFeatureFlags({
[flagName]: tr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.