text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import Events, { EventName, preloadEvent } from "../../common/util/Events"; import Tool from "../../common/util/Tool"; import { ANIMATOR_VERSION } from "../../constant/BaseConst"; import Condition from "../data/Condition"; import State from "../data/State"; import StateMachine from "../data/StateMachine"; import ...
the_stack
import * as fs from "fs"; import * as os from "os"; import * as path from "path"; import { prompt, out } from "../../util/interaction"; import { help, CommandArgs, AppCommand, CommandResult } from "../../util/commandline"; import { Messages } from "./lib/help-messages"; import { AppCenterClient, clientCall, models } fr...
the_stack
import ACLServiceAccountActions from "../../actions/ACLServiceAccountActions"; import ServiceAccount from "../../structs/ServiceAccount"; import ServiceAccountList from "../../structs/ServiceAccountList"; import * as EventTypes from "../../constants/EventTypes"; import PluginSDK from "PluginSDK"; const SDK = PluginSD...
the_stack
import { Text, View, Image } from "@tarojs/components"; import Taro, { useState } from "@tarojs/taro"; import { classNames } from "../../lib"; import { IProps, imgList as imgListType, TChooseImgObj } from "../../../@types/imagePicker"; import ClIcon from "../icon"; import "./index.scss"; interface IState { im...
the_stack
import { Fragment, FunctionComponent, h } from 'preact'; import { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'preact/hooks'; import * as GoToFileIcon from 'vscode-codicons/src/icons/go-to-file.svg'; import { binarySearch } from 'vscode-js-profile-core/out/esm/array'; import { Icon } from 'vsco...
the_stack
import { should, expect } from 'chai'; should(); import { KeyedDeep, ChangeMap } from '../keyed-deep'; import { State } from '../state'; describe('KeyedDeep', () => { describe('.key()', () => { it('should return a state with correct initial value even if unbound.', () => { let s = new KeyedDeep(new State...
the_stack
module dragonBones { /** * @class dragonBones.FastSlotTimelineState * @classdesc * FastSlotTimelineState 负责计算 Slot 的时间轴动画。 * FastSlotTimelineState 实例隶属于 FastAnimationState. FastAnimationState在创建时会为每个包含动作的 Slot生成一个 FastSlotTimelineState 实例. * @see dragonBones.FastAnimation * @see dragonBones.FastAnimationS...
the_stack
import { token } from '../token' import { Storage, PrimType, t_bool, t_u8, t_i8, t_u16, t_i16, t_u32, t_i32, t_u64, t_i64, t_uintptr, t_f32, t_f64, } from "../ast" import { Op } from './op' import { ops } from "./ops" // opselect1 returns the IR operation for the corresponding token operat...
the_stack
import { TsFileImageDimensionConstraints } from './image-dimension-constraints'; import { TsFileAcceptedMimeTypes } from './mime-types'; import { TsSelectedFile } from './selected-file'; const CONSTRAINTS_MOCK: TsFileImageDimensionConstraints = [ { height: { min: 50, max: 100, }, width: { ...
the_stack
import SubscriptionQos from "../../../../main/js/joynr/proxy/SubscriptionQos"; import PeriodicSubscriptionQos from "../../../../main/js/joynr/proxy/PeriodicSubscriptionQos"; import OnChangeSubscriptionQos from "../../../../main/js/joynr/proxy/OnChangeSubscriptionQos"; import OnChangeWithKeepAliveSubscriptionQos from "....
the_stack
import { ArchiveTag } from "../../../ComplexProperties/ArchiveTag"; import { ComplexPropertyDefinition } from "../../../PropertyDefinitions/ComplexPropertyDefinition"; import { EffectiveRightsPropertyDefinition } from "../../../PropertyDefinitions/EffectiveRightsPropertyDefinition"; import { ExchangeVersion } from ".....
the_stack
import { Duration, Names, Resource } from '@aws-cdk/core'; import { Construct } from 'constructs'; import { CfnResponseHeadersPolicy } from './cloudfront.generated'; /** * Represents a response headers policy. */ export interface IResponseHeadersPolicy { /** * The ID of the response headers policy * @attribu...
the_stack
import { assign, createMachine, createSchema, send, sendParent, StateSchema, } from "xstate"; import { log } from "xstate/lib/actions"; import { assert } from "@renproject/utils"; import { AcceptedGatewayTransaction, AllGatewayTransactions, ConfirmingGatewayTransaction, GatewayT...
the_stack
import { FC } from "react"; /** * Types related to a page definition * * This is the least strict typing for a page definition. * @see DefaultPageTypes for stricted possible types * @see DefinePageType for defining your own types */ export interface PageTypes { params: Record<string, string>; parentContext: Re...
the_stack
module android.view{ import Rect = android.graphics.Rect; /** * Standard constants and tools for placing an object within a potentially * larger container. */ export class Gravity{ /** Constant indicating that no gravity has been set **/ static NO_GRAVITY = 0x0000; /...
the_stack
import { ICustomMediaKeys, ICustomMediaKeySession, ICustomMediaKeySystemAccess, } from "../../compat"; import { ICustomError } from "../../errors"; import { ISharedReference } from "../../utils/reference"; import LoadedSessionsStore from "./utils/loaded_sessions_store"; import PersistentSessionsStore from "./util...
the_stack
import { ChangeDetectionStrategy } from '../change_detection/constants'; import { Provider } from '../core'; import { NgModuleDef } from '../metadata/ng_module'; import { RendererType2 } from '../render/api'; import { Type } from '../type'; import { ComponentDefFeature, ComponentDefInternal, ComponentQuery, ComponentTe...
the_stack
import { Application, IComponent, events } from '../lib/index'; import * as should from 'should'; import { MockPlugin } from './mock-plugin/components/mockPlugin'; import { MockEvent } from './mock-plugin/events/mockEvent'; declare var afterEach: any; let WAIT_TIME = 1000; let mockBase = process.cwd() + '/test'; let...
the_stack
import { Subscription } from 'rxjs'; import { Component, Input, OnDestroy, OnInit } from '@angular/core'; // Application specific imports. import { Message } from 'src/app/models/message.model'; import { MessageService } from 'src/app/services/message.service'; import { Endpoint } from '../../../endpoints/models/endpo...
the_stack
import * as fs from '@nativescript/core/file-system'; // << file-system-require import * as TKUnit from '../tk-unit'; import * as appModule from '@nativescript/core/application'; import { isIOS, Device, platformNames } from '@nativescript/core'; export var testPathNormalize = function () { // >> file-system-normaliz...
the_stack
import { QueryFilters, Updater, hashQueryKey, noop, parseFilterArgs, parseQueryArgs, partialMatchKey, hashQueryKeyByOptions, MutationFilters, } from './utils' import type { DefaultOptions, FetchInfiniteQueryOptions, FetchQueryOptions, InfiniteData, InvalidateOptions, InvalidateQueryFilters...
the_stack
import { onnx } from "onnx-proto"; import { Backend, DataType, backendsWithoutCPU, backends, } from "../interface/core/constants"; import { clipLong, intOrLongToInt, intOrLongToIntVector, nonnull, } from "../util"; import Long from "long"; import { InputProxy } from "./inputProxy"; import { OutputProxy ...
the_stack
import { groupBy, size } from '@antv/util'; import { Facet } from '../../../../src'; import { createDiv } from '../../../utils/dom'; import { delay } from '../../../utils/delay'; import { simulateMouseEvent } from '../../../utils/event'; describe('facet', () => { const data = [ { type: '1', date: '2014-01', valu...
the_stack
import { RegisterItem } from "../core/Register"; import { DownMotion } from "../motion/DownMotion"; import { LastCharacterInLineMotion } from "../motion/LastCharacterInLineMotion"; import { RightMotion } from "../motion/RightMotion"; import { Position, Range } from "../VimStyle"; import { AbstractInsertTextAction } fro...
the_stack
import { Component, OnInit, ViewChild, OnDestroy, Input, QueryList, ViewChildren, TemplateRef, AfterViewInit, ChangeDetectorRef } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { FormBuilder, FormGroup } from '@angular/forms'; import { Ng2SmartTableComponent } from 'ng2-smart-...
the_stack
import { generateMnemonic as bip39GenerateMnemonic, mnemonicToSeed, } from 'bip39'; import pbkdf2 from 'pbkdf2'; import sodium from 'libsodium-wrappers-sumo'; import elliptic from 'elliptic'; import { b58cdecode, b58cencode, hex2buf, mergebuf, buf2hex } from './utility'; import { prefix } from './constants'; inter...
the_stack
import { fromJS, List, Map, merge, mergeDeep, mergeDeepWith, Record, Set, } from 'immutable'; describe('merge', () => { it('merges two maps', () => { const m1 = Map({ a: 1, b: 2, c: 3 }); const m2 = Map({ d: 10, b: 20, e: 30 }); expect(m1.merge(m2)).toEqual(Map({ a: 1, b: 20, c: 3, d: 10,...
the_stack
import * as coreClient from "@azure/core-client"; /** Result of the request to list data exports. */ export interface DataExportListResult { /** List of data export instances within a workspace.. */ value?: DataExport[]; } /** Common fields that are returned in the response for all Azure Resource Manager resource...
the_stack
import { createStore, Store } from 'redux'; import { RSAA, isRSAA, validateRSAA, isValidRSAA, InvalidRSAA, InternalError, RequestError, ApiError, getJSON, createMiddleware, apiMiddleware, RSAAAction, RSAACall, RSAARequestTypeDescriptor, RSAASuccessTypeDescript...
the_stack
import { COMMA, DOWN_ARROW, ENTER } from '@angular/cdk/keycodes'; import { DebugElement } from '@angular/core'; import { ComponentFixture, discardPeriodicTasks, fakeAsync, flush, TestBed, tick } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { NoopAnimationsModule } from '@angular/...
the_stack
import * as ts from 'typescript' import { FunctionType, SyntaxType } from '@creditkarma/thrift-parser' import { DefinitionType, IRenderState } from '../../types' import { APPLICATION_EXCEPTION, COMMON_IDENTIFIERS, PROTOCOL_EXCEPTION, THRIFT_TYPES, } from './identifiers' import { createArrayType,...
the_stack
import ts from 'typescript'; import * as guards from './guards'; import * as symbol_ from './symbol'; import * as utils from './utils'; type TypedNode = ts.Node & { readonly type?: ts.TypeNode }; type MaybeTypedNode = ts.Node & { readonly type?: ts.TypeNode }; function getIntrinsicName(type: ts.Type): string | undefi...
the_stack
import { Component, ViewEncapsulation, Input, AfterViewInit, ViewChild, OnDestroy, EventEmitter, Output, ContentChildren, HostListener, AfterViewChecked, ElementRef, Renderer2 } from '@angular/core'; import type {QueryList} from '@angular/core'; import {CdkScrollable}...
the_stack
declare module 'process' { import * as tty from 'tty'; global { var process: NodeJS.Process; namespace NodeJS { // this namespace merge is here because these are specifically used // as the type for process.stdin, process.stdout, and process.stderr. // they ...
the_stack
import * as nls from 'vs/nls'; import { STATUS_BAR_HOST_NAME_BACKGROUND, STATUS_BAR_HOST_NAME_FOREGROUND } from 'vs/workbench/common/theme'; import { themeColorFromId } from 'vs/platform/theme/common/themeService'; import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteAgentService'; import { Di...
the_stack
import { Dialog } from "../dialogs"; import { Logger, LoggerFactory } from "../log"; import { Body, C, constructOutgoingResponse, IncomingRequestMessage, IncomingResponseMessage, OutgoingInviteRequest, OutgoingInviteRequestDelegate, OutgoingMessageRequest, OutgoingPublishRequest, OutgoingRegisterReq...
the_stack
import { Event, Options, Status, Response } from '@amplitude/types'; import { BASE_RETRY_TIMEOUT_DEPRECATED, BASE_RETRY_TIMEOUT_DEPRECATED_WARNING } from '../constants'; import { asyncSleep, collectInvalidEventIndices, logger } from '@amplitude/utils'; import { BaseRetryHandler } from './baseRetry'; interface RetryMe...
the_stack
import * as cdk from '@aws-cdk/core'; import * as sns from '@aws-cdk/aws-sns'; import * as cloudwatch from '@aws-cdk/aws-cloudwatch'; import * as cw_actions from '@aws-cdk/aws-cloudwatch-actions'; import * as codebuild from '@aws-cdk/aws-codebuild'; import * as iam from '@aws-cdk/aws-iam'; import * as events from '@aws...
the_stack
import * as State from "./NeovimEditorStore" import * as Actions from "./NeovimEditorActions" import { IConfigurationValues } from "./../../Services/Configuration" import { Errors } from "./../../Services/Diagnostics" import * as pick from "lodash/pick" export function reducer<K extends keyof IConfigurationValues>(...
the_stack
import { compileSol, compileSourceString, LatestCompilerVersion } from "solc-typed-ast"; import BN from "bn.js"; import crypto from "crypto"; import Account from "ethereumjs-account"; import { Transaction } from "ethereumjs-tx"; import * as util from "ethereumjs-util"; import VM from "ethereumjs-vm"; import { RunTxResu...
the_stack
import { Callback, Handler } from 'aws-lambda'; import * as Sentry from '../src'; const { wrapHandler } = Sentry.AWSLambda; /** * Why @ts-ignore some Sentry.X calls * * A hack-ish way to contain everything related to mocks in the same __mocks__ file. * Thanks to this, we don't have to do more magic than necessar...
the_stack
module es { export class EntityList { public scene: Scene; /** * 场景中添加的实体列表 */ public _entities: Entity[] = []; /** * 本帧添加的实体列表。用于对实体进行分组,以便我们可以同时处理它们 */ public _entitiesToAdded: {[index: number]: Entity} = {}; /** ...
the_stack
import { BLOCK_MAXSIZE } from "rt/common"; // Helper function to quickly create a Buffer from an array. //@ts-ignore function create<T>(values: valueof<T>[]): T { let result = instantiate<T>(values.length); //@ts-ignore for (let i = 0; i < values.length; i++) result[i] = values[i]; return result; } describe("...
the_stack
export type Maybe<T> = T | null; export enum MessageType { Location = "LOCATION", Text = "TEXT", Picture = "PICTURE" } /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of...
the_stack
"use strict"; /* * Copyright (C) 1998-2018 by Northwoods Software Corporation. All Rights Reserved. */ import * as go from "../release/go"; /** * @constructor * @extends Tool * @class * This GeometryReshapingTool class allows for a Shape's Geometry to be modified by the user * via the dragging of tool handles. * Thi...
the_stack
import { // Badge, Heading, Text, Stack, Button, Stat, StatHelpText, // StatLabel, StatNumber, Box, } from "@chakra-ui/react"; import NextLink from "next/link"; import * as React from "react"; export const data = [ { type: "header", description: <Box minW="12em" />, free: ( <Sta...
the_stack
import { Injectable } from '@angular/core'; import { Plugin, Cordova, CordovaProperty, CordovaInstance, InstanceProperty, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs'; export interface JMSingleType { type: 'single'; username: string; appKey?: string; }; export interface JMGr...
the_stack
import { IDisposableObject } from "./disposable"; export interface ITreeLeaf<ItemType> { name: string, item: ItemType | undefined, /** * Only null if is root leaf */ parent: ITreeLeaf<ItemType> | null, children: Record<string, ITreeLeaf<ItemType>>, } export type ITreeLeafTraverser<ItemTy...
the_stack
import { childProcess, createTmpDir, injectReactNativeVersionKeysInObject, iosUtil, kax, log, manifest, mustacheUtils, NativePlatform, PackagePath, PluginConfig, readPackageJson, shell, utils, writePackageJson, yarn, config as ernConfig, } from 'ern-core'; import { ContainerGenerator...
the_stack
import {Component, RefObject} from 'react'; import classNames from 'classnames'; import {ObjectVector2} from '../util/scenarioUtils'; function positionFromMouseEvent(event: React.MouseEvent<HTMLElement>, offsetX: number, offsetY: number): ObjectVector2 { const rect = event.currentTarget.getBoundingClientRect(); ...
the_stack
import * as React from 'react'; import styled from '../../utils/styled'; import { StandardProps } from '../../common'; import { InteractiveSurface, InteractiveSurfaceChangeEvent } from '../InteractiveSurface'; import { Grid, GridLayout } from '../Grid'; import { GridArea, GridAreaTapEvent } from '../GridArea'; export ...
the_stack
import {TypedEvent} from "../../../common/events"; import {cast, server} from "../../../socket/socketClient"; import * as editBatcher from "./editBatcher"; import * as utils from "../../../common/utils"; import * as classifierCache from "./classifierCache"; import {RefactoringsByFilePath, Refactoring} from "../../../co...
the_stack
import { TabsService, ITab, ITabAPI } from 'chipmunk-client-material'; import { Subscription } from './service.electron.ipc'; import { Session } from '../controller/session/session'; import { IService } from '../interfaces/interface.service'; import { Subject, Subscription as SubscriptionRX } from 'rxjs'; import { IDef...
the_stack
export namespace SystemEvents { // Default Application export interface Application {} // Class /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. ...
the_stack
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; import { CancelJobRunCommand, CancelJobRunCommandInput, CancelJobRunCommandOutput, } from "./commands/CancelJobRunCommand"; import { CreateManagedEndpointCommand, CreateManagedEndpointCommandInput, CreateManagedEndpointCommandOutp...
the_stack
import TypeDataGridProps, { TypeComputedProps, TypeRowReorderFn, TypeBuildColumnsProps, } from './TypeDataGridProps'; import { TypeComputedColumn, TypeColumn, TypeColumns } from './TypeColumn'; import { MutableRefObject, ReactNode, CSSProperties } from 'react'; export { TypeSortInfo, TypeSingleSortInfo } from '....
the_stack
import { createElement } from '@syncfusion/ej2-base'; import { Diagram } from '../../../src/diagram/diagram'; import { NodeModel } from '../../../src/diagram/objects/node-model'; import { Node } from '../../../src/diagram/objects/node'; import { TextElement } from '../../../src/diagram/core/elements/text-element'; impo...
the_stack
import { Octokit } from '@octokit/rest'; import { GetResponseDataTypeFromEndpointMethod, GetResponseTypeFromEndpointMethod } from '@octokit/types'; import { isEqual } from 'lodash'; import { showWarningMessage } from '../../commons/utils/NotificationsHelper'; import { IMCQQuestion, Testcase } from '../assessment/A...
the_stack
import { addExpressionUI, cookieCleanup, updateSetting, } from '../redux/Actions'; import { clearCookiesForThisDomain, clearLocalStorageForThisDomain, clearSiteDataForThisDomain, } from './CleanupService'; import { cadLog, eventListenerActions, getHostname, getSetting, localFileToRegex, parseCoo...
the_stack
import * as Json from "jsonc-parser" import { Segment } from "vscode-json-languageservice" import { YAMLDocument } from ".." import { CustomTag, JSONSchema } from "../../model" import * as objects from "../../utils" import localize from "./localize" import { ErrorCode, ProblemSeverity, ValidationResult } from "./va...
the_stack
import * as React from 'react'; import * as ReactDom from 'react-dom'; import { IPropertyPaneField, PropertyPaneFieldType, IPropertyPaneCustomFieldProps } from '@microsoft/sp-webpart-base'; import PropertyFieldSliderRangeHost, { IPropertyFieldSliderRangeHostProps } from './PropertyFieldSliderRangeHost'; import { ...
the_stack
import * as PTM from "./ASTTest"; // PTM = "Published Types and Methods", but this file can also include app-state and app-event handlers import Ambrosia = require("ambrosia-node"); import Utils = Ambrosia.Utils; import IC = Ambrosia.IC; import Messages = Ambrosia.Messages; import Meta = Ambrosia.Meta; import Streams ...
the_stack
import React from 'react'; import 'jest-styled-components'; import 'jest-axe/extend-expect'; import 'regenerator-runtime/runtime'; import { axe } from 'jest-axe'; import { fireEvent, render, act } from '@testing-library/react'; import { FormNextLink, FormPreviousLink } from 'grommet-icons'; import { Box, Button, Cale...
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/devicesMappers"; import * as Parameters from "../models/parameters"; import { DataBoxEdgeManagementClientContext } from "../dataBoxEdgeManagementC...
the_stack
/// <reference types="@types/styled-system" /> /* Note: Using this syntax instead of synthetic default export because we shouldn't assume the TS compiler * options used by DS consumers. */ import * as React from 'react' import { AlignItemsProps, BorderColorProps, BorderRadiusProps, BordersProps, BottomProp...
the_stack
import fetch from "node-fetch"; import md5 from "md5"; import Users from "../../lib/collections/users/collection"; import { userGetGroups } from '../../lib/vulcan-users/permissions'; import { updateMutator } from '../vulcan-lib/mutators'; import { Posts } from '../../lib/collections/posts' import { Comments } from '../...
the_stack
import { ComponentType } from 'react' import { Animated, ViewStyle } from 'react-native' /* ======================== ======================== * * ======================== INTERNAL TYPES ======================== * * ======================== ======================== */ export ty...
the_stack
import * as msRest from "@azure/ms-rest-js"; import { ErrorRequestHandler, NextFunction, Request, RequestHandler, Response } from "express"; import ILogger from "../../common/ILogger"; import BlobStorageContext from "../context/BlobStorageContext"; import StorageErrorFactory from "../errors/StorageErrorFacto...
the_stack
import * as ts from 'typescript'; import { AccessKind, getAccessKind, getBaseClassMemberOfClassElement, getInstanceTypeOfClassLikeDeclaration, getSymbolOfClassLikeDeclaration, hasModifier, isClassLikeDeclaration, isCompilerOptionEnabled, isFunctionScopeBoundary, isIntersectionTyp...
the_stack
import { SubscriptionServerOptions } from 'apollo-server-core' import { PlaygroundRenderPageOptions } from 'apollo-server-express' import { CorsOptions as OriginalCorsOption } from 'cors' import * as Setset from 'setset' import { LiteralUnion, Primitive } from 'type-fest' import * as Utils from '../../lib/utils' import...
the_stack
import sinon from 'sinon' import { Env } from '../../global/env' import { Dom } from '../dom' import { Hook } from './hook' describe('Dom', () => { describe('attributes', () => { describe('attr()', () => { it('should set attribute by key-value', () => { const div = new Dom('div') div.attr('...
the_stack
import React, { useState, useEffect, useContext, useRef } from 'react'; import DeploymentCenterGitHubProvider from './DeploymentCenterGitHubProvider'; import { GitHubUser } from '../../../../models/github'; import { useTranslation } from 'react-i18next'; import DeploymentCenterData from '../DeploymentCenter.data'; impo...
the_stack
import hash = require('object-hash'); import AWS = require('aws-sdk'); import moment = require('moment'); import { Handler, Context, Callback, ScheduledEvent } from 'aws-lambda'; import * as entities from '../../shared-lib/src/entities'; import * as wazeTypes from '../../shared-lib/src/waze-types'; import * as db from ...
the_stack
import EventEmitter from 'eventemitter3'; // IMPORTANT: If you change anything in this file, make sure to also update: react-native-audio-toolkit/docs/API.md declare enum MediaStates { DESTROYED = -2, ERROR = -1, IDLE = 0, PREPARING = 1, PREPARED = 2, SEEKING = 3, PLAYING = 4, RECORDIN...
the_stack
import { ExpiryTimeType } from '@fluid-experimental/property-properties'; import Button from '@material-ui/core/Button'; import FormControl from '@material-ui/core/FormControl'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import Radio from '@material-ui/core/Radio'; import RadioGroup from '@mater...
the_stack
import * as im from 'immutable'; import * as lexical from './lexical'; export type CodePoints = im.List<string>; export const makeCodePoints = (str: string): CodePoints => { // NOTE: Splitting a string by Unicode code points is tricky in // JavaScript. We use the spread operator here, because it does // the s...
the_stack
const portscanner = require('portscanner'); import * as fs from 'fs'; import * as path from 'path'; import * as vscode from 'vscode'; import * as crypto from 'crypto'; import axios from 'axios'; import * as cp from 'child_process'; import * as util from 'util'; const execAsync = util.promisify(cp.exec); import * as ...
the_stack
import { FetchableType } from "./Fetchable"; import { FieldOptionsValue } from "./FieldOptions"; import { ParameterRef } from "./Parameter"; import { TextWriter } from "./TextWriter"; export interface Fetcher<E extends string, T extends object, TVariables extends object> { readonly fetchableType: FetchableType<E>...
the_stack
"use strict"; import * as fse from "fs-extra"; import * as os from "os"; import * as path from "path"; import * as vscode from "vscode"; import * as zlib from "zlib"; import { AcrManager } from "../common/acrManager"; import { Constants } from "../common/constants"; import { RequirementsChecker } from "../common/requi...
the_stack
import AOS from "aos"; import "aos/dist/aos.css"; import { useRef } from "react"; import { BsChevronCompactDown } from "react-icons/bs"; import { HiCheckCircle } from "react-icons/hi"; import { Link } from "react-router-dom"; import { PrismLight as SyntaxHighlighter } from "react-syntax-highlighter"; import jsonLang fr...
the_stack
// clang-format off import 'chrome://settings/lazy_load.js'; import {flush} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'; import {CrInputElement, PaymentsManagerImpl, SettingsCreditCardEditDialogElement, SettingsPaymentsSectionElement} from 'chrome://settings/lazy_load.js'; import {assertEqual...
the_stack
import preact = require("preact"); const { h, Component } = preact; enum DefaultState { Closed, Open } interface GlobalConfig { defaultInstanceState: DefaultState rememberToggles: boolean } // Hackage domain-wide config const globalConfig: GlobalConfig = { defaultInstanceState: DefaultState.Open, rememberTo...
the_stack
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { RequestService, DataCacheService, MessageService , AuthenticationService } from '../../core/services/index'; import { ToasterService} from 'angular2-toaster'; import 'rxjs/...
the_stack
import { ConcreteRequest } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type MyBidsTestsQueryVariables = {}; export type MyBidsTestsQueryResponse = { readonly me: { readonly " $fragmentRefs": FragmentRefs<"MyBids_me">; } | null; }; export type MyBidsTestsQuery = { reado...
the_stack
import { BrowserWindow, clipboard, Menu, MenuItem, MenuItemConstructorOptions, shell } from 'electron'; import { ElectronWindow, promptYesNoSync, selectInput } from '../../common'; import { App } from '../app'; import { PopoutHandler } from '../popoutHandler/popoutHandler'; import { settings } from '../settingHandler'...
the_stack
import { Dialog, showDialog, showErrorMessage } from '@jupyterlab/apputils'; import { TranslationBundle } from '@jupyterlab/translation'; import { CommandRegistry } from '@lumino/commands'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ClearIcon from '@material-ui/...
the_stack
import { CanvasInstruction } from "../../src/shared/CanvasInstruction"; import { Buffer } from "../internal/Buffer"; import { DOMMatrix } from "./DOMMatrix"; import { CanvasDirection } from "../../src/shared/CanvasDirection"; import { CanvasPattern } from "./CanvasPattern"; import { CanvasGradient } from "./CanvasGradi...
the_stack
declare module "simpl-schema" { // Type definitions for simpl-schema type Integer = RegExp; type SchemaType = | String | Number | Integer | Boolean | Object | ArrayLike<any> | SchemaDefinition<any> | Date | SimpleSchema | SimpleSchemaGroup; type SimpleSchemaGroup = { d...
the_stack
import * as vscode from "vscode"; /** * * Text and numeric constants used throughout leoInteg */ export class Constants { public static PUBLISHER: string = "boltex"; public static NAME: string = "leointeg"; public static CONFIG_NAME: string = "leoIntegration"; public static CONFIG_WORKBENCH_ENABLED_...
the_stack
* based on commit "cf1e602" * 文件结构 * * -模块 * -命名空间 * -全局 * * 未加入:WidgetsBasedAutomation、Shell、Thread、UI、Work with Java * */ declare module 'global' { /** * 表示一个点(坐标)。 */ interface Point { x: number; y: number; } /** * app模块提供一系列函数,用于使用其他应用、与其他应用交互。例如发...
the_stack
import { Plan } from '@prisma/client' import * as t from 'io-ts' import { PathReporter } from 'io-ts/lib/PathReporter' import yaml from 'js-yaml' import ml from 'multilines' import * as os from 'os' import { mapEntries, mapKeys } from './data/dict' import { withDefault } from './utils' /* Constants */ const NUMBER_O...
the_stack
import {fireEvent, render, screen, cleanup} from '@testing-library/react'; import {useRef, useState} from 'react'; import { useListNavigation, useFloating, useInteractions, useClick, } from '../../src'; import type {Props} from '../../src/hooks/useListNavigation'; function App(props: Omit<Partial<Props>, 'list...
the_stack
import express from "express"; import multer from "multer"; import fs from "fs"; import cors from "cors"; import path from "path"; import chalk from "chalk"; import bodyParser from "body-parser"; import os from "os"; import uploadAsset from "../helpers/uploadAsset"; import exportMission from "../imports/missions/expor...
the_stack
import { ClassType, CustomError, isObject } from '@deepkit/core'; import { tearDown } from '@deepkit/core-rxjs'; import { arrayBufferTo, Entity, propertyDefinition, t } from '@deepkit/type'; import { BehaviorSubject, Observable, Subject, TeardownLogic } from 'rxjs'; import { skip } from 'rxjs/operators'; export type I...
the_stack
import {CommonModule} from '@angular/common'; import {DebugElement} from '@angular/core'; import {async, ComponentFixture, fakeAsync, TestBed} from '@angular/core/testing'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {MatButtonModule, MatDialogModule, MatDialogRef, MatIconModule, MatProgress...
the_stack
import { CodyResponse, CodyResponseType, followPlaylist, getPlaylists, getPlaylistTracks, getRecommendationsForTracks, getSpotifyAlbumTracks, getSpotifyDevices, getSpotifyLikedSongs, getSpotifyPlayerContext, getSpotifyPlaylist, PaginationItem, PlayerContext, PlayerDevice, PlayerName, Pla...
the_stack
"use strict"; import tm = require("./projectManager"); import tu = require("./testUtil"); import su = require("./serverUtil"); import platform = require("./platform"); import path = require("path"); import os = require("os"); import assert = require("assert"); import Q = require("q"); var express = require("express")...
the_stack
*/ export enum LabelKind { Int, Text, } /** */ export enum SignedMessageKind { COSESIGN, COSESIGN1, } /** */ export enum SigContext { Signature, Signature1, CounterSignature, } /** */ export enum CBORSpecialType { Bool, Float, Unassigned, Break, Undefined, Null, } /** */ export enum CBORValueK...
the_stack
import {Component, EventEmitter, Inject, OnInit, Output} from '@angular/core'; import {FilterAuditModel} from '../filter-audit.model'; import {MAT_DIALOG_DATA, MatDialog, MatDialogRef} from '@angular/material/dialog'; import {AuditService} from '../../../core/services/audit.service'; import {SortUtils} from '../../../c...
the_stack
import description from './description'; import { createInlineStyles } from '@eightfeet/modal'; import { store } from '~/redux/store'; import unitToPx from '~/core/unitToPx'; import { BackgroundCommonTypesOfStyleItems, BackgroundGradientTypesOfStyleItems, BackgroundGroupTypesOfStyleItems, BorderTypesOfStyleItem...
the_stack