text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import { useState, useCallback } from 'react';
import { useImmer } from 'use-immer';
import { ShapePanelEnum } from '@/enum';
import { uuid, getCenterXY } from '@/utils/util';
import { useModel } from 'umi';
import type { DataModel, DatModelItem } from '@/typing';
import _ from 'lodash';
import canvasModel from './canv... | the_stack |
import * as geom from "../format/geom";
import * as dbft from "../format/dragonBonesFormat";
import * as spft from "../format/spineFormat";
type Map<T> = {
[key: string]: T;
};
type Input = {
name: string;
data: spft.Spine;
textureAtlas: string;
};
/**
* Convert Spine format to DragonBones format.
*/
... | the_stack |
import { CellModel, ColumnModel, getCell, SheetModel } from './../base/index';
import { getCellAddress, getRangeIndexes } from './address';
/**
* Check whether the text is formula or not.
*
* @param {string} text - Specify the text.
* @returns {boolean} - Check whether the text is formula or not.
*/
export functi... | the_stack |
import { workspace } from 'vscode';
import { CliCommand, createCliCommand } from './cli';
export function newTknCommand(...tknArguments: string[]): CliCommand {
return createCliCommand('tkn', ...tknArguments);
}
export function newK8sCommand(...k8sArguments: string[]): CliCommand {
return createCliCommand('kubec... | the_stack |
import { GraphQLSchemaPlugin } from "@webiny/handler-graphql/plugins";
import { ErrorResponse, ListResponse } from "@webiny/handler-graphql";
import {
ApwContentReviewStep,
ApwContentReviewStepStatus,
ApwContext,
ApwContentReviewListParams,
ApwContentReviewContent
} from "~/types";
import resolve fr... | the_stack |
import uuid from 'uuid/v4';
import {
EventOrdersUpdate,
EventPositionsUpdate,
EventTradesUpdate,
EventWSAuthResult,
EventWSData
} from './constants';
import { loadTradeCredentials } from '../util/credentials';
import { ProtobufBroker, ProtobufStream } from './modules/proto';
import SessionTracker from './Sess... | the_stack |
import React, { useCallback, useMemo, useState } from "react";
import {
GestureResponderEvent,
NativeSyntheticEvent,
StyleProp,
StyleSheet,
TargetedEvent,
TextStyle,
View,
ViewStyle,
} from "react-native";
import Surface, { SurfaceProps } from "./Surface";
import Text from "./Text";
import ActivityIndic... | the_stack |
import * as ethers from 'ethers'
import * as fs from 'fs'
import {
maciContractAbi,
formatProofForVerifierContract,
} from 'maci-contracts'
import {
genBatchUstProofAndPublicSignals,
verifyBatchUstProof,
getSignalByNameViaSym,
} from 'maci-circuits'
import {
PubKey,
PrivKey,
Keypair,
... | the_stack |
export interface RPCHandler {
(...args: any[]): any;
}
export interface RPCError {
code: number;
message: string;
data: any;
}
export interface RPCEvent {
emit(event: string, ...args: any[]): void;
on(event: string, fn: RPCHandler): void;
off(event: string, fn?: RPCHandler): void;
oner... | the_stack |
import { get } from '@microsoft/sp-lodash-subset';
import { ISiteScriptAction } from '../../models/ISiteScript';
import DefaultSchema from '../../schema/schema';
import { ServiceScope, ServiceKey } from '@microsoft/sp-core-library';
import { HttpClient, SPHttpClient } from '@microsoft/sp-http';
export interface ISiteS... | the_stack |
import {
EVENT_ACTION,
PRESENCE_ACTION,
RECORD_ACTION,
RPC_ACTION,
TOPIC,
MONITORING_ACTION,
Message,
BulkSubscriptionMessage,
STATE_REGISTRY_TOPIC
} from '../../constants'
import { SocketWrapper, DeepstreamConfig, DeepstreamServices, SubscriptionListener, StateRegistry, SubscriptionRegistry, LOG_LEVE... | the_stack |
import * as React from "react";
import IGraphBotProps from "./IGraphBotProps";
import { ActionButton } from "office-ui-fabric-react/lib/Button";
import { Panel, PanelType } from "office-ui-fabric-react/lib/Panel";
import { Spinner, SpinnerSize} from "office-ui-fabric-react/lib/spinner";
import { Overlay } from "offic... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
import * as utilities from "../utilities";
/**
* Manages a Dataset inside an Azure Data Factory. This is a generic resource that supports all different Dataset Types.
*
* ## Example Usage
*
* ```typescript
* ... | the_stack |
import React from "react";
import {
ScrollView,
RefreshControl,
Platform,
SafeAreaView,
Image,
View,
} from "react-native";
import {
MediaRule,
isWidthGreaterThanOrEqualTo,
mergeRStyle,
} from "emotion-native-media-query";
import { BREAKPOINTS } from "helpers/constants";
import { getHomeAsync, Home } ... | the_stack |
import { i18nMark } from "@lingui/react";
import { Trans } from "@lingui/macro";
import classNames from "classnames";
import { Dropdown, Form, Table, Tooltip } from "reactjs-components";
import { Link } from "react-router";
import PropTypes from "prop-types";
import * as React from "react";
import { Badge } from "@dco... | the_stack |
import {
FocusEvent,
KeyboardEventHandler,
KeyboardEvent as ReactKeyboardEvent,
useCallback,
useEffect,
useRef,
useState,
} from "react";
import { flatten2DArray, reverseArray } from "ariakit-utils/array";
import {
fireBlurEvent,
fireKeyboardEvent,
isSelfTarget,
} from "ariakit-utils/events";
import... | the_stack |
interface Item {
name: string;
route?: string;
content?: () => Promise<any>;
items?: Item[];
}
let list: Item[] = [
{
name: "General",
items: [
{
name: "Button",
route: "+/button/states",
content: () => import("./general/button/states")
}... | the_stack |
import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
import { esIndex } from './consts';
import {Injectable, Inject} from "@angular/core";
/**
* Data abstraction layer is an absraction to some connector (for now realized {@link FirebaseConnector}, but you can create your own using this... | the_stack |
class SoundExpression {
constructor(private notes: string) {
}
/**
* Starts to play a sound expression.
*/
//% block="play sound $this"
//% weight=80
//% blockGap=8
//% help=music/play
//% group="micro:bit (V2)"
//% parts=builtinspeaker
//% deprecated=1
play() {
... | the_stack |
import { grpc } from '@improbable-eng/grpc-web'
import {
encrypt,
extractPublicKeyBytes,
Identity,
Public,
} from '@textile/crypto'
import {
CopyAuthOptions,
GrpcAuthentication,
WithKeyInfoOptions,
WithUserAuthOptions,
} from '@textile/grpc-authentication'
import { GetThreadResponse } from '@textile/hub... | the_stack |
import path from 'path';
import handlebars from 'handlebars';
import glob from 'glob-to-regexp';
import chalk from 'chalk';
import terser from 'terser';
import get from 'lodash/get';
import codeFrameColumns from '@babel/code-frame';
import { OutputChunk, OutputOptions, rollup, RollupOptions } from 'rollup';
import ro... | the_stack |
import React from 'react'
import { store } from '../../../store'
import { StoreContext } from 'storeon/react'
import { object, withKnobs, select, boolean, text } from '@storybook/addon-knobs'
import { withInfo } from '@storybook/addon-info'
import uiManagmentApi from '../../../api/uiManagment/uiManagmentApi'
import sty... | the_stack |
import { readFileSync } from '../helpers/file-helper';
import { BpmnElement, BpmnVisualization, FlowKind, OverlayEdgePosition, OverlayShapePosition, ShapeBpmnElementKind } from '../../src/bpmn-visualization';
import { expectSvgEvent, expectSvgPool, expectSvgSequenceFlow, expectSvgTask, HtmlElementLookup } from './helpe... | the_stack |
import * as vscode from 'vscode';
import { IHistoryFileProperties, HistoryController } from './history.controller';
import { IHistorySettings, HistorySettings } from './history.settings';
// import path = require('path');
const enum EHistoryTreeItem {
None = 0,
Group,
File
}
const enum EHistoryTreeCont... | the_stack |
// (c) Dean McNamee <dean@gmail.com>, 2012.
//
// https://github.com/deanm/css-color-parser-js
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without li... | the_stack |
// Hopefully this gets inlined!
function getPixelIndex(x: number, y: number, w: number) {
return (x + y * w) * 4
}
class CanvasRenderer extends Renderer {
tileDataCache: {[key: string]: any} = {}
init(): void {
heart.attach("cnv")
}
color(r: number, g: number, b: number, a: number=255): v... | the_stack |
import Vec2 from "../../../matrix/vec2";
import Vec3 from "../../../matrix/vec3";
function Quadratic(x0, y0, x1, y1, x2, y2, resolution) {
function QuadraticBezierP0(t, p) {
const k = 1 - t;
return k * k * p;
}
function QuadraticBezierP1(t, p) {
return 2 * (1 - t) * t * p;
}
... | the_stack |
import Stripe from "stripe";
import * as admin from "firebase-admin";
import * as functions from "firebase-functions";
import { order_status, next_transitions, order_status_keys, timeEventMapping } from "../common/constant";
import * as utils from "../lib/utils";
import { orderAccounting, createNewOrderData, updateOrd... | the_stack |
import * as React from 'react';
import {
calculateDimensions,
setColGroupWidth,
getVisibleColGroup,
getScrollPosition,
throttle,
getDataItem,
} from '../utils';
import dataGridFormatter from '../functions/formatter';
import dataGridCollector from '../functions/collector';
import { IDataGrid } from '../comm... | the_stack |
import * as fc from 'fast-check'
import { Applicative, Applicative1, Applicative2, Applicative2C, Applicative3 } from 'fp-ts/lib/Applicative'
import { Apply, Apply1, Apply2, Apply2C, Apply3 } from 'fp-ts/lib/Apply'
import { Eq, eqBoolean, eqNumber, eqString } from 'fp-ts/lib/Eq'
import { Field } from 'fp-ts/lib/Field'
... | the_stack |
import { doc } from "../dom/shortcuts";
import { OpState } from "../vdom/state";
import { withSchedulerTick } from "../scheduler";
import { EventHandlerNode, EventHandlerFlags } from "./event_handler";
import { DispatchTarget, dispatchEvent } from "./dispatch";
import { EVENT_CAPTURE_ACTIVE_OPTIONS } from "./utils";
e... | the_stack |
import { BaseResource, CloudError } from "ms-rest-azure";
import * as moment from "moment";
export {
BaseResource,
CloudError
};
/**
* Represents a tenant ID that is trusted by the cluster.
*/
export interface TrustedExternalTenant {
/**
* GUID representing an external tenant.
*/
value?: string;
}
/... | the_stack |
import { gen, sampleOne } from 'testcheck';
import { text, relationship } from '@keystone-next/keystone/fields';
import { list } from '@keystone-next/keystone';
import { setupTestRunner } from '@keystone-next/keystone/testing';
import { apiTestConfig, expectSingleRelationshipError } from '../../utils';
const runner = ... | the_stack |
import { ABSENT } from '@aws-cdk/assert-internal';
import '@aws-cdk/assert-internal/jest';
import { AutoScalingGroup } from '@aws-cdk/aws-autoscaling';
import * as autoscaling from '@aws-cdk/aws-autoscaling';
import { MachineImage } from '@aws-cdk/aws-ec2';
import * as ec2 from '@aws-cdk/aws-ec2';
import { AsgCapacityP... | the_stack |
import { DbResult, QueryBinder, QueryOptionsBuilder, QueryRowFormat, QueryStats } from "@itwin/core-common";
import { expect } from "chai";
import { ECSqlStatement } from "../../ECSqlStatement";
import { IModelDb, SnapshotDb } from "../../IModelDb";
import { IModelHost } from "../../IModelHost";
import { IModelJsFs } f... | the_stack |
'use strict';
import * as coqProto from '../coq-proto';
import * as text from '../../util/AnnotatedText';
import * as util from 'util';
import {Node} from './coq-xml';
export {Node} from './coq-xml';
import {StateId, EditId, Pair, StateFeedback, LtacProfTactic, LtacProfResults,
UnionL, UnionR, Union, OptionState, Sub... | the_stack |
import {PinoLogger} from 'nestjs-pino';
import {
Currency,
EstimateGasEth,
fromXdcAddress,
generateAddressFromXPub,
generatePrivateKeyFromMnemonic,
generateWallet,
prepareXdcOrErc20SignedTransaction,
prepareXdcSmartContractWriteMethodInvocation,
sendXdcSmartContractReadMethodInvocati... | the_stack |
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utilities";
/**
* Provides an OpsWorks stack resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi... | the_stack |
// This definition file is merge-compatible with ../gapi/gapi.d.ts
// Note the occurrences of "INCOMPLETE". For some interfaces and object types, I have only included
// the properties and methods that I've actually used so-far, and will add more as they become useful to me.
// Or, maybe you want to complete them?
//... | the_stack |
declare namespace dojox {
namespace mdnd {
/**
* Permalink: http://dojotoolkit.org/api/1.9/dojox/mdnd/AreaManager.html
*
* Drag And Drop manager
*
*/
class AreaManager {
constructor();
/**
* CSS class enabled an area ... | the_stack |
import { TimeEntity } from '../../utils/entity-utils';
import BaseTokenizer from './base';
import { WS, makeToken } from './helpers';
const NUMBERS : Record<string, number> = {
zero: 0,
un: 1,
uno: 1,
due: 2,
tre: 3,
quattro: 4,
cinque: 5,
sei: 6,
sette: 7,
otto: 8,
nove: 9,... | the_stack |
import * as Faker from 'faker';
import {
AsyncSystemConfig,
AsyncSystemValue,
BaseConfig,
ClusterItems,
SharedAsyncSystemConfig,
UnitConfig,
} from '../models';
import {KeyValToKeyValProducer} from '../models/utils';
import {NonPrimitiveUnitBase} from '../lib/abstract-non-primitive-unit-base';
import {UnitB... | 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/privateZonesMappers";
import * as Parameters from "../models/parameters";
import { PrivateDnsManagementClientContext } from "../privateDnsManageme... | the_stack |
import * as azure from "@pulumi/azure";
import * as pulumi from "@pulumi/pulumi";
import * as cdnManagement from "@azure/arm-cdn";
import { ServiceClientCredentials } from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-nodeauth";
/**
* CustomDomainOptions represents the inputs to the dynamic resou... | the_stack |
import { GraphQLResolveInfo } from 'graphql';
import {
FieldKind,
FieldMap,
FieldNullability,
FieldOptionsFromKind,
InputFieldMap,
InputFieldsFromShape,
InputShapeFromFields,
InterfaceParam,
ListResolveValue,
MaybePromise,
ObjectRef,
OutputShape,
OutputType,
SchemaTypes,
ShapeFromTypeParam... | the_stack |
import { Direction, Directionality } from '@angular/cdk/bidi';
import { LEFT_ARROW, RIGHT_ARROW } from '@angular/cdk/keycodes';
import {
ConnectedPosition,
FlexibleConnectedPositionStrategy,
Overlay,
OverlayConfig,
OverlayRef,
ScrollStrategy,
} from '@angular/cdk/overlay';
import { normalizePassiveListenerO... | the_stack |
import { assert } from "chai";
import { TabWatcher } from "../src/background/tabWatcher";
import { browserMock } from "./browserMock";
import { ensureNotNull, createSpy, SpyData, booleanContext } from "./testHelpers";
import { quickBeforeRedirectDetails } from "./quickHelpers";
describe("TabWatcher", () => {
... | the_stack |
import { ethers, upgrades, waffle } from "hardhat";
import { Overrides, Signer, BigNumberish, utils, Wallet } from "ethers";
import chai from "chai";
import { solidity } from "ethereum-waffle";
import "@openzeppelin/test-helpers";
import {
AlpacaToken,
AlpacaToken__factory,
FairLaunch,
FairLaunch__factory,
Mo... | the_stack |
import { Trans } from "@lingui/macro";
import { Tooltip } from "reactjs-components";
import * as React from "react";
import { MountService } from "foundation-ui";
import {
Flex,
TextInput,
FormSectionBody,
FieldGroup,
ToggleBox,
SelectInput,
} from "@dcos/ui-kit";
import AddButton from "#SRC/js/components/... | the_stack |
declare namespace SqlBricks {
/**
* Statement is an abstract base class for all statements (SELECT, INSERT, UPDATE, DELETE)
* and should never be instantiated directly. It is exposed because it can be used with the
* instanceof operator to easily determine whether something is a SQL Bricks statement: my_var ... | the_stack |
import { logger, PrefixedLogger } from '../../logger';
import { LocalStorageCryptoStore } from './localStorage-crypto-store';
import { MemoryCryptoStore } from './memory-crypto-store';
import * as IndexedDBCryptoStoreBackend from './indexeddb-crypto-store-backend';
import { InvalidCryptoStoreError } from '../../errors'... | the_stack |
// This file was automatically generated by elastic/elastic-client-generator-js
// DO NOT MODIFY IT BY HAND. Instead, modify the source open api file,
// and elastic/elastic-client-generator-js to regenerate this file again.
import {
Transport,
TransportRequestOptions,
TransportRequestOptionsWithMeta,
Transpor... | the_stack |
import {
AlignCenterOutlined,
CaretRightOutlined,
CopyFilled,
MonitorOutlined,
PauseOutlined,
SaveFilled,
SettingFilled,
} from '@ant-design/icons';
import { Divider, Dropdown, Menu, Select, Space, Tooltip } from 'antd';
import { ToolbarButton } from 'app/components';
import { Chronograph } from 'app/comp... | the_stack |
describe('Test Jest Syntax', function() {
it('test toBe', () => {
expect({ a: 1 }.a).toBe(1)
expect({ a: 1 }.a).not.toBe(2)
expect(NaN).toBe(NaN)
;[
[1, 2],
[true, false],
[{}, {}],
[{ a: 1 }, { a: 1 }],
[{ a: 1 }, { a: 5 }],
['abc', 'cde'],
['with \ntrailing ... | the_stack |
import React from 'react';
import createClass from 'create-react-class';
import { LineChart, Legend, chartConstants, formatters } from './../../index';
import _ from 'lodash';
import Resizer from '../Resizer/Resizer';
import Button from '../Button/Button';
export default {
title: 'Visualizations/LineChart',
componen... | the_stack |
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import Outputs from '../../../../../resources/outputs';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { Raidbos... | the_stack |
import { Kind } from './Kind'
import {
HVal,
NOT_SUPPORTED_IN_FILTER_MSG,
CANNOT_CHANGE_READONLY_VALUE,
valueInspect,
valueIsKind,
valueMatches,
} from './HVal'
import { HaysonDateTime } from './hayson'
import { Node } from '../filter/Node'
import { HGrid } from './HGrid'
import { HList } from './HList'
import { ... | the_stack |
import React, { useCallback, useEffect, useRef, useState } from 'react';
import {
Alert,
ImageStyle,
KeyboardAvoidingView,
Platform,
ScrollView,
StyleProp,
TouchableOpacity,
View,
} from 'react-native';
// import DateTimePicker, {
// Event,
// AndroidEvent,
// } from '@react-native-community/datetim... | the_stack |
import { nanoid } from "nanoid"
import { AST } from "@/parser"
import { RenderNode, RenderConnect, Size, LayoutChildren, Box } from "./types"
import {
CHART_PADDING_HORIZONTAL,
CHART_PADDING_VERTICAL,
MINIMUM_CHART_PADDING_HORIZONTAL,
MINIMUM_CHART_PADDING_VERTICAL,
NODE_PADDING_HORIZONTAL,
NODE_PADDING_VER... | the_stack |
import { IFacetOptions } from '../Facet/Facet';
import { FacetValue } from '../Facet/FacetValue';
import { Facet } from '../Facet/Facet';
import { ComponentOptions } from '../Base/ComponentOptions';
import { HierarchicalFacetValuesList } from './HierarchicalFacetValuesList';
import { HierarchicalFacetQueryController } ... | the_stack |
export interface XY { x: number, y: number; }
export interface XYZ extends XY { z: number; }
export interface XYZW extends XYZ { w: number; }
export interface RGB { r: number; g: number; b: number; }
export interface RGBA extends RGB { a: number; }
import * as Bind from "bind-imgui";
export { Bind };
let bind: Bind.... | the_stack |
declare const map: AMap.Map;
declare const lnglat: AMap.LngLat;
declare const lnglatTuple: [number, number];
// $ExpectError
new AMap.Transfer();
// $ExpectType Transfer
new AMap.Transfer({
city: 'city'
});
// $ExpectType Transfer
const transfer = new AMap.Transfer({
city: 'city1',
policy: AMap.TransferPol... | the_stack |
//% weight=2 color=#002050 icon="\uf09e"
//% blockGap=8
//% groups='["Sender", "Receiver", "Packet", "Mode", "Configuration"]'
namespace lora {
export const enum LoRaState {
None,
/**
* Started initialization
*/
Initializing,
/**
* LoRa module initialized a... | the_stack |
export as namespace Prism;
export const languages: Languages;
export const plugins: Record<string, any>;
/**
* A function which will be invoked after an element was successfully highlighted.
*
* @param element The element successfully highlighted.
*/
export type HighlightCallback = (element: Element) => void;
/**... | the_stack |
let kernel: any;
// eslint-disable-next-line
// @ts-ignore: breaks typedoc
let interpreter: any;
// eslint-disable-next-line
// @ts-ignore: breaks typedoc
let pyodide: any;
// eslint-disable-next-line
// @ts-ignore: breaks typedoc
let stdout_stream: any;
// eslint-disable-next-line
// @ts-ignore: breaks typedoc
let s... | the_stack |
import * as DiscoveryEntryWithMetaInfo from "../../generated/joynr/types/DiscoveryEntryWithMetaInfo";
import * as MessagingQos from "../messaging/MessagingQos";
import * as Request from "./types/Request";
import * as Reply from "./types/Reply";
import * as OneWayRequest from "./types/OneWayRequest";
import BroadcastSu... | the_stack |
const animInfo: { [anim: string]: { type: string } } = {
"idle": {type: "static"},
"attack": {type: "static"},
"weapon-reload": {type: "static"},
"walk": {type: "move"},
"static-idle": {type: "static"},
"static": {type... | the_stack |
import { ReplayMap } from './ReplayMap'
import { ReplayChunk } from './ReplayChunk'
import { ReplayState } from './ReplayState'
import { Reader, ReaderDataType } from '../Reader'
import { FrameDataReader } from './FrameDataReader'
import { getInitialDeltaDecoders } from './readDelta'
const checkType = (r: Reader) => {... | the_stack |
import { Environment } from "@hoppscotch/data"
import { cloneDeep } from "lodash"
import isEqual from "lodash/isEqual"
import { combineLatest, Observable } from "rxjs"
import { distinctUntilChanged, map, pluck } from "rxjs/operators"
import DispatchingStore, {
defineDispatchers,
} from "~/newstore/DispatchingStore"
... | the_stack |
import bcd from "@mdn/browser-compat-data";
import type { Identifier } from "@mdn/browser-compat-data/types";
import browserslist from "browserslist";
import compareVersions from "compare-versions";
import { css } from "mdn-data";
const enum CSSPrefixFlags {
"-webkit-" = 1 << 0,
"-moz-" = 1 << 1,
"-ms-" = 1 << 2,
}... | the_stack |
module WinJSTests {
"use strict";
var list;
var oldHasWinRT;
// As a side effect, this will scroll the browser to make the element visible
function createPointerUpEvent(element) {
element.scrollIntoView(false);
var rect = element.getBoundingClientRect();
// Simulate clicki... | the_stack |
import chai, { expect } from 'chai'
import { Contract } from 'ethers'
import { BigNumber, bigNumberify } from 'ethers/utils'
import { solidity, MockProvider, createFixtureLoader, deployContract } from 'ethereum-waffle'
import { expandTo18Decimals, mineBlock, encodePrice } from './shared/utilities'
import { v2Fixture }... | the_stack |
import * as L from 'leaflet';
declare module 'leaflet-pm' {
/**
* Extends built in leaflet Layer Options.
*/
interface LayerOptions {
pmIgnore?: boolean;
snapIgnore?: boolean;
}
/**
* Extends built in leaflet Map Options.
*/
interface MapOptions {
pmIgnore?: boolean;
}
/**
*... | the_stack |
interface IDispatch { }
interface IDictionary { }
interface IUnknown { }
interface IStream { }
type Guid = string;
declare namespace Enums
{
////////////////////////////////////////////////////////////////////////////////////////////////////
// AGCObjectType Enum
/**
* AGCUniqueID type.
*/
enum AGCObjectType
... | the_stack |
'use strict';
/** @hidden */
const debug = require('debug')('wicked-sdk');
/** @hidden */
const qs = require('querystring');
/** @hidden */
const uuid = require('node-uuid');
import {
WickedInitOptions,
Callback,
WickedGlobals,
ErrorCallback,
WickedAwaitOptions,
WickedApiCollection,
Wicked... | the_stack |
import BigNumber from 'bignumber.js'
import { EthValue } from '@app/core/models'
export enum FormattedNumberUnit {
ETH = 'eth',
GWEI = 'gwei',
WEI = 'wei',
PERCENT = '%',
USD = '$',
B = 'B',
T = 'T',
Q = 'Q',
M = 'M',
K = 'k'
}
export interface FormattedNumber {
value: stri... | the_stack |
import { BaseResource } from 'ms-rest-azure';
import { CloudError } from 'ms-rest-azure';
import * as moment from 'moment';
export { BaseResource } from 'ms-rest-azure';
export { CloudError } from 'ms-rest-azure';
/**
* @class
* Initializes a new instance of the ConsistencyPolicy class.
* @constructor
* The cons... | the_stack |
import { WlMessage, fileDescriptor, uint, int,
fixed, object, objectOptional, newObject, string, stringOptional,
array, arrayOptional, u, i, f, oOptional, o, n, sOptional, s, aOptional, a, h, WebFD, Fixed } from 'westfield-runtime-common'
import * as Westfield from '..'
/**
*
* Clients can handle the 'done... | the_stack |
* Tooltip spec
*/
import { isVisible } from '@syncfusion/ej2-base';
import { Kanban, KanbanModel } from '../../src/kanban/index';
import { kanbanData } from './common/kanban-data.spec';
import { profile, inMB, getMemoryProfile } from './common/common.spec';
import * as util from './common/util.spec';
import { Query } ... | the_stack |
import {execSync} from 'child_process';
import * as dgram from 'dgram';
import * as dns from 'dns';
import {powerMonitor} from 'electron';
import * as net from 'net';
import {platform} from 'os';
import * as path from 'path';
import * as process from 'process';
import * as socks from 'socks';
import {ShadowsocksConfig... | the_stack |
'use strict';
import { EventEmitter } from 'events';
import { errors, ErrorCallback, Callback, callbackToPromise, errorCallbackToPromise } from 'azure-iot-common';
import * as machina from 'machina';
import { ProvisioningDeviceConstants } from './constants';
import { PollingTransport, RegistrationRequest, DeviceRegist... | the_stack |
import request from 'request';
import _ from 'lodash';
import CONFIG from '../../config';
import { logger } from '../logger';
export const statusSMS = async (SMSID: string): Promise<{ succeeded: boolean; code: number }> => {
if (CONFIG.SMS_SIMULATE) {
return { succeeded: true, code: 1 };
}
const url = 'htt... | the_stack |
import * as ts from "../../../modules/typescript";
import * as WorkerProcessTypes from "./workerprocess/workerProcessTypes";
import ClientExtensionEventNames from "../../ClientExtensionEventNames";
import * as tsLanguageSupport from "./tsLanguageSupport";
/**
* Resource extension that handles compiling or transpling ... | the_stack |
import { isPresent, global, stringify } from '../../facade/lang';
import { GetterFn, SetterFn, MethodFn } from './types';
import { PlatformReflectionCapabilities } from './platform_reflection_capabilities';
import { ListWrapper } from '../../facade/collections';
import { Type } from '../../facade/type';
// import {Base... | the_stack |
import {
PLUGIN_COMPONENT,
PLUGIN_TOOLBAR_BUTTONS,
GALLERY_SETTINGS,
GALLERY_IMAGE_SETTINGS,
GIPHY_PLUGIN,
IMAGE_SETTINGS,
VIDEO_SETTINGS,
ACTION_BUTTONS,
STATIC_TOOLBAR_BUTTONS,
} from '../cypress/dataHooks';
import { DEFAULT_DESKTOP_BROWSERS } from './settings';
import { usePlugins, plugins, usePlug... | the_stack |
import 'mocha';
import { expect } from '@integration/testing-tools';
import { Ensure, equals } from '@serenity-js/assertions';
import { actorCalled, engage, LogicError } from '@serenity-js/core';
import { by } from 'protractor';
import { error } from 'selenium-webdriver';
import { Click, Close, Navigate, Switch, Targ... | the_stack |
import type { BuildPlatformContext, BuildPlatformEvents } from '@jovotech/cli-command-build';
import {
ANSWER_BACKUP,
ANSWER_CANCEL,
deleteFolderRecursive,
DISK,
flags,
getResolvedLocales,
InstallContext,
JovoCliError,
mergeArrayCustomizer,
OK_HAND,
PluginHook,
printHighlight,
printStage,
pr... | the_stack |
import { GlobalProps } from 'ojs/ojvcomponent';
import { ComponentChildren } from 'preact';
import { DataProvider } from '../ojdataprovider';
import { dvtBaseComponent, dvtBaseComponentEventMap, dvtBaseComponentSettableProperties } from '../ojdvt-base';
import { JetElement, JetSettableProperties, JetElementCustomEvent,... | the_stack |
import { getRealVariables, parseAndAnalyze } from '../util';
describe('References:', () => {
describe('When there is a `let` declaration on global,', () => {
it('the reference on global should be resolved.', () => {
const { scopeManager } = parseAndAnalyze('let a = 0;');
expect(scopeManager.scopes).... | the_stack |
import { html, render } from 'lit-html';
import EventManager from '../utils/event-manager';
import { INPUT_SIZE } from '../../src/components/input/input';
import BXSelect, { SELECT_COLOR_SCHEME } from '../../src/components/select/select';
import BXSelectItem from '../../src/components/select/select-item';
import BXSele... | the_stack |
import * as S from '@apollo-elements/test/schema';
import * as C from '@apollo/client/core';
import { aTimeout, fixture, expect, nextFrame } from '@open-wc/testing';
import { html } from 'lit/static-html.js';
import { setupClient, teardownClient } from '@apollo-elements/test';
import './apollo-subscription';
impo... | the_stack |
import {LOCALES} from '../locales';
export default {
property: {
weight: 'pes',
label: 'etiqueta',
fillColor: 'color fons',
color: 'color',
coverage: 'cobertura',
strokeColor: 'color de traç',
radius: 'radi',
outline: 'outline',
stroke: 'traç',
density: 'densitat',
height:... | the_stack |
import React from 'react'
import { expect, mount, stub, wait } from '@instructure/ui-test-utils'
import { TreeBrowser } from '../index'
import { TreeNode } from '../TreeNode'
import { TreeBrowserLocator } from '../TreeBrowserLocator'
const COLLECTIONS_DATA = {
2: { id: 2, name: 'Root Directory', collections: [3, 4]... | the_stack |
import * as _ from 'lodash';
import { SinonStub, stub } from 'sinon';
import { expect } from 'chai';
import { StatusCodeError, UpdatesLockedError } from '../src/lib/errors';
import prepare = require('./lib/prepare');
import * as dockerUtils from '../src/lib/docker-utils';
import * as config from '../src/config';
impor... | the_stack |
import { RepresentationRegistry, ColormakerRegistry } from '../globals'
import { defaults } from '../utils'
import LabelFactory, { LabelType } from '../utils/label-factory'
import RadiusFactory from '../utils/radius-factory'
import StructureRepresentation, { StructureRepresentationData } from './structure-representatio... | the_stack |
declare module '@ailhc/excel2all' {
/**当前系统行尾 platform === "win32" ? "\n" : "\r\n";*/
export const osEol: string;
}
declare module '@ailhc/excel2all' {
export class Logger {
private static _enableOutPutLogFile;
private static _logLevel;
private static _logStr;
/**
* 如果有输出过错误信息则为true
... | the_stack |
import * as Common from '../../core/common/common.js';
import * as Host from '../../core/host/host.js';
import * as i18n from '../../core/i18n/i18n.js';
import * as Root from '../../core/root/root.js';
import * as SDK from '../../core/sdk/sdk.js';
import * as Protocol from '../../generated/protocol.js';
import * as UI ... | the_stack |
import {
Component, OnInit, Input, Output,
EventEmitter, ElementRef, OnDestroy,
HostListener, OnChanges, SimpleChanges, ViewChild,
Renderer, AfterContentInit
} from '@angular/core';
import { Store } from '@ngrx/store';
import { PerfectScrollbarComponent, PerfectScrollbarDirective } from 'ngx-perfect-scr... | the_stack |
import { NgChat } from '../ng-chat/ng-chat.component';
import { User } from '../ng-chat/core/user';
import { ParticipantResponse } from '../ng-chat/core/participant-response';
import { Window } from '../ng-chat/core/window';
import { ChatAdapter } from '../ng-chat/core/chat-adapter';
import { IChatGroupAdapter } from '... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.