text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import {t} from '@lingui/macro' import {Trans} from '@lingui/react' import {JOBS} from 'data/JOBS' import {Event, Events} from 'event' import {filter, oneOf} from 'parser/core/filter' import {dependency} from 'parser/core/Injectable' import {CounterGauge, Gauge as CoreGauge} from 'parser/core/modules/Gauge' import {Sta...
the_stack
import {WireDataDelimited, WireDataPlain} from "./support/wire-data"; import {BinaryReader, WireType} from "../src"; import {msg_longs_bytes} from "../../test-fixtures/msg-longs.fixtures"; describe('BinaryReader', () => { beforeEach(function () { jasmine.addCustomEqualityTester((a, b) => (a i...
the_stack
import { Component, ComponentSet, Attribute, serialize, deserialize, ensureComponentClass, ComponentMixin, assertIsComponentMixin } from '@layr/component'; import type {ComponentServerLike} from '@layr/component-server'; import {Microbatcher, Operation} from 'microbatcher'; import {getTypeOf, PlainObjec...
the_stack
import "jest-extended"; import * as Hapi from "@hapi/hapi"; import * as Hoek from "@hapi/hoek"; import * as Teamwork from "@hapi/teamwork"; import { Client, plugin } from "@packages/core-p2p/src/hapi-nes"; import { stringifyNesMessage } from "@packages/core-p2p/src/hapi-nes/utils"; jest.setTimeout(60000); const crea...
the_stack
import { Injectable, Optional } from '@angular/core'; import { Router, Params, NavigationStart, NavigationEnd } from '@angular/router'; import { XhrFactory } from '@angular/common'; import { HttpBackend, HttpErrorResponse, HttpEvent, HttpRequest, HttpResponse, HttpXhrBackend, HttpHeaders } from '@angular/common/http'; ...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement } from "../shared"; /** * Statement provider for service [codepipeline](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awscodepipeline.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGu...
the_stack
import { Mutable, Class, Arrays, FromAny, AnyTiming, Timing, Creatable, InitType, Initable, ObserverType, } from "@swim/util"; import { Affinity, Fastener, MemberPropertyInitMap, Property, Animator, Provider, ComponentFlags, ComponentInit, Component, } from "@swim/component"; impor...
the_stack
import { } from 'jest' import { fetchSpec, fillInSpec, renderChart } from '../../src/render/render' import bar from '../../src/specs/bar' import scatter from '../../src/specs/scatter' import timeline from '../../src/specs/timeline' import builtBarSpec from '../data/builtBarSpec' import * as definitions from '../data/de...
the_stack
import { ContextLevel } from '@/core/constants'; import { Injectable } from '@angular/core'; import { CoreCourse } from '@features/course/services/course'; import { CoreFileUploader, CoreFileUploaderStoreFilesResult } from '@features/fileuploader/services/fileuploader'; import { CoreRatingOffline } from '@features/rati...
the_stack
import { Component, IBobrilCtx, IBobrilComponent, IBobrilChildren, invalidate, addEvent, IBobrilCacheNode, IBobrilNode, assign, init, IBobrilStyles, postEnhance, IDataWithChildren, getCurrentCtx, getDomNode, } from "./core"; import { style, styleDef } from "./...
the_stack
import * as BluebirdPromise from "bluebird"; import { ChildProcess, spawn } from "child_process"; import * as os from "os"; import { CONSTANTS } from "../../src/Constants"; import { DocumentStore } from "../../src/Documents/DocumentStore"; import { IDocumentStore } from "../../src/Documents/IDocumentStore"; imp...
the_stack
import {Mutable, FromAny} from "@swim/util"; import {Affinity, FastenerOwner, FastenerFlags, PropertyInit, PropertyClass, Property} from "@swim/component"; import {ConstraintId} from "./ConstraintId"; import {ConstraintMap} from "./ConstraintMap"; import {AnyConstraintExpression, ConstraintExpression} from "./Constrain...
the_stack
import { SSHLogger } from "./SSHLogger"; import { Server } from "./Server"; import { ByteReader } from "./ByteReader"; import { ByteWriter } from "./ByteWriter"; import { ExchangeContext } from "./ExchangeContext"; import * as Packets from "./Packets/PacketType"; import * as Exceptions from "./SSHServerException"; imp...
the_stack
import { JsonRPCRequest, JsonRPCResponse } from './jsonrpc'; import { BigNumber } from 'bignumber.js'; // TODO change to BN import Web3JS = require('web3'); // W3 is the only class wrapper over JS object, others are interfaces // cannot just cast from JS, but ctor does some standard logic to resolve web3 // so w...
the_stack
import { resolve } from 'path' import matchRange from 'version-range' import { errtion, Errtion } from './util.js' import { versions as processVersions } from 'process' import { readFileSync } from 'fs' export type Range = string | boolean export type Engines = false | { [engine: string]: Range } export type Versions ...
the_stack
import { Equaler, Comparer } from "@esfx/equatable"; /** * Throws the provided value. */ export function fail(value: unknown): never { throw value; } /** * Does nothing. */ export function noop(...args: any[]): unknown; export function noop() { } /** * Returns the provided value. */ expo...
the_stack
import { ChildProcessWithoutNullStreams, execFile, spawn } from "child_process"; import { Logging, StreamRequestCallback } from "homebridge"; import { Readable, Writable } from "stream"; import { EventEmitter } from "events"; import { ProtectCamera } from "./protect-camera"; import { ProtectNvr } from "./protect-nvr"; ...
the_stack
// Minimum TypeScript Version: 3.2 /** * Dummy type alias for a VML element (vector markup language). Might be replaced with the actual API at some point. * * Vector Markup Language (VML) was an XML-based file format for two-dimensional vector graphics. It was specified in * Part 4 of the Office Open XML standards...
the_stack
import * as tape from 'tape'; import {MockEnvironment} from "../../../../../../../mock/environment"; import {MockLoader} from "../../../../../../../mock/loader"; import {escape} from "../../../../../../../../src/lib/extension/core/filters/escape"; import {TwingEnvironment} from "../../../../../../../../src/lib/environm...
the_stack
import * as ts from 'typescript'; import { Symbols } from './typescripts'; import { Type as JsonType, Request as JsonRequest, Notification as JsonNotification, Structure, Property, StructureLiteral, BaseTypes, TypeAlias, MetaModel, Enumeration, EnumerationEntry, EnumerationType } from './metaModel'; import path = req...
the_stack
import ll=require("../lowLevelAST"); import jsyaml = require("../jsyaml/jsyaml2lowLevel"); import hl=require("../highLevelAST"); import hlimpl=require("../highLevelImpl"); import yaml=require("yaml-ast-parser"); import util=require("../../util/index"); import proxy=require("./LowLevelASTProxy"); import RamlWrapper=requ...
the_stack
import AceConfig from "@wowts/ace_config-3.0"; import AceConfigDialog from "@wowts/ace_config_dialog-3.0"; import { l } from "./Localization"; import AceDB, { AceDatabase } from "@wowts/ace_db-3.0"; import AceDBOptions from "@wowts/ace_db_options-3.0"; import aceConsole, { AceConsole } from "@wowts/ace_console-3.0"; im...
the_stack
import * as Context from './context'; import { EnterException, ExitException, within } from './context'; describe('Context', () => { describe('still calls `exit` when operation throws exception', () => { test('with sync `enter` and `exit`', () => { const context = { [Context.enter]: jest.fn(), ...
the_stack
import DSLFilterTypes from "../../../js/constants/DSLFilterTypes"; import DSLFilter from "../../../js/structs/DSLFilter"; import DSLCombinerTypes from "../../../js/constants/DSLCombinerTypes"; import List from "../../../js/structs/List"; import SearchDSL from "../SearchDSL"; // Handles 'attrib:?' class AttribFilter ...
the_stack
import { createSelector, MemoizedSelector } from '@ngrx/store'; import { denormalize, schema } from 'normalizr'; import { NormalizeActionTypes } from '../actions/normalize'; import { NormalizeChildActionPayload, NormalizeRemoveChildActionPayload } from '../index'; /** * The state key under which the normalized sta...
the_stack
export interface TestUtils { test: (name: string, fn: () => void) => void; assertEquals: (actual: any, expected: any, msg?: string) => void; } /** * Tests. * * @param {*} mod * @param {TestUtils} { test, assertEquals } */ export function beginTests(mod: any, { test, assertEquals }: TestUtils): void { test('...
the_stack
import { closestFacility } from "../src/closestFacility"; import * as fetchMock from "fetch-mock"; import { barriers, barriersFeatureSet, polylineBarriers, polygonBarriers, } from "./mocks/inputs"; import { ClosestFacility, ClosestFacilityWebMercator } from "./mocks/responses"; import { IPoint, ILocatio...
the_stack
import React from 'react'; import { useDebouncedCallback } from 'use-debounce/lib'; import { Autocomplete, Typography } from '@mui/material'; import { Controller, ControllerRenderProps, useForm, } from 'react-hook-form'; import { DataEntityApiCreateOwnershipRequest, DataEntityApiUpdateOwnershipRequest, Owne...
the_stack
import * as validateConfig from './common'; import { Diff } from 'deep-diff'; import { LHS, RHS } from './config-diff'; import { StackOutput } from '@aws-accelerator/common-outputs/src/stack-output'; import { VpcOutputFinder } from '@aws-accelerator/common-outputs/src/vpc'; import { loadAssignedVpcCidrPool, loadAssigne...
the_stack
import {extend, warnOnce, isWorker} from './util'; import config from './config'; import assert from 'assert'; import {cacheGet, cachePut} from './tile_request_cache'; import webpSupported from './webp_supported'; import type {Callback} from '../types/callback'; import type {Cancelable} from '../types/cancelable'; ex...
the_stack
declare var BIP38Util: ReturnType<typeof INIT_BIP38>; interface BIP38EncryptionData { addressType: AddressType; keypair: EcKeypairString; passpoint: number[]; ownersalt: number[]; } function INIT_BIP38() { function GenerateRandomBIP38EncryptionData(password: string, addressType: AddressType): Resu...
the_stack
import {Component, OnInit} from '@angular/core'; import * as utpl from 'uri-templates'; import {URITemplate} from 'uri-templates'; import {AppService, RequestHeader} from '../app.service'; import {Command, EventType, HttpRequestEvent, RequestService, UriTemplateParameter} from './request.service'; export class Diction...
the_stack
import { Module } from "vuex" import { AppSession, CanvasEdge, CanvasNode, EdgeSchema, ModuleStore, NodeSchema, SessionStore } from "../StoreTypes"; import { toIsoString } from "@/assets/Math" import { titleCase } from "@/assets/String"; export default { state: { session: { namespace: "", ...
the_stack
import React from "react"; import { Carousel, Content } from "../src/components/Carousel"; import styled from "styled-components"; import Icon from "./Icon"; import { useRect } from "../utilities/hooks"; import { Tab, Tabs } from "../src/components/Tabs"; import { HostApi } from "../webview-api"; import { PanelHeader }...
the_stack
import { AvNodeTransform, InitialInterfaceLock, MinimalPose, minimalPoseFromTransform, EndpointAddr } from '@aardvarkxr/aardvark-shared'; import bind from 'bind-decorator'; import { EntityComponent } from './aardvark_composed_entity'; import { ActiveInterface } from './aardvark_interface_entity'; import { NetworkedGadg...
the_stack
import CommentContract from '@DataContracts/CommentContract'; import PagingProperties from '@DataContracts/PagingPropertiesContract'; import PartialFindResultContract from '@DataContracts/PartialFindResultContract'; import SongInListContract from '@DataContracts/Song/SongInListContract'; import TagSelectionContract...
the_stack
import type Duplex from "./duplex.ts"; import type Writable from "./writable.ts"; import type { WritableState } from "./writable.ts"; import { kDestroy } from "./symbols.ts"; import { ERR_MULTIPLE_CALLBACK, ERR_STREAM_DESTROYED } from "../_errors.ts"; export type writeV = ( // deno-lint-ignore no-explicit-any chun...
the_stack
'use strict'; import * as vscode from 'vscode'; import { Card } from 'neuron-ipe-types'; import { WebviewController } from "./webviewController"; import { Interpreter } from "./interpreter"; import { UserInteraction } from "./userInteraction"; import { JupyterManager } from './jupyterManager'; import { CardManager } ...
the_stack
import * as vscode from 'vscode'; import { Utils } from 'vscode-uri'; import { angularCollectionName, angularConfigFileNames } from '../defaults'; import { isSchematicsProActive, Output } from '../utils'; import { formatCliCommandOptions } from '../generation'; import { Collections } from './schematics'; import { Ang...
the_stack
export const description = ` Unit tests for parameterization helpers. `; import { kUnitCaseParamsBuilder, CaseSubcaseIterable, ParamsBuilderBase, builderIterateCasesWithSubcases, } from '../common/framework/params_builder.js'; import { makeTestGroup } from '../common/framework/test_group.js'; import { mergePar...
the_stack
import * as React from 'react'; import { Checkbox, ICheckboxStyles, DefaultPalette, Dropdown, IDropdownOption, Slider, Stack, IStackStyles, IStackItemStyles, IStackTokens, IStackProps, TextField, } from '@fluentui/react'; import { useBoolean } from '@fluentui/react-hooks'; import { range } from ...
the_stack
import { testTokenization } from '../test/testRunner'; testTokenization('scala', [ [ { line: 'var a = 1', tokens: [ { startIndex: 0, type: 'keyword.scala' }, { startIndex: 3, type: 'white.scala' }, { startIndex: 4, type: 'variable.scala' }, { startIndex: 5, type: 'white.scala' }, { startIn...
the_stack
import * as dockerode from 'dockerode'; import * as sinon from 'sinon'; // Recursively convert properties of an object as optional type DeepPartial<T> = { [P in keyof T]?: T[P] extends Array<infer U> ? Array<DeepPartial<U>> : T[P] extends object ? DeepPartial<T[P]> : T[P]; }; // Partial container inspect inf...
the_stack
import camelcaseKeys from 'camelcase-keys'; import { ConsoleLogger as Logger, Credentials, getAmplifyUserAgent, } from '@aws-amplify/core'; import { Place as PlaceResult, SearchPlaceIndexForTextCommandInput, LocationClient, SearchPlaceIndexForTextCommand, SearchPlaceIndexForPositionCommand, SearchPlaceIndexFo...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/iotDpsResourceMappers"; import * as Parameters from "../models/parameters"; import { IotDpsClientContext } from "../iotDpsClientContext"; /** Cla...
the_stack
import { ConcreteRequest } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type BuyNowArtworksRailTestsQueryVariables = { id: string; }; export type BuyNowArtworksRailTestsQueryResponse = { readonly sale: { readonly " $fragmentRefs": FragmentRefs<"BuyNowArtworksRail_sale">; ...
the_stack
import { getFiberFlags } from "./utils/getFiberFlags"; import type { CoreApi } from "./core"; import { Fiber, ReactInterationApi, NativeType, SerializedElement, } from "../types"; const MOUNTING = 1; const MOUNTED = 2; const UNMOUNTED = 3; export function createReactInteractionApi({ ReactTypeOfSideEffect, ...
the_stack
import { html } from 'lit'; import { removeTestElement, createTestElement, componentIsStable } from '@cds/core/test'; import { listenForAttributeChange } from '@cds/core/internal'; import { CdsIcon } from '@cds/core/icon/icon.element.js'; import { CdsControl, ControlLabelLayout, CdsControlMessage } from '@cds/core/form...
the_stack
import {getShader} from './util'; import {RendererData} from './rendererData'; import {ModelInterp} from './modelInterp'; import {FilterMode, Layer, LayerShading, Material, RibbonEmitter} from '../model'; import {mat4, vec3} from 'gl-matrix'; let gl: WebGLRenderingContext; let shaderProgram: WebGLProgram; const shaderP...
the_stack
import { ByteArrayArray } from "../../../ComplexProperties/ByteArrayArray"; import { CompleteName } from "../../../ComplexProperties/CompleteName"; import { ContactSource } from "../../../Enumerations/ContactSource"; import { DateTime } from "../../../DateTime"; import { EmailAddress } from "../../../ComplexProperties/...
the_stack
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as stream from 'stream'; import * as models from '../models'; /** * @class * ImageModeration * __NOTE__: An instance of this class is automatically created for an * instance of the ContentModeratorClie...
the_stack
import Taro, { Component, Config } from '@tarojs/taro' import { View, RichText, ScrollView } from '@tarojs/components' import { AtDrawer, AtActionSheet, AtIcon } from 'taro-ui' import request from '../../utils/request' import * as api from '../../configs/api' import './index.scss' interface Page { id: string; ...
the_stack
import { Euler, EulerOrder } from "./Euler"; import { Matrix4 } from "./Matrix4"; import { Quaternion } from "./Quaternion"; import { makeQuaternionFromRotationMatrix4 } from "./Quaternion.Functions"; import { Vector2 } from "./Vector2"; import { Vector3 } from "./Vector3"; export function makeMatrix4Concatenation(a: ...
the_stack
import { ethers, network, upgrades, waffle } from "hardhat"; import { Signer, BigNumberish, utils, Wallet } from "ethers"; import chai from "chai"; import { solidity } from "ethereum-waffle"; import "@openzeppelin/test-helpers"; import { MdexFactory, MdexFactory__factory, MdexPair, MdexPair__factory, MdexRest...
the_stack
import config from "./config"; import { Frame, Brk, FunctionDescr, Module, Scope, ScopeInfo, VarInfo, StateMap, States, normalizeDrive, toGlobal, native, Flag, BrkFlag, defaultErrHandler, defaultFinHandler, undef, signalThread, trace } from "./state"; import * as State from "./sta...
the_stack
import * as React from "react"; import { BlankMaskRenderer, ChildrenRenderer, MayersRenderer, NavbarRenderer, SidepanelRenderer, ViewsRenderer } from "./SceneRenderer/Items"; import { PureComponent, SyntheticEvent, ReactNode, RefObject } from "react"; import { Props as MayerProps } from "./Mayer...
the_stack
function sign(number: number) { if(number < 0) return -1; if(number > 0) return 1; return 0; } class EasyPZLoader { static DEFAULT_MODES = ["SIMPLE_PAN", "HOLD_ZOOM_IN", "CLICK_HOLD_ZOOM_OUT", "WHEEL_ZOOM_EASE", "PINCH_ZOOM", "DBLCLICK_ZOOM_IN", "DBLRIGHTCLICK_ZOOM_OUT"]; private ea...
the_stack
import { Address, ConditionalTransferTypes, EIP712Domain, EventNames, EventPayloads, IConnextClient, NodeResponses, PrivateKey, PublicParams, Receipt, SignedTransferStatus, } from "@connext/types"; import { getChainId, getRandomBytes32, getRandomPrivateKey, getTestEIP712Domain, signRecei...
the_stack
import { inspect } from 'util'; import checkAppCompatibility, { checkEngineIsSupported, checkEngineVersionIsSet, checkIdenticalShared, checkProvidedVersionOfSharedIsValid, checkRequestedSharedIsProvided, checkRequestedVersionOfSharedIsValid, } from './checkAppCompatibility'; const providingEng...
the_stack
import { homedir } from 'os'; import path from 'path'; export const USER_HOME_DIR = homedir(); export const RNV_HOME_DIR = path.join(__dirname, '../..'); // Self check: if in packages => linked, if node_modules => installed export const IS_LINKED = path.dirname(RNV_HOME_DIR).split(path.sep).pop() === 'packages'; expor...
the_stack
import DragList from "../../common/cmpt/DragList"; import Events, { EventName, preloadEvent } from "../../common/util/Events"; import RecyclePool from "../../common/util/RecyclePool"; import Res from "../../common/util/Res"; import Tool from "../../common/util/Tool"; import { ResUrl } from "../../constant/ResUrl";...
the_stack
import { useEffect, useRef, useState } from "react"; import { fireEvent, render, sleep } from "ariakit-test"; import { useBooleanEvent, useControlledState, useEvent, useForceUpdate, useForkRef, useId, useInitialValue, useLazyValue, useLiveRef, usePreviousValue, useRefId, useTagName, useUpdate...
the_stack
import assert from 'assert'; import * as semver from 'semver'; import * as rpc from 'transparent-rpc'; import * as Tp from 'thingpedia'; import * as ThingTalk from 'thingtalk'; import * as Config from '../config'; import * as db from './db'; import * as device from '../model/device'; import * as organization from '....
the_stack
import * as React from 'react'; import { getAccumulatedTrafficRateGrpc, getAccumulatedTrafficRateHttp, getTrafficRateGrpc, getTrafficRateHttp } from '../../utils/TrafficRate'; import { InOutRateTableGrpc, InOutRateTableHttp } from '../../components/SummaryPanel/InOutRateTable'; import { RequestChart, StreamChar...
the_stack
import * as pci from "@akashic/pdi-common-impl"; import { AssetLoadHandler, AssetLoadError, AudioAssetHint, CompositeOperationString, FontWeightString, ImageData, OperationPluginViewInfo, ScriptAssetRuntimeValue, AudioSystem as PdiAudioSystem, Asset as PdiAsset, Glyph as PdiGlyph, GlyphFactory as PdiGlyphFa...
the_stack
const parseFile = require("@microsoft/bf-lu").parser.parseFile; import { IEntityObjectByPosition } from "./IEntityObjectByPosition"; import { IPartOfSpeechTagObjectByPosition } from "./IPartOfSpeechTagObjectByPosition"; import { ITextIntentSequenceLabelObjectByPosition} from "./ITextIntentSequenceLabelObjectByPosition...
the_stack
import type { Placement } from "@floating-ui/dom"; import { autoUpdate, computePosition, flip, offset, shift } from "@floating-ui/dom"; import { Accessor, createContext, createSignal, createUniqueId, JSX, Show, useContext, } from "solid-js"; import { createStore } from "solid-js/store"; import { useStyle...
the_stack
import { Nes } from "./nes"; declare var navigator,$; export class GamePadState{ buttonDown:boolean = false; buttonNum:number = -1; buttonTimer = 0; keyName:string = ''; constructor(buttonNum:number,keyName:string) { this.buttonNum = buttonNum; this.keyName = key...
the_stack
import { blockchainTests, constants, describe, expect, getRandomPortion, randomAddress, } from '@0x/contracts-test-utils'; import { BigNumber, hexUtils } from '@0x/utils'; import { LogWithDecodedArgs } from 'ethereum-types'; import { artifacts } from '../artifacts'; import { TestMintableERC...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Policies } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { DevTestLabsClient } from "../devTestLabsClient...
the_stack
import * as cdk from '@aws-cdk/core'; import * as ec2 from '@aws-cdk/aws-ec2'; import * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2'; import * as iam from '@aws-cdk/aws-iam'; import * as kms from '@aws-cdk/aws-kms'; import * as ecs from '@aws-cdk/aws-ecs'; import * as sns from '@aws-cdk/aws-sns'; import * as cw ...
the_stack
import * as d3 from 'd3'; import type {DataListItem, Indicator} from '~/resource/hyper-parameter'; import EventEmitter from 'eventemitter3'; import {ScaleMethod} from '~/resource/hyper-parameter'; import intersection from 'lodash/intersection'; const PUBLIC_PATH: string = import.meta.env.SNOWPACK_PUBLIC_PATH; type ...
the_stack
export enum WindowAction { Minimize = "window.minimize", Maximize = "window.maximize", Restore = "window.restore", Close = "window.close" } export interface FileSelection { canceled: boolean; filePaths: string[]; } export interface OpenFileSelectorOptions { directory?: boolean; } export interface OpenT...
the_stack
import * as moment from "moment"; import * as React from "react"; import * as DayPicker from "react-day-picker"; import { Link } from "react-router-dom"; import { Button, Container, Form, Header, Icon, Input, Popup, Progress, Segment } from "semantic-ui-react"; import { IEpisode } from "../../../lib/interfaces"; import...
the_stack
import * as nls from 'vs/nls'; import { Event, Emitter } from 'vs/base/common/event'; import { createDecorator } from 'vs/platform/instantiation/common/instantiation'; import { registerSingleton } from 'vs/platform/instantiation/common/extensions'; import { IStorageService, StorageScope, StorageTarget } from 'vs/platfo...
the_stack
import { PaginatedMessage } from '@sapphire/discord.js-utilities'; import { exec } from 'child_process'; import crypto from 'crypto'; import { Channel, Client, DMChannel, Guild, MessageButton, MessageOptions, TextChannel } from 'discord.js'; import { objectEntries, randArrItem, randInt, round, shuffleArr, Time } from '...
the_stack
import {autorun} from 'mobx'; import {defaultValueByField, IndexedInput, Input, listFieldTypes, ServiceUser, Spec} from '../lib/types'; import {isLitSubtype} from '../lib/utils'; import {LitService} from './lit_service'; /** * Interface for reading/storing app configuration from/to the URL. */ export class UrlConf...
the_stack
import { Injectable } from '@angular/core'; import XRegExp from 'xregexp'; import { AbstractControl, FormGroup, ValidationErrors } from '@angular/forms'; import { Netmask } from 'netmask'; import isIp from 'is-ip'; /** * App imports */ import * as validationMethods from './validation.methods'; import { SimpleValidat...
the_stack
import React from 'react'; import * as pc from 'playcanvas/build/playcanvas.js'; import Example from '../../app/example'; import { AssetLoader } from '../../app/helpers/loader'; class RenderCubemapExample extends Example { static CATEGORY = 'Graphics'; static NAME = 'Render Cubemap'; load() { retu...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormInvoiceDetail_Information { interface tab_address_Sections { ship_to_address: DevKit.Controls.Section; } interface tab_delivery_Sections { delivery_information: DevKit.Controls.Section; fulfillment: DevKit.Controls...
the_stack
import { Equatable } from "@siteimprove/alfa-equatable"; import { Hash, Hashable } from "@siteimprove/alfa-hash"; import { Serializable } from "@siteimprove/alfa-json"; import { Option, None } from "@siteimprove/alfa-option"; import { Parser } from "@siteimprove/alfa-parser"; import { Result, Err } from "@siteimprove/a...
the_stack
import { Component, State, Element, h } from '@stencil/core'; import '@visa/visa-charts-data-table'; import '@visa/keyboard-instructions'; @Component({ tag: 'app-line-chart', styleUrl: 'app-line-chart.scss' }) export class AppLineChart { @State() data: any; @State() secondData: any; @State() stateTrigger: an...
the_stack
import debounce from 'lodash/debounce'; import { action, observable } from 'mobx'; import { Injectable, Autowired } from '@opensumi/di'; import { View, CommandRegistry, ViewContextKeyRegistry, IContextKeyService, localize, IContextKey, OnEvent, WithEventBus, ResizeEvent, DisposableCollection, Con...
the_stack
"use strict"; import { StatusBarItem, window } from "vscode"; import { QueryHierarchyItem, WorkItemType } from "vso-node-api/interfaces/WorkItemTrackingInterfaces"; import { Logger } from "../helpers/logger"; import { SimpleWorkItem, WorkItemTrackingService } from "../services/workitemtracking"; import { Telemetry } f...
the_stack
/** -2400 to -2499 is webcam error code */ declare enum EnumDWT_ErrorCode { /** All error from directshow sdk */ WCERR_SYSTEM = -2400, /** Create ICreateDevEnum interface failed. */ WCERR_FAIL_ICREATEDEVENUM = -2401, /** Create IEnumMoniker interface failed. */ WCERR_FAIL_IENUMMONIKER = -2402, ...
the_stack
import { ChunkedArray } from '../../../mol-data/util'; import { Encoding, EncodedData } from './encoding'; import { classifyIntArray } from './classifier'; import { TypedIntArray, TypedFloatArray } from '../../../mol-util/type-helpers'; export interface ArrayEncoder { and(f: ArrayEncoding.Provider): ArrayEncoder, ...
the_stack
'use strict'; export * from './config'; import { ConfigurationChangeEvent, ConfigurationScope, ConfigurationTarget, Event, EventEmitter, ExtensionContext, workspace, } from 'vscode'; import { Config } from './config'; import { Objects } from './system'; const configPrefix = 'gitlens'; export interface Configu...
the_stack
import * as errors from 'balena-errors'; import once = require('lodash/once'); import type * as BalenaSdk from '..'; import type { InjectedDependenciesParam, InjectedOptionsParam, PineTypedResult, } from '..'; import { isId, mergePineOptions } from '../util'; import { toWritable } from '../util/types'; import type {...
the_stack
import * as crypto from "crypto"; import { BasicClient } from "../BasicClient"; import { BasicMultiClient } from "../BasicMultiClient"; import { Candle } from "../Candle"; import { CandlePeriod } from "../CandlePeriod"; import { IClient } from "../IClient"; import { Level2Point } from "../Level2Point"; import { Level2S...
the_stack
import { Component, OnInit, OnChanges, Input, Output, ViewChild, EventEmitter } from '@angular/core'; import { ProductSkuVO, ProductWithLinksVO, ProductOptionVO, AttributeVO, Pair } from './../../shared/model/index'; import { Util } from './../../shared/services/index'; import { ModalComponent, ModalResult, ModalAction...
the_stack
import { Worksheets } from './worksheets'; import { Worksheet, FreezePane, MergeCell, MergeCells, HyperLink, Grouping } from './worksheet'; import { CellStyle, Font, Border, Borders, CellXfs, Alignment, NumFmt, CellStyleXfs, CellStyles } from './cell-style'; import { Column } from './column'; import { Row, Rows } from ...
the_stack
type auto = i32; // @ts-ignore: decorator @builtin export declare function isInteger<T>(value?: T): bool; // @ts-ignore: decorator @builtin export declare function isFloat<T>(value?: T): bool; // @ts-ignore: decorator @builtin export declare function isBoolean<T>(value?: T): bool; // @ts-ignore: decorator @builtin ...
the_stack
namespace ts.OutliningElementsCollector { export function collectElements(sourceFile: SourceFile, cancellationToken: CancellationToken): OutliningSpan[] { const res: OutliningSpan[] = []; addNodeOutliningSpans(sourceFile, cancellationToken, res); addRegionOutliningSpans(sourceFile, res);...
the_stack
* Copyright (c) 2018 THL A29 Limited, a Tencent company. 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.apache.org/licenses/LICENSE-2.0 * * Un...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/serversMappers"; import * as Parameters from "../models/parameters"; import { PostgreSQLFlexibleManagementClientContext } from "../postgreSQLFlexi...
the_stack
import * as tf from '@tensorflow/tfjs'; import { PoseNet } from '@tensorflow-models/posenet'; import { util } from '@tensorflow/tfjs'; import { TensorContainer } from '@tensorflow/tfjs-core/dist/tensor_types'; import { CustomCallbackArgs } from '@tensorflow/tfjs'; import { CustomPoseNet, Metadata, loadPoseNet } from '....
the_stack
import fs = require("fs"); import http = require("http"); import os = require("os"); import path = require("path"); import zlib = require("zlib"); import child_process = require("child_process"); import AuthorizationHandler = require("./AuthorizationHandler"); import Logging = require("./Logging"); import Config = re...
the_stack
import { PointModel } from '../primitives/point-model'; import { NodeModel } from './node-model'; import { Rect } from '../primitives/rect'; import { Diagram } from '../diagram'; import { DiagramElement } from '../core/elements/diagram-element'; import { PathElement } from '../core/elements/path-element'; import { Snap...
the_stack
import { equals } from "../../../Data/Eq" import { flip, thrush } from "../../../Data/Function" import { fmap } from "../../../Data/Functor" import { set } from "../../../Data/Lens" import { append, appendStr, elem, filter, find, flength, groupByKey, intercalate, List, map, replaceStr, subscriptF } from "../../../Data/...
the_stack
import {DebugProtocol} from "vscode-debugprotocol"; import { Breakpoint, InitializedEvent, LoggingDebugSession, Scope, StackFrame, Source, Thread, OutputEvent, TerminatedEvent, StoppedEvent, Variable, Handles, ThreadEvent } from "vscode-debugadapter"; import * as chil...
the_stack