text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import * as React from 'react'; import classNames from 'classnames'; import { connect, AppState, CodeSpace, RedrawMode, } from '../../appState'; import CodeSpaceStateViewer from '../CodeSpaceStateViewer'; import PathTrack from './PathTrack'; import { CellLine, Cursor } from '.'; import * as styles from...
the_stack
๏ปฟ//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormConversation_Form { interface tab_Details_Sections { Details: DevKit.Controls.Section; Details_section_4: DevKit.Controls.Section; Details_skills_5: DevKit.Controls.Section; tab_2_section_3: DevKit.Controls.Section;...
the_stack
import { Nullable } from "../../../shared/types"; import * as React from "react"; import { Classes, ButtonGroup, Button, NonIdealState, Tabs, TabId, Tab } from "@blueprintjs/core"; import GoldenLayout from "golden-layout"; import { Animation, IAnimatable, Node, Observer, Scene, SubMesh } from "babylonjs"; import { ...
the_stack
import { HasProposedValue, ProposedOrPrevious, ProposedValueOf } from "../../src/chrono/Effect.js" import { ChronoGraph } from "../../src/chrono/Graph.js" import { CalculatedValueGen, CalculatedValueSync } from "../../src/chrono/Identifier.js" import { Revision } from "../../src/chrono/Revision.js" import { Transaction...
the_stack
import { call, fork, put, takeEvery } from 'redux-saga/effects'; import { ClientType } from '@colony/colony-js'; import { Action, ActionTypes } from '~redux/index'; import { putError, takeFrom, routeRedirect } from '~utils/saga/effects'; import { ProcessedColonyDocument, ProcessedColonyQuery, ProcessedColonyQuer...
the_stack
Copyright (C) 1992 Clarendon Hill Software. Permission is granted to any individual or institution to use, copy, or redistribute this software, provided this copyright notice is retained. This software is provided "as is" without any expressed or implied warranty. If this software brings on any sort of damage -- ph...
the_stack
import { API, APIEvent, HAP, Logging, PlatformAccessory } from "homebridge"; import { PLATFORM_NAME, PLUGIN_NAME, PROTECT_NVR_UNIFIOS_REFRESH_INTERVAL } from "./settings"; import { ProtectApi, ProtectCameraConfig, ProtectLightConfig, ProtectSensorConfig, ProtectViewerConfig } from "unifi-prote...
the_stack
import {Component, OnInit} from '@angular/core'; import {DashboardCard} from '../cards/dashboard-card'; import {Observable} from 'rxjs/Observable'; import {DashboardCardsService} from '../services/dashboard-cards/dashboard-cards.service'; import {ObservableMedia} from '@angular/flex-layout'; import 'rxjs/add/operator/m...
the_stack
import { FormArray as NativeFormArray } from '@angular/forms'; import { Observable } from 'rxjs'; import { ControlType, Status, ValidatorFn, AsyncValidatorFn, ValidatorsModel, ValidationErrors, AbstractControlOptions, StringKeys, ExtractModelValue, FormControlState, } from './types'; export class...
the_stack
import { Component, Event, EventEmitter, Prop, State, Watch } from '@stencil/core'; import { Column } from './grid-helpers'; import { renderRow, RowOptions, RowSelectionPattern } from './row'; import { renderHeaderCell, Sort } from './header-cell'; @Component({ tag: 'sui-grid-new', styleUrl: './grid.css' }) export...
the_stack
import { createMutator, runQuery, setOnGraphQLError } from '../server/vulcan-lib'; import Users from '../lib/collections/users/collection'; import { Posts } from '../lib/collections/posts' import { Comments } from '../lib/collections/comments' import Conversations from '../lib/collections/conversations/collection'; imp...
the_stack
import { formatQuery } from '..'; // If modulators have to be wrapped, they should be indented with two additional spaces, but consecutive steps should // not be indented with two additional spaces. Check that as-steps are indented as modulators. test('Wrapped modulators should be indented with two spaces', () => { ...
the_stack
import Table from '../classes/Table' import Entity, { EntityConstructor} from '../classes/Entity' import { DocumentClient } from './bootstrap-tests' describe('Entity creation', ()=> { it('creates basic entity w/ defaults', async () => { // Create entity const TestEntity = new Entity({ name: 'TestEnt...
the_stack
import * as crypto from "crypto"; import * as fs from "fs-plus"; import * as getmac from "getmac"; import { Guid } from "guid-typescript"; import * as _ from "lodash"; import * as opn from "opn"; import * as os from "os"; import * as path from "path"; import * as vscode from "vscode"; import * as WinReg from "...
the_stack
import BaseStore from "#SRC/js/stores/BaseStore"; import { REQUEST_ACL_GROUP_SUCCESS, REQUEST_ACL_GROUP_ERROR, REQUEST_ACL_GROUP_PERMISSIONS_SUCCESS, REQUEST_ACL_GROUP_PERMISSIONS_ERROR, REQUEST_ACL_GROUP_SERVICE_ACCOUNTS_SUCCESS, REQUEST_ACL_GROUP_SERVICE_ACCOUNTS_ERROR, REQUEST_ACL_GROUP_USERS_SUCCESS,...
the_stack
import * as React from "react"; import { ContextMenu, ContextMenuDirection, ContextMenuItem, ContextMenuItemProps, ContextSubMenu, GlobalContextMenu, Icon, Popup, PopupContextMenu, useRefState } from "@itwin/core-react"; import { RelativePosition } from "@itwin/appui-abstract"; import { Popover } from "@itwin/itwinui-r...
the_stack
import { ServiceClient } from "@azure/core-client"; import { expect } from "chai"; import { env, isPlaybackMode, Recorder } from "../src"; import { isRecordMode, RecorderError, TestMode } from "../src/utils/utils"; import { getTestServerUrl, makeRequestAndVerifyResponse, setTestMode } from "./utils/utils"; // These te...
the_stack
import { Animated } from "react-native"; import { IAnimationProvider } from "../Types/IAnimationProvider"; import { runTiming } from "./Implementation/runTiming"; import { createValue } from "./Implementation/createValue"; import { IAnimationNode, IAnimationValue } from "../Types"; import { getProcessedColor } from "./...
the_stack
import { Design } from '../../src/nodes/design' import { ok, strictEqual } from 'assert' describe('Design', () => { function createOctopus() { const width = Math.round(Math.random() * 400) const height = Math.round(Math.random() * 400) return { 'frame': { 'x': Math.round(Math.random() * 4...
the_stack
import { Component, OnInit, OnDestroy } from '@angular/core'; import { environment } from './../../../../../../../environments/environment'; import { Router } from '@angular/router'; import { Subscription } from 'rxjs/Subscription'; import { UtilsService } from '../../../../../../shared/services/utils.service'; import ...
the_stack
import React from "react" import Paper from "@material-ui/core/Paper"; import { useHistory, Link } from "react-router-dom" import firebase from "firebase" import { Grid, AppBar, Toolbar, Checkbox, FormControlLabel } from "@material-ui/core"; import { List, ListItem, ListItemText, ListItemIcon, Button } from "@mate...
the_stack
import { LemmingsSprite } from '../resources/lemmings-sprite'; import { TriggerTypes } from '../resources/lemmings/trigger-types'; import { Level } from '../resources/level'; import { MaskProvider } from '../resources/mask-provider'; import { ParticleTable } from '../resources/particle-table'; import { LogHandler } fro...
the_stack
import { MarshallerProvider } from "../../MarshallerProvider"; import { JavaArrayList, JavaBigDecimal, JavaBigInteger, JavaBoolean, JavaByte, JavaDate, JavaDouble, JavaFloat, JavaHashMap, JavaHashSet, JavaInteger, JavaLong, JavaOptional, JavaShort, JavaString } from "../../../java-wrappers...
the_stack
import * as d3 from 'd3'; import * as Plottable from 'plottable'; import * as _ from 'lodash'; import {PointerInteraction} from '../vz_chart_helpers/plottable-interactions'; import * as vz_chart_helpers from '../vz_chart_helpers/vz-chart-helpers'; import { SymbolFn, XComponents, TooltipColumn, } from '../vz_char...
the_stack
import { Server, Client, NodeClientOptions, ServerSocketStatus, ClientSocketStatus } from '../dist/index'; import * as test from 'tape'; import { create } from '../dist/lib/Util/Header'; import { get, createServer } from 'http'; import { serialize } from 'binarytf'; import { URL } from 'url'; import { readFileSync } fr...
the_stack
import { addRule, removeRule, rule, updateRule, } from '@/services/ant-design-pro/api'; import { PlusOutlined } from '@ant-design/icons'; import type { ProDescriptionsItemProps } from '@ant-design/pro-descriptions'; import ProDescriptions from '@ant-design/pro-descriptions'; import { ModalForm, ProFormText, Pro...
the_stack
import { Writable } from 'stream'; export = xmlbuilder; /** * Type definitions for [xmlbuilder](https://github.com/oozcitak/xmlbuilder-js) * * Original definitions on [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) by: * - Wallymathieu <https://github.com/wallymathieu> * - GaikwadPrati...
the_stack
import moment from 'moment'; import * as _ from 'underscore'; import { combineIndexWithDefaultViewIndex, ensureIndex } from '../../collectionUtils'; import { forumTypeSetting } from '../../instanceSettings'; import { hideUnreviewedAuthorCommentsSettings } from '../../publicSettings'; import { ReviewYear } from '../../r...
the_stack
import type Printer from "../printer"; import type * as t from "@babel/types"; export function TSTypeAnnotation(this: Printer, node: t.TSTypeAnnotation) { this.token(":"); this.space(); // @ts-expect-error todo(flow->ts) can this be removed? `.optional` looks to be not existing property if (node.optional) this...
the_stack
import * as tf from '@tensorflow/tfjs-core'; import {InferenceModel, io, ModelPredictConfig, NamedTensorMap, Tensor} from '@tensorflow/tfjs-core'; import * as tensorflow from '../data/compiled_api'; import {NamedTensorsMap, TensorInfo} from '../data/types'; import {getRegisteredOp, registerOp} from '../operations/cust...
the_stack
import { prop,propObject,propArray,required,maxLength,range } from "@rxweb/reactive-form-validators" import { gridColumn } from "@rxweb/grid" export class SpecItemBase { //#region specItemId Prop @prop() specItemId : number; //#endregion specItemId Prop //#region specificationDetailId Prop ...
the_stack
import React, { useEffect, useMemo, useState, useRef } from 'react'; import { useSelector } from 'react-redux'; import { Customizer, ICustomizations, ChoiceGroup, IChoiceGroupOption, PrimaryButton, DetailsList, IColumn, TextField, Dropdown, SelectionMode, DetailsListLayoutMode, FontIcon, CheckboxVisibility,...
the_stack
import { ColorHSV, ColorRGBA64, hsvToRGB, parseColor, rgbToHSV, } from "@microsoft/fast-colors"; import { attr, DOM, observable } from "@microsoft/fast-element"; import { isNullOrWhiteSpace } from "@microsoft/fast-web-utilities"; import { FormAssociatedColorPicker } from "./color-picker.form-associa...
the_stack
import { Fragment, useCallback, useEffect, useMemo } from "react" import { useTranslation } from "react-i18next" import { useFieldArray, useForm } from "react-hook-form" import AddIcon from "@mui/icons-material/Add" import RemoveIcon from "@mui/icons-material/Remove" import { AccAddress, Coins, MsgSubmitProposal } from...
the_stack
import { BaseRegExpVisitor } from "regexp-to-ast" import { IRegExpExec, Lexer, LexerDefinitionErrorType } from "./lexer_public" import { compact, contains, defaults, difference, filter, find, first, flatten, forEach, has, indexOf, isArray, isEmpty, isFunction, isRegExp, isString, isUnd...
the_stack
import * as Tp from "thingpedia"; import * as fs from "fs"; import xmlbuilder from "xmlbuilder"; import * as http from "http"; import * as https from "https"; import WebSocket from "ws"; import { AudioInputStream, ResultReason, AudioConfig, SpeechConfig, SpeechRecognizer, } from "microsoft-cognitive...
the_stack
import { fakeAsync, inject, TestBed, tick } from '@angular/core/testing'; import { MockExpiry } from '../testing/mockexpiry'; import { MockInterruptSource } from '../testing/mockinterruptsource'; import { MockKeepaliveSvc } from '../testing/mockkeepalivesvc'; import { AutoResume, Idle } from './idle'; import { LocalS...
the_stack
import { getAlignmentAsPoint, isNotNullish, mod } from '../Utils'; import mxClient from '../../mxClient'; import { ABSOLUTE_LINE_HEIGHT, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, DEFAULT_FONTFAMILY, DEFAULT_FONTSIZE, DIRECTION_EAST, DIRECTION_NORTH, DIRECTION_...
the_stack
// Models import { Tab } from "../model/tab"; import { WidgetGroup } from "../model/widget_group"; import { Widget } from "../model/widget"; import { WidgetInstance } from "../model/widget_instance"; import { currentWorkspace } from "../model/workspace"; // Super classes import { Names } from "./names"; import { Trigg...
the_stack
import { invariant, InvariantError } from '../../utilities/globals'; import { InlineFragmentNode, FragmentDefinitionNode, SelectionSetNode, FieldNode, } from 'graphql'; import { FragmentMap, storeKeyNameFromField, StoreValue, StoreObject, argumentsObjectFromField, Reference, isReference, getSt...
the_stack
export class Bytes extends ByteArray { } /** An Ethereum address (20 bytes). */ export class Address extends Bytes { static fromString(s: string): Address { return typeConversion.stringToH160(s) as Address } } // Sequence of 20 `u8`s. // export type Address = Uint8Array; // Sequence of 32 `u8`s. export type ...
the_stack
import { Match, Route, RouteHooks, QContext, NavigateOptions, ResolveOptions, GenerateOptions, Handler, RouterOptions, } from "../index"; import NavigoRouter from "../index"; import { pushStateAvailable, matchRoute, parseQuery, extractGETParameters, isFunction, isString, clean, parseNa...
the_stack
import { observable, action, toJS, computed } from "mobx"; import moment from "moment"; import ILanguage from "../interface/ILanguage"; import ICategory from "../interface/ICategory"; import GroupType from "../enum/GroupType"; import SearchType from "../enum/SearchType"; import OrderBy from "../enum/OrderBy"; import { ...
the_stack
import {IsReferencedOptions} from "./is-referenced-options"; import {ReferenceVisitorOptions} from "./reference-visitor-options"; import {checkClassDeclaration} from "./visitor/check-class-declaration"; import {checkIdentifier} from "./visitor/check-identifier"; import {checkClassExpression} from "./visitor/check-class...
the_stack
import { computed, defineComponent, nextTick, onBeforeUnmount, onMounted, ref, Transition, watch } from 'vue'; import { CloseIcon, InfoCircleFilledIcon, CheckCircleFilledIcon, ErrorCircleFilledIcon } from 'tdesign-icons-vue-next'; import TButton from '../button'; import { DialogCloseContext, TdDialogProps } from './typ...
the_stack
import { ethers, network } from 'hardhat'; import { BigNumber, Signer } from 'ethers'; import { expect } from 'chai'; import { EthereumFeeProxy, BatchPayments } from '../../src/types'; import { batchPaymentsArtifact } from '../../src/lib'; import { ethereumFeeProxyArtifact } from '../../src/lib'; import { HttpNetworkC...
the_stack
import { redirect, SubPath } from '../../utils/routeUtils'; import Router from '../../utils/Router'; import { Env, RouteType } from '../../utils/types'; import { AppContext } from '../../utils/types'; import { bodyFields } from '../../utils/requestUtils'; import globalConfig from '../../config'; import { ErrorBadReques...
the_stack
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types"; /** * <p>Represents the input of a <code>DescribeStream</code> operation.</p> */ export interface DescribeStreamInput { /** * <p>The Amazon Resource Name (ARN) for the stream.</p> */ StreamArn: string ...
the_stack
import {expect} from '@loopback/testlab'; import { Entity, HasManyDefinition, model, ModelDefinition, property, RelationType, } from '../../../..'; import { createTargetConstraintFromThrough, createThroughConstraintFromSource, createThroughConstraintFromTarget, getTargetIdsFromTargetModels, getTar...
the_stack
export default [ { firstName: 'Brooke', lastName: 'Heeran', email: 'bheeran0@altervista.org', gender: 'Female', status: 'Failed', // _expanded: { // schema: [ // { name: 'firstName', displayName: 'First Name', width: 200 }, // { name: 'lastName', displayName: 'L...
the_stack
import { Calculate, FormulaError, CalcSheetFamilyItem } from './index'; import { CommonErrors, FailureEventArgs, FormulasErrorsStrings, isExternalFileLink } from '../common/index'; import { isNullOrUndefined } from '@syncfusion/ej2-base'; export class Parser { private parent: Calculate; constructor(parent?: Cal...
the_stack
import { Token } from '@aws-cdk/core'; import { StandardAttributeNames } from './private/attr-names'; /** * The set of standard attributes that can be marked as required or mutable. * * @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#cognito-user-pools-standard-attr...
the_stack
'use strict'; import * as assert from 'assert'; import { WhitespaceComputer } from 'vs/editor/common/viewLayout/whitespaceComputer'; suite('Editor ViewLayout - WhitespaceComputer', () => { test('WhitespaceComputer', () => { var whitespaceComputer = new WhitespaceComputer(); // Insert a whitespace after line n...
the_stack
import { PuppetBridge } from "./puppetbridge"; import { RetDataFn, IRetData, IRemoteRoom, IPuppetData } from "./interfaces"; import { Provisioner } from "./provisioner"; import { PuppetType, PUPPET_TYPES } from "./db/puppetstore"; import { Log } from "./log"; import { TimedCache } from "./structures/timedcache"; import...
the_stack
import { promises as dns } from 'dns'; import * as path from 'path'; import { parse as urlParse, URL } from 'url'; import Cdp from '../cdp/api'; import { AnyChromiumConfiguration } from '../configuration'; import { BrowserTargetType } from '../targets/browser/browserTargets'; import { MapUsingProjection } from './datas...
the_stack
import * as Q from 'q'; import { Timezone, day } from 'chronoshift'; import { $, Executor, basicExecutorFactory, find, Attributes, Dataset, TimeRange } from 'plywood'; import { Logger } from 'logger-tracker'; import { TimeMonitor } from "../../../common/utils/time-monitor/time-monitor"; import { AppSettings, Timekeeper...
the_stack
import React from 'react'; import { MatrixEvent } from "matrix-js-sdk/src/models/event"; import { _t } from '../../../languageHandler'; import { ensureDMExists } from "../../../createRoom"; import { IDialogProps } from "./IDialogProps"; import { MatrixClientPeg } from "../../../MatrixClientPeg"; import SdkConfig from ...
the_stack
import assert from 'assert'; import * as ThingTalk from 'thingtalk'; import { Ast, Type } from 'thingtalk'; import { Temporal } from '@js-temporal/polyfill'; import * as SentenceGeneratorRuntime from '../sentence-generator/runtime'; import * as SentenceGeneratorTypes from '../sentence-generator/types'; export type Age...
the_stack
import { IExecuteFunctions, } from 'n8n-core'; import { IDataObject, INodeExecutionData, INodeType, INodeTypeDescription, } from 'n8n-workflow'; import { vonageApiRequest, } from './GenericFunctions'; export class Vonage implements INodeType { description: INodeTypeDescription = { displayName: 'Vonage', n...
the_stack
import * as React from 'react'; import {APLRendererWindow, APLRendererWindowState, WebsocketConnectionWrapper} from './components/APLRendererWindow'; import {SampleHome} from './components/SampleHome'; import {NavigationEvent} from './lib/messages/NavigationEvent'; import {Client, IClient, IClientConfig} from './lib/m...
the_stack
import * as TKUnit from '../../tk-unit'; import * as helper from '../../ui-helper'; import { Application, Label, Page, StackLayout, WrapLayout, LayoutBase, View, KeyedTemplate, GestureTypes, Repeater, ObservableArray } from '@nativescript/core'; var FEW_ITEMS = [0, 1, 2]; var MANY_ITEMS = []; for (var i = 0; i < 100; ...
the_stack
import React, { ReactNode } from 'react'; import PropTypes from 'prop-types'; import cls from 'classnames'; import { isEqual, noop } from 'lodash'; import { strings, cssClasses } from '@douyinfe/semi-foundation/autoComplete/constants'; import AutoCompleteFoundation, { AutoCompleteAdapter, StateOptionItem, DataItem } f...
the_stack
import type { colorCallback, colorObject } from '../interfaces'; export class Console { static log(...message: unknown[]): void { // eslint-disable-next-line no-console console.log(...message); } static error(...message: unknown[]): void { // eslint-disable-next-line no-console console.error(...m...
the_stack
import { FieldNode, DocumentNode, FragmentDefinitionNode } from 'graphql'; import { CombinedError } from '@urql/core'; import { getSelectionSet, getName, SelectionSet, getFragmentTypeName, getFieldAlias, getFragments, getMainOperation, normalizeVariables, getFieldArguments, } from '../ast'; import {...
the_stack
import { Command, command, param, option, Options } from "clime"; import { lstatSync } from "fs"; import { ModuleHierarchyVerifier } from "../lib/moduleHierarchyVerifier"; import { ModuleVerifier } from "../lib/moduleVerifier"; import * as inquirer from "inquirer"; import * as path from "path"; import { basename } from...
the_stack
import { UnreachableCode } from '../../resources/not_reached'; import { callOverlayHandler } from '../../resources/overlay_plugin_api'; import { OopsyMistake } from '../../types/oopsy'; import { DeathReport } from './death_report'; import { MistakeObserver, ViewEvent } from './mistake_observer'; import { GetForm...
the_stack
import { expect } from '@instructure/ui-test-utils' import { hash } from '../hash' describe('hash', () => { it('should error if supplied value is undefined', () => { let error = false try { expect(hash(undefined)).to.equal('') } catch (err: any) { error = true } expect(error).to.be....
the_stack
import type { MouseEvent as ReactMouseEvent, ReactNode } from 'react'; import { useCallback } from 'react'; import { Box } from 'reakit/Box'; import { Button } from 'reakit/Button'; import { Group } from 'reakit/Group'; import { Toolbar as ReakitToolbar, ToolbarItem as ReakitToolbarItem, ToolbarSeparator as Reaki...
the_stack
import GraphLayout from './GraphLayout'; import Rectangle from '../../geometry/Rectangle'; import { getNumber, getValue } from '../../../util/Utils'; import { DEFAULT_STARTSIZE } from '../../../util/Constants'; import { Graph } from '../../Graph'; import Cell from '../../cell/datatypes/Cell'; import Geometry from '../....
the_stack
import Alert from '@Bootstrap/Alert'; import Breadcrumb from '@Bootstrap/Breadcrumb'; import Button from '@Bootstrap/Button'; import ButtonGroup from '@Bootstrap/ButtonGroup'; import Layout from '@Components/Shared/Layout'; import PVPreviewKnockout from '@Components/Shared/Partials/Song/PVPreviewKnockout'; import...
the_stack
import { memoizeOne } from '@bigcommerce/memoize'; import { omit, values } from 'lodash'; import { Address } from '../address'; import { BillingAddress } from '../billing'; import { Cart } from '../cart'; import { createSelector } from '../common/selector'; import { cloneResult as clone } from '../common/utility'; imp...
the_stack
import expressions = require('../src/expression'); import test_utils = require('./test_utils'); import firebase_io = require('./firebase_io'); import compiler = require('../src/compiler'); import async = require('async'); export function testString(test:nodeunit.Test):void{ async.series([ firebase_io.as...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement, Operator } from "../shared"; /** * Statement provider for service [codestar-connections](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awscodestarconnections.html). * * @param sid [SID](https://docs.aws.ama...
the_stack
import { execSync, spawn } from "node:child_process"; import { existsSync, lstatSync, readFileSync, writeFileSync } from "node:fs"; import { readdir, readFile, stat } from "node:fs/promises"; import { tmpdir } from "node:os"; import { dirname, join, sep } from "node:path"; import { cwd } from "node:process"; import { U...
the_stack
namespace data { export interface CallNode { id: string; name: string; callsite: string; source: string; start: number; // time finish: number; // time startMetrics: Map<number>; finishMetrics: Map<number>; isFinished: boolean; // have we se...
the_stack
import extend from "@yomguithereal/helpers/extend"; import { PlainObject } from "../types"; // TODO: should not ask the quadtree when the camera has the whole graph in // sight. // TODO: a square can be represented as topleft + width, saying for the quad blocks (reduce mem) // TODO: jsdoc // TODO: be sure we can ha...
the_stack
๏ปฟnamespace EntitySignal { enum EntityState { Detached = 0, Unchanged = 1, Deleted = 2, Modified = 3, Added = 4 }; interface DataContainer<T> { type: string; id: string; object: T; state: EntityState; } interface UserResult { connectionId: string; urls: UserUrlResu...
the_stack
import webpack from 'webpack'; import WebpackBuildNotifierPlugin from '../src/index'; import getWebpackConfig from './webpack.config'; import notifier from 'node-notifier'; import child_process from 'child_process'; import os from 'os'; import { CompilationStatus } from '../src/types'; // TODO: test for registerSnoreT...
the_stack
enum Status { OK, Pending, Stale, } /** * Type for the closure's value equality predicate. * * @typeParam T - Type of the values being compared for * equality. * * @remarks * Conceptually this function should be equivalent * to: `lhs === rhs` * * @param lhs - left hand side value * @par...
the_stack
import { Inject, Injectable } from '@nestjs/common'; import { NETDISK_COPY_SUFFIX, NETDISK_DELIMITER, NETDISK_HANDLE_MAX_ITEM, NETDISK_LIMIT, QINIU_CONFIG, } from '../../admin.constants'; import { IQiniuConfig } from '../../admin.interface'; import * as qiniu from 'qiniu'; import { rs, conf, auth } from 'qini...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/commitmentAssociationsMappers"; import * as Parameters from "../models/parameters"; import { AzureMLCommitmentPlansManagementClientContext } from "../azureMLCommitmentPlansManagementClientContext"; /**...
the_stack
/// <reference types="winjs" /> /// <reference types="winrt" /> declare namespace Microsoft.Live { //#region REST Object Information /** * Sub object of REST objects that contains information about a user. */ interface IUserInfo { /** * The name of the user. */ ...
the_stack
import chalk from "chalk" import { existsSync } from "fs" import path, { basename, relative } from "path" import { performance } from "perf_hooks" import Shellwords from "shellwords-ts" import { ChangeType, needsBuild } from "./build" import { CommandFormatter } from "./formatter" import { defaults, RunnerOptions } fro...
the_stack
import * as PropTypes from "prop-types"; import * as React from "react"; import { functor, identity } from "./utils"; import { ICanvasContexts } from "./CanvasContainer"; const aliases = { mouseleave: "mousemove", // to draw interactive after mouse exit panend: "pan", pinchzoom: "pan", mousedown: "mous...
the_stack
import {BigAmount, CreateAmount} from '@emeraldpay/bigamount'; import { amountDecoder, amountFactory, BalanceUtxo, BlockchainCode, blockchainCodeToId, blockchainIdToCode, CurrencyAmount, isBitcoin, isEthereum } from '@emeraldwallet/core'; import {registry} from '@emeraldwallet/erc20'; import {createSele...
the_stack
import * as React from 'react'; // Custom styles import styles from './RecentFilesTab.module.scss'; // Office Fabric import { PrimaryButton, DefaultButton } from 'office-ui-fabric-react/lib/components/Button'; import { Spinner } from 'office-ui-fabric-react/lib/Spinner'; import { FocusZone } from 'office-ui-fabric-re...
the_stack
import axios, { AxiosError } from "axios"; import type { AxiosResponse, ResponseType, Method } from "axios"; import { uploadFile, uploadLargeFile, uploadDirectory, uploadDirectoryRequest, uploadSmallFile, uploadSmallFileRequest, uploadLargeFileRequest, } from "./upload"; import { downloadFile, downlo...
the_stack
import Big, { BigSource } from "big.js" import { api, BncClient } from ".." import * as crypto from "../../crypto" import { Coin, AminoPrefix, IssueMiniTokenMsg, IssueTinyTokenMsg, SetTokenUriMsg, } from "../../types" import HttpRequest from "../../utils/request" import { validateSymbol, checkCoins } from "....
the_stack
import './index.less'; import browser from './../../../browser'; // import { ActionSheet, ActionSheetOpts, } from '../../component/action-sheet/index'; import { Progress, ProcessOnChangeData } from './../../component/progress'; import { Loading } from './../../component/loading/index'; import { Panel, PanelOpts, } from...
the_stack
import { Fragment, useRef, useState } from "react"; import { useSnackbar } from "notistack"; import Navigation from "components/Navigation"; import { useTheme, Container, Stack, Grid, Table, TableHead, TableRow, TableBody, TableCell, Typography, Button, IconButton, Fab, Chip, Paper, Men...
the_stack
/// <reference path="../metricsPlugin.ts"/> module HawkularMetrics { class WebTabType { public static ACTIVE_SESSIONS = new WebTabType('Aggregated Active Web Sessions', 'Active Sessions', '#49a547'); public static EXPIRED_SESSIONS = new WebTabType('Aggregated Expired Web Sessions', 'Expired Sessions', '#f5...
the_stack
import Transaction from '../src/main' import * as mongoose from 'mongoose' const options: any = { useCreateIndex: true, useFindAndModify: false, useNewUrlParser: true, useUnifiedTopology: true } // @ts-ignore mongoose.Promise = global.Promise mongoose.connection // .once('open', () => { }) ....
the_stack
import type * as d from '../../declarations'; import { basename, dirname, relative } from 'path'; import { isIterable, normalizePath, isString } from '@utils'; export const createInMemoryFs = (sys: d.CompilerSystem) => { const items: d.FsItems = new Map(); const outputTargetTypes = new Map<string, string>(); co...
the_stack
import * as assert from 'power-assert'; import {dtsmake} from '../src/dtsmake'; import fs = require('fs'); describe("TypeScript d.ts file output tests,", ()=>{ let dg = new dtsmake.DTSMake(); context("tsObjToDTS()", ()=>{ it("shoud be replace ternjs Class instance path",()=>{ const p = [ { typ...
the_stack
import { Node } from "@ff/graph/Component"; import CVTask, { types } from "./CVTask"; import ToursTaskView from "../ui/story/ToursTaskView"; import CVDocument from "./CVDocument"; import CVTours from "./CVTours"; import CVSnapshots, { EEasingCurve } from "./CVSnapshots"; import { ELanguageStringType, ELanguageType, D...
the_stack
import React, { Component } from 'react' import { testable } from '@instructure/ui-testable' import { withStyle, jsx } from '@instructure/emotion' import { safeCloneElement } from '@instructure/ui-react-utils' import { TreeButton } from '../TreeButton' import generateStyles from './styles' import generateComponentTh...
the_stack
import { Directionality } from '@angular/cdk/bidi'; import { coerceBooleanProperty } from '@angular/cdk/coercion'; import { SelectionModel } from '@angular/cdk/collections'; import { AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, DoChe...
the_stack
import { assert } from "chai"; import * as crypto from "crypto"; import * as fs from "fs-extra"; import nock from "nock"; import * as path from "path"; import { AsyncMutex, BeEvent } from "@itwin/core-bentley"; import { CancelRequest, ProgressInfo } from "@bentley/itwin-client"; import { AzureFileHandler } from "../itw...
the_stack
import { ethers } from 'hardhat' import { assert, expect } from 'chai' import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers' import { Contract, ContractFactory } from 'ethers' const encodeTokenInitData = ( name: string, symbol: string, decimals: number | string ) => { return ethers.utils.defaul...
the_stack
import {Injectable} from '@angular/core'; import {dia} from 'jointjs'; import {Flo} from 'spring-flo'; import {Utils as SharedUtils} from '../shared/support/utils'; import {ApplicationType} from '../../shared/model/app.model'; import {UrlUtilities} from '../../url-utilities.service'; import * as _joint from 'jointjs';...
the_stack