text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import merge from 'lodash.merge';
import * as os from 'os';
import R from 'ramda';
import { Client as Ssh2Client } from 'ssh2';
import { Analytics } from '../../../analytics/analytics';
import { getSync } from '../../../api/consumer/lib/global-config';
import * as globalConfig from '../../../api/consumer/lib/global-con... | the_stack |
import * as cfnspec from '@aws-cdk/cfnspec';
import { IamChanges } from '../iam/iam-changes';
import { SecurityGroupChanges } from '../network/security-group-changes';
export declare type PropertyMap = {
[key: string]: any;
};
/** Semantic differences between two CloudFormation templates. */
export declare class Te... | the_stack |
import { DeepPartial, Service } from "@bluelibs/core";
import { ObjectId } from "@bluelibs/ejson";
import { Collection, MONGO_BUNDLE_COLLECTION } from "./Collection";
import { Linker, LINK_STORAGE } from "@bluelibs/nova";
import * as MongoDB from "mongodb";
/**
* This represents ObjectId from @bluelibs/ejson or from ... | the_stack |
import { clone, groupBy } from '@antv/util';
import Graph from '../implement-graph';
const div = document.createElement('div');
div.id = 'combo-shape';
document.body.appendChild(div);
const graphCfg = { container: div, width: 500, height: 600, groupByTypes: false, };
describe('simple data', () => {
const simpleData... | the_stack |
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config-base';
interface Blob {}
declare class AutoScalin... | the_stack |
import React from "react";
import styled, { css } from "styled-components";
import { Link } from "gatsby";
import { WindowLocation } from "@reach/router";
import {
Stack,
Button,
Hide,
Portal,
ModalHeader,
ModalSection,
Badge,
Modal,
mediaQueries as mq,
} from "@kiwicom/orbit-components";
import { Men... | the_stack |
/* eslint-disable @typescript-eslint/class-name-casing */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-empty-interface */
/* eslint-disable @typescript-eslint/no-namespace */
/* eslint-disable no-irregular-whitespace */
import {
OAuth2Client,
JWT,
Compute,
User... | the_stack |
import React from 'react';
import path from "path";
import fs from "fs";
import escapeHTML from 'escape-html';
import {BrowserViewIPC} from '../../../IPC/BrowserViewIPC';
import {MainWindowIPC} from '../../../IPC/MainWindowIPC';
import {UserPrefRepo} from '../../Repository/UserPrefRepo';
import {IssueEntity} from '../.... | the_stack |
namespace egret.sys {
/**
* @private
*/
export const enum TextKeys {
/**
* @private
*/
fontSize,
/**
* @private
*/
lineSpacing,
/**
* @private
*/
textColor,
/**
* @p... | the_stack |
import { Directive, ElementRef, Input, OnChanges, OnDestroy, OnInit, SimpleChange } from '@angular/core';
import { CoreCancellablePromise } from '@classes/cancellable-promise';
import { CorePromisedValue } from '@classes/promised-value';
import { CoreLoadingComponent } from '@components/loading/loading';
import { CoreT... | the_stack |
import { default as setListItemStyle } from '../../lib/list/setListItemStyle';
interface TestChildElement {
elementTag: string;
styles: string;
textContent?: string;
}
describe('setListItemStyle', () => {
const stylesToInherit = ['font-size', 'font-family', 'color'];
it('singleElement with fontSi... | the_stack |
import type {Mutable, Proto, ObserverType} from "@swim/util";
import type {FastenerOwner, Fastener} from "@swim/component";
import type {Model} from "../model/Model";
import type {AnyTrait, Trait} from "./Trait";
import {TraitRelationInit, TraitRelationClass, TraitRelation} from "./TraitRelation";
/** @internal */
exp... | the_stack |
import { vec3, quat } from 'gl-matrix';
import ModelInstance from '../../modelinstance';
import { createSkeletalNodes, SkeletalNode } from '../../skeletalnode';
import DataTexture from '../../gl/datatexture';
import Scene from '../../scene';
import Texture from '../../texture';
import MdxNode from './node';
import Atta... | the_stack |
import {
Component,
AfterViewInit,
OnInit,
OnDestroy,
OnChanges,
ViewChild,
SimpleChanges,
Input,
NgZone,
} from '@angular/core';
import { ConfigService } from 'services/config.service';
import { Subscription, timer } from 'rxjs';
import { Media, Configuration } from '@vimtur/common';
import { isMobil... | the_stack |
/// <reference types="node"/>
declare namespace BN {
type Endianness = 'le' | 'be';
type IPrimeName = 'k256' | 'p224' | 'p192' | 'p25519';
interface MPrime {
name: string;
p: BN;
n: number;
k: BN;
}
interface ReductionContext {
m: number;
prime: MPr... | the_stack |
'use strict';
import * as fs from 'fs';
/* tslint:disable */
let util = {
getDataType: function (data: any): string {
if (typeof data === 'string') {
return 'string';
}
if (data instanceof Array) {
return 'array';
}
if (typ... | the_stack |
/** @jsxFrag Fragment */
import { Fragment, h } from "preact";
import { PageProps } from "$fresh/server.ts";
import { Head } from "$fresh/runtime.ts";
import { tw } from "@twind";
import { Handlers } from "$fresh/server.ts";
import { Header } from "@/components/Header.tsx";
import { Footer } from "@/components/Footer.t... | the_stack |
import * as React from 'react';
import { saveAs } from 'file-saver';
import { ContextMenuTrigger } from "react-contextmenu";
import 'purecss/build/pure-min.css';
import 'react-quill/dist/quill.snow.css';
import './scss/index.scss';
import './fonts/icofont.min.css';
import ResumeComponentFactory from './components/Res... | the_stack |
import { createMachine, Interpreter, assign, TransitionsConfig } from "xstate";
import { EVENTS, GameEvent } from "../events";
import { processEvent } from "./processEvent";
import { Context as AuthContext } from "features/auth/lib/authMachine";
import { metamask } from "../../../lib/blockchain/metamask";
import { Ga... | the_stack |
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
export enum ChannelMembershipType {
DEFAULT = "DEFAULT",
HIDDEN = "HIDDEN",
}
/**
* <p>Summary of the membership details of an <code>AppInstanceUser... | the_stack |
module TDev {
export class UndoState {
public savedApp: IndexedString[];
public loc: CodeLocation;
public parse(): AST.App {
return AST.Parser.parseScript(
this.savedApp.map((e) => e.s).join("\n")
);
}
public toJson() {
... | the_stack |
import { ExtensionFragDepth } from '../globals'
import { defaults } from '../utils'
import Representation, { RepresentationParameters } from './representation'
import Volume from '../surface/volume'
import FilteredVolume from '../surface/filtered-volume'
import SphereBuffer, { SphereBufferData, SphereBufferParameters }... | the_stack |
module Cats {
var tsconfig = require("tsconfig");
export interface CompilerOptions {
[key: string]: any;
noLib?: boolean;
target?: string;
}
export interface TSConfig {
compilerOptions?: CompilerOptions;
compileOnSave?: boolean;
validateOnSave?: boolean;... | the_stack |
import {
IExecuteFunctions,
} from 'n8n-core';
import {
IBinaryKeyData,
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
NodeApiError,
NodeOperationError,
} from 'n8n-workflow';
import {
createMessage,
downloadAttachments,
makeRecipient,
micr... | the_stack |
import { ContainerGroup, DeFiDRpcError, GenesisKeys, MasterNodeRegTestContainer } from '@defichain/testcontainers'
import { ContainerAdapterClient } from '../../container_adapter_client'
import { MasternodeState, MasternodeTimeLock } from '../../../src/category/masternode'
import { AddressType } from '../../../src/cate... | the_stack |
import { AggregatedResult, TestResult } from "@jest/test-result";
import { Config } from "@jest/types";
import dateformat from "dateformat";
import fs from "fs";
import mkdirp from "mkdirp";
import path from "path";
import {
IJestHTMLReporterConfig,
IJestHTMLReporterConfigOptions,
IJestHTMLReporterConsole,
Jest... | the_stack |
import React, { useCallback } from 'react'
import styled from '../../../../design/lib/styled'
// import { useSet } from 'react-use'
import { usePage } from '../../../../cloud/lib/stores/pageStore'
import { PageStoreWithTeam } from '../../../../cloud/interfaces/pageStore'
// import Icon from '../../../../shared/componen... | the_stack |
import { validateAuthorizationHeader, getAuthenticationScopes, AuthScopeValues } from './authentication'
import { ValidationError, DoesNotExist, PayloadTooLargeError, PreconditionFailedError } from './errors'
import { ProofChecker } from './ProofChecker'
import { AuthTimestampCache } from './revocations'
import { Read... | the_stack |
import BlocksoftCryptoLog from '../../common/BlocksoftCryptoLog'
import { BlocksoftBlockchainTypes } from '../../blockchains/BlocksoftBlockchainTypes'
import { BlocksoftTransferDispatcher } from '../../blockchains/BlocksoftTransferDispatcher'
import { BlocksoftTransferPrivate } from './BlocksoftTransferPrivate'
import ... | the_stack |
import * as ts from 'typescript';
const yargs = require('yargs/yargs');
const { hideBin } = require('yargs/helpers');
type ObjectMemberAsJson = { [key: string]: string; }
type ObjectMembersAsJson = {
properties: ObjectMemberAsJson,
getters: ObjectMemberAsJson,
methods: ObjectMemberAsJson,
}
type ClassAsJ... | the_stack |
const conversations = [
{
name: 'rallylongmailname@wix.com',
text: 'Made a purchase in the total of 7.00$',
timestamp: '7/14/2016',
thumbnail: 'https://i.pravatar.cc/150?img=1',
leftTitleBadge: 'badgeOfficial'
},
{
name: 'Johnny Gibson',
text: 'Do you also carry these shoes in black?',... | the_stack |
import './CBlock.module.scss';
import {
getRandStr,
getStoreItem,
isServer,
setStoreItem,
TBlockContentProvider,
TCromwellBlock,
TCromwellBlockData,
TCromwellBlockProps,
} from '@cromwell/core';
import React, { Component } from 'react';
import {
BlockContentConsumer,
blockCssCl... | the_stack |
import {
inject,
ComponentFixture,
TestBed,
fakeAsync,
tick,
flush,
} from '@angular/core/testing';
import {
NgModule,
Component,
Directive,
ViewChild,
ViewContainerRef,
Inject,
TemplateRef,
} from '@angular/core';
import {CommonModule} from '@angular/common';
import {
MDC_SNACKBAR_DATA,
M... | the_stack |
import * as Tp from "../Collections/Immutable/Tuple"
import { _A, _E, _R, _U } from "../Effect/commons"
import * as E from "../Either"
import { pipe } from "../Function"
import type { Option } from "../Option"
import { Stack } from "../Stack"
import type * as U from "../Utils"
/**
* `Async[R, E, A]` is a purely funct... | 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/rolesMappers";
import * as Parameters from "../models/parameters";
import { DataBoxEdgeManagementClientContext } from "../dataBoxEdgeManagementCli... | the_stack |
import { loadConfig, resolveBindings, resolveProfile } from './config_loader.ts';
import { gzip, isAbsolute, resolve, fromFileUrl, relative } from './deps_cli.ts';
import { putScript, Binding as ApiBinding, listDurableObjectsNamespaces, createDurableObjectsNamespace, updateDurableObjectsNamespace, Part, Migrations } fr... | the_stack |
import { Inject, Injectable, OnDestroy } from "@angular/core";
import {
_INVERTED_SHIFT_MAP,
_KEYCODE_MAP,
_MAP,
_SHIFT_MAP,
_SPECIAL_CASES,
modifiers
} from "./keys";
import {
BehaviorSubject,
fromEvent,
Observable,
Subject,
Subscription,
throwError,
timer,
of
} ... | the_stack |
import * as coreHttp from "@azure/core-http";
export interface DetectRequest {
/** Time series data points. Points should be sorted by timestamp in ascending order to match the anomaly detection result. If the data is not sorted correctly or there is duplicated timestamp, the API will not work. In such case, an erro... | the_stack |
function VideoUtils (conversation: jCafe.Conversation, content: HTMLElement, listeners: any[],
startStep: number, nSteps: number, reset: (boolean?) => void) {
'use strict';
var isActiveSpeakerMode = conversation.videoService.videoMode() == 'ActiveSpeaker';
const remoteVidConta... | the_stack |
import { createButtonGroup } from '../src/button-group/button-group';
import { createElement, enableRipple } from '@syncfusion/ej2-base';
import { profile , inMB, getMemoryProfile } from './common.spec';
/**
* ButtonGroup Spec document
*/
describe('ButtonGroup', () => {
beforeAll(() => {
const isDef: any... | the_stack |
import { i18nMark, withI18n } from "@lingui/react";
import { Trans, t } from "@lingui/macro";
import classNames from "classnames";
import { Form, Modal, Tooltip } from "reactjs-components";
import mixin from "reactjs-mixin";
import PropTypes from "prop-types";
import * as React from "react";
import { Icon, InfoBoxInlin... | the_stack |
import { AssetDatabase, EditorGUI, EditorGUILayout, EditorGUIUtility, EditorStyles, GenericMenu, Handles } from "UnityEditor";
import { Color, Event, EventType, FocusType, GUI, GUIContent, GUILayout, GUIUtility, KeyCode, Rect, Texture, Vector2, Vector3 } from "UnityEngine";
import { EventDispatcher } from "../../../p... | the_stack |
import 'reflect-metadata'
import { test } from '@japa/runner'
import { Ioc } from '@adonisjs/fold'
import { Kernel } from '@adonisjs/ace'
import { testingRenderer } from '@poppinss/cliui'
import { Application } from '@adonisjs/application'
import { Router } from '@adonisjs/http-server/build/src/Router'
import { PreComp... | the_stack |
import { IconCommonAdd, IconCommonStoryBlock } from '@app/assets/icons'
import {
mergeTokens,
splitToken,
tokenPosition2SplitedTokenPosition
} from '@app/components/editor/helpers/tokenManipulation'
import { useBindHovering } from '@app/hooks'
import { useBlockSuspense, useSearchBlocks } from '@app/hooks/api'
imp... | the_stack |
import { AccessLevelList } from "../shared/access-level";
import { PolicyStatement, Operator } from "../shared";
/**
* Statement provider for service [ssm](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awssystemsmanager.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/Use... | the_stack |
import { Ticker, UPDATE_PRIORITY } from '@pixi/ticker';
import sinon from 'sinon';
import { expect } from 'chai';
const { shared, system } = Ticker;
describe('Ticker', function ()
{
before(function ()
{
this.length = (ticker) =>
{
ticker = ticker || shared;
if (!ticker... | the_stack |
import {
ReactiveElement,
PropertyValues,
ReactiveControllerHost,
} from '@lit/reactive-element';
import {
IntersectionController,
IntersectionControllerConfig,
} from '../intersection_controller.js';
import {generateElementName, nextFrame} from './test-helpers.js';
import {assert} from '@esm-bundle/chai';
/... | the_stack |
import {PlatformTest, ProviderScope} from "@tsed/common";
import {Injectable} from "@tsed/di";
import {ParamTypes, PathParams, QueryParams} from "@tsed/platform-params";
import {expect} from "chai";
import Sinon from "sinon";
import {buildPlatformParams, invokePlatformParams} from "../../../../../test/helper/buildPlatf... | the_stack |
import { EventEmitter } from "@okikio/emitter";
import { Manager } from "@okikio/manager";
import { KeyframeParse, parseOffset } from "./builtin-effects";
import { ParseTransformableCSSProperties, ParseTransformableCSSKeyframes } from "./css-properties";
import { flatten, mapObject, convertToDash, isValid, omit } from ... | the_stack |
import { KVStore, formatInt, getFirstPrefix, getLastPrefix, NotFoundError } from '@liskhq/lisk-db';
import { codec } from '@liskhq/lisk-codec';
import { getAddressFromPublicKey, hash } from '@liskhq/lisk-cryptography';
import { RawBlock, StateDiff } from '../types';
import { StateStore } from '../state_store';
import ... | the_stack |
import { assert } from "chai";
import * as Plottable from "../../src";
import * as TestMethods from "../testMethods";
describe("Utils.Methods", () => {
it("inRange()", () => {
assert.isTrue(Plottable.Utils.Math.inRange(0, -1, 1), "basic functionality works");
assert.isTrue(Plottable.Utils.Math.inRange(0, 0... | the_stack |
namespace phasereditor2d.scene {
import ide = colibri.ui.ide;
import controls = colibri.ui.controls;
export const ICON_GROUP = "group";
export const ICON_TRANSLATE = "translate";
export const ICON_ANGLE = "angle";
export const ICON_SCALE = "scale";
export const ICON_ORIGIN = "origin";
... | the_stack |
import path from 'path'
import FabricTools from '../instance/fabricTools'
import FabricInstance from '../instance/fabricInstance'
import { ChaincodeApproveStepApproveOnInstanceType, ChaincodeApproveType, ChaincodeCommitStepCommitOnInstanceType, ChaincodeApproveWithoutDiscoverType, ChaincodeCommitType, ChaincodeInstallS... | the_stack |
import { ServiceType } from "@protobuf-ts/runtime-rpc";
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { IBinaryWriter } from "@protobuf-ts/runtime";
import { WireType } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
import type { IBinaryReader }... | the_stack |
import { scaleQuantize, scaleOrdinal, scaleLinear } from 'd3-scale';
import { hsl, rgb } from 'd3-color';
export const visaColors = {
pri_grey: '#5C5C5C',
sec_blue: '#003ea9',
sec_orange: '#ef8400',
sec_yellow: '#ffd700',
comp_blue: '#2bb4da',
comp_green: '#00a25e',
supp_pink: '#ae48b4',
supp_purple: '... | the_stack |
import {
GraphQLString,
GraphQLList,
GraphQLNonNull,
GraphQLInt,
GraphQLFloat,
GraphQLBoolean,
GraphQLInterfaceType,
GraphQLInputObjectType,
GraphQLObjectType,
graphql,
} from '../graphql';
import { schemaComposer, SchemaComposer } from '..';
import { InterfaceTypeComposer } from '../InterfaceTypeCo... | the_stack |
import { SelectionCharacterFormat, SelectionParagraphFormat, SelectionSectionFormat, SelectionTableFormat, SelectionCellFormat, SelectionRowFormat } from '../../src/index';
import { WParagraphFormat, WSectionFormat, WRowFormat, WCellFormat, WCharacterFormat } from '../../src/document-editor/implementation/format/index'... | the_stack |
import { ApolloServer, PubSub, makeExecutableSchema } from 'apollo-server'
import sleep from 'await-sleep'
import assert from 'assert'
import deepEq from 'deep-equal'
import fs from 'fs'
import path from 'path'
import { expectType } from 'tsd'
const id = () => null
import { DeepPartial, MaybeUndefined } from 'tsdef'
i... | the_stack |
import { ident } from "../../../Data/Function"
import { fmap } from "../../../Data/Functor"
import { consF, countWith, foldr, List, maximum, minimum, notNull } from "../../../Data/List"
import { bindF, catMaybes, elem, ensure, Just, maybe, Maybe, Nothing, sum } from "../../../Data/Maybe"
import { add, gt } from "../../... | the_stack |
import * as assert from "assert";
import * as llvm from "llvm-node";
import * as ts from "typescript";
import {CodeGenerationContext} from "../code-generation-context";
import {NameMangler, Parameter} from "../name-mangler";
import {TypePlace, TypeScriptToLLVMTypeConverter} from "../util/typescript-to-llvm-type-convert... | the_stack |
import { getFlags } from "./server";
import "@testing-library/jest-dom/extend-expect";
import * as fetchMock from "fetch-mock-jest";
import { configure, _resetConfig } from "./config";
import { GetServerSidePropsContext, GetStaticPropsContext } from "next";
import { nanoid } from "nanoid";
jest.mock("nanoid", () => {
... | the_stack |
'use strict';
import {EVCb, NluMap, NluMapItem} from "./index";
//core
import * as util from 'util';
import * as cp from 'child_process';
import * as fs from 'fs';
//npm
import chalk from 'chalk';
import async = require('async');
//project
import log from './logging';
import {determineIfReinstallIsNeeded, flattenDe... | the_stack |
import { ReflectedValue } from "./ReflectedValue";
import { ReflectedValueType } from "@as-pect/assembly/assembly/internal/ReflectedValueType";
import chalk from "chalk";
class StringifyContext {
public level: number = 0;
public impliedTypeInfo: boolean = false;
public seen: WeakSet<ReflectedValue> = new WeakSe... | the_stack |
import {
Configuration,
configurationValue,
} from "@atomist/automation-client/lib/configuration";
import { automationClientInstance } from "@atomist/automation-client/lib/globals";
import {
AutomationContextAware,
HandlerContext,
} from "@atomist/automation-client/lib/HandlerContext";
import { logger }... | the_stack |
import * as React from 'react';
import * as ReactDom from 'react-dom';
import {
Utils,
PathRegion,
Helpable,
SPARQList,
BedAnnotation,
WigAnnotation,
PackAnnotation,
PathRegionWithPrevLen
} from './Utils';
import * as d3 from 'd3';
import TubeMap from './SequenceTubeMap';
import Wrapper from './Manual';... | the_stack |
import { getClient } from "azure-devops-extension-api";
import { TeamContext } from "azure-devops-extension-api/Core";
import {
CapacityPatch,
TeamMemberCapacity,
TeamSettingsDaysOff,
TeamSettingsDaysOffPatch,
TeamSettingsIteration,
WorkRestClient,
TeamMemberCapacityIdentityRef
} f... | the_stack |
import { round, IEventListener, similar } from '../internal';
import { toolbar } from './annotations';
import Column, {
widthChanged,
labelChanged,
metaDataChanged,
dirty,
dirtyHeader,
dirtyValues,
rendererTypeChanged,
groupRendererChanged,
summaryRendererChanged,
visibilityChanged,
dirtyCaches,
}... | the_stack |
import {
JupyterFrontEnd,
JupyterFrontEndPlugin
} from '@jupyterlab/application';
import { FileEditor, IEditorTracker } from '@jupyterlab/fileeditor';
import { INotebookTracker } from '@jupyterlab/notebook';
import { LabIcon } from '@jupyterlab/ui-components';
import {
ICommandPalette,
InputDialog,
ReactWidge... | the_stack |
import { HttpClient } from '@angular/common/http';
export enum AppBridgeHandler {
HTTP,
OPEN,
OPEN_LIST,
CLOSE,
REFRESH,
PIN,
REGISTER,
UPDATE,
REQUEST_DATA,
CALLBACK,
PING
}
// record - an individual entity record
// add/fast-add - the add page for a new record
// custom - custom ac... | the_stack |
import {ATTRIBUTE_TYPE, ScalarType, SimpleOperator} from '@typedorm/common';
import {nestedKeyAccessRegex} from '../../helpers/constants';
const lastCharSpaceMatcher = /\s$/;
export enum MERGE_STRATEGY {
AND = 'AND',
OR = 'OR',
}
export abstract class BaseExpressionInput {
expression: string;
protected _names... | the_stack |
import { OnInit } from '@angular/core';
import { Component, AfterViewInit } from '@angular/core';
import { ScriptLoaderService } from '../../../../_services/script-loader.service';
import { Ajax } from '../../../../shared/ajax/ajax.service';
declare let toastr: any;
declare let $: any;
declare let swal: any;
@... | the_stack |
import { exists } from "@hpcc-js/util";
import { max as d3Max, mean as d3Mean } from "d3-array";
import { IConnection, IOptions } from "../connection";
import { ESPConnection } from "../espConnection";
/*
Response structures generated via:
* http://192.168.3.22:8010/ws_machine/GetTargetClusterInfo?respjson_
... | the_stack |
import React, {ForwardedRef, forwardRef, RefObject, useEffect, useImperativeHandle, useRef, useState} from 'react';
import {HEADER_HEIGHT, ROW_HEIGHT} from '../constants';
import {useGridEventBus} from '../grid-event-bus';
import {GridEventTypes} from '../grid-event-bus-types';
import {ColumnDefs, DataSetState, Selecti... | the_stack |
import { NumberArray } from '../types'
import { v3new, v3cross } from './vector-utils'
export class Matrix {
size: number
data: Float32Array
constructor (readonly cols: number, readonly rows: number) {
this.size = this.cols * this.rows
this.data = new Float32Array(this.size)
}
copyTo (matrix: Matri... | the_stack |
import { Box, createStyles, Link as KMLink, Theme, WithStyles } from "@material-ui/core";
import { grey } from "@material-ui/core/colors";
import withStyles from "@material-ui/core/styles/withStyles";
import { deleteApplicationAction } from "actions/application";
import { setErrorNotificationAction, setSuccessNotificat... | the_stack |
declare module 'planout' {
export interface Inputs {
[key: string]: string;
}
export type ParamValue = string | number | boolean | null | undefined;
export type Params = {
[key: string]: ParamValue;
};
export interface PlanoutEvent {
event: string;
name: string;
salt: string;
inpu... | the_stack |
import { spawn } from 'child_process';
import { dirname } from 'path';
import qs from 'querystring';
import { BrowserWindow, dialog, shell, webContents } from 'electron';
import { stat } from 'fs-extra';
import semver from 'semver';
import { Injectable, Autowired, INJECTOR_TOKEN, Injector } from '@opensumi/di';
impor... | the_stack |
namespace shaka {
namespace polyfill {
function installAll(): void;
function register(polyfill: () => void, priority?: number): void;
class polyfill_install {
static install(): void;
}
class Fullscreen extends polyfill_install {}
class IndexedDB extends ... | the_stack |
import { createFetchFn, FetchFn } from '@stacks/network';
import * as bitcoin from 'bitcoinjs-lib';
import blockstack from 'blockstack';
import { BlockstackNetwork } from 'blockstack/lib/network';
import { CLI_CONFIG_TYPE } from './argparse';
export interface CLI_NETWORK_OPTS {
consensusHash: string | null;
feeRat... | the_stack |
namespace AMDLoader {
export interface AnnotatedLoadingError extends Error {
phase: 'loading';
moduleId: string;
neededBy: string[];
}
export interface AnnotatedFactoryError extends Error {
phase: 'factory';
moduleId: string;
neededBy: string[];
}
export interface AnnotatedValidationError extends Er... | the_stack |
import React from "react";
import Observer from "react-intersection-observer";
import { unionize, ofType, UnionOf } from "unionize";
/**
* Valid props for LazyImage components
*/
export type CommonLazyImageProps = ImageProps & {
// NOTE: if you add props here, remember to destructure them out of being
// passed ... | the_stack |
'use strict';
import Axios from 'axios';
import * as vscode from 'vscode';
import * as chai from 'chai';
import * as sinon from 'sinon';
import * as sinonChai from 'sinon-chai';
import { TestUtil } from '../TestUtil';
import { VSCodeBlockchainOutputAdapter } from '../../extension/logging/VSCodeBlockchainOutputAdapter';... | the_stack |
import Component from '../component';
import Util from '../util.js';
interface IProps {
element: HTMLElement|string; // the element must exist
name?: null;
selectable?: boolean;
filterItems?: () => boolean;
multiple?: boolean;
tag?: boolean;
}
interface ISelectboxItem {
text: string;
value: string;
... | the_stack |
module TDev { export module RT {
//? A board to build 2D games
//@ icon("gameboard") ctx(general,gckey,enumerable)
export class Board
extends RTValue
{
private _landscape: boolean;
public _width:number;
public _height:number;
public _full: boolean;
public ... | the_stack |
import htmlKeyboardResponse from "@jspsych/plugin-html-keyboard-response";
import { pressKey, startTimeline } from "@jspsych/test-utils";
import { initJsPsych } from "../../src";
describe("loop function", () => {
test("repeats a timeline when returns true", async () => {
let count = 0;
const trial = {
... | the_stack |
import { loader_mgr } from "../loader/loader_mgr";
import { gen_handler } from "../util";
type DB_EVENT_HANDLER = (event:dragonBones.EventObject, state:dragonBones.AnimationState) => void;
const EVENT_DB_ASSET_LOADED = "EVENT_DB_ASSET_LOADED";
const BasePathForSke = (path:string) => {
return `dragonbones/${p... | the_stack |
import { Ref, ref, computed } from '@vue/composition-api';
import { ScheduledElement } from '@/models';
import { addEventListeners } from '@/lib/events';
import { Keys, Disposer, Mouse } from '@/lib/std';
import { calculateSimpleSnap, slice, doSnap } from '@/utils';
import { SchedulablePrototype } from '@/models/schedu... | the_stack |
import shortid from 'shortid';
import AlarmEvents from './AlarmEvents';
import {
checkIfProtected,
showNumberOfCookiesInIcon,
} from './BrowserActionService';
import {
CADCOOKIENAME,
cadLog,
createPartialTabInfo,
extractMainDomain,
getAllCookiesForDomain,
getHostname,
getSetting,
isAWebpage,
isFir... | the_stack |
import * as vscode from "vscode";
import { executeCommand, ExpectedDocument, groupTestsByParentName } from "../utils";
suite("./test/suite/commands/seek.md", function () {
// Set up document.
let document: vscode.TextDocument,
editor: vscode.TextEditor;
this.beforeAll(async () => {
document = await v... | the_stack |
import * as path from 'path'
import { Octokit } from 'probot'
import { Maybe } from './data/maybe'
import { Dict, mapEntriesAsync } from './data/dict'
import { not, withDefault } from './utils'
/**
* Loads a file from Github.
*
* @param octokit
* @param path
*/
export async function getFile(
octokit: Octokit,
... | the_stack |
type PrimitiveTime = string | number;
type PrimitiveTicks = number;
declare module 'tone' {
var context: Context;
class Tone {
constructor(inputs?: number, outputs?: number);
context: Context;
toFrequency(freq: any): number;
toSeconds(time?: _TimeArg): number;
toTicks(time: _TimeArg): number;
... | the_stack |
import Dimensions = Utils.Measurements.Dimensions;
import DisplayObject = etch.drawing.DisplayObject;
import Size = minerva.Size;
import {IApp} from '../IApp';
import Point = minerva.Point;
declare var App: IApp;
export class CreateNew extends DisplayObject{
private _RollOvers: boolean[] = [];
public BlockCo... | the_stack |
import React from 'react';
import { Components } from '../lib/vulcan-lib/components';
import { Posts } from '../lib/collections/posts/collection';
import { postGetPageUrl, postGetAuthorName } from '../lib/collections/posts/helpers';
import { Comments } from '../lib/collections/comments/collection';
import { Localgroups... | the_stack |
import {descriptor2typestr} from './util';
import ByteStream from './ByteStream';
import {ConstantPool, ClassReference, ConstUTF8, IConstantPoolItem, MethodHandle, NameAndTypeInfo} from './ConstantPool';
import {StackMapTableEntryType, ConstantPoolItemType} from './enums';
import assert from './assert';
import global f... | the_stack |
import {action, observable} from "mobx";
import {provideSingleton} from "../../common/utils/IOC";
import Pagination from "../../common/model/Pagination";
import {asyncAction} from "mobx-utils";
import {
addClusterAlarmUser,
addClusterSubmit,
checkClusterNameExist,
createZnode,
deleteAlarmUser,
... | the_stack |
import * as amf from 'amf-client-js';
/** Custom BaseUnit subclass which implements utility methods. */
export abstract class WebApiBaseUnit extends amf.model.document.BaseUnit {
/** Gets declaration by name.
*
* @param name String name of declaration to look for.
* @return Found declaration as NodeShape.
... | the_stack |
var exports = {},
_dewExec = false;
var module = {
exports: exports
};
var _global = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
export function dew() {
if (_dewExec) return module.exports;
_dewExec = true;
/**
* @license
* Lodash <https://lodash.co... | the_stack |
import {Component, Output, EventEmitter, Inject, ElementRef} from "@angular/core";
import {REACT_NATIVE_WRAPPER} from "../../renderer/renderer";
import {Node} from "../../renderer/node";
import {ReactNativeWrapper, isAndroid} from "../../wrapper/wrapper";
import {HighLevelComponent, GENERIC_INPUTS, GENERIC_BINDINGS} fr... | the_stack |
import * as http from 'http';
import { parse as parseQueryString } from 'querystring';
import { parse as parseUrl } from 'url';
import { Socket } from 'net';
import { AsyncCreatable, set, toNumber, Env } from '@salesforce/kit';
import { Nullable, get, asString } from '@salesforce/ts-types';
import { OAuth2Options } fr... | the_stack |
/// <reference path="./definitions/Q.d.ts" />
import Q = require('q');
import ctxm = require('./context');
import fs = require('fs');
var shell = require('shelljs');
var path = require('path');
var archiver = require('archiver');
export interface GetOrCreateResult<T> {
created: boolean;
result: T;
}
//conve... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.