text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import React, {useEffect, useState} from 'react';
import Form, {FormComponentProps} from 'antd/lib/form';
import {AutoComplete, Card, Col, Icon, Input, Popconfirm, Row, Select} from 'antd';
import {AlarmTrigger} from '@/pages/device/alarm/data';
interface Props extends FormComponentProps {
trigger: Partial<AlarmTrig... | the_stack |
import { observable, action } from 'mobx';
import { FsApi, File } from '../services/Fs';
import { FileTransfer } from './fileTransfer';
import { Deferred } from '../utils/deferred';
import { getLocalizedError } from '../locale/error';
import { Readable } from 'stream';
import { getSelectionRange } from '../utils/fileUt... | the_stack |
import { dsvFormat as d3dsvFormat } from 'd3-dsv';
import { GET_CHROM_SIZES } from '../../core/utils/assembly';
import { sampleSize } from 'lodash-es';
import { Assembly, FilterTransform } from '../../core/gosling.schema';
import { filterData } from '../../core/utils/data-transform';
/**
* HiGlass data fetcher specif... | the_stack |
import {GridOptions} from "../entities/gridOptions";
import {GridApi} from "../gridApi";
import {Events} from "../events";
import {Utils as _} from "../utils";
import {ColumnApi} from "../columnController/columnController";
export class ComponentUtil {
// all the events are populated in here AFTER this class (at ... | the_stack |
import React, { useContext, useEffect, useState, useRef, forwardRef } from 'react';
// MATERIAL UI METHODS
import {
IconButton,
Modal,
Card,
CardHeader,
CardContent,
Button,
Typography
} from '@material-ui/core';
import { Theme, makeStyles } from '@material-ui/core/styles';
import { BaseCSSProperties } f... | the_stack |
import { fetch } from "../fetcher";
import {
File,
UploadRequestInit,
WithResourceInfo,
Url,
UrlString,
hasResourceInfo,
WithServerResourceInfo,
} from "../interfaces";
import { internal_toIriString } from "../interfaces.internal";
import { getSourceIri, FetchError } from "./resource";
import {
internal... | the_stack |
* @module iModelHubClient
*/
import { AccessToken, GuidString, Id64, Id64String, Logger } from "@itwin/core-bentley";
import { request, Response } from "../itwin-client/Request";
import { ECJsonTypeMap, WsgInstance } from "../wsg/ECJsonTypeMap";
import { IModelHubClientLoggerCategory } from "../IModelHubClientLoggerCa... | the_stack |
import {MetaUtils} from "../metadata/utils";
import * as Utils from "../utils";
import * as mongooseUtils from '../../mongoose/utils';
import {MetaData} from '../metadata/metadata';
import {ExportTypes} from '../constants/decorators';
import {IDynamicRepository, DynamicRepository} from '../dynamic/dynamic-repository';... | the_stack |
import {Program, Library, RawValue, RawEAV, RawMap, handleTuples, asValue, libraries} from "../../ts";
import {Instance as HTMLInstance} from "../html/html";
function ixComparator(idMap:{[key:string]:{ix:number}}) {
return (a:string, b:string) => {
return idMap[a].ix - idMap[b].ix;
}
}
let operationFields:{[t... | the_stack |
import { AccessLevelList } from "../shared/access-level";
import { PolicyStatement } from "../shared";
/**
* Statement provider for service [waf](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awswaf.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_poli... | the_stack |
/// <reference types="node" />
import * as http from 'http';
import * as Buffer from 'buffer';
import * as https from 'https';
declare namespace core {
interface NeedleResponse extends http.IncomingMessage {
body: any;
raw: Buffer;
bytes: number;
cookies?: Cookies;
}
type ... | the_stack |
import {
createElement,
forwardRef,
memo, useCallback,
useEffect,
useMemo,
useRef,
useState,
} from 'react';
import {
ChildNodesType,
DropTargetType,
getComponentConfig, getDragSort,
getDropTarget,
PageConfigType,
ROOT,
STATE_PROPS,
} from '@brickd/core';
import { useCommon } from '@brickd/h... | the_stack |
export function drawElements(canvas, drawingBufferWidth?, drawingBufferHeight?, nativeCanvas?) {
function main() {
var gl = canvas.getContext ? canvas.getContext("webgl") : canvas;
if (!gl) {
return;
}
drawingBufferWidth = drawingBufferWidth || gl.drawingBufferWidth;
drawingBufferHeight = d... | the_stack |
import {
Box,
Input,
InputGroup,
InputLeftAddon,
Spinner,
useColorMode,
} from '@chakra-ui/core'
import {
AuthProvider,
GithubButton,
useAuthData,
} from 'firebase-react-components'
import 'firebase/auth'
import fetch from 'isomorphic-unfetch'
import { Button, PageContainer } from 'l... | the_stack |
//@ts-check
///<reference path="devkit.d.ts" />
declare namespace DevKit {
class PrincipalObjectAttributeAccessApi {
/**
* DynamicsCrm.DevKit PrincipalObjectAttributeAccessApi
* @param entity The entity object
*/
constructor(entity?: any);
/**
* Get the value of alias
* @param alias the alias value
... | the_stack |
import {
action,
computed,
flow,
makeObservable,
observable,
runInAction,
} from "mobx";
import { AppCurrency, Keplr, KeplrSignOptions } from "@keplr-wallet/types";
import { DeepReadonly } from "utility-types";
import { ChainGetter } from "../common";
import { QueriesSetBase, QueriesStore } from "../query";... | the_stack |
import WebpackConfigComposer from "../../src/index";
import { expect } from "chai";
import fooPartial from "../fixtures/partial/foo";
import barPartial from "../fixtures/partial/bar";
import loaderPartial from "../fixtures/partial/loader";
// eslint-disable-next-line @typescript-eslint/no-var-requires
const _ = require... | the_stack |
import { Constraint, Operator } from "./constraint";
import { Expression } from "./expression";
import { createMap, IMap } from "./maptype";
import { Strength } from "./strength";
import { Variable } from "./variable";
/**
* The constraint solver class.
*
* @class
*/
export
class Solver {
/**
* Construct ... | the_stack |
import Rectangle from '../Rectangle';
import {
getBoundingBox,
getDirectedBounds,
isNotNullish,
mod,
} from '../../../util/Utils';
import {
DIRECTION_EAST,
DIRECTION_NORTH,
DIRECTION_SOUTH,
DIRECTION_WEST,
LINE_ARCSIZE,
NONE,
RECTANGLE_ROUNDING_FACTOR,
SHADOW_OFFSET_X,
SHADOW_OFFSET_Y,
} from ... | the_stack |
/// <reference path="../../../dist/automapper-classes.d.ts" />
/// <reference path="../../../dist/automapper-interfaces.d.ts" />
/// <reference path="../../../dist/automapper-declaration.d.ts" />
var globalScope = this;
module AutoMapperJs {
class PascalCaseToCamelCaseMappingProfile extends Profile {
... | the_stack |
import { BoundingBox, Paragraph, Word, Line } from './../../types/DocumentRepresentation';
const ARABIC_REGEXP = /[0-9]+(\.[0-9]+)?( |$)/g;
const ROMAN_REGEXP = /(?=[MDCLXVI])M*(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[XV]|V?I{0,3})( |$)/gi;
export const THRESHOLD = 0.4;
export function TOCDetected(allParagraphs: Paragraph... | the_stack |
/**
* This file contains a sample demonstrating TPM related parts of the device side of the protocol used by the Azure IoT DRS
*/
// When using tss.js package replace "../lib/index.js" with "tss.js"
import * as tss from "../lib/index.js";
import { TPM_HANDLE, TPM_ALG_ID, TPM_RC, TPM_HT, TPM_PT, TPMA_OBJECT,... | the_stack |
import {
MalVal,
createMalFunc,
isMalFunc,
MalFuncThis,
MalError,
symbolFor as S,
isSymbol,
M_ISMACRO,
M_EVAL,
isMap,
MalMap,
isList,
createList as L,
MalNode,
isNode,
MalSeq,
M_PARAMS,
MalBind,
isSeq,
isVector,
setExpandInfo,
ExpandType,
getType,
isSymbolFor,
M_AST,
M_ENV,
isFunc,
MalSymbol... | the_stack |
import React, { useContext, useState, useEffect } from 'react';
import { DeploymentCenterContext } from '../DeploymentCenterContext';
import DeploymentCenterData from '../DeploymentCenter.data';
import { useTranslation } from 'react-i18next';
import { choiceGroupSubLabel, disconnectLink, disconnectWorkflowInfoStyle } f... | the_stack |
Copyright (c) 2020 Xiamen Yaji Software Co., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
to use... | the_stack |
import assert from 'assert'
import nanoid from 'nanoid'
import add from '../add'
import { where } from '../where'
import { limit } from '../limit'
import onQuery from '.'
import { collection } from '../collection'
import { order } from '../order'
import { startAfter, startAt, endBefore, endAt } from '../cursor'
import ... | the_stack |
import { when } from 'jest-when';
import { Store } from 'redux';
import * as Actions from '../../src/redux/Actions';
import { initialState } from '../../src/redux/State';
// tslint:disable-next-line: import-name
import createStore from '../../src/redux/Store';
import { ReduxAction, ReduxConstants } from '../../src/typ... | the_stack |
// <reference path="scanner.ts"/>
/////////////////////////////////////////////////////////////////////////
//
// RefScript
type INode = ts.Node<Immutable>
type INodeLinks = ts.NodeLinks<Immutable>
type ISymbol = ts.Symbol<Immutable>
type ISymbolLinks = ts.SymbolLinks<Immutable>
type IType = ts.... | the_stack |
namespace LiteMolPluginInstance {
// For the plugin CSS, look to Plugin/Skin
// There is also an icon font in assets/font -- CSS path to it is in Plugin/Skin/LiteMol-plugin.scss
// To compile the scss, refer to README.md in the root dir.
import Plugin = LiteMol.Plugin;
import Views = Plugi... | the_stack |
import {
combineLatest as observableCombineLatest,
concat as observableConcat,
fromEvent as observableFromEvent,
merge as observableMerge,
of as observableOf,
BehaviorSubject,
Observable,
Subject,
} from "rxjs";
import {
bufferCount,
distinctUntilChanged,
filter,
first,
... | the_stack |
import { HDateTime } from './HDateTime'
import { HDate } from './HDate'
import { HStr } from './HStr'
import { ZincReader } from './ZincReader'
import { valueIsKind } from './HVal'
import { Kind } from './Kind'
import { HaysonDate, HaysonDateTime } from './hayson'
/**
* Relative span mode.
*/
export enum SpanMode {
... | the_stack |
import {Record, Map, Range, List, Set}from "immutable";
import ColumnHeader from "./column-header";
import RowHeader from "./row-header";
import {CellPoint} from "../common";
import {CellRange} from "../common";
import {BORDER_POSITION} from "../common";
import {KeyValuePair} from "../common";
import {FreezePane} from ... | the_stack |
import ScrollMagic from '../scrollmagic-with-ssr'
var NAMESPACE = 'debug.addIndicators'
var console = window.console || {},
//@ts-ignore
err = Function.prototype.bind.call(console.error || console.log || function() {}, console)
if (!ScrollMagic) {
err(
'(' +
NAMESPACE +
") -> ERROR: T... | the_stack |
import { Pos, Position, SrcFile } from './pos'
import * as utf8 from './utf8'
import * as unicode from './unicode'
import { ErrorCode, ErrorReporter, ErrorHandler } from './error'
import { token, lookupKeyword, prec } from './token'
import * as path from './path'
import { Int64 } from './int64'
import { IntParser } fro... | the_stack |
import {
Component,
Directive,
EventEmitter,
Input,
NgModule,
OnInit,
Output,
TemplateRef,
ViewContainerRef,
InjectionToken,
Injectable,
} from '@angular/core';
import { InvalidBindOnEntryComponentError, InvalidInputBindError, Renderer } from './renderer';
import { TestSetup } from './test-setup';... | the_stack |
import type {BrowserObject} from 'webdriverio'
import {createStore, createEvent, restore, combine} from 'effector'
import {h, using, list, remap, spec, variant, rec} from 'forest'
// let addGlobals: Function
declare const act: (cb?: () => any) => Promise<void>
declare const initBrowser: () => Promise<void>
declare con... | the_stack |
import * as React from "react";
import { Project, File, Directory, FileType, ModelRef, isBinaryFileType, IStatusProvider } from "../models";
import { Service } from "../service";
import { ITree, ContextMenuEvent } from "../monaco-extra";
import { MonacoUtils } from "../monaco-utils";
import { ViewType } from "./editor/... | the_stack |
import * as pidusage from '@gristlabs/pidusage';
import * as bluebird from 'bluebird';
import {EventEmitter} from 'events';
import * as path from 'path';
import {ApiError} from 'app/common/ApiError';
import {mapSetOrClear} from 'app/common/AsyncCreate';
import {BrowserSettings} from 'app/common/BrowserSettings';
impor... | the_stack |
import { BlockExtended } from '../mempool.interfaces';
import DB from '../database';
import logger from '../logger';
import { Common } from '../api/common';
import { prepareBlock } from '../utils/blocks-utils';
import PoolsRepository from './PoolsRepository';
import HashratesRepository from './HashratesRepository';
imp... | the_stack |
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import createSagaMiddleware, { SagaMiddleware, effects } from 'redux-saga'
import {
applyMiddleware,
createStore,
compose,
combineReducers,
Middleware,
Action,
Reducer,
Store,
AnyAction
} from 'redux'... | the_stack |
import { h,createProjector, VNode } from 'maquette'
import { Log } from "./common/log"
import * as Langs from './definitions/languages'
import * as Graph from './definitions/graph'
import * as Docs from './services/documentService'
import { editor } from 'monaco-editor';
// --------------------------------------------... | the_stack |
import { SerializerError, SerializerErrorType } from '../errors'
import { CosmosTransaction } from '../protocols/cosmos/CosmosTransaction'
import { MainProtocolSymbols, ProtocolSymbols, SubProtocolSymbols } from '../utils/ProtocolSymbols'
import { IACProtocol } from './inter-app-communication-protocol'
import { IACMes... | the_stack |
import {AsyncValue} from './async-value';
import {ExternalsValidator} from './externals-validator';
import {
FeatureServiceConsumerDefinition,
FeatureServiceProviderDefinition,
FeatureServiceRegistry,
FeatureServices,
SharedFeatureService,
} from './feature-service-registry';
import * as Messages from './inte... | the_stack |
import { ExtensionContext, workspace } from "vscode";
import * as vscode from "vscode";
import {
IFullRender,
renderLevels,
getFullFileStats,
tabsIntoSpaces,
findLineZeroAndInLineIndexZero,
} from "./utils";
import { doubleWidthCharsReg } from "./helpers/regex-main";
import DocumentDecorationManage... | the_stack |
import { Injectable } from '@angular/core';
import { CoreQuestionBehaviourDelegate, CoreQuestionQuestionWithAnswers } from '@features/question/services/behaviour-delegate';
import { CoreQuestionAnswerDBRecord } from '@features/question/services/database/question';
import { CoreQuestion, CoreQuestionQuestionParsed, Cor... | the_stack |
module android.widget {
import AlertDialog = android.app.AlertDialog;
import DialogInterface = android.content.DialogInterface;
import OnClickListener = android.content.DialogInterface.OnClickListener;
import DataSetObserver = android.database.DataSetObserver;
import Rect = android.graphics.Rect;
import Drawable = andr... | the_stack |
/*
* GridViewScroll with jQuery v1.0.0.3
* http://gridviewscroll.aspcity.idv.tw/
* Copyright (c) 2017 Likol Lee
* Released under the MIT license
* 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 Sof... | the_stack |
import { Subscription } from 'expo-modules-core';
import * as Notifications from 'expo-notifications';
import * as TaskManager from 'expo-task-manager';
import React from 'react';
import { Alert, Platform, ScrollView, View } from 'react-native';
import registerForPushNotificationsAsync from '../api/registerForPushNoti... | the_stack |
import { Guid } from 'guid-typescript';
import { Logger } from './Logger';
import { cdmStatusLevel, cdmLogCode, CdmCorpusContext, environmentType } from '../../internal';
import { CdmHttpClient, CdmHttpResponse, CdmHttpRequest } from '../Network';
import { TelemetryClient } from './TelemetryClient';
import { TelemetryC... | the_stack |
import { string as yupString, addMethod, ref, object as yupObject, array, bool as yupBool } from 'yup';
const validationStyle = {
warningStyle: 'color: #C6003F;font-size:medium;',
recommendationStyle: 'font-size:medium;',
specialRecommendationStyle: 'color: #0061C1;font-size:medium;'
};
const VALIDATIONRULES = ... | the_stack |
import { parse, stringify } from 'himalaya-wxml'
import * as t from 'babel-types'
import traverse, { Visitor } from 'babel-traverse'
import { AllKindNode, Attribute, WX_IF, WX_ELSE_IF, WX_ELSE, WX_FOR, parseContent, WX_KEY, Element, WX_FOR_ITEM, WX_FOR_INDEX, NodeType, Text } from './wxml'
import { buildTemplateName, g... | the_stack |
import VSelect from '../VSelect'
// Utilities
import {
mount,
Wrapper,
} from '@vue/test-utils'
// eslint-disable-next-line max-statements
describe('VSelect.ts', () => {
type Instance = InstanceType<typeof VSelect>
let mountFunction: (options?: object) => Wrapper<Instance>
let el
beforeEach(() => {
e... | the_stack |
import '../../../test/common-test-setup-karma';
import {fixture} from '@open-wc/testing-helpers';
import {html} from 'lit';
import './gr-hovercard-account';
import {GrHovercardAccount} from './gr-hovercard-account';
import {
mockPromise,
query,
queryAndAssert,
stubRestApi,
} from '../../../test/test-utils';
imp... | the_stack |
import aceEvent, { AceEvent } from "@wowts/ace_event-3.0";
import { LuaArray } from "@wowts/lua";
import { huge as infinity } from "@wowts/math";
import { concat, insert } from "@wowts/table";
import { AceModule } from "@wowts/tsaddon";
import {
GetSpellCount,
GetTime,
SpellId,
TalentId,
UnitCasting... | the_stack |
import { ThemeCollection } from "./Design/ThemeCollection";
import { FilterStatic } from "./Filtering/FilterStatic";
import { FilterFormatter } from "./Filtering/Formatter/FilterFormatter";
import { ParsedCell } from "./Parsing/ParsedCell";
import { ParsedData } from "./Parsing/ParsedData";
import { Parser } from "./Pa... | the_stack |
import React, { useCallback, useState } from "react";
import {
TableContainer,
Table,
TableHead,
TableRow,
TableCell,
TableBody,
IconButton,
TextField,
Switch
} from "@material-ui/core";
import { useTheme } from "@material-ui/core/styles";
import KeyboardArrowDownIcon from "@material-ui/icons/Keyboa... | the_stack |
eslint-disable @typescript-eslint/no-explicit-any
*/
import _, {
isEqual,
forEach,
keyBy,
zip,
unzip,
sum,
isString,
toString,
Dictionary,
padStart,
} from 'lodash'
import pangu from 'pangu'
import path from 'path'
import { readJsonSync } from 'fs-extra'
import url from 'url'
import { Modifiers } f... | the_stack |
const MyEdgeStyle = function (Mx: any) {
const {
mxConstants,
mxEdgeStyle,
mxPoint,
mxUtils,
mxStyleRegistry,
mxRectangle
} = Mx;
function outputEdgeInfo (state: any, source: any, target: any, points: any, result: any) {
console.log('state:', state);
... | the_stack |
import {Container, inject, transient, singleton, Lazy, All, Optional, Parent} from 'aurelia-dependency-injection';
import {decorators} from 'aurelia-metadata';
export var run = () => {
describe('container', () => {
describe('injection', () => {
it('01: instantiates class without injected servi... | the_stack |
import { newURL, getHashedPath, equal } from "./url";
import { newState, newCoords } from "./history";
import { Service } from "./service";
import { ignoreURLs } from "./page";
import { toAttr } from "./config";
import type { TypeTrigger, IHistoryItem, IHistoryManager } from "./history";
import type { IPage, IPageMana... | the_stack |
namespace Bootstrap
{
export class Helper
{
/**
* Finds tags decorated with data-bsu attributes and uses those to flesh out
* the HTML that Bootstrap needs for different elements.
*/
static decorateBootstrapElements()
{
Helper.decorateVal... | the_stack |
import { UAProperty } from "node-opcua-address-space-base"
import { DataType } from "node-opcua-variant"
import { UInt32 } from "node-opcua-basic-types"
import { UATransition } from "node-opcua-nodeset-ua/source/ua_transition"
import { UAFiniteStateMachine, UAFiniteStateMachine_Base } from "node-opcua-nodeset-ua/source... | the_stack |
import { act, fireEvent, render, screen } from '@testing-library/react'
import React from 'react'
import useSWR from 'swr'
import useSWRMutation from 'swr/mutation'
import { createKey, sleep, nextTick } from './utils'
const waitForNextTick = () => act(() => sleep(1))
describe('useSWR - remote mutation', () => {
it(... | the_stack |
import {
BaseClientSideWebPart,
IPropertyPaneConfiguration,
IWebPartContext,
PropertyPaneToggle,
PropertyPaneSlider
} from '@microsoft/sp-webpart-base';
import { Version } from '@microsoft/sp-core-library';
import * as strings from 'carousel3DStrings';
import { ICarousel3DWebPartProps } from './ICarousel3DWe... | the_stack |
import SteamID from 'steamid';
import { promises as fsp } from 'fs';
import sleepasync from 'sleep-async';
import { removeLinkProtocol } from '../functions/utils';
import Bot from '../../Bot';
import Inventory from '../../Inventory';
import CommandParser from '../../CommandParser';
import { getOptionsPath, JsonOptions,... | the_stack |
import { namedTypes as t, visit } from 'ast-types';
import { uniqBy } from 'lodash';
import checkIsIIFE from './checkIsIIFE';
import resolveHOC from './resolveHOC';
import resolveIIFE from './resolveIIFE';
import resolveImport from './resolveImport';
import resolveTranspiledClass from './resolveTranspiledClass';
import... | the_stack |
/// <reference types="node" />
type SteamID = import('steamid');
import { Request } from 'request';
import CMarketItem = require('./classes/CMarketItem');
import CSteamGroup = require('./classes/CSteamGroup');
import CSteamUser = require('./classes/CSteamUser');
import CMarketSearchResult = require('./classes/CMarket... | the_stack |
import * as React from "react";
import { useSpring, animated, config } from "react-spring";
import { usePrevious } from "./use-previous";
import { useGestureResponder, StateType } from "react-gesture-responder";
import useScrollLock from "use-scroll-lock";
interface PositionType {
x: number;
y: number;
w: number... | the_stack |
let eventSynthesizerFunction:(uievent:UIEvent)=>void;
function getEventSynthesizier() {
if (eventSynthesizerFunction) return eventSynthesizerFunction;
let currentMouseTarget:Element|Window|undefined;
const fireMouseLeaveEvents = (target:Element|Window|undefined, relatedTarget:Element|Window|undefined... | the_stack |
import path from 'path'
import { Host } from './Host'
import { PostHogTracker } from '../PostHogTracker'
import { Auth } from './Auth'
import { MutagenManager, MutagenExecutable, MutagenDaemon } from '../mutagen'
import { dataPath, resourcePath } from '../resources'
import { Status } from './Status'
import { dialog, Br... | the_stack |
import { model, Schema } from 'mongoose';
import {
addModelToTypegoose,
buildSchema,
deleteModel,
deleteModelWithClass,
errors,
getClass,
getDiscriminatorModelForClass,
getModelForClass,
getModelWithString,
getName,
Passthrough,
pre,
prop,
setGlobalOptions,
} from '../../src/typegoose'; // i... | the_stack |
import {
Actor,
assign,
createMachine,
send,
SpawnedActorRef,
State,
} from "xstate";
import RenJS from "@renproject/ren";
import { DepositCommon, LockChain, MintChain } from "@renproject/interfaces";
import { assert } from "@renproject/utils";
import { log } from "xstate/lib/actions";
import { ... | the_stack |
import './setup';
import { PLATFORM } from 'aurelia-pal';
import { HttpClient } from '../src/http-client';
import { HttpClientConfiguration } from '../src/http-client-configuration';
import { Interceptor } from '../src/interfaces';
import { retryStrategy } from '../src/retry-interceptor';
import { json } from '../src/u... | the_stack |
import * as React from 'react';
import { composeEventHandlers } from '@radix-ui/primitive';
import { useComposedRefs } from '@radix-ui/react-compose-refs';
import { createContextScope } from '@radix-ui/react-context';
import { useControllableState } from '@radix-ui/react-use-controllable-state';
import { useEscapeKeydo... | the_stack |
import { EventDispatcher, TypedDispatcher } from "./dispatcher";
import { BluetoothDevice, BluetoothDeviceEvents } from "./device";
import { getServiceUUID } from "./helpers";
import { adapter, NobleAdapter } from "./adapter";
import { W3CBluetooth } from "./interfaces";
import { DOMEvent } from "./events";
/**
* Blu... | the_stack |
import type { AwsMethod } from "./api";
const BASE_URL = process.env.FUNCTIONLESS_LOCAL
? `http://localhost:3000`
: `https://functionless.org`;
/**
* Error to throw during synth failures
*/
export class SynthError extends Error {
constructor(readonly code: ErrorCode, message?: string) {
super(formatErrorMe... | the_stack |
export const numberToBinUintLE = (value: number) => {
const baseUint8Array = 256;
const result: number[] = [];
// eslint-disable-next-line functional/no-let
let remaining = value;
// eslint-disable-next-line functional/no-loop-statement
while (remaining >= baseUint8Array) {
// eslint-disable-next-line f... | the_stack |
import { BigNumber } from "bignumber.js";
import * as Knex from "knex";
import * as _ from "lodash";
import { Address, OutcomesLiquidityRow } from "../types";
import { Percent, percent, Price, scalar, Scalar, Shares, Tokens, tokens } from "./dimension-quantity";
import { getSharePrice, MarketMaxPrice, MarketMinPrice, R... | the_stack |
/*
此文件需要放在引擎安装目录
例如 C:\Program Files\Egret\EgretEngine\win\selector.js
或 /Applications/EgretEngine.app/Contents/Resources/mac/selector.js
根据命令行参数
--ev 2.4.3
或项目中 egretProperties.json 中指定的引擎版本来执行对应的引擎。
引擎选择优先级为
--ev
egretProperties.json
默认引擎
历史版本的引擎位置为:
Mac: /Users/${user}/Library/Application Support... | the_stack |
import * as os from 'os';
import { DebugProtocol } from 'vscode-debugprotocol';
import { LoggingDebugSession, ErrorDestination, Response, logger } from 'vscode-debugadapter';
import { ChromeDebugAdapter } from './chromeDebugAdapter';
import { ITargetFilter, ChromeConnection, IChromeError } from './chromeConnection';
i... | the_stack |
import React, { useState, useEffect, useRef, useCallback } from 'react';
import { AppHead, AppFooter } from 'components';
import { useNavigate } from 'react-router-dom';
import {
Button,
Row,
Divider,
Breadcrumb,
Form,
Radio,
RadioGroup,
Input,
Toggle,
IconButton,
Message,
toaster,
Modal,
} from 'rsuite';... | the_stack |
import assert = require('assert');
import { clone, copy } from '../src/clone';
import { detectType } from '../src/detector';
const supportsSymbol =
typeof Symbol === 'function' && typeof Symbol() === 'symbol';
describe('clone', function () {
describe('clone', function () {
describe('should return deep copied... | the_stack |
import {
computeDataSeriesExtent,
getRendererType,
} from './line_chart_internal_utils';
import * as libUtils from './lib/utils';
import {RendererType, ScaleType} from './lib/public_types';
import {buildSeries, buildMetadata} from './lib/testing';
import {createScale} from './lib/scale';
function isFinite(x: numbe... | the_stack |
import { ProviderSettings, SecureStorageProvider, Tenant, AADResource, LoginResponse, Deferred, AzureAccount, Logger, MessageDisplayer, ErrorLookup, CachingProvider, RefreshTokenPostData, AuthorizationCodePostData, TokenPostData, AccountKey, StringLookup, DeviceCodeStartPostData, DeviceCodeCheckPostData, AzureAuthType,... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
import * as utilities from "../utilities";
/**
* Manages a Snowflake Dataset inside an Azure Data Factory.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azu... | the_stack |
import { TestBed, ComponentFixture } from '@angular/core/testing';
import { MatDialogRef } from '@angular/material/dialog';
import { NodesApiService, setupTestBed } from '@alfresco/adf-core';
import { FolderDialogComponent } from './folder.dialog';
import { of, throwError } from 'rxjs';
import { ContentTestingModule } ... | the_stack |
import {Component, OnInit, ViewChild, ViewEncapsulation, ChangeDetectorRef, Inject, LOCALE_ID} from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { ToastrService } from 'ngx-toastr';
import * as _mo... | the_stack |
import * as React from 'react';
import {fullscreen} from './styles/index';
import CinemaEffect from './game/CinemaEffect';
import TextBox from './game/TextBox';
import AskChoice from './game/AskChoice';
import TextInterjections from './game/TextInterjections';
import FoundObject from './game/FoundObject';
import Load... | the_stack |
import {Ng2StateDeclaration, StateService} from "@uirouter/angular";
import {catchError} from "rxjs/operators/catchError";
import {first} from "rxjs/operators/first";
import {DefineFeedComponent} from "./define-feed.component";
import {DefineFeedSelectTemplateComponent} from "./select-template/define-feed-select-templa... | the_stack |
import { EmitType } from '@syncfusion/ej2-base';
import { createElement, remove } from '@syncfusion/ej2-base';
import { Grid } from '../../../src/grid/base/grid';
import { Sort } from '../../../src/grid/actions/sort';
import { Group } from '../../../src/grid/actions/group';
import { Selection } from '../../../src/grid/... | the_stack |
* @fileoverview Implements the SVG OutputJax object
*
* @author dpvc@mathjax.org (Davide Cervone)
*/
import {CommonOutputJax, UnknownBBox} from './common/OutputJax.js';
import {OptionList} from '../util/Options.js';
import {MathDocument} from '../core/MathDocument.js';
import {MathItem} from '../core/MathItem.js';... | 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 { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Reports } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { ApiManagementClient } from "../apiManagementCli... | the_stack |
declare var describe, it, require;
import { Grammars, Parser, IToken } from '../dist';
import { testParseToken, describeTree, printBNF, testParseTokenFailsafe } from './TestHelpers';
let inspect = require('util').inspect;
let expect = require('expect');
let grammar = `
{ws=explicit}
Document ::= Directiv... | the_stack |
import { PkceCodes, AuthorityFactory, CommonAuthorizationCodeRequest, Constants, AuthorizationCodeClient, ProtocolMode, Logger, AuthenticationScheme, AuthorityOptions, ClientConfiguration } from "@azure/msal-common";
import sinon from "sinon";
import { SilentHandler } from "../../src/interaction_handler/SilentHandler";... | the_stack |
import * as assert from 'assert';
import { SaplingParser } from '../../SaplingParser';
import { describe, suite , test, before} from 'mocha';
import { expect } from 'chai';
import * as path from 'path';
// You can import and use all API from the 'vscode' module
// as well as import your extension to test it
// import ... | the_stack |
import { defaultTo, uniq } from "lodash";
import { DateTime } from "luxon";
import isNonNullArray from "coral-common/helpers/isNonNullArray";
import { Config } from "coral-server/config";
import { MongoContext } from "coral-server/data/context";
import {
CannotMergeAnArchivedStory,
CannotOpenAnArchivedStory,
Sto... | the_stack |
interface JQuery {
form: SemanticUI.Form;
}
declare namespace SemanticUI {
interface Form {
settings: FormSettings;
/**
* Submits selected form
*/
(behavior: 'submit'): JQuery;
/**
* Returns true/false whether a form passes its validation rules
... | the_stack |
import { createElement, isNullOrUndefined, classList } from '@syncfusion/ej2-base';
import { TextBox, NumericTextBox } from '@syncfusion/ej2-inputs';
import { Button } from '@syncfusion/ej2-buttons';
import { Popup } from '@syncfusion/ej2-popups';
import { FieldElementBox, TextFormField, FormField, DropDownFormField, C... | the_stack |
module RtmpJs.MP4 {
function hex(s: string): Uint8Array {
var len = s.length >> 1;
var arr = new Uint8Array(len);
for (var i = 0; i < len; i++) {
arr[i] = parseInt(s.substr(i * 2, 2), 16);
}
return arr;
}
var SOUNDRATES = [5500, 11025, 22050, 44100];
var SOUNDFORMATS = ['PCM', 'ADPCM'... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.