text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { assert } from 'chai'; import _set from 'lodash/set'; import configApp from '../helpers/config-app'; import getInitDb from '../helpers/get-init-db'; import { populate } from '../../src'; let provider: any; ['array', 'obj'].forEach(type => { describe(`services populate - include 1:1 - ${type}`, () => { ...
the_stack
import { KTX2ChannelETC1S, KTX2ChannelUASTC, KTX2Container, KTX2DataFormatDescriptorBasicFormat, KTX2GlobalDataBasisLZ, KTX2Model, KTX2SupercompressionScheme, KTX2Transfer, read, } from 'ktx-parse'; import CGAPIResourceRepository from '../../foundation/renderer/CGAPIResourceRepository'; import WebGLCo...
the_stack
import { d3, setMouseEvent, initChart } from './c3-helper' describe('c3 chart interaction', function() { 'use strict' var chart, args const moveMouseOut = () => setMouseEvent(chart, 'mouseout', 0, 0, d3.select('.c3-event-rect').node()) const moveMouse = (x = 0, y = 0) => setMouseEvent(chart, 'mousem...
the_stack
import { Installation, Subscription } from "../../models"; import getAxiosInstance from "./axios"; import { getJiraId } from "../util/id"; import { AxiosInstance, AxiosResponse } from "axios"; import Logger from "bunyan"; import issueKeyParser from "jira-issue-key-parser"; import { JiraCommit, JiraIssue } from "../../i...
the_stack
import * as d3Array from 'd3-array'; import * as d3Scale from 'd3-scale'; const d3 = { ...d3Array, ...d3Scale, }; import { Unit } from '../definitions'; import {Plot} from '../charts/tau.plot'; interface JSONSelector { type: string; isLeaf: boolean; isLeafParent: boolean; } export function tra...
the_stack
import {Settings} from 'luxon'; import {applyRules} from 'utils/validate'; import {readFile} from 'fs/promises'; import {join} from 'path'; import rulesJson from '../../__mocks__/ruleset.json'; const rules = rulesJson as any; describe('RuleInterpretor', () => { // Verified test('One dose, valid - oneDoseValid', (...
the_stack
import { ethers, network, upgrades, waffle } from "hardhat"; import { BigNumber, Signer } from "ethers"; import chai from "chai"; import { solidity } from "ethereum-waffle"; import "@openzeppelin/test-helpers"; import { MockERC20, MockERC20__factory, MdexRestrictedStrategyPartialCloseLiquidate, MdexRestrictedSt...
the_stack
import { ForeignColumn, Relationship, getClient, _csvSeed, csvExtractor, generateMethods, query, Relation, } from "./base"; import { readdirSync, statSync } from "fs"; // @ts-ignore import OSPoint from "ospoint"; // @ts-ignore import QueryStream from "pg-query-stream"; import escapeRegex from "escape-s...
the_stack
* CloudFormation spec validator * * "Why not JSON Schema?", you might ask, and it's a fair question. The answer is: * because the error reporting from JSON schema is pretty bad, and I want the validation * errors reported from this check to be blindingly obvious, as non-spec-experts * are going to have to consume ...
the_stack
import { ApprovalRequestData } from "../../../ComplexProperties/ApprovalRequestData"; import { BoolPropertyDefinition } from "../../../PropertyDefinitions/BoolPropertyDefinition"; import { ByteArrayPropertyDefinition } from "../../../PropertyDefinitions/ByteArrayPropertyDefinition"; import { ComplexPropertyDefinition ...
the_stack
import { nextTick } from 'process' import dedent from 'dedent' import { Disposable, Position, Range, TextEditor, window, workspace, } from 'vscode' import { LanguageParser } from './parser' jest.mock('lodash.debounce') jest.mock('vscode') describe('Language parser', () => { describe('constructor', () =>...
the_stack
import { IncomingMessage } from "http"; import * as http from "http"; import * as https from "https"; import { get } from "lodash"; import * as parseLinkHeader from "parse-link-header"; import * as url from "url"; import { UrlObject } from "url"; import * as createUrlRegex from "url-regex"; import { ASJsonLdProfileCont...
the_stack
import * as Langs from '../definitions/languages'; import * as Graph from '../definitions/graph'; import * as Values from '../definitions/values'; import {createOutputPreview} from '../editors/editor'; import { h } from 'maquette'; import { Md5 } from 'ts-md5'; import axios from 'axios'; import { AsyncLazy } from '....
the_stack
import { DOCUMENT_PERMISSION_LEVELS } from '../constants.mjs'; import { hasImageExtension, isColorString, isJSON } from './validators.mjs'; import { Document } from '../abstract/module.mjs'; import { FieldReturnType } from '../../../types/helperTypes'; /** * A required boolean field which may be used in a Document. ...
the_stack
import { HttpSuccess } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { HttpInfrastructureClient } from "../httpInfrastructureClient"; import { HttpSuccessHead200OptionalParams, ...
the_stack
import * as cdk from '@aws-cdk/core'; import { EmrCreateCluster } from '../emr-create-cluster'; import { EmrModifyInstanceGroupByName } from '../emr-modify-instance-group-by-name'; /** * Render the KerberosAttributesProperty as JSON * * @param property */ export function KerberosAttributesPropertyToJson(property: ...
the_stack
// Generate and SLR parser, given a grammar // This is JavaScript version of almond-nnparser/grammar/slr.py const DEBUG = false; class ItemSetInfo { id : number; intransitions : Array<[number, string]>; outtransitions : Array<[number, string]>; constructor() { this.id = 0; this.intran...
the_stack
import './invlerp.css'; import svg_arrowLeft from 'ikonate/icons/arrow-left.svg'; import svg_arrowRight from 'ikonate/icons/arrow-right.svg'; import {DisplayContext, IndirectRenderedPanel} from 'neuroglancer/display_context'; import {WatchableValueInterface} from 'neuroglancer/trackable_value'; import {animationFrameD...
the_stack
import * as React from "react" import { observer } from "mobx-react" import { observable, computed, action, runInAction, reaction, IReactionDisposer, } from "mobx" import parse from "csv-parse" import unidecode from "unidecode" import FuzzySet from "fuzzyset" import { AdminLayout } from "./Adm...
the_stack
import { NodeTypes, ElementNode, TransformContext, TemplateChildNode, SimpleExpressionNode, createCallExpression, HoistTransform, CREATE_STATIC, ExpressionNode, ElementTypes, PlainElementNode, JSChildNode, TextCallNode, ConstantTypes } from '@vue/compiler-core' import { isVoidTag, isStri...
the_stack
import * as GObject from "@gi-types/gobject"; import * as Gio from "@gi-types/gio"; import * as GLib from "@gi-types/glib"; export const INVALID: number; export const MAJOR_VERSION: number; export const MICRO_VERSION: number; export const MINOR_VERSION: number; export const URI_FOR_MODULE_WITH_VERSION: number; export ...
the_stack
namespace ts { /** * Partial interface of the System thats needed to support the caching of directory structure */ export interface DirectoryStructureHost { fileExists(path: string): boolean; readFile(path: string, encoding?: string): string | undefined; // TODO: GH#18...
the_stack
declare module 'dns' { // Supported getaddrinfo flags. const ADDRCONFIG: number; const V4MAPPED: number; /** * If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as * well as IPv4 mapped IPv6 addresses. */ const ALL: number; interface LookupOptions { family?: ...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * A Google Cloud IoT Core device. * * To get more information about Device, see: * * * [API documentation](https://cloud.google.com/iot/docs/reference/cloudiot/re...
the_stack
'use strict'; import { DocumentContext } from '@salesforce/salesforcedx-visualforce-markup-language-server'; import { createConnection, Disposable, DocumentRangeFormattingRequest, DocumentSelector, IConnection, InitializeParams, InitializeResult, Position, RequestType, ServerCapabilities, TextDoc...
the_stack
import { nelderMead, bisect, conjugateGradient, zeros, zerosM, norm2, scale } from 'fmin'; import { intersectionArea, circleOverlap, circleCircleIntersection, distance } from './circleintersection'; /** given a list of set objects, and their corresponding overlaps. updates the (x, y, radius) attribute on each set such...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../types"; import * as utilities from "../utilities"; /** * Manages a Kinesis Analytics v2 Application. * This resource can be used to manage both Kinesis Data Analytics for SQL applications and Kinesis Data Analytic...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../types"; import * as utilities from "../utilities"; export class Permissions extends pulumi.CustomResource { /** * Get an existing Permissions resource's state with the given name, ID, and optional extra ...
the_stack
import { Component, Input, OnChanges } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; import dayjs from 'dayjs/esm'; import { CourseManagementService } from '../course-management.service'; import { Color, ScaleType } from '@swimlane/ngx-charts'; import { roundScorePercentSpecifiedByCourse...
the_stack
import { globalBeforeEach } from '../../__jest__/before-each'; import * as models from '../../models'; import { data as fixtures } from '../__fixtures__/nestedfolders'; import { _repairDatabase, database as db } from '../database'; function loadFixture() { const promises: Promise<models.BaseModel>[] = []; for (con...
the_stack
import { app } from './app.js'; declare const angular; /** * Spec Canvas Visuals to render bezier curves and other elements */ app.directive('specCanvas', function ($timeout) { // Bezier Curve Drawing // Basic Curves: // Fast Out, Slow In: cubic-bezier(0.4, 0.0, 0.2, 1) // Linear Out, Slow In: cubic-bezier...
the_stack
import * as angular from "angular"; import {moduleName} from "../module-name"; import * as _ from "underscore"; import OpsManagerRestUrlService from "../services/OpsManagerRestUrlService"; import {AccessControlService} from "../../services/AccessControlService"; import AccessConstants from '../../constants/AccessConsta...
the_stack
import type { CSpellSettings, CustomDictionaryScope, DictionaryDefinitionCustom, DictionaryDefinitionPreferred, DictionaryId, FsPath, GlobDef, LanguageSetting, OverrideSettings, SimpleGlob, } from '@cspell/cspell-types'; export type { CustomDictionaryScope, DictionaryDefi...
the_stack
import { AccessScopeExpression, BindingBehaviorExpression, CallScopeExpression, ExpressionKind, IsBindingBehavior, Scope, LifecycleFlags as LF, SetterObserver } from '@aurelia/runtime'; import { CallBinding, } from '@aurelia/runtime-html'; import { createObserverLocator, createScopeForTest, each...
the_stack
import { PropertyType, TextureChannel, vec3, vec4 } from '../constants'; import { GraphChild, Link } from '../graph/index'; import { GLTF } from '../types/gltf'; import { ColorUtils } from '../utils'; import { ExtensibleProperty } from './extensible-property'; import { COPY_IDENTITY } from './property'; import { Textur...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../types"; import * as utilities from "../utilities"; /** * Provides a AWS Transfer Access resource. * * ## Example Usage * ### Basic S3 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * ...
the_stack
import { BackendBreakpoint, Stack, Variable, VariableObject, MIError } from "./backend" import * as ChildProcess from "child_process" import { EventEmitter } from "events" import { parseMI, MINode } from './mi_parse'; import * as net from "net" import * as fs from "fs" import { posix } from "path" import * as nativePat...
the_stack
* @module Serialization */ import { flatbuffers } from "flatbuffers"; import { BGFBAccessors } from "./BGFBAccessors"; import { CurvePrimitive } from "../curve/CurvePrimitive"; import { LineSegment3d } from "../curve/LineSegment3d"; import { Arc3d } from "../curve/Arc3d"; import { LineString3d } from "../curve/LineStr...
the_stack
import {bindAll, extend, warnOnce, clamp, wrap, ease as defaultEasing, pick} from '../util/util'; import {number as interpolate} from '../style-spec/util/interpolate'; import browser from '../util/browser'; import LngLat from '../geo/lng_lat'; import LngLatBounds from '../geo/lng_lat_bounds'; import Point, {PointLike} ...
the_stack
import {loadUserManager} from 'app/client/lib/imports'; import {ImportSourceElement} from 'app/client/lib/ImportSourceElement'; import {reportError} from 'app/client/models/AppModel'; import {docUrl, urlState} from 'app/client/models/gristUrlState'; import {HomeModel} from 'app/client/models/HomeModel'; import {getWork...
the_stack
import * as Context from "../context" declare global { interface NexusGenCustomOutputProperties<TypeName extends string> { model: NexusPrisma<TypeName, 'model'> crud: any } } declare global { interface NexusGen extends NexusGenTypes {} } export interface NexusGenInputs { AddressInput: { // input ty...
the_stack
import Page = require('../../../../base/Page'); import Response = require('../../../../http/response'); import V1 = require('../../V1'); import serialize = require('../../../../base/serialize'); import { FieldList } from './task/field'; import { FieldListInstance } from './task/field'; import { SampleList } from './tas...
the_stack
import Conditions from '../../../../../resources/conditions'; import NetRegexes from '../../../../../resources/netregexes'; import { Responses } from '../../../../../resources/responses'; import ZoneId from '../../../../../resources/zone_id'; import { RaidbossData } from '../../../../../types/data'; import { Trigg...
the_stack
export enum MOUSE { LEFT = 0, MIDDLE = 1, RIGHT = 2, ROTATE = 0, DOLLY = 1, PAN = 2, } export enum TOUCH { ROTATE = 0, PAN = 1, DOLLY_PAN = 2, DOLLY_ROTATE = 3, } // GL STATE CONSTANTS export enum CullFace { CullFaceNone = 0, CullFaceBack = 1, CullFaceFront = 2, CullFaceFrontBack = 3, } export const Cu...
the_stack
import { Loki } from "../../src/loki"; import { Collection } from "../../src/collection"; import Transform = Collection.Transform; describe("transforms", () => { interface User { name: string; owner?: string; maker?: string; } let db: Loki; let items: Collection<User>; beforeEach(() => { db...
the_stack
import EventEmitter from 'eventemitter3'; import Events from '../Events/index'; import Errors from '../Errors/index'; import Transmuxer from '../Controller/Transmuxer'; import MSEController from '../Controller/MSEController'; import { InitSegment, MediaSegment } from '../Interfaces/Segment'; import MediaConfig from '.....
the_stack
import * as cp from "child_process"; import * as wdio from "webdriverio"; import * as mkdirp from "mkdirp"; import * as kill from "tree-kill"; import { SmokeTestsConstants } from "./smokeTestsConstants"; import { sleep, waitUntil } from "./utilities"; import * as clipboardy from "clipboardy"; import { SmokeTestLogger }...
the_stack
import * as AngularAnimations from '@angular/animations'; import * as AngularCore from '@angular/core'; import * as AngularCommon from '@angular/common'; import * as AngularForms from '@angular/forms'; import * as AngularFlexLayout from '@angular/flex-layout'; import * as AngularFlexLayoutFlex from '@angular/flex-layou...
the_stack
import { Component, OnInit, OnDestroy } from '@angular/core'; import { Subject, forkJoin } from 'rxjs'; import { TranslateService } from '@ngx-translate/core'; import { TranslateReplaceService, WebAppSettingDataService, MessageQueueService, MESSAGE_TO, AnalyticsService, TRACKED_EVENT_LIST } from 'app/shared/services';...
the_stack
import cls from 'classnames'; import React from 'react'; import AutoSizer from 'react-virtualized-auto-sizer'; import { FixedSizeList, VariableSizeList, Align, ListOnScrollProps } from 'react-window'; import { ScrollbarsVirtualList } from '../scrollbars'; export interface IRecycleListProps { /** * 容器高度 * heig...
the_stack
'use strict' namespace altai { const vertexFormatMap = [ [ 1, WebGLRenderingContext.FLOAT, false ], [ 2, WebGLRenderingContext.FLOAT, false ], [ 3, WebGLRenderingContext.FLOAT, false ], [ 4, WebGLRenderingContext.FLOAT, false ], [ 4, WebGLRenderingContext.BYTE, false ], [ 4, WebGLRenderingCont...
the_stack
import { TestBed, fakeAsync, tick, waitForAsync } from '@angular/core/testing'; import { SortingDirection } from '../../data-operations/sorting-expression.interface'; import { IgxTreeGridComponent } from './tree-grid.component'; import { IgxTreeGridModule } from './public_api'; import { IgxTreeGridSortingComponent } fr...
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 Braket ext...
the_stack
* Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { ActivityHandler, AppBasedLinkQuery, ChannelInfo, Channels, FileConsentCardResponse, InvokeResponse, MeetingStartEventDetails, MeetingEndEventDetails, MessagingExtensionAction,...
the_stack
import { Dexie as IDexie } from "../../public/types/dexie"; import { DexieOptions, DexieConstructor } from "../../public/types/dexie-constructor"; import { DbEvents } from "../../public/types/db-events"; //import { PromiseExtended, PromiseExtendedConstructor } from '../../public/types/promise-extended'; import { Table ...
the_stack
declare module com { export module facebook { export class AccessToken { public static class: java.lang.Class<com.facebook.AccessToken>; public static ACCESS_TOKEN_KEY: string; public static EXPIRES_IN_KEY: string; public static USER_ID_KEY: string; public static DATA_ACCESS_EXPIRATION_TIME: string; ...
the_stack
import moment, { Moment } from 'moment'; import { Frame, Page } from 'puppeteer'; import { BaseScraperWithBrowser, LoginOptions, LoginResults } from './base-scraper-with-browser'; import { clickButton, elementPresentOnPage, pageEval, pageEvalAll, setValue, waitUntilElementFound, } from '../helpers/elements-interactio...
the_stack
import lockfile from 'proper-lockfile' import Queue from './Queue' import { Metadata, PublicMetadata } from './Metadata' import { Actor, ActorMsg } from './Actor' import * as Clock from './Clock' import { ToBackendQueryMsg, ToBackendRepoMsg, ToFrontendRepoMsg, DocumentMsg, SignReplyMsg, SealedBoxReplyMsg, ...
the_stack
import React, { useEffect } from 'react' import * as d3 from 'd3' import { D3Selector, D3Transition, useD3 } from 'lib/hooks/useD3' import { FunnelLayout } from 'lib/constants' import { createRoundedRectPath, getConfig, INITIAL_CONFIG, D3HistogramDatum } from './histogramUtils' import { getOrCreateEl, animate, wrap } f...
the_stack
// Controller for Settings screen which controls what is being displayed // and which UI to use. const ParentFrame = (function () { "use strict"; class Choice { label: string; url: string; checked: boolean; } let iFrame = null; let currentChoice = {} as Choice; let def...
the_stack
import {Values, Severity} from "@swim/util"; import type {Tag} from "./Tag"; import type {Mark} from "./Mark"; import type {Input} from "../input/Input"; import type {OutputSettings} from "../output/OutputSettings"; import type {Output} from "../output/Output"; import type {Display} from "../format/Display"; import {Ou...
the_stack
import { useState } from 'react'; import { message, Modal } from 'antd'; import { Content, Header } from '@dtinsight/molecule/esm/workbench/sidebar'; import { FolderTree } from '@dtinsight/molecule/esm/workbench/sidebar/explore/index'; import { debounce } from 'lodash'; import type { IActionBarItemProps, IMenuItemPro...
the_stack
import { Component, OnDestroy, ChangeDetectorRef, ViewContainerRef, ViewChild, Input, AfterContentInit, AfterViewChecked, AfterViewInit, ElementRef, OnChanges } from '@angular/core'; import { Subscription, Subject, Observable } from 'rxjs'; import { ComplexScrollBoxSBVComponent } from './sbv/component'; import { Comple...
the_stack
import { IonicNativePlugin } from '@ionic-native/core'; export declare class HMSScanOriginal extends IonicNativePlugin { Colors: typeof Colors; ScanTypes: typeof ScanTypes; RectStyle: typeof RectStyle; Permission: typeof HMSPermission; ErrorCorrectionLevel: typeof ErrorCorrectionLevel; /** ...
the_stack
import { EventEmitter } from '@angular/core'; import { configureTestSuite } from '../test-utils/configure-suite'; import { IgxTree, IgxTreeNode, IgxTreeSelectionType, ITreeNodeSelectionEvent } from './common'; import { TreeTestFunctions } from './tree-functions.spec'; import { IgxTreeNodeComponent } from './tree-node/t...
the_stack
import { OrderedMap } from "../../common"; // A representation of a type can be either an extended type, or a non-extended type. // Non-extended types are the types you traditionally find in Power Query, eg. `number`, `text`, etc. // // Extended types are an extension to the Power Query language. // For example, you c...
the_stack
import { BehaviorSubject } from 'rxjs'; import { filter, take } from 'rxjs/operators'; import { DexieCloudDB } from '../db/DexieCloudDB'; import { WSConnectionMsg } from '../WSObservable'; import { triggerSync } from './triggerSync'; import Dexie from 'dexie'; import { computeRealmSetHash } from '../helpers/computeReal...
the_stack
import * as React from 'react' import { createApi, setupListeners } from '@reduxjs/toolkit/query/react' import { act, fireEvent, render, waitFor, screen } from '@testing-library/react' import { setupApiStore, waitMs } from './helpers' import { AnyAction } from '@reduxjs/toolkit' // Just setup a temporary in-memory cou...
the_stack
import { Dictionary } from '../../base/dictionary'; import { LineStyle } from '../../base/types'; import { WBorders } from './borders'; import { WUniqueFormat } from '../../base/unique-format'; import { WUniqueFormats } from '../../base/unique-formats'; import { isNullOrUndefined } from '@syncfusion/ej2-base'; /** * ...
the_stack
import { Injectable, EventEmitter, Output } from '@angular/core'; import { Link } from './models/link'; import { Node } from './models/node'; import { SubwayMap } from './models/subway-map'; import { Commit } from '../prototypes/commit'; import * as d3 from 'd3'; import { Color } from './models/color'; import { Electr...
the_stack
import {VideoTexture} from 'three/src/textures/VideoTexture'; import {TextureLoader} from 'three/src/loaders/TextureLoader'; import {Texture} from 'three/src/textures/Texture'; import {CoreWalker} from '../Walker'; import {BaseNodeType} from '../../engine/nodes/_Base'; import {BaseParamType} from '../../engine/params/_...
the_stack
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent } from '@angular/common/http'; import { Inject, Injectable, InjectionToken, Optional } from '@angular/core'; import { APIClientInterface } from './api-client.interface'; import { Observable } from 'rxjs';import { DefaultHttpOptions, HttpOptions } fro...
the_stack
import { addDisposer, cast, resolveIdentifier, getSnapshot, types, SnapshotIn, Instance, } from 'mobx-state-tree' import { autorun } from 'mobx' import assemblyManagerFactory, { assemblyConfigSchemas as AssemblyConfigSchemasFactory, } from '@jbrowse/core/assemblyManager' import PluginManager from '@jbr...
the_stack
import { TestBed, async } from '@angular/core/testing'; import { ChangeDetectorRef } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; // APP import { RenderPipe } from './Render'; import { NovoLabelService } from '../../services/novo-label-service'; // TODO fix specs xdescribe('Render', (...
the_stack
import { ApplySchemaAttributes, command, CommandFunction, ErrorConstant, extension, ExtensionTag, Handler, invariant, isElementDomNode, isString, kebabCase, NodeExtension, NodeExtensionSpec, NodeSpecOverride, NodeWithPosition, omitExtraAttributes, pick, ProsemirrorAttributes, repla...
the_stack
import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; import { Platform } from '@angular/cdk/platform'; import { CdkPortalOutlet, TemplatePortal } from '@angular/cdk/portal'; import { DOCUMENT } from '@angular/common'; import { Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Compon...
the_stack
import { leftPad, createDescribe, createTest, printMethodValues, printTable, } from '../text' import {forIn} from '../forIn' import { DataDecl, BoolDecl, Grouping, Declarator, WordValue, CaseItem, } from './types' import {isDataDecl, isBoolDecl, assertRef, isRef} from './isRef' import {assert} fro...
the_stack
export type BigQueryDataset = object; // BigQueryDatasetList is a list of BigQueryDataset export class BigQueryDatasetList { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More...
the_stack
import {describe, it, afterEach} from 'mocha'; import * as path from 'path'; import * as is from 'is'; import * as sinon from 'sinon'; import * as prototypes from '../protos/protos'; import * as assert from 'assert'; // eslint-disable-next-line @typescript-eslint/no-var-requires const vision = require('../src'); descr...
the_stack
module TDev { export class IntelliItem { public score = 0; public prop:IProperty; public decl:AST.Decl; public nameOverride:string; public imageOverride:string; public lowSearch:boolean; // demote in keyboard search public descOverride:string; publ...
the_stack
* Common utilities used in the hparams plugin. */ import * as d3 from 'd3'; import * as _ from 'lodash'; // ----------------------------------------------------------------------- // Functions for dealing with HParams, Metrics, Columns, // SessionGroups and Schema objects. // In the following routines we use the foll...
the_stack
import { Component, OnInit, Input } from '@angular/core'; import { CloudGemMetricApi } from './api-handler.class'; import { AwsService } from 'app/aws/aws.service'; import { Http } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { ToastsManager } from 'ng2-toastr/ng2-toastr'; import 'rxjs/add...
the_stack
import { ReactNode, forwardRef, Ref, ButtonHTMLAttributes, AnchorHTMLAttributes, HTMLAttributes, FC, } from 'react'; import { css } from '@emotion/react'; import isPropValid from '@emotion/is-prop-valid'; import { ChevronRight, IconProps } from '@sumup/icons'; import styled, { StyleProps } from '../../st...
the_stack
module TDev.RT { export module BingServices { function readBingSearchResponse(response: WebResponse): BingSearchResult[] { var links: BingSearchResult[] = []; try { var json = response.content_as_json(); if (json) { for (var i = 0; ...
the_stack
import { skip } from "rxjs/operators"; import { PLATFORM } from "aurelia-pal"; import { PerformanceMeasurement } from "../../src/store"; import { LogLevel } from "../../src/aurelia-store"; import { createTestStore, testState, createStoreWithStateAndOptions } from "./helpers"; describe("store", () => ...
the_stack
import * as THREE from 'three'; import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js'; import * as glu from './gl_utils'; // @ts-ignore import { mergeBufferGeometries } from 'three/examples/jsm/utils/BufferGeometryUtils.js'; import { SimpleTriangleBVH } from './bvh'; import { MaterialData, TexInfo, MaterialT...
the_stack
/// <reference types="node" /> export interface ClientOptions { /** * How many seconds to wait until retrying a failed server. * @default 60 */ failoverTime?: number; /** * The number of times to retry an operation in lieu of failures. * @default 2 */ retries?: number; ...
the_stack
import { EventEmitter } from 'events'; import { ErrorDetails, ErrorTypes } from '../core/errors'; import LasEvents from '../core/events'; import { LasMainConfig } from '../types/core'; import { AudioSample, AudioTrack, MP4AudioSample, MP4VideoSample, TrackType, VideoSample, VideoTrack, MP4Segment } from '../types/remux...
the_stack
import * as S from "../../sexpr" import { token } from "../../token" import * as Path from "../../path" import { assertEq, assertEqList, assertEqObj, assertThrows, quickcheck } from "../../test" import { Mode as ScanMode } from "../../scanner" import * as ast from "../../ast" import * as api from "../../api" import * a...
the_stack
import { define } from 'elements-sk/define'; import 'elements-sk/checkbox-sk'; import 'elements-sk/error-toast-sk'; import 'elements-sk/icon/alarm-off-icon-sk'; import 'elements-sk/icon/comment-icon-sk'; import 'elements-sk/icon/notifications-icon-sk'; import 'elements-sk/icon/person-icon-sk'; import 'elements-sk/spinn...
the_stack
* Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use t...
the_stack
import { createHash } from "crypto"; import fs from "fs"; import pathlib from "path"; import * as executor from "./executor"; import { createConverter } from "./converter"; import { runInTmpAsync, WaitFileEventFunc, createConverterWithFileWatcher, sleep, } from "./testutil"; import ts from "@tslab/typescript-f...
the_stack
import { Injectable } from '@angular/core'; import { CoreApp } from '@services/app'; import { CoreSites } from '@services/sites'; import { CoreFilterDelegate } from './filter-delegate'; import { CoreFilter, CoreFilterFilter, CoreFilterFormatTextOptions, CoreFilterClassifiedFilters, CoreFiltersGetAv...
the_stack
import { Address, BigInt, Bytes, dataSource } from "@graphprotocol/graph-ts"; import { TransactionManager, LiquidityAdded, LiquidityRemoved, TransactionCancelled, TransactionFulfilled, TransactionPrepared, } from "../../generated/TransactionManager/TransactionManager"; import { AssetBalance, Router, DayMet...
the_stack
import { UserDataWrapper } from "../models/userDataWrapper"; import { Org } from "../models/org"; import { Config } from "../models/config"; import { Controller } from "./controller"; import { SOURCE_TYPE, CONSTANTS, OPERATION, DATA_MEDIA_TYPE, MIGRATION_DIRECTION } from "./statics"; import { SObjectDescribe } from ".....
the_stack
import BigNumber from 'bignumber.js' function setupWallet (): void { cy.createEmptyWallet(true) cy.getByTestID('bottom_tab_dex').click() cy.getByTestID('close_dex_guidelines').click() cy.sendDFItoWallet() .sendDFITokentoWallet() .sendTokenToWallet(['BTC']).wait(3000) cy.getByTestID('bottom_tab_dex')...
the_stack
import { ErrorConstant } from '@remirror/core-constants'; import { assertGet, invariant, isNumber, isString, object } from '@remirror/core-helpers'; import type { AttributesProps, CommandFunction, CommandFunctionProps, FromToProps, MakeNullable, MarkType, MarkTypeProps, NodeType, NodeTypeProps, Prim...
the_stack
export type Direction = 'fwd' | 'back'; type Callback = (err?: Error, result?: any) => void; export interface PinDefinitionObject { /** * Pin number of the PWM output */ PWM: number; /** * Pin number of the first coil output */ IN1: number; /** * Pin number of the second...
the_stack
import {ClipMode} from "../../scripts/clipperUI/clipMode"; import { MainController, MainControllerClass, MainControllerProps, PanelType } from "../../scripts/clipperUI/mainController"; import {Status} from "../../scripts/clipperUI/status"; import {SmartValue} from "../../scripts/communicator/smartValue"; import {Co...
the_stack
import { Component, ViewChild } from '@angular/core'; import { IgxBottomNavComponent } from '../tabs/bottom-nav/public_api'; @Component({ template: ` <div #wrapperDiv> <igx-bottom-nav> <igx-bottom-nav-item> <igx-bottom-nav-header> <igx...
the_stack