text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { expect } from 'chai'; import { describe, it } from 'mocha'; import { expectJSON } from '../../__testUtils__/expectJSON'; import { parse } from '../../language/parser'; import { GraphQLSchema } from '../../type/schema'; import { GraphQLString } from '../../type/scalars'; import { GraphQLNonNull, GraphQLObjec...
the_stack
import { CollectibleBase, CollectionBase, CollectionWithSets, Country, DEFAULT_LANG, DirectusApplication, DirectusCollectibleTemplate, DirectusCollectibleTemplateTranslation, DirectusCollection, DirectusCollectionTranslation, DirectusCountry, DirectusCountryTranslation, DirectusFile, Directu...
the_stack
import fetch from "node-fetch"; import { HandlerDataResponse, ICookieMap, IExposeFragment, IFileResourceAsset, IFragment, IFragmentBFF, IFragmentContentResponse, IFragmentHandler } from "./types"; import { CONTENT_ENCODING_TYPES, FRAGMENT_RENDER_MODES } from "./enums"; import * as querystring from "querys...
the_stack
import Log from '../../../Utils/Logger'; class ExpGolomb { Tag: string data: Uint8Array bytesAvailable: number word: number bitsAvailable: number constructor(data: Uint8Array) { this.Tag = 'ExpGolomb'; this.data = data; // the number of bytes left to examine in this...
the_stack
import { assert } from "@fluidframework/common-utils"; import { randomId, TokenList, TagName } from "@fluid-example/flow-util-lib"; import { LazyLoadedDataObject, LazyLoadedDataObjectFactory } from "@fluidframework/data-object-base"; import { IFluidHandle } from "@fluidframework/core-interfaces"; import { createIns...
the_stack
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs'; import { join as joinPaths, resolve } from 'path'; import { deleteFolderRecursive, JovoUserConfigFile, Preset, UserConfig } from '../src'; const testPath: string = resolve(joinPaths('test', 'tmpTestFolderUserConfig')); const configDirectory: stri...
the_stack
import * as t from "@babel/types"; import { IInferType, IIdentifier, ITypeExpression, ITypeIfStatement, IStringTypeLiteral, IStringType, INeverType, ITypeReference, ITypeCallExpression, INumberTypeLiteral, ITupleType, INumberType, IConditionalTypeExpression, ITemplateTypeLiteral, ITypeFile, ITypeFunctionDeclaration, I...
the_stack
import Pluralize from 'pluralize' import { snakeCase, camelCase, pascalCase } from 'change-case' import { Config, FieldContract, FieldProperty, SerializedField, FieldHookFunction, AuthorizeFunction, SanitizationRules, DataPayload } from '@tensei/common' export class Field implements FieldContract { p...
the_stack
* @author Richard <richardo2016@gmail.com> * */ /// <reference path="Buffer.d.ts" /> /// <reference path="BufferedStream.d.ts" /> /// <reference path="Chain.d.ts" /> /// <reference path="Cipher.d.ts" /> /// <reference path="Condition.d.ts" /> /// <reference path="DbConnection.d.ts" /> /// <reference path="...
the_stack
import { Camera, FFMpegInput, MotionSensor, ScryptedDevice, ScryptedDeviceType, ScryptedInterface, ScryptedMimeTypes, VideoCamera, AudioSensor, Intercom, MediaStreamOptions, ObjectsDetected, VideoCameraConfiguration, OnOff } from '@scrypted/sdk' import { addSupportedType, bindCharacteristic, DummyDevice, HomeKitSession...
the_stack
const CLASSES = { /** * app is the container of the app. */ app: "coral coral-stream", /** * guidlines represents the box containing the guidlines. */ guidelines: { container: "coral coral-guidelines", content: "coral coral-guidelines-content", }, /** * guidlines represents the box ...
the_stack
import Conditions from '../../../../../resources/conditions'; import NetRegexes from '../../../../../resources/netregexes'; import Outputs from '../../../../../resources/outputs'; import { Responses } from '../../../../../resources/responses'; import ZoneId from '../../../../../resources/zone_id'; import { Raidbos...
the_stack
import { ProductName } from "@microsoft/teamsfx-api"; import * as uuid from "uuid"; import * as vscode from "vscode"; import { endLocalDebugSession, getLocalDebugSessionId, getLocalTeamsAppId, getNpmInstallLogInfo, } from "./commonUtils"; import { ext } from "../extensionVariables"; import { ExtTelemetry } from...
the_stack
import { debounceTime, distinctUntilChanged, finalize, map, switchMap, takeUntil, withLatestFrom } from 'rxjs/operators'; import { Component, OnInit, OnDestroy } from '@angular/core'; import { ActivatedRoute, Router, ParamMap } from '@angular/router'; import { Subject, Observable } from 'rxjs'; impo...
the_stack
import * as assert from 'assert'; import {describe, it, afterEach, beforeEach} from 'mocha'; import * as sinon from 'sinon'; import {AwsRequestSigner} from '../src/auth/awsrequestsigner'; import {GaxiosOptions} from 'gaxios'; /** Defines the interface to facilitate testing of AWS request signing. */ interface AwsReque...
the_stack
import { setImmediate } from "../../deps.ts"; import { Route } from "./route.ts"; import { Layer } from "./layer.ts"; import { merge } from "../utils/merge.ts"; import { parseUrl } from "../utils/parseUrl.ts"; import { methods } from "../methods.ts"; import type { NextFunction, OpineRequest, OpineResponse, Rout...
the_stack
'use strict'; import { HoverProvider, TextDocument, Position, CancellationToken, Hover, MarkdownString, ExtensionContext, window, TextEditor, Range, TextEditorDecorationType, Location } from 'vscode'; import { SymbolUtils, VariableInfo, SymbolInfo } from './SymbolUtils'; import { CodePddlWorkspace } from '../workspace/...
the_stack
import {ApiResult, ErrorResponse, SuccessResponse} from "helpers/api_request_builder"; import m from "mithril"; import {Pipeline, PipelineGroups} from "models/internal_pipeline_structure/pipeline_structure"; import data from "models/new-environments/spec/test_data"; import {Origin, OriginType} from "models/origin"; imp...
the_stack
import { CancellationToken } from 'vs/base/common/cancellation'; import { FuzzyScore } from 'vs/base/common/filters'; import { Iterable } from 'vs/base/common/iterator'; import { IDisposable, RefCountedDisposable } from 'vs/base/common/lifecycle'; import { ICodeEditor } from 'vs/editor/browser/editorBrowser'; import { ...
the_stack
import { PdfFontStyle } from './enum'; import { IPdfWrapper } from './../../../interfaces/i-pdf-wrapper'; import { IPdfPrimitive } from './../../../interfaces/i-pdf-primitives'; import { IPdfCache } from './../../../interfaces/i-pdf-cache'; import { SizeF } from './../../drawing/pdf-drawing'; import { PdfStringFormat }...
the_stack
import * as React from 'react'; import { Button, Icon, Input } from 'antd'; import { Wrapper, Segment } from 'components'; import { DataGrid } from 'axui-datagrid'; import { IDataGrid } from 'axui-datagrid/common/@types'; import styled from 'styled-components'; // import { debounce } from 'axui-datagrid/utils'; impor...
the_stack
import { createMemoryFs } from '@file-services/memory'; import type { IFileSystem } from '@file-services/types'; import { expect } from 'chai'; import { waitFor } from 'promise-assist'; import { DirectoryProcessService } from '@stylable/cli'; function createSpy<T extends (...args: any[]) => any>(fn?: T) { const sp...
the_stack
import * as ethers from 'ethers' import { AbstractContract, expect, BigNumber, RevertError } from './utils' import * as utils from './utils' import { ERC1155MetaMintBurnMock, ERC1155ReceiverMock, ERC1155OperatorMock } from 'src/gen/typechain' // init test wallets from package.json mnemonic import { web3 } from 'hard...
the_stack
import { Observable } from 'rxjs/Observable'; import { of } from 'rxjs/observable/of'; // import { p } from '@angular/core/src/render3'; import { flatMap } from 'rxjs/operators'; import { LegacyWalletV1, ImplicitAccount, OriginatedAccount, LegacyWalletV2, Activity, LegacyWalletV3, EmbeddedTorusWallet, H...
the_stack
import 'reflect-metadata'; import * as Decrators from '../../../../src/decorators/validates'; import * as Validators from '../../../../src/validate/validators'; describe('validate decrators', () => { it('should patch passed rule with @Passed', () => { const options = {}; class Example { @Decrators.Pass...
the_stack
import { TransitionItem, StateChanges, ValueContextType, Values, InterpolatorContext, InterpolatorContextType, } from "../Types"; import { getStyleInfo } from "../../Styles/getStyleInfo"; import { useLog } from "../../Hooks"; import { UseLoggerFunction, LoggerLevel, fluidException } from "../../Types"; impo...
the_stack
import '../../../test/common-test-setup-karma'; import './gr-repo-detail-list.js'; import {GrRepoDetailList} from './gr-repo-detail-list'; import {page} from '../../../utils/page-wrapper-utils'; import { addListenerForTest, mockPromise, queryAll, queryAndAssert, stubRestApi, } from '../../../test/test-utils';...
the_stack
import { FabricEnvironmentManager, ConnectedState } from '../../../extension/fabric/environments/FabricEnvironmentManager'; import * as chai from 'chai'; import * as sinon from 'sinon'; import { FabricEnvironmentRegistryEntry, IFabricEnvironmentConnection, EnvironmentType } from 'ibm-blockchain-platform-common'; impor...
the_stack
namespace pxsim.codal.music { export enum WaveShape { Sine = 0, Sawtooth = 1, Triangle = 2, Square = 3, Noise = 4 } export enum InterpolationEffect { None = 0, Linear = 1, Curve = 2, ExponentialRising = 5, ExponentialFalling = ...
the_stack
import { ElementRef, OnDestroy, QueryList, Renderer2 } from '@angular/core'; import { AbstractControl, FormGroup } from '@angular/forms'; import * as Ro from '@nakedobjects/restful-objects'; import { LoggerService, Pane } from '@nakedobjects/services'; import { ChoiceViewModel, DialogViewModel, DomainObject...
the_stack
import LoginPage from "../support/pages/LoginPage"; import Masthead from "../support/pages/admin_console/Masthead"; import ListingPage from "../support/pages/admin_console/ListingPage"; import SidebarPage from "../support/pages/admin_console/SidebarPage"; import CreateClientPage from "../support/pages/admin_console/man...
the_stack
import { h, defineComponent, ref, computed, Transition, onBeforeUnmount, getCurrentInstance, VNode } from 'vue' import VcIcon from '../icon' import { Spinner as VcSpinner } from '../spinner' import { Ripple } from '@vue-cesium/directives' import useBtn, { useBtnProps } from './use-btn' import { hMergeSlot, hDir } from ...
the_stack
import React, { FC, useState, useCallback, } from 'react'; import { useTranslation } from 'react-i18next'; import UserGroupForm from '../UserGroup/UserGroupForm'; import UserGroupTable from '../UserGroup/UserGroupTable'; import UserGroupModal from '../UserGroup/UserGroupModal'; import UserGroupDeleteModal from '../U...
the_stack
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<T[SubKey]> }; export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [Sub...
the_stack
import crypto from "crypto"; import { FiatTokenV2Instance } from "../../../@types/generated"; import { AuthorizationUsed, Transfer, } from "../../../@types/generated/FiatTokenV2"; import { ACCOUNTS_AND_KEYS, MAX_UINT256 } from "../../helpers/constants"; import { expectRevert, hexStringFromBuffer } from "../../helpe...
the_stack
import React, { Component } from 'react' import { StyleSheet, ToastAndroid, Text, View, Image, Dimensions, InteractionManager, ActivityIndicator, StatusBar, Animated, Keyboard, ToolbarAndroid, PixelRatio } from 'react-native' import { sync, updown, fav, upBase, block } from '../../dao/sync' ...
the_stack
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { SharedModule } from './../../../shared/shared.module'; import { ComplianceDashboardComponent } from './compliance-dashboard/compliance-dashboard.component'; import { ComplianceRoutingModule } from './compliance-routing.mo...
the_stack
import { ObjectFormat, RowEntry, ObjectRow, FieldsByConfigId, StyleById, getHeight, getWidth } from '@google/dscc'; import ApexCharts from 'apexcharts'; interface FontInfo { family: string; size: number; color: string; } interface Chart { chart: ApexCharts; element: Elem...
the_stack
import URL from 'url'; import PATH from 'path'; import * as net from "net"; import * as http from "http"; import { Request, Response, NextFunction, Application } from 'express'; import bodyParser from 'body-parser'; import httpProxy from 'http-proxy'; import * as toRegexp from 'path-to-regexp'; import clearModule from ...
the_stack
import {Class, AnyTiming, Timing, Creatable, InitType} from "@swim/util"; import {Affinity, MemberAnimatorInit} from "@swim/component"; import {Transform} from "@swim/math"; import {Look, Mood, MoodVector, ThemeMatrix} from "@swim/theme"; import {ViewFlags, AnyView, ViewCreator, View} from "@swim/view"; import {Attribu...
the_stack
'use strict' import { FunctionDefinitionAstNode, ModifierDefinitionAstNode, ParameterListAstNode, ForStatementAstNode, WhileStatementAstNode, VariableDeclarationAstNode, ContractDefinitionAstNode, InheritanceSpecifierAstNode, MemberAccessAstNode, BinaryOperationAstNode, FunctionCallAstNode, ExpressionStatementAs...
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/webServicesMappers"; import * as Parameters from "../models/parameters"; import { AzureMLWebServicesManagementClientContext } from "../azureMLWebS...
the_stack
import { tracked } from '@glimmer/tracking'; import { defer, hash } from 'rsvp'; import BN from 'bn.js'; import Web3 from 'web3'; import { TransactionReceipt } from 'web3-core'; import * as Sentry from '@sentry/browser'; import { Emitter, SimpleEmitter, UnbindEventListener } from '../events'; import { BridgeableSymb...
the_stack
import {CONSUMED_CAPACITY_TYPE, Replace} from '@typedorm/common'; import {User} from '@typedorm/core/__mocks__/user'; import {UserUniqueEmail} from '@typedorm/core/__mocks__/user-unique-email'; import {createTestConnection, resetTestConnection} from '@typedorm/testing'; import {WriteBatch} from '../../batch/write-batch...
the_stack
import { IContentType, FieldLink, FieldLinkProps } from "gd-sprest-def/lib/SP"; import { IsetContentTypeFields } from "../../../@types/helper/methods"; import { ContextInfo, Web } from "../../lib"; declare var SP; /** * Sets the field links associated with a content type. * @param ctInfo - The content type informati...
the_stack
import { IExecuteFunctions, } from 'n8n-core'; import { IDataObject, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription, NodeOperationError, } from 'n8n-workflow'; import { attendeeFields, attendeeOperations, coorganizerFields, coorganizerOperations, panelist...
the_stack
namespace LiteMol.Extensions.RNALoops { import Entity = Bootstrap.Entity; import Transformer = Bootstrap.Entity.Transformer; export interface LoopAnnotation extends Entity<Entity.Behaviour.Props<Interactivity.Behaviour>> { } export const LoopAnnotation = Entity.create<Entity.Behaviour.Props<Interac...
the_stack
import { Component, ViewChild } from '@angular/core'; import { NavParams, Slides, ViewController, LoadingController, ToastController } from 'ionic-angular'; //Components import { ProgressBarComponent } from '../../components/progress-bar/progress-bar.component'; //Services import { StorageService } from '../../servic...
the_stack
import path from 'path'; import { cloneDeep } from 'lodash'; import { MappingExporter, Package } from '../../src/export'; import { FSHDocument, FSHTank } from '../../src/import'; import { TestFisher } from '../testhelpers'; import { loggerSpy } from '../testhelpers'; import { FHIRDefinitions, loadFromPath } from '../.....
the_stack
import { IDataOptions, IDataSet } from '../../src/base/engine'; import { pivot_nodata } from '../base/datasource.spec'; import { PivotView } from '../../src/pivotview/base/pivotview'; import { createElement, remove, extend } from '@syncfusion/ej2-base'; import { FieldList } from '../../src/common/actions/field-list'; i...
the_stack
export default class JquerySmartTab { // volmarg - fix adding logic to initial call private initialCall: boolean = true; private defaults = { selected: 0, // Initial selected tab, 0 = first tab theme: 'default', // theme for the tab, related css need to include for other th...
the_stack
import { expectAssignable, expectError, expectNotAssignable, expectType } from 'tsd'; import '../../../index'; // benchmark declare function functionWithoutParameters(): void; declare function functionWithParameters(a: number, b: string, c?: boolean): void; declare function functionWithReturnTypeOtherThanVoid(): numb...
the_stack
import window from 'global/window'; import document from 'global/document'; import console from 'global/console'; import svgToMiniDataURI from 'mini-svg-data-uri'; import {IMAGE_EXPORT_ERRORS} from 'constants/user-feedbacks'; import { canvasToBlob, escape, escapeXhtml, delay, processClone, asArray, makeIm...
the_stack
import { FreeVars, Heap, Heaps, Locs, P, Reducer, Substituter, Syntax, Transformer, Traverser, Vars, and, copy, eqExpr, eqHeap, eqProp, implies, tru } from './logic'; import { getOptions } from './options'; import { propositionToSMT } from './smt'; declare const console: { log: (s: string) => void }; class T...
the_stack
import {AnimationData, Track, Tracks, WidgetInit} from "../../../common/common"; import {Gif, Image, StaticImage} from "./image"; import {RELATIVE_WIDGET_SIZE, Size, TimeRange, UPDATE, Utility, getAspect, resizeMinimumKeepAspect} from "./utility"; import {Background} from "./background"; import {Gizmo} from "./gizmo"; ...
the_stack
import { GraphNode } from '@urbit/api'; import BigIntOrderedMap from '@urbit/api/lib/BigIntOrderedMap'; import BigIntArrayOrderedMap, { arrToString, stringToArr } from '@urbit/api/lib/BigIntArrayOrderedMap'; import bigInt, { BigInteger } from 'big-integer'; import produce from 'immer'; import _ from 'lodash'; impor...
the_stack
import { b2_linearSlop, b2Maybe, b2_maxFloat } from "../common/b2_settings.js"; import { b2Abs, b2Clamp, b2Vec2, b2Rot, XY, b2Max, b2Transform } from "../common/b2_math.js"; import { b2Joint, b2JointDef, b2JointType, b2IJointDef } from "./b2_joint.js"; import { b2SolverData } from "./b2_time_step.js"; import { b2Body }...
the_stack
import { DagManagerService } from './dag-manager.service'; import { DagModelItem } from './interfaces/dag-model-item'; interface TestDagModel extends DagModelItem { name: string; } describe('DagManagerService', () => { let service: DagManagerService<TestDagModel>; beforeEach(() => { service = new DagManage...
the_stack
import * as pc from 'playcanvas'; // @ts-ignore: No extras declarations import * as pcx from 'playcanvas/build/playcanvas-extras.js'; import DebugLines from './debug'; // @ts-ignore: library file import import * as MeshoptDecoder from 'lib/meshopt_decoder.js'; import { getAssetPath } from './helpers'; import { Morph, U...
the_stack
import { BoolPropertyDefinition } from "../../../PropertyDefinitions/BoolPropertyDefinition"; import { ByteArrayArray } from "../../../ComplexProperties/ByteArrayArray"; import { ByteArrayPropertyDefinition } from "../../../PropertyDefinitions/ByteArrayPropertyDefinition"; import { CompleteName } from "../../../Comple...
the_stack
'use strict'; import { window, OutputChannel, ExtensionContext, TextDocument, Diagnostic, DiagnosticSeverity } from 'vscode'; import { instrumentOperationAsVsCodeCommand } from "vscode-extension-telemetry-wrapper"; import * as process from 'child_process'; import { ProblemInfo, DomainInfo, HappeningsInfo, Happen...
the_stack
import {Z80} from "./Z80.js"; import {toHex, inc8, inc16, dec8, dec16, add8, add16, sub8, sub16, word, hi, lo, Flag, signedByte} from "z80-base"; type OpcodeFunc = (z80: Z80) => void; // Tables for computing flags after an operation. const halfCarryAddTable = [0, Flag.H, Flag.H, Flag.H, 0, 0, 0, Flag.H]; const halfCa...
the_stack
"use strict"; import * as winston from 'winston'; import * as marked from 'marked' import * as fs from 'fs'; import * as path from 'path'; import { FileHandle } from 'fs/promises'; const {EOL} = require('os'); import slash from 'slash'; import normalizeUrl from 'normalize-url'; /** * Ebook commands */ class EbookCom...
the_stack
import { Component, OnInit, Output, EventEmitter, Inject } from '@angular/core'; import { ValidatorFn, FormControl } from '@angular/forms'; import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { ToastrService } from 'ngx-toastr'; import { RolesGroupsService, HealthStatusService, ...
the_stack
import chai, { expect } from 'chai'; import commentsToOpenApi from './commentsToOpenApi'; function _(func: { (): void }): string { const str = func.toString(); return str .slice(str.indexOf('{') + 1, str.lastIndexOf('}')) .replace(/\r\n/g, '\n'); } describe('code blocks', () => { it('keeps spacing', () => { ...
the_stack
import { DiscordBot, IThirdPartyLookup } from "./bot"; import { DiscordBridgeConfig } from "./config"; import * as Discord from "better-discord.js"; import { Util } from "./util"; import { Log } from "./log"; const log = new Log("MatrixRoomHandler"); import { DbRoomStore, MatrixStoreRoom, RemoteStoreRoom } from "./db/...
the_stack
import axios, { AxiosResponse } from "axios"; import cookie from "cookie"; import { Entity, EntityCreateData, EntityCreatePayload, EntityUpdateData, EntityUpdatePayload, Paper, Paginated, PaperIdWithEntityCounts, EntityGetResponse, Citation, Equation, Sentence, Symbol, Term, } from "./types"...
the_stack
import {Unsubscribe} from 'redux'; import {deepMerge, LoadingState, TaskCounter} from './sprite'; import {env} from './env'; declare const process: any; /** * 可供设置的全局参数,参见setConfig * - NSP 默认为. ModuleName${NSP}ActionName 用于ActionName的连接 * - MSP 默认为, 用于一个ActionHandler同时监听多个Action的连接 * - SSRKey 默认为 meduxInitStore 用于...
the_stack
import { AppContext, IAppContextProps } from "../../Common/AppContextProps"; import { IProfileCardProperty } from "../../Entities/IProfileCardProperty"; import { IAnnotation, ILocalization } from "../../Entities/IAnnotations"; import { languages, DirectoryPropertyName } from "../../Common/constants"; import { Default...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * Manages a Live Event. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const...
the_stack
import { IconCommonArrowDropDown, IconCommonClose, IconCommonError, IconCommonRun, IconCommonSave } from '@app/assets/icons' import { SQLEditor } from '@app/components/SQLEditor' import { useBindHovering } from '@app/hooks' import { useBlockSuspense, useConnectorsGetProfile, useTranslateSmartQuery } from '@ap...
the_stack
import { Connection, AbstractConnector, ConnectorComputeParams, PaintGeometry, StraightSegment, ArcSegment } from "@jsplumb/core" import { ConnectorOptions } from "@jsplumb/common" import { Dictionary } from '@jsplumb/util' export interface FlowchartConnectorOptions extends ConnectorOptions { alwaysRespectSt...
the_stack
// This is the "new-mobile" UI rendered in newMobilePaneIosFrame.html (function () { "use strict"; // Framework7 app object let myApp = null; function postError(error, message) { poster.postMessageToParent("LogError", { error: JSON.stringify(error), message: message }); } function in...
the_stack
import { ObjectInspector } from '@devtools-ds/object-inspector'; import { Call, CallRef, ElementRef } from '@storybook/instrumenter'; import { useTheme } from '@storybook/theming'; import React, { Fragment, ReactElement } from 'react'; const colorsLight = { base: '#444', nullish: '#7D99AA', string: '#16B242', ...
the_stack
import Cookies from 'js-cookie'; import TokenObject from '../TokenObject'; import {AuthKitStateInterface, AuthStateUserObject} from '../types'; describe('isUsingRefreshToken value is as expected', () => { it('isUsingRefreshToken is false', () => { const tokenObject = new TokenObject( '__', 'cooki...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/clientGroupsMappers"; import * as Parameters from "../models/parameters"; import { ServicemapManagementClientContext } from "../servicemapManagementClientContext"; /** Class representing a ClientGroups...
the_stack
import CameraComponent from '../../../dist/esm/foundation/components/CameraComponent'; import _Rn, {Material} from '../../../dist/esm/index'; let p: any; declare const window: any; declare const Rn: typeof _Rn; (async () => { await Rn.ModuleManager.getInstance().loadModule('webgl'); await Rn.ModuleManager.getIns...
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/communicationServiceMappers"; import * as Parameters from "../models/parameters"; import { CommunicationServiceManagementClientContext } from "../...
the_stack
import Property from './property'; import { addPrivateProp, addPublicProp } from './utils'; import { idToReference, escapeStringValue } from './reference-utils'; import { UdtParseError } from './errors'; import DeferredReference from './deferred-reference'; const idRegex = /^\w[-_\w\d]*$/; /** * A callback function ...
the_stack
import * as fs from 'fs-extra'; import * as _ from 'lodash'; import * as os from 'os'; import * as path from 'path'; import * as vscode from 'vscode-languageserver-types'; import astService, { LanguageId } from '../../src/services/astService'; import codeModService from '../../src/services/codeModService'; import { IP...
the_stack
import "jest-extended"; import { Container, Utils } from "@packages/core-kernel"; import { PoolError } from "@packages/core-kernel/dist/contracts/transaction-pool"; import { Enums } from "@packages/core-magistrate-crypto"; import { EntityBuilder } from "@packages/core-magistrate-crypto/src/builders"; import { EntityAc...
the_stack
/// <reference types="./cacheable-middleware" /> import * as argparse from 'argparse'; import express from 'express'; import expressWS from 'express-ws'; import * as http from 'http'; import * as url from 'url'; import * as path from 'path'; import morgan from 'morgan'; import favicon from 'serve-favicon'; import cook...
the_stack
import root from './root'; import setTimeTask from './internal/setTimeTask'; import clearTimeTask from './internal/clearTimeTask'; import getEleAttr from './internal/getEleAttr'; import removeElement from './internal/removeElement'; import Event from './internal/Event'; import addStyleCSS from './internal/addStyl...
the_stack
import dns = require("dns"); import { BlobServiceClient, newPipeline, StorageSharedKeyCredential, BlockBlobClient } from "@azure/storage-blob"; import assert = require("assert"); import { configLogger } from "../../src/common/Logger"; import BlobTestServerFactory from "../BlobTestServerFactory"; import { ap...
the_stack
import {assert} from 'chrome://resources/js/assert.m.js'; import {NativeEventTarget as EventTarget} from 'chrome://resources/js/cr/event_target.m.js'; import {EventTracker} from 'chrome://resources/js/event_tracker.m.js'; import {loadTimeData} from 'chrome://resources/js/load_time_data.m.js'; import {CloudPrintInterfa...
the_stack
import { UserRequest } from '../interfaces/user-request.interface'; import { Response, Request } from 'express'; import { getConnection } from 'typeorm'; import { Asset } from '../entity/Asset'; import { validate } from 'class-validator'; import { Organization } from '../entity/Organization'; import { status } from '.....
the_stack
import * as vscode from 'vscode'; import { yamlLocator, YamlMap, YamlSequence, YamlNode, YamlDocument, VirtualDocument } from './yaml-locator'; import * as _ from 'lodash'; import { TknElementType } from '../model/element-type'; import { PipelineTask, PipelineTaskCondition } from '../model/pipeline/pipeline-model'; imp...
the_stack
import { Component, ViewChild } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { SprkIconComponent } from '../sprk-icon/s...
the_stack
import expat = require("node-expat"); // let expat = require('../lib/node-expat') import Iconv = require('iconv'); // import vows = require('vows'); // let assert = require('assert') import fs = require('fs'); import path = require('path'); import debug = require('debug'); const log = debug.debug.log; // ('test/index'...
the_stack
import { ExecutionContext, Realm, } from '../realm.js'; import { $Object, } from '../types/object.js'; import { $Function, $BuiltinFunction, } from '../types/function.js'; import { $Boolean, } from '../types/boolean.js'; import { $AnyNonError, $AnyNonEmpty, $AnyNonEmptyNonError, CompletionType, $A...
the_stack
import { inject, injectable } from "inversify"; import { matchesKeystroke } from '../../utils/keyboard'; import { Bounds, Point, translate } from "../../utils/geometry"; import { TYPES } from "../../base/types"; import { SModelElement, SModelRoot, SModelRootSchema } from "../../base/model/smodel"; import { MouseListene...
the_stack
import { expect } from "chai"; import * as sinon from "sinon"; import { html, render } from ".."; import { stripComments } from "./utils"; describe("mutations", () => { let container!: HTMLDivElement; beforeEach(() => { container = document.body.appendChild(document.createElement("div")); }); afterEach((...
the_stack
import { FormArray, FormGroup } from "@angular/forms" import { error, ReactiveFormConfig, RxFormBuilder, RxFormControl, RxFormGroup, propObject, propArray, required, ErrorMessageBindingStrategy } from '@rxweb/reactive-form-validators'; export class Hobby { @required() name: string; } export class Address ...
the_stack
var md5 = require('crypto-js/md5'); var encLatin1 = require('crypto-js/enc-latin1'); import node_crypto = require('crypto'); import uuid = require('uuid'); import { btoa } from './base/stringutil'; import agile_keychain_entries = require('./agile_keychain_entries'); import crypto = require('./base/crypto'); import key...
the_stack
import assert from 'assert'; import * as fs from 'fs'; import path from 'path'; import { Ast, Type } from 'thingtalk'; import * as Tp from 'thingpedia'; import * as utils from '../../../lib/utils/misc-utils'; import { makeLookupKeys } from '../../../lib/dataset-tools/mturk/sample-utils'; import EnglishLanguagePack fro...
the_stack
export type Field = string; export interface TransformParamsBase { /** The type of the transform to be applied */ type: string; } export interface IdentifierParams extends TransformParamsBase { type: "identifier"; /** * **Default:** `"_uniqueId"` */ as?: string; } export interface Filte...
the_stack
import memorize from 'memorize-decorator'; import { FieldRequest } from '../graphql/query-distiller'; import { Field, ObjectType } from '../model'; import { NOT_SUPPORTED_ERROR, PropertyAccessQueryNode, QueryNode, RuntimeErrorQueryNode } from '../query-tree'; import { FieldContext, SelectionToken } from './query-node-o...
the_stack
import path = require('path'); import { rollup, RollupOptions, RollupOutput, OutputOptions, OutputChunk } from 'rollup'; import Tacks = require('tacks'); import tempy = require('tempy'); import pMap = require('p-map'); import pectinCore from '../lib/pectin-core'; const { Dir, File, Symlink } = Tacks; // avoid polluti...
the_stack
import { HttpClient, IHttpClientOptions, HttpClientResponse } from '@microsoft/sp-http'; import { sp } from "@pnp/sp"; import "@pnp/sp/webs"; import "@pnp/sp/site-users/web"; import "@pnp/sp/lists/web"; import "@pnp/sp/items/list"; import "@pnp/sp/fields/list"; import "@pnp/sp/views/list"; import "@pnp/sp/profiles"; im...
the_stack
import { DimensionalityMismatchError, Sylvester, InvalidOperationError } from './sylvester'; import { isPlaneLike, isLineLike, isVectorOrListLike, isGeometry, VectorOrList, Geometry, } from './likeness'; import { Matrix } from './matrix'; import { Line } from './line'; import { Plane } from './plane'; /** ...
the_stack