text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import * as assert from 'assert'; import { Config } from '../config/config'; import { JumpKind } from '../models/jump-kind'; import { Jumper } from './../jumper'; import { ScenarioBuilder } from './scenarios/scenario.builder'; describe('Jumper', () => { let sut: Jumper; let scenario: ScenarioBuilder; before(()...
the_stack
import { StepFormDirective } from '../../../step-form/step-form'; import { Directive, OnInit } from '@angular/core'; import { ClusterPlan } from '../../../constants/wizard.constants'; import { StepMapping } from '../../../field-mapping/FieldMapping'; import AppServices from '../../../../../../../shared/service/appServi...
the_stack
import { compact } from 'lodash' import { ensureDir } from 'fs-extra' import { app, ipcMain, Menu, shell } from 'electron' import { autoUpdater } from 'electron-updater' import { getLogDirectoryPath } from '@lib/logger' import { state } from '@lib/state' import { Menu as ContextMenu, ProjectMenu, FrameworkMenu } from '...
the_stack
// Some of the following code is similar to that of UZIP.js: // https://github.com/photopea/UZIP.js // However, the vast majority of the codebase has diverged from UZIP.js to increase performance and reduce bundle size. // Sometimes 0 will appear where -1 would be more appropriate. This is because using a uint // is b...
the_stack
import type {GlyphMetadata, GlyphTransformFn} from "../types"; import crypto from "crypto"; import isEot from "is-eot"; import isSvg from "is-svg"; import isTtf from "is-ttf"; import isWoff from "is-woff"; import isWoff2 from "is-woff2"; import path from "path"; import standalone from "../standalone"; const fixturesGl...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../types"; import * as utilities from "../utilities"; /** * Manages a CodeBuild webhook, which is an endpoint accepted by the CodeBuild service to trigger builds from source code repositories. Depending on the source ...
the_stack
import 'babel-polyfill'; import { app, BrowserWindow, shell, Menu, screen, dialog, ipcMain } from 'electron'; import { autoUpdater } from 'electron-updater'; import * as url from 'url'; import * as path from 'path'; import { initialize } from './lib/ledger'; import * as settings from 'electron-settings'; const log = r...
the_stack
import * as ethUtil from 'ethereumjs-util'; import { recoverTypedSignature, signTypedData, TypedDataUtils, typedSignatureHash, SignTypedDataVersion, } from './sign-typed-data'; const privateKey = Buffer.from( '4af1bceebf7f3634ec3cff8a2c38e51178d5d4ce585c52d6043e5e2cc3418bb0', 'hex', ); const encodeDataE...
the_stack
import * as angular from 'angular'; import * as _ from "underscore"; import Map = Common.Map; import '../module-require'; import './module-require'; import {ImportComponentOption, ImportComponentType, ImportService} from '../../services/ImportComponentOptionTypes'; import {Common} from '../../../../lib/common/CommonTyp...
the_stack
import { NumericTextBox, ChangeEventArgs as NumericChangeArgs } from '@syncfusion/ej2-inputs'; import { LayoutViewer } from '../index'; import { createElement, L10n } from '@syncfusion/ej2-base'; import { SelectionParagraphFormat } from '../index'; import { Selection } from '../index'; import { isNullOrUndefined } from...
the_stack
import chalk from "chalk"; import { Embark, EmbarkEvents } from "embark-core"; import constants from "embark-core/constants.json"; import { __ } from "embark-i18n"; import { dappPath, escapeHtml, exit, jsonFunctionReplacer, warnIfPackageNotDefinedLocally } from "embark-utils"; import stringify from "json-stringify-safe...
the_stack
export const LATEST_VERSION = 20180209; export const DIGITAL = 0; export const ANALOG = 1; export type CSBoolean = boolean; export type CSFloat = number; export type CSInteger = number; export type CSString = string; export type ALLOWED_ASSERTION_TYPES = "abort" | "abort_recover" | "continue" | "recover"; export ...
the_stack
import { ASUtil, instantiateSync as instantiateBuffer, instantiate, instantiateStreaming } from "assemblyscript/lib/loader"; import { ICanvasSYS } from "../util/ICanvasSYS"; import { CanvasInstruction } from "../shared/CanvasInstruction"; const CanvasPatternRepetitionValues = ["repeat", "repeat_x", "repeat_y", "no_rep...
the_stack
import { unwrap } from "idb"; import orderBy from "lodash-es/orderBy"; import { DEFAULT_PLAY_THROUGH_INJURIES, DIFFICULTY, gameAttributesArrayToObject, isSport, MAX_SUPPORTED_LEAGUE_VERSION, PHASE, PLAYER, unwrapGameAttribute, } from "../../common"; import { player, season } from "../core"; import { idb } from ...
the_stack
import * as AppVersion from "nativescript-appversion"; import { Application, ApplicationSettings, Device } from "@nativescript/core"; import { confirm } from "@nativescript/core/ui/dialogs"; import { TNSAcquisitionManager } from "./TNSAcquisitionManager"; import { TNSLocalPackage } from "./TNSLocalPackage"; import { TN...
the_stack
'use strict' // **Github:** https://github.com/fidm/quic // // **License:** MIT import { suite, it } from 'tman' import { ok, strictEqual, throws, equal } from 'assert' import { bufferFromBytes } from './common' import { BufferVisitor, toBuffer } from '../src/internal/common' import { ConnectionID, PacketNumber, St...
the_stack
'use strict' // **Github:** https://github.com/fidm/quic // // **License:** MIT import { debuglog } from 'util' import { Duplex } from 'stream' import { StreamError } from './internal/error' import { MaxStreamReadCacheSize, ReceiveStreamWindow, DefaultMaxReceiveStreamWindowClient, DefaultMaxReceiveStreamWindow...
the_stack
import * as oceanicNext from 'monaco-themes/themes/Oceanic Next.json'; import * as blackboard from 'monaco-themes/themes/Blackboard.json'; import * as cloudsMidnight from 'monaco-themes/themes/Clouds Midnight.json'; import * as merbivore from 'monaco-themes/themes/Merbivore.json'; import * as monokai from 'monaco-theme...
the_stack
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types"; import { Readable } from "stream"; /** * <p> * The operation did not succeed because of an unauthorized access attempt. * </p> */ export interface AccessDeniedException extends __SmithyException,...
the_stack
import React, { ReactNode, useEffect, useState } from 'react'; import styled from 'styled-components'; import { Affix, Row, Select, Typography } from 'antd'; import { useGetDataProfilesLazyQuery } from '../../../../../../graphql/dataset.generated'; import { DatasetProfile, DateInterval } from '../../../../../../types....
the_stack
import { LuaLibImportKind } from "../../../src"; import * as util from "../../util"; test("Supported lua string function", () => { const tsHeader = ` declare global { interface String { upper(): string; } } `; util.testExpression`"test".upper()`.setT...
the_stack
import '../../jest-extensions'; import { from, fromDOMStream, toArray } from 'ix/asynciterable'; import { fromNodeStream } from 'ix/asynciterable/fromnodestream'; import 'ix/Ix.node'; import { util } from 'apache-arrow'; import { Builder } from 'apache-arrow'; import { DataType, Vector, Chunked } from 'apache-arrow'; i...
the_stack
declare function describe(desc: string, f: () => void): void; declare function it(desc: string, f: () => void): void; declare function beforeEach(action: (done: DoneFn) => void, timeout?: number): void; declare function expect(spy: Function): jasmine.Matchers; declare function expect(actual: any): jasmine.Matchers; in...
the_stack
import { stringifyTestCode } from './codegen'; import { Substituter, Syntax, nullLoc, TestCode, eqSourceLocation, compEndPosition, id, replaceVarAssertion, replaceVarExpr } from './javascript'; import { Classes, FreeVars, Heap, Heaps, Locs, P, Vars, not, and } from './logic'; import { Message, MessageException...
the_stack
module BABYLON { /** * Class for the ObservableArray.onArrayChanged observable */ export class ArrayChanged<T> { constructor() { this.action = 0; this.newItems = new Array<{index: number, value: T }>(); this.removedItems = new Array<{ index: number, value:...
the_stack
import { AppointmentModel, FormatterFn, ValidResourceInstance, ValidResource, SelectOption, } from '../index'; /* tslint:disable no-namespace max-line-length */ export namespace AppointmentForm { /** @internal */ export interface ContainerProps { /** A React Ref that should be passed into ref property. */ ...
the_stack
import { Inject, Injectable } from '@angular/core'; import { Observable, Subject, Subscription, from } from 'rxjs'; import { SnotifyToastConfig } from '../interfaces/snotify-toast-config.interface'; import { Snotify } from '../interfaces/snotify.interface'; import { SnotifyTypeType } from '../types/snotify-type.type'; ...
the_stack
import { cancelClient } from ".."; import { //Promise, noderfc_binding, environment, NodeRfcEnvironment, } from "./noderfc-bindings"; // // RfcClient // enum EnumSncQop { DigSig = "1", DigSigEnc = "2", DigSigEncUserAuth = "3", BackendDefault = "8", Maximum = "9", } enum EnumTrace...
the_stack
import { EventEmitter2 } from "eventemitter2"; declare namespace Moleculer { /** * Moleculer uses global.Promise as the default promise library * If you are using a third-party promise library (e.g. Bluebird), you will need to * assign type definitions to use for your promise library. You will need to have a ....
the_stack
import '@aws-cdk/assert-internal/jest'; import { SynthUtils } from '@aws-cdk/assert-internal'; import * as cloudwatch from '@aws-cdk/aws-cloudwatch'; import * as cdk from '@aws-cdk/core'; import * as fc from 'fast-check'; import * as appscaling from '../lib'; import { arbitrary_input_intervals, createScalableTarget } f...
the_stack
import { when } from 'jest-when'; import { initialState } from '../../src/redux/State'; import { cadLog, convertVersionToNumber, createPartialTabInfo, eventListenerActions, extractMainDomain, getAllCookiesForDomain, getContainerExpressionDefault, getHostname, getMatchedExpressions, getSearchResults,...
the_stack
// A '.tsx' file enables JSX support in the TypeScript compiler, // for more information see the following page on the TypeScript wiki: // https://github.com/Microsoft/TypeScript/wiki/JSX import * as React from 'react'; import * as Utility from '../Utility'; import { AppState, UserInfo } from '../States/AppState'; im...
the_stack
import * as vscode from 'vscode' import * as NodePath from 'path' const KeyVditorOptions = 'vditor.options' function debug(...args: any[]) { console.log(...args) } function showError(msg: string) { vscode.window.showErrorMessage(`[markdown-editor] ${msg}`) } export function activate(context: vscode.ExtensionCont...
the_stack
import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** * Manages a Azure recovery vault protection container mapping. A protection container mapping decides how to translate the protection container when a VM is migrated from one region to another. * * ## Example Usage * * ```typ...
the_stack
import type { Context, Plugin } from "graphile-build"; import type { PgType, QueryBuilder, SQL } from "graphile-build-pg"; import type { GraphQLInputFieldConfigMap, GraphQLInputType, GraphQLType, } from "graphql"; import { ConnectionFilterResolver } from "./PgConnectionArgFilterPlugin"; const PgConnectionArgFilt...
the_stack
// Copyright 2018-2021 the oak authors. All rights reserved. MIT license. import { Context } from "./context.ts"; import { serve as defaultServe, serveTLS as defaultServeTls, Status, STATUS_TEXT, } from "./deps.ts"; import { Key, KeyStack } from "./keyStack.ts"; import { compose, Middleware } from "./middlewar...
the_stack
const iconRegistry = new Map<string, string>(); export function addSVGIcon(path: string | string[], svgDataURL: string) { if (path instanceof Array) { for (const p of path) { iconRegistry.set(p, svgDataURL); } } else { iconRegistry.set(path, svgDataURL); } } export function getSVGIcon(path: st...
the_stack
import Canvas = etch.drawing.Canvas; import DisplayObject = etch.drawing.DisplayObject; import DisplayObjectCollection = etch.drawing.DisplayObjectCollection; import IDisplayObject = etch.drawing.IDisplayObject; import Point = minerva.Point; import {AddressBarManager} from './Core/Visual/AddressBarManager'; import {Ani...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * Creates a new Google SQL Database Instance. For more information, see the [official documentation](https://cloud.google.com/sql/), * or the [JSON API](https://clou...
the_stack
import { expect } from '../expect' import { deploy, nuke } from '../../src/infrastructure/index' import { BoosterConfig } from '@boostercloud/framework-types' import { restore, replace, fake } from 'sinon' import { CoreV1Api, KubeConfig, KubernetesObjectApi } from '@kubernetes/client-node' import { DeployManager } from...
the_stack
import React from 'react' import {Meta} from '@storybook/react' import {BaseStyles, Box, ButtonPrimary, ThemeProvider} from '..' import {useAnchoredPosition} from '../hooks' import styled from 'styled-components' import {get} from '../constants' import type {AnchorSide} from '@primer/behaviors' import Portal, {register...
the_stack
import { validateTs } from '@graphql-codegen/testing'; import { parse, GraphQLSchema, buildClientSchema } from 'graphql'; import gql from 'graphql-tag'; import { Types, mergeOutputs } from '@graphql-codegen/plugin-helpers'; import { plugin as tsPlugin } from '@graphql-codegen/typescript'; import { plugin as tsDocuments...
the_stack
import CodeMirror from 'codemirror' import emmet from '@emmetio/codemirror-plugin' import { state } from '@mkenzo_8/puffin' import { EditorClient } from '../../constructors/editorclient' import StaticConfig from 'StaticConfig' import RunningConfig from 'RunningConfig' import isBrowser from '../../utils/is_browser' impo...
the_stack
import { TestContext, assert } from '@aurelia/testing'; import { TaskQueuePriority, QueueTaskOptions, ITask, TaskStatus, TaskQueue } from '@aurelia/runtime'; function createExposedPromise() { let resolve: () => void; let reject: (err: any) => void; const promise = new Promise<void>(function ($resolve, $reject) ...
the_stack
import { BackendType, ENV } from "../environment"; import * as util from "../util"; import * as axis_util from "./axis_util"; import { MathBackend } from "./backends/backend"; import { BackendEngine, ScopeResult } from "./backends/backend_engine"; import * as broadcast_util from "./broadcast_util"; import * as concat_u...
the_stack
class AssemblyDetailPage extends Base.Page { private namespacelistTemplate: HandlebarsTemplateDelegate; private typeBaseListTemplate: HandlebarsTemplateDelegate; private typeBaseTemplates: any = new Object(); private errorsList: Array<any> = new Array<any>(); private popTemplate: string; privat...
the_stack
import template from "@babel/template"; import type * as t from "@babel/types"; import generated from "./helpers-generated"; interface Helper { minVersion: string; ast: () => t.Program; } const helpers: Record<string, Helper> = { __proto__: null, ...generated }; export default helpers; const helper = (minVersio...
the_stack
import { KeyVaultConnectionsGetParameters, KeyVaultConnectionsCreateParameters, KeyVaultConnectionsDeleteParameters, KeyVaultConnectionsListAllParameters, ClassificationRulesGetParameters, ClassificationRulesCreateOrUpdateParameters, ClassificationRulesDeleteParameters, ClassificationRulesListAllParamet...
the_stack
import * as React from 'react' import * as _ from 'underscore' import * as mousetrap from 'mousetrap' import { Meteor } from 'meteor/meteor' import { Translated, translateWithTracker } from '../../lib/ReactMeteorData/react-meteor-data' import { withTranslation } from 'react-i18next' import { Rundown, RundownId } from '...
the_stack
import Storex from '@worldbrain/storex' import { StorageModule, StorageModuleConfig, } from '@worldbrain/storex-pattern-modules' import { COLLECTION_NAMES as TAG_COLLECTION_NAMES } from '@worldbrain/memex-storage/lib/tags/constants' import { COLLECTION_NAMES as ANNOT_COLLECTION_NAMES } from '@worldbrain/memex-s...
the_stack
// ENFORCED (💪) indicates that the field is enforced by the type system, and it should be impossible for any type // assignable to T to fail JSON validation because of constraints that this field introduces. // For example, the required field on objects is ENFORCED because a type assignable to T is guaranteed to conta...
the_stack
import * as converter from "./converter"; import { printQuickInfo } from "./inspect"; let conv: converter.Converter; beforeAll(() => { conv = converter.createConverter(); }); afterAll(() => { if (conv) { conv.close(); } }); describe("inspect", () => { it("no info", () => { const src = ""; const in...
the_stack
import * as rp from 'request-promise'; import { flattenDeploymentOperationError } from './Utils'; interface ManagedService { producerProjectId?: string; serviceName?: string; } interface ListServicesResponse { services?: ManagedService[]; } interface EnableServiceRequest { consumerId?: string; } export defaul...
the_stack
import '../../../styles/gr-a11y-styles'; import '../../../styles/shared-styles'; import '../gr-comment/gr-comment'; import '../../diff/gr-diff/gr-diff'; import '../gr-copy-clipboard/gr-copy-clipboard'; import {css, html, LitElement, PropertyValues} from 'lit'; import {customElement, property, query, queryAll, state} fr...
the_stack
function mode(diffmeta?:diffmeta):string { "use strict"; const pdcomment = function mode_pdcomment():void { const ops:any = prettydiff.sparser.options; let sindex:number = options.source.search(/((\/(\*|\/))|<!--*)\s*prettydiff\.com/), dindex:number = options.diff.search(...
the_stack
import React, { useState, useContext, useEffect } from 'react'; import DeploymentCenterContainerSource from './DeploymentCenterContainerSource'; import { ContainerRegistrySources, DeploymentCenterFieldProps, DeploymentCenterContainerFormData, WorkflowOption, AppType, PublishType, } from '../DeploymentCenter...
the_stack
import { RuleTester } from "eslint" import path from "path" import rule from "../../../lib/rules/prefer-result-array-groups" const tester = new RuleTester({ parserOptions: { ecmaVersion: 2020, sourceType: "module", }, }) tester.run("prefer-result-array-groups", rule as any, { valid: [ ...
the_stack
import { Injectable, Inject, NgZone, EventEmitter } from '@angular/core' import { Observable, Subject } from 'rxjs' import { HotkeyDescription, HotkeyProvider } from '../api/hotkeyProvider' import { KeyEventData, getKeyName, Keystroke, KeyName, getKeystrokeName, metaKeyName, altKeyName } from './hotkeys.util' import { ...
the_stack
import RamlWrapper = require('../artifacts/raml08parserapi') import RamlWrapperImpl = require('../artifacts/raml08parser') import factory = require('../artifacts/raml08factory') import core=require("./parserCore"); import ramlPathMatch = require("../../util/raml-path-match") import hl = require('../highLevelAST'); im...
the_stack
import { Agent } from "https"; import axios from 'axios'; import type {AxiosResponse, AxiosError} from "axios"; import randomIpv6 from "random-ipv6"; import { hasProperty } from "./utils"; import { randomize } from '../config'; import { AlertLevel, isAlert, logAlert, TestingConfig } from "../config.model"; interface...
the_stack
import Vue from 'vue'; import VueRouter from 'vue-router'; // Style import './style.styl'; import init from '../init'; import fuckAdBlock from '../common/scripts/fuck-ad-block'; import composeNotification from '../common/scripts/compose-notification'; import MkHome from './views/home/home.vue'; import MkSelectDrive ...
the_stack
declare module 'moleculer-elasticsearch' { export const actions: { bulk: { handler: any; params: { body: { type: string; }; index: { optional: boolean; type: string; }; type: { optional: boolean; type: string; ...
the_stack
import { ConcreteRequest } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type MyBidsRefetchQueryVariables = {}; export type MyBidsRefetchQueryResponse = { readonly me: { readonly " $fragmentRefs": FragmentRefs<"MyBids_me">; } | null; }; export type MyBidsRefetchQuery = { ...
the_stack
import { ConcreteRequest } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type OrderDetailsTestsQueryVariables = {}; export type OrderDetailsTestsQueryResponse = { readonly commerceOrder: { readonly " $fragmentRefs": FragmentRefs<"OrderDetails_order">; } | null; }; export typ...
the_stack
import { StackFrame } from "error-stack-parser"; import { forkJoin, Observable, of, Subscriber, Subscription } from "rxjs"; import { mapTo } from "rxjs/operators"; import { identify } from "../identify"; import { read } from "../match"; import { hide } from "../operators"; import { Spy } from "../spy-interface"; import...
the_stack
export interface RequestPermissionReq { permissionList: Array<string>; } export interface CheckPermissionReq { permissionList: Array<string>; } export interface statisticsnReq { isAllowed:boolean; } export interface MLBounds { marginTop?: number, marginBottom?: number, marginLeft?:number, marginRight?:num...
the_stack
* This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "@stencil/core/internal"; import { DiscordTimestamp } from "./util"; export namespace Components { interface DiscordAction...
the_stack
module android.widget { import Canvas = android.graphics.Canvas; import Rect = android.graphics.Rect; import Log = android.util.Log; import FocusFinder = android.view.FocusFinder; import KeyEvent = android.view.KeyEvent; import MotionEvent = android.view.MotionEvent; import VelocityTracker = android.view.VelocityTracke...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormAsyncOperation_Information { interface tab_generaltab_Sections { custom: DevKit.Controls.Section; general: DevKit.Controls.Section; systemlinksection: DevKit.Controls.Section; } interface tab_generaltab extends Dev...
the_stack
import { render, act } from '@testing-library/react'; import React, { ReactElement, useEffect } from 'react'; import { renderToString } from 'react-dom/server'; import LooselyLazy, { lazyForPaint, lazyAfterPaint, LazySuspense, useLazyPhase, MODE, } from '../src'; import { PHASE } from '../src/constants'; imp...
the_stack
import Vue from 'vue'; import Vuex from 'vuex'; import chai, { expect } from 'chai'; import spies from 'chai-spies'; import createMultiTabState from '../src/index'; chai.use(spies); Vue.use(Vuex); // Do not show tips Vue.config.productionTip = false; describe('vuex-multi-tab-state basic tests', () => { const warn...
the_stack
export interface TableServiceError { /** * The error message. */ message?: string; } /** * The retention policy. */ export interface RetentionPolicy { /** * Indicates whether a retention policy is enabled for the service. */ enabled: boolean; /** * Indicates the number of days that metrics o...
the_stack
import { Observable } from 'rxjs'; import { Writer, Reader } from 'protobufjs/minimal'; export interface TenantSubscription { /** * @inject_tag: bson:"_id,omitempty" */ id: string; /** * @inject_tag: bson:"tenantId,omitempty" */ tenantId: string; /** * @inject_tag: bson:"status,omitempty" ...
the_stack
import React from 'react'; /** * 'JSON path' from root of a state object to a nested property. * Return type of [StateMethod.path](#readonly-path). * * For example, an object `{ a: [{ b: 1 }, { 1000: 'value' }, '3rd'] }`, * has got the following paths pointing to existing properties: * * - `[]` * - `['a']` * -...
the_stack
import {AjaxPoller} from "helpers/ajax_poller"; import {ApiResult} from "helpers/api_request_builder"; import {pipeline} from "helpers/utils"; import _ from "lodash"; import m from "mithril"; import Stream from "mithril/stream"; import {AbstractObjCache, ObjectCache} from "models/base/cache"; import {ConfigReposCRUD} f...
the_stack
import { promises as fs } from 'fs'; import { tmpdir } from 'os'; import { dirname, join, normalize, posix, sep } from 'path'; import { changeErrorMessage } from '../utils'; import { nodeResolve } from './node-resolve'; const createdPaths: string[] = []; // Cleanup created files afterAll(async () => { await Promise...
the_stack
import * as coreClient from "@azure/core-client"; export type RoleManagementPolicyRuleUnion = | RoleManagementPolicyRule | RoleManagementPolicyApprovalRule | RoleManagementPolicyAuthenticationContextRule | RoleManagementPolicyEnablementRule | RoleManagementPolicyExpirationRule | RoleManagementPolicyNotific...
the_stack
import { assert } from 'chai'; import { addStage, simulateMouseDown, simulateMouseMove, simulateMouseUp, createCanvas, isBrowser, isNode, compareLayerAndCanvas, compareLayers, loadImage, Konva, } from './test-utils'; describe('Shape', function () { // ==========================================...
the_stack
declare const enum TWTRAPIErrorCode { CouldNotAuthenticate = 32, PageNotExist = 34, NotAuthorizedForEndpoint = 37, InvalidParameter = 44, AccountSuspended = 64, APIVersionRetired = 68, RateLimitExceeded = 88, InvalidOrExpiredToken = 89, SSLInvalid = 92, OverCapacity = 130, InternalError = 131, C...
the_stack
import Bot from './Bot'; import log from '../lib/logger'; type Job = { type: 'smelt' | 'combine' | 'use' | 'delete' | 'sort'; defindex?: number; assetid?: string; sortType?: number; callback?: (err?: Error) => void; }; export = class TF2GC { private readonly bot: Bot; private processingQ...
the_stack
import { Component, OnInit, Input, ViewEncapsulation, ViewChild, AfterViewInit, ElementRef, EventEmitter, Output, OnDestroy } from '@angular/core'; import { StixObject } from 'src/app/classes/stix/stix-object'; import {animate, style, transition, trigger} from '@angular/animations'; import {MatSort} from '@angular/mate...
the_stack
import { assert } from "chai"; import UrlRestClient, { UrlRestClientRestClient } from "./generated/urlRest/src"; import { UriColor } from "./generated/url/src"; describe("Integration tests for UrlRest", () => { let client: UrlRestClientRestClient; beforeEach(() => { client = UrlRestClient({ allowInsec...
the_stack
import { ICarouselConfigProps } from '..'; import { setCss } from '../../../utility/dom/setCss'; import { removeClass } from '../../../utility/dom/removeClass'; import { addClass } from '../../../utility/dom/addClass'; import { getEle } from '../../../utility/dom/getEle'; import { getAllEle } from '../../../utilit...
the_stack
import { CRMColumnElement } from '../edit-crm/edit-crm'; import { Polymer } from '../../../../tools/definitions/polymer'; import { I18NKeys } from '../../../_locales/i18n-keys'; namespace EditCrmItemElement { export const editCrmItemProperties: { item: CRM.Node; expanded: boolean; shadow: boolean; itemName: s...
the_stack
import { CloudWatchLogsClient, CreateLogGroupCommand, CreateLogGroupCommandInput, CreateLogGroupCommandOutput, CreateLogStreamCommand, CreateLogStreamCommandInput, CreateLogStreamCommandOutput, DescribeLogGroupsCommand, DescribeLogGroupsCommandInput, DescribeLogGroupsCommandOutput, DescribeLogStreamsCommand,...
the_stack
import { Signer, Utils, Wallet, XrplNetwork } from 'xpring-common-js' import XrpUtils from './shared/xrp-utils' import GrpcNetworkClient from './network-clients/grpc-xrp-network-client' import GrpcNetworkClientWeb from './network-clients/grpc-xrp-network-client.web' import { XRPDropsAmount } from './Generated/web/org/x...
the_stack
import { getPropertyValue, isExtrudedPolygonTechnique, MapEnv, Technique } from "@here/harp-datasource-protocol"; import { TileKey } from "@here/harp-geoutils"; import { ExtrusionFeature, ExtrusionFeatureDefs } from "@here/harp-materials"; import { MathUtils } from "@here/harp-utils"; import { DataSour...
the_stack
interface ArtyomWindow extends Window { webkitSpeechRecognition: any; SpeechRecognition: any; SpeechSynthesisUtterance: any; } interface SpeechRecognition extends EventTarget { grammars: SpeechGrammarList; lang: string; continuous: boolean; interimResults: boolean; maxAlternatives: numb...
the_stack
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // -----------------------------------------------------------...
the_stack
import { MersenneTwister19937 } from "../engine/MersenneTwister19937"; import { Distribution, Engine } from "../types"; import { int32 } from "./int32"; import { int53 } from "./int53"; import { int53Full } from "./int53Full"; import { integer } from "./integer"; import { uint32 } from "./uint32"; import { uint53 } fro...
the_stack
import { Workbook } from './../src/workbook'; import { Utils } from './../spec/utils.spec'; describe('Demo', () => { it('All-Features', (done) => { let book: Workbook = new Workbook({ builtInProperties: { author: 'Rex', comments: 'Listed the development team membe...
the_stack
"use strict"; // Typescript imports import Assert = require("./assert"); import TestFramework = require("./test-framework"); import Blok = require("../blok"); import BlokUserSettings = require("../blok-user-settings"); import BlokContainer = require("../blok-container"); import BlokContainerUserSettings = require("../...
the_stack
import { take, skip, startWith, map, tap, filter, expand, pluck, switchMap, distinctUntilChanged, shareReplay, takeUntil, delay, debounceTime } from 'rxjs/operators'; import { where, orderBy, startAfter, endBefore, snap, pageReverse, onSnapshot, docs } from '@wizdm/connect/database/collection/operators'; import { Compo...
the_stack
export = dyo export as namespace dyo declare namespace dyo { type Key = string | number | symbol type Type = Component | PromiseLike<any> | string | null type Collection = any[] | any type Properties<Props> = Readonly<Props & Attributes & {ref?: Ref, [props: string]: any}> type Ref<Value = any> = RefObject<Value...
the_stack
import { BigNumber, ethers } from 'ethers'; import { artifacts } from 'hardhat'; import semver from 'semver'; import { bigNumberToHex, fromHexString, remove0x } from './hex-utils'; // Represents the JSON objects outputted by the Solidity compiler that describe the structure of // state within the contract. See // http...
the_stack
import { forwardRef, useEffect, useImperativeHandle, useState } from 'react'; import { Form, Tabs, message, Modal, Spin } from 'antd'; import { history } from 'umi'; import { cloneDeep } from 'lodash'; import TestRestIcon from '@/components/testResultIcon'; import MultiVersionComp from './components/multiVerComp'; impo...
the_stack
namespace analysis { import CallNode = data.CallNode; import SolverCall = data.SolverCall; type AnalysisCallback = (d: ProfileData) => void; type ZoomCallback = (d: CallNode) => void; export interface ProfileData { root: CallNode; solverCalls: SolverCall[]; rows: AnalysisRo...
the_stack
import * as cp from "child_process"; import { NodeConnectionRequestMessage, NodeConnectionResponseMessage } from "../types/NodeConnectionMessages"; import { NodeConnectionInterfaceSpec, NodeConnectionDomainSpec } from "../types/NodeConnectionInterfaceSpec"; define((require, exports, module) => { const EventDispat...
the_stack
import { IStorage } from "../interfaces/IStorage"; import { ContractMetadata } from "./contract-metadata"; import { IERC20, IERC20Metadata, SignatureDrop } from "contracts"; import { BigNumber, constants, ethers } from "ethers"; import { isNativeToken } from "../../common/currency"; import { ContractWrapper } from "./c...
the_stack
import { Vector3, Quaternion, Matrix4, Matrix3, Object3D } from "three"; import * as helpers from "@ff/three/helpers"; import { Node, types } from "@ff/graph/Component"; import { IPointerEvent } from "@ff/scene/RenderView"; import Annotation from "../models/Annotation"; import NVNode from "../nodes/NVNode"; impor...
the_stack