text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import * as moment from 'moment';
import { Text } from '@microsoft/sp-core-library';
import { isEmpty } from '@microsoft/sp-lodash-subset';
import { IPersonaProps, ITag } ... | the_stack |
import { env } from "./env";
/**
* A custom error type for failed pipeline requests.
*/
export class RecorderError extends Error {
constructor(message: string, public statusCode?: number) {
super(message);
this.name = "RecorderError";
this.statusCode = statusCode;
}
}
export type RecordingState = "st... | the_stack |
import { StepFunctions } from 'aws-sdk';
import * as setup from './hotswap-test-setup';
let mockUpdateMachineDefinition: (params: StepFunctions.Types.UpdateStateMachineInput) => StepFunctions.Types.UpdateStateMachineOutput;
let hotswapMockSdkProvider: setup.HotswapMockSdkProvider;
beforeEach(() => {
hotswapMockSdkP... | the_stack |
import * as t from '@aws-accelerator/common-types';
import * as c from '@aws-accelerator/config';
export * from '@aws-accelerator/config';
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface CloudWatchDefaultAlarmDefinition extends Omit<c.CloudWatchAlarmsConfig, 'definitions'> {
/**
... | the_stack |
import { LRUCache } from "@here/harp-lrucache";
import * as THREE from "three";
import { Font, FontMetrics } from "./FontCatalog";
import { GlyphData } from "./GlyphData";
import { GlyphClearMaterial, GlyphCopyMaterial } from "./TextMaterials";
/**
* Maximum number of texture atlas pages we can copy from in a single... | the_stack |
import * as msgpack from "notepack.io";
import * as socketio from "socket.io";
import { Adapter, BroadcastOptions, Room, SocketId } from "socket.io-adapter";
import { PacketType } from "socket.io-parser";
import * as uuid from "uuid";
import { promiseTimeout } from "@fluidframework/server-services-client";
export int... | the_stack |
import React, { useEffect, useRef } from 'react'
import { useValues, useActions, BindLogic } from 'kea'
import { decodeParams } from 'kea-router'
import { Button, Spin, Space, Badge, Switch, Row } from 'antd'
import { Link } from 'lib/components/Link'
import { sessionsTableLogic } from 'scenes/sessions/sessionsTableLog... | the_stack |
import { describe, it, expect } from "@jest/globals";
import { NamedNode, Literal, BlankNode } from "@rdfjs/types";
import { DataFactory } from "n3";
import { IriString, Thing, UrlString } from "../interfaces";
import {
getUrl,
getBoolean,
getDatetime,
getDate,
getTime,
getDecimal,
getInteger,
getStrin... | the_stack |
import { TreeGrid } from '../../src/treegrid/base/treegrid';
import { createGrid, destroy } from '../base/treegridutil.spec';
import { sampleData, projectData } from '../base/datasource.spec';
import { Edit } from '../../src/treegrid/actions/edit';
import { Freeze } from '../../src/treegrid/actions/freeze-column';
impo... | the_stack |
import React from 'react';
import { createRouteURL } from '../router';
import { timeAgo, useErrorState } from '../util';
import { useConnectApi } from '.';
import { ApiError, apiFactory, apiFactoryWithNamespace, post } from './apiProxy';
import CronJob from './cronJob';
import DaemonSet from './daemonSet';
import Deplo... | the_stack |
import IORedis from 'ioredis';
import lodash from 'lodash';
import * as shortid from 'shortid';
import { ReplyError } from 'redis-errors';
import { initScripts, Redis } from './commands';
import { waitUntilInitialized } from './common';
import { parseStreamResponse, parseXPendingResponse, StreamValue } from './redis-t... | the_stack |
import chai from 'chai'
import chaiAsPromised from 'chai-as-promised'
import { KmsKeyringClass } from '../src/kms_keyring'
import {
NodeAlgorithmSuite,
AlgorithmSuiteIdentifier,
NodeDecryptionMaterial,
EncryptedDataKey,
Keyring,
needs,
Newable,
} from '@aws-crypto/material-management'
chai.use(chaiAsPromi... | the_stack |
import "@effectful/serialization";
import "@effectful/serialization/dom";
import config from "./config";
export interface Env {
/** local variables */
$: any[];
/** local's sub-scope (loops block scoping) */
}
/** common prototype for call descriptions of each function */
export interface ProtoFrame extends Env... | the_stack |
function isEndOfTag(char: string){
return char === '>';
}
function isStartOfTag(char: string){
return char === '<';
}
function isWhitespace(char: string){
return /^\s+$/.test(char);
}
/**
* Determines if the given token is a tag.
*
* @param {string} token The token in question.
*
* @return {boolean|... | the_stack |
import {
getDateFormatter,
getDateFormatterSource
} from '@messageformat/date-skeleton';
import {
getNumberFormatter,
getNumberFormatterSource
} from '@messageformat/number-skeleton';
import { parse, FunctionArg, Select, Token } from '@messageformat/parser';
import * as Runtime from '@messageformat/runtime';
im... | the_stack |
import { AmbientLight, Box3, BufferGeometry, DirectionalLight, Group, Line, Material, Object3D, Raycaster, Scene, Vector3 } from "three"
import { CodeMapMesh } from "../rendering/codeMapMesh"
import { CodeMapBuilding } from "../rendering/codeMapBuilding"
import { CodeMapPreRenderService, CodeMapPreRenderServiceSubscrib... | the_stack |
import { MetadataSource } from '../metadata-source'
import { Metadata } from '../metadata'
import Axios from 'axios'
import { JSDOM } from 'jsdom'
import { log } from '../../debug'
import { MetadataConfig } from '../../core-config'
import { altNames } from './alt-names'
type TrackParseInfo = { name: string, result: st... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
import * as utilities from "../utilities";
/**
* Manages a VPN Gateway Connection.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";... | the_stack |
import { IAppsyncFunction } from './appsync-function';
import { BaseDataSource } from './data-source';
import { AuthorizationType } from './graphqlapi';
import { MappingTemplate } from './mapping-template';
import { Type, IField, IIntermediateType, Directive } from './schema-base';
/**
* Base options for GraphQL Type... | the_stack |
import * as React from 'react'
import {withRouter} from 'react-router'
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'
import {nextStep, selectExample} from '../../../actions/gettingStarted'
import {classnames} from '../../../utils/classnames'
import Loading from '../../Loading/Loading'
imp... | the_stack |
import { SplitterBar } from "./SplitterBar.js";
import { Utils } from "./Utils.js";
import { IDockContainer } from "./interfaces/IDockContainer.js";
/**
* A splitter panel manages the child containers inside it with splitter bars.
* It can be stacked horizontally or vertically
*/
export class SplitterPanel ... | the_stack |
import { AssertionError, deepStrictEqual } from 'assert'
import { QuickInputButton } from '../../../shared/ui/buttons'
import { DataQuickPickItem, QuickPickPrompter } from '../../../shared/ui/pickerPrompter'
import { PromptResult } from '../../../shared/ui/prompter'
import { exposeEmitters } from '../vscode/testUtils'
... | the_stack |
import { BasicAccessory, ServiceCreator, ServiceHandler } from './interfaces';
import {
exposesCanBeGet, exposesCanBeSet, ExposesEntry, ExposesEntryWithFeatures, ExposesEntryWithNumericRangeProperty, exposesHasFeatures,
exposesHasNumericRangeProperty, exposesIsPublished, ExposesKnownTypes,
} from '../z2mModels';
im... | the_stack |
import { actionApi, fileApi } from "@/service/modules/upload";
export default class Utils {
constructor() {}
public wtmFormItem = this.generateWtmFormItemComponent;
public input = this.generateInputComponent;
public select = this.generateSelectComponent;
public button = this.generateButtonComponent;
public... | the_stack |
import {DatePickerFieldState, DateSegment} from '@react-stately/datepicker';
import {DatePickerProps, DateValue} from '@react-types/datepicker';
import {DOMProps} from '@react-types/shared';
// @ts-ignore
import intlMessages from '../intl/*.json';
import {isIOS, mergeProps, useEvent, useId} from '@react-aria/utils';
im... | the_stack |
///<reference path='ViewTestMediator.ts'/>
///<reference path='ViewTestMediator2.ts'/>
///<reference path='ViewTestMediator3.ts'/>
///<reference path='ViewTestMediator4.ts'/>
///<reference path='ViewTestMediator5.ts'/>
///<reference path='ViewTestMediator6.ts'/>
///<reference path='ViewTestNote.ts'/>
module te... | the_stack |
import * as AlgebraicType from '../algebraic-type';
import * as AlgebraicTypeUtils from '../algebraic-type-utils';
import * as Code from '../code';
import * as Error from '../error';
import * as FileWriter from '../file-writer';
import * as FunctionUtils from '../function-utils';
import * as Maybe from '../maybe';
impo... | the_stack |
declare namespace LocalizeJS.Context {
interface Options {
/**
* Required. Your project key.
*/
key: string;
/**
* Defaults to false.
* If true and you have machine translations enabled, any new phrases found in your website will be automatically
... | the_stack |
import { ARIADefinitions } from "./ARIADefinitions";
import { CommonMapper } from "../common/CommonMapper";
import { IMapResult} from "../api/IMapper";
import { DOMUtil } from "../dom/DOMUtil";
import { RPTUtil } from "../checker/accessibility/util/legacy"
import { FragmentUtil } from "../checker/accessibility/util/fra... | the_stack |
*/
import * as ns from './ns'
import { Namespace, NamedNode, st, IndexedFormula } from 'rdflib'
import { newThing, errorMessageBlock } from './widgets'
import { beep } from './utils'
import { log } from './debug'
import { solidLogicSingleton } from './logic'
export { renderPartipants, participationObject, managePartici... | the_stack |
import {
ChangeDetectorRef,
Component,
ComponentFactory,
ComponentFactoryResolver,
ComponentRef,
Input,
OnInit,
ViewChild,
ViewContainerRef,
} from '@angular/core';
import { FormGroup } from '@angular/forms';
import { SFObjectWidgetSchema, SFSelectWidgetSchema } from '@delon/form';
import { _HttpClien... | the_stack |
import File = require("fs");
import Path = require("path");
import ChildProcess = require("child_process");
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 AmbrosiaStorage from "./Storage";
im... | the_stack |
import * as proxyquire from 'proxyquire';
import * as nsWebpackIndex from '../index';
import { join } from 'path';
// With noCallThru enabled, `proxyquire` will not fall back to requiring the real module to populate properties that are not mocked.
// This allows us to mock packages that are not available in node_module... | the_stack |
import invariant from "invariant";
import moment from "moment";
import {
CampaignAudienceRules,
CampaignEmailScheduling,
CampaignGraph,
CampaignNodeKind,
EdgeKind,
EntryNodeKinds,
} from "common/campaign";
import AbstractCampaignNode from "common/campaign/nodes/abstractCampaignNode";
import AudienceCampaign... | the_stack |
import {
DataInterface,
DataInterfaceForEachOptions,
DataInterfaceGetIdsOptions,
DataInterfaceGetOptions,
DataInterfaceGetOptionsArray,
DataInterfaceGetOptionsObject,
DataInterfaceMapOptions,
EventCallbacksWithAny,
EventName,
EventPayloads,
FullItem,
Id,
PartItem,
RemoveEventPayload,
Updat... | the_stack |
import {
ConnectedPosition,
Overlay,
OverlayConfig,
OverlayRef,
ScrollStrategy,
ScrollStrategyOptions,
} from '@angular/cdk/overlay';
import { TemplatePortal } from '@angular/cdk/portal';
import {
AfterViewInit,
Component,
ElementRef,
OnDestroy,
TemplateRef,
ViewChild,
ViewContainerRef,
} from... | the_stack |
import { Component, State, Element, h } from '@stencil/core';
import '@visa/visa-charts-data-table';
import '@visa/keyboard-instructions';
@Component({
tag: 'app-pie-chart',
styleUrl: 'app-pie-chart.scss'
})
export class AppPieChart {
@State() data: any;
@State() stateTrigger: any = 1;
@State() animations: an... | the_stack |
*
* ## Penumbra Type Definitions
* Common type definitions used throughout penumbra functions.
*
* @module penumbra/types
* @see module:penumbra
*/
// local
import penumbra from './API';
import { PenumbraSupportLevel } from './enums';
import { PenumbraError } from './error';
import { PenumbraZipWriter } from './... | the_stack |
import ModbusServer from './modbus-server'
import {
ExceptionResponseBody,
ReadCoilsResponseBody,
ReadDiscreteInputsResponseBody,
ReadHoldingRegistersResponseBody,
ReadInputRegistersResponseBody,
WriteMultipleCoilsResponseBody,
WriteMultipleRegistersResponseBody,
WriteSingleCoilResponseBody,
WriteSin... | the_stack |
import { expect } from "chai";
import * as crypto from "crypto";
import "mocha";
import {
checkForLeaks,
checkMemory,
commonExportsFromInstance,
CommonTestExports,
createString,
getString,
loadWasm,
} from "./common";
interface MpTestExports extends CommonTestExports {
mp10Pow: (pow: number) => number;... | the_stack |
export function registerTool(t: typeof import("@itwin/core-frontend").Tool): Promise<void>
// these types are needed for ExtensionHost
import type {
ToolAdmin,
NotificationManager,
ViewManager,
ElementLocateManager,
AccuSnap,
RenderSystem
} from "@itwin/core-frontend";
// ExtensionHost must always be in the API
e... | the_stack |
* @group unit/balance
*/
import { BN } from '@polkadot/util'
import type {
BalanceNumber,
BalanceOptions,
MetricPrefix,
} from '@kiltprotocol/types'
import {
formatKiltBalance,
convertToTxUnit,
toFemtoKilt,
TRANSACTION_FEE,
fromFemtoKilt,
balanceNumberToString,
} from './Balance.utils'
const TESTVA... | the_stack |
import * as b2 from "@box2d";
import * as testbed from "@testbed";
export class DrawingParticles extends testbed.Test {
/**
* Set bit 31 to distiguish these values from particle flags.
*/
public static readonly Parameters = {
e_parameterBegin: (1 << 31), // Start of this parameter namespace.
e_parame... | the_stack |
import * as GObject from "@gi-types/gobject";
import * as Gck from "@gi-types/gck";
import * as Gio from "@gi-types/gio";
import * as GLib from "@gi-types/glib";
export const ICON_CERTIFICATE: string;
export const ICON_GNUPG: string;
export const ICON_HOME_DIRECTORY: string;
export const ICON_KEY: string;
export const... | the_stack |
import { Range } from "vscode-languageserver-types";
import {
CodemarkPlus,
FetchAssignableUsersRequestType,
GetRangeScmInfoRequestType,
GetRangeScmInfoResponse,
CreateDocumentMarkerPermalinkRequestType,
ThirdPartyProviderBoard,
ThirdPartyProviderConfig,
CrossPostIssueValues,
GetReviewRequestType,
BlameAuthor... | the_stack |
import * as express from "express";
import * as fastify from 'fastify'
import * as glob from 'glob'
import * as http from 'http'
import * as http2 from 'http2'
import { ApplicationRegistry } from "./ApplicationRegistry";
import { DependencyRegistry } from "../di/DependencyRegistry";
import { InitializerRegistry } from ... | the_stack |
declare function require(arg: string): string;
import {
IMALSearchAnime,
IMALUserListAnime,
Intent,
} from "../common";
import {cleanAnimeName, loadSettings} from "../utils";
let animeName = "";
let animeId = "";
let animeInUserList = false;
let currentAnime: IMALSearchAnime;
// holds the amount of episode... | the_stack |
import {
DIFF_DELETE,
DIFF_EQUAL,
DIFF_INSERT,
diff_match_patch,
patch_obj,
} from 'diff-match-patch';
import { EventEmitter2 } from 'eventemitter2';
import { Doc, Path, StringDeleteOp, StringInsertOp } from 'sharedb';
import isEqual from 'lodash/isEqual';
import { DocInterface, EngineInterface, TargetOp } from '.... | the_stack |
"use strict";
// uuid: e27ba4bb-dcde-4cb8-8b9e-f67a989ed33a
// ------------------------------------------------------------------------
// Copyright (c) 2018 Alexandre Bento Freire. All rights reserved.
// Licensed under the MIT License+uuid License. See License.txt for details
// -------------------------------------... | the_stack |
import { renderHook, act } from '@testing-library/react-hooks';
import { cleanup } from '@testing-library/react';
import { useStateful } from './useStateful';
import { useNumber } from './useNumber';
import { useArray } from './useArray';
import { useBoolean } from './useBoolean';
import { useInput } from './useInput';... | the_stack |
module RongIMLib {
export class RongIMEmoji {
static emojis: any[] = [];
private static emojiFactory: { [s: string]: any } = {
"u1F600": { "en": "grinning", "zh": "\u5927\u7B11", "tag": "\uD83D\uDE00", "bp": "0px 0px" },
"u1F601": { "en": "grin", "zh": "\u9732\u9F7F\u800C\u... | the_stack |
import {
AnimationData, AnimationDataLike,
Asset, AssetSource,
Context,
Guid, newGuid,
log,
Material, MaterialLike,
Mesh,
MreArgumentError,
Prefab,
PrimitiveDefinition,
PrimitiveShape,
ReadonlyMap,
Sound, SoundLike,
Texture, TextureLike,
Vector3Like,
VideoStream, VideoStreamLike
} from '..';
import {
P... | the_stack |
export interface Comment {
id: string;
type: 'MODIFICATION'|'ADDITION'|'CREATION'|'RESTORATION'|'DELETION';
content: string;
cleaned_content: string;
parent_id: string|null;
replyTo_id: string|null;
indentation?: number|null;
user_text: string;
timestamp: string;
page_title: string;
authors?: stri... | the_stack |
import '../../../test/common-test-setup-karma';
import './gr-autocomplete';
import {html} from '@polymer/polymer/lib/utils/html-tag';
import {flush as flush$0} from '@polymer/polymer/lib/legacy/polymer.dom';
import {AutocompleteSuggestion, GrAutocomplete} from './gr-autocomplete';
import * as MockInteractions from '@po... | the_stack |
declare class TNSTwitter extends NSObject implements ASWebAuthenticationPresentationContextProviding, SFSafariViewControllerDelegate {
static alloc(): TNSTwitter; // inherited from NSObject
static handleOpenURL(url: string, callbackURL: string, isSSO: boolean): boolean;
static new(): TNSTwitter; // inherited from... | the_stack |
import { Component, State, Element, h } from '@stencil/core';
import Utils from '@visa/visa-charts-utils';
import '@visa/visa-charts-data-table';
import '@visa/keyboard-instructions';
const { findTagLevel } = Utils;
@Component({
tag: 'app-bar-chart',
styleUrl: 'app-bar-chart.scss'
})
export class AppBarChart {
... | the_stack |
import { HttpEvent, HttpEventType } from '@angular/common/http';
import { NEVER, Observable } from 'rxjs';
import { catchError, map } from 'rxjs/operators';
import {
ApiConfig,
ApiOptions,
NONE_PARSER,
Parser,
PathSegmentNames,
} from './types';
import { EDM_PARSERS } from './parsers/index';
import {
OData... | the_stack |
import { injectable, inject, optional } from "inversify";
import { Bounds, Point } from "../utils/geometry";
import { Deferred } from "../utils/async";
import { ILogger } from "../utils/logging";
import { TYPES } from "../base/types";
import { Action } from "../base/actions/action";
import { ActionHandlerRegistry } fro... | the_stack |
import * as commandLineArgs from 'command-line-args';
import * as commandLineUsage from 'command-line-usage';
import * as fs from 'fs';
import * as mkdirp from 'mkdirp';
import * as pathLib from 'path';
import {Bundler} from '../bundler';
import {Analyzer, FsUrlLoader, MultiUrlLoader, MultiUrlResolver, PackageRelativeU... | the_stack |
import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/authorizationPoliciesMappers";
import * as Parameters from "../models/parameters";
import { CustomerInsightsManagementClientContext } from "../customerInsightsManagementClientContext";
/** Class repres... | the_stack |
import { processCommaSep } from "string-process-comma-separated";
import checkForWhitespace from "./checkForWhitespace";
import { knownUnits } from "./constants";
import { isObj } from "./util";
import { ErrorObj } from "./commonTypes";
interface Opts {
type: "integer" | "rational";
whitelistValues: string[];
th... | the_stack |
import { Injectable } from '@angular/core';
import { Observable, Subject } from 'rxjs';
import { defer, from, throwError } from 'rxjs';
import { share, catchError } from 'rxjs/operators';
import { CacheStorageService } from '../cache-storage/cache-storage.service';
import { StorageCacheItem } from '../../interfaces/cac... | the_stack |
import { pathExists } from "fs-extra"
import { Buffer, BufferLayer, Commands, Configuration } from "oni-api"
import { warn } from "oni-core-logging"
import * as React from "react"
import { Transition } from "react-transition-group"
import { Position } from "vscode-languageserver-types"
import { LayerContextWithCursor ... | the_stack |
import { IRenderAtom } from '../render/atom';
import { IRenderBlock } from '../render/block';
import { IRenderDoc } from '../render/doc';
import { IRenderText } from '../render/text';
import { ITextService } from '../text/service';
import { ILayoutAtom, LayoutAtom } from './atom';
import { ILayoutBlock, LayoutBlock } f... | the_stack |
import { mXparserConstants } from '../mXparserConstants';
import { javaemul } from 'j4ts/j4ts';
import { BinaryRelations } from './BinaryRelations';
import { Evaluate } from './Evaluate';
import { MathFunctions } from './MathFunctions';
import { Coefficients } from './Coefficients';
import { MathConstants } from './Mat... | the_stack |
import {yupResolver} from '@hookform/resolvers/yup'
import type {MutationEvent} from '@sanity/client'
import {Box, Button, Card, Flex, Stack, Tab, TabList, TabPanel, Text} from '@sanity/ui'
import {Asset, DialogAssetEdit as DialogAssetEdit, ReactSelectOption} from '@types'
import groq from 'groq'
import React, {FC, Rea... | the_stack |
import { expect } from "chai";
import { BeDuration } from "@itwin/core-bentley";
import { ServerTimeoutError } from "@itwin/core-common";
import {
IModelApp, IModelTile, IModelTileContent, IModelTileTree, IpcApp, RenderGraphic, RenderMemory, SnapshotConnection, Tile, TileLoadStatus,
TileRequestChannel, Viewport,
} ... | the_stack |
namespace PE.Battle.Moves {
/**
* in-battle secondary effect of a damaging move.
* @param attacker
* @param opponent
* @param move
*/
export function AdditionalEffect(attacker: Battler, opponent: Battler, move: Move) {
let sereneGrace = attacker.hasAbility(ABILITYDEX.SERENEGRACE) ? 1 : 2;
swi... | the_stack |
//============== NgZorro上传组件包装器===================
//Copyright 2019 何镇汐
//Licensed under the MIT license
//=======================================================
import { Component, Input, ViewChild, forwardRef, Optional, Output, EventEmitter, AfterViewInit } from '@angular/core';
import { NgModel, NgForm } from '@an... | the_stack |
/**
*
* @module Kiwi
* @submodule Geom
*/
module Kiwi.Geom {
/**
* Represents position, scale, rotation and rotationPoint of an Entity.
* - Values can be transformed with a 3x3 affine transformation matrix, which each transform is assigned.
* - A tranform can be assigned a parent, which may in turn have it's ow... | the_stack |
import { Toaster } from '@hospitalrun/components'
import {
act,
render,
screen,
waitFor,
waitForElementToBeRemoved,
within,
} from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import format from 'date-fns/format'
import { createMemoryHistory } from 'history'
import React from... | the_stack |
/*
JPEG encoder ported to JavaScript and optimized by Andreas Ritter, www.bytestrom.eu, 11/2009
Basic GUI blocking jpeg encoder
*/
import { Image } from "./image.ts";
function JPEGEncoder(quality: number) {
const ffloor = Math.floor;
const YTable = new Array(64);
const UVTable = new Array(64);
const fdtbl_Y =... | the_stack |
import * as RxType from 'rxjs'
let Scheduler: import('./utils').Scheduler
let React: typeof import('react')
let ReactTestRenderer: typeof import('react-test-renderer')
let act: typeof import('react-test-renderer').act
let ObservableHooks: typeof import('../src')
let Rx: typeof import('rxjs')
describe('Concurrent Mode... | the_stack |
import HttpStatus from '@xpring-eng/http-status'
import * as request from 'supertest'
import 'mocha'
import App from '../../../../src/app'
import { adminApiVersions, payIdServerVersions } from '../../../../src/config'
import { AddressDetailsType } from '../../../../src/types/protocol'
import { appSetup, appCleanup } f... | the_stack |
import { ISPListItems, ISPListItem } from './ISPList';
import { IWebPartContext } from '@microsoft/sp-webpart-base';
import { ISimplePollWebPartProps } from './ISimplePollWebPartProps';
import { Environment, EnvironmentType } from '@microsoft/sp-core-library';
import { SPHttpClient, SPHttpClientResponse, ISPHttpClientO... | the_stack |
import { Trans, DateFormat } from "@lingui/macro";
import classNames from "classnames";
import isEqual from "lodash.isequal";
import PropTypes from "prop-types";
import * as React from "react";
import { Link } from "react-router";
import { Tooltip } from "@dcos/ui-kit";
import { Icon } from "@dcos/ui-kit";
import { Sys... | the_stack |
import basem = require('./ClientApiBases');
import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
import TaskAgentInterfaces = require("./interfaces/TaskAgentInterfaces");
export interface ITaskAgentApiBase extends basem.ClientApiBase {
addAgentCloud(agentCloud: TaskAgentInterfaces.TaskAgentC... | the_stack |
import {Component, ComponentType} from 'react';
import * as PropTypes from 'prop-types';
import {v4} from 'uuid';
import {toast, ToastContainer} from 'react-toastify';
import {omit, pick} from 'lodash';
import {addFilesAction, FileIndexReducerType, removeFileAction, updateFileAction} from '../redux/fileIndexReducer';
... | the_stack |
import User from 'App/Models/User'
import Encryption from '@ioc:Adonis/Core/Encryption'
import { schema, rules } from '@ioc:Adonis/Core/Validator'
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
import NoLoginException from '../../Exceptions/NoLoginException'
import Env from '@ioc:Adonis/Core/Env'
im... | the_stack |
import { ContextLevel } from '@/core/constants';
import { Injectable } from '@angular/core';
import { CoreSyncBaseProvider } from '@classes/base-sync';
import { CoreNetworkError } from '@classes/errors/network-error';
import { CoreApp } from '@services/app';
import { CoreSites } from '@services/sites';
import { CoreTex... | the_stack |
import BigNumber from 'bignumber.js'
import { abi as FactoryV2ABI } from '@uniswap/v2-periphery/build/IUniswapV2Factory.json'
import { abi as RouterV2ABI } from '@uniswap/v2-periphery/build/IUniswapV2Router02.json'
import { abi as PairV2ABI } from '@uniswap/v2-periphery/build/IUniswapV2Pair.json'
import ethLikeHelper f... | the_stack |
import React from 'react'
import HtmlParser from 'react-html-parser'
import { useMutation } from 'react-apollo'
import gql from 'graphql-tag'
import { Formik, Form, Field } from 'formik'
import * as Yup from 'yup'
import {
Box,
Tiles,
Stack,
ButtonDeprecated as Button,
Typography,
} from '@island.is/island-u... | the_stack |
import { PhysXPhysics } from "./PhysXPhysics";
import { Quaternion, Vector3 } from "oasis-engine";
import { IDynamicCollider } from "@oasis-engine/design";
import { PhysXCollider } from "./PhysXCollider";
/** The collision detection mode constants used for PhysXDynamicCollider.collisionDetectionMode. */
export enum Co... | the_stack |
import { createEvent, fireEvent, render } from '@testing-library/react'
import React from 'react'
import { DndProvider, useDrop } from 'react-dnd'
import { HTML5Backend } from 'react-dnd-html5-backend'
import { LocaleContext } from '../../../i18n'
import enUS from '../../../i18n/locales/en-US'
import { KeyMapping } fro... | the_stack |
namespace ts {
export type TscCompileSystem = fakes.System & {
writtenFiles: Set<Path>;
baseLine(): { file: string; text: string; };
disableUseFileVersionAsSignature?: boolean;
storeFilesChangingSignatureDuringEmit?: boolean;
};
export const noChangeRun: TestTscEdit ... | the_stack |
import type * as Common from '../../core/common/common.js';
import * as Platform from '../../core/platform/platform.js';
import * as ARIAUtils from './ARIAUtils.js';
import type {ItemsReplacedEvent, ListModel} from './ListModel.js';
import {Events as ListModelEvents} from './ListModel.js';
import {measurePreferredSize... | the_stack |
/// <reference types="jquery" />
declare interface Ui5Logger {
//Allows to add a new LogListener that will be notified for new log entries.
addLogListener(oListener: any): void;
//Creates a new debug-level entry in the log with the given message, details and calling component.
debug(sMessage: string, sDetails?... | the_stack |
import debounce from 'lodash/debounce';
import isEqual from 'lodash/isEqual';
import React from 'react';
import mapState, {
ActiveMarkers,
MapInfo,
MARKER_SET_KEYS,
} from 'src/components/map-utils/map-state';
import { MARKER_TYPES } from 'src/data';
import * as firebase from 'src/data/firebase';
import { Filter,... | the_stack |
import { EventEmitter } from 'events'
import NetworkRecorder from 'lighthouse/lighthouse-core/lib/network-recorder'
import NetworkMonitor from 'lighthouse/lighthouse-core/gather/driver/network-monitor'
import ProtocolSession from 'lighthouse/lighthouse-core/fraggle-rock/gather/session'
import { waitForFullyLoaded } fro... | the_stack |
import * as React from 'react'
import { render, screen } from '@testing-library/react'
import { runSpaceTests } from '../test-helpers'
import { Columns, Column, ColumnWidth } from './'
import { axe } from 'jest-axe'
const columnWidths: Array<ColumnWidth> = [
'1/2',
'1/3',
'1/4',
'1/5',
'2/3',
'... | the_stack |
import { FormTemplate } from './@types/form-design/form-template';
const _formTemplates: Array<FormTemplate> = [
{
code: 'pc_00',
title: '空模板',
description: '标准空模板。',
deviceType: 'pc',
library: 'ant-design',
controls: [],
script: `return {
data: {
},... | the_stack |
import React, { useState } from "react";
import CustomScrollArea from "react-perfect-scrollbar";
import {
Box,
Button,
Dialog,
Flex,
Form as FluentUIForm,
ProviderConsumer as FluentUIThemeConsumer,
SiteVariablesPrepared,
} from "@fluentui/react-northstar";
import { getText, TTextObject } from "../../tra... | the_stack |
import { invariant } from '@algomart/shared/utils'
import type { Account, Algodv2, Transaction } from 'algosdk'
import { accountInformation } from './account'
import {
DEFAULT_ADDITIONAL_ROUNDS,
DEFAULT_DAPP_NAME,
MAX_NFT_COUNT,
} from './constants'
import { encodeNote, NoteTypes } from './note'
import { loadSDK,... | the_stack |
import { Color, IColor } from '../color/Color';
import { Cell } from '../cell/Cell';
import { ICanvasOptions } from './CanvasOptions';
import { IDisplayOptions } from '../cell/DisplayOptions';
import { WriteStream } from 'tty';
import { encodeToVT100 } from '../encodeToVT100';
/**
* Canvas implements low-level API to... | the_stack |
module Supler {
interface RenderAnyValueField {
(fieldData:FieldData, options:any, compact:boolean): string
}
interface RenderPossibleValuesField {
(fieldData:FieldData,
possibleValues:SelectValue[],
containerOptions:any,
elementOptions:any,
compact:boolean): string
}
export ... | the_stack |
import {getComponentClass, getComponentId} from './ComponentId';
import {Class} from '../utils/Class';
import {Signal} from '../utils/Signal';
import {isTag, Tag} from './Tag';
import {ILinkedComponent, isLinkedComponent} from './LinkedComponent';
import {LinkedComponentList} from './LinkedComponentList';
/**
* Entit... | the_stack |
import { ArrayParser } from '@/parsers/ArrayParser';
import { TestParser, Scope } from '../../lib/TestParser';
describe('parsers/ArrayParser', () => {
TestParser.Case({
case: '0',
given: {
parser: new ArrayParser({
schema: { type: 'array' },
model: []
})
},
expected: {
... | the_stack |
* @description 全局工具函数
* @author shuxiaokai
* @create 2021-06-15 22:55
*/
import { nanoid } from "nanoid/non-secure"
import type { ApidocHttpRequestMethod, ApidocProperty, ApidocPropertyType, ApidocDetail } from "@@/global"
import lodashIsEqual from "lodash/isEqual";
import lodashCloneD... | the_stack |
import { AccessLevelList } from "../shared/access-level";
import { PolicyStatement } from "../shared";
/**
* Statement provider for service [access-analyzer](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiamaccessanalyzer.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/lates... | the_stack |
import { Array } from "@siteimprove/alfa-array";
import { Equatable } from "@siteimprove/alfa-equatable";
import { Future } from "@siteimprove/alfa-future";
import { Iterable } from "@siteimprove/alfa-iterable";
import { List } from "@siteimprove/alfa-list";
import { None, Option } from "@siteimprove/alfa-option";
impo... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.