text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement, SimpleChange } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { PcapFiltersComponent } from './pcap-filters.component'; impo...
the_stack
import { Server } from "http"; import express from "express"; import nock from "nock"; import _ from "lodash"; import { expect } from "chai"; import queryString from "query-string"; import Registry from "magda-typescript-common/src/registry/AuthorizedRegistryClient"; import { Record } from "magda-typescript-common/src...
the_stack
import { Cache } from '../src/Cache'; import { MicroMemoize } from '../src/types'; import { isSameValueZero } from '../src/utils'; describe('create cache', () => { it('should create a new cache instance with correct defaults', () => { // @ts-ignore const options: MicroMemoize.NormalizedOptions = {}; co...
the_stack
"use strict" import Blok = require("./blok"); import Css = require("./css"); import BlokContainerUserSettings = require("./blok-container-user-settings"); import Rect = require("./rect"); import BlokAdapter = require("./blok-adapter"); import Utils = require("./utils"); var JSON2 = require("JSON2"); require("./shim/m...
the_stack
import {flipColDirection, parseSortColRefs} from 'app/client/lib/sortUtil'; import {reportError} from 'app/client/models/AppModel'; import {ColumnRec, DocModel, ViewFieldRec, ViewRec, ViewSectionRec} from 'app/client/models/DocModel'; import {CustomComputed} from 'app/client/models/modelUtil'; import {attachColumnFilte...
the_stack
import Backburner from 'backburner'; import lolex from 'lolex'; const DATE_NOW = Date.now; let fakeClock; QUnit.module('tests/debounce', { afterEach() { if (fakeClock) { fakeClock.uninstall(); } } }); QUnit.test('debounce', function(assert) { assert.expect(14); let bb = new Backburner(['zomg']...
the_stack
/// <reference types="chrome"/> /// <reference types="filesystem"/> //////////////////// // App //////////////////// declare namespace chrome.app { export interface AppDetails extends chrome.runtime.Manifest { id: string; } export function getDetails(): AppDetails; } ///////////////...
the_stack
import { DynamsoftEnums as Dynamsoft } from "./Dynamsoft.Enum"; import { WebTwainUtil } from "./WebTwain.Util"; export interface WebTwainIO extends WebTwainUtil { /** * The password to connect to the FTP. */ FTPPassword: string; /** * The port to connect to the FTP. */ FTPPort: numb...
the_stack
import '@ui5/webcomponents-fiori/dist/illustrations/UnableToLoad.js'; import '@ui5/webcomponents-icons/dist/decline.js'; import '@ui5/webcomponents-icons/dist/navigation-down-arrow.js'; import '@ui5/webcomponents-icons/dist/search.js'; import { useI18nBundle } from '@ui5/webcomponents-react-base/dist/hooks'; import { T...
the_stack
import fs from 'fs'; import path from 'path'; import fse from 'fs-extra'; import semver from 'semver'; import globby from 'globby'; import { uniq, fastCloneDeep, get, trim } from '@terascope/utils'; import toposort from 'toposort'; import MultiMap from 'mnemonist/multi-map'; import packageJson from 'package-json'; ...
the_stack
import { JiraIssue } from 'src/interfaces/jira/jira-issue.interface'; import { Vulnerability } from '../entity/Vulnerability'; import { JiraInit } from 'src/interfaces/jira/jira-init.interface'; import { decrypt } from './crypto.utility'; import { JiraResult } from 'src/interfaces/jira/jira-result.interface'; const j2m...
the_stack
declare module com { export module vincent { export module filepicker { export class BuildConfig { public static class: java.lang.Class<com.vincent.filepicker.BuildConfig>; public static DEBUG: boolean; public static APPLICATION_ID: string; public static BUILD_TYPE: string; public static FLAVO...
the_stack
// ~/bundles/shared/common export { setLanguagePreferenceCookie } from '@Shared/TopBar'; export { default as ui } from '@Shared/MessagesTyped'; export { default as functions } from '@Shared/GlobalFunctions'; export { default as HttpClient } from '@Shared/HttpClient'; export { default as UrlMapper } from '@Shared/U...
the_stack
import { vtkObject } from "../../../interfaces"; export enum InterpolationType { NEAREST, LINEAR, FAST_LINEAR, } export enum OpacityMode { FRACTIONAL, PROPORTIONAL, } interface IVolumePropertyInitialValues { independentComponents?: boolean; shade?: number; ambient?: number; diffuse?: number; specular?: nu...
the_stack
import 'jest-extended'; import http from 'http'; import { Message } from '../src/messenger'; import { Messenger, formatURL, newMsgId } from '../src'; import { findPort, pDelay } from './helpers'; jest.setTimeout(10000); describe('Messenger', () => { describe('->Core', () => { describe('when constructed wi...
the_stack
import { TilesNextExtension } from './tilesNextExtension'; const Cesium = require('cesium'); const clone = Cesium.clone; const Cartesian3 = Cesium.Cartesian3; const CesiumMath = Cesium.Math; const Matrix4 = Cesium.Matrix4; const Quaternion = Cesium.Quaternion; const gltfPipeline = require('gltf-pipeline'); import { Ge...
the_stack
import { mockNavigatorOnLine, sleep } from '../../react/tests/utils' import { QueryCache } from '../queryCache' import { QueryClient } from '../queryClient' import { dehydrate, hydrate } from '../hydration' async function fetchData<TData>(value: TData, ms?: number): Promise<TData> { await sleep(ms || 0) return val...
the_stack
import { BigNumber } from "bignumber.js"; import * as moment from "moment"; import * as Web3 from "web3"; // Utils import * as Units from "../../../../../utils/units"; import { Web3Utils } from "../../../../../utils/web3_utils"; // Scenarios import { ReturnCollateralScenario, SeizeCollateralScenario } from "../scenar...
the_stack
import React from 'react'; import createClass from 'create-react-class'; import { Button, CloseIcon, EditIcon, Expander } from './../../index'; export default { title: 'Layout/Expander', component: Expander, parameters: { docs: { description: { component: (Expander as any).peek.description, }, }, }, ...
the_stack
import { ATTRIBUTE_TYPE, RangeOperator, ScalarType, SimpleOperator, UpdateType, } from '@typedorm/common'; import {isEmptyObject} from '../../helpers/is-empty-object'; import {KeyCondition} from './key-condition'; import {Filter} from './filter'; import {BaseExpressionInput, MERGE_STRATEGY} from './base-expre...
the_stack
import LayerBase from "ol/layer/Base"; import { LayerProperty, IExternalBaseLayer, LayerTransparencySet, RefreshMode, Bounds, Size, ILayerInfo, Dictionary } from './common'; import { ILayerSetOL, IImageLayerEvents } from './layer-set-contracts'; import Feature from 'ol/Feature'; import { isMapGuideImageSource } from '....
the_stack
declare module com { export module google { export module android { export module gms { export module internal { export module firebase_ml { export class zzfu { public static class: java.lang.Class<com.google.android.gms.internal.firebase_ml.zzfu>; public static VERSION: string; ...
the_stack
import FibonacciNode from './fibonacci-node' import * as utils from '../../utils' /******************************************************************************* * A fibonacci heap is a lazy binomial heap with lazy decreaseKey(). Some important * algorithms heavily rely on decreaseKey(). Dijkstra's shortest path, P...
the_stack
import options from '../../util/options'; import Settings from '../../Settings'; import Math from '../../common/Math'; import Vec2 from '../../common/Vec2'; import Rot from '../../common/Rot'; import Joint, { JointOpt, JointDef } from '../Joint'; import Body from '../Body'; import { TimeStep } from "../Solver"; const ...
the_stack
import {Component, EventEmitter, ViewEncapsulation} from '@angular/core'; import {NavParams, ViewController} from 'ionic-angular'; import {DateService} from './datepicker.service'; import {FormControl} from '@angular/forms'; @Component({ template: ` <div class="datepicker-wrapper"> <div class=...
the_stack
import { PointModel } from './../primitives/point-model'; import { identityMatrix, rotateMatrix, transformPointByMatrix, Matrix } from './../primitives/matrix'; import { Corners } from '../core/elements/drawing-element'; import { DrawingElement } from '../core/elements/drawing-element'; import { Container } from './../...
the_stack
import { CircularGauge } from '../circular-gauge'; import { ColorStopModel, GradientPositionModel } from './gradient-model'; import { Property, ChildProperty, Complex, Collection, isNullOrUndefined } from '@syncfusion/ej2-base'; import { GradientColor, LinearGradient as Linear, RadialGradient as Radial } from '@syncfus...
the_stack
import { AllowedOperator, FieldFilterRowData, FieldFilterRowSettings } from '../common/FieldFilterContracts'; import { WorkItemField } from 'TFS/WorkItemTracking/Contracts'; import { ConfigurationContext } from 'VSS/Common/Contracts/Platform'; import { Widget } from '../widget/Widget'; import { AnalyticsWidgetSettings...
the_stack
module BABYLONX { export class CompoundShader { private _scene; private _shader; private _params; private _texGen; private _texMix; constructor(scene,texGen,texMix,{stepx=0.005,stepy=0.005,invR=false,invG=false,balance=0.9,invH=false,filter=true,level=7,s...
the_stack
import { ChannelDispute, CoreChannelState, CoreTransferState, FullChannelState, FullTransferState, GetTransfersFilterOpts, IChainServiceStore, IEngineStore, ResolveUpdateDetails, StoredTransaction, StoredTransactionAttempt, StoredTransactionReceipt, StoredTransactionStatus, TransactionReason...
the_stack
import { CommonContentClientConfig } from './config/CommonContentClientConfig'; import { RenderedContentItem } from './rendering/model/RenderedContentItem'; import { RenderContentItem } from './rendering/coordinators/RenderContentItem'; import { FilterBy } from './content/coordinators/FilterBy'; import { ContentItem } ...
the_stack
import { Observable, Subject } from 'rxjs'; import { distinctUntilChanged } from 'rxjs/operators'; import { PblDataSource, unrx } from '@pebula/ngrid/core'; import { PblNgridInternalExtensionApi, PblNgridExtensionApi } from '../../../../../ext/grid-ext-api'; import { PblCdkVirtualScrollViewportComponent } from '../../...
the_stack
import { Theme, withTheme, WithTheme } from "@material-ui/core"; import { grey } from "@material-ui/core/colors"; import Tooltip from "@material-ui/core/Tooltip/Tooltip"; import { createStyles, withStyles, WithStyles } from "@material-ui/styles"; import * as chartjs from "chart.js"; import { format } from "date-fns"; i...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormAgreement_Booking_Setup { interface tab__B08D1E73_C885_4AC5_8E1A_ECD3CF34E01D_Sections { _B08D1E73_C885_4AC5_8E1A_ECD3CF34E01D_SECTION_3: DevKit.Controls.Section; _B08D1E73_C885_4AC5_8E1A_ECD3CF34E01D_SECTION_5: DevKit.Co...
the_stack
import { amalgamatingBinaryOperators, binaryExpressionStrings, simpleBinaryOperators, unaryExpressions } from "./constants"; import { OpenAnIssueIfThisOccursError, ParseError, UnpositionableParseError } from "./errors"; import { lex } from "./lexer"; import { ASTApplicationExpression, ASTExpression, LexToken } ...
the_stack
import { FormGroup as NativeFormGroup } from '@angular/forms'; import { Observable } from 'rxjs'; import { Status, StringKeys, ValidatorFn, AsyncValidatorFn, ValidatorsModel, ValidationErrors, AbstractControlOptions, ControlType, ExtractGroupValue, } from './types'; export class FormGroup<T extends...
the_stack
declare namespace smarthome { /** * Request and response interfaces for communicating with local devices * over BLE, TCP, UDP, and HTTP. * @preferred */ namespace DataFlow { interface BleOptions { characteristicUuid: string; serviceUuid: string; operation: Constants.BleOperation; ...
the_stack
import * as Json from "jsonc-parser" import forEach = require("lodash/forEach") import noop = require("lodash/noop") import { DocumentType, JSONSchema, JSONSchemaMap, YAMLDocument } from "@serverless-ide/config" import { TextDocument } from "vscode-languageserver" import * as nls from "vscode-nls" import URI from "...
the_stack
import React from "react"; import { User } from "../../../app/auth/auth_service"; import Button, { OutlinedButton } from "../../../app/components/button/button"; import CheckboxButton from "../../../app/components/button/checkbox_button"; import Checkbox from "../../../app/components/checkbox/checkbox"; import alertSer...
the_stack
import {Balloon} from '../api/balloon'; import {Emitter, EventHandlerMap} from '../event'; import {Plugins} from '../plugins'; import * as utils from '../utils/utils'; import * as utilsDom from '../utils/utils-dom'; import { d3_setClasses as setClasses, d3_transition as transition } from '../utils/d3-decorators...
the_stack
import React from "react"; import {render, fireEvent, wait, waitForElement, act, cleanup} from "@testing-library/react"; import "@testing-library/jest-dom/extend-expect"; import {AuthoritiesContext, AuthoritiesService} from "../util/authorities"; import axiosMock from "axios"; import mocks from "../api/__mocks__/mocks....
the_stack
import { browser, element, by } from 'protractor'; import { waitForElementPresence, waitForTextChange, waitForElementVisibility, waitForElementInVisibility, waitForCssClass, waitForStalenessOf, waitForElementCountGreaterThan, reduce_for_get_all, scrollIntoView } from '../../utils/e2e_util'; export class TreeView...
the_stack
import _ from 'lodash'; import { pipe } from 'fp-ts/function'; import { NodeSchema, isNodeSchema, NodeDataType, CompositeValue } from '@alilc/lowcode-types'; import { IScope, CodeGeneratorError, PIECE_TYPE, CodePiece, NodeGenerator, NodeGeneratorConfig, NodePlugin, AttrData, } from '../types'; import ...
the_stack
/// <reference types="node" /> declare namespace Pushbullet { /** * Push Direction */ enum MessageDirection { incoming = 'incoming', outgoing = 'outgoing', self = 'self', } /** * Base Push Types */ enum PushType { Default = 'push', Note = 'note', Link = 'link', File =...
the_stack
import { useRef, useLayoutEffect, ReactNode, MouseEventHandler, LegacyRef, } from 'react'; import isEqual from 'lodash/isEqual'; import { warning, filterDataAttributes } from '@commercetools-uikit/utils'; import { usePrevious } from '@commercetools-uikit/hooks'; import { TableContainer, TableGrid, Heade...
the_stack
import * as coreHttp from "@azure/core-http"; /** List of job details. */ export interface JobDetailsList { /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: JobDetails[]; /** Total records count number. */ count?: number; /** * Link to the next pa...
the_stack
import { select } from 'd3-selection'; import { setTooltipAccess } from './accessibilityUtils'; import { formatStats } from './formatStats'; import { capitalized } from './calculation'; import { formatDataLabel } from './dataLabel'; import { formatDate } from './formatDate'; import { transition } from 'd3-transition'; ...
the_stack
const branchingFactor = 32; const branchBits = 5; const mask = 31; interface Setoid { "fantasy-land/equals"(b: any): boolean; } function isSetoid(a: any): a is Setoid { return a && typeof a["fantasy-land/equals"] === "function"; } function elementEquals(a: any, b: any): boolean { if (a === b) { return true...
the_stack
import { addClassName } from "../../../../compat"; import isNonEmptyString from "../../../../utils/is_non_empty_string"; import objectAssign from "../../../../utils/object_assign"; import getParentElementsByTagName from "../get_parent_elements_by_tag_name"; import { getStylingAttributes, IStyleList, IStyleObject,...
the_stack
import React from "react"; import { x2c, y2r } from "../api/converters"; import { clip } from "../api/clipboard"; import { blur, clear, escape, select, setEditingCell, undo, redo, arrow, walk, write, copy, cut, paste, setSearchQuery, setEntering, } from "../store/actions"; import { CellOp...
the_stack
import { createReadStream } from 'fs' import { createServer, IncomingMessage, Server, ServerResponse } from 'http' import { basename, extname, join, resolve } from 'path' import { readdir, stat } from 'fs/promises' import { types } from 'util' const { isPromise } = types const fontFamily = "'Segoe UI', Tahoma, Geneva...
the_stack
import path from "path"; import COMMON_CONFIG from "./config"; import {log, BaseSpider, CategoryItem} from "./base"; import PromiseTool from 'bluebird'; interface TableItem { category: string; // 分类 images: string[]; torrents: string[]; } const Sleep = (ms: number) => new Promise(resolve => setTimeout(res...
the_stack
import {EntityConfig} from "../../config/entity.config"; import {DataEntityType} from "../entity/data-entity.base"; import {combineLatest, defer, merge, Observable, of, Subject, throwError} from "rxjs"; import {IRepository} from "./repository.interface"; import {ModelBase} from "../../config/model.base"; import {Entity...
the_stack
import { config } from "../../config"; import { RunStrategy, IRunStrategyResult, ILoadResult } from "./RunStrategy"; import { Page } from "puppeteer"; import { events } from "../events"; import { sleep } from "../../utils/utils"; import { IQuery } from "../query"; import { logger } from "../../logger/logger"; import { ...
the_stack
import type { Logger } from '../../../logger' import type { AcceptanceMechanisms, AuthorAgreement, IndyPool } from '../IndyPool' import type { default as Indy, CredDef, LedgerReadReplyResponse, LedgerRequest, LedgerWriteReplyResponse, NymRole, Schema, } from 'indy-sdk' import { Lifecycle, scoped } from '...
the_stack
import * as sast from "ts-morph" import {SourceFile, SyntaxKind, TypeGuards, ts} from "ts-morph"; import * as emitter from "./CSharpEmitter"; import {ContextInterface} from "./Context"; import { addWhitespace, getWhitespace, emitStatic, addLeadingComment, addTrailingComment, addSemicolon, addComma, e...
the_stack
import "mocha"; import * as expect from "expect"; import { InputStream } from "../../src/z80lang/parser/input-stream"; import { TokenStream, TokenType } from "../../src/z80lang/parser/token-stream"; describe("Parser - token: whitespaces/comments", () => { it("get: empty stream results EOF", () => { const ts = n...
the_stack
import { ImmutableFeatureCollection } from '../src/lib/immutable-feature-collection'; let pointFeature; let lineStringFeature; let polygonFeature; let multiPointFeature; let multiLineStringFeature; let multiPolygonFeature; let featureCollection; beforeEach(() => { pointFeature = { type: 'Feature', propertie...
the_stack
import { debounce, find, flatten, isArray, pickBy } from 'lodash' import { ProjectEventEmitter } from '@lib/frameworks/emitter' import { IFramework } from '@lib/frameworks/framework' import { ISuiteResult } from '@lib/frameworks/suite' import { ITest, ITestResult } from '@lib/frameworks/test' import { Status, parseStat...
the_stack
import { getZapParamType } from "common"; import { BufferData, MutableBufferData, ZapArray, ZapParamType } from "types"; import { inTest } from "test_suite/test_helpers"; // TODO(Paras) - Make sure we monkeypatch on web workers as well export class ZapBuffer extends SharedArrayBuffer { // This class supports both Sh...
the_stack
import { AppStoreModel, PlayerStoreModel } from '../stores/AppStoreModel'; import Player from '../libraries/Player'; import { shuffleList, updatePlayerStateCursor, updatePlayerState, } from '../utilities/QueueUtils'; // tslint:disable-next-line:import-name import produce from 'immer'; export async function...
the_stack
import { InstanceClass, InstanceSize, InstanceType, } from '@aws-cdk/aws-ec2'; import { Expiration } from '@aws-cdk/core'; import * as AWS from 'aws-sdk'; import { SpotEventPluginDisplayInstanceStatus, SpotEventPluginLoggingLevel, SpotEventPluginPreJobTaskMode, SpotEventPluginState, SpotFleetAllocationS...
the_stack
export const sourceMap: { [source: string]: string; } = { // React '@workday/canvas-kit-react-action-bar': '@workday/canvas-kit-react/action-bar', '@workday/canvas-kit-react-avatar': '@workday/canvas-kit-react/avatar', '@workday/canvas-kit-react-badge': '@workday/canvas-kit-react/badge', '@workday/canvas-ki...
the_stack
import { TogableProduction } from '../units/togableProductions'; import { Production } from '../production'; import { WorldInterface } from './worldInterface'; import { Unit } from '../units/unit'; import { GameModel } from '../gameModel'; import { BuyAction, BuyAndUnlockAction, UpAction, UpHire, UpSpecial, Research } ...
the_stack
export const signalStages = [ 'Unknown', 'Threat Intelligence', 'Traffic Anomaly', 'External Recon', 'Attack Stage', 'Exploitation', 'Collection', 'Internal Recon', 'Execution', 'Persistence', 'Privilege Escalation', 'Defense Evasion', 'Credential Access', 'Discovery', 'Lateral Movement', ...
the_stack
import * as vscode from "vscode"; import * as path from "path"; import { FolderContext } from "./FolderContext"; import { StatusItem } from "./ui/StatusItem"; import { SwiftOutputChannel } from "./ui/SwiftOutputChannel"; import { getSwiftExecutable, pathExists, isPathInsidePath, swiftLibraryPathKey, } f...
the_stack
import { MeshRenderer } from "./meshRenderer"; import { Material } from "./material/material"; import { Screen } from "./webgl2/screen"; import { gltfScene } from "./gltfScene"; import { EntityMgr } from "./ECS/entityMgr"; import { Shader } from "./shader"; import { Mesh, bufferView, Accessor } from "./mesh/mesh"...
the_stack
import get from 'lodash/get'; import set from 'lodash/set'; import isEmpty from 'lodash/isEmpty'; import each from 'lodash/each'; import find from 'lodash/find'; import defaultsDeep from 'lodash/defaultsDeep'; import cloneDeep from 'lodash/cloneDeep'; import first from 'lodash/first'; import isEqual from 'lodash/isEqua...
the_stack
import React from "react"; import { orderBy as _, range, debounce } from "lodash"; import Mousetrap from "mousetrap"; import 'mousetrap-global-bind'; import { DraggableData, DraggableCore } from "react-draggable"; import { Dispatch } from "redux"; import { Column, RowMouseEventHandlerParams, SortDirection, Sor...
the_stack
import { createDeploymentMachine, createRollbackDeploymentMachine, DeployMachineContext, DeploymentMachineOp, StateMachineHelperFunctions, StateMachineRollbackHelperFunctions, } from '../../iterative-deployment/state-machine'; import { interpret } from 'xstate'; describe('deployment state machine', () => {...
the_stack
import * as os from 'os'; import * as path from 'path'; import { metricScope, Unit } from 'aws-embedded-metrics'; import type { PromiseResult } from 'aws-sdk/lib/request'; import * as fs from 'fs-extra'; import * as docgen from 'jsii-docgen'; import { CacheStrategy } from '../../caching'; import type { TransliteratorI...
the_stack
declare module 'react' { interface ComponentClass<P> { new(props: P): Component<any, any>; } // // Component // ---------------------------------------------------------------------- class Component<P extends BaseProps, S> { constructor(initialProps: P); public getDOM...
the_stack
import { createParser } from './parser'; import { isObject } from './utils'; import { RequestParams, Sink, StreamMessage, ExecutionResult, ExecutionPatchResult, TOKEN_HEADER_KEY, } from './common'; /** This file is the entry point for browsers, re-export common elements. */ export * from './common'; /** @...
the_stack
import { EthersContractContextV5 } from 'ethereum-abi-types-generator'; import { BigNumber, BigNumberish, ContractTransaction } from 'ethersv5'; export type ContractContext = EthersContractContextV5< UniswapExchangeContract, UniswapExchangeContractMethodNames, UniswapExchangeContractEventsContext, UniswapExcha...
the_stack
import {tap} from 'rxjs/operators'; import * as Faker from 'faker'; import { randomAsyncSystemConfig, randomBoolean, randomSelectMultiple, randomValidValue, randomValue, selectRandom, times, } from './utils'; import {AsyncSystemConfig, AsyncSystemStreamObservableProducer} from '../models/async-system'; im...
the_stack
import { MalVal, isMap, MalFunc, keywordFor as K, MalMap, MalNode, isVector, MalJSFunc, isSeq, keywordFor, getMeta, MalSeq, getType, isSymbol, MalSymbol, symbolFor as S, createList as L, isNode, M_OUTER, isList, M_OUTER_INDEX, MalType, isFunc, getEvaluated, isSymbolFor, cloneExp, MalNodeMap, ...
the_stack
import React from 'react'; import Button from '@material-ui/core/Button'; import InputLabel from '@material-ui/core/InputLabel'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableContainer from '@material-ui...
the_stack
require('module-alias/register'); import * as _ from 'lodash'; import * as ABIDecoder from 'abi-decoder'; import * as chai from 'chai'; import * as setProtocolUtils from 'set-protocol-utils'; import { Address } from 'set-protocol-utils'; import { BigNumber } from 'bignumber.js'; import ChaiSetup from '@utils/chaiSetu...
the_stack
import { Injectable, UnauthorizedException } from '@nestjs/common' import { UsersService } from '../accounts/services/users.service' import { AccountsService } from '../accounts/services/accounts.service' import { RequestUser, ValidUser } from './interfaces/user.interface' import { JwtService } from '@nestjs/jwt' impo...
the_stack
import * as FontMeasure from "./font-measure"; const GRAPHICS_MINIMUM_SIZE = 10; const MINIMUM_FONT_SIZE_PX = 8.0 * 96.0 / 72.0; type Style = { fontSize: number, fontFamily: string, fontMetric: { middle: number, baseline: number }, lineHeight: number }; let boxMutations : (() => any)[] = []; const clearBoxMu...
the_stack
import * as React from "react"; import * as ReactDom from "react-dom"; import { Version } from "@microsoft/sp-core-library"; import { IPropertyPaneConfiguration, PropertyPaneTextField, PropertyPaneChoiceGroup, PropertyPaneToggle, PropertyPaneDropdown, IPropertyPaneDropdownOption, PropertyPaneSlider, Pro...
the_stack
import { promisify } from "util"; import * as async from "async"; import { assert } from "node-opcua-assert"; import { DataValue } from "node-opcua-data-value"; import { make_errorLog } from "node-opcua-debug"; import { NodeId, resolveNodeId, NodeIdType } from "node-opcua-nodeid"; import { ArgumentDefinition, ...
the_stack
import { isNotNull, isPascalCase } from '@vuedx/shared' import { findTemplateNodeAt, isElementNode, isInterpolationNode, isSimpleExpressionNode, SearchResult, } from '@vuedx/template-ast-types' import type { TextDocument, VueBlockDocument, VueSFCDocument, } from '@vuedx/vue-virtual-textdocument' import ...
the_stack
import { LitElement, css, html, TemplateResult } from 'lit'; import { customElement, state } from 'lit/decorators.js'; import { localeStrings } from '../../locales'; import '../components/app-header'; import '../components/app-file-input'; import { FileInputDetails, Lazy } from '../utils/interfaces'; import {...
the_stack
import * as React from 'react'; import { RateTableGrpc, RateTableHttp } from '../../components/SummaryPanel/RateTable'; import { RequestChart, StreamChart } from '../../components/SummaryPanel/RpsChart'; import { ResponseTimeChart, ResponseTimeUnit } from '../../components/SummaryPanel/ResponseTimeChart'; import { Gr...
the_stack
import crypto from 'crypto' import fs from 'fs' import Bot from '../lib' import config from './tests.config' import {timeout} from '../lib/utils' import {pollFor} from './test-utils' import {promisify} from 'util' import {TopicType, ChatChannel, MsgSummary, BotCommandsAdvertisementTyp} from '../lib/types/chat1' import ...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/proactiveDetectionConfigurationsMappers"; import * as Parameters from "../models/parameters"; import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; ...
the_stack
import { FileStreamRotator } from '../src/fileStreamRotator'; import * as crypto from 'crypto'; import { writeFileSync, remove, ensureFile, lstat, readdirSync } from 'fs-extra'; import { join } from 'path'; import { createChildProcess, sleep } from './util'; describe('/test/stream-rotate.test.ts', () => { beforeEac...
the_stack
import BigNumber from '../../dependencies/src/bignumber.js-9.0.0/bignumber' import { isArray, isDate, isInteger, isNumber, isObject, isString, validate, validators } from '../../dependencies/src/validate.js-0.13.1/validate' import { EthereumProtocol } from '../../protocols/ethereum/EthereumProtocol' imp...
the_stack
* @module QuantityFormatting */ import { BadUnit, BasicUnit, UnitConversion, UnitProps, UnitsProvider, } from "@itwin/core-quantity"; import { UnitNameKey } from "./QuantityFormatter"; import { UNIT_EXTRA_DATA } from "./UnitsData"; // cSpell:ignore ussurvey USCUSTOM /** Units provider that provides a limited numb...
the_stack
import { getRandStr, TFrontendDependency, TModuleConfig, TPackageCromwellConfig, TPackageJson, TPagesMetaInfo, TPluginConfig, TRollupConfig, TScriptMetaInfo, } from '@cromwell/core'; import { buildDirName, getLogger, getMetaInfoPath, getModuleStaticDir, getPluginB...
the_stack
import * as util from 'util'; import * as assert from 'assert'; import {BaseMemory} from './basememory'; import {Memory, MemAttribute} from './memory'; import {NumberType} from './numbertype' import {Format} from './format'; /// Classifies opcodes. export enum OpcodeFlag { NONE = 0, BRANCH_ADDRESS = 0x01, ///< cont...
the_stack
module TDev.RT { //? A contact //@ walltap cap(contacts) export class Contact extends RTValue { private _id : string = undefined; private _first_name : string = undefined; private _last_name : string = undefined; private _nick_name : string = undefined; pr...
the_stack
* @packageDocumentation * @hidden */ import { EDITOR, TEST } from 'internal:constants'; import { Asset } from '../assets'; import { legacyCC } from '../global-exports'; import { js } from '../utils/js'; import Cache from './cache'; import { decodeUuid, normalize } from './helper'; import { AssetType } from './shared'...
the_stack
import * as path from "path"; import * as _ from "lodash"; import * as crypto from "crypto"; import { IDictionary, IErrors, IFileSystem } from "../../common/declarations"; import { IInjector } from "../../common/definitions/yok"; import { injector } from "../../common/yok"; const PROTOCOL_VERSION_LENGTH_SIZE = 1; cons...
the_stack
import {PortableSerializer} from './PortableSerializer'; import {DataOutput, PositionalDataOutput} from '../Data'; import {ClassDefinition, FieldDefinition} from './ClassDefinition'; import {BitsUtil} from '../../util/BitsUtil'; import {Portable, FieldType, PortableWriter} from '../Portable'; import * as Long from 'lon...
the_stack
import { ChangeDetectorRef, Component, ElementRef, OnDestroy, Renderer2, ViewChild } from '@angular/core'; import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; import { BasePickerResults } from '../base-picker-results/BasePickerResults'; import { Helpers } from '../../../../utils/Helpers'; import { Nov...
the_stack
import { pipe, SK } from '../src/function' import * as O from '../src/Option' import * as RA from '../src/ReadonlyArray' import { ReadonlyNonEmptyArray } from '../src/ReadonlyNonEmptyArray' import * as T from '../src/Task' import * as TE from '../src/TaskEither' import * as _ from '../src/TaskOption' import * as U from...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { IntegrationRuntimeResource, IntegrationRuntimesListByFactoryOptionalParams, IntegrationRuntimesCreateOrUpdateOptionalParams, IntegrationRuntimesCreateOrUpdateResponse, In...
the_stack
import connect = require('connect'); import { createServer } from 'http'; import * as swaggerTools from 'swagger-tools'; const app = connect(); const serverPort = 3000; // swaggerRouter configuration const options = { controllers: './controllers', useStubs: process.env.NODE_ENV === 'development' ? true : fal...
the_stack