text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { IExecuteFunctions, } from 'n8n-core'; import { ICredentialsDecrypted, ICredentialTestFunctions, IDataObject, ILoadOptionsFunctions, INodeExecutionData, INodeType, INodeTypeDescription, NodeCredentialTestResult, } from 'n8n-workflow'; import { formatFeed, formatResults, formatSearch, getId, popu...
the_stack
import { ArrowFunction, Block, ConstructorDeclaration, FunctionDeclaration, FunctionExpression, ModifierFlags, ParameterDeclaration, SyntaxKind, } from 'typescript'; import { emptyArray, ILogger, } from '@aurelia/kernel'; import { Realm, ExecutionContext, } from '../realm.js'; import { $EnvRec...
the_stack
import React, { Component, RefObject } from 'react' import { Animated, ImageBackground, ScrollView, Share, StyleSheet, View, SafeAreaView, NativeSyntheticEvent, NativeScrollEvent } from 'react-native' import { observable, action, computed, reaction } from 'mobx' import { observer } from 'mobx-react' import { boundMetho...
the_stack
import { unset, set, setWith, entries, pickBy, includes, get } from 'lodash'; import { flatStepHeight, wheelChairWashBasin, evaluateWheelmapA11y, evaluateToiletWheelmapA11y } from '../rules/WheelmapA11yRuleset'; export type KoboAttachment = { mimetype: string; download_url: string; filename: string; i...
the_stack
import Vue from "vue"; import Root, { Result } from "../root/root"; import { Component } from "vue-property-decorator"; import { ddragon, mapBackground, Role } from "@/constants"; import Timer from "./timer.vue"; import Members from "./members.vue"; import PlayerSettings from "./player-settings.vue"; import SummonerPi...
the_stack
import type * as mongoose from 'mongoose'; import type { Severity, WhatIsIt } from './internal/constants'; /** * Get the Type of an instance of a Document with Class properties * @example * ```ts * class ClassName {} * const NameModel = getModelForClass(ClassName); * * const doc: DocumentType<ClassName> = await...
the_stack
import { Session } from '@ory/kratos-client' export interface MailMessage { fromAddress: string toAddresses: Array<string> body: string subject: string } declare global { namespace Cypress { interface Chainable { /** * Delete mails from the email server. * * @param options ...
the_stack
import { Tree } from '@angular-devkit/schematics'; import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; import { EOL } from 'os'; import { collectionPath } from './common'; const templateFileName = '__specFileName__.template'; describe('Option: classTemplate', () => { let treeWithCustomClassTe...
the_stack
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed, fakeAsync, tick } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { VersionListComponent } from './version-list.component'; import { setupTestBed } from '@alfresco/adf-core'; import { MatDial...
the_stack
import {assert} from '../../platform/chai-web.js'; import {ChangeType, VersionMap, CollectionOpTypes, CRDTCollection, CollectionOperation} from '../lib-crdt.js'; import {isEmptyChange} from '../internal/crdt.js'; import {simplifyFastForwardOp} from '../internal/crdt-collection.js'; /** Creates an Add operation. */ fun...
the_stack
// ==================================================== // GraphQL query operation: GetCustomer // ==================================================== export interface GetCustomer_getCustomer_createdBy { __typename: "User"; name: string | null; } export interface GetCustomer_getCustomer_addresses { __typename:...
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
import * as angular from 'angular'; import {moduleName} from './module-name'; import {IDGenerator} from '../common/utils/IDGenerator'; export default class HttpService{ cancelPendingHttpRequests: any; getJson: any; AbortableRequestBuilder: any; getAllRequestBuilder: any; get: any; newR...
the_stack
import querystring from 'querystring'; import { Readable } from 'stream'; import AxiosError from 'axios-error'; import axios, { AxiosInstance, AxiosError as BaseAxiosError } from 'axios'; import imageType from 'image-type'; import invariant from 'ts-invariant'; import warning from 'warning'; import { OnRequestFuncti...
the_stack
import { ConnectorBase } from "../internal/ConnectorBase"; import { IWebCommunicator } from "./internal/IWebCommunicator"; import { Invoke } from "../../components/Invoke"; import { IHeaderWrapper } from "../internal/IHeaderWrapper"; import { once } from "../internal/once"; import { DomainError } from "tstl/exception...
the_stack
import { NewExpression, Identifier, TemplateString, ArrayLiteral, CastExpression, BooleanLiteral, StringLiteral, NumericLiteral, CharacterLiteral, PropertyAccessExpression, Expression, ElementAccessExpression, BinaryExpression, UnresolvedCallExpression, ConditionalExpression, InstanceOfExpression, ParenthesizedExpressi...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormSharePointDocumentLocation_Information { interface tab_general_Sections { _272EB814_0769_5EBE_3ED1_E95A0B16853E: DevKit.Controls.Section; url_option: DevKit.Controls.Section; } interface tab_general extends DevKit.Con...
the_stack
import { Component, ElementRef, OnInit } from '@angular/core'; import { FormBuilder } from '@angular/forms'; import { Router } from '@angular/router'; import { Title } from '@angular/platform-browser'; // Third party imports import { Observable } from 'rxjs'; // App imports import { APIClient } from 'src/app/swagger'; ...
the_stack
import * as CodeMirror from 'codemirror' import { Addon, FlipFlop, expandRange, suggestedEditorConfig } from '../core' import { cm_t } from '../core/type' import { splitLink } from './read-link' import { HyperMDState } from '../mode/hypermd'; /**************************************************************************...
the_stack
import * as pb_1 from "google-protobuf"; export namespace blaze.worker { export class Input extends pb_1.Message { constructor(data?: any[] | { path?: string; digest?: Uint8Array; }) { super(); pb_1.Message.initialize(this, Array.isArray(data) ? data :...
the_stack
////interface I { //// methodOfInterface(): number; ////} ////interface I2 { //// methodOfInterface2(): number; ////} ////interface I3 { //// getValue(): string; //// method(): string; ////} ////interface I4 { //// staticMethod(): void; //// method(): string; ////} ////class B0 { //// ...
the_stack
import {TestBed, waitForAsync} from '@angular/core/testing'; import {DateAdapter, MAT_DATE_LOCALE} from '@angular/material/core'; import {Locale} from 'date-fns'; import {ja, enUS, da, de} from 'date-fns/locale'; import {DateFnsModule} from './index'; const JAN = 0, FEB = 1, MAR = 2, DEC = 11; describe('DateFns...
the_stack
import { UnigraphUpsert } from "../types/unigraph" import _, { has, uniqueId } from "lodash"; import { typeMap } from '../types/consts' import { getRandomInt } from "../api/unigraph"; function buildDgraphFunctionFromRefQuery(query: {key: string, value: string}[]) { let string = ""; let string1 = ""; let t...
the_stack
import { setAutoFreeze, produce, enablePatches as enablePatchesWithImmer, } from 'immer'; import { combineReducers, ReducersMapObject, createStore as createStoreWithRedux, PreloadedState, applyMiddleware, Reducer, AnyAction, } from 'redux'; import type { Container, ServiceIdentifiersMap, Modul...
the_stack
import { MarketType, MAX_TRADE_GAS_PERCENTAGE_DIVISOR, } from '@augurproject/sdk-lite'; import { BigNumber } from 'bignumber.js'; import * as _ from 'lodash'; import { Augur } from '../Augur'; import { QUINTILLION } from '../utils'; export interface Order { price: string; amount: string; } export interface Ou...
the_stack
import { createFacet, Facet } from '@react-facet/core' import React, { ReactElement, useEffect, useState } from 'react' import { Fiber } from 'react-reconciler' import { createFiberRoot } from './createFiberRoot' import { createReconciler } from './createReconciler' import { setupHostConfig } from './setupHostConfig' i...
the_stack
import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** * Provides a DigitalOcean database connection pool resource. * * ## Example Usage * ### Create a new PostgreSQL database connection pool * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as digitalocean ...
the_stack
import { expect } from 'chai'; import { Signal } from '@phosphor/signaling'; class TestObject { readonly one = new Signal<this, void>(this); readonly two = new Signal<this, number>(this); readonly three = new Signal<this, string[]>(this); } class ExtendedObject extends TestObject { notifyCount = 0;...
the_stack
import * as coreClient from "@azure/core-client"; export const KeyListResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "KeyListResult", modelProperties: { items: { serializedName: "items", type: { name: "Sequence", element: { ...
the_stack
import { BadRequestException, ConflictException, HttpException, HttpStatus, Injectable, Logger, NotFoundException, OnModuleInit, UnauthorizedException, } from '@nestjs/common'; import { ConfigService } from '../../config'; import { ClusterService } from '../cluster/cluster.service'; import { KubeConte...
the_stack
import { indexOf } from "./utils"; /** * @class Autolinker.HtmlTag * @extends Object * * Represents an HTML tag, which can be used to easily build/modify HTML tags programmatically. * * Autolinker uses this abstraction to create HTML tags, and then write them out as strings. You may also use * this class in you...
the_stack
import * as React from 'react'; import { Dropdown, TextField, Toggle, Link, IconButton, DocumentCard, DocumentCardPreview, IDocumentCardPreviewProps, ImageFit, PrimaryButton, IDropdownOption, ActionButton, Spinner, SpinnerSize } from 'office-ui-fabric-react'; import styles from './SiteDesignEditor.module....
the_stack
import type { ILinksShadow } from "../Options/Interfaces/Particles/Links/ILinksShadow"; import type { IShadow } from "../Options/Interfaces/Particles/IShadow"; import type { Container } from "../Core/Container"; import { getDistance, getDistances } from "./NumberUtils"; import { colorMix, colorToRgb, getStyleFromHsl, g...
the_stack
import {select} from "d3-selection"; // // Create the symbols // export function defineSymbols(baseSvg: SVGElement) { const defs = select(baseSvg).append("defs"); // Build the arrow defs.append("svg:marker") .attr("id", "arrow") .attr("viewBox", "0 -5 10 10") .attr("refX", 18) ...
the_stack
* @file * Support for Render (https://github.com/saalfeldlab/render) servers. */ import {makeDataBoundsBoundingBoxAnnotationSet} from 'neuroglancer/annotation'; import {ChunkManager, WithParameters} from 'neuroglancer/chunk_manager/frontend'; import {makeCoordinateSpace, makeIdentityTransform, makeIdentityTransforme...
the_stack
import { createInvalidStateError } from "./dom-exception" import { Event, getEventInternalData } from "./event" import { EventWrapper } from "./event-wrapper" import { Global } from "./global" import { invokeCallback, isCapture, isOnce, isPassive, isRemoved, Listener, } from "./listener" import ...
the_stack
import * as vscode from 'vscode'; import * as path from 'path'; import { readFile } from 'fs-extra' import { getRawTasks, getTknTasksSnippets } from './tkn-tasks-provider'; import { schemeStorage } from './tkn-scheme-storage' import { pipelineYaml } from './tkn-yaml'; import { Snippet } from './snippet'; import { getTk...
the_stack
import global from '../../../src/shim/global'; import String, * as stringUtil from '../../../src/shim/string'; const { registerSuite } = intern.getInterface('object'); const { assert } = intern.getPlugin('chai'); function testCodePointAt(text: string, codePoint?: number, expected?: number) { assert.strictEqual(strin...
the_stack
import { ArrayHelper, Convert, StringHelper } from "../ExtensionMethods"; import { DateTime } from '../DateTime'; import { Dictionary } from '../AltDictionary'; import { EwsLogging } from '../Core/EwsLogging'; import { EwsServiceJsonReader } from '../Core/EwsServiceJsonReader'; import { EwsServiceXmlWriter } from "../...
the_stack
import { PoolInfo, PoolStats, RewardStats } from '../mempool.interfaces'; import BlocksRepository from '../repositories/BlocksRepository'; import PoolsRepository from '../repositories/PoolsRepository'; import HashratesRepository from '../repositories/HashratesRepository'; import bitcoinClient from './bitcoin/bitcoin-cl...
the_stack
import '@aws-cdk/assert-internal/jest'; import * as ecs from '@aws-cdk/aws-ecs'; import * as sns from '@aws-cdk/aws-sns'; import * as sqs from '@aws-cdk/aws-sqs'; import * as cdk from '@aws-cdk/core'; import { Container, Environment, QueueExtension, Service, ServiceDescription, TopicSubscription } from '../lib'; descr...
the_stack
import { expect } from "chai"; import * as React from "react"; import { ButtonGroupEditorParams, DialogItem, DialogItemValue, DialogPropertySyncItem, PropertyDescription, PropertyEditorParamTypes, SuppressLabelEditorParams, } from "@itwin/appui-abstract"; import { render } from "@testing-library/react"; import { ...
the_stack
import { fileNameFromPath, Headers, HttpDownloadRequestOptions, HttpError, HttpRequestOptions, isImageUrl, SaveImageStorageKey, TNSHttpSettings } from './http-request-common'; import { NetworkAgent } from '@nativescript/core/debugger'; import { File, Folder, knownFolders, path, Utils, Ap...
the_stack
* * == Background == * * Opstrace authentication and session management are both handled independently from * each other. * * We only use Auth0 as a way of proving who the user is and that they control the * email address used. Once this is done we check their email address against the list * of authorised Opst...
the_stack
import Color from 'color' import {Draft, immerable} from 'immer' // @ts-ignore import * as deepcopy from 'deepcopy' import {EffectiveItemInfo} from './data-store' import { dateToDayID, dayIDToDate, daysInMonth, dowOfDayID, } from '../util/time-util' import {Task} from './data-analyzer' import {arrayToMap} from ...
the_stack
import {assert} from '../platform/assert-web.js'; import {ArcId, IdGenerator, Id} from './id.js'; import {Manifest} from './manifest.js'; import {Recipe, Particle} from './recipe/lib-recipe.js'; import {Runtime} from './runtime.js'; import {Dictionary} from '../utils/lib-utils.js'; import {newRecipe} from './recipe/lib...
the_stack
import { EventEmitter } from 'events'; import { IState } from './IState'; import { ClientType } from '../Client'; import { ClockSync } from '../ClockSync'; import { InteractiveError } from '../errors'; import { IClient } from '../IClient'; import { merge } from '../merge'; import { MethodHandlerManager } from '../meth...
the_stack
import { TMapAnyKeyGenericArray } from "./TMapAnyKeyGenericArray"; import { TMapAnyKeyGenericArrays } from "./TMapAnyKeyGenericArrays"; import { TMapAnyKeyGenericValue } from "./TMapAnyKeyGenericValue"; import { TMapAnyKeyGenericSet } from "./TMapAnyKeyGenericSet"; import { TMapNumberKeyGenericArray } from "./TMapNumbe...
the_stack
import { invariant } from '@algomart/shared/utils' import type { Account, Transaction, TransactionSigner } from 'algosdk' import { loadSDK } from './utils' export type MultisigMetadata = { version: number threshold: number addrs: string[] } /** * Wallet transaction type based on ARC-1. * @see https://github.c...
the_stack
import { ModelManager, ModelFile } from 'composer-common'; import { EditorFile } from './editor-file'; import * as sinon from 'sinon'; describe('EditorFile', () => { let file; beforeEach(() => { file = new EditorFile('fileID', 'fileDisplayID', 'fileContent', 'fileType'); }); describe('Editor...
the_stack
export type Json = string | number | boolean | null | undefined | JsonObject | Json[]; export type JsonObject = { [key: string]: Json }; export type JsonData = JsonObject | Json[]; export type DnaForEachCallback = (elem: JQuery, index: number) => void; export type DnaPluginAction = 'bye' | 'clone-sub' | 'destroy' | 'do...
the_stack
// clang-format off import {AccountStorageOptInStateChangedListener, CredentialsChangedListener, PasswordCheckInteraction, PasswordCheckReferrer, PasswordCheckStatusChangedListener, PasswordExceptionListChangedListener, PasswordManagerProxy, PasswordsFileExportProgressListener, SavedPasswordListChangedListener} from 'c...
the_stack
import { Component, OnInit, AfterViewInit, AfterContentInit, ViewEncapsulation, ViewChild, ElementRef } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { JhiAlertService, JhiEventManager } from 'ng-jhipster'; import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import { Gateway } fr...
the_stack
import { Stage } from "./Stage"; import { Element } from "./Element"; export class Texture { private manager = this.stage.textureManager; private id: number = Texture.id++; public static id = 0; // All enabled elements that use this texture object (either as texture or displayedTexture). private...
the_stack
import React, { FC, VFC, useEffect, useState, useRef, useLayoutEffect } from 'react'; import styles from './editor.module.css'; import { editorContextState, editorState } from './state'; import { editorContext } from '.'; import { useProxy } from 'valtio'; import { replaceShaderChunks, generateOBc } from './helpers/for...
the_stack
import { ContextData, FloatingContext, FloatingFocusManager, FloatingOverlay, FloatingPortal, ReferenceType, autoUpdate, detectOverflow, flip, offset, size, useClick, useDismiss, useFloating, useInteractions, useListNavigation, useRole, useTypeahead, } from '@floating-ui/react-dom-in...
the_stack
import { AppInstanceInfo, Node } from "@counterfactual/types"; import { Zero } from "ethers/constants"; import { JsonRpcNotification, JsonRpcResponse } from "rpc-server"; import { AppInstance } from "../src/app-instance"; import { NODE_REQUEST_TIMEOUT, Provider } from "../src/provider"; import { ErrorEventData, Ev...
the_stack
import { Promise } from 'es6-promise'; import * as nano from 'nano'; import * as moment from 'moment'; import * as winston from 'winston'; import config from '../config'; import * as Cloudant from '@cloudant/cloudant'; import tweets = require('../data/SampleTweets'); import { EnrichmentPipeline } from '../util/Enrichme...
the_stack
import { observer } from "mobx-react-lite" import { useCallback, useEffect, useMemo, useState } from "react" import { cloneDeep } from "lodash" import { FormInstance } from "antd" // @Types import { SourceConnector as CatalogSourceConnector } from "@jitsu/catalog/sources/types" import { SetSourceEditorDisabledTabs, Set...
the_stack
import $$observable from 'symbol-observable'; import Cache, { ICache, CacheOptions, mutateKeysLayer, prefixLayer, DataCache } from '@wora/cache-persist'; import isPlainObject from './redux/utils/isPlainObject'; import ActionTypes from './redux/utils/actionTypes'; import { filterKeys } from '@wora/cache-persist/lib/laye...
the_stack
import * as classifierCache from "../../model/classifierCache"; export enum Language { TypeScript, EcmaScript5 } export function createTokenizationSupport(language:Language): monaco.languages.TokensProvider { var classifier = ts.createClassifier(), bracketTypeTable = language === Language.TypeScript ? tsBracket...
the_stack
import m from 'mithril' import { commonNotification } from '../api' import models from '../models' import ProjectEditSaveBtn from '../c/project-edit-save-btn' import { useEffect, useRef, useState, withHooks } from 'mithril-hooks' import { HTMLRenderer } from '../shared/components/html-renderer' import projectVM from '....
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 * as d3 from "d3"; import { assert } from "chai"; import * as Plottable from "../../src"; import { BarOrientation } from "../../src/plots/barPlot"; import * as TestMethods from "../testMethods"; describe("Plots", () => { describe("Vertical Stacked Bar Plot", () => { describe("rendering using positive d...
the_stack
module Encounters { enum Tok { IF = 0, LPAREN = 1, RPAREN = 2, IDENT = 3, OP = 4, INT = 5 } type Token = [Tok, string /* Matched text */, number /* length (or number value for Tok.INT tokens) */]; interface IfNode { type: "if", cond: Node } ...
the_stack
import { PluginObject } from './plugin'; import { AleUIComponent, AleUIComponentSize, AleUIHorizontalAlignment } from './component'; import { AlAlert } from './alert'; import { AlAside } from './aside'; import { AlAutocomplete } from './autocomplete'; import { AlBadge } from './badge'; import { AlBreadcrumb } from './...
the_stack
import { ILayoutManager } from './ILayoutManager'; import { WidgetGroup } from '../WidgetGroup'; import { Widget } from '../Widget'; import { LayoutOptions, ALIGN } from '../layout-options'; import { BorderLayoutOptions } from '../layout-options/BorderLayoutOptions'; import { MeasureMode } from '../IMeasurable'; const...
the_stack
import { AfterContentInit, AfterViewInit, Directive, ElementRef, EventEmitter, forwardRef, HostBinding, HostListener, Inject, Input, OnChanges, OnDestroy, Output, Renderer2, Self, SimpleChange, SimpleChanges } from '@angular/core'; import { DOCUMENT } from '@angular/common'; import { NG_VALUE_ACCESSOR, ControlV...
the_stack
import { ComponentClass } from 'react' import Taro, { Component, Config } from '@tarojs/taro' import { View, Button, Image, Canvas } from '@tarojs/components' import { connect } from '@tarojs/redux' import globalData from '../../services/global_data' import { getSystemInfo } from '../../model/actions/global' import to...
the_stack
import { extender, MessageBuilder, Message, MessageOptions, SplitOptions } from '@klasa/core'; import { Cache } from '@klasa/cache'; import { regExpEsc } from '@klasa/utils'; import { APIMessageData, ChannelType } from '@klasa/dapi-types'; import type { Command } from '../structures/Command'; import type { Language } ...
the_stack
import request from 'supertest'; import { Ethereum } from '../../../src/chains/ethereum/ethereum'; import { patch, unpatch } from '../../services/patch'; import { gatewayApp } from '../../../src/app'; import { NETWORK_ERROR_CODE, RATE_LIMIT_ERROR_CODE, OUT_OF_GAS_ERROR_CODE, UNKNOWN_ERROR_ERROR_CODE, NETWORK_...
the_stack
import colors from 'colors/safe'; import fs from 'fs'; import open from 'open'; import path from 'path'; import { Transform, TransformCallback } from 'stream'; import { FullConfig, Suite, Reporter } from '../../types/testReporter'; import { HttpServer } from 'playwright-core/lib/utils/httpServer'; import { calculateSha...
the_stack
import { Dataset } from "../core/dataset"; import { IAccessor, IRangeProjector, Point } from "../core/interfaces"; import * as Scales from "../scales"; import { IScaleCallback, Scale } from "../scales/scale"; import * as Utils from "../utils"; import { ITransformableAccessorScaleBinding } from "./commons"; import { De...
the_stack
import { ChainId, ContractAddresses } from '@0x/contract-addresses'; import { IZeroExContract } from '@0x/contract-wrappers'; import { encodeAffiliateFeeTransformerData, encodeCurveLiquidityProviderData, encodeFillQuoteTransformerData, encodePayTakerTransformerData, encodePositiveSlippageFeeTransfor...
the_stack
import { ChildProperty, Property, Complex } from '@syncfusion/ej2-base'; import { PointModel, DecoratorShapes } from '@syncfusion/ej2-drawings'; import { Point } from '@syncfusion/ej2-drawings'; import { Size } from '@syncfusion/ej2-drawings'; import { PdfBoundsModel, PdfAnnotationBaseModel, PdfFontModel } from './pdf-...
the_stack
import * as React from "react"; import { BeDuration } from "@itwin/core-bentley"; import { ActivityMessageDetails, ActivityMessageEndReason, IModelApp, NotifyMessageDetails, OutputMessagePriority, OutputMessageType, ScreenViewport, ViewState, } from "@itwin/core-frontend"; import { MapLayersWidgetControl } from "@i...
the_stack
import { Task, RuntimeContext } from '../mol-task'; import { unzip, ungzip } from './zip/zip'; import { utf8Read } from '../mol-io/common/utf8'; import { AssetManager, Asset } from './assets'; // polyfill XMLHttpRequest in node.js const XHR = typeof document === 'undefined' ? require('xhr2') as { prototype: XMLHtt...
the_stack
import { PersistentUnorderedMap, storage, Context, logging, u128, ContractPromiseBatch, PersistentSet, PersistentVector, } from "near-sdk-core"; type NearAccount = string; // example: user.near, user.testnet type ExternalAccount = string; // example: twitter/user //// MODELS // Common const OWNER_ACC...
the_stack
import ws from 'ws' import fs from 'fs' import http from 'http' import crypto from 'crypto' import { EventEmitter } from 'events' import tools from './lib/tools' import User from './online' import Options from './options' /** * 程序设置 * * @class WebAPI * @extends {EventEmitter} */ class WebAPI extends EventEmitter {...
the_stack
import {Observable, Subject} from 'rxjs'; import {Configuration} from './configuration'; import {Base} from './abstract-base'; import {UnitBase} from './abstract-unit-base'; import {NonPrimitiveUnitBase} from './abstract-non-primitive-unit-base'; import { EventListUnitCopyWithin, EventListUnitDelete, EventListUni...
the_stack
module Supler { export class CreateFormFromJson { private idCounter:number = 0; constructor(private renderOptionsGetter:RenderOptionsGetter, private i18n:I18n, private validatorFnFactories:any, private fieldsOptions:FieldsOptions, private fieldO...
the_stack
import type * as ts from "typescript"; import { ParameterType } from "./declaration"; import type { NeverIfInternal } from ".."; import type { Application } from "../../.."; import { insertPrioritySorted, unique } from "../array"; import type { Logger } from "../loggers"; import { convert, DeclarationOption, ...
the_stack
import { Matrix4, JulianDate, Cartesian3, Cartographic, Quaternion, CesiumMath } from './cesium/cesium-imports' /** * Default distance from a user's eyes to the floor */ export const AVERAGE_EYE_HEIGHT = 1.6; /** * Default near plane */ export const DEFAULT_NEAR_PLANE = 0.01; /** * Default far plane */ export ...
the_stack
import { ColorUtils, Expr, getPropertyValue, TEXTURE_PROPERTY_KEYS, Value } from "@here/harp-datasource-protocol"; import { disableBlending, enableBlending, RawShaderMaterial } from "@here/harp-materials"; import * as THREE from "three"; import { evaluateColorProperty } from "./DecodedTileHelpers";...
the_stack
import { App, WebhookInterface } from './app'; import axios from 'axios'; import { Utils } from './utils'; import { Lambda } from 'aws-sdk'; import { Log } from './log'; import { Server } from './server'; import { createHmac } from "crypto"; export interface ClientEventData { name: string; channel: string; ...
the_stack
import { Box, Text, Section, Container, Grid, Code, Heading, Flex, Paragraph, } from '@modulz/design-system'; export function ColorScale01() { return ( <Box> <Grid css={{ gridTemplateColumns: 'repeat(12, minmax(0, 1fr))', gap: 2, ai: 'center', ...
the_stack
export interface paths { '/': { get: { responses: { /** OK */ 200: unknown } } } '/admin_search': { get: { parameters: { query: { user_id?: parameters['rowFilter.admin_search.user_id'] email?: parameters['rowFilter.admin_search.email'] ...
the_stack
import { locStub, generate, NodeTypes, RootNode, createSimpleExpression, createObjectExpression, createObjectProperty, createArrayExpression, createCompoundExpression, createInterpolation, createSequenceExpression, createCallExpression, createConditionalExpression, IfCodegenNode, ForCodege...
the_stack
import * as assert from 'assert'; import { CharCode } from 'vs/base/common/charCode'; import * as platform from 'vs/base/common/platform'; import { URI } from 'vs/base/common/uri'; import { EditOperation } from 'vs/editor/common/core/editOperation'; import { Range } from 'vs/editor/common/core/range'; import { Selectio...
the_stack
module CorsicaTests { var AppBar = <typeof WinJS.UI.PrivateAppBar> WinJS.UI.AppBar; var Command = <typeof WinJS.UI.PrivateCommand> WinJS.UI.AppBarCommand; var _LightDismissService = <typeof WinJS.UI._LightDismissService>Helper.require("WinJS/_LightDismissService"); var Util = WinJS.Utilities; var _C...
the_stack
import { render, svg } from 'lit-html'; import { define } from 'elements-sk/define'; import { Job, Task, TaskDependencies, TaskDimensions, TaskSummaries, TaskSummary, } from '../rpc'; type TaskName = string; export class TaskGraphSk extends HTMLElement { draw(jobs: Job[], swarmingServer: string, select...
the_stack
import { finalize, map, switchMap, tap } from 'rxjs/operators'; import { forkJoin, Observable, of, throwError } from 'rxjs'; import { ODataEntitySetResource, ODataEntityResource, ODataNavigationPropertyResource, ODataEntitiesAnnotations, ODataOptions, ODataEntities, ODataPropertyResource, ODataEntityAn...
the_stack
import {format} from "../Text/Utility"; import {InvalidOperationException} from "../Exceptions/InvalidOperationException"; import {ArgumentException} from "../Exceptions/ArgumentException"; import {ArgumentNullException} from "../Exceptions/ArgumentNullException"; import {EnumeratorBase} from "./Enumeration/EnumeratorB...
the_stack
import { Browser } from '@syncfusion/ej2-base'; import { PointModel } from '../primitives/point-model'; import { Point } from '../primitives/point'; import { IElement, IClickEventArgs, IDoubleClickEventArgs, IMouseEventArgs, StackEntryObject } from '../objects/interface/IElement'; import { UserHandleEventsArgs } from '...
the_stack
import fetchMock from 'jest-fetch-mock'; import NetInfo from '../index'; import NativeInterface from '../internal/nativeInterface'; import {NetInfoStateType, NetInfoCellularGeneration} from '../internal/types'; import {DEVICE_CONNECTIVITY_EVENT} from '../internal/privateTypes'; // Mock modules fetchMock.enableMocks();...
the_stack
import { uriToName } from 'common-utils/uriHelper.js'; import * as vscode from 'vscode'; import { toUri } from '../util/uriHelper'; import { ClientConfigKind, ClientConfigScope, ClientConfigTarget, ClientConfigTargetCSpell, ClientConfigTargetDictionary, ClientConfigTargetVSCode, ConfigKinds,...
the_stack
import { vec3, quat } from 'gl-matrix'; import { lerp, hermite, bezier } from '../../../common/math'; import { Animation, UintAnimation, FloatAnimation, Vector3Animation, InterpolationType } from '../../../parsers/mdlx/animations'; import MdxModel from './model'; /** * Animated data for a specific sequence. */ class...
the_stack
import { FluentIterable, FluentIterableImpl } from '../utils/iterable'; import { SChildElement, SModelElementSchema, SModelRootSchema, SModelIndex, SModelElement, SParentElement } from '../base/model/smodel'; import { boundsFeature, layoutContainerFeature, layoutableChildFeature, Alignable, alignFeature, ModelL...
the_stack
import * as stream from "readable-stream"; import * as path from "path"; import * as fs from "fs"; import * as assert from "assert"; import { testContext, disposeTestDocumentStore } from "../Utils/TestUtil"; import * as util from "util"; import { IDocumentStore, IDocumentQuery, IDocumentSession, ...
the_stack
type float = number; type int = number; const splitter = 134217729.; // Veltkamp’s splitter (= 2^27+1 for 64-bit float) // Møller's and Knuth's summation (algorithm 2 from [1]) function twoSum(a: float, b: float) { let s = a + b; let a1 = s - b; return { hi: s, lo: (a - a1) + (b - (s - a1)) }; } // Dekker’s mu...
the_stack