text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { EOF, createToken } from "../../src/scan/tokens_public" import { Lexer } from "../../src/scan/lexer_public" import { EmbeddedActionsParser, CstParser } from "../../src/parse/parser/traits/parser_traits" import { EMPTY_ALT } from "../../src/parse/parser/parser" import { expect } from "chai" import { Early...
the_stack
import test from 'japa' import { join } from 'path' import supertest from 'supertest' import { createServer } from 'http' import { Ignitor } from '../src/Ignitor' import { setupApplicationFiles, fs } from '../test-helpers' test.group('Ignitor | Http', (group) => { group.before(() => { process.env.ENV_SILENT = '...
the_stack
import { inject, injectable } from 'inversify'; import { FindConditions, FindManyOptions, In, IsNull, LessThan, LessThanOrEqual, MoreThanOrEqual } from 'typeorm'; import * as apid from '../../../api'; import Reserve from '../../db/entities/Reserve'; import { IReserveUpdateValues } from '../event/IReserveEvent'; import ...
the_stack
import * as React from 'react'; import _isEmpty from 'lodash/isEmpty'; import OlMap from 'ol/Map'; import OlLayerVector from 'ol/layer/Vector'; import OlSourceVector from 'ol/source/Vector'; import OlCollection from 'ol/Collection'; import OlMultiPolygon from 'ol/geom/MultiPolygon'; import OlMultiLineString from 'ol/...
the_stack
import { TestBed } from '@angular/core/testing'; import { provideMockActions } from '@ngrx/effects/testing'; import { hot } from 'jasmine-marbles'; import { Observable } from 'rxjs'; import { Entity } from '../decorators/entity-decorator'; import { Key } from '../decorators/key-decorator'; import { IEntityError } from...
the_stack
import 'regenerator-runtime/runtime.js'; import { AudioAtom } from '@guardian/atoms-rendering'; import type { ICommentResponse as CommentResponse } from '@guardian/bridget'; import { Topic } from '@guardian/bridget/Topic'; import { App } from '@guardian/discussion-rendering/build/App'; import { either } from '@guardian...
the_stack
import { KeyboardEvents, KeyboardEventArgs, closest, addClass, isNullOrUndefined, removeClass } from '@syncfusion/ej2-base'; import { PivotView } from '../base/pivotview'; import * as cls from '../../common/base/css-constant'; import { FocusStrategy } from '@syncfusion/ej2-grids/src/grid/services/focus-strategy'; impor...
the_stack
import { SessionContext } from '@jupyterlab/apputils'; import { Cell, ICellModel } from '@jupyterlab/cells'; import { CodeEditor } from '@jupyterlab/codeeditor'; import * as nbformat from '@jupyterlab/nbformat'; import { Notebook, NotebookPanel } from '@jupyterlab/notebook'; import { IObservableList, IObservableUnd...
the_stack
import '@graphql-codegen/testing'; import { parse } from 'graphql'; import { codegen } from '@graphql-codegen/core'; import { plugin } from '../src'; import { TypeScriptResolversPluginConfig } from '../src/config'; function generate({ schema, config }: { schema: string; config: TypeScriptResolversPluginConfig }) { r...
the_stack
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config-base'; interface Blob {} declare class QLDBSessio...
the_stack
import { mapToInternalFieldValidationSchema } from './field-schema.mapper'; import { FieldValidationSchema, FieldValidationFunctionSync, InternalFieldValidationSchema, FieldValidationFunctionAsync, FullFieldValidation, } from '../model'; describe('field-schema.mapper specs', () => { it('spec #1: should ret...
the_stack
namespace ts { export function transformSystemModule(context: TransformationContext) { interface DependencyGroup { name: StringLiteral; externalImports: (ImportDeclaration | ImportEqualsDeclaration | ExportDeclaration)[]; } const { startLexicalEnvironment...
the_stack
import { BigNumberish } from '@ethersproject/bignumber/lib/bignumber' import { ethers } from 'ethers' import { makeDebug } from './debug' import { addCBORMapDelimiters, stripHexPrefix, toHex } from './helpers' const debug = makeDebug('oracle') /** * Transaction options such as gasLimit, gasPrice, data, ... */ type T...
the_stack
import type {Proto, ObserverType} from "@swim/util"; import {FastenerOwner, FastenerInit, FastenerClass, Fastener} from "@swim/component"; import {AnyController, ControllerFactory, Controller} from "./Controller"; /** @internal */ export type ControllerRelationType<F extends ControllerRelation<any, any>> = F extends...
the_stack
import { Dispatch } from 'redux'; import { Action, ActionMeta, createAction, ActionFunction0, ActionFunction1, ActionFunction2, ActionFunction3, ActionFunction4, ActionFunctionAny, } from 'redux-actions'; import { FormSubmitHandler } from 'redux-form'; import { string } from 'prop-ty...
the_stack
import '@cds/core/toggle/register.js'; import { html } from 'lit'; import { getElementStorybookArgs, spreadProps } from '@cds/core/internal'; export default { title: 'Stories/Toggle', component: 'cds-toggle', parameters: { options: { showPanel: true }, design: { type: 'figma', url: 'https://w...
the_stack
import { ILocation, WebDriver, WebElement } from '../'; import { Executor } from './command'; /** * Defines the reference point from which to compute offsets for * {@linkplain ./input.Pointer#move pointer move} actions. */ export enum Origin { /** Compute offsets relative to the pointer's current position. */ P...
the_stack
import * as fs from 'fs'; import * as path from 'path'; import { cleanHyperLink, constructMatrixType, constructParamTable, filterByKind, filterByTag, getText, ifEquals, isSignatureValid, renderMethodBracket, renderMethodReturnType, renderNewLine, renderSourceLink, searchInterface, traverseAr...
the_stack
import dayjs from 'dayjs'; import duration from 'dayjs/plugin/duration'; import isBetween from 'dayjs/plugin/isBetween'; import isoWeek from 'dayjs/plugin/isoWeek'; import relativeTime from 'dayjs/plugin/relativeTime'; import throttle from 'lodash/throttle'; import { ConfigurationChangeEvent, Disposable, ExtensionConte...
the_stack
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types"; /** * <p>You do not have permission to perform this action.</p> */ export interface AccessDeniedException extends __SmithyException, $MetadataBearer { name: "AccessDeniedException"; $fault: "client"; messa...
the_stack
import { IExpressionHydrator } from '@aurelia/runtime'; import * as AST from '@aurelia/runtime'; enum ASTExpressionTypes { BindingBehaviorExpression = 'BindingBehaviorExpression', ValueConverterExpression = 'ValueConverterExpression', AssignExpression = 'AssignExpression', ConditionalExpression = 'ConditionalE...
the_stack
import * as events from "events"; import {defaultAttributes, createChar, Char} from "./Char"; import * as i from "./Interfaces"; import * as e from "./Enums"; import {List} from "immutable"; import {Color, Weight, Brightness, KeyCode, LogLevel, BufferType, ScreenMode} from "./Enums"; import {Attributes, TerminalLikeDev...
the_stack
import 'vs/css!./notebookDiff'; import { IListMouseEvent, IListRenderer, IListVirtualDelegate } from 'vs/base/browser/ui/list/list'; import * as DOM from 'vs/base/browser/dom'; import { IListOptions, IListStyles, isMonacoEditor, IStyleController, MouseController } from 'vs/base/browser/ui/list/listWidget'; import { Dis...
the_stack
import NetRegexes from '../../../../../resources/netregexes'; import { Responses } from '../../../../../resources/responses'; import ZoneId from '../../../../../resources/zone_id'; import { RaidbossData } from '../../../../../types/data'; import { TriggerSet } from '../../../../../types/trigger'; // TODO: Lyssa ...
the_stack
import { Component, NgModule, Input, ViewChildren, QueryList, forwardRef, AfterViewInit, Renderer2, ElementRef, EventEmitter, OnDestroy, OnInit, NgZone, } from "@angular/core"; import {CommonModule} from "@angular/common"; import {AbstractJigsawComponent} from "../../common/common"; import {fadeIn} from "../../...
the_stack
import useGqlHandler from "./useGqlHandler"; import { Page } from "~/types"; jest.setTimeout(100000); describe("versioning and publishing pages", () => { const { createCategory, createPage, publishPage, updatePage, deletePage, unpublishPage, listPages, ...
the_stack
import { Match, Template } from '@aws-cdk/assertions'; import { Stack } from '@aws-cdk/core'; import * as apigw from '../lib'; /* eslint-disable quote-props */ describe('resource', () => { test('ProxyResource defines a "{proxy+}" resource with ANY method', () => { // GIVEN const stack = new Stack(); con...
the_stack
import {Spec, Test, Exam} from "@swim/unit"; import {DateTime, TimeInterval} from "@swim/time"; export class TimeIntervalSpec extends Spec { @Test testRoundYearFloor(exam: Exam): void { exam.equal(TimeInterval.year.floor(DateTime.fromInit({year: 2018})).toString(), "2018-01-01T00:00:00.000Z"); } @Test t...
the_stack
import { ApplicationDataListByFarmerIdParameters, ApplicationDataListParameters, ApplicationDataGetParameters, ApplicationDataCreateOrUpdateParameters, ApplicationDataDeleteParameters, AttachmentsListByFarmerIdParameters, AttachmentsGetParameters, AttachmentsCreateOrUpdateParameters, AttachmentsDelete...
the_stack
import type { CSSProperties, ExtractPropTypes, PropType } from 'vue'; import { watchEffect, defineComponent, ref, watch, toRaw } from 'vue'; import PropTypes from '../_util/vue-types'; import { getPropsSlot } from '../_util/props-util'; import classNames from '../_util/classNames'; import List from './list'; import Ope...
the_stack
import wk, { WorkerTransfer } from './node-worker'; type SymbolMap = Record<symbol, number>; export type Context = [string, Array<string | [string, unknown]>, unknown[]]; export type DepList = () => unknown[]; export type Environment = { s: SymbolMap; r: symbol | string; }; const abvList: Function[] = [ Int8Arr...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace Formmsdyn_livechatconfig_Information { interface Header extends DevKit.Controls.IHeader { /** Date and time when the record was created. */ CreatedOn: DevKit.Controls.DateTime; /** Owner Id */ OwnerId: DevKit.Controls.L...
the_stack
import TelegramBot from 'node-telegram-bot-api'; import { UrbanSyntheticEvent, UrbanSyntheticEventVoice, UrbanSyntheticEventText, UrbanSyntheticEventDice, UrbanSyntheticEventVideo, UrbanSyntheticEventPoll, UrbanSyntheticEventImage, UrbanSyntheticEventLocation, UrbanSyntheticEventInvo...
the_stack
import { extend, getValue, select } from '@syncfusion/ej2-base'; import { Grid } from '../../../src/grid/base/grid'; import { Filter } from '../../../src/grid/actions/filter'; import { Edit } from '../../../src/grid/actions/edit'; import { Group } from '../../../src/grid/actions/group'; import { Sort } from '../../../s...
the_stack
import { _SharePointQueryableInstance, ISharePointQueryable, spInvokableFactory, } from "../sharepointqueryable.js"; import { defaultPath } from "../decorators.js"; import { hOP, IFetchOptions } from "@pnp/common"; import { metadata } from "../utils/metadata.js"; import { body, IQueryable } from "@pnp/odata...
the_stack
namespace $ { export type $mol_style_properties = Partial< $mol_type_override< CSSStyleDeclaration , Overrides > > type Common = 'inherit' | 'initial' | 'unset' type Color = | 'aliceblue' | 'antiquewhite' | 'aqua' | 'aquamarine' | 'azure' | 'beige' | 'bisque' | 'black' | 'blanchedalmond' | 'blue' | 'blueviolet'...
the_stack
import * as winston from 'winston' import * as fs from 'fs' import * as process from 'process' import * as Ajv from 'ajv' import { getDriverClass, logger } from './utils' import { DriverModel, DriverConstructor } from './driverModel' import { AZ_CONFIG_TYPE } from './drivers/AzDriver' import { DISK_CONFIG_TYPE } from...
the_stack
interface LtacProfTactic { name: string, statistics: {total: number; local: number; num_calls: number; max_total: number}, tactics: LtacProfTactic[], } interface LtacProfResults { total_time: number, tactics: LtacProfTactic[], } function getQueryStringValue(key:string) : string { return decodeURI(windo...
the_stack
import { BigNumber } from "bignumber.js"; import * as moment from "moment"; import * as Web3 from "web3"; // Utils import * as Units from "../../../../../utils/units"; import { Web3Utils } from "../../../../../utils/web3_utils"; // Scenarios import { ReturnCollateralScenario, SeizeCollateralScenario } from "../scenario...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { SqlDatabaseGetResults, SqlResourcesListSqlDatabasesOptionalParams, SqlContainerGetResults, SqlResourcesListSqlContainersOptionalParams, SqlStoredProcedureGetResults, Sq...
the_stack
export type RegistryCtor = new (url: string) => RegistryUrl; export function lookup(url: string, registries: RegistryCtor[]): | RegistryUrl | undefined { for (const R of registries) { const u = new R(url); if (u.regexp.test(url)) { return u; } } } export interface RegistryUrl { url: string;...
the_stack
import { CubicModelRendererConfigPub } from "../componentConfigs/CubicModelRendererConfig"; import CubicModelAsset from "../data/CubicModelAsset"; export default class CubicModelRendererEditor { tbody: HTMLTableSectionElement; projectClient: SupClient.ProjectClient; editConfig: any; cubicModelAssetId: string;...
the_stack
import { CoreFilepool } from '@services/filepool'; import { CoreFileSizeSum, CorePluginFileDelegate } from '@services/plugin-file-delegate'; import { CoreSites } from '@services/sites'; import { CoreWSFile } from '@services/ws'; import { CoreCourse, CoreCourseAnyModuleData, CoreCourseModuleContentFile } from '../servic...
the_stack
'use strict'; // tslint:disable no-unused-expression import * as vscode from 'vscode'; import * as chai from 'chai'; import * as sinon from 'sinon'; import * as sinonChai from 'sinon-chai'; import { TestUtil } from '../TestUtil'; import { VSCodeBlockchainOutputAdapter } from '../../extension/logging/VSCodeBlockchainOut...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Tasks } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SecurityCenter } from "../securityCenter"; import...
the_stack
import React, { useEffect, useState } from 'react' import { makeStyles } from '@material-ui/core/styles' import { Button, CircularProgress, Checkbox, FormControlLabel, TextField, Typography, Dialog, DialogContent, DialogTitle, IconButton, } from '@material-ui/core' import { ConfigurationSchema, get...
the_stack
import { ChainFactory } from './ChainFactory'; import { MethodInvocation } from './Invocation/MethodInvocation'; import { InterceptorInvocation } from './Invocation/InterceptorInvocation'; import { ParameterInterceptor } from './Invocation/ParameterInterceptor'; import { PropertyInfo } from '../Interfaces/PropertyInfo'...
the_stack
import { createElement, EmitType } from '@syncfusion/ej2-base'; import { HeatMap } from '../../src/heatmap/heatmap'; import { Title } from '../../src/heatmap/model/base'; import { ILoadedEventArgs } from '../../src/heatmap/model/interface'; import { Legend, LegendSettings } from '../../src/heatmap/legend/legend'; impor...
the_stack
import Koa from 'koa'; import config from 'config'; import autoBind from 'auto-bind'; import Logger from '@cardstack/logger'; import { inject } from '@cardstack/di'; import { OrderStatus, OrderState } from '../services/order'; import { WyreOrder, WyreTransfer, WyreWallet } from '../services/wyre'; import Web3 from 'web...
the_stack
import { Activity, Channels, RoleTypes, StatusCodes } from 'botframework-schema'; import { AuthenticateRequestResult } from './authenticateRequestResult'; import type { AuthenticationConfiguration } from './authenticationConfiguration'; import { AuthenticationConstants } from './authenticationConstants'; import { Authe...
the_stack
import Vue from 'vue'; import {SnotifyToast} from './components/toast.model'; import {ToastDefaults} from './toastDefaults'; import {SnotifyToastConfig, Snotify, SnotifyDefaults} from './interfaces'; import {SnotifyStyle} from './enums'; import {SnotifyType} from './types'; import {TransformArgument} from './decorators...
the_stack
export as namespace nerdamer export = nerdamer declare function nerdamer( expression: nerdamer.ExpressionParam, subs?: { [name: string]: string }, option?: keyof nerdamer.Options | (keyof nerdamer.Options)[], location?: nerdamer.int): nerdamer.Expression declare namespace nerdamer { export type ExpressionP...
the_stack
import * as svg from './svgUtil' import { SideBarHost, SideBar } from './sidebar'; import { SpriteHeaderHost, SpriteHeader } from './header'; import { CanvasGrid } from './canvasGrid'; import { ReporterBar } from './reporterBar'; import { Edit, PaintTool, getPaintToolShortcut, PaintEdit, OutlineEdit, LineEdit, ...
the_stack
import { OverlayModule } from '@angular/cdk/overlay'; import { Location } from '@angular/common'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, fakeAsync, flush, TestBed, tick, waitForAsync, } from '@angular/core/testing'; import { MatButtonModule } from ...
the_stack
import React from 'react'; import { render, fireEvent } from '@testing-library/react'; import { axe } from 'jest-axe'; import { typeIs } from '@leafygreen-ui/lib'; import RadioBox from './RadioBox'; import RadioBoxGroup from './RadioBoxGroup'; const className = 'test-radio-box-class'; const { container } = render( ...
the_stack
import {FS, Net} from "../../lib"; const AVATARS_FILE = 'config/avatars.json'; /** * Avatar IDs should be in one of these formats: * - 'cynthia' - official avatars in https://play.pokemonshowdown.com/sprites/trainers/ * - '#splxraiders' - hosted custom avatars in https://play.pokemonshowdown.com/sprites/trainers-c...
the_stack
import { LiveAnnouncer } from '@angular/cdk/a11y'; import { ConnectedPosition, ScrollStrategy, ScrollStrategyOptions, } from '@angular/cdk/overlay'; import { Component, ElementRef, NgZone, ViewChild } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { MatIconRegistry } from '@ang...
the_stack
import * as path from 'path'; import * as util from 'util'; // 3pp import * as _ from 'lodash'; import { fs, SfdxProject } from '@salesforce/core'; import { TypeDefObj } from './typeDefObj'; interface TypeDefObjs { [key: string]: TypeDefObj; } // Constants const METADATA_FILE_EXT = '-meta.xml'; const LWC_FOLDER_...
the_stack
import './layer_list_panel.css'; import svg_controls_alt from 'ikonate/icons/controls-alt.svg'; import svg_eye_crossed from 'ikonate/icons/eye-crossed.svg'; import svg_eye from 'ikonate/icons/eye.svg'; import {deleteLayer, LayerManager, ManagedUserLayer, TopLevelLayerListSpecification} from 'neuroglancer/layer'; impor...
the_stack
import { apply, chain, mergeWith, move, Rule, Tree, url, MergeStrategy, noop, SchematicsException, externalSchematic } from '@angular-devkit/schematics'; import { applyAndLog, addImportStatement, addToNgModule, createOrOverwriteFile, removeFromNgModule, addDependencyInjection, getNgToolkitInfo, updateNgToolkitInfo, a...
the_stack
import { IAddress, IMessage, Message, Prompts, Session, UniversalBot } from 'botbuilder'; import * as chai from 'chai'; import * as chaiAsPromised from 'chai-as-promised'; import { BotTester } from './../../../src/BotTester'; import { TestConnector } from './../../../src/TestConnector'; import { getAdaptiveCard, getAda...
the_stack
import * as Generator from "./generators"; import * as Constant from "./utilities"; import * as Iterator from "./iterators"; import {Enumerable, OrderedEnumerable, IEnumerable, IEnumerator, IGrouping} from "./enumerable"; //----------------------------------------------------------------------------- // Implementati...
the_stack
import {InstanceFactory} from "../instancefactory"; import { HttpRequest } from "../../web/httprequest"; import { HttpResponse } from "../../web/httpresponse"; import { NoomiError } from "../../tools/errorfactory"; import { Util } from "../../tools/util"; import { App } from "../../tools/application"; import { IWebCach...
the_stack
import {Component, OnInit, ViewChild} from '@angular/core'; import {Router, NavigationStart} from '@angular/router'; import {SensorParserConfig} from '../../model/sensor-parser-config'; import {SensorParserConfigService} from '../../service/sensor-parser-config.service'; import {MetronAlerts} from '../../shared/metron-...
the_stack
import {Inject, Injectable, PLATFORM_ID} from '@angular/core'; import {AngularFireLiteApp} from '../core.service'; import {HttpClient} from '@angular/common/http'; import {FirebaseAppConfig} from '../core.config'; import {makeStateKey, TransferState} from '@angular/platform-browser'; import {isPlatformBrowser, isPlatfo...
the_stack
import {hasOwnProperty} from 'core-helpers'; import { Observable, createObservable, isObservable, canBeObserved, isEmbeddable, ObserverPayload } from '@layr/observable'; import {throwError} from '@layr/utilities'; import {possiblyAsync} from 'possibly-async'; import type { Component, TraverseAttributes...
the_stack
function getMainDiv(rootControl: JQuery): JQuery { return rootControl.find('div'); } describe('textFieldDirective: <uif-textfield />', () => { beforeEach(() => { angular.mock.module('officeuifabric.components.textfield'); }); it('should be able to set value', inject(($compile: Function, $rootScope: angul...
the_stack
/// <reference types="long" /> import * as $protobuf from 'protobufjs'; /** Properties of a BatchHeader. */ export interface IBatchHeader { /** BatchHeader signerPublicKey */ signerPublicKey?: string | null | undefined; /** BatchHeader transactionIds */ transactionIds?: string[] | null | undefined; } ...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Location } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { BatchManagementClient } from "../batchManageme...
the_stack
export default class BlowfishEngine { // prettier-ignore static readonly KP: number[] = [ 0x243f6a88, 0x85a308d3, 0x13198a2e, 0x03707344, 0xa4093822, 0x299f31d0, 0x082efa98, 0xec4e6c89, 0x452821e6, 0x38d01377, 0xbe5466cf, 0x34e90c6c, 0xc0ac29b7, 0xc97c50dd, 0x3f84d5b5, 0xb5470917, 0x9216d5d9, 0x8...
the_stack
import { Action, Dictionary, Text, MagicVariable, Variable, List, ContentItemFilter, AdjustOffset, RawParameter } from "./OutputData"; import { ConvertingContext } from "./Converter"; import { Position } from "./Production"; import { CoercionTypeClass } from "./WFTypes/Types"; import { PositionedError } from ...
the_stack
module Cats { var glob = require("glob"); /** * This class represents the total IDE. Wehn CATS is started a single instance of this class * will be created that takes care of rendering all the components and open a project * if applicable. */ export class Ide extends qx.event.Emit...
the_stack
import { MSGraphClient, MSGraphClientFactory } from '@microsoft/sp-http'; import Utilities from './Utilities'; import { IFolder } from '../model/IFolder'; import { IMail } from '../model/IMail'; import { IMailMetadata } from '../model/IMailMetadata'; export default class GraphController { private client: MSGraphClie...
the_stack
import { AutorestNormalizedConfiguration } from "../autorest-normalized-configuration"; import { ConfigurationSchemaProcessor } from "./processor"; import { RawConfiguration } from "./types"; export const AUTOREST_CONFIGURATION_CATEGORIES = { logging: { name: "Logging", }, installation: { name: "Manage i...
the_stack
import { Pos, NoPos, SrcFile, Position } from "../../pos" import { token } from "../../token" import { ByteStr } from "../../bytestr" import { Int64 } from "../../int64" import { Num } from "../../num" import { numconv } from "../../numconv" import { StrWriter } from "../../util" import { Scope, Ent, nilScope } from "...
the_stack
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { Component, EventEmitter, Input, Output } from '@angular/core'; import { ActivatedRoute, NavigationEnd, NavigationStart, Router } from '@angular/router'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { BehaviorS...
the_stack
import { EventEmitter } from "events"; import { expect } from "chai"; import sinon from "sinon"; import { BasicClient } from "../src/BasicClient"; class TestClient extends BasicClient { protected _onMessage = sinon.stub(); protected _sendSubTicker = sinon.stub(); protected _sendSubCandles = sinon.stub(); ...
the_stack
// And then a few modifications, mostly to remove the "duplicate" definitions // of Score/Graph as interfaces and classes. Interfaces become IScore/IGraph. export interface IScore { graph: Graph; version: string; } export interface IGraph { id: string; loadingPolicy?: LoadingPolicy; nodes?: Node[]; edges?:...
the_stack
import { Flowchart } from 'flowchart_class'; import { Rule, GFMap } from 'rule_class'; import _ from 'lodash'; import { Metric } from './metric_class'; import { $GF } from 'globals_class'; import { FlowchartCtrl } from './flowchart_ctrl'; /** * Class FlowchartHandler */ export class FlowchartHandler { $scope: ng.I...
the_stack
import { GlobalProps } from 'ojs/ojvcomponent'; import { ComponentChildren } from 'preact'; import { DataProvider } from '../ojdataprovider'; import { dvtBaseComponent, dvtBaseComponentEventMap, dvtBaseComponentSettableProperties } from '../ojdvt-base'; import { JetElement, JetSettableProperties, JetElementCustomEvent,...
the_stack
import _ from "lodash"; import { IO, Nsp, SocketService, SocketSession, Socket } from "@tsed/socketio"; import { getPostgresPool } from "../../util/persistence/db"; import { KotsAppStore, UndeployStatus } from "../../kots_app/kots_app_store"; import { KotsAppStatusStore } from "../../kots_app/kots_app_status_store"; im...
the_stack
import { ChangeDetectionStrategy, Component, ContentChild, Directive, ElementRef, EmbeddedViewRef, forwardRef, Input, OnChanges, Renderer2, TemplateRef, ViewChild, ViewContainerRef, AfterViewInit, OnDestroy, ChangeDetectorRef, NgZone, Inject } from '@angular/core'; import { eachM...
the_stack
import { when } from 'jest-when'; import * as Config from '@oclif/config'; import * as fs from 'fs-extra'; import * as os from 'os'; import * as path from 'path'; import { Application } from 'lisk-sdk'; import * as application from '../../src/application'; import * as devnetGenesisBlock from '../../config/devnet/genesi...
the_stack
import { ISamlProvider } from '@aws-cdk/aws-iam'; import * as logs from '@aws-cdk/aws-logs'; import { CfnOutput, ConcreteDependable, IDependable, Resource, Token } from '@aws-cdk/core'; import { Construct } from 'constructs'; import { ClientVpnAuthorizationRule, ClientVpnAuthorizationRuleOptions } from './client-vpn-au...
the_stack
import fs from 'fs' import sharp, { AvailableFormatInfo } from 'sharp' import { EventEmitter } from 'events' import { Readable } from 'stream' import { bufferToStream, streamToBuffer } from './Utilities' const DEFAULT_WIDTH: number = 400 export default function Photosaic( sourceImage: PhotosaicImage, subImages: P...
the_stack
import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, Input, OnChanges, SimpleChanges, ViewChild } from '@angular/core'; import { DatabaseInfo } from '@deepkit/orm-browser-api'; import { graphlib, layout } from 'dagre'; import { default as createPanZoom, PanZoom } from 'panzoom'; import { BrowserText } from...
the_stack
import { Test, ExpectType } from "../test"; import { IsNever, IsAny, IsUnion, IteratedType, GeneratorNextType, GeneratorReturnType, AsyncGeneratorNextType, AsyncGeneratorReturnType, PromisedType, // UnionToIntersection, Intersection, IsCallable, IsCons...
the_stack
import * as anchor from '@project-serum/anchor'; import { assert } from 'chai'; import { Program } from '@project-serum/anchor'; import { Admin, BN, MARK_PRICE_PRECISION, PositionDirection, ClearingHouseUser, OrderRecord, getMarketOrderParams, findComputeUnitConsumption, AMM_RESERVE_PRECISION, calculateTrad...
the_stack
import { Action, useDispatch } from '../states/store'; import { AutomatonWithGUI } from '../../AutomatonWithGUI'; import { ChannelWithGUI } from '../../ChannelWithGUI'; import { CurveWithGUI } from '../../CurveWithGUI'; import { batch } from 'react-redux'; import { useAnimationFrame } from '../utils/useAnimationFrame';...
the_stack
import { h } from "@siteimprove/alfa-dom"; import { Err, Ok } from "@siteimprove/alfa-result"; import { Property } from "@siteimprove/alfa-style"; import { test } from "@siteimprove/alfa-test"; import R62, { ComputedStyles, Outcomes } from "../../src/sia-r62/rule"; import { evaluate } from "../common/evaluate"; impor...
the_stack
import { shell } from "electron"; import { normalize, join, extname } from "path"; import { readFile, watch, FSWatcher, pathExists } from "fs-extra"; import { transpile, ModuleKind, ScriptTarget } from "typescript"; import { Nullable } from "../../../shared/types"; import * as React from "react"; import { Spinner } f...
the_stack
import utils = require("../common/utils"); import styles = require("./styles/styles"); import React = require("react"); import ReactDOMServer = require("react-dom/server"); import csx = require('./base/csx'); import {BaseComponent} from "./ui"; import * as ui from "./ui"; import {cast,server} from "../socket/socketClie...
the_stack
import React from 'react'; type ReactProps = { service?: any; selectedContainer: string; }; type DockerComposeCommands = { [prop: string]: string; }; type ServiceOverview = { [prop: string]: any; }; type TwoDimension = { [prop: string]: any; }; const ServiceInfo: React.FC<ReactProps> = ({ service, select...
the_stack
import { BadRequestException, Injectable, InternalServerErrorException, Logger, NotFoundException } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { ShowTime } from './show-time.schema'; import * as mongoose from 'mongoose'; import { CreateDocumentDefinition, Model, Types } from...
the_stack
import { GetTermsOperation, IDocumentStore } from "../../../../src"; import { disposeTestDocumentStore, testContext } from "../../../Utils/TestUtil"; import { AbstractRawJavaScriptCountersIndexCreationTask } from "../../../../src/Documents/Indexes/Counters/AbstractRawJavaScriptCountersIndexCreationTask"; import { Addre...
the_stack
import { assert } from '@canvas-ui/assert' import { Paint, PaintStyle } from '../canvas' import { ContainerLayer, OffsetLayer, TransformLayer } from '../compositing' import { DebugFlags } from '../debug' import { HitTestRoot, SyntheticEvent, SyntheticEventDispatcher, SyntheticEventListener, SyntheticEventMana...
the_stack
import { Component, ElementRef, Injector, OnDestroy, OnInit } from '@angular/core'; import { AbstractComponent } from '@common/component/abstract.component'; import { SourceType, Status } from '@domain/datasource/datasource'; import {PageResult} from '@domain/common/page'; import * as _ from 'lodash'; import { Workspac...
the_stack
import { store, resetApp } from "../../../../appStore" import { IKeyState } from "../key.interface"; import { populateKeyStore3, mockKeyState, keyObjectBuilder } from "./key.methods.helpers"; import { paneType } from "../../../../utilities/interfaces"; import { pushKey, popToFront, popScreen, moveToFront, changeScreen ...
the_stack
import { Loader, FetchLoader, XhrLoader } from './Loader'; import Chunk from './Chunk'; import Clone from './Clone'; import getContext from './getContext'; import { slice } from './utils/buffer'; import isFrameHeader from './utils/isFrameHeader'; import parseMetadata from './utils/parseMetadata'; import warn from './ut...
the_stack
import { grafana, pcp, poller } from '../specs/fixtures'; import { TargetFormat } from '../types'; import { processQueries } from './data_processor'; describe('data processor', () => { it('should create a dataframe and handle missing frames and backward counters', () => { const target = poller.target({ que...
the_stack