text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { Parse as TarParser } from "tar"; import { PassThrough as PassThroughStream } from "stream"; import path from "path"; import * as _ from "lodash"; import * as tar from "tar-stream"; import * as zlib from "zlib"; import concat from "concat-stream"; import yaml from "js-yaml"; interface InstallationSpec { curs...
the_stack
import * as THREE from "three" import { selectLabel, selectLabel3dType } from "../../action/select" import Session from "../../common/session" import { DataType, Key, LabelTypeName, ViewerConfigTypeName } from "../../const/common" import { getCurrentViewerConfig } from "../../functional/state_util" import { ma...
the_stack
import { ITrade } from "./trade"; import { IDataFrame, DataFrame } from 'data-forge'; import { IStrategy, IBar, IPosition } from ".."; import { assert } from "chai"; import { IEnterPositionOptions, TradeDirection } from "./strategy"; import { isObject } from "./utils"; const CBuffer = require('CBuffer'); /** * Update...
the_stack
import { Injectable, isDevMode } from '@angular/core'; import { $, GridItemHTMLElement, GridStack, GridStackNode, Utils } from 'gridstack'; import { DashboardComponent } from './dashboard.component'; import { DashboardLibraryTrashDirective } from './widget-library/library-trash.directive'; import { DashboardLibraryWidg...
the_stack
import React from 'react'; import { RICOS_LINK_TYPE, EditorCommands, normalizeUrl, anchorScroll, } from 'wix-rich-content-common'; import { AlignTextCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon } from '../icons'; import { HEADING_TYPE_TO_ELEMENT, buttonsFullData, inlineStyleButtons, textB...
the_stack
import {t} from '@lingui/macro' import {Plural, Trans} from '@lingui/react' import {DataLink} from 'components/ui/DbLink' import {RotationTable} from 'components/ui/RotationTable' import {StatusKey} from 'data/STATUSES' import {Event, Events} from 'event' import _ from 'lodash' import {Analyser} from 'parser/core/Analy...
the_stack
import { createElement, KeyboardEventArgs, L10n, classList } from '@syncfusion/ej2-base'; import { CheckBox } from '@syncfusion/ej2-buttons'; import { NumericTextBox } from '@syncfusion/ej2-inputs'; import { Toolbar } from '../tool-bar/tool-bar'; import { DocumentEditorContainer } from '../document-editor-container'; i...
the_stack
import React, { Component } from 'react'; import HeadingCombo from '../../elements/HeadingCombo/HeadingCombo'; import './DeployPage.scss'; import ButtonList from '../../elements/ButtonList/ButtonList'; import DeployProgressBar from '../../elements/DeployProgressBar/DeployProgressBar'; import IPackageRegistryEntry from ...
the_stack
import { BaseClientSideWebPart, IPropertyPaneConfiguration, IWebPartContext, PropertyPaneDropdown, PropertyPaneToggle, PropertyPaneSlider } from '@microsoft/sp-webpart-base'; import { Version } from '@microsoft/sp-core-library'; import * as strings from 'NewsCarouselStrings'; import { INewsCarouselWebPartP...
the_stack
module CorsicaTests { var _LightDismissService = Helper.require("WinJS/_LightDismissService"); export class SettingsFlyoutTests { "use strict"; tearDown() { LiveUnit.LoggingCore.logComment("In tearDown"); OverlayHelpers.disposeAndRemove(document.querySelector(".win-set...
the_stack
import { ExifDate } from "./ExifDate" import { ExifDateTime } from "./ExifDateTime" import { ExifTool, WriteTags } from "./ExifTool" import { isFileEmpty } from "./File" import { map } from "./Maybe" import { omit } from "./Object" import { ResourceEvent } from "./ResourceEvent" import { isSidecarExt } from "./Sidecars...
the_stack
import './polyfills' import path from 'path' import colors from 'chalk' import prettyBytes from 'pretty-bytes' import formatTime from 'pretty-ms' import textTable from 'text-table' import resolveFrom from 'resolve-from' import boxen from 'boxen' import stringWidth from 'string-width' import { rollup, watch, Plugi...
the_stack
import '../components/alignment-forum/withSetAlignmentPost'; import '../components/posts/PostsPage'; import '../components/posts/TableOfContents'; import '../components/vulcan-core/vulcan-core-components'; import { forumTypeSetting } from './instanceSettings'; // vulcan:forms import './vulcan-forms/components'; import...
the_stack
import * as React from 'react'; import { Logger, LogLevel } from "@pnp/logging"; import isEqual from "lodash/isEqual"; import find from "lodash/find"; import findIndex from "lodash/findIndex"; import includes from "lodash/includes"; import cloneDeep from "lodash/cloneDeep"; import filter from "lodash/filter"; import i...
the_stack
import delay from 'delay'; import { Page } from 'playwright'; import { isApple, selectAll } from './playwright-modifier-keys'; /** * The default `typist` instance which expects a global page instance and sets a * typing delay of 10ms. */ export const typist = createTypist({ delay: 10 }); /** * A function which c...
the_stack
import { debug, toHex } from '../util'; import { rom as smartPortRom } from '../roms/cards/smartport'; import { Card, Restorable, byte, word, rom } from '../types'; import { MassStorage, BlockDisk, ENCODING_BLOCK } from '../formats/types'; import CPU6502, { CpuState, flags } from '../cpu6502'; import { read2MGHeader } ...
the_stack
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql'; import { IDeputy, IProcedure } from '@democracy-deutschland/democracy-common'; import { GraphQlContext } from '../types/graphqlContext'; import { DeepPartial } from 'utility-types'; export type Maybe<T> = T | null; export type Exa...
the_stack
import * as I from 'immutable'; import * as p2 from 'p2'; import createImmutableReducer, {IHandlers} from '../universal/createImmutableReducer'; import { Message, MessageInitial, MessagePlayerConnected, MessageDisplayMessage, MessageLevel, MessageLevelOver, MessageHurryUp, MessagePlayerSwing, Messag...
the_stack
import react = require('react'); import react_dom = require('react-dom'); import style = require('ts-style'); import button = require('./controls/button'); import colors = require('./controls/colors'); import { div, form, input } from './base/dom_factory'; import event_stream = require('../lib/base/event_stream'); imp...
the_stack
import React from 'react'; import Svg, {Rect, G, Circle} from 'react-native-svg'; type ThemeThumbnailProps = { width: number; borderColorBase: string; borderColorMix: string; sidebarBg: string; sidebarText: string; sidebarUnreadText: string; onlineIndicator: string; awayIndicator: strin...
the_stack
import Path from 'path'; import { Request, Response, Router } from 'express'; import { execute } from 'proper-job'; import PathIsInside from 'path-is-inside'; import { BadRequest, NotFound } from '../errors'; import { ImportUtils } from '../cache/import-utils'; import { Transcoder } from '../cache/transcoder'; import...
the_stack
import * as mockery from 'mockery'; import * as assert from 'assert'; import * as testUtils from '../testUtils'; import { ITargetDiscoveryStrategy } from '../../src/chrome/chromeConnection'; import { NullLogger } from '../../src/nullLogger'; import { NullTelemetryReporter } from '../../src/telemetry'; import { Versio...
the_stack
declare namespace GoogleAppsScript { namespace Analyticsreporting { namespace Collection { interface ReportsCollection { // Returns the Analytics data. batchGet(resource: Schema.GetReportsRequest): Analyticsreporting.Schema.GetReportsResponse; } interface UserActivityCollection {...
the_stack
import NaviFactAdapter, { QueryStatus, FactAdapterError } from '../../../adapters/facts/interface.js'; import Interval from '../../../utils/classes/interval.js'; import * as GQLQueries from '../../../gql/fact-queries.js'; import moment from 'moment'; import { canonicalizeColumn } from '../../../utils/column.js'; import...
the_stack
import * as gax from './gax'; import {GrpcClient, ClientStubOptions} from './grpc'; import {GrpcClient as FallbackGrpcClient} from './fallback'; import {createApiCall} from './createApiCall'; import {GoogleAuth, OAuth2Client} from 'google-auth-library'; import {ProjectIdCallback} from 'google-auth-library/build/src/aut...
the_stack
import { JsonPointer, encodePointer, encodeUriFragmentIdentifier, JsonStringPointerListItem, UriFragmentIdentifierPointerListItem, } from '..'; import { expect } from 'chai'; const create = JsonPointer.create; describe('JsonPointer', function () { describe('when working with the example data from the rfc'...
the_stack
import { LogService } from './../../shared/services/log.service'; import { ScenarioService } from './../../shared/services/scenario/scenario.service'; import { Component, Input, Injector, OnDestroy } from '@angular/core'; import { FeatureComponent } from '../../shared/components/feature-component'; import { TreeViewInf...
the_stack
import type { IShapeBuilder } from '../core/IShapeBuilder'; import { SmoothGraphicsData } from '../core/SmoothGraphicsData'; import { BuildData } from '../core/BuildData'; import { JOINT_TYPE } from '../core/const'; import { Point, Polygon } from '@pixi/math'; import { earcut } from '@pixi/utils'; const tempArr: Array...
the_stack
import { expect } from "chai"; import { decode as decodeJwt, JwtHeader } from "jsonwebtoken"; import { FirebaseJwtPayload } from "../../../emulator/auth/operations"; import { ProviderUserInfo, PROVIDER_PASSWORD, PROVIDER_PHONE } from "../../../emulator/auth/state"; import { describeAuthEmulator, PROJECT_ID } from "./se...
the_stack
import * as React from 'react' import { renderToString } from 'react-dom/server' import * as d3 from 'd3' import { sankey, sankeyLinkHorizontal, sankeyLeft, SankeyNode, SankeyLink } from 'd3-sankey' import { YtModel, Graph, ChannelData, RecEx, RecDir, RecData } from '../../common/YtModel' import { YtInteractiveChartHel...
the_stack
import { expect } from "chai"; import sinon from "sinon"; import moment from "moment"; import { CampaignNodeKind, Edge, EdgeKind, serialize } from "common/campaign"; import AbstractCampaignNode from "common/campaign/nodes/abstractCampaignNode"; import AudienceCampaignNode from "common/campaign/nodes/audienceCampaignNod...
the_stack
import 'cypress-plugin-snapshots/commands'; import { INLINE_TOOLBAR_BUTTONS, PLUGIN_TOOLBAR_BUTTONS, IMAGE_SETTINGS, GALLERY_SETTINGS, VIDEO_PLUGIN, HTML_PLUGIN, PLUGIN_COMPONENT, STATIC_TOOLBAR_BUTTONS, ACTION_BUTTONS, TOOLBARS, COLOR_PICKER, COLLAPSIBLE_LIST_SETTINGS, } from '../dataHooks'; im...
the_stack
import { ArgumentParser, SubParser } from 'argparse' import * as fs from 'fs' import * as path from 'path' import * as config from './config' import { Keystore, Key } from './Keystore' import * as chat from './subcommands/chat' import * as addkey from './subcommands/addkey' import * as removekey from './subcommands/rem...
the_stack
import * as React from 'react'; import { graphql, GraphQLSchema, GraphQLObjectType, GraphQLString, GraphQLNonNull, GraphQLList, GraphQLInputObjectType } from 'graphql'; import Types from '../types'; import { IComponent } from "../types/component"; import { IInfrastructure } from "../typ...
the_stack
'use strict'; /* The module 'vscode' contains the VS Code extensibility API The LoadToolbar function will populate items in the toolbar, but only when the extension loads the first time. The common file provides functions that are useful across all commands. Logging, Error Handling, VS Code window updates, etc. */ ...
the_stack
export interface FaceDetectorConfig { modelPath: string, rotation: boolean, maxDetected: number, skipFrames: number, minConfidence: number, iouThreshold: number, return: boolean, } /** Mesh part of face configuration */ export interface FaceMeshConfig { enabled: boolean, modelPath: string, } /** Iri...
the_stack
import 'elements-sk/styles/buttons'; import 'codemirror/mode/javascript/javascript'; // Syntax highlighting for js. import { $$ } from 'common-sk/modules/dom'; import { errorMessage } from 'elements-sk/errorMessage'; import { jsonOrThrow } from 'common-sk/modules/jsonOrThrow'; import { html, render, TemplateResult } f...
the_stack
import * as argparse from "argparse"; import { getSupportedSyntaxExplanations } from "./selectors"; /** * A supported command. */ export enum Command { LIST, FILTER, TOOLS, RUN, EXPORT, REPORT, DOWNLOAD_COMMITS, UPLOAD_COMMITS, VALIDATE } /** * A supported argument kind. */ enum Arg { CONFIG_FI...
the_stack
import { configContext } from "../../../../ConfigContext"; import { armRequest } from "../../request"; import * as Types from "./types"; const apiVersion = "2021-04-15"; /* Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. */ export async function listCassandraKeyspaces( subscriptionI...
the_stack
import {createGroup} from 'app/client/components/commands'; import {ACIndexImpl, ACItem, ACResults, buildHighlightedDom, HighlightFunc} from 'app/client/lib/ACIndex'; import {IAutocompleteOptions} from 'app/client/lib/autocomplete'; import {IToken, TokenField, tokenFieldStyles} from 'app/client/lib/TokenField'; import ...
the_stack
import { faSquare } from '@fortawesome/free-regular-svg-icons/faSquare'; import { faCheckSquare } from '@fortawesome/free-solid-svg-icons/faCheckSquare'; import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons/faExternalLinkAlt'; import { faExternalLinkSquareAlt } from '@fortawesome/free-solid-svg-icons/fa...
the_stack
import * as std from "tstl"; import { ExternalSystem } from "../external/ExternalSystem"; import { ParallelSystemArray } from "./ParallelSystemArray"; import { IClientDriver } from "../../protocol/communicator/IClientDriver"; import { InvokeHistory } from "../slave/InvokeHistory"; import { PRInvokeHistory } from "./...
the_stack
import * as cp from 'child_process'; import * as fse from 'fs-extra'; import * as os from 'os'; import { exec, spawn } from 'child_process'; import trash from 'trash'; import { join, dirname, normalize, relative, } from './path'; import { MB1 } from './common'; import * as io from './io'; const AggregateError = re...
the_stack
import { Button, Input, InputNumber, Switch, Tooltip } from 'antd'; import { Connect } from 'dob-react'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { BoxEditor } from '../../components/box-editor/src'; import Icon from '../../components/icon/src'; import { pipeEvent } from '../../util...
the_stack
import { jest } from "@jest/globals"; import { createServer, IncomingMessage, request, ServerResponse } from "http"; import { inject } from "light-my-request"; import MemoryStore from "../src/memory-store"; import session from "../src/session"; import { isNew, isTouched } from "../src/symbol"; import { Session } from "...
the_stack
import { expect } from 'chai'; import { render, act, RenderResult } from '@testing-library/react'; import * as sinon from 'sinon'; import ChildComponent from '../../doubles/ChildComponent'; import { ArcView } from '../../../src/ts/components/ArcBase'; function renderArcView({ loadMap = sinon.stub(), scriptUri ...
the_stack
import * as assert from "assert"; import * as path from "path"; import * as napa from "../lib/index"; type Zone = napa.zone.Zone; function shouldFail<T>(func: () => Promise<T>) { return func().then( (value: T) => { assert(false, "Failure was expected."); }, (reason: any) => { ...
the_stack
import 'rxjs/add/operator/take'; import { Subscription } from 'rxjs/Subscription'; import { ReflectiveInjector } from '@angular/core'; import { TestBed, getTestBed } from '@angular/core/testing'; import { StoreModule, Store, State, ActionReducer } from '@ngrx/store'; import { StoreDevtools, StoreDevtoolsModule, Lifted...
the_stack
import { KeyCodes } from './key-codes' import { Direction, Directions, Node, NodeConfig, NodeId, NodeIndex, NodeIndexRange, Orientation, Orientations, Tree } from './interfaces' /** * Given an array of values and a goal, return the value from values which is closest to the goal. * * @param {numb...
the_stack
import {utf8} from './utf8' import {Emittable, Emitter} from './emit' // For some reason we can't import basic-types into this module. // import {uint1,uint7,uint8,uint16,uint32,int7,int32,int64,float32,float64} from './basic-types' export type uint1 = number export type uint7 = number export type uint8 = number...
the_stack
import PropTypes from 'prop-types'; import React, { useMemo } from 'react'; import useField, { FieldMeta, MapFromValue, MapToValue, UseFieldProps, ValidateOnConfig, } from './useField'; import notify from './utils/notify'; export type FieldEventHandlers = { onBlur?: (...args: any[]) => any; onChange?: (....
the_stack
import * as pb_1 from "google-protobuf"; export namespace common.state { export class Meta extends pb_1.Message { constructor(data?: any[] | { protocol?: Meta.Protocol; timestamp?: string; proof_type?: string; serialization_format?: string; }) { ...
the_stack
import { Account, Action, ContractBasedAccount } from "./TasitSdk"; const { ERC20, ERC721, Marketplace } = Action; const { Mana } = ERC20; const { Estate, Land } = ERC721; const { Decentraland } = Marketplace; const { GnosisSafe } = ContractBasedAccount; import DecentralandUtils from "./helpers/DecentralandUtils"; co...
the_stack
import { CommonModule } from '@angular/common'; import {HttpClientTestingModule} from '@angular/common/http/testing'; import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import { BrowserAnimationsModule } from '@angular/platform-browser/ani...
the_stack
import { ExternalLinkIcon } from "@chakra-ui/icons"; import { Box, Button, Code, Divider, Heading, HStack, IconButton, Input, Link, Select, SimpleGrid, Skeleton, Slider, SliderFilledTrack, SliderThumb, SliderTrack, Tag, Text, useColorModeValue, } from "@chakra-ui/react"; import Hea...
the_stack
import '../strings.m.js'; import {assert} from 'chrome://resources/js/assert.m.js'; import {isChromeOS, isLacros} from 'chrome://resources/js/cr.m.js'; import {loadTimeData} from 'chrome://resources/js/load_time_data.m.js'; // <if expr="chromeos_ash or chromeos_lacros"> import {NativeLayerCrosImpl} from '../native_la...
the_stack
import { from, throwError } from 'rxjs'; import { CacheBridge } from '../../src/cache-bridge/cache-bridge'; import { CacheMissError } from '../../src/cache-bridge/cache-miss-error'; import { Cache } from '../../src/cache/cache'; import { CacheDefault } from '../../src/cache/cache-default'; import { DataListContainer ...
the_stack
import { ModuleData } from "./moduleTypes"; import { CRMAPIMessageInstance, UserAddedContextMenu } from './sharedTypes'; declare const browserAPI: browserAPI; export namespace BrowserHandler.ChromeAPIs { function checkFirstRuntimeArg(message: ChromeAPIMessage|BrowserAPIMessage, expectedType: string, name: stri...
the_stack
* Color palettes and related helpers, intended for use with d3. * * This is implemented as a TS library so that the same color list can be used * for different objects, such as div backgrounds or SVG text, with different * style names. */ import * as d3 from 'd3'; /** Color informaiton for LIT */ export interfac...
the_stack
import CID from "cids"; import { createLotusClient } from "../lib/connect"; import { getDealInfo, getDealState } from "../lib/wait"; import { tests } from "./filecoin.fixture"; import { preserveToFilecoin, preserveToFilecoinWithEvents, preserveToIpfs } from "./utils/preserve"; import Ganache from "ganache"; jest...
the_stack
* @module Models */ // cspell:ignore elid import { GuidString, Id64String, JsonUtils } from "@itwin/core-bentley"; import { Point2d, Range3d } from "@itwin/core-geometry"; import { AxisAlignedBox3d, ElementProps, GeometricModel2dProps, GeometricModel3dProps, GeometricModelProps, IModel, InformationPartitionElement...
the_stack
import deepmerge from 'deepmerge'; import isPlainObject from 'is-plain-object'; const hideSpoilers = (theme: ThemeType): JssStyles => ({ backgroundColor: theme.palette.panelBackground.spoilerBlock, color: theme.palette.panelBackground.spoilerBlock, '& a, & a:hover, & a:focus, & a::after': { color: theme.pale...
the_stack
import { StorageAccounts, StorageManagementClientContext } from "@azure/arm-storage"; import { Aborter, BlobSASPermissions, BlockBlobURL, ContainerURL, generateBlobSASQueryParameters, SASProtocol, ServiceURL, SharedKeyCredential, StorageURL, TokenCredential, uploadFileToBlockBlob, downloadBlobToBuffer } from "@azur...
the_stack
import {createEffect, on} from 'solid-js' import {reactive} from '@lume/variable' import {attribute, untrack, element} from '@lume/element' import {TreeNode} from './TreeNode.js' import {XYZSizeModeValues, SizeModeValue} from '../xyz-values/XYZSizeModeValues.js' import {XYZNonNegativeValues} from '../xyz-values/XYZNonN...
the_stack
import * as React from 'react'; import { useCallback, useEffect, useState } from 'react'; import { Button, Form, Menu, Popup, Table } from 'semantic-ui-react'; import { AuditAction, AuditLogEntry, AuditObject, list as apiList, PaginatedAuditLogEntries } from '../../../api/audit/index'; import { get...
the_stack
import React, { forwardRef } from "react"; import { withTheme } from "@okta/odyssey-react-theme"; import { useCx, useOmit, PolymorphicForwardRef, toPascalCase, } from "../../utils"; import styles from "./Box.module.scss"; type spacing = "xs" | "s" | "m" | "l" | "xl" | "0" | false; type overflow = "visible" | "...
the_stack
import * as assert from "@esfx/internal-assert"; import { Equaler, Comparer, Comparison, EqualityComparison } from "@esfx/equatable"; import { IndexedCollection } from '@esfx/collection-core'; import { HashSet } from "@esfx/collections-hashset"; import { HashMap } from "@esfx/collections-hashmap"; import { Lookup ...
the_stack
import { SVGElementAttrs, SVGCircleElementAttrs, SVGClipPathElementAttrs, SVGDefsElementAttrs, SVGDescElementAttrs, SVGEllipseElementAttrs, SVGFEBlendElementAttrs, SVGFEColorMatrixElementAttrs, SVGFEComponentTransferElementAttrs, SVGFECompositeElementAttrs, SVGFEConvolveMatrixElementAttrs, SVGFEDiffuseLightingE...
the_stack
import { MapMeshBasicMaterial, MapMeshStandardMaterial } from "@here/harp-materials"; import { LoggerManager } from "@here/harp-utils"; import * as THREE from "three"; import { getFeatureDataSize, TileFeatureData } from "../Tile"; import { LodMesh } from "./LodMesh"; // Estimation of the size of an Object3D with all ...
the_stack
* @module Topology */ import { Geometry } from "../Geometry"; import { HalfEdge, HalfEdgeGraph, HalfEdgeMask } from "./Graph"; import { Point3d, Vector3d } from "../geometry3d/Point3dVector3d"; import { HalfEdgeGraphMerge } from "./Merging"; import { Triangulator } from "./Triangulation"; import { RegularizationContex...
the_stack
import { CreatableType, CreatableTypeIds, GroupTypeIds, isGroupType, NewObjectOptions, NonGroupTypeIds, objectPath, ObjectType, parentTypeId, ParentTypeIds, ValidateOptions, PackageTypeId, PackageSpecificData, hasPackageOptions, NewPackageOptions, PackageTypes, isPackageType, isBindi...
the_stack
import React, { useState } from "react"; import { Tab } from "@headlessui/react"; import { ReactComponent as ArrowRightIcon } from "assets/svg/arrow_right.svg"; import { ReactComponent as CloseIcon } from "assets/svg/close.svg"; import { ReactComponent as LoadingIcon } from "assets/svg/loader.svg"; import "./styles.s...
the_stack
import '../fixtures/window'; import { set } from '../utils'; import { Editor, globalContext } from '@alilc/lowcode-editor-core'; import { Project } from '../../src/project/project'; import { DocumentModel } from '../../src/document/document-model'; import { isRootNode, Node, isNode, comparePosition, contains,...
the_stack
import { dispatch, getState } from "@core/service-registry"; import { setMachineTypeAction } from "@state/machine-type-reducer"; import { ILiteEvent, LiteEvent } from "@core/utils/lite-event"; import { ZxSpectrum128Core } from "../zx-spectrum/ZxSpectrum128Core"; import { ZxSpectrum48Core } from "../zx-spectrum/ZxSpect...
the_stack
'use strict'; import { window, workspace, Uri, ViewColumn, ExtensionContext, TextDocument, WebviewPanel, Disposable, TextDocumentChangeEvent, Webview, commands } from 'vscode'; import { instrumentOperationAsVsCodeCommand } from "vscode-extension-telemetry-wrapper"; import * as path from 'path'; import { PlanE...
the_stack
import * as assert from "power-assert"; import { appExternalUrls, endpointBaseUrl, kubeClusterHostScheme, } from "../../../../lib/pack/k8s/deploy/externalUrls"; import { KubernetesApplication } from "../../../../lib/pack/k8s/kubernetes/request"; describe("core/pack/k8s/deploy/externalUrls", () => { de...
the_stack
import { Ajax } from '../src/ajax'; import '../node_modules/es6-promise/dist/es6-promise'; import { throwError } from '../src/index' describe('Ajax', () => { describe('onSuccess event', () => { beforeAll(() => { jasmine.Ajax.install(); }); afterAll(() => { jasmine.Aja...
the_stack
import { FileEncoding, Invisibles } from '../index'; // NOTE: the config schema with these defaults can be found here: // https://github.com/atom/atom/blob/v1.40.0/src/config-schema.js /** * Allows you to strongly type Atom configuration variables. Additional key:value * pairings merged into this interface will ...
the_stack
import * as t from 'io-ts'; import { availabilityZone, cidr, optional, region, enums, nonEmptyString, defaulted, } from '@aws-accelerator/common-types'; export const MandatoryAccountType = enums('MandatoryAccountType', [ 'master', 'central-security', 'central-log', 'central-operations', ]); expor...
the_stack
import { IDocumentStore, InMemoryDocumentSessionOperations } from "../../../src"; import { disposeTestDocumentStore, testContext } from "../../Utils/TestUtil"; import moment = require("moment"); import { Company, Order } from "../../Assets/Entities"; import { assertThat, assertThrows } from "../../Utils/AssertExtension...
the_stack
import {AbstractComponent} from "@common/component/abstract.component"; import {Component, ElementRef, Injector, OnInit, ViewChild} from "@angular/core"; import {PeriodData} from "@common/value/period.data.value"; import {PeriodComponent} from "@common/component/period/period.component"; import {ActivatedRoute} from "@...
the_stack
import * as path from "path"; import * as vscode from "vscode"; import { sendPatchInfo } from "../../protocolMessages"; import Utils from "../../utils"; import { ApplyViewAction } from "./actions"; import { Disposable, disposeAll } from "./dispose"; import * as fs from "fs" import { IPatchData } from "./patchData"; in...
the_stack
import assert from 'assert'; import { r } from '../src'; import config from './config'; import { uuid } from './util/common'; describe('geo', () => { let dbName: string; let tableName: string; const numDocs = 10; before(async () => { await r.connectPool(config); dbName = uuid(); tableName = uuid(...
the_stack
import { getScope, userEncryptedKeyPkey, encryptedBlobPkey, } from "@core/lib/blob"; import { env } from "./env"; import { Api } from "@core/types"; import * as R from "ramda"; import { createPool, format, PoolConnection } from "mysql2/promise"; import { log } from "@core/lib/utils/logger"; type SecondaryIndex =...
the_stack
import '../strings.m.js'; import 'chrome://resources/cr_elements/cr_toolbar/cr_toolbar.js'; import {addWebUIListener} from 'chrome://resources/js/cr.m.js'; import {loadTimeData} from 'chrome://resources/js/load_time_data.m.js'; import {html, PolymerElement} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled...
the_stack
namespace fgui { let win:any = window; let hasPointer = !!(win.PointerEvent || win.MSPointerEvent); let hasTouch = 'ontouchstart' in window && PIXI.utils.isMobile.any; export type IndexedObject = { [key:string]: any }; export class InteractiveEvents { publi...
the_stack
import React, { Component, ComponentType, CSSProperties, KeyboardEvent, ReactElement, } from 'react'; import { DraftHandleValue, EditorState, genKey, SelectionState, } from 'draft-js'; import utils from '@draft-js-plugins/utils'; import { AriaProps } from '@draft-js-plugins/editor'; import { List } fr...
the_stack
import _ from 'lodash'; import moment from 'moment'; import * as c from './constants'; import { VariableQuery, VariableQueryTypes, ZBXItemTag } from './types'; import { DataFrame, FieldType, getValueFormats, MappingType, rangeUtil, ValueMapping } from '@grafana/data'; /* * This regex matches 3 types of variable refer...
the_stack
declare const it: any; declare const expect: any; import * as moment from "moment"; import { duration } from "../src/duration"; import { timerange } from "../src/timerange"; import util from "../src/util"; import Moment = moment.Moment; const fmt = "YYYY-MM-DD HH:mm"; const fmt2 = "YYYY-MM-DD HH:mm:ss"; // // Creat...
the_stack
import { Injectable } from '@angular/core'; import { CoreApp } from '@services/app'; import { CoreSites } from '@services/sites'; import { CoreTextUtils } from '@services/utils/text'; import { CoreTimeUtils } from '@services/utils/time'; import { CoreUtils } from '@services/utils/utils'; import { CorePushNotifications...
the_stack
import type { PropType, CSSProperties, Ref } from 'vue'; import { defineComponent, ref, reactive, computed, nextTick, watch, inject, provide, Teleport, Transition, onUpdated, onMounted, onBeforeUnmount, toRefs, } from 'vue'; import { getPrefixCls } from '../_utils/global-config'; import type...
the_stack
import React, { useContext, useEffect, useMemo, useState } from 'react'; import { Group } from '@vx/group'; import { LinkHorizontal } from '@vx/shape'; import styled from 'styled-components'; import { useEntityRegistry } from '../useEntityRegistry'; import { IconStyleType } from '../entity/Entity'; import { NodeData, ...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement, Operator } from "../shared"; /** * Statement provider for service [iotsitewise](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotsitewise.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/lates...
the_stack
import { createElement } from '@syncfusion/ej2-base'; import { Chart } from '../../../src/chart/chart'; import { LineSeries } from '../../../src/chart/series/line-series'; import { definition1, definition2, definition3 } from '../base/data.spec'; import '../../../node_modules/es6-promise/dist/es6-promise'; import { unb...
the_stack
import { URL } from 'url'; type PublicAccessors = { /** * Converts a number to an integer and verifies it's in port ranges 0-65535 */ asPortNumber: (input: string) => number /** * Attempt to parse the variable to a float. Throws an exception if parsing fails. */ asFloat: (input: string) => number...
the_stack
import { StorageSharedKeyCredential } from "../credentials/StorageSharedKeyCredential"; import { UserDelegationKeyCredential } from "../credentials/UserDelegationKeyCredential"; import { DataLakeSASPermissions } from "./DataLakeSASPermissions"; import { FileSystemSASPermissions } from "./FileSystemSASPermissions"; impo...
the_stack
import * as fsExtra from 'fs-extra'; import * as jsonschema from 'jsonschema'; import * as path from 'path'; import sanitizeFileName from 'sanitize-filename'; import { BrowserConfig, BrowserName, parseBrowserConfigString, validateBrowserConfig, } from './browser'; import {Config, parseAutoSampleConditions, url...
the_stack
import Point from './geometry/Point'; import Rectangle from './geometry/Rectangle'; import Dictionary from '../util/Dictionary'; import EventSource from './event/EventSource'; import EventObject from './event/EventObject'; import RectangleShape from './geometry/node/RectangleShape'; import { ALIGN } from '../util/Const...
the_stack
import type { FnN, FnN2, FnN3, FnN4, FnN5, FnN6 } from "@thi.ng/api"; import { EPS, HALF_PI, PI } from "./api.js"; /** * Linear interpolation without clamping. Computes `a + (b - a) * t` * * @param a - start value * @param b - end value * @param t - interpolation factor [0..1] */ export const mix: FnN3 = (a, b, ...
the_stack
import React, {Component} from 'react'; import { Table, Radio, Input } from 'antd'; interface Props { } interface State { bordered: boolean loading: boolean title: any isTitle: boolean titleContent: string size: any footer: any isFooter: boolean footerContent: string tableLay...
the_stack