text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { HeaderParamExistingKeyOptionalParams, HeaderResponseExistingKeyOptionalParams, HeaderResponseExistingKeyResponse, HeaderParamProtectedKeyOptionalParams, HeaderResponseProtectedKeyOptionalParams, HeaderResponseProtectedKeyResponse, HeaderParamIntegerOptionalParams, HeaderResponseIntegerOptionalP...
the_stack
import { AzureLogger } from "@azure/logger"; import { AbortController } from "@azure/abort-controller"; import { assert } from "chai"; import * as sinon from "sinon"; import { createPipelineRequest, SendRequest, PipelineResponse, createHttpHeaders, RestError, retryPolicy, } from "../src"; describe("retryPo...
the_stack
import { OverlayContainer } from '@angular/cdk/overlay'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { Component, ViewChild } from '@angular/core'; import { waitForAsync, ComponentFixture, inject, TestBed, } from '@angular/core/testing'; import { By } from '@angular/platform-b...
the_stack
import { expect } from "chai"; import { Geometry } from "../../Geometry"; import { Angle } from "../../geometry3d/Angle"; import { GrowableFloat64Array } from "../../geometry3d/GrowableFloat64Array"; import { GrowableXYArray } from "../../geometry3d/GrowableXYArray"; import { GrowableXYZArray } from "../../geometry3d/G...
the_stack
import { URI, UriComponents } from 'vs/base/common/uri'; import { Event, Emitter } from 'vs/base/common/event'; import { IDisposable, DisposableStore, combinedDisposable } from 'vs/base/common/lifecycle'; import { ISCMService, ISCMRepository, ISCMProvider, ISCMResource, ISCMResourceGroup, ISCMResourceDecorations, IInpu...
the_stack
import { SignedOrder } from '@0x/types'; import { from, HttpLink, split } from '@apollo/client'; import { ApolloClient, ApolloQueryResult, FetchResult, InMemoryCache, NormalizedCacheObject, OperationVariables, QueryOptions, } from '@apollo/client/core'; import { ApolloLink } from '@apollo/cl...
the_stack
import create from 'zustand' import { persist } from 'zustand/middleware' const createPersistantStore = (initialValue: string | null) => { let state = initialValue const getItem = (): string | null => { getItemSpy() return state } const setItem = (name: string, newState: string) => { setItemSpy(na...
the_stack
import BN from 'bn.js'; import BigNumber from 'bignumber.js'; import { PromiEvent, TransactionReceipt, EventResponse, EventData, Web3ContractContext, } from 'ethereum-abi-types-generator'; export interface CallOptions { from?: string; gasPrice?: string; gas?: number; } export interface SendOptions { ...
the_stack
import { Url } from './../../shared/Utilities/url'; import { SpecPickerComponent } from './../spec-picker/spec-picker.component'; import { SiteService } from 'app/shared/services/site.service'; import { Subscription } from 'rxjs/Subscription'; import { DashboardType } from 'app/tree-view/models/dashboard-type'; import ...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement, Operator } from "../shared"; /** * Statement provider for service [glue](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsglue.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/re...
the_stack
import { I18nHtml } from "@kie-tooling-core/i18n/dist/react-components"; import { Alert } from "@patternfly/react-core/dist/js/components/Alert"; import { Button, ButtonVariant } from "@patternfly/react-core/dist/js/components/Button"; import { Form, FormGroup } from "@patternfly/react-core/dist/js/components/Form"; im...
the_stack
export enum MessageDirection { SEND = 1, RECEIVE } /** * 会话类型 */ export enum ConversationType { PRIVATE = 1, DISCUSSION, GROUP, CHATROOM, CUSTOMER_SERVICE, SYSTEM, APP_SERVICE, PUBLIC_SERVICE, PUSH_SERVICE } /** * 发送状态 */ export enum SentStatus { SENDING = 10, FAILED = 20, SENT = 30, ...
the_stack
import {getFixture} from '../../../../testing/dom'; import {verifyDefaultAdapter} from '../../../../testing/helpers/foundation'; import {setUpFoundationTest, setUpMdcTestEnvironment} from '../../../../testing/helpers/setup'; import {cssClasses, strings} from '../../constants'; import {MDCDismissibleDrawerFoundation} fr...
the_stack
import * as grpcProtoLoader from '@grpc/proto-loader'; import {execFile} from 'child_process'; import * as fs from 'fs'; import {GoogleAuth, GoogleAuthOptions} from 'google-auth-library'; import * as grpc from '@grpc/grpc-js'; import * as os from 'os'; import {join} from 'path'; import {OutgoingHttpHeaders} from 'http'...
the_stack
import hasProperty from './hasProperty' type StyledSpan = { type: 'span' value: string style: string } type PropertySpan = { type: 'property' key: Span value: Span } type ListSpan = { type: 'list' value: Span[] } type Span = string | StyledSpan | PropertySpan | ListSpan type PublicSpan = { value: s...
the_stack
import browsePage from "../../support/pages/browse"; import detailPage from "../../support/pages/detail"; import {Application} from "../../support/application.config"; import {toolbar} from "../../support/components/common"; import "cypress-wait-until"; import detailPageNonEntity from "../../support/pages/detail-nonEnt...
the_stack
import { KubernetesObject } from 'kpt-functions'; import * as apisMetaV1 from './io.k8s.apimachinery.pkg.apis.meta.v1'; // CrossVersionObjectReference contains enough information to let you identify the referred resource. export class CrossVersionObjectReference { // API version of the referent public apiVersion?:...
the_stack
import Point from '../geometry/Point'; import CellState from '../cell/CellState'; import InternalMouseEvent from '../event/InternalMouseEvent'; import ConnectionConstraint from '../other/ConnectionConstraint'; import Rectangle from '../geometry/Rectangle'; import { DIRECTION } from '../../util/Constants'; import { mixI...
the_stack
import { BaseCommandName } from '../types/BaseCommandName'; import { Client } from '../client/Client'; import { Command } from '../command/Command'; import { GuildStorage } from '../storage/GuildStorage'; import { Message } from '../types/Message'; import { Time } from './Time'; /** * Utility class containing handy s...
the_stack
import { AbilitableManageProxyAbilities, NFTokenSafeTransferProxyAbilities, TokenTransferProxyAbilities, XcertCreateProxyAbilities, XcertUpdateProxyAbilities } from '@0xcert/ethereum-proxy-contracts/src/core/types'; import { XcertAbilities } from '@0xcert/ethereum-xcert-contracts/src/core/types'; import { Spec } from...
the_stack
// merged imports from all files import * as ts from 'typescript'; import * as monaco from '@fluentui/monaco-editor'; import CancellationToken = monaco.CancellationToken; import IDisposable = monaco.IDisposable; import IEvent = monaco.IEvent; import IWorkerContext = monaco.worker.IWorkerContext; import Position = monac...
the_stack
import { AfterContentInit, ChangeDetectorRef, ChangeDetectionStrategy, Component, ContentChild, ContentChildren, ElementRef, EventEmitter, OnChanges, Input, OnDestroy, Output, QueryList, SimpleChanges, ViewEncapsulation, } from '@angular/core'; import {coerceBooleanProperty} from '@angular...
the_stack
import React, { ReactNode, Component } from 'react'; import cls from 'classnames'; import PropTypes from 'prop-types'; import { cssClasses, strings } from '@douyinfe/semi-foundation/progress/constants'; import '@douyinfe/semi-foundation/progress/progress.scss'; import { Animation } from '@douyinfe/semi-animation'; impo...
the_stack
import { DebugElement, SimpleChange } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ActivitiContentService, AppConfigService, FormService, setupTestBed, AppsProcessService } from '@alfresco/adf-core'; import { of, throwError } from 'rxjs'; import { MatSelectChange } f...
the_stack
import _ from 'lodash' import { ObjectType, ElemID, BuiltinTypes, PrimitiveType, PrimitiveTypes, isObjectType, InstanceElement, isInstanceElement, CORE_ANNOTATIONS, DetailedChange, getChangeElement, INSTANCE_ANNOTATIONS, ReferenceExpression } from '@salto-io/adapter-api' import { collections } from '@salto-io/lowerdash...
the_stack
import io from 'console-read-write' import BN from 'bn.js' import HDWalletProvider from '@truffle/hdwallet-provider' import Web3 from 'web3' import { Contract } from 'web3-eth-contract' import { HttpProvider } from 'web3-core' import { fromWei, toBN, toHex } from 'web3-utils' import ow from 'ow' import { ether, isSame...
the_stack
import hl=require("../highLevelAST"); import ll=require("../lowLevelAST"); import hlImpl=require("../highLevelImpl"); import jsyaml=require("../jsyaml/jsyaml2lowLevel"); import def=require("raml-definition-system"); import ramlService=def import json2lowlevel = require('../jsyaml/json2lowLevel'); import universes = req...
the_stack
module Kiwi { /** * Each game contains a single Stage which controls the creation and * management of main domElements required for a Kiwi game to work. * This includes the Canvas and the rendering contexts, * as well as the width/height of the game and the position it should be * on the screen. * * @class Sta...
the_stack
'use strict'; import { ConfigurationChangeEvent, ConfigurationTarget } from 'vscode'; import { IApplicationShell, IWorkspaceService } from '../../common/application/types'; import '../../common/extensions'; import { traceError } from '../../common/logger'; import { IFileSystem } from '../../common/platform/types'; imp...
the_stack
import { Game, GameObject, resource, RESOURCE_TYPE } from "@eva/eva.js"; import { RendererSystem } from "@eva/plugin-renderer"; import { Graphics, GraphicsSystem } from "@eva/plugin-renderer-graphics"; import { PhysicsSystem, Physics, PhysicsType } from "@eva/plugin-matterjs"; import { Text, TextSystem } from "@eva/plu...
the_stack
import { FunctionFragment } from '@ethersproject/abi' import { expect } from 'earljs' import { Awaited } from 'earljs/dist/mocks/types' import { BigNumber, BigNumberish, ethers } from 'ethers' import { AssertTrue, IsExact, q18, typedAssert } from 'test-utils' import { DataTypesInput } from '../types/DataTypesInput' im...
the_stack
import { addIcon, MarkdownPostProcessor, MarkdownPostProcessorContext, MarkdownPreviewRenderer, MarkdownRenderChild, MarkdownRenderer, MarkdownView, normalizePath, Notice, Plugin, TFile } from "obsidian"; /* import { prettyPrint as html } from "html"; */ import { syntaxTree ...
the_stack
import type { RawPlugins, RawSpecs } from '@bangle.dev/core'; import { Command, EditorState, Fragment, keymap, Node, Schema, setBlockType, textblockTypeInputRule, TextSelection, } from '@bangle.dev/pm'; import { browser, ContentNodeWithPos, filter, findChildren, findParentNodeOfType, inser...
the_stack
import { Type } from '@angular/core'; import { ComponentFixture, discardPeriodicTasks, fakeAsync, tick, } from '@angular/core/testing'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { createComponent as createComponentInner } from '@terminus/ngx-tools/testing'; import * as ...
the_stack
import * as React from 'react' import { useContext, useRef, useMemo } from 'react' import { OneOrMore, UnknownProps } from '@react-spring/types' import { is, toArray, useForceUpdate, useOnce, usePrev, each, useLayoutEffect, } from '@react-spring/shared' import { Change, ControllerUpdate, ItemKeys, ...
the_stack
import { CPSFunction, Righto, RightoAfter } from '.'; /** Represents a type as either the type itself, a righto of the type, or a promise of the type */ type Flexible<T, ET = any> = T|Promise<T>|Righto<[T | undefined, ...any[]], ET>; /** Accepts an array of types and returns a array of each type OR'd with eventual rep...
the_stack
import * as Models from './models'; import * as Parameters from './parameters'; import { Client } from '../clients'; import { Callback } from '../callback'; import { RequestConfig } from '../requestConfig'; export class IssueRemoteLinks { constructor(private client: Client) {} /** * Returns the remote issue li...
the_stack
import BTree, {IMap} from '.'; import SortedArray from './sorted-array'; // Note: The `bintrees` package also includes a `BinTree` type which turned // out to be an unbalanced binary tree. It is faster than `RBTree` for // randomized data, but it becomes extremely slow when filled with sorted // data, so it's not usua...
the_stack
import { i18n } from '../model/i18n'; import { strings } from '../model/strings'; import { Utils } from './utils'; export interface ContextMenuOptions { width?: number | "auto" isSticky?: boolean items: ContextMenuItemOptions[] } export interface ContextMenuItemOptions { label: string type?: Conte...
the_stack
import * as fs from "fs"; import * as _ from "lodash"; // External types import { Reflection } from "typedoc"; /** * The final documentation JSON will contain an array of sections, * e.g. one for adapters, one for wrappers, etc. Each section will contain * documentation for classes that belong to that section. */...
the_stack
import * as React from 'react' import { SubscriptionCheckoutOptions, UserPlan, } from '@worldbrain/memex-common/lib/subscriptions/types' import LoadingIndicator from 'src/common-ui/components/LoadingIndicator' import { SubscriptionOptionsContainer, PricingGrid, PricingGridCheck, PricingGridPlanS...
the_stack
import * as gregor1 from '../gregor1' export type HasServerKeysRes = { hasServerKeys: boolean } export type APIRes = { status: string body: string httpStatus: number appStatus: string } export enum MobileAppState { FOREGROUND = 'foreground', BACKGROUND = 'background', INACTIVE = 'inactive', BACKGRO...
the_stack
import { expect } from 'chai'; import { ITelemetryBaseEvent, ITelemetryBaseLogger } from '@fluidframework/common-definitions'; import { v4 as uuidv4 } from 'uuid'; import { EditLog } from '../EditLog'; import { Change, ConstraintEffect, Insert, StablePlace, StableRange, Transaction } from '../default-edits'; import { C...
the_stack
"use strict"; import { Socket } from "../node_modules/@types/socket.io"; import { User, Message } from "./user"; import { Game } from "./game"; import { Utils, Colors } from "./utils"; const grawlix = require("grawlix"); export class Server { private _users: Array<User> = []; private _games: Array<Game> = []; p...
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 PI extends...
the_stack
import { PivotEngine, IDataOptions, IDataSet, IAxisSet, IPageSettings, ICustomProperties } from '../../src/base/engine'; import { pivot_dataset, pivot_undefineddata } from '../base/datasource.spec'; import { PivotUtil } from '../../src/base/util'; import { profile, inMB, getMemoryProfile } from '../common.spec'; descr...
the_stack
import $ from "jquery"; import React from "react"; //@ts-ignore import dt from "datatables.net"; //@ts-ignore import dtBs4 from "datatables.net-bs4"; //@ts-ignore import dtReorder from "datatables.net-colreorder"; //@ts-ignore import dtReorderBs4 from "datatables.net-colreorder-bs4"; //@ts-ignore import dtButtons from...
the_stack
import { VOLUME_SERVER_VERSION } from './version'; import { LimitsConfig, ServerConfig } from '../config'; export function getSchema() { function detail(i: number) { return `${i} (${Math.round(100 * LimitsConfig.maxOutputSizeInVoxelCountByPrecisionLevel[i] / 1000 / 1000) / 100 }M voxels)`; } const ...
the_stack
export const getLocalization = (culture: string): any => { let localization = null; switch (culture) { case 'de': localization = { // separator of parts of a date (e.g. '/' in 11/05/1955) '/': '/', // separator of p...
the_stack
import * as recast from 'recast' // locals import '../../../jest.setup' import { parseFile, ParsedSvelteFile } from './parse' describe('parser tests', () => { test('happy path - separate module and instance script', async () => { const doc = ` <script context="module"> console.log('module') </script> <scr...
the_stack
import * as Calendar_ColorUtils from "./Utils/Color"; import * as Calendar_Contracts from "./Contracts"; import * as Calendar_Utils_Guid from "./Utils/Guid"; import { timeout } from "./Utils/Promise"; import * as Controls from "VSS/Controls"; import * as Culture from "VSS/Utils/Culture"; import * as Utils_Date from "V...
the_stack
* A visitor to visit a Java method. The methods of this class must be called in * the following order: ( <tt>visitParameter</tt> )* [ * <tt>visitAnnotationDefault</tt> ] ( <tt>visitAnnotation</tt> | * <tt>visitParameterAnnotation</tt> <tt>visitTypeAnnotation</tt> | * <tt>visitAttribute</tt> )* [ <tt>visitCode</tt> ...
the_stack
import { INestApplication } from '@nestjs/common' import { Test } from '@nestjs/testing' import { KubernetesManifest } from '../../../../app/v2/core/integrations/interfaces/k8s-manifest.interface' import * as request from 'supertest' import { EntityManager } from 'typeorm' import { AppModule } from '../../../../app/app...
the_stack
import { Collection, Db, ObjectID, IndexOptions } from 'mongodb'; import { CreateUserServicePassword, DatabaseInterfaceServicePassword, User } from '@accounts/types'; import { toMongoID } from './utils'; export interface MongoUser { _id?: string | object; username?: string; services: { password?: { bcr...
the_stack
import { describe } from 'mocha' import { restore, fake, replace, spy } from 'sinon' import { ReadModelStore } from '../../src/services/read-model-store' import { buildLogger } from '../../src/booster-logger' import { Level, Logger, BoosterConfig, EventEnvelope, UUID, ProviderLibrary, ReadModelAction, O...
the_stack
import React, { Component } from 'react' import NodeEditor from './NodeEditor' import ColorInput from '../inputs/ColorInput' import InputGroup from '../inputs/InputGroup' import ImageInput from '../inputs/ImageInput' import CompoundNumericInput from '../inputs/CompoundNumericInput' import NumericInputGroup from '../inp...
the_stack
import { setSubtreeVisibility } from '../../../mol-plugin/behavior/static/state'; import { PluginCommands } from '../../../mol-plugin/commands'; import { PluginContext } from '../../../mol-plugin/context'; import { StateTransform, StateTree } from '../../../mol-state'; import { SetUtils } from '../../../mol-util/set'; ...
the_stack
// IMPORTANT // This file was generated by https://github.com/Bolisov/google-api-typings-generator. Please do not edit it manually. // In case of any problems please post issue to https://github.com/Bolisov/google-api-typings-generator // Generated from: https://androiddeviceprovisioning.googleapis.com/$discovery/rest?...
the_stack
import * as path from "path"; import * as Uuid from "uuid/v4"; import * as vscode from "vscode"; import ArduinoActivator from "../arduinoActivator"; import ArduinoContext from "../arduinoContext"; import * as Constants from "../common/constants"; import * as JSONHelper from "../common/cycle"; import { DeviceContext } f...
the_stack
import React from 'react' import classnames from 'classnames' import { ViewModelVisualTypes } from 'containers/View/constants' import DropboxItem from './DropboxItem' import DropboxContent from './DropboxContent' import ColorPanel from '../ColorPanel' import SizePanel from '../SizePanel' import { IChartInfo, WidgetMod...
the_stack
import { nodeMarker, insertAfter, isBooleanAttribute, objectFromArray, runLifecycle } from './util'; import { MemoryOptions, MosaicComponent } from './options'; import { OTT, _repaint } from './templating'; import MAD from './mad'; /** Represents a piece of dynamic content in the markup. */ export default class Memory...
the_stack
import * as React from "react"; import { WebPartContext } from "@microsoft/sp-webpart-base"; import commonServices from "../Common/CommonServices"; import * as stringsConstants from "../constants/strings"; import styles from "../scss/TOTEnableTournament.module.scss"; import * as strings from "../constants/strings"; //...
the_stack
import type { BaseNode } from 'estree' import type * as jsxType from 'estree-jsx' import { name as isIdentifierName } from 'estree-util-is-identifier-name' import { walk } from 'estree-walker' import { analyze } from 'periscopic' import specifiersToObjectPattern from '../estree/specifiers-to-object-pattern' export int...
the_stack
import { ConfigurationTarget, Progress, window, WorkspaceFolder } from "vscode"; import { IdfToolsManager, IEspIdfTool } from "../idfToolsManager"; import * as utils from "../utils"; import { getEspIdfVersions } from "./espIdfVersionList"; import { IEspIdfLink } from "../views/setup/types"; import { getPythonList } fro...
the_stack
* @packageDocumentation * @module VerificationUtils */ import { u8aConcat, hexToU8a, u8aToHex } from '@polkadot/util' import { signatureVerify, blake2AsHex } from '@polkadot/util-crypto' import jsonld from 'jsonld' import { Attestation, CTypeSchema } from '@kiltprotocol/core' import { Crypto, JsonSchema } from '@kil...
the_stack
import { TextRenderer, CellRenderer, GraphicsContext } from '@lumino/datagrid'; import { ViewBasedJSONModel } from './viewbasedjsonmodel'; import { Theme } from '../utils'; import { TransformStateManager } from './transformStateManager'; import { DataGrid } from '@lumino/datagrid'; /** * A custom cell renderer fo...
the_stack
import * as Configuration from "./Configuration"; import * as DataFormat from "./DataFormat"; import * as IC from "./ICProcess"; import * as Streams from "./Streams"; import * as StringEncoding from "./StringEncoding"; import * as Root from "./AmbrosiaRoot"; import * as Utils from "./Utils/Utils-Index"; import Path = r...
the_stack
import { BoxPanel, PanelLayout, Widget } from "@lumino/widgets"; import { Cell, CodeCellModel } from "@jupyterlab/cells"; import { CodeEditorWrapper } from "@jupyterlab/codeeditor"; import { editorServices } from "@jupyterlab/codemirror"; import { INotebookTracker } from "@jupyterlab/notebook"; import { CELLTEST_RU...
the_stack
import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** * Workflow program to be executed by Workflows. * * To get more information about Workflow, see: * * * [API documentation](https://cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows) * * How-to Gu...
the_stack
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; import { SchemaFormModule, SchemaValidatorFactory, ZSchemaValidatorFactory, WidgetRegistry, DefaultWidgetRegistry } from '../../../projects/schema-form/src/public_api'; import {...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement } from "../shared"; /** * Statement provider for service [clouddirectory](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonclouddirectory.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest...
the_stack
import { UnformattedClosureCodeBlock, TokenType, UnformattedSyntaxTree, UnformattedNonGremlinSyntaxTree, } from '../types'; import { last, neq, pipe } from '../utils'; import { extractGremlinQueries } from './extractGremlinQueries'; const tokenizeOnTopLevelPunctuation = (query: string): string[] => { let wor...
the_stack
import React, { useCallback, useMemo } from "react"; import { useDispatch } from "react-redux"; import { Integration } from "state/integration/types"; import { makePrometheusDashboardRequests } from "./dashboards"; import { useSimpleNotification } from "client/services/Notification"; import * as grafana from "client...
the_stack
import { StepRow } from '../../../components/Timeline/VirtualizedTimeline'; import { createRowDataModel, createStepRow, createStepRowData, createTask, createTaskListSettings, createTaskRow, } from '../../../utils/testhelper'; import { getTaskFromList, getTaskPageLink, makeVisibleRows, shouldApplySea...
the_stack
namespace eui.sys { /** * @private * 需要记录的历史速度的最大次数。 */ let MAX_VELOCITY_COUNT = 4; /** * @private * 记录的历史速度的权重列表。 */ let VELOCITY_WEIGHTS:number[] = [1, 1.33, 1.66, 2]; /** * @private * 当前速度所占的权重。 */ let CURRENT_VELOCITY_WEIGHT = 2.33; /** *...
the_stack
import createAnimation from './animation'; import $tool from './tool'; import PhotoRoot from './PhotoRoot'; import { AnimationInterface, DoubleToucheEvent, PhotoBasic, Point, Rect, Rect2, RectFull, TouchePoint } from './interface'; /** * 主画布 */ export default class PhotoMain implements PhotoBasic{ ...
the_stack
import { DBCore, DBCoreCursor, DBCoreOpenCursorRequest, DBCoreQueryRequest, DBCoreIndex, DBCoreKeyRange, DBCoreQueryResponse, DBCoreRangeType, DBCoreSchema, DBCoreTableSchema, DBCoreTable, DBCoreMutateResponse, } from "../public/types/dbcore"; import { isArray } from '../functions/utils'; import...
the_stack
import { EncodedAssetParams, EncodedLocalStateSchema, EncodedTransaction } from "algosdk"; export const MIN_UINT64 = 0n; export const MAX_UINT64 = 0xFFFFFFFFFFFFFFFFn; export const MAX_UINT128 = 340282366920938463463374607431768211455n; export const MAX_UINT8 = 255; export const MIN_UINT8 = 0; export const MAX_UINT6 =...
the_stack
import * as THREE from 'three'; import Game from './Game'; import Scene from './Scene'; import { loadSprite } from './scenery/isometric/sprites'; import SampleType from './data/sampleType'; import { BehaviourMode } from './loop/hero'; import { Time } from '../datatypes'; import { compile } from '../utils/shaders'; imp...
the_stack
import tl = require("azure-pipelines-task-lib/task"); import util = require("util"); import { Utility, GitHubAttributes, IRepositoryIssueId, Delimiters, AzureDevOpsVariables, ChangeLogStartCommit, GitHubIssueState, ChangeLogType } from "./Utility"; import { Release } from "./Release"; import { Helper } from "./Helper";...
the_stack
import { BigNumber, Contract as EthersContract } from "ethers" import { defaultAbiCoder, TransactionDescription } from "@ethersproject/abi" import { Log } from "@ethersproject/abstract-provider" import { FunctionFragment, LogDescription } from "ethers/lib/utils" import pLimit from "p-limit" import VError from "verror" ...
the_stack
import { useRef } from 'react'; import { processColor } from 'react-native'; import Animated from 'react-native-reanimated'; // @ts-ignore import parseSVG from 'parse-svg-path'; // @ts-ignore import absSVG from 'abs-svg-path'; // @ts-ignore import normalizeSVG from 'normalize-svg-path'; import { cubicBezierLength } fro...
the_stack
import { SessionDescriptionHandlerOptions, SimpleUser, SimpleUserDelegate, SimpleUserOptions } from "../src/platform/web"; import { nameAlice, nameBob, uriAlice, uriBob, webSocketServerAlice, webSocketServerBob } from "./demo-users"; import { getButton, getDiv, getInput } from "./demo-utils"; // A class which ...
the_stack
import * as React from 'react'; import BootstrapTable, { ColumnDescription, ColumnFormatter, HeaderFormatter } from 'react-bootstrap-table-next'; import filterFactory, { Comparator, multiSelectFilter, numberFilter, selectFilter, textFilter, } from 'react-bootstrap-table2-filter'; import { render } f...
the_stack
import Stream = require("stream"); import File = require("fs"); import Path = require("path"); import OS = require("os"); import Process = require("process"); // Note: The 'import * as Foo from "./Foo' syntax avoids the "compiler re-write problem" that breaks debugger hover inspection import * as Configuration from ".....
the_stack
import assert = require("assert"); import { Assembly } from "../ast/assembly"; import { ResolvedType } from "../ast/resolved_type"; import { MIRInvokeKey } from "../compiler/mir_ops"; import { PCode } from "../compiler/mir_emitter"; enum FlowTypeTruthValue { True = "True", False = "False", Unknown = "Unkn...
the_stack
import { Iterate, IterateAction } from 'iteratez'; import { Constants } from './Constants'; import { Day, DayInput, DayProperty } from './Day'; import { durations, Unit } from './DayFunctions'; import { DaySpan } from './DaySpan'; import { FrequencyCheck, FrequencyValue } from './Frequency'; import { Functions as fn }...
the_stack
import ByteBuffer from "bytebuffer"; import { EventEmitter } from "events"; import { NetConnectOpts, Socket } from "net"; import { Transform, TransformCallback, Writable } from "stream"; import { unzip } from "zlib"; import { Coder } from "./coders"; import { PacketRegistryEntry, Side, PacketMetadata } from "./packet";...
the_stack
import Peer from 'simple-peer'; import {v4} from 'uuid'; import {memoize, throttle} from 'lodash'; import {promiseSleep} from './promiseSleep'; import {CommsNode, CommsNodeCallbacks, CommsNodeOptions, SendToOptions} from './commsNode'; import {closeMessage} from './peerMessageHandler'; interface ConnectedPeer { p...
the_stack
import { expect } from "chai"; import { describe } from "razmin"; import { BitstreamReader } from "../bitstream"; import { BitstreamElement } from "./element"; import { Field } from "./field"; describe('BitstreamElement', it => { it('correctly deserializes a basic element in synchronous mode', async () => { ...
the_stack
import { faCalculator, faCheckSquare, faSquare } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Close } from '@mui/icons-material'; import { Alert, Box, Button, ButtonGroup, CardContent, Divider, Grid, Link, MenuItem, Skeleton, Typography } from '@mu...
the_stack
import { expect } from 'chai'; import { each } from '@phosphor/algorithm'; import { StackedPanel, TabBar, TabPanel, Widget } from '@phosphor/widgets'; import { LogWidget } from './widget.spec'; describe('@phosphor/widgets', () => { describe('TabPanel', () => { describe('#constructor()', () => { ...
the_stack
* Typescript definition for ionic framework * Bosa Daniele * * v. 1.0.1 * * Based on Ionic Framework v. 1.0.0-beta.13 (http://ionicframework.com/) * Dependencies: angular.d.ts (https://github.com/borisyankov/DefinitelyTyped/blob/master/angularjs/angular.d.ts) for promises */ /** * Define a global ionic obje...
the_stack
/* Using the same promise polyfill that is used in qunit@2.14.0 (see https://git.io/JtMxC). https://github.com/taylorhakes/promise-polyfill/tree/8.2.0 Copyright 2014 Taylor Hakes Copyright 2014 Forbes Lindesay Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
the_stack
import { Event, EventProcessor } from '@sentry/types'; import { InboundFilters, InboundFiltersOptions } from '../../../src/integrations/inboundfilters'; /** * Creates an instance of the InboundFilters integration and returns * the event processor that the InboundFilters integration creates. * * To test the Inboun...
the_stack
import nock from 'nock'; import path from 'path'; import fs from 'fs'; import Assets from '../src/assets'; import { AssetIDResponse, Asset } from '../src/interfaces'; describe('Teraslice Assets', () => { let assets: Assets; let scope: nock.Scope; beforeEach(() => { assets = new Assets({ ...
the_stack
// This example implements 'dividend', a simple smart contract that will // automatically disperse iota tokens which are sent to the contract to a group // of member addresses according to predefined division factors. The intent is // to showcase basic functionality of WasmLib through a minimal implementation // and no...
the_stack
import {NumericAttribValue, PolyDictionary} from '../../types/GlobalTypes'; import {Vector3} from 'three/src/math/Vector3'; import {Points} from 'three/src/objects/Points'; import {Object3D} from 'three/src/core/Object3D'; import {Mesh} from 'three/src/objects/Mesh'; import {LineSegments} from 'three/src/objects/LineSe...
the_stack
import { PlanStatus, PlanValidation, PlanSecurityType, PlanType } from '@model/plan'; import { ApiImportFakers } from '@fakers/api-imports'; import { deleteApi, exportApi, getApiById, getApiMembers, getApiMetadata, importCreateApi, importUpdateApi, } from '@commands/management/api-management-commands'; im...
the_stack
import CodeMirror from 'codemirror' import 'codemirror/addon/runmode/runmode' import 'codemirror/mode/markdown/markdown' import 'codemirror/mode/javascript/javascript' import 'codemirror/mode/css/css' import 'codemirror/mode/diff/diff' import 'codemirror/lib/codemirror.css' import 'codemirror/addon/edit/continuelist' i...
the_stack