text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import fs from "fs";
import path from "path";
import csv from "csvtojson";
import useGqlHandler from "./useGqlHandler";
import { fields, formSubmissionDataA, formSubmissionDataB } from "./mocks/form.mocks";
jest.setTimeout(100000);
describe('Form Builder "Form" Test', () => {
const {
until,
instal... | the_stack |
import type { ITelemetryLogger } from "@fluidframework/common-definitions";
import {
assert,
stringToBuffer,
Uint8ArrayToString,
} from "@fluidframework/common-utils";
import {
IDocumentStorageService,
ISummaryContext,
IDocumentStorageServicePolicies,
LoaderCachingPolicy,
} from "@fluidfram... | the_stack |
import * as path from 'path';
import * as iam from '@aws-cdk/aws-iam';
import * as lambda from '@aws-cdk/aws-lambda';
import * as logs from '@aws-cdk/aws-logs';
import * as s3 from '@aws-cdk/aws-s3';
import * as sfn from '@aws-cdk/aws-stepfunctions';
import { TaskInput } from '@aws-cdk/aws-stepfunctions';
import * as c... | the_stack |
import {Block} from './Block';
import {IApp} from '../IApp';
import {IAudioChain} from '../Core/Audio/Connections/IAudioChain';
import {IEffect} from './IEffect';
import {ISource} from './ISource';
import {Particle} from '../Particle';
import {Power} from './Power/Power';
import {SoundCloudTrack} from '../Core/Audio/So... | the_stack |
import { Readable } from 'stream';
import { Test, TestingModule } from '@nestjs/testing';
import { ConfigService } from '@nestjs/config';
import * as winston from 'winston';
import { PrismaService } from 'nestjs-prisma';
import { StorageService } from '@codebrew/nestjs-storage';
import { WINSTON_MODULE_PROVIDER } from ... | the_stack |
import * as d3 from 'd3';
import { interpolatePath } from 'd3-interpolate-path';
import './LinePlot.scss';
import { Plot } from '../../Interfaces/Plot';
import Utils from '../../Utils';
import { DataTypes, YAxisStates } from "../../Constants/Enums";
import { AxisState } from '../../Models/AxisState';
class LinePlot ex... | the_stack |
import { Color, GradientColor } from "../util/color"
import { Modeling, Model, obj2Model, ClassType } from "../util/types";
import { uniqueId } from "../util/uniqueId";
import { loge } from "../util/log";
import { BridgeContext } from "../runtime/global";
import { LayoutConfig } from '../util/layoutconfig'
import { IAn... | the_stack |
import {
format,
isSameMonth,
isWeekend,
differenceInCalendarDays,
isBefore,
addDays,
startOfWeek,
endOfWeek,
getSeconds,
differenceInHours,
getMinutes,
getHours,
addHours,
isSameDay,
endOfDay,
startOfDay,
toDate,
Locale
} from 'date-fns';
import {... | the_stack |
import { DIBitmap, PatternBitmap16 } from "./Bitmap";
import { Blob } from "./Blob";
import { GDIContext } from "./GDIContext";
import { Helper, WMFJSError } from "./Helper";
import { PointS, Rect } from "./Primitives";
import { Region } from "./Region";
import { Brush, ColorRef, Font, Palette, Pen } from "./Style";
e... | the_stack |
import * as chai from 'chai';
import * as parse5 from 'parse5';
import {AssignedBundle, BundleManifest} from '../bundle-manifest';
import {Bundler} from '../bundler';
import {bundle, HtmlBundler} from '../html-bundler';
import {parse} from '../parse5-utils';
import {getFileUrl} from '../url-utils';
import {heredoc, i... | the_stack |
import { Container, Contracts, Enums, Providers, Services, Utils } from "@arkecosystem/core-kernel";
import { Interfaces } from "@arkecosystem/crypto";
import delay from "delay";
import prettyMs from "pretty-ms";
import { NetworkState } from "./network-state";
import { Peer } from "./peer";
import { PeerCommunicator }... | the_stack |
import { SourceFile } from "typescript";
import { ComponentAnalyzer } from "./component-analyzer/component-analyzer.js";
import { LitCssDocumentAnalyzer } from "./document-analyzer/css/lit-css-document-analyzer.js";
import { LitHtmlDocumentAnalyzer } from "./document-analyzer/html/lit-html-document-analyzer.js";
import... | the_stack |
import * as vscode from "vscode";
import * as path from "path";
import * as mkdirp from "mkdirp";
import { logger } from "vscode-debugadapter";
import { DebugProtocol } from "vscode-debugprotocol";
import { ProjectVersionHelper } from "../common/projectVersionHelper";
import { TelemetryHelper } from "../common/telemetr... | the_stack |
import {
makeApp as makeElectronApp,
makeBrowserWindow,
makeClientForPlugin,
makeProcess
} from '@bugsnag/electron-test-helpers'
import plugin from '../'
const ONE_HOUR_IN_MS = 60 * 60 * 1000
// expected data for 'session.app'
const makeExpectedSessionApp = (customisations = {}) => ({
releaseStage: 'product... | the_stack |
import { ApplicationContext } from "../../main-core/application-context/mandarineApplicationContext.ts";
import { ORMCoreDecoratorProxy } from "../../orm-core/core/proxys/ormCoreDecoratorProxy.ts";
import { mockDecorator, Orange, Test, DenoAsserts } from "../mod.ts";
import { Types } from "../../orm-core/sql/types.ts";... | the_stack |
import * as nls from 'vscode-nls';
let localize = nls.loadMessageBundle();
import * as os from 'os';
import * as fs from 'fs';
import * as path from 'path';
import {ChromeDebugAdapter as CoreDebugAdapter, logger, utils as coreUtils, ISourceMapPathOverrides, ChromeDebugSession, telemetry, ITelemetryPropertyCollector, ... | the_stack |
import { BigNumber, constants, providers, utils, Wallet } from "ethers";
import Sinon, { restore, reset, createStubInstance, SinonStubbedInstance, SinonStub, stub } from "sinon";
import {
getRandomAddress,
getRandomBytes32,
mkAddress,
RequestContext,
expect,
Logger,
requestContextMock,
} from "@connext/nx... | the_stack |
import * as R from 'ramda';
import {Size, RGBColor, Vec2D} from '@compiler/core/types';
import {reverseByte} from '@compiler/core/utils/bits';
import {uuidX86Device} from '../../types';
import {VirtualMemBlockDriver} from '../../memory/VirtualMemBlockDriver';
import {ByteMemRegionAccessor} from '../../memory/MemoryR... | the_stack |
//@ts-check
///<reference path="devkit.d.ts" />
declare namespace DevKit {
namespace Formmsdyn_actual_Information {
interface tab__88D21A95_2EBC_49E9_A568_6A7A0107BCEC_Sections {
_88D21A95_2EBC_49E9_A568_6A7A0107BCEC_SECTION_10: DevKit.Controls.Section;
_88D21A95_2EBC_49E9_A568_6A7A0107BCEC_SECTION_3: DevKit.... | the_stack |
import { CallOptions } from '../../CallOptions';
import { DeoptimizableEntity } from '../../DeoptimizableEntity';
import { HasEffectsContext } from '../../ExecutionContext';
import { EVENT_ACCESSED, EVENT_CALLED, NodeEvent } from '../../NodeEvents';
import {
ObjectPath,
ObjectPathKey,
PathTracker,
UNKNOWN_INTEGER_P... | the_stack |
* @module Tiles
*/
import { BeTimePoint, dispose } from "@itwin/core-bentley";
import { ClipMaskXYZRangePlanes, ClipShape, ClipVector, Point3d, Transform } from "@itwin/core-geometry";
import { ColorDef, Frustum } from "@itwin/core-common";
import { IModelApp } from "../IModelApp";
import { GraphicBranch, GraphicBran... | the_stack |
import {
ITelemetryBaseEvent,
ITelemetryBaseLogger,
ITelemetryErrorEvent,
ITelemetryGenericEvent,
ITelemetryLogger,
ITelemetryPerformanceEvent,
ITelemetryProperties,
TelemetryEventPropertyType,
ITaggedTelemetryPropertyType,
TelemetryEventCategory,
} from "@fluidframework/common-d... | the_stack |
import { Percentage } from '.'
import { RBType, serializeAtomicValue } from '.'
/**
* @typeTag IntRange
* @added 0.1.4
*/
export type RGBInteger =
| 0
| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10
| 11
| 12
| 13
| 14
| 15
| 16
| 17
| 18
| 19... | the_stack |
import {
serializable,
alias,
date,
list,
map,
mapAsArray,
object,
optional,
identifier,
reference,
primitive,
serialize,
cancelDeserialize,
deserialize,
serializeAll,
getDefaultModelSchema,
custom,
AdditionalPropArgs,
SKIP,
} from "../../"
im... | the_stack |
import {
AfterViewInit,
Component,
ElementRef,
EventEmitter,
HostBinding,
Inject,
Input,
LOCALE_ID,
OnChanges,
OnInit,
Output,
SimpleChanges,
ViewChild,
} from '@angular/core';
import {
add,
differenceInDays,
eachDayOfInterval,
endOfMonth,
endOfWeek,
format,
getYear,
isAfter,
... | the_stack |
import { Router } from "express"
import { celebrate, Joi } from "celebrate"
import { File } from "@lib/models/File"
import { Post } from "@lib/models/Post"
import jwt, { UserJwtRequest } from "@lib/middleware/jwt"
import * as crypto from "crypto"
import { User } from "@lib/models/User"
import secretKey from "@lib/middl... | the_stack |
import { ConditionalFilter } from "@pankod/refine-core";
import dataProvider from "../../src/index";
import "./index.mock";
describe("getList", () => {
it("correct response", async () => {
const response = await dataProvider(
"keywoytODSr6xAqfg",
"appKYl1H4k9g73sBT",
).getLi... | the_stack |
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest';
import * as models from '../models';
/**
* @class
* Operations
* __NOTE__: An instance of this class is automatically created for an
* instance of the StorageSyncManagementClient.
*/
export interface Operation... | the_stack |
import { DMMF } from '@prisma/generator-helper'
import dedent from 'dindist'
import * as OS from 'os'
import { LiteralUnion } from 'type-fest'
import { StandardGraphQLScalarType, StandardGraphQLScalarTypes } from '../../helpers/graphql'
import { PrismaScalarType } from '../../helpers/prisma'
import { allCasesHandled } ... | the_stack |
import { connect } from 'react-redux'
import { getTranslate } from 'react-localize-redux'
import { push } from 'connected-react-router'
import { withRouter } from 'react-router-dom'
import { withStyles } from '@material-ui/core/styles'
import CloseIcon from '@material-ui/icons/Close'
import IconButton from '@material-u... | the_stack |
/// <reference path="../../../dist/kurve-global.d.ts" />
const kurve = window["Kurve"] as typeof Kurve;
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file.
const init = () => new App();
class App {
private identity: Kurve.Ident... | the_stack |
import '../prefs/prefs.js';
import {assert} from '//resources/js/assert.m.js';
import {PromiseResolver} from '//resources/js/promise_resolver.m.js';
import {PolymerElement} from '//resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {PrefsMixin} from '../prefs/prefs_mixin.js';
import {CrSettingsPrefs} from... | the_stack |
import {BigNumber} from 'bignumber.js';
import {TransactionConfig} from 'web3-core';
import {UserSigner, UserSecretKey, Transaction, Nonce, Balance, ChainID, GasLimit, GasPrice, TransactionPayload, TransactionVersion, Address} from '@elrondnetwork/erdjs';
import {egldBroadcast, egldGetTransactionsCount} from '../blockc... | the_stack |
import { ReallySmallEvents } from "really-small-events";
import {
assign,
allAsync,
cast,
cleanArgs,
chainAsync,
uuid as uuidFN,
noop,
throwErr,
setFast,
resolvePath,
isSafari,
deepGet,
buildQuery,
_nanoSQLQueue,
adapterFilters,
cleanArgs2
} from "./utilit... | the_stack |
import * as fs from 'fs-extra';
import { compoundExpression, forEach, iff, list, methodCall, obj, print, ref, ret, set, str } from 'graphql-mapping-template';
import { graphqlName, plurality, toUpper } from 'graphql-transformer-common';
import AppSync from 'cloudform-types/types/appSync';
import { DocumentNode } from... | the_stack |
import { generateId } from '@/common/js/util';
import BkFlow from '@blueking/bkflow.js/lib/index';
import { Component, Emit, Prop, PropSync, Ref, Vue, Watch } from 'vue-property-decorator';
import { confirmModelOverview, getModelOverview } from '../../Api';
import { DataModelManage, IStepsManage } from './IStepsManage'... | the_stack |
import { CollisionPostSolveEvent, CollisionPreSolveEvent, PostCollisionEvent, PreCollisionEvent } from '../../Events';
import { clamp } from '../../Util/Util';
import { CollisionContact } from '../Detection/CollisionContact';
import { CollisionType } from '../CollisionType';
import { ContactConstraintPoint } from './Co... | the_stack |
import {
AfterViewChecked,
AfterViewInit,
ChangeDetectionStrategy,
Component,
ElementRef,
EventEmitter,
HostBinding,
Input,
OnDestroy,
Output,
NgZone,
Self,
Optional,
ChangeDetectorRef
} from '@angular/core';
import {
NgControl,
ControlValueAccessor
} from '@angular/forms';
@Component({... | the_stack |
import { assert } from "chai";
import { ITypeHandlers, IWrapHandlers, Options } from "../../lib/options";
describe("options", () => {
describe("#Options", () => {
describe("aliasString", () => {
it("should leave the specified property unchanged if valid", () => {
const options =... | the_stack |
import {assertExists} from '../testing/internal/test_utils';
import * as Bytes from './bytes';
import * as EllipticCurves from './elliptic_curves';
import * as Random from './random';
import {WYCHEPROOF_ECDH_TEST_VECTORS} from './wycheproof_ecdh_test_vectors';
describe('elliptic curves test', function() {
beforeEac... | the_stack |
import { EventEmitter } from 'events';
import pRetry from 'p-retry';
import pTimeout from 'p-timeout';
import { Core, Web } from 'sip.js';
import { Invitation } from 'sip.js/lib/api/invitation';
import { Inviter } from 'sip.js/lib/api/inviter';
import { Publisher } from 'sip.js/lib/api/publisher';
import { PublisherOp... | the_stack |
import { iavlSpec, ics23, tendermintSpec, verifyExistence, verifyNonExistence } from "@confio/ics23";
import { toAscii, toHex } from "@cosmjs/encoding";
import { firstEvent } from "@cosmjs/stream";
import { tendermint34, Tendermint34Client } from "@cosmjs/tendermint-rpc";
import { arrayContentEquals, assert, assertDefi... | the_stack |
import { CachedArray } from '../../memop/cached-array';
import { error, errorID } from '../../platform';
import { debug } from '../../platform/debug';
import {
BufferUsageBit, ColorMask, CullMode, DynamicStateFlagBit, Filter, Format, TextureType, Type, FormatInfo,
FormatInfos, FormatSize, LoadOp, MemoryUsageBit... | the_stack |
import { assert } from "chai";
import { getProgram } from "../../../src";
import { RUNTIME_ERRORS } from "../../../src/errors/errors-list";
import { Interpreter } from "../../../src/interpreter/interpreter";
import {
Add, Addr, Addw, And, AppGlobalDel, AppGlobalGet, AppGlobalGetEx,
AppGlobalPut, AppLocalDel, AppLo... | the_stack |
'use strict';
import {TextDocument, TextDocumentContentChangeEvent, RemoteConsole, Position, Range, Diagnostic} from 'vscode-languageserver';
import * as vscode from 'vscode-languageserver';
import {CancellationToken} from 'vscode-jsonrpc';
import * as thmProto from './protocol';
import * as coqProto from './coqtop/co... | the_stack |
import React, {
useEffect,
useState,
useCallback,
useMemo,
useImperativeHandle,
forwardRef
} from 'react'
import moment, { Moment } from 'moment'
import { Form, Row, Col, Input, Select, DatePicker, Spin, Checkbox } from 'antd'
const FormItem = Form.Item
const { TextArea } = Input
const { Option } = Select
c... | the_stack |
import React, { isValidElement } from 'react'
import {
Animated,
Dimensions,
LayoutChangeEvent,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
ViewStyle,
} from 'react-native'
import { Theme, WithTheme, WithThemeStyles } from '../style'
import { TabBarPropsType, TabData } from './Pr... | the_stack |
import util from 'util'
import BugsnagPluginAwsLambda from '../src/'
import Client, { EventDeliveryPayload, SessionDeliveryPayload } from '@bugsnag/core/client'
const createClient = (events: EventDeliveryPayload[], sessions: SessionDeliveryPayload[], config = {}) => {
const client = new Client({ apiKey: 'AN_API_KEY'... | the_stack |
import {PbAesCtrHmacAeadKey, PbAesCtrHmacAeadKeyFormat, PbAesCtrKey, PbAesCtrKeyFormat, PbAesCtrParams, PbHashType, PbHmacKey, PbHmacKeyFormat, PbHmacParams, PbKeyData} from '../internal/proto';
import * as Random from '../subtle/random';
import {assertExists} from '../testing/internal/test_utils';
import {AesCtrHmacA... | the_stack |
import { when } from 'jest-when';
import { getAddressAndPublicKeyFromPassphrase } from '@liskhq/lisk-cryptography';
import { codec } from '@liskhq/lisk-codec';
import { Transaction } from '../../src/transaction';
import { nodeInfo, schema, tx, accountSchema } from '../utils/transaction';
describe('transaction', () => ... | the_stack |
* @param {Uint32Array} lgr_comm
* @param {WasmPastaFpPlonkVerifierIndex} index
* @param {WasmPastaFpProverProof} proof
* @returns {WasmPastaFpPlonkOracles}
*/
export function caml_pasta_fp_plonk_oracles_create(lgr_comm: Uint32Array, index: WasmPastaFpPlonkVerifierIndex, proof: WasmPastaFpProverProof): WasmPastaFpPlonkO... | the_stack |
import { StateService } from '@uirouter/core';
import { IController, IScope } from 'angular';
import _ = require('lodash');
import { DocumentationQuery, DocumentationService, FolderSituation, PageType } from '../../services/documentation.service';
import NotificationService from '../../services/notification.service';
... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
export interface AppSpec {
databases?: pulumi.Input<pulumi.Input<inputs.AppSpecDatabase>[]>;
/**
* Describes a domain where the application will be made available.
*/
domainNames?: pulu... | the_stack |
module android.graphics.drawable {
import Resources = android.content.res.Resources;
import SystemClock = android.os.SystemClock;
import System = java.lang.System;
import Runnable = java.lang.Runnable;
import Animatable = android.graphics.drawable.Animatable;
import Drawable = android.graphics.d... | the_stack |
import { Disclosure, DisclosureButton, DisclosurePanel } from ".";
import { suppressConsoleLogs } from "$lib/test-utils/suppress-console-logs";
import { render } from "@testing-library/svelte";
import TestRenderer from "$lib/test-utils/TestRenderer.svelte";
import {
assertActiveElement,
assertDisclosureButton,
as... | the_stack |
import produce, { Draft } from "immer";
import * as R from "ramda";
import { Client, Api, Model, Blob, Crypto, Graph, Rbac } from "@core/types";
import {
getCurrentEncryptedKeys,
getConnectedBlockEnvironmentsForApp,
} from "@core/lib/graph";
import {
keySetDifference,
getUserEncryptedKeyOrBlobComposite,
parse... | the_stack |
import {
Address,
Algorithm,
ChainId,
Hash,
Nonce,
PostableBytes,
Preimage,
PubkeyBytes,
SendTransaction,
SignatureBytes,
SignedTransaction,
SwapAbortTransaction,
SwapClaimTransaction,
SwapId,
SwapIdBytes,
SwapOfferTransaction,
TokenTicker,
} from "@iov/bcp";
import { ExtendedSecp256k1... | the_stack |
import {
triggerEvent, options
} from '@tko/utils';
import {
applyBindings
} from '@tko/bind';
import {
observable as Observable
} from '@tko/observable';
import {
bindings as coreBindings
} from '@tko/binding.core';
import {
MultiProvider
} from '@tko/provider.multi'
import {
DataBindProvider
... | the_stack |
declare namespace TL {
export var Timeline: ITimeline;
export interface ITimeline extends ITimelineEvents {
new (containerId: string, data: string | ITimelineConfig): ITimeline;
new (containerId: string, data: string | ITimelineConfig, options: ITimelineOptions): ITimeline;
goToId: (id... | the_stack |
import TokenStore from '../backend/TokenStore'
import Router from './router'
import AppView from './appview'
import StreamingView from './streamingview'
import xCloudView from './xcloudview'
import appMenu from '../backend/appMenu'
import Plugins from '../frontend/plugins'
// Plugins
import { OpentrackPluginFrontend a... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
import * as utilities from "../utilities";
/**
* UrlMaps are used to route requests to a backend service based on rules
* that you define for the host and path of an incoming URL.
*
* ## Example Usage
* ### Re... | the_stack |
import * as timeSpan from 'time-span';
import TransactionUnderProcessingModel, { TransactionProcessingStatus } from './models/TransactionUnderProcessingModel';
import EventCode from './EventCode';
import EventEmitter from '../common/EventEmitter';
import IBlockchain from './interfaces/IBlockchain';
import IOperationSto... | the_stack |
import { mergeMap, tap, filter } from 'rxjs/operators';
import { IndexedDBDatabase } from '../databases/indexeddb-database';
import { LocalStorageDatabase } from '../databases/localstorage-database';
import { MemoryDatabase } from '../databases/memory-database';
import { DEFAULT_IDB_DB_NAME, DEFAULT_IDB_STORE_NAME, DE... | the_stack |
import * as tf from '@tensorflow/tfjs';
import {backend_util, BackendTimingInfo, DataId, DataType, KernelBackend, ModelTensorInfo, Rank, Scalar, scalar, ScalarLike, Tensor, Tensor1D, Tensor2D, Tensor3D, Tensor4D, TensorInfo, tidy, util} from '@tensorflow/tfjs';
import {isArray, isNullOrUndefined} from 'util';
import {... | the_stack |
import { clientAction, dispatch } from "../handler";
import { Api, Client } from "@core/types";
import { statusProducers, updateSettingsProducers } from "../lib/status";
import open from "open";
import { wait } from "@core/lib/utils/wait";
import { log } from "@core/lib/utils/logger";
clientAction<Api.Action.RequestAc... | the_stack |
import {Component, OnDestroy, OnInit} from '@angular/core';
import {ActivatedRoute} from '@angular/router';
import {PokemonService} from '../shared/pokemon.service';
import {Pokemon} from '../shared/pokemon.model';
import {Subject} from 'rxjs';
@Component({
selector: 'app-pokemon-detail',
templateUrl: './pokemon-d... | the_stack |
import { FillQuoteTransformerOrderType, RfqOrderFields, Signature } from '@0x/protocol-utils';
import { BigNumber } from '@0x/utils';
import _ = require('lodash');
import { MarketOperation, NativeOrderWithFillableAmounts } from '../types';
import {
CollapsedFill,
DexSample,
ERC20BridgeSource,
FillData... | the_stack |
import {Injectable, Inject, CACHE_MANAGER, BadRequestException} from '@nestjs/common';
import {Cache} from 'cache-manager';
import Mint from 'mint-filter';
import * as fs from 'fs';
import {MESSAGES} from 'src/core/enums/message.enum';
import {plainToClass} from 'class-transformer';
import {LocationService} from 'src/m... | the_stack |
import { Matrix3 } from './Matrix3'
import { Matrix4 } from './Matrix4'
// import {Float32BufferAttribute} from '../core/BufferAttribute'
function arraysApproxEquals(a: Array<f32>, b: Array<f32>, tolerance: f32 = 0.0001): bool {
if (a.length != b.length) {
return false
}
for (let i = 0, il = a.length; i < il; i+... | the_stack |
import { HttpClient } from '@angular/common/http';
import { Injectable, OnDestroy } from '@angular/core';
import { environment as env } from '@env/environment';
import { del, get, keys, set } from 'idb-keyval';
import { BehaviorSubject, Subject } from 'rxjs';
import { Const, InventoryItem, InventorySocket, ItemType, Se... | the_stack |
import * as sapling from '@airgap/sapling-wasm'
import BigNumber from '../../../../dependencies/src/bignumber.js-9.0.0/bignumber'
import { IAirGapTransaction } from '../../../../interfaces/IAirGapTransaction'
import { flattenArray } from '../../../../utils/array'
import { stripHexPrefix } from '../../../../utils/hex'
... | the_stack |
import {
removeNode, arrayForEach, options, domData
} from '@tko/utils'
import {
observable, observableArray, isObservable
} from '@tko/observable'
import {
computed
} from '@tko/computed'
import {
contextFor, dataFor, applyBindings
} from '@tko/bind'
import { DataBindProvider } from '@tko/provider.databind... | the_stack |
import RouteRecognizer, {
QueryParams,
Result,
Results
} from "../lib/route-recognizer";
let router: RouteRecognizer<string>;
function resultsMatch(
assert: Assert,
results: Results<string> | undefined,
array: Result<string>[],
queryParams?: QueryParams
): void {
assert.deepEqual(results && results.sl... | the_stack |
import {BoxrecRole} from "boxrec-requests/dist/boxrec-requests.constants";
import {BoutsGetter, BoutsInterface} from "../../decorators/bouts.decorator";
import {getLocationValue, townRegionCountryRegex, trimRemoveLineBreaks} from "../../helpers";
import {BoxrecBasic, BoxrecBoutLocation, BoxrecLocation} from "../boxrec.... | the_stack |
export = Encoder;
/**
* @typedef EncodingOptions
* @property {any[]|object} [genTypes=[]] Array of pairs of
* `type`, `function(Encoder)` for semantic types to be encoded. Not
* needed for Array, Date, Buffer, Map, RegExp, Set, or URL.
* If an object, the keys are the constructor names for the types.
* @pr... | 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 |
'use strict'
// **Github:** https://github.com/fidm/quic
//
// **License:** MIT
import { BufferVisitor } from './common'
// https://github.com/google/proto-quic/blob/master/src/net/quic/core/quic_error_codes.h
const INVALID_ERROR = { name: 'INVALID_ERROR_CODE', code: 0xffffffff }
const INVALID_RST_STREAM_ERROR = { na... | the_stack |
'use strict';
// Bring key classes into scope, most importantly Fabric SDK network class
import * as x509 from '@ampretia/x509';
import { Block, Channel } from 'fabric-client';
import { Contract, FileSystemCheckpointer, FileSystemWallet, Gateway, Network } from 'fabric-network';
import * as fs from 'fs';
import * as p... | the_stack |
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as Models from "../models";
import * as Mappers from "../models/signalRPrivateEndpointConnectionsMappers";
import * as Parameters from "../models/parameters";
import { SignalRManagementClientContext } from "../... | the_stack |
module WinJSTests {
"use strict";
var testRootEl;
var ITEMS_COUNT = 10;
var _oldMaxTimePerCreateContainers;
function getDataObject(pattern, counter, title?) {
var object: any = {
enableCellSpanning: true,
group: counter % 5,
title: (title ? title : "Til... | the_stack |
import { Lexer } from './lexer';
import { Token, TokenType, BinOp, UnaryOp, Num, Var, Assign, Update, Import, Load, JS, NoOp, Str, Block, PropDecl, StyleDecl, Program, Template, Console, Tuple, Params, List, Dict, Bool, None, Func, Lambda, Return, Yield, Raise, Continue, Break, DataType, If, While, With, Try, Apply, At... | the_stack |
import { BasePluginComponent } from 'src/interfaces/base-plugin-component';
import ace from 'ace-builds';
import 'ace-builds/webpack-resolver';
import md from 'markdown-it';
import emoji from 'markdown-it-emoji';
import sub from 'markdown-it-sub';
import sup from 'markdown-it-sup';
import footnote from 'markdown-it-foo... | the_stack |
// clang-format off
import 'chrome://resources/cr_elements/cr_lottie/cr_lottie.m.js';
import {CrLottieElement, LOTTIE_JS_URL} from 'chrome://resources/cr_elements/cr_lottie/cr_lottie.m.js';
import {flush} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {assertDeepEquals, assertEquals, as... | the_stack |
import { Handle } from './Destroyable';
import { DNode, RenderResult } from './interfaces';
import { isWNode, isVNode } from './vdom';
const slice = Array.prototype.slice;
const hasOwnProperty = Object.prototype.hasOwnProperty;
export interface Modifier<T extends DNode> {
(dNode: T, breaker: () => void): void;
}
ex... | the_stack |
declare namespace pins {
//% fixedInstance shim=pxt::getPin(PIN_LED)
const LED: PwmOnlyPin;
//% fixedInstance shim=pxt::getPin(PIN_A0)
const A0: PwmPin;
//% fixedInstance shim=pxt::getPin(PIN_A1)
const A1: PwmPin;
//% fixedInstance shim=pxt::getPin(PIN_A2)
const A2: PwmPin;
//% fixe... | the_stack |
import React, { useState, useEffect, useRef } from 'react';
import throttle from 'lodash.throttle';
import { CopyToClipboard } from 'react-copy-to-clipboard';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
faCamera,
faCopy,
faCheck,
faCheckCircle,
faTimes,
faChevronUp,
faChevr... | the_stack |
* Group Service deals with the logic for categorical and numeric
* grouping.
*/
// tslint:disable:no-new-decorators
import * as d3 from 'd3'; // Used for creating bins, not visualization.
import {computed} from 'mobx';
import {FacetMap, GroupedExamples, IndexedInput} from '../lib/types';
import {facetMapToDictKey,... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
import * as utilities from "../utilities";
/**
* Manages an Azure IoT Time Series Insights Gen2 Environment.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as a... | the_stack |
import React from 'react'
import { render } from '@testing-library/react'
import { DateRangePicker } from './DateRangePicker'
import userEvent from '@testing-library/user-event'
const startDatePickerTestProps = {
id: 'start-date',
name: 'start-date',
}
const endDatePickerTestProps = {
id: 'end-date',
name: '... | the_stack |
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as Models from "../models";
import * as Mappers from "../models/signalRMappers";
import * as Parameters from "../models/parameters";
import { SignalRManagementClientContext } from "../signalRManagementClientCon... | the_stack |
import { Injectable } from '@angular/core';
import { CoreSites } from '@services/sites';
import { CoreMimetypeUtils } from '@services/utils/mimetype';
import { CoreWSExternalWarning } from '@services/ws';
import { CoreSite } from '@classes/site';
import { makeSingleton } from '@singletons';
const ROOT_CACHE_KEY = 'mm... | the_stack |
export interface Variant<Tag extends string = string, Value = undefined> {
readonly tag: Tag
readonly value: Value
}
/**
* Utility type which allows any {@link Variant} to be assigned to it.
*/
export type AnyVariant = Variant<string, unknown>
/**
* Creates a new {@link Variant} instance whose value is und... | the_stack |
import { MosaicComponent, MosaicOptions, ViewFunction, KeyedArray, InjectionPoint } from './options';
import Observable from './observable';
import Router from './router';
import Portfolio from './portfolio';
import { randomKey, nodeMarker, goUpToConfigureRouter, applyMixin, runLifecycle } from './util';
import { getTe... | the_stack |
import test from "tape";
import { aggregate } from "../../src";
import * as support from "../support";
support.runTest("Type operators", {
$toString: [
[true, "true"],
[false, "false"],
[2.5, "2.5"],
[new Date("2018-03-27T16:58:51.538Z"), "2018-03-27T16:58:51.538Z"],
],
$convert: [
// bool
... | the_stack |
import Bot from 'keybase-bot'
import {BotConfig} from './bot-config'
import * as Errors from './errors'
import * as ChatTypes from 'keybase-bot/lib/types/chat1'
// namespace: jirabot-v1-team-[teamname]; key: jiraConfig
export type TeamJiraConfig = Readonly<{
jiraHost: string
jiraAuth: Readonly<{
consumerKey: s... | the_stack |
import EventDispatcher from "./EventDispatcher";
import Connection from "./Connection";
import AudioContextManager from "./AudioContextManager";
import BufferManager from "./BufferManager";
import PatchEvent from "../event/PatchEvent";
import ModuleDefinitions from "../config/ModuleDefinitions";
import Module from "./M... | the_stack |
import * as vscode from "vscode";
import { executeCommand, ExpectedDocument, groupTestsByParentName } from "../utils";
suite("./test/suite/commands/seek-word.md", function () {
// Set up document.
let document: vscode.TextDocument,
editor: vscode.TextEditor;
this.beforeAll(async () => {
document = aw... | the_stack |
import { Coordinate, Geometry, VectorLayer } from "maptalks";
import maptalks = require("maptalks");
const map5 = new maptalks.Map("map", {
center: [-0.113049, 51.498568],
zoom: 14,
pitch: 45,
// allow map to drag pitching, true by default
dragPitch: true,
// allow map to drag rotating, true by... | the_stack |
import { Callback } from "@siteimprove/alfa-callback";
import { Clone } from "@siteimprove/alfa-clone";
import { Comparable, Comparer, Comparison } from "@siteimprove/alfa-comparable";
import { Equatable } from "@siteimprove/alfa-equatable";
import { Hash } from "@siteimprove/alfa-hash";
import { Iterable } from "@site... | the_stack |
import { Component, ViewChild, ElementRef, ChangeDetectorRef, NgZone } from '@angular/core';
import {
IonicPage, ViewController, AlertController, MenuController, ActionSheetController,
LoadingController, NavController, ToastController
} from 'ionic-angular';
import marked from 'marked';
import { Storage } from '@io... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.