text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { isDefined, isUndefined, max } from '@collectable/core'; import { COMMIT_MODE, CONST, OFFSET_ANCHOR, invertAnchor, invertOffset, normalizeIndex, verifyIndex } from './common'; import { View } from './view'; import { ExpansionParameters, Slot } from './slot'; import { ListStructure, createList, getOtherView, get...
the_stack
import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnDestroy, Output, ViewChild, } from '@angular/core'; import { AbstractControl, FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, Validators, } from '@angular/forms'; import { TranslateService } from '@ngx-trans...
the_stack
import type { ActionMap } from "@interactjs/core/scope"; import type { Modifier } from "@interactjs/modifiers/base"; import type { Interactable, InteractEvent, Interaction, ResizeEvent } from "@interactjs/types"; import interact from "@nothingislost/interactjs"; import { around } from "monkey-around"; import { Compon...
the_stack
import {PluginBase} from "../plugin-base"; import {Workflow} from "../../"; import {GraphNode} from "../../graph/graph-node"; import {Geometry} from "../../utils/geometry"; import {Edge} from "../../graph/edge"; import {EdgePanner} from "../../behaviors/edge-panning"; export class SVGPortDragPlugin extends ...
the_stack
import { Store } from 'redux'; import ReduxThunk, { ThunkDispatch } from 'redux-thunk'; import configureMockStore from 'redux-mock-store'; import GetEntity from '../../src/thunk'; import { EntityAction, EntityActionType, ProcessorType, ReduxEntityOptions, ReduxEntityState } from '../types'; type DispatchExts = Thunk...
the_stack
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * ManagementGroups * __NOTE__: An instance of this class is automatically created for an * instance of the ManagementGroupsClient. */ export interface Manageme...
the_stack
import assert = require("assert") import { Direction, JoinParam, JoinType, LOGIC_COMMANDS, Order, Params, QUERY_COMMANDS, UPDATE_COMMANDS } from "../types" /** * SqlBuilder: Mongo 操作语法生成 SQL 语句 */ export class SqlBuilder { readonly params: Params private _values: any[] = [] constructor(params: Params)...
the_stack
import DocPage from '../../components/DocPage' import DocSection from '../../components/DocSection' import Code from '../../components/Code' import wdill from '../../public/images/What does it look like.png' import wdill1 from '../../public/images/What does it look like1.png' import wdill2 from '../../public/images/Wha...
the_stack
import AVLTreeNode from './avl-tree-node' import Stack from '../../sequences/stack' import * as utils from '../../utils' class AVLTree<T> { root: AVLTreeNode<T> | null private sz: number private compare: utils.CompareFunction<T> constructor(compareFunction?: utils.CompareFunction<T>) { this.root = null ...
the_stack
import { Container } from '../../src/dependecy-injection/di.container'; import { DiService } from '../../src/dependecy-injection/di.service'; import { BeforeTests, Test, TestService } from '../../src/test/test.decorators'; import { AsserterService } from '../../src/test/test.shared'; import { Di1Example } from './examp...
the_stack
import LRU from 'lru-cache' import superagent from 'superagent' import { UserBuyMenu } from 'user/userbuymenu' import { UserCosmetics } from 'user/usercosmetics' import { UserInventoryItem } from 'user/userinventoryitem' import { UserLoadout } from 'user/userloadout' import { userSvcAuthority, UserSvcPing } from 'aut...
the_stack
(function style_init() { "use strict"; const sparser:sparser = global.sparser, style = function lexer_style(source:string):data { let a:number = 0, ltype:string = "", ltoke:string = ""; const parse:parse = sparser.parse, ...
the_stack
import { Modal, Notice, Plugin, Setting, addIcon, setIcon, FileSystemAdapter, } from "obsidian"; import cloneDeep from "lodash/cloneDeep"; import { createElement, RotateCcw, RefreshCcw, FileText } from "lucide"; import type { FileOrFolderMixedState, RemotelySavePluginSettings, SyncTriggerSourceType,...
the_stack
import { Component, Watch } from 'vue-property-decorator'; import { forceSimulation, Simulation, forceLink, forceManyBody, forceCenter } from 'd3-force'; import { event as d3Event, select } from 'd3-selection'; import { line, curveBasis, curveLinearClosed } from 'd3-shape'; import { zoom, ZoomBehavior, zoomIdentity } f...
the_stack
import { Injectable } from '@angular/core'; import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core'; import { Observable } from 'rxjs'; export enum BackgroundGeolocationLocationCode { PERMISSION_DENIED = 1, LOCATION_UNAVAILABLE = 2, TIMEOUT = 3, } export enum BackgroundGeoloc...
the_stack
import LRUCache from 'lru-cache'; import * as vscode from 'vscode'; import { Repository } from '../api/api'; import { GitApiImpl } from '../api/api1'; import { parseRepositoryRemotes } from '../common/remote'; import { AuthProvider } from '../github/credentials'; import { FolderRepositoryManager, NO_MILESTONE, PullR...
the_stack
import * as Protocol from '../../../../../../front_end/generated/protocol.js'; import * as ApplicationComponents from '../../../../../../front_end/panels/application/components/components.js'; import * as Coordinator from '../../../../../../front_end/ui/components/render_coordinator/render_coordinator.js'; import * as ...
the_stack
import { TabStopRequirementState } from 'common/types/store-data/visualization-scan-result-data'; import { AutomatedTabStopRequirementResult } from 'injected/tab-stop-requirement-result'; import * as React from 'react'; import { ReportExportServiceKey } from 'report-export/types/report-export-service'; import { TabStop...
the_stack
import { IExecuteFunctions, } from 'n8n-core'; import { IBinaryData, ICredentialsDecrypted, ICredentialTestFunctions, IDataObject, INodeExecutionData, INodeType, INodeTypeDescription, NodeCredentialTestResult, NodeOperationError, } from 'n8n-workflow'; import { addAdditionalFields, apiRequest, getPropert...
the_stack
'use strict'; import * as os from 'os'; import * as TypeMoq from 'typemoq'; import { DiagnosticSeverity, TextDocument, Uri, WorkspaceFolder } from 'vscode'; import { LanguageServerType } from '../../client/activation/types'; import { IApplicationShell, IWorkspaceService } from '../../client/common/application/types'; ...
the_stack
import React from 'react'; import cx from 'classnames'; import omit from 'lodash/omit'; import isFunction from 'lodash/isFunction'; import assign from 'lodash/assign'; import { Steps, Result, Spin } from 'antd'; import Memorize from './memorize'; import { Form, FieldGroup, FormProps, FieldGroupProps, FormAction, FormIn...
the_stack
* Unit tests for core.ts. */ import {cast, ones, serialization, Tensor, tensor1d, Tensor2D, tensor2d, tensor3d} from '@tensorflow/tfjs-core'; import {SymbolicTensor} from '../engine/topology'; import * as tfl from '../index'; import {Shape} from '../keras_format/common'; import {deserialize} from '../layers/serializ...
the_stack
declare var App: AppleTVJS.App; declare var Device: AppleTVJS.Device; declare var navigationDocument: AppleTVJS.NavigationDocument; declare var Settings: AppleTVJS.Settings; declare function evaluateScripts(scripts: string[], complete: (success: boolean) => void): void; declare namespace AppleTVJS { interface App { ...
the_stack
import { assertNotNull } from "common"; import { ShaderAttributes, SizingData, Texture, Uniform, UniformType, } from "types"; import { ZerdeParser } from "zerde"; type UniformLocation = { name: string; offset: number; ty: string; loc: WebGLUniformLocation | null; fn: WebGLRenderer["uniformFnTable"]...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement } from "../shared"; /** * Statement provider for service [appmesh-preview](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsappmeshpreview.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/U...
the_stack
declare namespace ast { /** * Base type for all nodes that represent grammar AST. * * @template {T} Type of the node */ interface Node<T> { /** Defines type of each node */ type: T; /** * Location in the source grammar where node is located. Locations of all * child nodes always in...
the_stack
const teamTypes = ['read', 'write', 'admin']; const defaultLargeAdminTeamSize = 250; import { WebhookProcessor } from '../organizationProcessor'; import { Operations } from '../../business'; import { Organization } from '../../business'; import RenderHtmlMail from '../../lib/emailRender'; import { IMailProvider } fro...
the_stack
import {defaultTransformPseudoClasses, getTransformedPseudoClass, transformPseudoClasses} from './transform-pseudo-classes'; declare global { interface DocumentOrShadowRoot { adoptedStyleSheets?: CSSStyleSheet[]; } } /** * Retrieves the element type from a `Harness` type. * * @template H The harness type. ...
the_stack
import { INodeProperties, } from 'n8n-workflow'; export const taskOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', type: 'options', displayOptions: { show: { resource: [ 'task', ], }, }, options: [ { name: 'Create', value: 'create', descri...
the_stack
import * as chrome from "selenium-webdriver/chrome"; import { By, until, Builder, Capabilities, WebDriver, Locator, promise, logging, WebElement, Condition, } from "selenium-webdriver"; import { config, BenchmarkDriverOptions } from "./common"; interface PathPart { tagName: string; index: numb...
the_stack
import * as React from "react" import * as ReactDOM from "react-dom" import * as Immutable from "immutable" import * as Moment from 'moment' import {C, Mode, Cont, CmdCommon, make_C, unit, bind} from './core' function format_int(num:number, length:number) : string { return (num / Math.pow(10, length)).toFixed(leng...
the_stack
import {Easing} from "@swim/util"; import {Affinity} from "@swim/component"; import {Spec, Test, Exam} from "@swim/unit"; import {Color} from "@swim/style"; import {Look, Mood, Theme, ThemeAnimator} from "@swim/theme"; import {TestThemeComponent} from "./TestThemeComponent"; export class ThemeAnimatorSpec extends Spec...
the_stack
import 'jest-extended' import { request } from '@test/server' import fs from 'fs' import { promisify } from 'util' import { end } from '@test/supertest-shared-utils' import { Response } from 'superagent' import { getClaims } from '@shared/jwt' import { registerAndLoginAccount } from '@test/utils' import { SuperTest,...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * Manages a Key Vault. * * ## Disclaimers * * > **Note:** It's possible to define Key Vault Access Policies both within the `azure.keyvault.KeyVault` resource via...
the_stack
import Sandbox, { SandboxConstructor, SandboxProps } from '@ice/sandbox'; import isEmpty from 'lodash.isempty'; import { NOT_LOADED, NOT_MOUNTED, LOADING_ASSETS, UNMOUNTED, LOAD_ERROR, MOUNTED } from './util/constant'; import checkUrlActive, { ActivePath, PathOption, formatPath } from './util/checkActive'; import { c...
the_stack
import * as vscode from 'vscode'; import { Rules } from './rules'; import { Line, Element, BlockElement, ElementType, BlockElementType, Analyst } from './analyst'; export interface FormatterConfig { allowInlineFormat: boolean, allowSplitLine: boolean, newLineForBlockStart: boolean, } export class Formatter ...
the_stack
import { debugExec, fetchToCache, notNull, withTmpDir } from "@adpt/utils"; import db from "debug"; import execa from "execa"; import { writeFile } from "fs-extra"; import * as ld from "lodash"; import * as os from "os"; import * as path from "path"; import * as readline from "readline"; import { Readable } from "strea...
the_stack
// TODO(1): Get Typescript to have string-enum types as WebRtc is full of string // enums. // https://typescript.codeplex.com/discussions/549207 // TODO(2): get Typescript to have union types as WebRtc uses them. // https://typescript.codeplex.com/workitem/1364 interface RTCConfiguration { iceServers: RTCIceServer[...
the_stack
import '../setup' /* External Imports */ import { DB, newInMemoryDB } from '@pigi/core-db' import { keccak256, DefaultSignatureProvider } from '@pigi/core-utils' /* Internal Imports */ import { abiEncodeTransition, DefaultRollupBlockSubmitter, RollupBlock, RollupBlockSubmitter, } from '../../src' const getIn...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement } from "../shared"; /** * Statement provider for service [mgn](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsapplicationmigrationservice.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/...
the_stack
import * as assert from 'assert'; import * as path from 'path'; import * as mockery from 'mockery'; import * as ttm from 'azure-pipelines-task-lib/mock-test'; class MockedTask { private _proxyUrl: string; private _proxyUsername: string; private _proxyPassword: string; private _proxyBypass: string; ...
the_stack
import { ActivityMessage } from './common/messages/activity-message'; import { AuthMessage } from './common/messages/auth-message'; import { ErrorMessage } from './common/messages/error-message'; import { Message } from './common/messages/message'; import { MessageType } from './common/messages/message-type'; import { ...
the_stack
import { Cluster } from './cluster' import { CouchbaseError, CollectionNotFoundError, EventingFunctionCompilationFailureError, EventingFunctionDeployedError, EventingFunctionIdenticalKeyspaceError, EventingFunctionNotBootstrappedError, EventingFunctionNotDeployedError, EventingFunctionNotFoundError, } f...
the_stack
import React from "react"; import { fireEvent, render, screen, waitFor } from "@testing-library/react"; import "@testing-library/jest-dom"; import { testAccount, testResult, TEST_CONFIG } from "../TestConstants"; import { MsalProvider, MsalAuthenticationTemplate, MsalAuthenticationResult, IMsalContext, useMsal } from "...
the_stack
// ======================================================================== // XML.ObjTree -- XML source code from/to JavaScript object like E4X // ======================================================================== let XML = function () { }; // constructor XML.ObjTree = function () { // @ts-ignore r...
the_stack
module BABYLONX { export class NoiseGen { private _color1 = "#c0dec9"; private _color2 = "#282226"; private _octaves = 6; private _persistence = .9; private _scale = 36.3; private _seed = 1; private _size = 250; private _percentage = .6; ...
the_stack
import { assert } from '@0x/assert'; import { addressUtils } from '@0x/utils'; import EthereumTx = require('ethereumjs-tx'); import ethUtil = require('ethereumjs-util'); import HDNode = require('hdkey'); import * as _ from 'lodash'; import { Lock } from 'semaphore-async-await'; import { DerivedHDKeyInfo, Ledge...
the_stack
import { action } from "mobx"; import Cartesian2 from "terriajs-cesium/Source/Core/Cartesian2"; import Cartesian3 from "terriajs-cesium/Source/Core/Cartesian3"; import Cartographic from "terriajs-cesium/Source/Core/Cartographic"; import Ellipsoid from "terriajs-cesium/Source/Core/Ellipsoid"; import EllipsoidTerrainProv...
the_stack
import { Component, ViewChild, ViewChildren, QueryList, trigger, state, animate, transition, style } from '@angular/core'; import { NavParams, Slides, ViewController, LoadingController, AlertController, PopoverController } from 'ionic-angular'; //Components import { ProgressBarComponent } from '../../components/progre...
the_stack
import * as _ from "lodash"; import { ReducerFunction } from "./types"; import util from "./util"; // // Functions to process missing values out of a value list // /** * A pass through filter, keeps the input values just as they were. */ const keepMissing = (values: number[]) => values; /** * Filters out any mis...
the_stack
import { Disposable, languages as Languages, window as Window, workspace as Workspace, CancellationToken, ProviderResult, Diagnostic as VDiagnostic, CancellationTokenSource, TextDocument, CancellationError, Event as VEvent, EventEmitter, DiagnosticCollection, Uri } from 'vscode'; import { Proposed, ClientCapabiliti...
the_stack
export type Maybe<T> = T | null export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] } export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> } export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> } /** All b...
the_stack
import Grid, { GRID_PROPERTY_TYPES, withMethods } from "@egjs/grid"; import { diff } from "@egjs/list-differ"; import { GROUP_TYPE, IGNORE_PROPERITES_MAP, INFINITEGRID_METHODS, ITEM_INFO_PROPERTIES, ITEM_TYPE } from "./consts"; import { GroupManagerStatus, InfiniteGridGroupStatus } from "./GroupManager"; import Infinit...
the_stack
import {CacheInfo, ImageId, ImageData, ImagesList, ImagesMap} from './api'; import {ImageEventWithId} from './index'; import {styled, Layout, Toolbar, theme} from 'flipper-plugin'; import { Button, Switch, Empty, Skeleton, Typography, Image, Row, Col, Badge, } from 'antd'; import MultipleSelect from ...
the_stack
import fetch from '@/util/fetch' import qs from 'qs' import { BASE, BUILD, DEPINFO, EVENT, HEALTH, TRACE } from './initialState' import model from './model' const application = { heapDownloadUrl: (id: string) => `${apiHost}/admin/instances/${id}/actuator/heapdump`, fetchServiceList: ( findType = 0, pageNu...
the_stack
import { TransactionCollectorOptions, indexer as BaseIndexerModule, Output, OutPoint, TransactionWithStatus, } from "@ckb-lumos/base"; import { SearchKeyFilter, CKBIndexerQueryOptions, GetTransactionsResult, GetTransactionsResults, IOType, Order, TransactionWithIOType, GetTransactionRPCResult,...
the_stack
import { Component, OnInit, Renderer2, ViewChild } from '@angular/core'; import { IgxGridComponent, RowType, IgxTreeGridComponent, IgxHierarchicalGridComponent, IPinningConfig, RowPinningPosition, IRowDragStartEventArgs, GridSummaryCalculationMode, GridSummaryPosition } fr...
the_stack
import { Utility } from "../../utility/Utility"; export interface IMathematicsHelper { // ---- NOTE-REFERENCE ---- https://en.wikipedia.org/wiki/Softmax_function softmaxSingleFunction(inputs: number[], index: number): number; smoothArgmaxApproximationSingleFunction(inputs: number[], index: number): number...
the_stack
import Alignment, { Bounds } from "./alignment"; import BiStringBuilder from "./builder"; import heuristicInfer from "./infer"; import { Replacer, normalizeReplacer, cloneRegExp } from "./regex"; import * as unicode from "./unicode"; export type AnyString = string | BiString; /** * A bidirectionally transformed stri...
the_stack
import { ProposalStatus, Proposal, Vote, VotingParams, DepositParams, TallyParams, Deposit, TallyResult } from '../../../cosmos/gov/v1beta1/gov'; import { Reader, Writer } from 'protobufjs/minimal'; import { PageRequest, PageResponse } from '../../../cosmos/base/query/v1beta1/pagination'; export declare const protobufP...
the_stack
import { ViewChild, Component, DebugElement, OnInit } from '@angular/core'; import { TestBed, fakeAsync, tick } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { IgxGridComponent } from './grid.component'; ...
the_stack
import { calculateFairnessMetric } from "./calculateFairnessMetric"; import { FairnessModes } from "./FairnessMetrics"; const closeTo = (expected: number, precision = 2) => ({ asymmetricMatch: (actual: number) => Math.abs(expected - actual) < Math.pow(10, -precision) / 2 }); describe("calculateFairnessMetric", (...
the_stack
import { ComprModeType } from './compr-mode-type' import { Context } from './context' import { LoaderOptions, Library, Instance } from './seal' import { Exception, SealError } from './exception' import { MemoryPoolHandle } from './memory-pool-handle' import { ParmsIdType, ParmsIdTypeConstructorOptions } from './parms-i...
the_stack
/* tslint:disable */ /* eslint-disable */ //---------------------- // <auto-generated> // Generated using the NSwag toolchain v12.3.1.0 (NJsonSchema v9.14.1.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org) // </auto-generated> //---------------------- // ReSharper disable InconsistentNaming import { mergeMap as ...
the_stack
import pino from 'pino' import { DirectusApplication, DirectusCollectibleTemplate, DirectusCollection, DirectusHomepage, DirectusLanguageTemplate, DirectusPackTemplate, DirectusSet, DirectusStatus, DirectusWebhook, } from '@algomart/schemas' import { HttpTransport } from '@algomart/shared/utils' impor...
the_stack
import * as React from "react"; import { CSSProperties } from "react"; import { getEngineProxyService } from "../../ide/engine-proxy"; import { Icon } from "../../../emu-ide/components/Icon"; import { SideBarPanelDescriptorBase } from "../../ide/side-bar/SideBarService"; import { SideBarPanelBase, SideBarProps } from ...
the_stack
import * as childProcess from 'child_process'; import { AudioCodec, AudioDecoder, AudioEncoder, AudioFilter, Demuxer, Format, Muxer, SubtitleCodec, SubtitleDecoder, SubtitleEncoder, VideoCodec, VideoDecoder, VideoEncoder, VideoFilter } from './_types'; /** @public */ export enum LogLevel { ...
the_stack
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; import { CreateProjectCommand, CreateProjectCommandInput, CreateProjectCommandOutput, } from "./commands/CreateProjectCommand"; import { DeleteProjectCommand, DeleteProjectCommandInput, DeleteProjectCommandOutput, } from "./comman...
the_stack
import { assert } from 'chai'; import sinon from 'sinon'; import { createTVPropGetter, ResultDb, TestVariantStatus } from '../services/resultdb'; import { LoadingStage, TestLoader } from './test_loader'; const variant1 = { testId: 'a', variant: { def: { key1: 'val1' } }, variantHash: 'key1:val1', status: Test...
the_stack
import _debug from 'debug' import forEach from 'lodash/forEach' import map from 'lodash/map' import omit from 'lodash/omit' import { HangUpAction } from '../actions/CallActions' import { MediaStreamAction, MediaTrackAction, MediaTrackPayload } from '../actions/MediaActions' import { RemovePeerAction } from '../actions/...
the_stack
import { VariableIndex } from '../components/variableSubstitution/types'; import { Cancellable } from 'api/cancellablePromise'; import { checkExecutionStatus, closeStatement, ExecuteApiResponse, executeStatement, ExecutionHandle, ExecutionHistory } from 'apps/editor/execution/api'; import { EXECUTABLE_TRA...
the_stack
import { Debugger } from 'debug'; import rawDebug from '../../debug'; import { LoopResolver, ArrayMapResolver, ConditionalResolver, EchoResolver, NoopResolver, PauseResolver, RepeaterResolver, StopResolver, SubFlowResolver, ThrowErrorResolver, WaitResolver, } from '../../resolver-library'; import ...
the_stack
export type LuaVersion = '5.1' | '5.2' | '5.3' | 'LuaJIT' | 'PICO-8' | 'PICO-8-0.2.1' | 'PICO-8-0.2.2'; export interface Options { /** Explicitly tell the parser when the input ends. */ wait: boolean; /** Store comments as an array in the chunk object. */ comments: boolean; /** Track identifier sco...
the_stack
import { IConfig, ParseFeRouteItem } from '@aora/types'; import { existsSync, lstatSync, mkdirSync, promises as fsp, readdirSync } from 'fs'; import * as esbuild from 'esbuild'; import * as path from 'path'; import { accessFile, getCwd, getFeDir, normalizeStartPath } from './cwd'; const debug = require('debug')('ssr:p...
the_stack
import { configureTestSuite } from '../test-utils/configure-suite'; import { waitForAsync, TestBed, fakeAsync, tick } from '@angular/core/testing'; import { IgxTreeNavigationComponent, IgxTreeScrollComponent } from './tree-samples.spec'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; impor...
the_stack
import './style.scss' import { EventEmitter } from 'eventemitter3' import { Danmaku } from '@/player/danmaku/danmaku' import { Ui, UiString } from '@/player/ui' import { DanmakuLayerOptions, MakeDanmakuLayerOptions, } from '@/player/danmaku/danmakuLayer' import { QualityLevel, QualityLevelAdapter } from '@/player/quali...
the_stack
import { toQueryString } from "../../utils"; import { SdkClient } from "../common/sdk-client"; import { notificationTemplate } from "./notification-data-template"; import { NotificationModelsV4 } from "./notification-v4-models"; /** * The Notification API allows developers to manage and utilize the operations related...
the_stack
import { TwilioCliError, env as utilsEnv } from 'flex-dev-utils'; import * as fs from 'flex-dev-utils/dist/fs'; import createTest, { mockGetPkg } from '../framework'; import FlexPlugin from '../../sub-commands/flex-plugin'; import DoneCallback = jest.DoneCallback; describe('SubCommands/FlexPlugin', () => { const { ...
the_stack
import * as OriginSequelize from 'sequelize'; import * as chai from 'chai'; import * as sinon from 'sinon'; import * as sinonChai from 'sinon-chai'; import { BeforeCreate, Sequelize } from '../../../src'; import { Column, Model, Table } from '../../../src'; import { Hook } from '../../models/Hook'; import { createSeq...
the_stack
declare namespace gsap { // GSAP specific interface CSSProperties { [key: string]: any; alpha: TweenValue; autoAlpha: TweenValue; rotate: TweenValue; rotateX: TweenValue; rotateY: TweenValue; rotateZ: TweenValue; rotation: TweenValue; rotationX: TweenValue; rotationY: TweenV...
the_stack
import { buildRights, IUser, KYCStatus, Role, UserStatus, UserRegistrationData, EmailConfirmationResponse } from '@energyweb/origin-backend-core'; import { HttpStatus, INestApplication } from '@nestjs/common'; import { expect } from 'chai'; import request from 'supertest'; import { Database...
the_stack
import * as vscode from "vscode"; import { Mutex } from "await-semaphore"; import CancellationToken from "./CancellationToken"; import { getAssistantMode, setAssistantMode, AssistantMode, } from "./AssistantMode"; import { AssistantDiagnostic } from "./AssistantDiagnostic"; import { debounce, getAPIKey } from "....
the_stack
import { ASJsonLdProfileContentType, isASLink } from "../activitystreams"; import { Activity, ASLink, ASObject, Collection, isActivity, LDObject, Place, } from "../types"; import { HasLinkPrefetchResult, LinkPrefetchFailure, LinkPrefetchResult, LinkPrefetchSuccess, } from "../types"; import { crea...
the_stack
import { join as pathJoin } from 'path'; import { get as _get, isPlainObject as _isPlainObject } from 'lodash'; import { Logger, SfdxError, Messages } from '@salesforce/core'; import { SfdxProject } from '@salesforce/core'; import { MdRetrieveApi, MdRetrieveOptions } from '../mdapi/mdapiRetrieveApi'; import MetadataReg...
the_stack
import type {Buffer} from 'node:buffer' import {expectType, expectError} from 'tsd' import type {Node, Parent, Literal} from 'unist' import type {VFile} from 'vfile' import { unified, Plugin, Processor, FrozenProcessor, TransformCallback } from './index.js' expectType<Processor>(unified()) expectType<FrozenP...
the_stack
import * as vscode from 'vscode'; import { VSCodeBlockchainOutputAdapter } from '../logging/VSCodeBlockchainOutputAdapter'; import { ExtensionCommands } from '../../ExtensionCommands'; import { FabricSmartContractDefinition, FabricEnvironmentRegistry, FabricEnvironmentRegistryEntry, IFabricEnvironmentConnection, LogTyp...
the_stack
import * as React from "react"; import { int, innerHeight, innerWidth, outerHeight, outerWidth, parseBounds } from '../utils'; import { DraggerProps } from "./type"; const doc = document type ListenType = 'drag' | 'resize'; var speed = 0; var timer: any = 0; var autoScrolling = false; var autoY = 0; var currentHeigh...
the_stack
* @file Side panel for displaying/editing layer details. */ import 'neuroglancer/ui/layer_side_panel.css'; import svg_cursor from 'ikonate/icons/cursor.svg'; import {changeLayerName, changeLayerType, deleteLayer, layerTypes, ManagedUserLayer, SelectedLayerState, UserLayer} from 'neuroglancer/layer'; import {ElementV...
the_stack
import * as vscode from 'vscode'; import * as util from './util'; interface CellPosition { line: number, column: number, row: number } export class TableEditor { editor: vscode.TextEditor; tableRange: vscode.Range; tableLineNumbers: number[]|undefined; selectedCellPosition: CellPosition; ...
the_stack
import { tortillaBeforeAll, tortillaBeforeEach } from './tests-helper'; import './custom-matchers'; import * as Fs from 'fs-extra'; import * as Tmp from 'tmp'; import { Paths } from '../src/paths'; let context: any = {}; describe('Dump', () => { beforeAll(() => { tortillaBeforeAll.bind(context)(); context....
the_stack
import React, { useCallback, useMemo, useRef } from "react"; import { AreaClosed, Bar, Line, LinePath } from "@visx/shape"; import { curveMonotoneX } from "@visx/curve"; import { scaleLinear, scaleTime } from "@visx/scale"; import { AxisBottom, AxisLeft } from "@visx/axis"; import { defaultStyles, TooltipWithBounds, u...
the_stack
import { BadRequestException, Injectable, Logger, NotFoundException, UnprocessableEntityException } from '@nestjs/common'; import { UserPayload } from '../auth/get-user.decorator'; import { CreateReservationDto, CreateReservationProductDto } from './reservation.dto'; import { CreateDocumentDefinition, Model, ...
the_stack
import { expect } from 'chai'; import { GitProcess, IGitExecutionOptions, IGitResult } from 'dugite'; import { nextVersion, shouldUpdateSupported, updateSupported } from '../script/release/version-bumper'; import * as utils from '../script/release/version-utils'; import * as sinon from 'sinon'; import { ifdescribe } fr...
the_stack
import {HeapSnapshotContents} from '../common/interfaces'; const enum ParserState { // The parser has encountered an error and can no longer proceed. ERROR = 0, // Special mode for the snapshot line. SNAPSHOT_LINE, // Waiting for the beginning of an array property, e.g. "field":[ ARRAY_PROPERTY_BEGIN, //...
the_stack
var Enumerable: any = require('linq'); import Mongoose = require("mongoose"); import {ClassType} from './classtype'; import {IEntityService} from '../interfaces/entity-service'; import {MetaData} from '../metadata/metadata'; import {MetaUtils} from '../metadata/utils'; import {Decorators, RelationDecorators} from '../...
the_stack
import 'jest-rdf'; import { Readable } from 'stream'; import arrayifyStream from 'arrayify-stream'; import { SparqlEndpointFetcher } from 'fetch-sparql-endpoint'; import { DataFactory } from 'n3'; import type { Quad } from 'rdf-js'; import { BasicRepresentation } from '../../../../src/http/representation/BasicRepresent...
the_stack
namespace annie { /** * 显示对象抽象类,不能直接实例化。一切显示对象的基类,包含了显示对象需要的一切属性 * DisplayObject 类本身不包含任何用于在屏幕上呈现内容的 API。 * 因此,如果要创建 DisplayObject 类的自定义子类,您将需要扩展其中一个具有在屏幕 * 上呈现内容的 API 的子类,如 Shape、Sprite、Bitmap、TextField 或 MovieClip 类。 * @class annie.DisplayObject * @since 1.0.0 * @extends annie.E...
the_stack
import { T, Val, FnVal } from "./common"; import { Option, Some, None } from "./option"; import { Result, Ok, Err } from "./result"; type MappedBranches<T, U> = | (T extends Option<infer V> ? OptionMapped<V, U> : never) | (T extends Result<infer V, infer E> ? ResultMapped<V, E, U> : never); type ChainedBranches...
the_stack
import "should"; import * as sinon from "sinon"; import { MonitoringMode, MonitoredItemCreateRequest, DataChangeFilter, DataChangeTrigger, DeadbandType, PublishRequest, PublishResponse, DataChangeNotification } from "node-opcua-service-subscription"; import { StatusCodes } from "node-op...
the_stack
import { calculateChannelId, simpleEthAllocation, serializeState, SignedState, OpenChannel, objectiveId, } from '@statechannels/wallet-core'; import {ChannelResult} from '@statechannels/client-api-schema'; import _ from 'lodash'; import {Channel} from '../../../models/channel'; import {addHash} from '../.....
the_stack