text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
// TypeScript type definitions // // After modifying project's source code make appropriate changes to this file, // especially when you do one of the following: // - add/remove/rename a class // - add/remove/rename a method // - change method signature // declare namespace zipkin { interface Context<T> { setC...
the_stack
import { RSA } from './rsa'; import { IllegalArgumentError, IllegalStateError, SecurityError } from '../other/errors'; import { Sha512 } from '../hash/sha512/sha512'; import { Sha1 } from '../hash/sha1/sha1'; import { Sha256 } from '../hash/sha256/sha256'; import { BigNumber } from '../bignum/bignum'; import { getRando...
the_stack
import * as chai from 'chai'; import * as chaiAsPromised from 'chai-as-promised'; import * as sinon from 'sinon'; import { isEqual } from 'lodash'; import gql from 'graphql-tag'; import { print } from 'graphql'; import * as fetchMock from 'fetch-mock'; import { createApolloFetch, constructDefaultOptions, } from '.....
the_stack
import * as ts from '@terascope/utils'; import { ExecutionContextConfig, RunSliceResult, WorkerSliceState, WorkerStatus, SliceStatus, JobAPIInstances } from './interfaces'; import { WorkerOperationLifeCycle, Slice, sliceAnalyticsMetrics, SliceAnalyticsData } from '../interfaces'; import { Fe...
the_stack
import { useField } from '@/vee-validate'; import { onMounted } from '@vue/runtime-core'; import { mountWithHoc, setValue, flushPromises } from './helpers'; describe('useField()', () => { const REQUIRED_MESSAGE = 'Field is required'; const MIN_MESSAGE = 'Field must be at least 3'; test('validates when value chan...
the_stack
import { LocDictionary } from "../localizationDictionary"; import { ISetupInitArgs, saveSettings } from "./setupInit"; import { IdfMirror, IEspIdfLink, IEspIdfTool, SetupMode, StatusType, } from "../views/setup/types"; import * as idfConf from "../idfConfiguration"; import { ensureDir } from "fs-extra"; impor...
the_stack
import * as filetype from 'file-type'; import * as fs from 'fs'; import { BoundingBox, Document, Page, SpannedTableCell, Table, TableCell, TableRow, Word, Drawing, Text, } from '../../types/DocumentRepresentation'; import * as utils from '../../utils'; import * as CommandExecuter from '../../utils/C...
the_stack
import { workspace, Selection } from 'vscode'; import { resetConfiguration, updateConfiguration } from "../util/configuration"; import { testCommand } from "../util/generic"; suite("Table formatter.", () => { suiteSetup(async () => { await resetConfiguration(); }); suiteTeardown(async () => { ...
the_stack
import { Integrations, JSONObject, JSONValue, SegmentEvent, } from '@/core/events' import { Alias, Facade, Group, Identify, Page, Track } from '@segment/facade' import { Analytics, InitOptions } from '../../analytics' import { LegacySettings } from '../../browser' import { isOffline, isOnline } from '../../core...
the_stack
import assert from 'assert'; import { TypeMap } from '../type'; import Node, { SourceRange, NLAnnotationMap, AnnotationMap, AnnotationSpec, implAnnotationsToSource, nlAnnotationsToSource, } from './base'; import NodeVisitor from './visitor'; import { Value, VarRefValue, EnumValue, BooleanValue ...
the_stack
import { Client, Event } from '@sentry/types'; import { getCurrentHub, Hub, Scope } from '../src'; const clientFn: any = jest.fn(); function makeClient() { return { getOptions: jest.fn(), captureEvent: jest.fn(), captureException: jest.fn(), close: jest.fn(), flush: jest.fn(), getDsn: jest....
the_stack
"use strict"; import { GitRemoteLike, GitRepository } from "git/gitService"; import { toRepoName } from "../git/utils"; import * as paths from "path"; import * as qs from "querystring"; import { URI } from "vscode-uri"; import { SessionContainer } from "../container"; import { Logger } from "../logger"; import { Marker...
the_stack
import { isNullOrUndefined } from "util"; import { deleteAt } from "../Helpers"; import { CssNodeDump } from "./Types"; export default class CssNode { /** A mapping of keys to CSS properties */ private _children: Array<CssNode>; /** Keep track of names added */ private _childNames = new Set<string>()...
the_stack
import * as fs from 'fs'; import { each, endsWith, every, filter, find, first, flatMap, isFunction, map, some, trimStart } from 'lodash'; import { Models } from 'omnisharp-client'; import { DriverState } from 'omnisharp-client'; import { createObservable } from 'omnisharp-client'; import * as path from 'path'; import {...
the_stack
import { Sorts, SortDirection, ConnectableTypeEnum } from "./globalTypes"; // ==================================================== // GraphQL query operation: ChannelTableContentsSet // ==================================================== export interface ChannelTableContentsSet_channel_counts { __typename: "Channe...
the_stack
import { action } from 'mobx'; import { observer } from 'mobx-react-lite'; import React, { useEffect, useState } from 'react'; import { Button, Checkbox, FormField, Grid, Header, Input, Modal, Select, SpaceBetween, StatusIndicator, Table, TokenGroup, } from '@awsui/components-react'; import * as...
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 WorkSpaces...
the_stack
import * as Slider from 'rc-slider'; import * as React from 'react'; import * as CSSModules from 'react-css-modules'; import * as DateTimePicker from 'react-datetime'; import * as TetherComponent from 'react-tether'; import {DateTime} from 'vega-lite/build/src/datetime'; import {FieldRangePredicate} from 'vega-lite/bui...
the_stack
import { $$log, $$hex, assert } from "../utils/debug"; import { copyRange } from "../utils/arrays"; import { Game } from "../types"; import { romhandler } from "../romhandler"; import { scenes } from "./scenes"; import { getRegSetAddress, getRegSetUpperAndLower } from "../utils/MIPS"; import { S2 } from "../audio/S2"; ...
the_stack
import { Bundle, Messages } from '../i18n/i18n'; import { Destroyable } from '../core/Destroyable'; import { Evented, EventType, EventObject } from '../core/Evented'; import Map from '../shim/Map'; import WeakMap from '../shim/WeakMap'; import { RegistryHandler } from './RegistryHandler'; /** * Generic constructor ty...
the_stack
"use strict"; import dynamicProto from "@microsoft/dynamicproto-js"; import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore" import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration"; import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger"; import { I...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormFax { interface Header extends DevKit.Controls.IHeader { /** Enter the user or team who is assigned to manage the record. This field is updated every time the record is assigned to a different user. */ OwnerId: DevKit.Con...
the_stack
* The parser for Human2Regex * @packageDocumentation */ import { EmbeddedActionsParser, IOrAlt, IToken } from "chevrotain"; import * as T from "./tokens"; import { CountSubStatementCST, UsingFlags, MatchSubStatementType, MatchSubStatementValue, MatchSubStatementCST, UsingStatementCST, RegularExpressionCST, Statement...
the_stack
import type { BabelFileResult, PluginObj } from "@babel/core"; import * as babel from "@babel/standalone"; import type { ExportDeclaration, Expression, ExpressionStatement, Identifier, ImportDeclaration, Program, SpreadElement, Statement, StringLiteral, } from "@babel/types"; import type { SyntaxNode,...
the_stack
import * as THREE from "three"; import CameraControl from "./CameraControl"; import Motion from "./Motion"; import View3DError from "~/View3DError"; import Camera from "~/core/camera/Camera"; import { getElement } from "~/utils"; import { EVENTS, MOUSE_BUTTON } from "~/consts/event"; import { CURSOR } from "~/consts/cs...
the_stack
declare var describe: any; import { folderBasedTest, testParseToken } from './TestHelpers'; import { expect } from 'chai'; import { ParsingContext } from '../dist/compiler/ParsingContext'; import { printAST } from '../dist/utils/astPrinter'; import { nodeSystem } from '../dist/support/NodeSystem'; import { printErrors...
the_stack
import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; // mqtt import {Chat21Service} from './chat-service'; // models import { ConversationModel } from '../../models/conversation'; // services import { ConversationsHandlerService } from '../abstract/conversations-handler.service'; // u...
the_stack
import * as vscode from "vscode"; import { executeCommand, ExpectedDocument, groupTestsByParentName } from "../utils"; suite("./test/suite/commands/search.md", function () { // Set up document. let document: vscode.TextDocument, editor: vscode.TextEditor; this.beforeAll(async () => { document = await...
the_stack
import { Data, EncodeEntry, expressionFunction, Mark, OnEvent, parse, Scale, Signal, Spec, View, Warn } from "vega"; import { View1D } from "../api"; import { Config } from "../config"; import { extent, repeatInvisible } from "../util"; export const darkerBlue = "#4c78a8"; export function loadin...
the_stack
import { EventBus } from '../../core/modules/EventBus'; import { Data } from '../Data/Data'; import { ApiClient } from '../ApiClient/ApiClient'; import { IMapRequest, IMapResponse, IRequest, TMethod } from '../ApiClient/ApiClient.types'; import * as CONSTANTS from '../../constants'; import { SetPurchaseAttributes } ...
the_stack
import * as JSONX from "./index"; import mochaJSDOM from "jsdom-global"; import chai from "chai"; import sinon from "sinon"; import React from "react"; import ReactTestUtils from "react-dom/test-utils"; // ES6 import ReactDOM from "react-dom"; import ReactDOMElements from "react-dom-factories"; import { expect ...
the_stack
import {assert} from 'chrome://resources/js/assert.m.js'; import {loadTimeData} from 'chrome://resources/js/load_time_data.m.js'; import {FilePath} from 'chrome://resources/mojo/mojo/public/mojom/base/file_path.mojom-webui.js'; import {Url} from 'chrome://resources/mojo/url/mojom/url.mojom-webui.js'; import {isNonEmpt...
the_stack
import * as vscode from 'vscode'; import { angularCollectionName, extensionName } from '../defaults'; import { Output, FileSystem, Terminals } from '../utils'; import { Workspace, WorkspaceFolderConfig } from '../workspace'; import { Collection, Schematic } from '../workspace/schematics'; import { shortcutsConfirmatio...
the_stack
import SObject from '../Core/SObject'; import Actor from '../Core/Actor'; import GameMode from '../Info/GameModeActor'; import LevelScriptActor from '../Info/LevelScriptActor'; import Engine from '../Core/Engine'; import World from '../Core/World'; import Level from '../Core/Level'; import EventManager from '../Event/E...
the_stack
import { Line, Segment } from './line'; import { Matrix } from './matrix'; import { Sylvester, OutOfRangeError, InvalidOperationError } from './sylvester'; import { Vector } from './vector'; import { isPlaneLike, isLineLike, isSegmentLike, isVectorOrListLike, VectorOrList, Geometry, } from './likeness'; ex...
the_stack
import { Colors } from '../constants/Colors'; import { CurveEditorFx } from './CurveEditorFx'; import { CurveEditorFxBg } from './CruveEditorFxBg'; import { CurveEditorGraph } from './CurveEditorGraph'; import { CurveEditorNode } from './CurveEditorNode'; import { ErrorBoundary } from './ErrorBoundary'; import { MouseC...
the_stack
import { ADMIN } from '@/role' import { all, any, anyDisconnected, anyUpdated, connect, connectPhoneWithInvitation, connectWithInvitation, disconnect, disconnection, expectEveryoneToKnowEveryone, joinTestChannel, setup, TestChannel, updated, } from '@/util/testing' describe('connection', (...
the_stack
import * as path from "path"; import { promises } from "fs"; import * as _ from "lodash"; import * as inquirer from "inquirer"; import { ReplayUtils, ReplayState } from "./replayUtils"; const datauri = require("datauri"); // eslint-disable-line @typescript-eslint/no-var-requires const titleize = require("titleize"); //...
the_stack
import { renderHook } from '@testing-library/react-hooks'; import { useWebSocket } from './use-websocket'; import WS from "jest-websocket-mock"; import { Options } from './types'; import { ReadyState } from './constants'; import { parseSocketIOUrl } from './socket-io'; let server: WS; const URL = 'ws://localhost:1234'...
the_stack
import * as coreClient from "@azure/core-client"; export interface ErrorModel { status?: number; message?: string; } export interface Widget { integer?: number; string?: string; } /** Optional parameters. */ export interface DictionaryGetNullOptionalParams extends coreClient.OperationOptions {} /** Contai...
the_stack
import { buildTestingEnvironment } from "../environment/testing/fake"; import { PullRequestReference } from "../github-api/api"; import { LoadedState, ref } from "../storage/loaded-state"; import { MuteConfiguration, NOTHING_MUTED, } from "../storage/mute-configuration"; import { fakePullRequest } from "../testing/...
the_stack
import {NOTE_LENGTH,ACCIDENTAL,CLEF, ARTICULATION, CUE, BRACKET} from './common'; import {HERSHEY,Hershey_entry,ascii_map, get_text_width, FONT} from './hershey'; export interface Element{ tag: string; x: number; y: number; w: number; h: number; [other_options: string]: any } export interface Drawing{ w...
the_stack
import * as async from "../async" import * as path from "path" import * as crypto from "crypto" import { Dictionary } from "../dictionary" import { PuppetASTParser, PuppetASTClass, PuppetASTFunction, Resolver, PuppetASTDefinedType, PuppetASTEnvironment, PuppetASTResource, HieraSourceResolveCallback, ResolvedFu...
the_stack
import * as vscode from "vscode"; import { LeoNode } from "./leoNode"; /** * * For simple interactions in webviews into vscode API */ export interface IVsCodeApi { postMessage(msg: {}): void; setState(state: {}): void; getState(): { [key: string]: any }; } /** * * Types of the various JSON configuratio...
the_stack
declare class Bucket { /** * The bucket's name. * @name Bucket#name * @type {string} */ name: string; /** * A reference to the {@link Storage} associated with this {@link Bucket} * instance. * @name Bucket#storage * @type {Storage} */ storage: Storage; /** * A user project to app...
the_stack
import { VSBuffer, VSBufferReadable, VSBufferReadableStream } from 'vs/base/common/buffer'; import { CancellationToken } from 'vs/base/common/cancellation'; import { ErrorNoTelemetry } from 'vs/base/common/errors'; import { Event } from 'vs/base/common/event'; import { IExpression, IRelativePattern } from 'vs/base/comm...
the_stack
/** * @license Copyright © 2013 onwards, Andrew Whewell * All rights reserved. * * Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyri...
the_stack
import { CancellationToken } from 'vs/base/common/cancellation'; import { Color } from 'vs/base/common/color'; import { IDisposable } from 'vs/base/common/lifecycle'; import { Position } from 'vs/editor/common/core/position'; import { Range } from 'vs/editor/common/core/range'; import * as model from 'vs/editor/common/...
the_stack
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** * The properties of a DigitalTwinsInstance. */ export interface DigitalTwinsPatchProperties { /** * Public network access for the ...
the_stack
import OrderbookUtils from '../../src/lib/OrderbookUtils'; import { ZERO, Big } from '../../src/lib/types'; import createOrderbookUtils from './createOrderbookUtils'; import assert = require('assert'); describe('OrderbookUtils', () => { describe('objects', () => { let obu: OrderbookUtils = null; be...
the_stack
import { addAll, extract, flatMap, isDefined } from '../private/javascript'; import { topoSort } from './toposort'; export interface GraphNodeProps<A> { readonly data?: A; } export class GraphNode<A> { public static of<A>(id: string, data: A) { return new GraphNode(id, { data }); } public readonly depend...
the_stack
import { Clipboard, commands, env, Uri, window } from 'vscode'; import * as Constants from '../common/constants'; import { HttpRequest } from '../models/httpRequest'; import { HttpClient } from './httpClient'; import { EnvironmentVariableProvider } from './httpVariableProviders/environmentVariableProvider'; /* AppId ...
the_stack
import { OptRow } from '@t/options'; import { data as sampleData } from '../../samples/basic'; const CONTENT_WIDTH = 600; // @TODO: Retrieve scrollbar-width from real browser const SCROLLBAR_WIDTH = 17; const containerStyle = { width: `${CONTENT_WIDTH + SCROLLBAR_WIDTH}px` }; const HALF_WIDTH = 3; function getRside()...
the_stack
import * as ui from './utils/ui'; import fs = require('fs'); import path = require('path'); import process = require('process'); import * as api from './api'; import { bold, highlight, JspmUserError, readModuleEnv, isWindows, isURL } from './utils/common'; import globalConfig from './config/global-config-file'; import...
the_stack
import { toAscii } from "@cosmjs/encoding"; import { firstEvent, toListPromise } from "@cosmjs/stream"; import { sleep } from "@cosmjs/utils"; import { ReadonlyDate } from "readonly-date"; import { Stream } from "xstream"; import { HttpClient, RpcClient, WebsocketClient } from "../rpcclients"; import { buildKvTx, ...
the_stack
import React, { useEffect, useState } from 'react' import { DatePicker, Form, Input, Modal, Radio, Select } from 'antd' import dayjs, { Dayjs } from 'dayjs' import { PageEntity } from '@logseq/libs/dist/LSPlugin.user' import Calendar from 'tui-calendar' import type { ICustomCalendar, ISettingsForm } from '../util/type'...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../types"; import * as utilities from "../utilities"; /** * Provides an AWS App Mesh gateway route resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws f...
the_stack
import React, { Component, Fragment } from 'react'; import DragResizeEngine from './drag-resize-engine'; import { observer, computed, globalContext, Editor } from '@alilc/lowcode-editor-core'; import classNames from 'classnames'; import { SimulatorContext } from '../context'; import { BuiltinSimulatorHost } from '../ho...
the_stack
import * as React from 'react' import * as Kb from '../../../common-adapters' import * as Styles from '../../../styles' import {ParticipantsRow} from '../../common' import {isLargeScreen} from '../../../constants/platform' import {SelectedEntry, DropdownEntry, DropdownText} from './dropdown' import Search from './searc...
the_stack
declare module 'passable' { const passable: Passable; const enforce: (value) => PassableNS.IEnforceInstance; const Enforce: PassableNS.IEnforceConstructor; const validate: PassableNS.IValidate; const WARN: PassableNS.IWARN; const FAIL: PassableNS.IFAIL; const VERSION: PassableNS.IVERSION; ...
the_stack
import { Component, OnInit, OnDestroy } from '@angular/core'; import { HttpErrorResponse, HttpResponse } from '@angular/common/http'; import { Subscription } from 'rxjs'; import { JhiEventManager, JhiAlertService } from 'ng-jhipster'; import { Router } from '@angular/router'; import { IBroker } from 'app/shared/model...
the_stack
import { test as _test } from '../testlib'; import * as expect from 'expect'; import * as promisify from 'util.promisify'; import * as getStream from 'get-stream'; import { CMD_TS_NODE_WITH_PROJECT_FLAG, contextTsNodeUnderTest, ROOT_DIR, TEST_DIR, } from '../helpers'; import { dirname, join } from 'path'; impor...
the_stack
import { smRatingModule } from './rating'; describe('Semantic-UI: Components - smRating', function() { 'use strict'; let $scope, $compile, element; beforeEach(angular.mock.module(smRatingModule.name)); beforeEach(inject(function($rootScope, $injector) { $scope = $rootScope.$new(); $compile = $inject...
the_stack
import * as React from 'react'; import * as ReactDom from 'react-dom'; import { IPropertyPaneField, PropertyPaneFieldType, IPropertyPaneCustomFieldProps } from '@microsoft/sp-webpart-base'; import PropertyFieldRichTextBoxHost, { IPropertyFieldRichTextBoxHostProps } from './PropertyFieldRichTextBoxHost'; import { ...
the_stack
import {KEY} from '../../../mdc-dom/keyboard'; import {setUpFoundationTest, setUpMdcTestEnvironment} from '../../../../testing/helpers/setup'; import {MDCChipActionFocusBehavior, MDCChipActionInteractionTrigger, MDCChipActionType} from '../../action/constants'; import {MDCChipAnimation, MDCChipAttributes, MDCChipCssCla...
the_stack
import { Component, Directive, NgZone, OnInit, ViewChild, ElementRef } from '@angular/core'; import { TestBed, ComponentFixture, fakeAsync, tick, waitForAsync } from '@angular/core/testing'; import { IgxScrollInertiaModule, IgxScrollInertiaDirective } from './scroll_inertia.directive'; import {...
the_stack
import { WebGLUniformItem } from "../../interface/backend/webgl/webglContext"; import { WebGLTensor } from "../../interface/backend/webgl/webglTensor"; import { Tensor } from "../../interface/core/tensor"; // Float encode: https://community.khronos.org/t/packing-multiple-floats-into-a-single-float-value/59320/3 export...
the_stack
import { ProtectAccessory, ProtectReservedNames } from "./protect-accessory"; import { ProtectCameraConfig, ProtectNvrConfig } from "unifi-protect"; import { CharacteristicValue } from "homebridge"; export class ProtectSecuritySystem extends ProtectAccessory { private isAlarmTriggered!: boolean; // Configure a se...
the_stack
import Immutable from 'immutable'; import React from 'react'; import {plugins} from '..'; import setPrettyPrint from './setPrettyPrint'; const {Immutable: ImmutablePlugin, ReactElement} = plugins; setPrettyPrint([ReactElement, ImmutablePlugin]); it('does not incorrectly match identity-obj-proxy as Immutable object',...
the_stack
import { BoneData, TransformMode } from "./BoneData"; import { Skeleton } from "./Skeleton"; import { Updatable } from "./Updatable"; import { MathUtils, Vector2 } from "./Utils"; /** Stores a bone's current pose. * * A bone has a local transform which is used to compute its world transform. A bone also has an appli...
the_stack
module Fayde.Controls { export class ScrollViewer extends ContentControl { private static _ScrollBarVisibilityChanged(d: DependencyObject, args: IDependencyPropertyChangedEventArgs) { if (!d) return; if (d instanceof ScrollViewer) { var sv = <ScrollViewer>d; ...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement, Operator } from "../shared"; /** * Statement provider for service [quicksight](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonquicksight.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/late...
the_stack
import type { JSONSchema4, JSONSchema6, JSONSchema7 } from "json-schema"; interface Map<T> { [key: string]: T; } export interface OpenApiObject { openapi: string; info: InfoObject; servers?: ServerObject[]; paths: PathsObject; components?: ComponentsObject; security?: SecurityRequirementObject[]; tags...
the_stack
import Victor from 'victor'; import entityData from './defaultentities'; import Blueprint from './index'; type PositionGrid = { [location: string]: Entity }; type Side = 1 | 2 | 'in' | 'out'; type Color = 'red' | 'green'; type Priority = 'left' | 'right'; type DirectionType = 'input' | 'output'; interface Connection...
the_stack
import Store from '@src/store/store'; import root from '@src/store/root'; import layout from '@src/store/layout'; import seriesData from '@src/store/seriesData'; import category from '@src/store/category'; import legend from '@src/store/legend'; import optionsStore from '@src/store/options'; import theme from '@src/sto...
the_stack
import { expect } from "chai"; import * as ERROR_MSGS from "../../src/constants/error_msgs"; import * as METADATA_KEY from "../../src/constants/metadata_keys"; import { Container, decorate, inject, injectable, interfaces, multiInject, named, tagged, targetName, unmanaged } from "../../...
the_stack
* Unit tests for pooling.ts. */ import * as tfc from '@tensorflow/tfjs-core'; import {Tensor, tensor2d, Tensor2D, tensor3d, tensor4d, tensor5d, Tensor4D, Tensor5D, util} from '@tensorflow/tfjs-core'; import {SymbolicTensor} from '../engine/topology'; import * as tfl from '../index'; import {DataFormat, PaddingMode, ...
the_stack
import sinon = require('sinon') const chai = require('chai') const sinonChai = require('sinon-chai') const expect = chai.expect chai.use(sinonChai) const cache = require('../../data/datacache') const security = require('../../lib/insecurity') const config = require('config') const utils = require('../../lib/utils') de...
the_stack
import { WcListFilterHandler } from '../types/util'; import { MpStackInfo } from '../types/common'; import { WeConsoleScope } from '../types/scope'; export const now = (() => { let p; return (): number => { if (!p) { p = typeof performance !== 'undefined' && 'now' in performance ? performan...
the_stack
import { Component } from 'react'; import { ViewProps, NativeSyntheticEvent } from 'react-native'; export type EasingType = | 'Linear' | 'EaseInQuad' | 'EaseOutQuad' | 'EaseInOutQuad' | 'EaseInCubic' | 'EaseOutCubic' | 'EaseInOutCubic' | 'EaseInQuart' | 'EaseOutQuart' | 'EaseInO...
the_stack
import * as AWS from 'aws-sdk'; import { GetCallerIdentityResponse } from 'aws-sdk/clients/sts'; AWS.config.logger = console; import { CloudFormationCustomResourceEvent, CloudFormationCustomResourceDeleteEvent, CloudFormationCustomResourceCreateEvent, CloudFormationCustomResourceUpdateEvent, } from 'aws-lambda'...
the_stack
function utf8ToUtf16 (utf8_bytes: number[]) { let unicode_codes: number[] = []; let unicode_code = 0; let num_followed = 0; for (let i = 0; i < utf8_bytes.length; ++i) { let utf8_byte = utf8_bytes[i]; if (utf8_byte >= 0x100) { // Malformed utf8 byte ignored. } else if ((utf8_byte & 0xC...
the_stack
import * as crypto from 'crypto'; import { Metric, MetricOptions, MetricProps } from '@aws-cdk/aws-cloudwatch'; import * as iam from '@aws-cdk/aws-iam'; import * as s3 from '@aws-cdk/aws-s3'; import * as cdk from '@aws-cdk/core'; import { Construct } from 'constructs'; import { Code } from './code'; import { Runtime } ...
the_stack
import { KeySet } from '../ojkeyset'; import { DataProvider } from '../ojdataprovider'; import { dvtBaseComponent, dvtBaseComponentEventMap, dvtBaseComponentSettableProperties } from '../ojdvt-base'; import { JetElement, JetSettableProperties, JetElementCustomEvent, JetSetPropertyType } from '..'; export interface ojSu...
the_stack
import { Registration, Writable, DI } from '@aurelia/kernel'; import { Aurelia, customElement, ICustomElementController, IPlatform, IViewModel, LifecycleFlags as LF, IHydratedController as HC, IHydratedParentController as HPC, } from '@aurelia/runtime-html'; import { assert, TestContext } from '@aureli...
the_stack
const enum AzureIotEvent { Connected = 1, Disconnected = 2, Error = 3, GotTwinResponse = 100, } namespace azureiot { export const SECRETS_KEY = "azureiot" export let logPriority = ConsolePriority.Debug; type SMap<T> = { [s: string]: T; } export type Json = any; let _mqttClient: m...
the_stack
* @packageDocumentation * @module asset-manager */ import { Asset } from '../assets/asset'; import SceneAsset from '../assets/scene-asset'; import { legacyCC } from '../global-exports'; import { error, errorID } from '../platform/debug'; import Config, { IAddressableInfo, IAssetInfo, IConfigOption, ISceneInfo } from ...
the_stack
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {WaiterConfiguration} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/conf...
the_stack
import React, { Dispatch, useEffect, useMemo, useRef } from 'react' import { useDispatch, useSelector } from 'react-redux' import type { UniswapInterfaceMulticall } from './abi/types' import { CHUNK_GAS_LIMIT, DEFAULT_CALL_GAS_REQUIRED } from './constants' import type { MulticallContext } from './context' import type {...
the_stack
import * as d3 from 'd3'; import '@material/mwc-icon-button-toggle'; // tslint:disable:no-new-decorators import {property} from 'lit/decorators'; import {customElement} from 'lit/decorators'; import { html, LitElement} from 'lit'; import {classMap} from 'lit/directives/class-map'; import {styleMap} from 'lit/directives...
the_stack
import { RequestType, NotificationType } from 'vscode-jsonrpc'; /** * Position in a text document expressed as zero-based line and character offset. */ export interface Position { /** * Line position in a document (zero-based). */ line: number; /** * Character offset on a line in ...
the_stack
import * as service from '../src/service'; import * as embed from '../src/embed'; import * as report from '../src/report'; import * as create from '../src/create'; import * as factories from '../src/factories'; import { EmbedUrlNotSupported } from '../src/errors'; // Todo: remove JQuery usage from this tests file. fu...
the_stack
import { blockchainTests, constants, expect, getRandomInteger, Numberish, randomAddress, } from '@0x/contracts-test-utils'; import { AuthorizableRevertErrors } from '@0x/contracts-utils'; import { AssetProxyId } from '@0x/types'; import { AbiEncoder, BigNumber, hexUtils, StringRevertError } from...
the_stack
import { declare } from "@babel/helper-plugin-utils"; import hoistVariables from "@babel/helper-hoist-variables"; import { template, types as t } from "@babel/core"; import { getImportSource } from "babel-plugin-dynamic-import-node/utils"; import { rewriteThis, getModuleName } from "@babel/helper-module-transforms"; im...
the_stack
import assert from "assert"; import { db } from "../../src/databases/databases"; import { UserID } from "../../src/types/user.model"; import { getHash } from "../../src/utils/getHash"; import { getReputation, calculateReputationFromMetrics } from "../../src/utils/reputation"; describe("reputation", () => { // cons...
the_stack
import { IConnector, IConnectorOpts, ICryptoLib, ITransportLib, ISessionStorage, IEncryptionPayload, ISocketMessage, ISessionStatus, ISessionError, IJsonRpcResponseSuccess, IJsonRpcResponseError, IJsonRpcRequest, ITxData, IClientMeta, IParseURIResult, ISessionParams, IUpdateChainParams...
the_stack
import { Address, DomOperation, Operation } from '@stencila/stencila' import { collab, receiveTransaction, sendableSteps } from 'prosemirror-collab' import { baseKeymap } from 'prosemirror-commands' import { dropCursor } from 'prosemirror-dropcursor' import { gapCursor } from 'prosemirror-gapcursor' import { history } ...
the_stack
import type { Nullable } from "@thi.ng/api"; import { isArray } from "@thi.ng/checks/is-array"; import { isFunction } from "@thi.ng/checks/is-function"; import { isIterable } from "@thi.ng/checks/is-iterable"; import { ESCAPES } from "@thi.ng/strings/escape"; import { split } from "@thi.ng/strings/split"; import type {...
the_stack
import express from 'express'; import * as bodyParser from 'body-parser'; import { Server } from 'http'; let server: Server; // holds server object for shutdown /** * Starts the server at the given port */ export function startServer(PORT: number) { const app = express(); app.use(bodyParser.text()); app.use(...
the_stack
module Kiwi.Geom { /** * An area defined by its position, as indicated by its top-left corner (x,y) and width and height * * @class Rectangle * @namespace Kiwi.Geom * @constructor * @param [x=0] {Number} The x coordinate of the top-left corner of the rectangle. * @param [y=0] {Number} The y coordinate of the t...
the_stack