text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
declare module 'hamjest' { type Value = any; export class Matcher { constructor(fns?: {matches?: (value: Value) => boolean; describeTo?: (description: Description) => void; describeMismatch?: (value: Value, description: Description) => void}); matches(actual: Value): boolean; describeTo(description: Descriptio...
the_stack
import { assertActiveElement, assertFocusable, assertNotFocusable, assertRadioGroupLabel, getByText, getRadioGroupOptions, } from "$lib/test-utils/accessibility-assertions"; import { render } from "@testing-library/svelte"; import { RadioGroup, RadioGroupLabel, RadioGroupOption } from "."; import { suppress...
the_stack
import { UserRepresentation } from '@alfresco/js-api'; import { TaskDetailsModel } from '../../task-list/models/task-details.model'; export let standaloneTaskWithForm = new TaskDetailsModel({ id: '100', name: 'Standalone Task With Form', description: null, category: null, assignee: { id: 10...
the_stack
import * as ABIDecoder from "abi-decoder"; import * as compact from "lodash.compact"; import * as Web3 from "web3"; import { BigNumber } from "../../../../utils/bignumber"; import * as Units from "../../../../utils/units"; import { Web3Utils } from "../../../../utils/web3_utils"; import { AdaptersAPI, ContractsAPI, O...
the_stack
import { Spy, spy } from "@mysticatea/spy" import assert from "assert" import { Event, EventTarget } from "../src/index" import { Global } from "../src/lib/global" import { CanceledInPassiveListener, EventListenerWasDuplicated, InvalidEventListener, NonCancelableEventWasCanceled, OptionWasIgnored, }...
the_stack
import * as S from '@apollo-elements/test/schema'; import type { ApolloSubscriptionController } from '@apollo-elements/core'; import { c, html, useEffect, useState, useRef, useLayoutEffect } from 'atomico'; import { useSubscription } from './useSubscription'; import { aTimeout, defineCE, expect, nextFrame } from '@o...
the_stack
import { Component, OnInit } from "@angular/core"; import { GlobalVarsService } from "../global-vars.service"; import { BackendApiService } from "../backend-api.service"; import { SwalHelper } from "../../lib/helpers/swal-helper"; import { InfiniteScroller } from "../infinite-scroller"; import { IAdapter, IDatasource }...
the_stack
import { Nullable } from "../../../../shared/types"; import * as React from "react"; import { ParticleSystem, IParticleEmitterType, ConeParticleEmitter, BoxParticleEmitter, PointParticleEmitter, SphereParticleEmitter, HemisphericParticleEmitter, CylinderParticleEmitter, MeshParticleEmitter, } from "babylo...
the_stack
function array_map(obj: any, callback: any, thisArg?: any) { var T, A, k; if (obj === null) { throw new TypeError('this is null or not defined'); } // 1. Let O be the result of calling ToObject passing the |this| // value as the argument. var O = Object(obj); // 2. Let lenValue be the result of cal...
the_stack
declare module BABYLON { /** @hidden */ export var asciiartPixelShader: { name: string; shader: string; }; } declare module BABYLON { /** * AsciiArtFontTexture is the helper class used to easily create your ascii art font texture. * * It basically takes care ren...
the_stack
module CorsicaTests { "use strict"; var Key = WinJS.Utilities.Key, _LightDismissService = Helper.require("WinJS/_LightDismissService"), _element; var expectedDistanceFromAnchor = 4, anchorStyling = "position:absolute; top:50%; left:50%; height:10px; width:10px; background-color: re...
the_stack
import AzureStorage = require("azure-storage"); import Process = require("process"); // Note: The 'import * as Foo from "./Foo' syntax avoids the "compiler re-write problem" that breaks debugger hover inspection import * as Configuration from "./Configuration" import * as StringEncoding from "./StringEncoding"; import ...
the_stack
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { TranslateService } from '@ngx-translate/core'; import { ArtemisTestModule } from '../../test.module'; import { ActivatedRoute, convertToParamMap, Router } from '@angular/router'; import { of } from 'rxjs'; import { RouterTestin...
the_stack
* @title: Morphing * @description: * This sample loads a model with four morph targets and blends between them. * This kind of geometry manipulation can make the model appear to stretch, squash or twist. * You can drag the sliders around to modify how much to apply each morph target to the original geometry. */ /*...
the_stack
import React, { useContext, useRef, useState } from 'react'; import { debounce } from 'lodash'; import { DATA_SOURCE_ENUM, DATA_SOURCE_TEXT, formItemLayout, HELP_DOC_URL } from '@/constant'; import { isHaveTableColumn, isShowSchema, isES, isCacheOnlyAll, isCacheExceptLRU, isHaveAsyncPoolSize, isHaveCustomParams,...
the_stack
import { Router } from 'vue-router' import { ref, reactive, computed, h } from 'vue' import { UserManagerSettings, Log, Logger, User, UserManager, Profile, WebStorageStateStore, UserManagerEvents } from 'oidc-client' /** * Indicates the sign in behavior. */ export enum SignInType { /** * Uses th...
the_stack
import Database from 'better-sqlite3'; import {exit} from 'process.js'; import {assert} from 'console.js'; import {Dictionary, NumberDictionary} from '../../utils/lib-utils.js'; // Note that the types below match SQL tables in our data representation, and the // snake_case_named fields in each case match SQL fields. T...
the_stack
import * as path from 'path' import * as core from '@actions/core' import {URL} from 'url' import {getDownloadSpecification} from '../src/internal/download-specification' import {ContainerEntry} from '../src/internal/contracts' const artifact1Name = 'my-artifact' const artifact2Name = 'my-artifact-extra' // Populatin...
the_stack
import { loadFromPath } from '../../src/fhirdefs/load'; import { FHIRDefinitions } from '../../src/fhirdefs/FHIRDefinitions'; import path from 'path'; import { Type } from '../../src/utils/Fishable'; import { TestFisher, loggerSpy } from '../testhelpers'; describe('FHIRDefinitions', () => { let defs: FHIRDefinitions...
the_stack
import { TypeAssertion, ObjectAssertion, AdditionalPropsMember, ValidationContext } from '../types'; import { validate, getType } from '../validator'; import { compile } from '../compiler'; import { serialize, deserialize } from '../serializer'; ...
the_stack
* @module OrbitGT */ //package orbitgt.spatial.geom; type int8 = number; type int16 = number; type int32 = number; type float32 = number; type float64 = number; import { Bounds } from "./Bounds"; import { Coordinate } from "./Coordinate"; /** * Class Transform defines a generic 3D transformation. * * @version ...
the_stack
import { Sequence } from "../src/source-resolver"; import { createElement } from "../src/util"; import { TextView } from "../src/text-view"; import { RangeView } from "../src/range-view"; export class SequenceView extends TextView { sequence: Sequence; searchInfo: Array<any>; phaseSelect: HTMLSelectElement; nu...
the_stack
import { mat3, mat4, vec2, vec3 } from 'gl-matrix'; import { auxiliaries } from 'webgl-operate'; import { AccumulatePass, AntiAliasingKernel, BlitPass, Camera, Canvas, Context, DefaultFramebuffer, EventProvider, ForwardSceneRenderPass, Framebuffer, Geometry, GLTFAlphaM...
the_stack
import * as geom from "../format/geom"; import * as dbft from "../format/dragonBonesFormat"; import * as l2ft from "../format/live2DFormat"; const rotateMatrixA = geom.helpMatrixA; const rotateMatrixB = geom.helpMatrixB; let modelConfig: l2ft.ModelConfig; let result: dbft.DragonBones; let armature: dbft.Armature; let ...
the_stack
import { AsyncHierarchyIterable, AsyncOrderedHierarchyIterable } from '@esfx/async-iter-hierarchy'; import { AsyncOrderedIterable } from '@esfx/async-iter-ordered'; import { HashMap } from '@esfx/collections-hashmap'; import { HashSet } from '@esfx/collections-hashset'; import { Equaler } from '@esfx/equatable'; i...
the_stack
import { parse, parseExpression } from '@babel/parser' import { Expression, File, Identifier, isArrayPattern, isAssignmentPattern, isCallExpression, isClassDeclaration, isDeclaration, isDeclareClass, isDeclareFunction, isDeclareVariable, isEnumDeclaration, isExpression, isFile, isFunction,...
the_stack
import { LokiEventEmitter } from "./event_emitter"; import { ResultSet } from "./result_set"; import { Collection } from "./collection"; import { Doc } from "../../common/types"; import { Scorer } from "../../full-text-search/src/scorer"; /** * DynamicView class is a versatile 'live' view class which can have filters...
the_stack
import GL from '@luma.gl/constants'; import {getWebGL2Context, assertWebGL2Context, log} from '@luma.gl/gltools'; import Resource, {ResourceProps} from './resource'; import Texture2D from './texture-2d'; import Renderbuffer from './renderbuffer'; import {clear, clearBuffer} from './clear'; import {copyToDataUrl} from '...
the_stack
import React, { Component } from "react"; import { connect } from "react-redux"; import { withRouter } from "react-router-dom"; import queryString from "query-string"; import getDateString from "helpers/getDateString"; import MarkdownViewer from "Components/Common/MarkdownViewer"; import { Small, Medium } from "Compone...
the_stack
* This is a fork of the Karpathy's TSNE.js (original license below). * * The MIT License (MIT) * * Copyright (c) 2015 Andrej Karpathy * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software...
the_stack
import * as THREE from 'three'; const tmpOrigin = new THREE.Vector3(); const tmpU = new THREE.Vector3(); const tmpV = new THREE.Vector3(); const tmpNormal = new THREE.Vector3(); const tmpLookAt = new THREE.Vector3(); const tmpProbeBox = new THREE.Vector4(); const tmpPrevClearColor = new THREE.Color(); // used insid...
the_stack
import { satisfies } from 'satisfier' import * as T from '.' import { AllType } from './AllType' import { analyze } from './analyze' describe('non-strict', () => { const options = { strict: false, debug: false } describe('undefined', () => { test('only undefined passes', () => { const t = T.undefined ...
the_stack
import copyTo from 'copy-to-clipboard'; import Parser from './parser'; import { EditorInterface, EngineInterface, ClipboardInterface } from './types'; import { RangeInterface } from './types/range'; import { isEngine, isSafari } from './utils'; import { $ } from './node'; import Range from './range'; import { NodeInter...
the_stack
import * as React from 'react'; import styles from './MetadataNews.module.scss'; import { IMetadataNewsProps, IMetadataNewsState, IMetadataRefinerInfo, IMetadataNewsItem, ILookupInfo, ILoadNewsResult, IMetadataNewsPageCollectionInfo, unescapeHTML, IMetadataContextualMenuItemResult } from '../../../interfaces';...
the_stack
import { instantiateRipemd160, instantiateSecp256k1, instantiateSha1, instantiateSha256, instantiateSha512, Sha256, } from '../../crypto/crypto'; import { TransactionContextCommon } from '../../transaction/transaction-types'; import { generateSigningSerializationBCH, SigningSerializationFlag, } from '.....
the_stack
import { Equatable } from "@siteimprove/alfa-equatable"; import { Lazy } from "@siteimprove/alfa-lazy"; import { None, Option } from "@siteimprove/alfa-option"; import { Predicate } from "@siteimprove/alfa-predicate"; import { Refinement } from "@siteimprove/alfa-refinement"; import { Sequence } from "@siteimprove/alfa...
the_stack
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** * @interface * An interface representing StorageContainerProperties. * The properties of the Azure Storage Container for file archive...
the_stack
import { expect } from 'chai'; import ListBuilder from '../../../../../src/lib/device/lists/listBuilder'; describe('./lib/device/lists/listBuilder.ts', () => { describe('initialization', () => { it('should correctly set default values', () => { // WHEN const builder = new ListBuilder({ title:...
the_stack
import { Component, Input, OnInit } from '@angular/core'; import { ProgressModel } from './progressce.component.model'; @Component({ selector: 'amexio-progress-ce', templateUrl: './progressce.component.html', }) export class AmexioProgressCEComponent implements OnInit { /* Properties name : type da...
the_stack
import angular, {ICompileService, IRootScopeService, ITimeoutService} from 'angular' import 'angular-mocks' import {expect} from 'chai' import jQuery from 'jquery' describe('Plugins', function () { // Load the module with MainController beforeEach( angular.mock.module('gantt', 'gantt.labels', 'gantt.sortable'...
the_stack
import { ProcessIEInput } from "./../../../adapters/mongo-db/repo-models"; import { printSeparator } from "../../../adapters/messages/console-log"; import { SubProcessInfo, ElementIFlow, SubProcLinkInfo, IDataInfo, } from "./../../utils/structs/parsing-info"; import { ContractInfo } from "./../../../adapters/et...
the_stack
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config-base'; interface Blob {} declare class AppIntegra...
the_stack
import {Validator} from "prop-types"; import * as PropTypes from "prop-types"; import * as React from "react"; import {IPropMap, TUpdatePayload} from "../createReconciler"; import final from "../decorators/final"; import isNonProduction from "../utils/isNonProduction"; import "../utils/ReactSharedInternals"; import {IH...
the_stack
import * as T from '.' import { AllType } from './AllType' import { analyze } from './analyze' import { getPlainAnalysisReport } from './getPlainAnalysisReport' const nonStrict = { strict: false, debug: false } const strict = { strict: true, debug: false } describe('any', () => { test('pass', () => { assertRepo...
the_stack
import minimist = require("minimist"); import http = require("http"); import fs = require("fs"); import path = require("path"); import url = require("url"); import URL = url.URL; import child_process = require("child_process"); import os = require("os"); import crypto = require("crypto"); import { Readable, Wr...
the_stack
import { Workbook } from './../src/workbook'; import './../node_modules/es6-promise/dist/es6-promise'; import { Utils } from './../spec/utils.spec'; describe('ExcelCreation', () => { // afterEach(function () { // sleep(3000); // }); // function sleep(millSecs: any) { // let date: any = new ...
the_stack
import { Point } from './point'; import { isArray, isNumber, isString } from '@xiao-ai/utils'; type MatrixInput = number[][] | Matrix; /** * 矩阵类 * @class Matrix */ export class Matrix { /** * 矩阵的行数 * @type {number} */ row: number; /** * 矩阵的列数 * @type {number} */ colum...
the_stack
import { DraftBotShopMessage, DraftBotShopMessageBuilder, ShopItem, ShopItemCategory } from "../../core/messages/DraftBotShopMessage"; import {TranslationModule, Translations} from "../../core/Translations"; import {DraftBotEmbed} from "../../core/messages/DraftBotEmbed"; import {Constants} from "../../core/Constan...
the_stack
export interface ISetSource<K=any> { /** Returns the number of key/value pairs in the map object. */ size: number; /** Returns a boolean asserting whether the key exists in the map object or not. */ has(key: K): boolean; /** Returns a new iterator for iterating the items in the set (the order is implementatio...
the_stack
import { delay } from "./common"; import { Point } from "./structs/point"; import { FacetResult, PathPoint, OrientationEnum } from "./facetmanagement"; /** * Path segment is a segment of a border path that is adjacent to a specific neighbour facet */ export class PathSegment { constructor(public points: PathPo...
the_stack
import {Inspection, InspectionTimeRange, InspectionTimeRangeType} from '@/services/data/tuples/inspection-types'; import {ICON_SELECTED} from '@/widgets/basic/constants'; import {DropdownOption} from '@/widgets/basic/types'; import {Lang} from '@/widgets/langs'; import {FontAwesomeIcon} from '@fortawesome/react-fontawe...
the_stack
import {Component, Input, NgModule, OnInit} from "@angular/core"; import {CommonModule} from "@angular/common"; import sdk from '@stackblitz/sdk'; import {CommonUtils} from "../../jigsaw/common/core/utils/common-utils"; import {JigsawMarkdownModule} from "../markdown/markdown"; import {MockData} from "../app.intercepto...
the_stack
import { CSSResultGroup, unsafeCSS } from 'lit'; import { EmblaCarouselType } from 'embla-carousel'; import { createRef, Ref } from 'lit/directives/ref'; import { customElement } from 'lit/decorators.js'; import { FrigateCardCarousel } from './carousel.js'; import type { MediaShowInfo } from '../types.js'; import { ...
the_stack
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * IoTSpaces * __NOTE__: An instance of this class is automatically created for an * instance of the IoTSpacesClient. */ export interface IoTSpaces { /** ...
the_stack
import * as dagre from 'dagre'; import { Vertex, BaseVertex, Edge, BaseEdge, VertexGroup } from '../type'; import { Point } from '../Utils/graph'; import { find, findIndex } from '../Utils/utils'; import { BaseGroupLayout } from './base'; export interface LayoutVertex extends BaseVertex { name?: string; width: nu...
the_stack
import { action } from 'mobx'; import { observer } from 'mobx-react-lite'; import { useEffect, useState } from 'react'; import { Alert, Box, Button, FormField, Grid, Header, Input, Modal, Select, SpaceBetween, StatusIndicator, Table, TokenGroup, } from '@awsui/components-react'; import { useI1...
the_stack
import type * as tfvis from '@tensorflow/tfjs-vis'; import type { Tensor } from '@tensorflow/tfjs'; import type { BarChartOpts, ConfusionMatrixData, ConfusionMatrixOptions, HeatmapData, HeatmapOptions, HistogramOpts, SurfaceInfo, SurfaceInfoStrict, TableData, TypedArray, XYPl...
the_stack
import { StringParser } from '@/parsers/StringParser'; import { TestParser, Scope } from '../../lib/TestParser'; describe('parsers/StringParser', () => { TestParser.Case({ case: '0.0', description: 'parser.clear()', given: { parser: new StringParser({ schema: { type: 'string', ...
the_stack
// clang-format off import {loadTimeData} from 'chrome://resources/js/load_time_data.m.js'; import {flush} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'; import {PaymentsManagerImpl, SettingsCreditCardEditDialogElement, SettingsPaymentsSectionElement} from 'chrome://settings/lazy_load.js'; impor...
the_stack
import * as React from 'react' import { ContentSection } from '../components/content/ContentSection' import Layout from '../components/Layout' import ArrowRightIcon from 'mdi-react/ArrowRightIcon' import ArrowLeftIcon from 'mdi-react/ArrowLeftIcon' export const GetStartedPage: React.FunctionComponent<PageProps> = prop...
the_stack
import { NonIdealState, Spinner } from '@blueprintjs/core'; import { IconNames } from '@blueprintjs/icons'; import { Octokit } from '@octokit/rest'; import { GetResponseDataTypeFromEndpointMethod } from '@octokit/types'; import * as React from 'react'; import { useEffect, useState } from 'react'; import { useSelector }...
the_stack
import { MarkdownView, Plugin, FileSystemAdapter, Editor, Menu, MenuItem, TFile, normalizePath, Notice, addIcon, } from "obsidian"; import { resolve, extname, relative, join, parse, posix } from "path"; import { existsSync, mkdirSync, writeFileSync } from "fs"; import fetch from "node-fetch"; impo...
the_stack
namespace egret.web { export class TextBlock extends HashObject { private readonly _width: number = 0; private readonly _height: number = 0; private readonly _border: number = 0; public line: Line = null; public x: number = 0; public y: number = 0; public u:...
the_stack
import Debug from "debug"; import Client from "bittorrent-tracker/client"; import { Buffer } from "buffer"; import sha1 from "sha.js/sha1"; import { STEEmitter } from "./stringly-typed-event-emitter"; import { Segment } from "./loader-interface"; import { MediaPeer, MediaPeerSegmentStatus } from "./media-peer"; import...
the_stack
import { disposableTimeout, RunOnceScheduler } from 'vs/base/common/async'; import { Disposable, dispose, IDisposable } from 'vs/base/common/lifecycle'; import { localize } from 'vs/nls'; import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation'; import { themeColorFromId, ThemeIcon } from ...
the_stack
import { CodeWorkflowInformation, ContainerWorkflowInformation, WorkflowOption, SiteSourceControlRequestBody, } from '../DeploymentCenter.types'; import { RuntimeStacks, JavaContainers } from '../../../../utils/stacks-utils'; import { getWorkflowFileName, getLogId } from './DeploymentCenterUtility'; import Depl...
the_stack
* The Storage Module provides storage for URL parameters, and an API for * getting and setting TensorBoard's stateful URI. * * It generates URI components like: events&runPrefix=train* * which TensorBoard uses after like localhost:8000/#events&runPrefix=train* * to store state in the URI. */ module TF.URIStorage ...
the_stack
import type { TransformOptions, TransformResult, ModuleSource } from '../compiler/mod.ts' import type { APIHandler, Aleph as IAleph, DependencyDescriptor, ImportMap, LoadInput, LoadOutput, Module, RouterURL, ResolveResult, TransformInput, TransformOutput, SSRData, RenderOutput } from '../types.d.ts' import type { R...
the_stack
//#region Global Namespace /** * Global Namespace * This section includes members or types that extend the ECMAScript (JavaScript) Global object and other core objects. * @see {@link http://msdn.microsoft.com/en-us/library/bb310818(v=vs.100).aspx} */ //#region JavaScript Base Type Extensions /** * Provides extended ...
the_stack
import { createElement } from '@syncfusion/ej2-base'; import { Diagram } from '../../../src/diagram/diagram'; import { NodeModel, BpmnShapeModel } from '../../../src/diagram/objects/node-model'; import { ShapeAnnotationModel } from '../../../src/diagram/objects/annotation-model'; import { PointPortModel } from '../../....
the_stack
import { ExtractResult, RegExpUtility, Match, StringUtility } from "@microsoft/recognizers-text"; import { Constants, TimeTypeConstants } from "./constants"; import { Constants as NumberConstants } from "@microsoft/recognizers-text-number"; import { BaseNumberExtractor, BaseNumberParser } from "@microsoft/recognizers-t...
the_stack
import destination from '@turf/destination'; import bearing from '@turf/bearing'; import pointToLineDistance from '@turf/point-to-line-distance'; import { flattenEach } from '@turf/meta'; import { point, MultiLineString } from '@turf/helpers'; import { getCoords } from '@turf/invariant'; import WebMercatorViewport from...
the_stack
import * as path from 'path'; import * as fs from 'fs-extra'; import { Chain, events as chainEvents, GenesisBlock, Block, blockSchema, blockHeaderSchema, Account, AccountSchema, readGenesisBlockJSON, Transaction, transactionSchema, getAccountSchemaWithDefault, getRegisteredBlockAssetSchema, AccountDefault...
the_stack
import * as React from 'react'; import styles from './EventRecurrenceInfoYearly.module.scss'; import * as strings from 'CalendarWebPartStrings'; import { IEventRecurrenceInfoYearlyProps } from './IEventRecurrenceInfoYearlyProps'; import { IEventRecurrenceInfoYearlyState } from './IEventRecurrenceInfoYearlyState'; impor...
the_stack
import { ErrorCohortStats, IErrorAnalysisMatrixNode, MetricCohortStats, Metrics } from "@responsible-ai/core-ui"; /** * Temporary abstract class for cohort statistics. */ export abstract class BaseStats { public metricName: string; public constructor(metricName: string) { this.metricName = metricName...
the_stack
import * as assert from 'assert'; import { VSBuffer } from 'vs/base/common/buffer'; import { DisposableStore, toDisposable } from 'vs/base/common/lifecycle'; import { IFileService } from 'vs/platform/files/common/files'; import { ILogService } from 'vs/platform/log/common/log'; import { IUserDataProfilesService } from ...
the_stack
import { EventEmitter } from 'events'; import * as socketClusterClient from 'socketcluster-client'; import { SCServerSocket } from 'socketcluster-server'; import { codec } from '@liskhq/lisk-codec'; import { DEFAULT_PRODUCTIVITY, DEFAULT_PRODUCTIVITY_RESET_INTERVAL, FORBIDDEN_CONNECTION, FORBIDDEN_CONNECTION_REASO...
the_stack
import { Tag, defineTag } from "@esfx/internal-tag"; import { WaitQueue } from "@esfx/async-waitqueue"; import { LockHandle, UpgradeableLockHandle, AsyncLockable } from "@esfx/async-lockable"; import { Cancelable } from "@esfx/cancelable"; import { Disposable } from "@esfx/disposable"; export { LockHandle, Upgra...
the_stack
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config-base'; interface Blob {} declare class CloudDirec...
the_stack
import React, { useEffect, useState, createContext, useContext } from 'react' import firebase from "firebase" import "firebase/firestore" import "firebase/auth" import { useDocumentListen, useDataSourceListen } from '../firestore' import Provider, { ProviderDraft, Role } from 'models/commerce/Provider' import Pro...
the_stack
* Interfaces and methods for training models using tf.Tensor objects. */ import * as tfc from '@tensorflow/tfjs-core'; import {Scalar, Tensor, Tensor1D, tensor1d, util} from '@tensorflow/tfjs-core'; import {expandDims, gather, sliceAlongFirstAxis} from '../backend/tfjs_backend'; import {BaseCallback, configureCallba...
the_stack
import * as d3 from "d3"; import { has, map, keys, groupBy, sortBy, filter, find, compact, first, every, identity } from "lodash"; const exitNode = "<<<Exit>>>"; // @ts-expect-error ts-migrate(2339) FIXME: Property 'scale' does not exist on type 'typeof im... Remove this comment to see the full error message const col...
the_stack
import { HOME } from '../../robot-controls' import { robotReducer as reducer, actionTypes } from '..' import type { Action } from '../../types' import type { RobotState } from '..' const EXPECTED_INITIAL_STATE = { deckPopulated: null, modulesReviewed: null, // intrument probed + basic tip-tracking flags // T...
the_stack
// Type definitions for Ionic // Project: http://ionicframework.com // Definitions by: Spencer Williams <https://github.com/spencerwi/> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference path="../angularjs/angular.d.ts" /> interface IonicStatic { /** * What Ionic package versio...
the_stack
import * as moment from 'moment'; import * as namespaces from './clientapi/WebApiCoreFetchClientAuto'; //import * as namespaces from './clientapi/WebApiFetchClientAuto'; const DemoWebApi_Controllers_Client = namespaces.DemoWebApi_Controllers_Client; describe('Basic', ()=>{ it('simple 1', done=>{ expect(true).toB...
the_stack
import type {Directive, DirectiveResult, PartInfo} from './directive.js'; const DEV_MODE = true; const ENABLE_EXTRA_SECURITY_HOOKS = true; const ENABLE_SHADYDOM_NOPATCH = true; /** * `true` if we're building for google3 with temporary back-compat helpers. * This export is not present in prod builds. * @internal *...
the_stack
import BootstrapNotify from "../../libs/bootstrap-notify/BootstrapNotify"; import Loader from "../../libs/loader/Loader"; import DomAttributes from "../../core/utils/DomAttributes"; import ShuffleWrapper from "../shuffle/ShuffleWrapper"; import Ajax from "../../core/ajax/...
the_stack
import * as assert from 'assert' import { getMonoid } from '../src/Array' import { left, right } from '../src/Either' import * as Eq from '../src/Eq' import { pipe } from '../src/function' import { none, some as optionSome } from '../src/Option' import * as _ from '../src/ReadonlySet' import * as S from '../src/string'...
the_stack
import * as Block from './block' import * as NodeApi from './node-api' import * as BlockStore from './block-store' import * as BlockStoreInMemory from './block-store-inmemory' import * as MiniObservable from './mini-observable' const IS_DEBUG = false interface EventListenerInfo<T extends 'head' | 'block'> { liste...
the_stack
import { css } from "../src/css" import { toCSSVar } from "../src/create-theme-vars" const theme = toCSSVar({ breakpoints: { sm: "40em", md: "52em", lg: "64em", xl: "80em", }, colors: { red: { 500: "#ff0000", }, primary: "tomato", secondary: "cyan", }, fontSizes: [12, 14...
the_stack
import React from 'react'; import PropTypes from 'prop-types'; import { format as dateFnsFormat } from 'date-fns'; import { noop } from 'lodash'; import BaseComponent, { BaseProps } from '../_base/baseComponent'; import { strings } from '@douyinfe/semi-foundation/timePicker/constants'; import ScrollList from '../scrol...
the_stack
import * as React from "react" import { ScrollDiv } from "../ScrollDiv.js" import { SizingDiv } from "../SizingDiv.js" import { StickyDiv } from "../StickyDiv.js" import type { GridProps } from "../types.js" import { useDataDimension } from "../useDataDimension.js" import { useIndicesForDimensions } from "../useDimens...
the_stack
import { OrderByDirection, QueryType } from './constant' import { Db } from './index' import { Validate } from './validate' import { Util } from './util' // import { Command } from './command'; // import * as isRegExp from 'is-regex' import { QuerySerializer } from './serializer/query' import { UpdateSerializer } from ...
the_stack
import { AcadWeekInfo } from 'nusmoderator'; import { castArray, difference, each, first, flatMapDeep, get, groupBy, invert, isEmpty, isEqual, last, map, mapValues, omitBy, partition, pick, range, sample, values, } from 'lodash'; import { addDays, min as minDate, parseISO } from 'd...
the_stack
import type { CSpellUserSettings } from '@cspell/cspell-types'; import * as path from 'path'; import { createCSpellSettingsInternal as csi } from '../Models/CSpellSettingsInternalDef'; import { clearCachedSettingsFiles, extractImportErrors, getCachedFileSize, getGlobalSettings, loadConfig, readS...
the_stack
import { Octokit } from '@octokit/rest'; import * as fs from 'fs-extra'; import inquirer from 'inquirer'; import * as path from 'path'; import { v4 as uuid } from 'uuid'; import { provider as cloudformationProviderName } from '../../../provider-utils/awscloudformation/aws-constants'; import { getContainers } from '../....
the_stack
import type Ajv from ".." import _Ajv from "./ajv" import chai from "./chai" chai.should() const coercionRules = { string: { number: [ {from: 1, to: "1"}, {from: 1.5, to: "1.5"}, {from: 2e100, to: "2e+100"}, ], boolean: [ {from: false, to: "false"}, {from: true, to: "true"},...
the_stack
import File, {FileInterface} from "../../models/file"; import User, {UserInterface} from "../../models/user"; import s3 from "../../db/s3"; import env from "../../enviroment/env"; import {Response, Request} from "express"; import ChunkInterface from "./utils/ChunkInterface"; import NotAuthorizedError from "../../utils/...
the_stack
import { TokenReader, ITokenizationSettings, IRenderSettings, makeRenderSettings, defaultRenderSettings, IRenderable, IRenderOptions, IPosition, IParseSettings, defaultParseSettings } from "../helpers"; import { Module } from "../javascript/components/module"; import { Stylesheet } from "../css/stylesheet"; import { re...
the_stack
(function () { class ClosedCaption { element: { [name: string]: any } = {}; // 节点集合 data: { [name: string]: any } = {}; // 字幕缓存 resizeRate = 100; // 字幕大小倍率 ON = `<svg width="22" height="28" viewbox="0 0 22 30" xmlns="http://www.w3.org/2000/svg"><path id="svg_1" fill-rule="evenodd" fi...
the_stack