text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import {
$Object,
} from '../types/object.js';
import {
$Null,
} from '../types/null.js';
import {
Realm,
ExecutionContext,
} from '../realm.js';
import {
$PropertyKey,
$AnyNonEmpty,
$AnyNonEmptyNonError,
$AnyObject,
CompletionType,
} from '../types/_shared.js';
import {
$Call,
$ToPropertyDescript... | the_stack |
import { Controller, ValidationService, FieldErrors, ValidateError, TsoaRoute, HttpStatusCodeLiteral, TsoaResponse } from '@tsoa/runtime';
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { CryptocurrenciesControl... | the_stack |
import getDataValue from 'lodash.get';
import setDataValue from 'lodash.set';
import zip from 'lodash.zip';
import template from 'lodash.template';
import { FileUploadWidget } from './FileUploadWidget';
import { parse } from './tag-attributes';
type FieldElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaEl... | the_stack |
// Query Compiler
// -------
import helpers from '../helpers.js';
import Raw from '../raw.js';
import QueryBuilder from './builder.js';
import JoinClause from './joinclause.js';
import debug from '../deps/debug@4.1.1/src/index.js';
import _ from '../deps/lodash@4.17.15/index.js';
const assign = _.assign;
const bind = ... | the_stack |
import * as moment from "moment";
import * as Web3 from "web3";
import { ContractsAPI } from "../../src/apis";
import { SignerAPI, SignerAPIErrors } from "../../src/apis/signer_api";
import { BigNumber } from "../../utils/bignumber";
import { SignatureUtils } from "../../utils/signature_utils";
import * as Units from "... | the_stack |
'use strict';
import { Logger, LogLevel } from 'chord/platform/log/common/log';
import { filenameToNodeName } from 'chord/platform/utils/common/paths';
const loggerWarning = new Logger(filenameToNodeName(__filename), LogLevel.Warning);
import { ok } from 'chord/base/common/assert';
import { assign } from 'chord/base/... | the_stack |
//@ts-check
///<reference path="devkit.d.ts" />
declare namespace DevKit {
namespace FormSLAItem_Information {
interface Header extends DevKit.Controls.IHeader {
/** Unique identifier for SLA associated with SLA Item. */
SLAId: DevKit.Controls.Lookup;
}
interface tab_tabUC_Sections {
Actions: DevKit.Co... | the_stack |
import { stringify } from 'querystring'
import { DefaultClient, RequestConfig, ResourceResponse } from './client'
import { AxiosResponse } from 'axios'
import { uuidWeak } from './util'
import RelatedManager from './related'
import { BaseNormalizer, NormalizerDict, ValidNormalizer } from './helpers/normalization'
impor... | the_stack |
import { Nodes } from './ivr_nodes';
import * as d3 from 'd3';
import { inNodes } from './ivr_in_nodes';
import * as $ from 'jquery';
import { AddIVRComponent, total_apps } from './ivr-form-component';
let oBB_box;
let ox;
let oy;
let d_of_x;
let d_of_y;
export abstract class Applications {
display_name: string... | the_stack |
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent } from '@angular/common/http';
import { Inject, Injectable, InjectionToken, Optional } from '@angular/core';
import { APIClientInterface } from './api-client.interface';
import { Observable } from 'rxjs';import { DefaultHttpOptions, HttpOptions } fro... | the_stack |
import { Base, BaseParams } from "./base";
import { Array2Object } from "src/util/tools";
export class Tedis extends Base {
constructor(options?: BaseParams) {
super(options);
}
/*******************************************************************************************************
* KEY *****************... | the_stack |
import { getCookie } from '@guardian/libs';
import type { UserFeaturesResponse } from 'types/membership';
import config from '../../../../lib/config';
import { addCookie, removeCookie } from '../../../../lib/cookies';
import { fetchJson } from '../../../../lib/fetch-json';
import { isUserLoggedIn as isUserLoggedIn_ } f... | the_stack |
import {
AnimationItem
} from "lottie-web";
import {
LottieAnimationLoader,
IElement,
ILottieProperty,
ITrigger,
ITriggerConstructor,
} from "../interfaces.js";
import {
allProperties,
resetProperty,
updateProperty,
replaceProperty,
resetColors,
updateColors,
lottieColorToHex,
updateColor,... | the_stack |
declare namespace UnityEngine {
class Physics {
// Static Fields
static readonly IgnoreRaycastLayer: number;
static readonly DefaultRaycastLayers: number;
static readonly AllLayers: number;
// Static Property Accessors
static gravity: UnityEngine.Vector3;
static defaultContactOffset:... | the_stack |
import { forwardRef, HttpException, Inject, Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { SmsComponent } from '@notadd/addon-sms';
import { __ as t } from 'i18n';
import { Repository } from 'typeorm';
import * as _ from 'underscore';
import { AuthService } from '../au... | the_stack |
import CapabilityDiscovery from "../../../../../main/js/joynr/capabilities/discovery/CapabilityDiscovery";
import DiscoveryQos from "../../../../../main/js/generated/joynr/types/DiscoveryQos";
import ProviderQos from "../../../../../main/js/generated/joynr/types/ProviderQos";
import CustomParameter from "../../../../..... | 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 ErrorMesssage class.
* @constructor
* Error respon... | the_stack |
import * as express from 'express';
import * as bodyParser from 'body-parser';
import HAS from './HAS';
import {Pairing, Pairings} from './config';
import * as TLVEnums from './TLV/values';
import parseTLV from './TLV/parse';
import {encodeTLV, encodeTLVError, TLVITem} from './TLV/encode';
import SRP from './encryption... | the_stack |
import {
CHECK_SAPARATOR,
CHECK_LOAD_PATTERN,
LOAD_SAPARATOR,
DOMDIFF,
getRef,
MAGIC_METHOD,
} from "./Event";
import {
isFunction,
html,
keyEach,
collectProps,
isString
} from "./functions/func";
import {DomEventHandler} from "./handler/DomEventHandler";
import {BindHandler} from "./handler/Bin... | the_stack |
import { Fragment, useState } from 'react'
import { Dialog, Transition } from '@headlessui/react'
import {
HomeIcon,
CashIcon,
LogoutIcon,
XIcon,
MenuIcon,
ServerIcon,
AcademicCapIcon,
VideoCameraIcon,
} from '@heroicons/react/outline'
import { useLoaderData, useMatches, Form, json, Outlet, Link } from ... | the_stack |
import * as json from 'vs/base/common/json';
import { ResourceMap, getOrSet } from 'vs/base/common/map';
import * as arrays from 'vs/base/common/arrays';
import * as types from 'vs/base/common/types';
import * as objects from 'vs/base/common/objects';
import { URI, UriComponents } from 'vs/base/common/uri';
import { OV... | the_stack |
import {Color, Cursor, SignalRef, Text} from 'vega';
import {isNumber, isObject} from 'vega-util';
import {NormalizedSpec} from '.';
import {Data} from '../data';
import {ExprRef} from '../expr';
import {MarkConfig} from '../mark';
import {Resolve} from '../resolve';
import {TitleParams} from '../title';
import {Transf... | the_stack |
import { HttpClient, HttpResponse, HttpEvent } from '@angular/common/http';
import { Inject, Injectable, Optional } from '@angular/core';
import { UsersAPIClientInterface } from './users-api-client.interface';
import { Observable } from 'rxjs';
import { tap } from 'rxjs/operators';
import { USE_DOMAIN, USE_HTTP_OPTIONS... | the_stack |
import { DisposableStore } from 'vs/base/common/lifecycle';
import { URI as uri, UriComponents } from 'vs/base/common/uri';
import { IDebugService, IConfig, IDebugConfigurationProvider, IBreakpoint, IFunctionBreakpoint, IBreakpointData, IDebugAdapter, IDebugAdapterDescriptorFactory, IDebugSession, IDebugAdapterFactory,... | the_stack |
import * as ko from "knockout";
import * as _ from "underscore";
import * as Constants from "../Constants";
import * as ViewModels from "../../../Contracts/ViewModels";
import * as DataTableBuilder from "./DataTableBuilder";
import DataTableOperationManager from "./DataTableOperationManager";
import * as DataTableOper... | the_stack |
import { LanguageCode, Result } from '@inlang/common';
import { remove } from 'lodash-es';
import { Attribute, Identifier, Message, Resource } from '@fluent/syntax';
import { isValidMessageId } from './utils/isValidMessageId';
import { parsePattern } from './utils/parsePattern';
/**
* The API of this class could be i... | 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 AppSync GraphQL API.
*
* ## Example Usage
* ### API Key Authentication
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* imp... | the_stack |
"use strict";
import { assert } from "chai";
import * as path from "path";
import { Delete } from "../../../src/tfvc/commands/delete";
import { TfvcError } from "../../../src/tfvc/tfvcerror";
import { IExecutionResult } from "../../../src/tfvc/interfaces";
import { TeamServerContext } from "../../../src/contexts/serve... | the_stack |
var browser: Browser = browser || chrome;
const PENDING_SUBMISSIONS = ':PENDING_SUBMISSIONS'
const MIGRATION = ':MIGRATION'
const CURRENT_VERSION = 100029;
const badIdentifiersReasons: { [id: string]: BadIdentifierReason } = {};
const badIdentifiers: { [id: string]: true } = {};
// If a user labels one of these URL... | the_stack |
import { List, OrderedSet, Iterable } from 'immutable';
import { compressToBase64, decompressFromBase64 } from 'lz-string';
import { Class, Instance, isInstanceOf, immutableEqual } from 'immutable-class';
import { Timezone, Duration, minute } from 'chronoshift';
import { $, Expression, RefExpression, TimeRange, ApplyAc... | the_stack |
import {noUpdate, ObjectStateHandler, setProperty, setValue} from ".";
import {ProxyStateView} from "./state_handler";
import {deepCopy} from "../util/helpers";
interface TestState {
str: string
num: number
maybeNum?: number
obj: {
inner: {
innerStr: string
maybeInnerStr... | the_stack |
import React from "react";
import Matter from "../../../common/model/matter/Matter";
import TankComponent from "../../../common/component/TankComponent";
import Director from "./Director";
import "./MatterPanel.less";
import Sun from "../../../common/model/global/Sun";
import StringUtil from "../../../common/util/Strin... | the_stack |
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use t... | the_stack |
import { assertEqual, assertNull, assertThrows, assertNotNull, assert } from '../../tk-unit';
import { Button, Builder, Page, Color, _setResolver, ModuleNameResolver, PlatformContext } from '@nativescript/core';
import { navigate } from '../../ui-helper';
const testPrefix = 'bundle-file-qualifiers-tests';
let modulesT... | the_stack |
import * as jssm from '../jssm';
test('build-set version number is present', () =>
expect(typeof jssm.version)
.toBe('string'));
describe('Stochastic weather', () => {
new jssm.Machine({
start_states: ['breezy'],
transitions: [
{ from: 'breezy', to: 'breezy', probability: 0.4, kin... | the_stack |
import { bySport, isSport, PHASE, PLAYER } from "../../common";
import { idb } from "../db";
import { defaultGameAttributes, g, helpers } from "../util";
import type { UpdateEvents, ViewInput } from "../../common/types";
const getCategoriesAndStats = () => {
const categories = bySport<
{
name: string;
stat: s... | the_stack |
declare const uni: Uni;
declare class Uni {
/**
* 将 Base64 字符串转成 ArrayBuffer 对象
*
* 参考: [http://uniapp.dcloud.io/api/base64ToArrayBuffer?id=base64toarraybuffer](http://uniapp.dcloud.io/api/base64ToArrayBuffer?id=base64toarraybuffer)
*/
base64ToArrayBuffer(base64?: string): ArrayBuffer;
... | the_stack |
import BigNumber from 'bignumber.js'
import { TestingGroup } from '@defichain/jellyfish-testing'
import { GenesisKeys, MasterNodeRegTestContainer } from '@defichain/testcontainers'
import { ListAuctionHistoryDetail } from '../../../src/category/loan'
describe('Loan listAuctionHistory', () => {
const tGroup = Testing... | the_stack |
// 1. Use the rankItem function to rank an item
// 2. Use the resulting rankingInfo.passed to filter
// 3. Use the resulting rankingInfo.rank to sort
// For bundling purposes (mainly remove-accents not being esm safe/ready),
// we've also hard-coded remove-accents into this source.
// The remove-accents package is sti... | the_stack |
import { join } from "path";
import * as vscode from "vscode";
import { MediaTypes, SettingEnum } from "../const/ENUM";
import { TemplatePath } from "../const/PATH";
import { ArticlePathReg, QuestionAnswerPathReg, QuestionPathReg, ZhihuPicReg } from "../const/REG";
import { AnswerAPI, AnswerURL, QuestionAPI, ZhuanlanAP... | the_stack |
import { expect } from 'chai';
import * as fs from 'fs';
import * as jestTestSupport from 'jest-editor-support';
import { SinonStub, stub } from 'sinon';
import * as vscode from 'vscode';
import URI from 'vscode-uri';
import { lwcTestIndexer } from '../../../../src/testSupport/testIndexer';
import {
TestFileInfo,
... | the_stack |
import { asyncOra } from '@electron-forge/async-ora';
import PluginBase from '@electron-forge/plugin-base';
import { ElectronProcess, ForgeArch, ForgeConfig, ForgeHookFn, ForgePlatform } from '@electron-forge/shared-types';
import Logger, { Tab } from '@electron-forge/web-multi-logger';
import debug from 'debug';
impor... | the_stack |
import defaultMessagingSettings from "../../../../main/js/joynr/start/settings/defaultMessagingSettings";
import MessagingQos from "../../../../main/js/joynr/messaging/MessagingQos";
import * as MessagingQosEffort from "../../../../main/js/joynr/messaging/MessagingQosEffort";
describe("libjoynr-js.joynr.messaging.Mess... | the_stack |
import Dexie from 'dexie';
import 'dexie-export-import';
import 'fake-indexeddb/auto';
import * as idb from 'idb';
import { DataStore, SortDirection } from '../src/index';
import { DATASTORE, SYNC, USER } from '../src/util';
import {
Author,
Blog,
BlogOwner,
Comment,
Nested,
Post,
PostAuthorJoin,
PostMetadata,
... | the_stack |
import action from '../src/action';
import * as utils from '../src/utils';
import * as github from '../src/github';
import * as core from '@actions/core';
import {
loadDefaultInputs,
setBranch,
setCommitSha,
setInput,
} from './helper.test';
jest.spyOn(core, 'debug').mockImplementation(() => {});
jest.spyOn(co... | the_stack |
import {
actionDec,
actionDecSep,
ActionTok,
atLeastOneRule,
atLeastOneSepRule,
callArguments,
ColonTok,
CommaTok,
DotTok,
IdentTok,
LParenTok,
LSquareTok,
paramSpec,
qualifiedNameSep,
RParenTok,
RSquareTok,
SemicolonTok
} from "./samples"
import {
NextAfterTokenWalker,
nextPossibl... | the_stack |
import { EventEmitter, Injectable } from '@angular/core';
import { from, fromEvent, Observable, throwError } from 'rxjs';
import { filter, map, mergeMap, takeUntil } from 'rxjs/operators';
import { ConsoleLoggerService } from './logger.service';
import { BrowserWebBluetooth } from './platform/browser';
type ReadValueO... | the_stack |
import "@esfx/metadata-shim";
import * as metadata from "@esfx/metadata";
import { MetadataKey } from "@esfx/metadata";
import { isFunction, isObject, isPropertyKey, isDefined } from "@esfx/internal-guards";
declare global {
namespace Reflect {
function decorate(decorators: ClassDecorator[], target:... | the_stack |
export const Abilities: {[k: string]: ModdedAbilityData} = {
damp: {
inherit: true,
onAnyDamage(damage, target, source, effect) {
if (effect && (effect.id === 'aftermath' || effect.id === 'ability:aftermath')) {
return false;
}
},
},
flowerveil: {
inherit: true,
onAllySetStatus(status, target, so... | the_stack |
/// <reference path="botbuilder.d.ts" />
declare var cytoscape: any;
module VORLON {
declare var vorlonBaseURL: string;
export class BotFrameworkInspectorDashboard extends DashboardPlugin {
constructor() {
super("botFrameworkInspector", "control.html", "control.css");
... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import {
VirtualMachineScaleSet,
VirtualMachineScaleSetsListOptionalParams,
VirtualMachineScaleSetsListAllOptionalParams,
VirtualMachineScaleSetSku,
VirtualMachineScaleSetsListSku... | the_stack |
import type Prettier from "prettier";
import * as Codec from "@truffle/codec";
import * as Abi from "@truffle/abi-utils";
import {Abi as SchemaAbi} from "@truffle/contract-schema/spec";
import { version } from "../package.json";
import {Visitor, VisitOptions, dispatch, Node} from "./visitor";
import { forRange, Versio... | the_stack |
* 应用设置
*
* @interface options
*/
interface options {
server: server
config: config
user: userCollection
newUserData: userData
info: optionsInfo
}
interface server {
path: string
hostname: string
port: number
protocol: string
}
interface config {
[x: string]: boolean | number | number[] | string |... | the_stack |
* @module iModelHubClient
*/
import deepAssign from "deep-assign";
import { AccessToken, GuidString, Id64String, IModelHubStatus, Logger } from "@itwin/core-bentley";
import { ResponseError } from "@bentley/itwin-client";
import { ECJsonTypeMap, WsgInstance } from "../wsg/ECJsonTypeMap";
import { WsgQuery } from "../... | the_stack |
import { strict as assert } from "assert";
import { Writable } from "stream";
import { DebugAdapterTracker, DebugAdapterTrackerFactory, DebugSession, DebugSessionCustomEvent, window } from "vscode";
import { DebugProtocol } from "vscode-debugprotocol";
import { TestSessionCoordinator } from "../shared/test/coordinator"... | the_stack |
import * as nbformat from '@jupyterlab/nbformat';
import { NotebookCell, NotebookCellData, NotebookCellKind, NotebookCellOutput } from 'vscode';
import { CellMetadata, CellOutputMetadata } from './common';
import { textMimeTypes } from './deserializers';
const textDecoder = new TextDecoder();
enum CellOutputMimeTypes... | the_stack |
import fs from "fs";
import stream from "stream";
import { getUserAgent } from "universal-user-agent";
import fetchMock from "fetch-mock";
import { Headers, RequestInit } from "node-fetch";
import { createAppAuth } from "@octokit/auth-app";
import lolex from "lolex";
import {
EndpointOptions,
RequestInterface,
R... | the_stack |
import { Components, JSX } from '@bulmil/core';
interface BmInputProps {
/** Control Classes */
controlClass?: Components.BmInput["controlClass"]
/** Placeholder */
placeholder?: Components.BmInput["placeholder"]
/** Value */
value?: Components.BmInput["value"]
/** Type */
type?: Component... | the_stack |
* @module MarkupApp
*/
import { BentleyError, Logger } from "@itwin/core-bentley";
import { Point3d, XAndY } from "@itwin/core-geometry";
import { ImageSource, ImageSourceFormat } from "@itwin/core-common";
import { FrontendLoggerCategory, imageElementFromImageSource, IModelApp, ScreenViewport } from "@itwin/core-fro... | the_stack |
* @module Topology
*/
import { CurveLocationDetail } from "../curve/CurveLocationDetail";
import { LineSegment3d } from "../curve/LineSegment3d";
import { Geometry } from "../Geometry";
import { Angle } from "../geometry3d/Angle";
import { Point2d, Vector2d } from "../geometry3d/Point2dVector2d";
import { Range3d } f... | the_stack |
import { CSSInJSRule } from "./css";
export interface ErsatzElement {
element: HTMLElement;
}
export declare function isErsatzElement(obj: any): obj is ErsatzElement;
export interface ErsatzElements {
elements: HTMLElement[];
}
export declare function isErsatzElements(obj: any): obj is ErsatzElements;
export de... | the_stack |
import {
AccountSASPermissions,
AccountSASResourceTypes,
AccountSASServices,
AnonymousCredential,
BlobSASPermissions,
ContainerSASPermissions,
generateAccountSASQueryParameters,
generateBlobSASQueryParameters,
SASProtocol,
BlobServiceClient,
newPipeline,
StorageSharedKeyCredential,
ContainerCl... | the_stack |
import { AccessLevelList } from "../shared/access-level";
import { PolicyStatement } from "../shared";
/**
* Statement provider for service [guardduty](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonguardduty.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide... | the_stack |
module es {
export class RectangleExt {
/**
* 获取指定边的位置
* @param rect
* @param edge
*/
public static getSide(rect: Rectangle, edge: Edge) {
switch (edge) {
case Edge.top:
return rect.top;
case Edge.bot... | the_stack |
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
/**
* <p>Exception that indicates the specified <code>AttackId</code> does not exist, or the requester does not have the appropriate permissions to access the <code>AttackId</code>.</p>
*/
export interface Acces... | the_stack |
import * as React from 'react'
import { Commit } from '../../models/commit'
import { lookupPreferredEmail } from '../../lib/email'
import {
getGlobalConfigValue,
setGlobalConfigValue,
} from '../../lib/git/config'
import { CommitListItem } from '../history/commit-list-item'
import { Account } from '../../models/acc... | the_stack |
* ---------------------------------------------------------------
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
* ## ##
* ## AUTHOR: acacode ##
* ## SOURCE: https://github.com/acacode/swagger-type... | the_stack |
import {DateTime} from '../types';
import {EnumId} from './enum-types';
export enum FactorType {
SEQUENCE = 'sequence',
NUMBER = 'number',
UNSIGNED = 'unsigned', // 0 & positive
TEXT = 'text',
// address
ADDRESS = 'address',
CONTINENT = 'continent',
REGION = 'region',
COUNTRY = 'country',
PROVINCE = 'prov... | the_stack |
'use strict'
// **Github:** https://github.com/fidm/quic
//
// **License:** MIT
import { promisify } from 'util'
import { EventEmitter } from 'events'
import { ilog } from 'ilog'
import { thunk } from 'thunks'
import { suite, it } from 'tman'
import { ok, equal, deepEqual } from 'assert'
import { createHash } from 'cr... | the_stack |
import {GitHubQueryParser} from '../Library/GitHub/GitHubQueryParser';
import {GitHubQueryType} from '../Library/Type/GitHubQueryType';
// ---- filter ----
// number:123 number:456
// is:issue is:pr type:issue type:pr
// is:open is:closed
// is:read is:unread
// is:bookmark is:unbookmark
// is:archived is:unarchived
/... | the_stack |
import * as cp from 'child_process';
import * as fse from 'fs-extra';
import { PathLike, Stats } from 'fs-extra';
import { normalize, parse } from './path';
export { PathLike, Stats } from 'fs-extra';
// Electron ships with its own patched version of the fs-module
// to be able to browse ASAR files. This highly impac... | the_stack |
import { SBWorkloadState } from '@saladtechnologies/salad-grpc-salad-bowl/salad/grpc/salad_bowl/v1/salad_bowl_pb'
import { Duration } from 'luxon'
import { action, computed, flow, observable, runInAction } from 'mobx'
import { Subject } from 'rxjs'
import { map, takeUntil } from 'rxjs/operators'
import { RetryConnectin... | the_stack |
const acorn = require("acorn")
const walk = require("acorn-walk")
import * as et from "estree"
import { CategoriesPriorityQueue } from './utils'
import { BlockChain, IBlock, IFuncBlock } from './block-chain'
export const enum VariableType {
NO_EXIST = -1,
FUNCTION = 1,
VARIABLE = 2,
CLOSURE = 3,
}
interface I... | the_stack |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import JqxButton from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxbuttons';
import JqxChart, { IChartProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxchart';
import JqxDockingLayout, { IDockingLayoutProps } from 'jqwidgets-scripts/jqwidgets... | the_stack |
import { StatementTypes } from "../../chef/rust/statements/block";
import { ArgumentList, ClosureExpression, FunctionDeclaration, ReturnStatement } from "../../chef/rust/statements/function";
import { VariableDeclaration } from "../../chef/rust/statements/variable";
import { Expression, Operation } from "../../chef/rus... | the_stack |
import { URL } from 'url';
import { Link } from '../node';
import Stats from '../Stats';
import Dirent from '../Dirent';
import { Volume, filenameToSteps, StatWatcher } from '../volume';
import hasBigInt from './hasBigInt';
import { tryGetChild, tryGetChildNode } from './util';
describe('volume', () => {
describe('f... | the_stack |
import test from "ava";
import Client from "ioredis";
import Redlock, { ExecutionError, ResourceLockedError } from "./index.js";
const redis = new Client({ host: "redis-single-instance" });
test.before(async () => {
await redis
.keys("*")
.then((keys) => (keys?.length ? redisA.del(keys) : null));
});
test("... | the_stack |
/// <reference types="node"/>
import * as Request from "request";
import * as Http from "http";
declare class SparkPost {
/** Specifying an inbound domain enables you to customize the address to which inbound messages are sent. */
inboundDomains: {
/**
* List all your inbound domains.
... | the_stack |
import { Disposable, dom, DomElementArg, Holder, makeTestId, styled, svg } from "grainjs";
import { createPopper, Placement } from '@popperjs/core';
import { FocusLayer } from 'app/client/lib/FocusLayer';
import * as Mousetrap from 'app/client/lib/Mousetrap';
import { bigBasicButton, bigPrimaryButton } from "app/client... | the_stack |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Period, ImmutablePeriod } from '../period';
import { Team, ImmutableTeam } from '../team';
import { StorageService } from '../storage.service';
import { MatDialog } from '@angular/material/dialog';
import {
E... | the_stack |
"use strict";
import { CFG, SESSION_DATA_DIR } from "./config";
import * as fs from "fs";
import { getConnectedDisplaysId, startProgram } from "./otherCmd";
import {
closeWindow,
getX,
initX11,
moveToWorkspace,
restoreWindowPosition
} from "./x11Wrapper";
import {
findDesktopFile,
getActiveWindowListFlow,... | the_stack |
import * as lodash from 'lodash';
import * as minimist from 'minimist';
import { CommandLineOptions, CommandMetadataOption, HydratedParseArgsOptions, ParsedArg } from '../definitions';
import { Colors, DEFAULT_COLORS } from './colors';
export const parseArgs = minimist;
export { ParsedArgs } from 'minimist';
/**
*... | the_stack |
import * as test_util from "../test_util";
import { MathTests } from "../test_util";
import * as util from "../util";
import { Array1D, Array2D, Array3D, Scalar } from "./ndarray";
// divide
{
const tests: MathTests = it => {
it("divide", math => {
const a = Array2D.new([2, 3], [1, 2, 3, 4, 5, 6]);
c... | the_stack |
import { EventEmitter } from 'events';
import * as net from 'net';
import { Readable } from 'stream';
import * as tls from 'tls';
import * as shared from '../shared';
import MimeNode = require('../mime-node');
import XOAuth2 = require('../xoauth2');
type ms = number;
declare namespace SMTPConnection {
interface... | the_stack |
import { Sparkline, SparklineTooltip } from '../../src/sparkline/index';
import { createElement } from '@syncfusion/ej2-base';
import { removeElement, getIdElement, TextOption } from '../../src/sparkline/utils/helper';
import { ISparklineLoadedEventArgs, ISparklineResizeEventArgs } from '../../src/sparkline/model/inter... | the_stack |
import * as chai from 'chai';
import {Server} from '../../src/server';
import {FixtureLoader} from '../../fixtures/FixtureLoader';
import {JwtUtils} from '../../src/security/JwtUtils';
import {User} from '../../src/models/User';
import {Course, ICourseModel} from '../../src/models/Course';
import {ICourse} from '../../... | the_stack |
import * as React from 'react';
import { render, fireEvent, act, screen } from '@testing-library/react';
import { cssClasses, waitForUseEffectCleanup } from '../helpers';
import { Toast, ToastContainer } from '../../src/components';
import { ToastProps } from '../../src/types';
const REQUIRED_PROPS = {
...ToastCont... | the_stack |
import * as ts from 'typescript';
import * as Lint from 'tslint';
import {
isParameterDeclaration, isParameterProperty, isFunctionWithBody, isExpressionValueUsed,
collectVariableUsage, VariableInfo, VariableUse, UsageDomain, isAssignmentKind,
} from 'tsutils';
const OPTION_FUNCTION_EXPRESSION_NAME = 'unused-fu... | the_stack |
import './mocks/matchMedia'
import {
checkNodeUrlValidity,
cleanNodeAuth,
ensureSinglePrimaryNode,
getDefaultClientOptions,
getNetworkById,
getNodeCandidates,
getOfficialNetwork,
getOfficialNodes,
isNodeAuthValid,
isOfficialNetwork,
} from '../network'
import { Network, NetworkC... | the_stack |
import localVarRequest from 'request';
import http from 'http';
/* tslint:disable:no-unused-locals */
import { BatchInputJsonNode } from '../model/batchInputJsonNode';
import { BatchInputString } from '../model/batchInputString';
import { BatchInputTag } from '../model/batchInputTag';
import { BatchResponseTagWithErro... | the_stack |
require("source-map-support").install()
import { BatchCluster, Log, logger, setLogger } from "batch-cluster"
import fs from "fs"
import globule from "globule"
import os from "os"
import path from "path"
import process from "process"
import { compact, filterInPlace, times, uniq } from "../Array"
import { ExifTool } fro... | the_stack |
///<reference path="./typings/bundle.d.ts"/>
export namespace gcode {
export class Motion {
type: string;
prevMotion: Motion;
x: number = 0;
y: number = 0;
z: number = 0;
// mm/min
feedRate: number;
constructor(prevMotion: Motion) {
this.prevMotion = prevMotion;
}
get distance():number {
... | the_stack |
import {
AfterContentChecked,
AfterViewInit,
ChangeDetectorRef,
Component,
ContentChild,
ContentChildren,
ElementRef,
EventEmitter,
forwardRef,
HostBinding,
HostListener,
Input,
OnDestroy,
Output,
QueryList,
Renderer2,
RendererStyleFlags2,
TemplateRef,
ViewChild,
ViewChildren,
} ... | the_stack |
import * as React from "react";
import pnp from "sp-pnp-js";
import { Web } from "sp-pnp-js";
import * as _ from "lodash";
import utils from "../../shared/utils";
import DisplayProp from "../../shared/DisplayProp";
import { SearchQuery, SearchResults } from "sp-pnp-js";
import { css } from "office-ui-fabric-react";
//i... | the_stack |
import {expect, match, restore, spy, stub} from '../test';
import EventObject from '../../src/tabris/EventObject';
import NativeObject from '../../src/tabris/NativeObject';
import Listeners from '../../src/tabris/Listeners';
import ChangeListeners from '../../src/tabris/ChangeListeners';
import {SinonStub} from 'sinon'... | the_stack |
import {DirectiveFn} from '../lib/directive.js';
import {createMarker, directive, NodePart, Part, removeNodes, reparentNodes} from '../lit-html.js';
export type KeyFn<T> = (item: T, index: number) => unknown;
export type ItemTemplate<T> = (item: T, index: number) => unknown;
// Helper functions for manipulating parts... | the_stack |
import {ExtraGlamorousProps} from './glamorous-component'
import {
CSSPropertiesCompleteSingle,
CSSPropertiesPseudo,
} from './css-properties'
import {SVGPropertiesCompleteSingle} from './svg-properties'
// The file `./named-built-in-glamorous-components.d.ts` is based off this file
// and should get any updates t... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../../types";
import * as utilities from "../../utilities";
/**
* CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topol... | the_stack |
import {
Accessibility,
datepickerBehavior,
DatepickerBehaviorProps,
AccessibilityAttributes,
} from '@fluentui/accessibility';
import {
DateRangeType,
DayOfWeek,
FirstWeekOfYear,
DEFAULT_CALENDAR_STRINGS,
IDayGridOptions,
ICalendarStrings,
IDatepickerOptions,
IRestrictedDatesOptions,
} from '..... | the_stack |
import { Base } from "../class/Base.js"
import { AnyFunction } from "../class/Mixin.js"
import { concat } from "../collection/Iterator.js"
import { warn } from "../environment/Debug.js"
import { CalculationContext, CalculationFunction, CalculationIterator, Context } from "../primitives/Calculation.js"
import { copySetI... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.