text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import * as tf from '@tensorflow/tfjs-core'; import {fetch, performance} from '../core/compat/global'; import * as logging from '../core/logging'; import * as sequences from '../core/sequences'; import {INoteSequence} from '../protobuf/index'; import {IS_IOS, NUM_PITCHES, pianorollToSequence, sequenceToPianoroll} fro...
the_stack
import download = require('download'); import * as fs from 'fs-extra'; import * as path from 'path'; import { Constants } from '../../Constants'; import { getWorkspaceRoot, userSettings } from '../../helpers'; import { Output } from '../../Output'; import { ContractService } from '../../services'; import { Telemetry } ...
the_stack
namespace esp32 { // pylint: disable=bad-whitespace const _SET_NET_CMD = 0x10 const _SET_PASSPHRASE_CMD = 0x11 const _SET_DEBUG_CMD = 0x1A const _GET_TEMP_CMD = 0x1B const _GET_CONN_STATUS_CMD = 0x20 const _GET_IPADDR_CMD = 0x21 const _GET_MACADDR_CMD = 0x22 const _GET_CURR_SSID_CMD ...
the_stack
import { loggerSpy } from '../testhelpers/loggerSpy'; import { importSingleText } from '../testhelpers/importSingleText'; import { assertAddElementRule, assertAssignmentRule, assertBindingRule, assertCardRule, assertCaretValueRule, assertContainsRule, assertFlagRule, assertInsertRule, assertObeysRule,...
the_stack
import L = require("leaflet"); interface TimelineSliderControlOptions extends L.ControlOptions { /** * Minimum time, in ms, for the playback to take. Will almost certainly * actually take at least a bit longer; after each frame, the next one * displays in `duration/steps` ms, so each frame really takes fram...
the_stack
import { ensureError, formatUserError, MultiError, notNull, sleep, toArray, UserError } from "@adpt/utils"; import AsyncLock from "async-lock"; import db from "debug"; import { alg, Graph } from "graphlib"; import { flatten, isError, isObject } from "lodash"; import PQueue from "p-queue"; import pTimeout from "p-timeou...
the_stack
import { DTGComponentPropertySchema } from '../typing'; const AlignConfigs = { 'ui:type': 'radio', 'ui:props': { options: [ { label: '左对齐', value: 'flex-start' }, { label: '右对齐', value: 'flex-end' }, { label: '居中对齐', value: 'center' }, { label: '两端对齐', value: 'space-between' }, { ...
the_stack
import { Utils } from '../utils'; import { remoteCamera } from '../../src/private/remoteCamera'; import { _initialize, _uninitialize } from '../../src/public/publicAPIs'; import { SdkError } from '../../src/public/interfaces'; describe('remoteCamera', () => { const utils = new Utils(); const capableParticipantsMoc...
the_stack
import path from "path"; import { isInteractive as globaIsInteractive } from "@best/utils"; import chalk from "chalk"; import trimPath from "./utils/trim-path"; import countEOL from "./utils/count-eod"; import { ProxiedStream, proxyStream } from "./utils/proxy-stream"; import { BenchmarkRuntimeConfig, RunnerStr...
the_stack
import * as path from "path"; import * as shelljs from "shelljs"; import * as semver from "semver"; import * as constants from "../constants"; import { IPluginsService, IPreparePluginNativeCodeData, IPluginData, IPackageJsonDepedenciesResult, IBasePluginData, INodeModuleData, } from "../definitions/plugins"; impo...
the_stack
module Cats.Gui.Editor { var HashHandler = ace.require('ace/keyboard/hash_handler').HashHandler; /** * Case insensitive sorting algoritme */ function caseInsensitiveSort(a: { name: string; }, b: { name: string; }) { if (a.name.toLowerCase() < b.name.toLowerCase()) return -1; ...
the_stack
import { CodeModel, ObjectSchema, isObjectSchema, SchemaType, Property, ParameterLocation, Parameter, VirtualParameter, getAllProperties, ImplementationLocation, Request, } from "@autorest/codemodel"; import { Session } from "@autorest/extension-base"; import { ModelerFourOptions } from "../modele...
the_stack
import 'core-js/es/number/is-integer'; // eslint-disable-next-line max-classes-per-file import GhostContentAPI from '@tryghost/content-api'; const fuzzysort = require('fuzzysort'); /** * Element.closest() polyfill * https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill */ if (!Element.prototyp...
the_stack
import { MicroSentryPlugin } from '../models/plugin'; import { BrowserMicroSentryClient } from '../services/browser-micro-sentry-client'; import { fill } from '../utils/fill'; import { Severity } from '@micro-sentry/core'; import { parseUrl } from '../utils/parse-url'; import { getFetchMethod, getFetchUrl, suppor...
the_stack
import { render } from '@testing-library/react'; import SEO from '../index'; import React from 'react'; jest.mock('next/head', () => { return { __esModule: true, default: ({ children }: { children: React.ReactNode }) => <>{children}</> }; }); function checkHavingSameKeys( elems: NodeListOf<HTMLElement |...
the_stack
import { expect } from 'chai'; import { CalcMutationsOperator, Field, Model, Severity, TypeKind } from '../../../src/model'; import { expectSingleErrorToInclude, expectSingleWarningToInclude, expectToBeValid, validate } from './validation-utils'; describe('Field', () => { const model = new Model({ ...
the_stack
import { Array1D, Array4D, CostReduction, FeedEntry, Graph, InCPUMemoryShuffledInputProviderBuilder, InMemoryDataset, MetricReduction, NDArray, NDArrayInitializer, NDArrayMathGPU, Optimizer, Session, Scalar, SGDOptimizer, Tensor, util, VarianceScalingInitializer, ZerosInitializer, } from...
the_stack
import type Events from 'events' import type tty from 'tty' import throttle from 'lodash/throttle' import type { Prompt } from 'enquirer' import ansi from 'enquirer/lib/ansi' import AutoComplete from 'enquirer/lib/prompts/autocomplete' import Select from 'enquirer/lib/prompts/select' import signale from './signale' e...
the_stack
import { ClientFeatureRepository, EdgeFeatureHubConfig, EdgeService, FeatureState, FeatureValueType, RolloutStrategy, RolloutStrategyAttribute, RolloutStrategyAttributeConditional, RolloutStrategyFieldType, SSEResultState } from '../app'; import { expect } from 'chai'; import { Substitute } from '@f...
the_stack
import Backbone from "backbone" import { keys, last } from "lodash" import { fabricate } from "@artsy/antigravity" const { CurrentUser } = require("../../lib/current_user") describe("CurrentUser", () => { let user beforeEach(() => { Backbone.sync = jest.fn() user = new CurrentUser(fabricate("user")) }) ...
the_stack
import React, { Fragment, useEffect } from 'react'; import { makeStyles, Theme, createStyles, Accordion as MuiAccordion, Grid, TextField, withStyles } from '@material-ui/core'; import MuiAccordionSummary from '@material-ui/core/AccordionSummary'; import MuiAccordionDetails from '@material-ui/core/AccordionDetails'; imp...
the_stack
'use strict'; import {Color} from 'vs/base/common/color'; import * as assert from 'assert'; suite('Color', () => { test('rgba2hsla', function () { assert.deepEqual({ h: 0, s: 0, l: 0, a: 1 }, Color.fromRGBA({ r: 0, g: 0, b: 0, a: 1 }).toHSLA()); assert.deepEqual({ h: 0, s: 0, l: 1, a: 1 }, Color.fromRGBA({ r: 2...
the_stack
import { Inject, Injectable, isDevMode, OnDestroy, Optional } from '@angular/core'; import { Params } from '@angular/router'; import { EMPTY, forkJoin, from, Observable, Subject, zip } from 'rxjs'; import { catchError, concatMap, debounceTime, distinctUntilChanged, filter, map, startWith, ...
the_stack
import { TextMetrics, TextStyle } from '@pixi/text'; import { expect } from 'chai'; /** * Fonts render slightly differently between platforms so tests that depend on a specific * widths or breaking of words may not be cross-platform */ /* eslint-disable no-multi-str */ const longText = 'Sed ut perspiciatis unde om...
the_stack
import * as path from "path"; import * as pulumi from "@pulumi/pulumi"; import * as aws from "@pulumi/aws"; //@ts-ignore import { createInstallationZip } from "@webiny/api-page-builder/installation"; import { defineAppModule, PulumiApp, PulumiAppModule } from "@webiny/pulumi-sdk"; import { StorageOutput, VpcConfig } f...
the_stack
import { Component, OnInit, ViewChild, ElementRef, NgZone, Input } from '@angular/core'; import { CommunicationService } from '../communication.service'; import { BehaviorSubject } from 'rxjs' import {MatInputModule} from '@angular/material/input'; import {MatFormFieldModule} from '@angular/material/form-field'; import...
the_stack
import { ErrorConstant } from '@remirror/core-constants'; import { assertGet, entries, invariant, isFunction, isPromise, isString, } from '@remirror/core-helpers'; import type { AttributesProps, CommandFunction, CommandFunctionProps, FromToProps, MarkType, MarkTypeProps, PrimitiveSelection, ...
the_stack
import * as React from "react" import * as ReactDOM from "react-dom" import * as Immutable from "immutable" import * as Option from "./option" import {never} from './combinators' import {Route, Url} from './router' export type CmdCommon<A> = { cont:Cont<A>, context:()=>Context, key:string, debug_info:() => string } ex...
the_stack
import isChar from './is_char_in_unicode_block'; export function allowsIdeographicBreaking(chars: string) { for (const char of chars) { if (!charAllowsIdeographicBreaking(char.charCodeAt(0))) return false; } return true; } export function allowsVerticalWritingMode(chars: string) { for (const c...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/networkExperimentProfilesMappers"; import * as Parameters from "../models/parameters"; import { FrontDoorManagementClientContext } from "../frontD...
the_stack
import { DataColumnDescriptor, DataColumnList } from './data_column'; import { DataRow } from './data_row'; import { DataLoader } from './data_loader'; import { DataType } from '../types/data_type'; import { utils } from '../utils/utils'; export interface EasyDataTableOptions { chunkSize?: number; elas...
the_stack
import Action from "@tasit/action"; import GnosisSafe from "./GnosisSafe"; import Account from "@tasit/account"; import TasitContracts from "@tasit/contracts"; import helpers from "@tasit/test-helpers"; const { standards } = Action; const { ERC20, ERC721 } = standards; const { constants, mineBlocks, accounts, ...
the_stack
export const KEY_CANCEL = 3; export const KEY_HELP = 6; export const KEY_BACK_SPACE = 8; export const KEY_TAB = 9; export const KEY_CLEAR = 12; export const KEY_RETURN = 13; export const KEY_SHIFT = 16; export const KEY_CONTROL = 17; export const KEY_ALT = 18; export const KEY_PAUSE = 19; export const KEY_CAPS_LOCK = 2...
the_stack
window.CRMLoaded = window.CRMLoaded || { listener: null, register: (fn) => { window.CRMLoaded.listener = fn; } } type StyleString = Extract<keyof CSSStyleDeclaration, string>; window.CRMLoaded.register(() => { //Because of a chrome bug that causes it to freeze // when handling at least this regex string // /(...
the_stack
import { Electronic } from '../base'; import { LinePath } from './path'; import { LineData, LinePin, LinePinStatus, LineStructuredData } from './types'; import { ElectronicKind, Context } from '../types'; import { debug } from '@circuit/debug'; import { MarkNodeKind, MarkMapNode, Label } from '@circuit/map'; impo...
the_stack
import { Seq } from "../src/Seq"; import { LinkedList } from "../src/LinkedList"; import { Vector } from "../src/Vector"; import { HashMap } from "../src/HashMap"; import { HashSet } from "../src/HashSet"; import { Stream } from "../src/Stream"; import { Option } from "../src/Option"; import { Predicate } from "../src/...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/privateEndpointConnectionsMappers"; import * as Parameters from "../models/parameters"; import { KeyVaultManagementClientContext } from "../keyVau...
the_stack
import * as ts from "typescript"; import * as lua from "../../../LuaAST"; import { cast, assertNever } from "../../../utils"; import { TransformationContext } from "../../context"; import { transformInPrecedingStatementScope } from "../../utils/preceding-statements"; import { transformBinaryOperation } from "../binary-...
the_stack
namespace PE.Battle { interface BattlerEffects { AquaRing?: boolean; Attract?: number; BatonPass?: boolean; Bide?: number; BideDamage?: number; BideTarget?: number; Charge?: number; /** The move id lock by choice band */ ChoiceBand?: MOVEDEX; Confusion?: number; Counter?: n...
the_stack
import * as React from 'react' import {CSSProperties} from 'react' import {Button, Divider, Input, LinearProgress, Typography, Box} from '@material-ui/core' import Alert, {Color as AlertColor} from '@material-ui/lab/Alert' import Link from '../components/link' import Autocomplete from '../keys/autocomplete' import ...
the_stack
import { XrplNetwork, Wallet } from 'xpring-common-js' import { Flags, LimitAmount, Amount, TransferRate, Destination, TakerPays, QualityIn, QualityOut, } from './Generated/web/org/xrpl/rpc/v1/common_pb' import { AccountAddress } from './Generated/web/org/xrpl/rpc/v1/account_pb' import { Currency, ...
the_stack
const {assert} = chai; import * as SDK from '../../../../../front_end/core/sdk/sdk.js'; describe('RemoteObject', () => { describe('fromLocalObject', () => { it('can handle undefined', () => { const remoteObject = SDK.RemoteObject.RemoteObject.fromLocalObject(undefined); assert.deepEqual(remoteObjec...
the_stack
import IAccountDataStore from "../../common/IAccountDataStore"; import ILogger from "../../common/ILogger"; import BlobStorageContext from "../context/BlobStorageContext"; import StorageErrorFactory from "../errors/StorageErrorFactory"; import { AccessPolicy, BlobType } from "../generated/artifacts/models"; import Oper...
the_stack
/* * --------------------------------------------------------- * Copyright(C) Microsoft Corporation. All rights reserved. * --------------------------------------------------------- * * --------------------------------------------------------- * Generated file, DO NOT EDIT * -----------------------------...
the_stack
import { untracked } from "mobx"; import { Topic, Partition, Broker, ConfigEntry, BrokerConfig } from "../../../../state/restInterfaces"; import { clone, toJson } from "../../../../utils/jsonUtils"; // Requirements: // 1. Each replica must be on a different broker (unless replicationFactor < brokerCount makes it impos...
the_stack
import * as jsonschema from "jsonschema"; import { Inputs, OptionItem } from "../types"; export type ValidateFunc<T> = ( input: T, inputs?: Inputs ) => string | undefined | Promise<string | undefined>; /** * Validation for Any Instance Type * JSON Schema Validation reference: http://json-schema.org/draft/2019-0...
the_stack
export = SystemJSLoader; export as namespace SystemJSLoader; declare global { const SystemJS: typeof SystemJSLoader; /** * @deprecated use SystemJS https://github.com/systemjs/systemjs/releases/tag/0.19.10 */ const System: typeof SystemJSLoader; const __moduleName: string; } declare const ...
the_stack
/// <reference path="../../elements.d.ts" /> import { EditPage } from '../../elements'; import { Polymer } from '../../../../tools/definitions/polymer'; import { I18NKeys } from '../../../_locales/i18n-keys'; declare const browserAPI: browserAPI; namespace CrmEditPageElement { export const crmEditPageProperties: {...
the_stack
import BigNumber from 'bignumber.js'; import { isAddress } from '@parity/abi/lib/util/address'; import { FilterOptions, Options } from '../types'; import { inAddress, inAddresses, inBlockNumber, inData, inFilter, inHash, inHex, inNumber10, inNumber16, inOptions, inTraceType, inDeriveHash, inD...
the_stack
import * as chai from 'chai'; import * as sinon from 'sinon'; import AudioVideoController from '../../src/audiovideocontroller/AudioVideoController'; import AudioVideoControllerState from '../../src/audiovideocontroller/AudioVideoControllerState'; import NoOpAudioVideoController from '../../src/audiovideocontroller/No...
the_stack
import * as React from 'react'; import * as ReactDOM from 'react-dom'; import assert from '../../common/assert'; import { Types } from '../../common/Interfaces'; import * as _ from './../utils/lodashMini'; function getPosition(el: HTMLElement): { left: number; top: number } { return { left: el.offsetLeft...
the_stack
import { DiffSide, ViewedState } from '../common/comment'; import { ForkDetails } from './githubRepository'; export interface MergedEvent { __typename: string; id: string; databaseId: number; actor: { login: string; avatarUrl: string; url: string; }; createdAt: string; mergeRef: { name: string; }; com...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/frontDoorsMappers"; import * as Parameters from "../models/parameters"; import { FrontDoorManagementClientContext } from "../frontDoorManagementCl...
the_stack
import {Branch, BranchEl, BranchHandler, LeafEl, NotebookList, NotebookListContextMenu} from "./notebooklist"; import {setProperty, StateHandler} from "../../state"; import {ServerMessageDispatcher} from "../../messaging/dispatcher"; import {fireEvent, queryByText, waitFor} from "@testing-library/dom"; import * as mess...
the_stack
import { useState, useEffect, useRef } from 'react' import CSSModules from 'react-css-modules' import styles from '../CreateWallet.scss' import reducers from 'redux/core/reducers' import { FormattedMessage, injectIntl } from 'react-intl' import { isMobile } from 'react-device-detect' import actions from 'redux/action...
the_stack
import { leftPadString } from '../utils/data'; import BitCore from 'bitcore-lib'; import Mnemonic from 'bitcore-mnemonic'; import Nacl from 'tweetnacl'; import NaclUtil from 'tweetnacl-util'; import ScryptAsync from 'scrypt-async'; import * as filecoin_signer from '@zondax/filecoin-signing-tools'; export class Keystor...
the_stack
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types"; /** * <p>Information about the <code>AccessLog</code> attribute.</p> */ export interface AccessLog { /** * <p>Specifies whether access logs are enabled for the load balancer.</p> */ Enabled: boolean | ...
the_stack
import { expect } from "chai"; import { IModelConnection, SnapshotConnection } from "@itwin/core-frontend"; import { ChildNodeSpecificationTypes, InstanceLabelOverrideValueSpecificationType, Ruleset, RuleTypes, VariableValueTypes, } from "@itwin/presentation-common"; import { Presentation } from "@itwin/presentation-...
the_stack
// IMPORTANT // This file was generated by https://github.com/Bolisov/google-api-typings-generator. Please do not edit it manually. // In case of any problems please post issue to https://github.com/Bolisov/google-api-typings-generator // Generated from: https://logging.googleapis.com/$discovery/rest?version=v2 /// <r...
the_stack
import { ChainId } from '@0x/contract-addresses'; import { BlockParam, ContractAddresses, GethCallOverrides } from '@0x/contract-wrappers'; import { FillQuoteTransformerOrderType, LimitOrderFields, RfqOrder, RfqOrderFields, Signature, } from '@0x/protocol-utils'; import { TakerRequestQueryParamsUnne...
the_stack
import { Log } from '../util/log'; import { EventEmitter } from 'events'; import { ExceptionBreakpoints, IThreadActorProxy } from '../firefox/actorProxy/thread'; import { ConsoleActorProxy } from '../firefox/actorProxy/console'; import { ThreadPauseCoordinator, PauseType } from './threadPause'; import { DelayedTask } f...
the_stack
import { createTaskObserver, sleep, TaskObserver, TaskObserversUnknown, TaskState, } from "@adpt/utils"; import * as fs from "fs-extra"; import { last } from "lodash"; import * as path from "path"; import should from "should"; import * as sinon from "sinon"; import { createMockLogger, mochaTmpdir, ...
the_stack
export interface WorkerContextMethods { /** Prevents requests from failing due to an unhandled exception thrown by the Worker, causing it instead to “fail open”. * * Instead of returning an error response, the runtime will proxy the request to the origin server as though the Worker was never invoked. */...
the_stack
import React from 'react'; import { act } from 'react-dom/test-utils'; import classNames from 'classnames'; import { mount } from './wrapper'; import type { CSSMotionProps } from '../src/CSSMotion'; import RefCSSMotion, { genCSSMotion } from '../src/CSSMotion'; import ReactDOM from 'react-dom'; describe('CSSMotion', (...
the_stack
* @module OrbitGT */ //package orbitgt.pointcloud.model; type int8 = number; type int16 = number; type int32 = number; type float32 = number; type float64 = number; import { ABuffer } from "../../system/buffer/ABuffer"; import { LittleEndian } from "../../system/buffer/LittleEndian"; import { InStream } from "../.....
the_stack
import * as THREE from 'three'; import React, { useEffect, useState, useRef } from 'react'; import SampleType from '../../game/data/sampleType'; import { GetInventoryMapping, GetInventoryRows, GetInventoryColumns, GetItemResourceIndex, MapItem, CanUseItem, } from '../../game/data/inventory'; i...
the_stack
import { AddonModAssignAssign, AddonModAssignSubmission, AddonModAssignPlugin, AddonModAssign, } from '@addons/mod/assign/services/assign'; import { AddonModAssignHelper } from '@addons/mod/assign/services/assign-helper'; import { AddonModAssignOffline, AddonModAssignSubmissionsDBRecordFormatted } from ...
the_stack
import * as assert from 'assert'; import { URI } from 'vs/base/common/uri'; import { IEditorService } from 'vs/workbench/services/editor/common/editorService'; import { EditorPart } from 'vs/workbench/browser/parts/editor/editorPart'; import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroup...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as Mappers from "../artifacts/mappers"; import Context, { IHandlerParameters } from "../Context"; import IRequest from "../IRequest"; import IResponse from "../IResponse"; import ILogger from "./ILogger"; import { parseXML, stringifyXML } from "./xml"; export decl...
the_stack
import type { Dictionary, EntityMetadata, EntityProperty, NamingStrategy } from '@mikro-orm/core'; import { Cascade, DecimalType, EntitySchema, ReferenceType, t, Utils } from '@mikro-orm/core'; import type { SchemaHelper } from './SchemaHelper'; import type { Column, ForeignKey, Index } from '../typings'; import type {...
the_stack
import {DataModels, IManagementApiClient, Messages} from '@process-engine/management_api_contracts'; import {IIdentity} from '@essential-projects/iam_contracts'; import {Subscription} from '@essential-projects/event_aggregator_contracts'; import {NotFoundError} from '@essential-projects/errors_ts'; import {Correlation...
the_stack
import { hasSortKey, Metadata } from '../decorator/metadata/metadata' import { metadataForModel } from '../decorator/metadata/metadata-for-model.function' import { hasType, Key, PropertyMetadata } from '../decorator/metadata/property-metadata.model' import { createOptModelLogger } from '../logger/logger' import { Model...
the_stack
import Layout from "../../../components/Layout"; import Link from "next/link"; import Header from "../../../components/Header"; import { TrashIcon, PencilAltIcon, DocumentAddIcon, } from "@heroicons/react/outline"; import { EmptyState } from "../../../components/EmptyState"; import UserGroup, { UserGroups } from ...
the_stack
import 'reflect-metadata' import { join } from 'path' import { MarkOptional } from 'ts-essentials' import { Filesystem } from '@poppinss/dev-utils' import { LucidModel } from '@ioc:Adonis/Lucid/Orm' import { RedisManagerContract } from '@ioc:Adonis/Addons/Redis' import { HttpContextContract } from '@ioc:Adonis/Core/Htt...
the_stack
import * as path from 'path'; import sinon from 'sinon'; import tap from 'tap'; import * as dbutils from '../src/db/utils'; import controllers from '../src/index'; import readConfig from '../src/read-config'; import { IdPConfig, JacksonOption } from '../src/typings'; import { saml_config } from './fixture'; let apiCon...
the_stack
declare let sanitizeHtml; // This private has technically been deprecated, but is present in all major browsers as of 2/12/14 and offers // the best perf for the UTF byte manipulation we need for truncation and byte size estimation. // DO NOT USE IT WITHOUT CHECKING IF IT EXISTS -- in case browser vendors actually rem...
the_stack
import SamPlugin from "../index"; import fs from "fs"; import path from "path"; jest.mock("fs"); jest.mock("path"); const samTemplate = ` AWSTemplateFormatVersion: "2010-09-09" Transform: AWS::Serverless-2016-10-31 Globals: Function: Runtime: nodejs10.x Resources: MyLambda: Type: AWS::Serverless::Functi...
the_stack
import { dom, h } from "../../src/index"; import { expect } from "../test-utilities"; describe("dom", () => { describe("children", () => { it("can remove childnodes", () => { let projection = dom.create( h("div", [h("span", { key: 1 }), h("span", { key: 2 }), h("span", { key: 3 })]) ); ...
the_stack
import { TimePicker } from "../../src/timepicker/timepicker"; import { MaskedDateTime } from '../../src/maskbase/masked-date-time'; import { createElement,L10n, Ajax, loadCldr} from '@syncfusion/ej2-base'; function loadCultureFiles(name: string, base?: boolean): void { let files: string[] = !base ? ['ca-g...
the_stack
import { URL } from 'url'; import http from 'https'; import { ChannelWrapper } from 'amqp-connection-manager'; import { ConsumeMessage } from 'amqplib'; import { logger } from '@lagoon/commons/dist/local-logging'; import { getRocketChatInfoForProject } from '@lagoon/commons/dist/api'; import { notificationIntToContentT...
the_stack
import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; export type Maybe<T> = T | null; export type InputMaybe<T> = Maybe<T>; export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }; export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe...
the_stack
import './task.css'; import { ResourceData, ResourceVersionData, Versions } from '../../tekton-hub-client'; import { createDiv, createSpan } from '../common/dom-util'; import { BaseWidget } from '../common/widget'; import { VSMessage } from '../common/vscode-api'; import * as hljs from 'highlight.js/lib/core'; import {...
the_stack
import type * as Platform from '../../core/platform/platform.js'; import * as i18n from '../../core/i18n/i18n.js'; import * as SDK from '../../core/sdk/sdk.js'; import * as LitHtml from '../../ui/lit-html/lit-html.js'; import * as ReportView from '../../ui/components/report_view/report_view.js'; import * as UI from '.....
the_stack
import generate from '@babel/generator'; import template from '@babel/template'; import * as t from '@babel/types'; import type { NodePath, Visitor } from '@babel/traverse'; import traverse from '@babel/traverse'; import { unique } from '@compiled/utils'; import { transformCss } from '@compiled/css'; import isPropValid...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/workspaceCollectionsMappers"; import * as Parameters from "../models/parameters"; import { PowerBIEmbeddedManagementClientContext } from "../power...
the_stack
import { PivotFieldList } from '../../src/pivotfieldlist/base/field-list'; import { createElement, remove, isNullOrUndefined } from '@syncfusion/ej2-base'; import { pivot_dataset } from '../base/datasource.spec'; import { IDataSet } from '../../src/base/engine'; import { PivotCommon } from '../../src/common/base/pivot-...
the_stack
import { VariantProps } from "@stitches/core"; import { css } from "../../styled-system/stitches.config"; import { SystemStyleObject } from "../../styled-system/types"; /* ------------------------------------------------------------------------------------------------- * Tabs * -------------------------------------...
the_stack
import { updateSituation } from 'Actions/actions' import Aide from 'Components/conversation/Aide' import RuleInput from 'Components/conversation/RuleInput' import { Condition } from 'Components/EngineValue' import PageHeader from 'Components/PageHeader' import PreviousSimulationBanner from 'Components/PreviousSimulatio...
the_stack
import { expect } from 'chai'; import { Observable, NEVER, of, ObjectUnsubscribedError, EMPTY } from 'rxjs'; import { windowToggle, tap, mergeMap } from 'rxjs/operators'; import { TestScheduler } from 'rxjs/testing'; import { observableMatcher } from '../helpers/observableMatcher'; /** @test {windowToggle} */ describe...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * A Workflow Template is a reusable workflow configuration. It defines a graph of jobs with information on where to run those jobs. * * ## Example Usage * * ```ty...
the_stack
import { BitcoinProtocol, BitcoinProtocolOptions, IAirGapTransaction, ProtocolSymbols, SignedBitcoinSegwitTransaction, UnsignedTransaction } from '../..' import { mnemonicToSeed } from '../../dependencies/src/bip39-2.5.0/index' import axios from '../../dependencies/src/axios-0.19.0/index' import { RawBitcoi...
the_stack
import { Spreadsheet } from '../base/index'; import { applyMerge, activeCellMergedRange, MergeArgs } from '../../workbook/common/index'; import { ICellRenderer, hiddenMerge, dialog, locale, CellRenderArgs, focus } from '../common/index'; import { checkPrevMerge, checkMerge, DialogBeforeOpenEventArgs } from '../common/i...
the_stack
export const templates = { // .editorconfig '.editorconfig': ` [*] indent_size = 2 tab_width = 2 `, // .gitignore '.gitignore': ` # Cache and log files .DS_Store yarn-error.log # Dependencies node_modules # Build files dist # Generated files src/options.ts src/schema.ts `, // .prettierignore '.prettier...
the_stack
import React, { useState } from 'react'; import { Components, registerComponent } from '../../lib/vulcan-lib'; import { useUpdateCurrentUser } from '../hooks/useUpdateCurrentUser'; import { Link } from '../../lib/reactRouterWrapper'; import NoSSR from 'react-no-ssr'; import Headroom from '../../lib/react-headroom' impo...
the_stack
import { TestHelper } from './TestHelper'; describe('noStringBasedSetTimeoutRule', (): void => { const RULE_NAME: string = 'no-string-based-set-timeout'; it('should not throw error - case 1', (): void => { const inputFile: string = 'test-data/NoStringBasedSetTimeout/NoStringBasedSetTimeoutTestInput-er...
the_stack
import * as fs from 'fs-extra'; import * as schema from './api-schema'; import { ApiDefinitions, asArray, ExtendedApi, getTitle, readJsonDefs, hasChangeEvent, plainType, isInterfaceReference, isUnion, isTuple, isMap, isIndexedMap, isCallback, getEventTypeName, getJSXChildElementType, supportsJsx, getJSXContentTyp...
the_stack
import * as dateFns from 'date-fns' import * as FF from 'final-form' import * as FP from 'fp-ts' import * as IO from 'io-ts' import * as R from 'ramda' import * as React from 'react' import * as RF from 'react-final-form' import * as RRDom from 'react-router-dom' import * as urql from 'urql' import * as M from '@materi...
the_stack
import * as fc from '../../../../lib/fast-check'; import { StreamArbitrary } from '../../../../src/arbitrary/_internals/StreamArbitrary'; import { NextValue } from '../../../../src/check/arbitrary/definition/NextValue'; import { cloneIfNeeded, hasCloneMethod } from '../../../../src/check/symbols'; import { Stream } fro...
the_stack
import Game from '../Core/Game'; import SName from '../Core/SName'; import Hilo3d from '../Core/Hilo3d'; import { ISeinNodeExtension, INodeWithGlTFExtensions, ISeinPhysicBodyExtension, ISeinBoxColliderExtension, ISeinSphereColliderExtension, ISeinRendererExtension, ISeinRendererGlobalExtension, ISeinAmbientLightE...
the_stack
import { Subject, takeUntil, } from "rxjs"; import { IContentProtection } from "../../types"; import { expectLicenseRequestMessage, MediaKeysImpl, MediaKeySystemAccessImpl, mockCompat, } from "./utils"; describe("core - eme - global tests - server certificate", () => { const getLicenseSpy = jest.fn(() =...
the_stack