text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import Field from './Field';
if (!Array.isArray) {
// @ts-ignore
Array.isArray = function(arg: any) {
return Object.prototype.toString.call(arg) === '[object Array]';
};
}
if (typeof Object.assign != 'function') {
// Must be writable: true, enumerable: false, configurable: true
Object.defineProperty(Obj... | the_stack |
import test from 'japa'
import { ApplicationContract } from '@ioc:Adonis/Core/Application'
import { LucidUser } from '../../src/UserProviders/Lucid/User'
import {
setup,
reset,
cleanup,
getUserModel,
getLucidProvider,
setupApplication,
} from '../../test-helpers'
let app: ApplicationContract
test.group('... | 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/vaultsMappers";
import * as Parameters from "../models/parameters";
import { KeyVaultManagementClientContext } from "../keyVaultManagementClientCo... | the_stack |
import { PhysicalConstants } from './PhysicalConstants';
import { Units } from './Units';
/**
* AstronomicalConstants - class representing the most important astronomical constants.
*
* @author <b>Mariusz Gromada</b><br>
* <a href="mailto:mariuszgromada.org@gmail.com">mariuszgromada.org@gmail.com</a><br>
... | the_stack |
import * as React from "react";
import styles from "./TreeOrgChart.module.scss";
import { ITreeOrgChartProps } from "./ITreeOrgChartProps";
import { ITreeOrgChartState } from "./ITreeOrgChartState";
import SortableTree from "react-sortable-tree";
import "react-sortable-tree/style.css";
import {
IPersonaSharedProps,
... | the_stack |
import Logger from "@supercollider/logger";
import { ChildProcess, spawn } from "child_process";
import cuid from "cuid";
import { EventEmitter } from "events";
import fs from "fs";
import yaml from "js-yaml";
import _ from "lodash";
import path from "path";
import temp from "temp";
import untildify from "untildify";
... | the_stack |
import DataColumn, {DataColumnOptions, ShaderAttributeOptions, BufferAccessor} from './data-column';
import {IShaderAttribute} from './shader-attribute';
import assert from '../../utils/assert';
import {createIterable, getAccessorFromBuffer} from '../../utils/iterable-utils';
import {fillArray} from '../../utils/flatte... | the_stack |
import * as t from 'babel-types';
import * as assert from 'assert';
import * as bh from '@stopify/util';
import { generic } from '@stopify/normalize-js';
import { fresh } from '@stopify/hygiene';
import * as imm from 'immutable';
import * as capture from './captureLogics';
import { CompilerOpts } from '../types';
impor... | the_stack |
import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/viewsMappers";
import * as Parameters from "../models/parameters";
import { CustomerInsightsManagementClientContext } from "../customerInsightsManagementClientContext";
/** Class representing a Views. ... | the_stack |
import * as nbformat from '@jupyterlab/nbformat';
import { NotebookPanel } from '@jupyterlab/notebook';
import { ElementHandle, Page } from '@playwright/test';
import * as path from 'path';
import { galata } from '../galata';
import { INotebookRunCallback } from '../inpage/tokens';
import * as Utils from '../utils';
im... | the_stack |
import { Pulse } from '../pulse';
import { State, Group, PrimaryKey, GroupName, GroupAddOptions, Selector, Data, SelectorName } from '../internal';
import { defineConfig, shallowmerge } from '../utils';
import { deepmerge } from '../helpers/deepmerge';
import { normalizeArray } from '../utils';
// Shorthand for an exp... | the_stack |
import { Duration, Timezone } from "chronoshift";
import { List } from "immutable";
import {
$,
AttributeInfo,
AttributeJSs,
Attributes,
CustomDruidAggregations,
CustomDruidTransforms,
Executor,
Expression,
ExpressionJS,
External,
RefExpression
} from "plywood";
import { quoteNames, verifyUrlSafeN... | the_stack |
import { MarkdownIt, RuleBlock, RuleInline, Renderer, Token } from 'markdown-it';
import { renderTabularInline } from "./md-renderer-rules/render-tabular";
// import { escapeHtml } from 'markdown-it/lib/common/utils';
const getAbstractTemplate = (content) => `<h4 style="text-align: center">Abstract</h4><p style="text... | the_stack |
export declare enum MATypes {
SMA = 0,
EMA = 1,
WMA = 2,
DEMA = 3,
TEMA = 4,
TRIMA = 5,
KAMA = 6,
MAMA = 7,
T3 = 8
}
export declare interface Record {
Time: number;
Open: number;
High: number;
Low: number;
Close: number;
Volume: number;
}
/**
* ACCBANDS - Acceleration Bands
*
* @param... | the_stack |
import {
command,
CommandFunction,
CreateExtensionPlugin,
EditorState,
EditorView,
extension,
FromToProps,
Handler,
hasTransactionChanged,
Helper,
helper,
invariant,
isDomNode,
isEmptyArray,
isEqual,
isNumber,
isString,
PlainExtension,
Static,
Transaction,
} from '@remirror/core'... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* Manages a Stream Analytics Output Table.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
*
* const exampleResourceGroup = azure.core.getResour... | the_stack |
export type Vec3 = [number, number, number];
export interface UVW {
u: number;
v: number;
w: number;
}
export interface TextureMapData {
colorCorrection: boolean;
horizontalBlending: boolean;
verticalBlending: boolean;
boostMipMapSharpness: number;
modifyTextureMap: {
brightnes... | the_stack |
import { Injectable } from '@angular/core';
import { CameraOptions } from '@ionic-native/camera/ngx';
import { FileEntry } from '@ionic-native/file/ngx';
import { MediaFile, CaptureError, CaptureAudioOptions, CaptureVideoOptions } from '@ionic-native/media-capture/ngx';
import { Subject } from 'rxjs';
import { CoreApp... | the_stack |
import ARToolKit from "./ARToolKit";
/**
* The ARController is the main object for doing AR marker detection with JSARToolKit.
*
* To use an ARController, you need to tell it the dimensions to use for the AR processing canvas and
* pass it an ARCameraParam to define the camera parameters to use when processing i... | the_stack |
import { Resource } from '../../resource';
import { IDataCollection } from '../../interfaces/data-collection';
import { IDocumentResource } from '../../interfaces/data-object';
import { IDocumentData } from '../../interfaces/document';
import { IDataResource } from '../../interfaces/data-resource';
import { DocumentCol... | the_stack |
//@ts-check
///<reference path="devkit.d.ts" />
declare namespace DevKit {
namespace FormPhone_Call {
interface Header extends DevKit.Controls.IHeader {
/** Enter the user or team who is assigned to manage the record. This field is updated every time the record is assigned to a different user. */
OwnerId: Dev... | the_stack |
import type {
DidSignature,
IDidDetails,
IDidResolver,
IIdentity,
IDidKeyDetails,
KeystoreSigner,
SubmittableExtrinsic,
VerificationKeyRelationship,
IDidServiceEndpoint,
} from '@kiltprotocol/types'
import { KeyRelationship } from '@kiltprotocol/types'
import { SDKErrors, Crypto } from '@kiltprotocol/... | the_stack |
import * as cp from "child_process";
import * as crypto from "crypto";
import * as fs from "fs-plus";
import * as path from "path";
import * as vscode from "vscode";
import * as sdk from "vscode-iot-device-cube-sdk";
import * as WinReg from "winreg";
import { IoTCubeCommands, RemoteContainersCommands, VscodeCommands, ... | the_stack |
import {
Datasets,
DataPoint,
RenderInfo,
BulletInfo,
Dataset,
Size,
Transform,
ChartElements,
GraphType,
ValueType,
} from "./data";
import * as helper from "./helper";
import * as d3 from "d3";
import * as expr from "./expr";
function createAreas(
canvas: HTMLElement,
... | the_stack |
import Component from '../Core/Component';
import Hilo3d from '../Core/Hilo3d';
import * as Math from '../Core/Math';
import {SClass} from '../Core/Decorator';
import SArray from '../DataStructure/SArray';
import {INodeWithGlTFExtensions} from '../types/Resource';
import ISceneComponent, {ISceneComponentState} from '..... | the_stack |
import { isEqual, sortBy } from "lodash"
import Micromerge, {
Json, ObjectId, OperationId, OperationPath,
BaseOperation, Patch,
ListItemMetadata, ListMetadata,
compareOpIds, getListElementId
} from "./micromerge"
import { Marks, markSpec, MarkType } from "./schema"
export type MarkOperation = AddMarkOp... | the_stack |
class SplashController {
private _addSplashWindowModel: any;
public constructor(addSplashWindowModel: any) {
this._addSplashWindowModel = addSplashWindowModel;
}
// Insert the info button in the cesium navigation help popup (the question mark button)
public insertSplashInfoHelp(): void {
... | the_stack |
import { Component, ElementRef, OnDestroy, OnInit, ViewChild } from "@angular/core";
import { animate, state, style, transition, trigger } from "@angular/animations";
import { AbstractMenuPageComponent } from "~/abstract-menu-page-component";
import { AR, ARDebugLevel, ARMaterial, ARPlaneTappedEventData, ARPosition, AR... | the_stack |
import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
import { environment } from './../../../../../environments/environment';
import { ActivatedRoute, Router } from '@angular/router';
import { Subscription } from 'rxjs/Subscription';
import { UtilsService } from '../../../../shared/services/utils.s... | the_stack |
import type { GraphQLError } from 'graphql';
import WebSocket from 'isomorphic-ws';
import { createDeferredPromise, DeferredPromise, GQLResponse } from '../utils';
import {
GQL_COMPLETE,
GQL_CONNECTION_ACK,
GQL_CONNECTION_ERROR,
GQL_CONNECTION_INIT,
GQL_CONNECTION_KEEP_ALIVE,
GQL_DATA,
GQL_ERROR,
GQL_S... | the_stack |
import {strict as assert} from 'assert';
import {parallel} from 'async';
import Baobab, {Cursor} from '../../src/baobab';
import state from '../state';
describe('Cursor API', function() {
/**
* Getters
*/
describe('Getters', function() {
/**
* Root level
*/
describe('Root cursor', functio... | the_stack |
import app, { Component } from '../src/apprun';
describe('Stateful Component', () => {
it('should pass props to the constructor', () => {
class Child extends Component {
view = (state) => {
return <div>{state}</div>
}
constructor({ n }) {
super();
expect(n).toBe('7');
... | the_stack |
import * as fs from "fs";
import * as ltx from "ltx";
import * as tl from 'azure-pipelines-task-lib/task';
import * as Q from 'q';
import * as auth from 'packaging-common/nuget/Authentication';
import { NuGetConfigHelper2 } from 'packaging-common/nuget/NuGetConfigHelper2';
import * as ngRunner from 'packaging-common/nu... | the_stack |
import * as pubSub from './shared/pubSub';
import { logDelete, logGet, logSet } from './shared/debug';
import state from './shared/state';
import * as utils from './shared/utils';
import * as paths from './shared/paths';
import { ArrayMembers, MapOrSetMembers, ORIGINAL } from './shared/constants';
import { PropPath, Ta... | the_stack |
import test from 'ava';
import {JsonSerialize} from '../src/decorators/JsonSerialize';
import {JsonDeserialize} from '../src/decorators/JsonDeserialize';
import {JsonClassType} from '../src/decorators/JsonClassType';
import {ObjectMapper} from '../src/databind/ObjectMapper';
import {JsonProperty} from '../src/decorator... | the_stack |
import { Container, Inject, Service } from "typedi";
import { DBManager } from "@modules/db";
import { ProjectsService } from "@modules/resources/projects/service";
import { TestsRunner } from "@modules/runner";
import { BuildStatusEnum, BuildTriggerEnum, ICreateBuildRequestPayload } from "@modules/resources/builds/int... | the_stack |
function fixDefaultNamespaceAndLowerCase(key) {
key = key.toLowerCase();
if (!key.includes(':')) key = 'android:' + key;
return key;
}
module androidui.attr {
import View = android.view.View;
import ViewGroup = android.view.ViewGroup;
import Gravity = android.view.Gravity;
import Drawable =... | the_stack |
namespace PE {
export class Battle_Scene extends Scene_Base {
battle: Battle_Manager;
viewport: Sprite;
sprites: {};
hpbars: {};
layers: { bg: Sprite } = { bg: undefined };
message: PE.Battle.UI.Window_BattleMessage;
battleCommands: PE.Battle.UI.BattleCommands;
partyBar: Sprite;
HU... | the_stack |
/* eslint-disable */
import * as grpc from "@grpc/grpc-js";
import {handleClientStreamingCall} from "@grpc/grpc-js/build/src/server-call";
import * as echo_echo_pb from "../echo/echo_pb";
interface IEchoServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
echo: IEchoServiceService_IE... | the_stack |
import { gunzip } from 'zlib';
import { Configuration, metricScope, Unit } from 'aws-embedded-metrics';
import type { Context } from 'aws-lambda';
import { AWSError, S3 } from 'aws-sdk';
import { SemVer } from 'semver';
import { extract } from 'tar-stream';
import { CatalogModel, PackageInfo } from '.';
import { Cache... | the_stack |
import { CustomFeaturesTile } from './customFeaturesTile';
// @ts-ignore
import concat from 'concat-stream';
import path from 'path';
/**
* Draws a tile indicating the number of features that exist within the tile,
* visible when zoomed in closer. The number is drawn in the center of the tile
* and by default is su... | the_stack |
import { Component, DebugElement } from '@angular/core';
import { ComponentFixture, fakeAsync, flush, TestBed } from '@angular/core/testing';
import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { By } from '@angular/platform-browser';
import { fastTestSetup } from '../../../../test/he... | the_stack |
import { getTestConfiguration } from '../../test-utils/config';
import {
getTestRequestRepository,
getTestNetworkService,
} from '../../test-utils/infrastructure';
import { RequestRepository } from '../repository';
import { NetworkService } from '../service';
import { Response, Request } from '../entity';
import { ... | the_stack |
import React, { CSSProperties, Component, createRef } from 'react';
import { on, off } from './utils/events';
import { getScrollWidth } from './utils/getScrollWidth';
import { clearSelection } from './utils/clearSelection';
import { stylesFactory } from './styles';
import { scrollTo } from './modules/scrollTo';
import ... | the_stack |
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
/**
* @interface
* An interface representing ErrorResponse.
* The error response send when an operation fails.
*
*/
export interface Er... | the_stack |
import BigNumber from 'bignumber.js'
import { WyvernProtocol } from 'wyvern-js'
import * as ethUtil from 'ethereumjs-util'
import * as _ from 'lodash'
import * as Web3 from 'web3'
import {
AnnotatedFunctionABI,
FunctionInputKind,
FunctionOutputKind,
Schema,
StateMutability
} from 'wyvern-schemas/dist/types'
i... | the_stack |
import * as ec2 from '@aws-cdk/aws-ec2';
import * as ssm from '@aws-cdk/aws-ssm';
// v2 - keep this import as a separate section to reduce merge conflict when forward merging with the v2 branch.
// eslint-disable-next-line
import { Construct as CoreConstruct } from '@aws-cdk/core';
/**
* The ECS-optimized AMI varian... | the_stack |
import * as assert from 'assert'
import * as vscode from 'vscode'
import { createBackButton } from '../../../shared/ui/buttons'
import {
createLabelQuickPick,
createQuickPick,
FilterBoxQuickPickPrompter,
DataQuickPick,
DataQuickPickItem,
DEFAULT_QUICKPICK_OPTIONS,
QuickPickPrompter,
CUST... | the_stack |
import * as aws from "@pulumi/aws";
import * as pulumi from "@pulumi/pulumi";
import * as x from "..";
import { Cidr32Block, getIPv4Address } from "./cidr";
import * as utils from "../utils";
/** @internal */
export interface AvailabilityZoneDescription {
name: string;
id: string;
}
export function create(
... | the_stack |
import { PAGInit } from '../src/pag';
import { PAGFile } from '../src/pag-file';
import { PAGView } from '../src/pag-view';
import { AudioPlayer } from './module/audio-player';
import { LayerType, PAG as PAGNamespace, PAGViewListenerEvent, ParagraphJustification } from '../src/types';
import { PAGComposition } from '..... | the_stack |
declare namespace enetPinusPb {
/**
* The Endian class contains values that denote the byte order used to represent multibyte numbers.
* The byte order is either bigEndian (most significant byte first) or littleEndian (least significant byte first).
* @version Egret 2.4
* @platform Web,Native
... | the_stack |
import { copy, defineConfig, normalizeArray } from '@agile-ts/utils';
import { logCodeManager } from '../../logCodeManager';
import {
CreateStatePersistentConfigInterface,
EnhancedState,
StateIngestConfigInterface,
StateObserver,
StateObserversInterface,
} from '../../state';
import { Collection, DefaultItem,... | the_stack |
import { solveRoute } from "../src/solveRoute";
import * as fetchMock from "fetch-mock";
import { Solve, SolveNoDirections, SolveWebMercator } from "./mocks/responses";
import { IPoint, ILocation, IFeatureSet } from "@esri/arcgis-rest-types";
// -117.195677,34.056383;-117.918976,33.812092
const stops: Array<... | the_stack |
import { Marketplace as MarketplaceContract } from "contracts";
import { ContractMetadata } from "../core/classes/contract-metadata";
import { ContractRoles } from "../core/classes/contract-roles";
import { ContractEncoder } from "../core/classes/contract-encoder";
import { IStorage } from "../core/interfaces/IStorage"... | the_stack |
import * as d3 from 'd3';
import { d3GetEvent } from './utils';
import * as _ from 'underscore';
import * as selector from './Selector';
import * as utils from './utils';
import * as sel_utils from './selector_utils';
import { Mark } from './Mark';
// TODO: examine refactoring the two abstract base classes belowing us... | the_stack |
import {
Mutable,
Class,
Equals,
Equivalent,
Arrays,
Values,
Domain,
Range,
AnyTiming,
Timing,
Easing,
LinearDomain,
LinearRange,
ContinuousScale,
LinearScale,
} from "@swim/util";
import {Affinity, MemberFastenerClass, Property, Animator} from "@swim/component";
import {DateTime, TimeDoma... | the_stack |
import * as net from "net";
import * as dgram from "dgram";
import { parse as urlParse } from "url";
import { EventEmitter } from "events";
import {
parseRTPPacket,
parseRTCPPacket,
getMD5Hash,
parseTransport,
generateSSRC,
} from "./util";
import * as transform from "sdp-transform";
const RTP_AVP = "RTP/A... | the_stack |
import {
addType,
emptyObject,
flatten,
indexAccess,
isMember,
isOptional,
isType,
isTypeIncluded,
ReflectionKind,
Type,
TypeAny,
TypeInfer,
TypeLiteral,
TypeMethod,
TypeMethodSignature,
TypeNumber,
TypeParameter,
TypeString,
TypeTemplateLitera... | the_stack |
import { ScatterPlotChart } from "../scatterCharts/ScatterPlotChart"
import {
SampleColumnSlugs,
SynthesizeFruitTable,
SynthesizeFruitTableWithNonPositives,
SynthesizeGDPTable,
} from "../../coreTable/OwidTableSynthesizers"
import { ScatterPlotManager } from "./ScatterPlotChartConstants"
import {
En... | the_stack |
import React, { ForwardRefExoticComponent, RefAttributes, useRef } from 'react';
import hoistNonReactStatics from 'hoist-non-react-statics';
// @ts-ignore
import { useForkRef } from '@semcore/utils/lib/ref';
// @ts-ignore
import useEnhancedEffect from '@semcore/utils/lib/use/useEnhancedEffect';
// @ts-ignore
import _as... | the_stack |
import React, { FunctionComponent, useRef, useState, useCallback } from "react";
import OverlayBox from "Components/Common/OverlayBox";
import FileDropZone from "../../../Add/Pages/AddFiles/FileDropZone";
import {
State,
createId,
DatasetStateUpdaterType,
Distribution,
DistributionSource,
Distri... | the_stack |
import { Serializer } from '@edtr-io/plugin'
import { ValueJSON } from 'slate'
/** @public */
export const serializer: Serializer<NewNode[], ValueJSON> = {
deserialize(serialized) {
return {
object: 'value',
document: {
object: 'document',
nodes: (serialized || []).map(deserializeNode... | the_stack |
'use strict';
import update, { Context, extend, isEquals } from '.';
describe('immutability-helper module', () => {
it('exports a Context class', () => {
expect(Context).not.toBeUndefined();
expect(new Context() instanceof Context).toBe(true);
});
it('exports an isEquals method', () => {
expect(ty... | the_stack |
import { createElement } from '@syncfusion/ej2-base';
import { Diagram } from '../../../src/diagram/diagram';
import { NodeModel } from '../../../src/diagram/objects/node-model';
import { ShapeAnnotationModel } from '../../../src/diagram/objects/annotation-model';
import { TextStyleModel } from '../../../src/diagram/co... | the_stack |
import React, { useState, useEffect, useRef } from 'react'
import { useMutation, gql } from '@apollo/client'
import Checkbox from '@mui/material/Checkbox'
import DialogContentText from '@mui/material/DialogContentText'
import FormControlLabel from '@mui/material/FormControlLabel'
import FormHelperText from '@mui/materi... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utilities";
import {Application, ApplicationVersion} from "./index";
/**
* Provides an Elastic Beanstalk Environment Resource. Elastic Beanstalk allows
* you to deploy and m... | the_stack |
* @title: 3D Physics collision meshes
* @description:
* This sample shows how to create rigid body physics nodes with each of the collision mesh types (boxes, spheres,
* cones, cylinders, capsules and convex hulls) and a static triangle mesh.
*
* Rigid body cubes with an initial velocity can be fired into the scen... | the_stack |
import { Inject, Injectable, Optional } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
// firebase
import firebase from "firebase/app";
import 'firebase/messaging';
import 'firebase/database';
import 'firebase/firestore';
// models
import { UserModel } from '../../models/user';
import { MessageModel ... | the_stack |
import { Signal } from './base/Signal';
import { parseUri } from './base/parseUri';
import { IResourceMetadata, LoaderResource } from './LoaderResource';
import { AsyncQueue } from './base/AsyncQueue';
import { Dict } from '@pixi/utils';
// some constants
const MAX_PROGRESS = 100;
const rgxExtractUrlHash = /(#[\w-]+)?... | the_stack |
import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/commitmentPlansMappers";
import * as Parameters from "../models/parameters";
import { AzureMLCommitmentPlansManagementClientContext } from "../azureMLCommitmentPlansManagementClientContext";
/** Class ... | the_stack |
import {AnyAction, Store} from 'redux';
import {toast} from 'react-toastify';
import {CommsNode} from './commsNode';
import {ScenarioReducerActionType, setScenarioLocalAction, updateHeadActionIdsAction} from '../redux/scenarioReducer';
import {promiseSleep} from './promiseSleep';
import {
addPendingActionAction,
... | the_stack |
import 'chrome://resources/cr_elements/cr_button/cr_button.m.js';
import 'chrome://resources/cr_elements/cr_icon_button/cr_icon_button.m.js';
import 'chrome://resources/cr_elements/cr_link_row/cr_link_row.js';
import 'chrome://resources/cr_elements/shared_style_css.m.js';
import 'chrome://resources/polymer/v3_0/iron-fl... | the_stack |
import { Match, MatchEngine } from 'dimensions-ai';
import { DEFAULT_CONFIGS } from './defaults';
import { generateGame } from './Game/gen';
import { LuxMatchState, SerializedState } from './types';
import {
Action,
SpawnWorkerAction,
SpawnCityAction,
SpawnCartAction,
ResearchAction,
TransferAction,
MoveA... | the_stack |
import {isNullOrUndefined, isUndefined} from 'util';
import * as $ from 'jquery';
import * as _ from 'lodash';
import Split from 'split.js'
import {Observable} from 'rxjs';
import {Subscription} from 'rxjs/Subscription';
import {
AfterViewInit,
Component,
ElementRef,
EventEmitter,
HostListener,
Injector,
... | the_stack |
declare module "typescript" {
const enum Ternary {
False = 0,
Maybe = 1,
True = -1,
}
const enum Comparison {
LessThan = -1,
EqualTo = 0,
GreaterThan = 1,
}
interface StringSet extends Map<any> {
}
function forEach<T, U>(array: T[], callback: (... | the_stack |
import * as t from '../../src'
import { either } from 'fp-ts/lib/Either'
//
// helpers
//
type Compact<A> = { [K in keyof A]: A[K] }
/**
* Returns the string literal 'T' if `A` and `B` are equal types, 'F' otherwise
*/
type Equals<A, B> = (<C>() => C extends Compact<A> ? 'T' : 'F') extends <C>() => C extends Compa... | the_stack |
import { Merged, mergeParams } from '../internal/params_utils.js';
// ================================================================
// "Public" ParamsBuilder API / Documentation
// ================================================================
/**
* Provides doc comments for the methods of CaseParamsBuilder and... | the_stack |
import {ClusterProfile, ElasticAgentProfile, ElasticAgentProfiles} from "models/elastic_profiles/types";
import {Configuration, Configurations} from "models/shared/configuration";
import {EncryptedValue, PlainTextValue} from "models/shared/config_value";
describe("Types", () => {
describe("Elastic Agent Profiles", (... | the_stack |
| Copyright (c) 2014-2017, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|----------------------------------------------------------------------------*/
import {
ArrayExt, each, filter, find, max
} from... | the_stack |
import { logger } from '../../services/logger';
import { SolanaConfig } from './solana.config';
import { countDecimals, TokenValue, walletPath } from '../../services/base';
import NodeCache from 'node-cache';
import bs58 from 'bs58';
import { BigNumber } from 'ethers';
import {
AccountInfo,
Commitment,
Connection... | the_stack |
import * as React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import ProjectEnvironmentUnlockService from '../../services/ProjectEnvironmentUnlock';
import ProjectEnvironmentService from '../../services/ProjectEnvironment';
import { fetchProject } from '../../state/pro... | the_stack |
import * as _ from 'lodash';
import {
add_dummy_feature,
Binarizer,
MinMaxScaler,
normalize,
OneHotEncoder,
PolynomialFeatures,
} from '../../src/lib/preprocessing';
import {
ConstructionError,
Validation1DMatrixError,
ValidationError,
ValidationKeyNotFoundError,
} from '../../src/lib/utils/Errors';... | the_stack |
'use strict';
import * as _ from 'lodash';
import * as jwt from 'jsonwebtoken';
import * as chai from 'chai';
import * as sinon from 'sinon';
import * as sinonChai from 'sinon-chai';
import * as chaiAsPromised from 'chai-as-promised';
import * as mocks from '../../resources/mocks';
import {
appCheckErrorFromCryptoS... | the_stack |
import test from 'japa'
import { DateTime } from 'luxon'
import { SchemaRef, ParsedRule, DurationUnits } from '@ioc:Adonis/Core/Validator'
import { rules } from '../../src/Rules'
import { schema } from '../../src/Schema'
import { validate } from '../fixtures/rules/index'
import { MessagesBag } from '../../src/Messages... | the_stack |
import { IBuildingQueryEventArgs, INoResultsEventArgs, QueryEvents } from '../../src/events/QueryEvents';
import { Defer } from '../../src/misc/Defer';
import { analyticsActionCauseList } from '../../src/ui/Analytics/AnalyticsActionListMeta';
import { QueryBuilder } from '../../src/ui/Base/QueryBuilder';
import { IPage... | the_stack |
import { List } from 'immutable';
import { Class, Instance, isInstanceOf } from 'immutable-class';
import { Timezone, Duration } from 'chronoshift';
import { $, r, Expression, LiteralExpression, ExpressionJS, InAction, Set, Range, TimeRange } from 'swiv-plywood';
import { immutableListsEqual } from '../../utils/general... | the_stack |
import * as fs from 'fs';
import * as path from 'path';
import * as vscode from 'vscode';
import { getConfig } from './config';
import { DataSource } from './dataSource';
import { DEFAULT_REPO_STATE, ExtensionState } from './extensionState';
import { Logger } from './logger';
import { BooleanOverride, ErrorInfo,... | the_stack |
import BlocksoftAxios from '../../common/BlocksoftAxios'
import BlocksoftCryptoLog from '../../common/BlocksoftCryptoLog'
import BlocksoftUtils from '../../common/BlocksoftUtils'
import { BlocksoftBlockchainTypes } from '../BlocksoftBlockchainTypes'
import TronUtils from './ext/TronUtils'
import TrxTronscanProvider fr... | the_stack |
import React, {useMemo, useState} from 'react'
import {Helmet} from 'react-helmet'
import {Steps, Row, Button, Card, Select, Typography, Checkbox, Modal, Divider, Spin} from 'antd';
import {CheckCircleOutlined} from "@ant-design/icons";
import {useApplication} from "../context/ApplicationProvider";
import {ControlServ... | the_stack |
import { expect } from 'chai';
import { deployMockContract } from 'ethereum-waffle';
import { describeFilter } from '@solidstate/library';
import { describeBehaviorOfERC165 } from '../../introspection';
import { DiamondCuttable } from '../../../typechain';
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/si... | the_stack |
import {
CdmAttributeItem,
CdmCorpusDefinition,
CdmEntityDefinition,
CdmTraitReference,
CdmTypeAttributeDefinition
} from '../../../internal';
import { testHelper } from '../../testHelper';
import { projectionTestUtils } from '../../Utilities/projectionTestUtils';
/**
* A test class for testing the AddSuppo... | the_stack |
import { ClassificationGuideBody } from '../model/classificationGuideBody';
import { ClassificationGuideEntry } from '../model/classificationGuideEntry';
import { ClassificationGuidePaging } from '../model/classificationGuidePaging';
import { InstructionEntry } from '../model/instructionEntry';
import { SubtopicPaging ... | the_stack |
import { strict as assert } from "assert";
import { TelemetryNullLogger } from "@fluidframework/common-utils";
import {
channelsTreeName,
CreateChildSummarizerNodeParam,
CreateSummarizerNodeSource,
ISummarizerNode,
ISummarizerNodeConfig,
} from "@fluidframework/runtime-definitions";
import { ISequen... | the_stack |
import { asyncOperation, ClassType, CompilerContext, getClassName, isClass, isObject, urlJoin } from '@deepkit/core';
import {
assertType,
entity,
findMember,
getSerializeFunction,
getValidatorFunction,
metaAnnotation,
ReflectionClass,
ReflectionFunction,
ReflectionKind,
Reflecti... | the_stack |
import * as Bluebird from 'bluebird';
import * as Dockerode from 'dockerode';
import { EventEmitter } from 'events';
import { isLeft } from 'fp-ts/lib/Either';
import * as JSONStream from 'JSONStream';
import * as _ from 'lodash';
import { promises as fs } from 'fs';
import StrictEventEmitter from 'strict-event-emitter... | the_stack |
import dialogPolyfill from "dialog-polyfill";
import {Command, Help, PluginHelp} from "../api/help";
import {getParameterByName} from '../common/urls';
declare const allHelp: Help;
function redrawOptions(): void {
const rs = allHelp.AllRepos.sort();
const sel = document.getElementById("repo") as HTMLSelectEle... | the_stack |
import { BaseModule, EventChannel, SylApi, Types } from '@syllepsis/adapter';
import debounce from 'lodash.debounce';
import throttle from 'lodash.throttle';
import { AllSelection, NodeSelection } from 'prosemirror-state';
import { EditorView } from 'prosemirror-view';
import { IRenderer } from '../../../../renderer';... | the_stack |
import { Schema } from '@cardano-ogmios/client'
import { exec } from 'child_process'
import util, { DataFetcher, ModuleState } from '@cardano-graphql/util'
import fetch from 'cross-fetch'
import { DocumentNode, GraphQLSchema, print } from 'graphql'
import { GraphQLClient, gql } from 'graphql-request'
import { introspec... | the_stack |
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import { UnreachableCode } from '../../../../../resources/not_reached';
import Outputs from '../../../../../resources/outputs';
import { callOverlayHandler } from '../../../../../resources/ove... | the_stack |
import * as d3 from "d3";
import { assert } from "chai";
import * as Plottable from "../../src";
import * as TestMethods from "../testMethods";
describe("Dispatchers", () => {
describe("Mouse Dispatcher", () => {
describe("Basic usage", () => {
let div: d3.Selection<HTMLDivElement, any, any, any>;
... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.