text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
namespace ts.projectSystem { describe("unittests:: tsserver:: events:: ProjectsUpdatedInBackground", () => { function verifyFiles(caption: string, actual: readonly string[], expected: readonly string[]) { assert.equal(actual.length, expected.length, `Incorrect number of ${caption}. Actual: ${...
the_stack
import * as assert from 'assert' import * as sinon from 'sinon' import { Cache, credentialsRegionDataListMap, SchemasDataProvider, } from '../../../eventSchemas/providers/schemasDataProvider' import { MockSchemaClient } from '../../shared/clients/mockClients' import { asyncGenerator } from '../../utilities/...
the_stack
import testdata from "./testdata"; import generateEntries from "../src/main/core/entry/en"; beforeAll(() => { testdata.load(); }); test("", () => { expect(generateEntries("Test")).toEqual(expect.arrayContaining(["Test", "test"])); }); test("", () => { let r; r = generateEntries("ladies-in-waiting"); expect...
the_stack
import { testConfig } from 'houdini-common' // locals import { Cache, rootID } from '../cache' import { SubscriptionSelection } from '../../types' const config = testConfig() test('prepend linked lists update', function () { // instantiate the cache const cache = new Cache(config) const selection = { viewer: { ...
the_stack
import { fetchAddr, fetchSize, genTensor, genTorchSize, sanitizeAddr } from '../../backend/backUtils'; import { Constraint } from '../../backend/constraintType'; import { Context, ContextSet } from '../../backend/context'; import { absExpIndexByLen, ceilDiv, isInstanceOf, reluLen, simplifyNum, simplifyShape } from '../...
the_stack
import { CheckCircledIcon, ClipboardIcon, DotsHorizontalIcon, ExclamationTriangleIcon, } from '@radix-ui/react-icons'; import { createEntriesFromVolume, findAllTokenFiles } from 'artkit-collection'; import { Button as RainbowButton, Code, FormRow, FormSection, Heading3, HStack, LinkChip, Regular...
the_stack
interface StyleMap { readonly [key: string]: string | number; } interface Rect extends ClientRect { readonly top: number; readonly bottom: number; readonly left: number; readonly right: number; readonly width: number; readonly height: number; readonly transform?: string; } export function getRect(eleme...
the_stack
import { Injectable, Inject, forwardRef } from "@nestjs/common"; import { InjectRepository, InjectConnection } from "@nestjs/typeorm"; import { Repository, Connection, QueryBuilder } from "typeorm"; import { ValidationError } from "class-validator"; import { v4 as uuid } from "uuid"; import moment from "moment-timezon...
the_stack
import { ethers } from 'hardhat' import { evmWordToAddress, getLogs, publicAbi } from '../test-helpers/helpers' import { assert, expect } from 'chai' import { BigNumber, Contract, ContractFactory, ContractTransaction, } from 'ethers' import { Personas, getUsers } from '../test-helpers/setup' import { evmRevert ...
the_stack
import React, { useRef, useState } from 'react'; import { Button } from '../button/Button'; import { TextArea } from '../textarea/TextArea'; import { TextInput } from '../textInput/TextInput'; import { Dialog } from './Dialog'; import { IconAlertCircle, IconInfoCircle, IconPlusCircle, IconTrash } from '../../icons'; ...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace Formmsdyn_bookingsetupmetadata_Information { interface Tabs { } interface Body { /** Date and time when the record was modified. */ ModifiedOn: DevKit.Controls.DateTime; msdyn_AvailableDurationMinimumPercentage: DevKit...
the_stack
import yaml=require("yaml-ast-parser") import highlevel=require("./highLevelAST") import {IParseResult} from "../index"; import resolversApi=require("./jsyaml/resolversApi") import path=require("path") import URL=require("url") import util=require("../util/index") import linter=require("./ast.core/linter") let messageR...
the_stack
export default class ChromePromise { constructor(options?: { chrome?: object; Promise?: Function; }); accessibilityFeatures: chromepApi.accessibilityFeatures.AccessibilityFeatures; alarms: chromepApi.alarms.Alarms; browser: chromepApi.browser.Browser; bookmarks: chrom...
the_stack
// The MIT License (MIT) // // vs-deploy (https://github.com/mkloubert/vs-deploy) // Copyright (c) Marcel Joachim Kloubert <marcel.kloubert@gmx.net> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // ...
the_stack
import * as React from 'react'; import {render, screen} from '@testing-library/react'; import {Theme} from '@twilio-paste/theme'; import {CustomizationProvider} from '@twilio-paste/customization'; // @ts-ignore typescript doesn't like js imports import axe from '../../../../../.jest/axe-helper'; import {Heading} from ...
the_stack
import ChromeDriver from './chrome_driver'; import {StepType, SnapshotSizeSummary, IProgressBar, OperationType, Log} from '../common/interfaces'; import BLeakConfig from './bleak_config'; import {wait} from '../common/util'; import HeapSnapshotParser from './heap_snapshot_parser'; import {InterceptorConfig, default as ...
the_stack
import { debuglog as dlog } from "./util" import { ByteStr, strings } from "./bytestr" import { Num } from "./num" import { SInt64, UInt64 } from "./int64" import { NoPos } from "./pos" import { Type, BasicType, t_nil } from "./types" import * as utf8 from "./utf8" import * as ast from "./ast" import * as sexpr from "....
the_stack
import { SelectionModel } from '@angular/cdk/collections'; import { Component, OnInit, ViewChild, ViewEncapsulation } from '@angular/core'; import { FormControl } from '@angular/forms'; import { MatDialog } from '@angular/material/dialog'; import { PopoverContentComponent } from 'ngx-smart-popover'; import { forkJoin }...
the_stack
import { CommandData } from "../module.base"; import { TSAddOptions, TSCreateOptions, TSCreateRule, TSIncrbyDecrbyOptions, TSKeySet, TSLabel, TSMRangeOptions, TSRangeOptions } from "./rts.types"; export class RedisTimeSeriesCommander { /** * Creating a new TS key * @param key The key * @param optio...
the_stack
import _ from 'lodash'; import { randomUUID } from 'crypto'; import { GetTableEntityResponse, odata, TableClient, TableEntityQueryOptions, TableEntityResult, TableServiceClient, TablesSharedKeyCredential } from '@azure/data-tables'; import { ICorporateLink, ICorporateLinkExtended, ICorporateLinkProperties, IProviders...
the_stack
import { GraphQLSchema, graphql, print } from 'graphql'; import gql from 'graphql-tag'; import authenticationPlugin from '../../src/authentication'; import { GraphQLGenie } from 'graphql-genie'; import { isArray, isEmpty } from 'lodash'; let schema: GraphQLSchema; beforeAll(() => { const typeDefs = gql` enum Role {...
the_stack
import * as React from "react"; import { useTranslation } from "react-i18next"; import { Card, Col, Row, Skeleton, Switch, Tooltip, Typography } from "antd"; import { CheckOutlined, CloseOutlined } from "@ant-design/icons"; import { Pie } from "@antv/g2plot"; import BigNumber from "bignumber.js"; import forEach from "l...
the_stack
import moment from "moment"; import * as Database from "./database"; import IRepo from "../interface/IRepo"; import GroupType from "../enum/GroupType"; import SearchType from "../enum/SearchType"; export default class DBHandler { private dbName: string; private RxDB; constructor(dbOrName) { if (ty...
the_stack
import { objectName, getLogger, Logger } from "extraterm-logging"; /** * Convert an array-like object to a real array. * * @param {Object} fakeArray An array-like object with get() and length support. * @return {Array} A real array object with the elements as fakeArray. */ export function toArray<T>(fakeArray: { ...
the_stack
import {Injectable} from "@angular/core"; import { HttpEvent, HttpEventType, HttpHandler, HttpHeaders, HttpInterceptor, HttpProgressEvent, HttpRequest, HttpResponse } from "@angular/common/http"; import {Observable} from "rxjs"; import { v4 as uuidv4 } from 'uuid'; import {C...
the_stack
import produce from "immer"; import { getInitialState } from "../store/initialState"; import { TActions } from "../actions/inspectorActions"; import { IInspectorState, IContent, IDifference, IDOM, TPath, TCodeViewType, TGenericViewType } from "../model/types"; import { GetInfo } from "../classes/GetInfo"; import { addM...
the_stack
// The MIT License (MIT) // // vs-deploy (https://github.com/mkloubert/vs-deploy) // Copyright (c) Marcel Joachim Kloubert <marcel.kloubert@gmx.net> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // ...
the_stack
import * as coreClient from "@azure/core-client"; /** Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results. */ export interface OperationListResult { /** List of operations supported by the resource provider. */ value?: Operation[]; ...
the_stack
import * as ABIDecoder from "abi-decoder"; import * as _ from "lodash"; import * as Web3 from "web3"; // Utils import { BigNumber } from "../../../../utils/bignumber"; import * as Units from "../../../../utils/units"; import { Web3Utils } from "../../../../utils/web3_utils"; // Adapters import { SimpleInterestLoanAda...
the_stack
import * as _ from 'lodash'; import {AbstractComponent} from '@common/component/abstract.component'; import {CommonUtil} from '@common/util/common.util'; import {Datasource} from '@domain/datasource/datasource'; import {Widget} from '@domain/dashboard/widget/widget'; import {WidgetShowType} from '@domain/dashboard/dash...
the_stack
import * as gax from 'google-gax'; import { Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, GaxCall, } from 'google-gax'; import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/p...
the_stack
import { isIterable, isFunction, isMissing } from "@esfx/internal-guards"; import { defineTag, Tag } from "@esfx/internal-tag"; import { CancelableSource, Cancelable, CancelSignal, CancelSubscription, CancelError } from "@esfx/cancelable"; import { LinkedList, LinkedListNode } from "@esfx/collections-linkedlist"; i...
the_stack
import { CancellationToken, Progress, ProgressLocation, Uri, window, workspace, WorkspaceConfiguration } from 'vscode'; import * as path from 'path'; import * as http from 'http'; import * as https from 'https'; import * as fse from 'fs-extra'; import * as _ from 'lodash'; import * as os from 'os'; import { getJavaProj...
the_stack
import {array, extend, isArray, isObject, isString, Mark, Spec} from 'vega'; import MARK_EXTENTS from '../constants/markExtents'; import {State, store} from '../store'; import {GuideType} from '../store/factory/Guide'; import {applicationIsEnabled, InteractionRecord, MarkApplicationRecord} from '../store/factory/Intera...
the_stack
import { Component, OnInit, OnDestroy, AfterViewInit, AfterViewChecked, OnChanges, SimpleChanges, ChangeDetectorRef, Input, Output, EventEmitter, ViewChild } from '@angular/core'; import { BsModalService } from 'ngx-bootstrap/modal'; import { NotificationService } from '../../../../../shared'; i...
the_stack
import { Component, OnInit, OnDestroy, AfterViewInit, AfterViewChecked, OnChanges, SimpleChanges, ChangeDetectorRef, ViewChild, ViewChildren, QueryList } from '@angular/core'; import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal'; import { PrimaryWidget } from '../../primary-widget'; import { WidgetS...
the_stack
import './strings.m.js'; import './tab.js'; import './tab_group.js'; import {assert} from 'chrome://resources/js/assert.m.js'; import {addWebUIListener, removeWebUIListener, WebUIListener} from 'chrome://resources/js/cr.m.js'; import {FocusOutlineManager} from 'chrome://resources/js/cr/ui/focus_outline_manager.m.js'; ...
the_stack
import Authorize from './authorize'; import BaseClient from './baseclient'; import Caching from './caching'; import IndexedDB from './indexeddb'; import InMemoryStorage from './inmemorystorage'; import LocalStorage from './localstorage'; import EventHandling from './eventhandling'; import GoogleDrive from './googledriv...
the_stack
/// <reference types="node" /> import stream = require("stream"); import events = require("events"); import fs = require("fs"); declare namespace FS { export interface Opts { windows?: boolean | undefined; drives?: string[] | undefined; root?: string | undefined; } } declare class FS...
the_stack
declare namespace GoldenLayout { export type ItemConfigType = ItemConfig | ComponentConfig | ReactComponentConfig; export interface Settings { /** * Turns headers on or off. If false, the layout will be displayed with splitters only. * Default: true */ hasHeaders?: b...
the_stack
/// <reference path="../../elements.d.ts" /> import { Polymer } from '../../../../tools/definitions/polymer'; import { I18NKeys } from '../../../_locales/i18n-keys'; declare const browserAPI: browserAPI; declare const BrowserAPI: BrowserAPI; declare global { interface ErrorReportingToolSquare extends HTMLElement {...
the_stack
import underscore = require('underscore'); import urijs = require('urijs'); import collection_util = require('../base/collectionutil'); import event_stream = require('../base/event_stream'); import err_util = require('../base/err_util'); import ico = require('./ico'); import image = require('./image'); import site_inf...
the_stack
export default function makeDashboard(integrationId: string) { return { __inputs: [], __requires: [], annotations: { list: [] }, editable: false, gnetId: null, graphTooltip: 1, hideControls: false, id: null, links: [], refresh: "", rows: [ { collapse...
the_stack
import { ConfigEntry } from '@smartthings/core-sdk' export namespace DeviceHealthEvent { export enum StatusEnum { OFFLINE = 'OFFLINE', ONLINE = 'ONLINE', UNHEALTHY = 'UNHEALTHY' // TODO is this correct or is it the core API definition? } export enum ReasonEnum { NONE = 'NONE', SERVICE_UNAVAILABLE = 'SERVI...
the_stack
import { assert } from "chai"; import * as sinon from "sinon"; import { TimeoutError } from "../await/timeout-error"; import { assertErrorChain, fakeConnection } from "../helpers.spec"; import { JoinError } from "./join"; import { joinAll } from "./join-all"; function successResponsesForChannelChunk(channels: string[]...
the_stack
import { V1PodTemplateSpec, V1Container, V1Probe, V1Volume, V1PodSpec, V1KeyToPath, V1ContainerPort, V1VolumeMount } from "@kubernetes/client-node"; import { isPodSpecTemplateEqual } from "./Pod"; // mock logger jest.mock("@opstrace/utils", () => ({ log: { debug: jest.fn } })); function genera...
the_stack
module android.app { const MATCH_PARENT = android.view.ViewGroup.LayoutParams.MATCH_PARENT; import R = android.R; import AlertDialog = android.app.AlertDialog; import DialogInterface = android.content.DialogInterface; import Drawable = android.graphics.drawable.Drawable; import ColorDrawable = a...
the_stack
import { options } from '@tko/utils'; import { removeNode, triggerEvent, extend } from '@tko/utils'; import { unwrap, observable as observableConstructor } from '@tko/observable'; import { computed as computedConstructor } from '@tko/computed'; import { MultiProvider } from '@tko/provider.multi'...
the_stack
import { ByteStr, asciiByteStr } from '../bytestr' import { Pos, SrcFile } from '../pos' import { token } from '../token' import { DiagKind, DiagHandler } from '../diag' import * as ast from '../ast' import { Type, PrimType, FunType, UIntType, types as T, intTypes, t_nil } from "../ast" import { optcf_op1, optcf_op2 } ...
the_stack
import { MessageAttachmentResolvable } from '@src/api/entities/attachment/interfaces/MessageAttachmentResolvable' import { RawAttachment } from '@discordoo/providers' import { MessageAttachment } from '@src/api/entities/attachment/MessageAttachment' import { ColorResolvable } from '@src/api/entities/interfaces/ColorRes...
the_stack
import nj from '../core'; import * as tools from '../utils/tools'; import '../helpers/filter'; //Get compiled property const REGEX_JS_PROP = /('[^']*')|("[^"]*")|(-?[0-9][0-9]*(\.\d+)?)|true|false|null|undefined|Object|Array|Math|Date|JSON|(([a-zA-Z_$#@])([a-zA-Z_$\d]*))/; const REGEX_REPLACE_CHAR = /_njQs(\d+)_/g; co...
the_stack
import { assert, expect } from "chai"; import * as sinon from "sinon"; import * as path from "path"; import { BisCodeSpec, Code, DefinitionElementProps, ElementAspectProps, EntityMetaData, RelatedElement, RelatedElementProps } from "@itwin/core-common"; import { DefinitionElement, IModelDb, RepositoryLink, Schema, Sn...
the_stack
import { Result, asyncResult } from '@expo/results'; import { EntityCompanionDefinition } from './EntityCompanionProvider'; import { CreateMutator, UpdateMutator } from './EntityMutator'; import EntityPrivacyPolicy from './EntityPrivacyPolicy'; import { EntityQueryContext } from './EntityQueryContext'; import Readonly...
the_stack
import React, { useEffect } from 'react'; import { ipcRenderer } from 'electron'; import { Row, Col, Form, Input, InputNumber, Button, Select, Radio, Switch, message, Space, Divider } from 'antd'; import { useAppContext } from '@renderer/context/app'; import { usePlatform } from '@renderer/hook/usePlatform'; import { d...
the_stack
import { toQueryString } from "../../utils"; import { SdkClient } from "../common/sdk-client"; import { KPICalculationModels } from "./kpi-models"; /** * The KPI Calculation Service computes Key Performance Indicators (KPIs) for an asset. It uses data sources such as sensors, control units and calendars. * Typical u...
the_stack
import algoliasearch from 'algoliasearch'; import htmlToText from 'html-to-text'; import chunk from 'lodash/chunk'; import keyBy from 'lodash/keyBy'; import { isAnyTest } from '../../lib/executionEnvironment'; import * as _ from 'underscore'; import { getAlgoliaIndexName, collectionIsAlgoliaIndexed, AlgoliaIndexCollect...
the_stack
import {Spec} from "vega"; import {ScaleRecord} from "../store/factory/Scale"; import {State} from "../store"; import duplicate from "../util/duplicate"; import {MarkRecord} from "../store/factory/Mark"; import {GroupRecord} from "../store/factory/marks/Group"; import {ScaleInfo, ApplicationRecord, SelectionRecord, Poi...
the_stack
import { assert } from 'chai' import { Utils, WalletFactory, XrplNetwork } from 'xpring-common-js' import IssuedCurrencyClient from '../../src/XRP/issued-currency-client' import { FakeXRPNetworkClient, FakeXRPNetworkClientResponses, } from './fakes/fake-xrp-network-client' import 'mocha' import TrustLine from '../...
the_stack
import {Request, Response, NextFunction} from 'express'; import express = require('express'); import getPort = require('get-port'); import BicycleClient, {NetworkLayer} from '../client'; import BicycleServer from '../server'; import MemoryStore from '../sessions/MemorySessionStore'; import {createErrorResult} from '../...
the_stack
export const formConfigurationsIncludes = { fieldsAccordionInclude: [ { key: "fields", type: "accordion", title: "fields", itemTitleKey: "key", fields: [{ key: "anyFieldInclude", type: "include", include: "anyFieldInclude" }] } ], anyFieldInclude: [ { key: "baseFieldInclu...
the_stack
import * as React from "react"; import { Button } from "react-common/controls/Button"; import { SvgCoord } from '../lib/skillGraphUtils'; import { ActivityStatus } from '../lib/skillMapUtils'; /* eslint-disable import/no-unassigned-import, import/no-internal-modules */ import '../styles/graphnode.css' /* eslint-enabl...
the_stack
export interface DisassemblyItem { /** * The memory address of the disassembled instruction */ address: number; /** * Operation codes used for the disassembly */ opCodes?: string; /** * Indicates that the disassembly instruction has an associated label */ hasLabel?: boolean; /** * ...
the_stack
import { Collection } from './collection' import { CouchbaseError, PathExistsError, PathInvalidError } from './errors' import { StoreSemantics } from './generaltypes' import { LookupInSpec, MutateInSpec } from './sdspecs' import { NodeCallback, PromiseHelper } from './utilities' /** * CouchbaseList provides a simplif...
the_stack
import { Box, Collapse, Grid } from "@material-ui/core"; import Typography from "@material-ui/core/Typography"; import { Alert, AlertTitle } from "@material-ui/lab"; import arrayMutators from "final-form-arrays"; import { AutoCompleteMultipleValue, AutoCompleteMultiValuesFreeSolo } from "forms/Final/autoComplete"; impo...
the_stack
import React, { useState, useRef } from 'react'; import moment, { Moment } from 'moment'; import { PrimaryButton, SecondaryButton, ExportButton, ViewTransactionDetailsButton, SortButton, } from 'modules/common/buttons'; import { ASCENDING, DESCENDING, NEUTRAL, ETH, REP, DAI, } from 'modules/common...
the_stack
"use strict"; // uuid: ce496037-5728-4543-b2b1-f8a9aaa3d0f0 // ------------------------------------------------------------------------ // Copyright (c) 2018 Alexandre Bento Freire. All rights reserved. // Licensed under the MIT License+uuid License. See License.txt for details // -------------------------------------...
the_stack
import * as React from 'react'; import { range } from 'lodash'; import { FormattedMessage, injectIntl } from 'react-intl'; // eslint-disable-next-line @typescript-eslint/ban-ts-ignore // @ts-ignore import dayjs from 'dayjs'; import { DayKey, TimeWindowProps, State, DayOptions, TimeWindowTexts } from './TimeWindow.types...
the_stack
import { Component, OnInit, ViewChild, AfterViewInit, ViewEncapsulation } from '@angular/core'; import { MatDialog, MatDialogRef } from '@angular/material/dialog'; import { ActivatedRoute, Router } from '@angular/router'; import { Hotkey, HotkeysService } from 'angular2-hotkeys'; import { AboutComponent } from './dialo...
the_stack
import { Pipe, PipeTransform } from '@angular/core'; import { ImageElement, StarRating } from '../../../interfaces/final-object.interface'; import { randomizeArray } from '../../../node/utility'; import { orderBy } from 'natural-orderby'; export type SortType = 'default' | 'alphabetAsc' ...
the_stack
import { QuerySnapshot, DocumentData, WithFieldValue, PartialWithFieldValue, SetOptions, } from '@google-cloud/firestore'; import {describe, it, before, beforeEach, afterEach} from 'mocha'; import {expect, use} from 'chai'; import * as chaiAsPromised from 'chai-as-promised'; import * as extend from 'extend';...
the_stack
import { assetDataUtils } from '@0x/order-utils'; import { BigNumber, NULL_BYTES } from '@0x/utils'; import { ZERO } from '../../common/constants'; import { createBuySellLimitSteps, createBuySellMarketSteps, getUnlockTokenStepIfNeeded, getUnlockZrxStepIfNeeded, getWrapEthStepIfNeeded, } from '../.....
the_stack
import * as monaco from '@ali/monaco-editor-core/esm/vs/editor/editor.api'; import type * as vscode from 'vscode'; import { DocumentSelector, HoverProvider, CancellationToken, DefinitionProvider, ReferenceProvider } from 'vscode'; import { DocumentFilter } from 'vscode-languageserver-protocol'; import { Autowired, Inj...
the_stack
import { GlobalProps } from 'ojs/ojvcomponent'; import { ComponentChildren } from 'preact'; import 'geojson'; import { DataProvider } from '../ojdataprovider'; import { dvtBaseComponent, dvtBaseComponentEventMap, dvtBaseComponentSettableProperties } from '../ojdvt-base'; import { JetElement, JetSettableProperties, JetE...
the_stack
import * as React from 'react'; import { initializeComponentRef, getRTL, classNamesFunction, getNativeProps, htmlElementProperties, } from '../../Utilities'; import { FocusZone, FocusZoneDirection } from '../../FocusZone'; import { Link } from '../../Link'; import { Icon } from '../../Icon'; import { IconButt...
the_stack
import AppConfig from 'config/config'; import { BadgeStyle, BadgeStyleConfig } from 'config/config-types'; import { convertText, CaseType } from 'utils/textUtils'; import { TableMetadata } from 'interfaces/TableMetadata'; import { ResourceType } from '../interfaces'; import { AnalyticsConfig, FilterConfig, LinkC...
the_stack
import { Linter } from './Linter'; declare class ESLintBase { /** * Creates a new instance of the main ESLint API. * @param options The options for this instance. */ constructor(options?: ESLint.ESLintOptions); /** * This method calculates the configuration for a given file, whic...
the_stack
import "geckodriver" import * as process from "process" const env = process.env import * as fs from "fs" import * as os from "os" import * as path from "path" import * as webdriver from "selenium-webdriver" import * as Until from "selenium-webdriver/lib/until" const {By} = webdriver import {Options} from "selenium-web...
the_stack
import { Event, IGroup, ICanvas, IShape } from '@antv/g-base'; import { get, size, assign, each, isNumber } from '@antv/util'; import { ext } from '@antv/matrix-util'; import Trend, { TrendCfg } from './trend'; import Handler from './handler'; import { isString } from '@antv/util'; import ControllerBtn, { ControllerCfg...
the_stack
import Page = require('../../../base/Page'); import Response = require('../../../http/response'); import V1 = require('../V1'); import { SerializableClass } from '../../../interfaces'; /** * Initialize the SourceIpMappingList * * @param version - Version of the resource */ declare function SourceIpMappingList(vers...
the_stack
import * as path from 'path'; import * as express from 'express'; import { expect } from 'chai'; import * as request from 'supertest'; import { createApp } from './common/app'; import { OpenApiValidatorOpts, ValidateSecurityOpts, OpenAPIV3, } from '../src/framework/types'; // NOTE/TODO: These tests modify eovCon...
the_stack
import test from 'ava' import mocker, { Mocker } from '../../' test('Should return an new instance of mocker', async (t) => { t.deepEqual(mocker(), new Mocker()) }) test('Should iterate root level too with fields in models', async (t) => { let length = 1 let expectedResult = { user: ['firstName'] } l...
the_stack
import { AssertError } from '../errors/internal-error'; import { ComponentItem } from '../items/component-item'; import { LayoutManager } from '../layout-manager'; import { DomConstants } from '../utils/dom-constants'; import { DragListener } from '../utils/drag-listener'; import { numberToPixels, pixelsToNumber } from...
the_stack
import {Feature, MapBrowserEvent, View} from "ol"; import {Extent, getCenter} from "ol/extent"; import {defaults as defaultInteractions, DragPan, Interaction, DragBox, Snap} from "ol/interaction.js"; import PointerInteraction from 'ol/interaction/Pointer'; import Draw from "ol/interaction/Draw.js"; import Style from "o...
the_stack
import * as React from 'react'; import { FocusTrapZone } from '@fluentui/react/lib/FocusTrapZone'; import { FocusZone, FocusZoneDirection } from '@fluentui/react/lib/FocusZone'; import type { IFocusTrapZoneProps, IFocusTrapZone } from '@fluentui/react/lib/FocusTrapZone'; import { mount } from '@cypress/react'; import t...
the_stack
interface List<T> extends Array<T> {} interface Type {} interface _ComponentArg { /** * The CSS selector that triggers the instantiation of a directive. * * Angular only allows directives to trigger on CSS selectors that do not cross element boundaries. * * `selector` may be declared as one o...
the_stack
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Config } from '../../../environments/environment'; import { PriceListVO, TaxVO, TaxConfigVO, PromotionVO, PromotionCouponVO, CartVO, PromotionTestVO, SearchContextVO, SearchResultVO, AttributeVO, Pair } f...
the_stack
"use strict"; import esprima = require("esprima"); import util = require("util"); import esutils = require("esutils"); import hoist = require("./ast-hoist"); import argfinder = require("./argfinder"); import escodegen = require("escodegen"); // debug import scoping = require("./scoping"); var BinaryOpRemap = { '<...
the_stack
import { Container, createContainer, Provider, resolveContainer } from 'frint-di'; import find = require('lodash/find'); import findIndex = require('lodash/findIndex'); import get = require('lodash/get'); import omit = require('lodash/omit'); import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { Observable }...
the_stack
import Base from '~/src/command/base' import http from '~/src/library/http' import md5 from 'md5' import url from 'url' import moment from 'moment' import _ from 'lodash' import fs from 'fs' import path from 'path' import shelljs from 'shelljs' import decodeHtml from 'decode-html' import PathConfig from '~/src/config/p...
the_stack
import * as assert from 'assert'; import {describe, it, before, afterEach} from 'mocha'; import { PluginLoader, PluginLoaderState, PluginWrapper, } from '../src/trace-plugin-loader'; import {alwaysTrace} from '../src/tracing-policy'; import {TestLogger} from './logger'; import {getBaseConfig, NoPropagation} from...
the_stack
import { WList } from '../list/list'; import { WAbstractList } from '../list/abstract-list'; import { WListLevel } from '../list/list-level'; import { WTabStop, WParagraphFormat } from '../format/paragraph-format'; import { WCellFormat, WTableFormat, WRowFormat, WStyle, WListFormat, WCharacterFormat } from '../format/i...
the_stack
import * as React from "react"; import * as R from "../../../../resources"; import * as globals from "../../../../globals"; import { ContextedComponent } from "../../../../context_component"; import { PopupView } from "../../../../controllers/popup_controller"; import { classNames } from "../../../../utils"; import { ...
the_stack
// eslint-disable-next-line node/no-extraneous-import import {Probot, createProbot, ProbotOctokit} from 'probot'; // eslint-disable-next-line node/no-extraneous-import import {Octokit} from '@octokit/rest'; import nock from 'nock'; import sinon from 'sinon'; import {describe, it, afterEach, beforeEach} from 'mocha'; im...
the_stack
import childProcess from 'child_process' import yaml from 'yaml' import mapPorts from './map-ports' export interface IDockerComposeOptions { cwd?: string executablePath?: string config?: string | string[] configAsString?: string log?: boolean composeOptions?: string[] | (string | string[])[] commandOptio...
the_stack
'use strict'; import type { Kernel, KernelMessage, Session } from '@jupyterlab/services'; import type { JSONObject } from '@lumino/coreutils'; import type { Slot } from '@lumino/signaling'; import { Observable } from 'rxjs/Observable'; import { ReplaySubject } from 'rxjs/ReplaySubject'; import { Event, EventEmitter } f...
the_stack
import * as vscode from 'vscode'; import { getLocation, Location, parse } from 'jsonc-parser'; import * as nls from 'vscode-nls'; import { provideInstalledExtensionProposals } from './extensionsProposals'; const localize = nls.loadMessageBundle(); const OVERRIDE_IDENTIFIER_REGEX = /\[([^\[\]]*)\]/g; export class Sett...
the_stack
import { Event, EventEmitter, TreeDataProvider, TreeItem, TreeItemCollapsibleState, window, workspace, } from 'vscode'; import { IWorkspaceMember, ICodeCoverage } from '../forceCode'; import * as path from 'path'; import * as fs from 'fs-extra'; import { isEmptyUndOrNull } from '../util'; import { MAX_TIM...
the_stack
import * as React from 'react'; import * as PropTypes from 'prop-types'; import { Motion, spring, OpaqueConfig } from 'react-motion'; import update from 'immutability-helper'; import MultiRef from 'react-multi-ref'; import OnUpdate from './OnUpdate'; import MoveContainer, { HeightData } from './MoveContainer'; const D...
the_stack
import * as fs from "fs"; import {PathLike} from "fs"; import * as readline from "readline"; interface ClassInfo { /** * 类的id,默认使用类名,不能重复 */ id?: string; /** * 类的类型 */ type: any; /** * 记录装饰器调用的位置 */ pos: any; } /** * 序列化时需要忽略的字段 */ const transientFields = ne...
the_stack
import Q = require('q'); import assert = require('assert'); import mockHelper = require('../../lib/mockHelper'); import path = require('path'); import fs = require('fs'); import tl = require('../../lib/vsts-task-lib/toolrunner'); let CodeCoverageEnablerFactory = require('../../../Tasks/Common/codecoverage-tools/codecov...
the_stack