text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { Trans } from "@lingui/macro"; import { i18nMark } from "@lingui/react"; import classNames from "classnames"; import { Link } from "react-router"; import PropTypes from "prop-types"; import * as React from "react"; import { Icon, Tooltip } from "@dcos/ui-kit"; import { SystemIcons } from "@dcos/ui-kit/dist/pack...
the_stack
* Defines the JVM opcodes, access flags and array type codes. This interface * does not define all the JVM opcodes because some opcodes are automatically * handled. For example, the xLOAD and xSTORE opcodes are automatically replaced * by xLOAD_n and xSTORE_n opcodes when possible. The xLOAD_n and xSTORE_n * opcode...
the_stack
import { IPdfPrimitive } from './../../interfaces/i-pdf-primitives'; import { IPdfWriter } from './../../interfaces/i-pdf-writer'; import { Dictionary } from './../collections/dictionary'; import { PdfName } from './pdf-name'; import { ObjectStatus } from './../input-output/enum'; import { PdfCrossTable } from './../in...
the_stack
import React from "react"; import { Callout, DefaultButton, Dropdown, DropdownMenuItemType, Fabric, IDropdownOption, Stack, PrimaryButton, TextField, mergeStyleSets, } from "office-ui-fabric-react"; import Cookies from "js-cookie"; type MarketplaceUriType = ("GitHub" | "DevOps" | null); interface IProtocolItem ...
the_stack
import { FirestoreWhereFilterOp } from '../adaptor' import { DocId } from '../docId' export interface WhereQuery<_Model> { type: 'where' field: string | string[] | DocId filter: FirestoreWhereFilterOp value: any } export type BasicWhereFilter = Exclude< FirestoreWhereFilterOp, 'array-contains' | 'in' > /...
the_stack
import { ODataParser } from "../odata/core"; import { Util } from "../utils/util"; import { Logger, LogLevel } from "../utils/logging"; import { HttpClient } from "../net/httpclient"; import { mergeHeaders } from "../net/utils"; import { RuntimeConfig } from "../configuration/pnplibconfig"; import { TypedHash } from "....
the_stack
import 'vs/css!./media/mergeEditor'; import './colors'; import { $, Dimension, reset } from 'vs/base/browser/dom'; import { Direction, Grid, IView, SerializableGrid } from 'vs/base/browser/ui/grid/grid'; import { Orientation, Sizing } from 'vs/base/browser/ui/splitview/splitview'; import { IAction } from 'vs/base/commo...
the_stack
import type { CompilerFileWatcherCallback, CompilerFsStats, CompilerSystem, CompilerSystemCreateDirectoryOptions, CompilerSystemCreateDirectoryResults, CompilerSystemRealpathResults, CompilerSystemRemoveDirectoryOptions, CompilerSystemRemoveDirectoryResults, CompilerSystemRemoveFileResults, Compiler...
the_stack
module LightSpeed { export class BaseEnemy { public value: number; public health: number; public maxHealth: number; public baseHealth: number; public healthIncrease: number; public enemyPointsMesh: BABYLON.Mesh; public damageAmount: number; public s...
the_stack
import { SpecPage } from '@stencil/core/testing'; import { flushTransitions } from './unit-test-utils'; export const generic_height_default_load = { prop: 'height', group: 'base', name: 'default height on load', testDefault: true, testProps: { height: 999999 }, testSelector: '[data-testid=chart-container] ...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * Four different resources help you manage your IAM policy for a project. Each of these resources serves a different use case: * * * `gcp.projects.IAMPolicy`: Autho...
the_stack
import {HasProps} from "../core/has_props" import {Data, Attrs} from "../core/types" import {Value, Field, Vector} from "../core/vectorization" import {VectorSpec, UnitsSpec, Property} from "../core/properties" import {Class, extend} from "../core/class" import {Location} from "../core/enums" import {is_equal, Comparat...
the_stack
import * as Table from 'cli-table3' import { produce } from 'immer' import * as ora from 'ora' import * as marked from 'marked' import * as TerminalRenderer from 'marked-terminal' import * as wrap from 'wordwrap' import * as logger from '../../logger' import { afterHooks, beforeHooks } from '../../hooks' import { askU...
the_stack
import { ValueCell } from '../../../mol-util'; import { Mat4, Vec3, Vec4 } from '../../../mol-math/linear-algebra'; import { transformPositionArray, GroupMapping, createGroupMapping } from '../../util'; import { GeometryUtils } from '../geometry'; import { createColors } from '../color-data'; import { createMarkers } f...
the_stack
import { User } from "../store/types"; type APIResourceType = | "user" | "matchmakingRequest" | "matchedUser" | "session" | "app" | "multisigDeploy"; type APIError = { status: HttpStatusCode; code: ErrorCode; title: string; detail: string; }; type APIResource<T = APIResourceAttributes> = { type...
the_stack
import { syntaxHighlighting } from "../documentation"; import { Primitives } from "../../../primitives"; import { ConfigurationGroup } from "../../../configuration-option-types"; import { PropertyLayoutVariants, PropertyTypes, } from "../../../configuration-property"; import { PluginMetadata } from "../../../pl...
the_stack
"use strict"; // Override the jQuery Attr function to fix the checkbox checking which the method is no longer working in newer jQuery. // #8 https://github.com/louislam/vestacp-crossover-adminlte/issues/8 var oldAttr = $.fn.attr; $.fn.attr = function(name, value) { if (name === "checked") { return this.is(...
the_stack
import {Inject, Injectable} from '@angular/core'; import {Headers, Request, RequestOptions, RequestOptionsArgs, RequestMethod, Response} from '@angular/http'; import {NotificationService} from '../notification/notification.service'; import {ApiConnection} from '../connect/api-connection' import {ApiError, ApiErrorType}...
the_stack
import { CompilerContext, isObject, toFastProperties } from '@deepkit/core'; import { typeSettings, UnpopulatedCheck } from './core.js'; import { ReflectionClass, ReflectionProperty } from './reflection/reflection.js'; import { ContainerAccessor, executeTemplates, noopTemplate, serializer, Serializer, TemplateRegistry,...
the_stack
import { LitElement, PropertyValues } from 'lit'; import { property } from 'lit/decorators.js'; import { provideContextRecord } from '../../base/context'; import { DiscoveryEvent, ElementDiscoveryController } from '../../base/elements'; import { DisposalBin, eventListener, listen, vdsEvent } from '../../ba...
the_stack
import { LocalDateTime } from '@js-joda/core'; import { deepEqual } from 'assert'; import { TransactionTypeDto } from 'catbuffer-typescript'; import { expect } from 'chai'; import { NamespaceRegistrationTypeEnum, NetworkTypeEnum, TransactionInfoDTO, TransactionTypeEnum, TransferTransactionDTO, } fro...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * Manages Security Center Automation and Continuous Export. This resource supports three types of destination in the `action`, Logic Apps, Log Analytics and Event Hub...
the_stack
import Player from "../models/Player"; import {IMission} from "./IMission"; import {TextChannel, User} from "discord.js"; import MissionSlot, {MissionSlots} from "../models/MissionSlot"; import {DailyMissions} from "../models/DailyMission"; import Mission, {Missions} from "../models/Mission"; import {hoursToMillisecond...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { LabVirtualMachine, VirtualMachinesListOptionalParams, VirtualMachinesGetOptionalParams, VirtualMachinesGetResponse, VirtualMachinesCreateOrUpdateOptionalParams, Virtual...
the_stack
import { codec } from '@liskhq/lisk-codec'; import { dataStructures } from '@liskhq/lisk-utils'; import { getRandomBytes, getAddressFromPublicKey } from '@liskhq/lisk-cryptography'; import { BlockHeader, CONSENSUS_STATE_FINALIZED_HEIGHT_KEY, Chain, CONSENSUS_STATE_VALIDATORS_KEY, validatorsSchema, StateStore, te...
the_stack
import { PollerLike, PollOperationState } from "@azure/core-lro"; import { LrosaDsPutNonRetry400OptionalParams, LrosaDsPutNonRetry400Response, LrosaDsPutNonRetry201Creating400OptionalParams, LrosaDsPutNonRetry201Creating400Response, LrosaDsPutNonRetry201Creating400InvalidJsonOptionalParams, LrosaDsPutNonRet...
the_stack
import * as vscode from 'vscode'; import * as assert from 'assert'; import { describe, before, it } from 'mocha'; import { angularCollectionName } from '../../defaults'; import { WorkspaceFolderConfig } from '../../workspace'; import { COMPONENT_TYPE } from '../../workspace/shortcuts'; import { rootProjectName, ionic...
the_stack
import { MoveEvent, ResizeEvent } from '../events'; import { AspectRatio, Coordinates, Limits, PositionRestrictions, ResizeDirections, SizeRestrictions } from '../typings'; import { ALL_DIRECTIONS, HORIZONTAL_DIRECTIONS, VERTICAL_DIRECTIONS } from '../constants'; import { applyDirections, getBrokenRatio, getIntersectio...
the_stack
import { parseMillis, isUndefined, untruncateYear, signedOffset, hasOwnProperty } from "./util.js"; import Formatter from "./formatter.js"; import FixedOffsetZone from "../zones/fixedOffsetZone.js"; import IANAZone from "../zones/IANAZone.js"; import DateTime from "../datetime.js"; import { digitRegex, parseDigits } fr...
the_stack
import { assert, expect } from "chai"; import { DbResult, Id64, Id64String } from "@itwin/core-bentley"; import { BriefcaseIdValue, Code, ColorDef, ElementAspectProps, GeometricElementProps, GeometryStreamProps, IModel, QueryRowFormat, SubCategoryAppearance, } from "@itwin/core-common"; import { Arc3d, Cone, IModelJs...
the_stack
import { ThemeProvider } from "@material-ui/core/styles" import { cleanup, fireEvent, render, waitForElement } from "@testing-library/react" import axios from "axios" import { createCanvas } from "canvas" import * as child from "child_process" import _ from "lodash" import * as React from "react" import { Provi...
the_stack
import { decimalStr, mweiStr, fromWei } from '../utils/Converter'; import { logGas } from '../utils/Log'; import { NFTContext, getDODONftContext } from '../utils/NFTContext'; import { assert } from 'chai'; import * as contracts from '../utils/Contracts'; const truffleAssert = require('truffle-assertions'); let author:...
the_stack
import { EventEmitter } from 'events' import { engine, GLTFShape, Transform, Entity, Component, NFTShape, IEntity, Vector3, AvatarShape, Wearable } from 'decentraland-ecs' import * as ECS from 'decentraland-ecs' import { createChannel } from 'decentraland-builder-scripts/channel' import { createInventory } from 'decent...
the_stack
import { ScenarioService } from './../shared/services/scenario/scenario.service'; import { BroadcastService } from './../shared/services/broadcast.service'; import { Component, OnDestroy, Input, Inject, ElementRef, Output, EventEmitter, ViewChild, ViewContainerRef, ComponentFactory, ComponentFacto...
the_stack
import { Data } from "./data"; import { BuilderType as B, VectorType as V } from "./interfaces"; import { BufferBuilder, BitmapBufferBuilder, DataBufferBuilder, OffsetsBufferBuilder } from "./builder/buffer"; import { DataType, Float, Int, Decimal, FixedSizeBinary, Date_, Time, Timestamp, Inte...
the_stack
* @packageDocumentation * @hidden */ import { AABB, Frustum, intersect, Sphere } from '../geometry'; import { Model } from '../renderer/scene/model'; import { Camera, SKYBOX_FLAG } from '../renderer/scene/camera'; import { Vec2, Vec3, Mat4, Quat, Vec4 } from '../math'; import { RenderPipeline } from './render-pipeli...
the_stack
import { zipObject, isUndefined, get, set, SCHEMA_OPTIONS_SYMBOL } from './helpers'; import { Schema, StrictSchema, Constructable, SourceFromSchema, Mapper, DestinationFromSchema } from './types'; import { MorphismSchemaTree, createSchema, SchemaOptions } from './MorphismTree'; import { MorphismRegistry, IMorphismRegis...
the_stack
jest.mock('../adminRequests'); jest.mock('../getCertPath'); jest.mock('../getProxyResponse'); jest.mock('../cleanupQueue'); jest.mock('get-port', function() { return { default: jest.fn().mockReturnValue(50001) }; }); jest.mock('../getCertForHost', function() { return { preloadCertForHost: jest.fn() }; }); jes...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { StorageAccount, StorageAccountsListOptionalParams, StorageAccountsListByResourceGroupOptionalParams, StorageAccountCheckNameAvailabilityParameters, StorageAccountsCheckNa...
the_stack
import { ComponentFixture, TestBed, waitForAsync } from "@angular/core/testing"; import { MdlSelectComponent } from "./select.component"; import { Component } from "@angular/core"; import { By } from "@angular/platform-browser"; import { FormControl, FormGroup, ReactiveFormsModule } from "@angular/forms"; import { KEYS...
the_stack
// Please don't change this file manually but run `prisma generate` to update it. // For more information, please read the docs: https://www.prisma.io/docs/prisma-client/ export const typeDefs = /* GraphQL */ `type AggregatePost { count: Int! } type AggregateUser { count: Int! } type BatchPayload { count: Lo...
the_stack
import * as _ from 'lodash-es'; import * as React from 'react'; import { Trans, useTranslation } from 'react-i18next'; import { TextArea } from '@patternfly/react-core'; import { RadioInput } from '../../radio'; import { ExpandCollapse, ExternalLink } from '../../utils'; import { SaveAsDefaultCheckbox, SendResolve...
the_stack
import { h } from 'preact'; import { mount } from '../../../../test/utils/enzyme'; import { render, fireEvent } from '@testing-library/preact'; import SearchBox from '../SearchBox'; const defaultProps = { placeholder: '', cssClasses: { root: 'root', form: 'form', input: 'input', submit: 'submit', ...
the_stack
import type { BigNumber } from "bignumber.js"; import type { TransactionCommon, TransactionCommonRaw, } from "../../types/transaction"; import type { Operation, OperationRaw } from "../../types/operation"; import type { CoreAmount, CoreBigInt, Spec } from "../../libcore/types"; export type CoreStatics = { CosmosL...
the_stack
import * as spanner from '@google-cloud/spanner'; import * as express from 'express'; import * as config from './config'; import * as httpcodes from './http-status-codes'; import * as runtime_types from './runtime_types'; import * as db_types from './db_types'; export class NoResultsError extends Error {} const SEAR...
the_stack
import { stringifyAssertion, stringifyExpression, stringifyTestCode } from './codegen'; import { Syntax, TestCode, Visitor, id, isValidAssignmentTarget, nullLoc, removeTestCodePrefix, replaceVarAssertion as replaceJSVarAssertion, replaceVarFunction as replaceJSVarFunction, replaceVarBlock as replaceJS...
the_stack
import { select } from 'd3-selection'; import { formatStats } from './formatStats'; import { manuallyWrapText } from './textHelpers'; import { easeCircleIn } from 'd3-ease'; import { timeFormat } from 'd3-time-format'; const tickArguments = []; let tickValues = null; let transitionDuration = 750; let orient = 1; let t...
the_stack
import { IContractInfo } from "./../../adapters/ethereum-blockchain/structs/contract-info"; import { ProcessCEMetadata } from "../../adapters/mongo-db/repo-models"; import { PromiseError, Component } from "./../../adapters/errors/promise-error"; import { AccountInfo } from "../../adapters/ethereum-blockchain/structs/ac...
the_stack
// This file was automatically generated by elastic/elastic-client-generator-js // DO NOT MODIFY IT BY HAND. Instead, modify the source open api file, // and elastic/elastic-client-generator-js to regenerate this file again. import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, Transpor...
the_stack
import { $TSContext, CFNTemplateFormat, FeatureFlags, JSONUtilities, pathManager, readCFNTemplate, stateManager, writeCFNTemplate, } from 'amplify-cli-core'; import { Template, Fn } from 'cloudform-types'; import * as fs from 'fs-extra'; import * as path from 'path'; import { DeploymentResources, Pa...
the_stack
import React, { useState } from 'react'; import { Button, FormControl, Input, ScrollView, Stack, Switch, Text, } from 'native-base'; import Picker from '../Picker'; import { PGS, TIER_CODES } from '../constants'; import { getMethods, getQuotas } from '../utils'; import type { StackScreenProps } from '@rea...
the_stack
import { DType, INDArray, TypedArray } from '../types'; import { default as abs } from './abs'; import { default as acos } from './acos'; import { default as acosh } from './acosh'; import { default as add } from './add'; import { default as angle } from './angle'; import { default as asin } from './asin'; import { def...
the_stack
import chalk from "chalk"; import fs from "fs"; import marked from "marked"; import peg from "pegjs"; import seedrandom from "seedrandom"; if (typeof document === "undefined") { const { JSDOM } = require("jsdom"); globalThis.document = new JSDOM().window.document; } require("./raw-loader.js").register(/\.peg$/); ...
the_stack
namespace ts.projectSystem { describe("unittests:: tsserver:: with project references and compile on save", () => { const dependecyLocation = `${tscWatch.projectRoot}/dependency`; const usageLocation = `${tscWatch.projectRoot}/usage`; const dependencyTs: File = { path: `${de...
the_stack
// <copyright file="manage-categories.tsx" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> import * as React from "react"; import { Loader, Flex, Text, Image } from "@fluentui/react-northstar"; import { SeverityLevel } from "@microsoft/applicationinsights-web"; import { getApplic...
the_stack
import autobind from 'autobind-decorator'; import { ACCInputEvent, ACCInputEventInit } from '../events/input-event'; import { ACCErrorEvent } from '../events/error-event'; import { add, copy, scale, sub, distance, equal } from './../vec2'; import { scalemap } from './../utils'; import { html, LitElement } from '@polyme...
the_stack
import { ethers, network } from 'hardhat'; import { BigNumber, Signer } from 'ethers'; import { expect } from 'chai'; import { TestERC20__factory, TestERC20, BatchPayments, ERC20FeeProxy } from '../../src/types'; import { batchPaymentsArtifact, erc20FeeProxyArtifact } from '../../src/lib'; const logGasInfos = false; ...
the_stack
jest.mock('fs'); import fs from 'fs'; import {ConfigError, loadConfigSync} from '../source'; describe('loadConfig', () => { it('can load empty configurations.', () => { const config = loadConfigSync({}); expect(config).toEqual({}); }); describe('invariants', () => { it('throws if a property config...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormWorkflow_Information { interface tab_notes_Sections { notes: DevKit.Controls.Section; } interface tab_notes extends DevKit.Controls.ITab { Section: tab_notes_Sections; } interface Tabs { notes: tab_notes; } ...
the_stack
import * as R from 'ramda'; import {X86_REGISTERS} from './constants/x86'; import {X86Unit} from './X86Unit'; import {X86CPU, X86RegRMCallback, X86MemRMCallback} from './X86CPU'; import {X86ALUOperator} from './X86ALU'; import {VGARenderLoopDriver} from './devices/Video/HTML/VGARenderLoopDriver'; import { X86BitsMo...
the_stack
import {UserBase} from '../database-models/user-base'; import {ActingUserBase} from '../database-models/acting-user-base'; import {BidResultTypeMaskBase} from '../database-models/bid-result-type-mask-base'; import {BrandBase} from '../database-models/brand-base'; import {CompanyBase} from '../database-models/company-ba...
the_stack
* This file contains various useful functions and classes. */ import {ErrorReporter} from "./ui/errReporter"; import {DragEventKind, HtmlString, pageReferenceFormat, Resolution, Size} from "./ui/ui"; import { AggregateDescription, BucketsInfo, Comparison, ComparisonFilterDescription, ContentsKind, ...
the_stack
import CameraClass from './core/camera/camera'; import GameClass from './core/game'; import SceneClass from './core/scene'; import TextClass from './core/gameobjects/interactive/text'; import StaticLightClass from './core/lights/staticLight'; import ColliderClass from './core/physics/collider'; import GameObjectClass f...
the_stack
import { ServiceType } from "@protobuf-ts/runtime-rpc"; import { WireType } from "@protobuf-ts/runtime"; import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import { UnknownFieldHandler } from "@protobuf-ts/runtime"; import type { BinaryReadOptions ...
the_stack
export const UV_COORDS: Array<[number, number]> = [ [0.499976992607117, 0.652534008026123], [0.500025987625122, 0.547487020492554], [0.499974012374878, 0.602371990680695], [0.482113003730774, 0.471979022026062], [0.500150978565216, 0.527155995368958], [0.499909996986389, 0.498252987861633], [0.49952301383...
the_stack
import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; /** Document analysis parameters. */ export interface AnalyzeDocumentRequest { /** Document URL to analyze */ urlSource?: string; /** Base64 encoding of the document to analyze */ base64Source?: Uin...
the_stack
import {shallow, mount} from 'enzyme'; import toJson from 'enzyme-to-json'; import {Slider} from '..'; import {h, noop} from '../../util'; const mountSlider = (props = {}) => mount( <Slider onScrub={jest.fn()} onScrubStart={jest.fn()} onScrubStop={jest.fn()} value={0.5} {...props}> {({value}) => <div>{valu...
the_stack
import '@cds/core/accordion/register.js'; import { CdsAccordionPanel } from '@cds/core/accordion'; import { spreadProps, getElementStorybookArgs } from '@cds/core/internal'; import { html } from 'lit'; export default { title: 'Stories/Accordion', component: 'cds-accordion', parameters: { options: { showPanel...
the_stack
declare module "planet" { /** * One of the planets, asteroids, the sun or moon */ export class Planet { /** * The planet name, e.g. Mercury * @type {string} */ name: string; /** * A planet's longitude identifies what sign * it is in ...
the_stack
import * as angular from 'angular'; import { OrgChartPresenceEnum } from './orgChartPresenceEnum'; import { OrgChartStyleEnum } from './orgChartStyleEnum'; import { OrgChartSelectModeEnum } from './orgChartSelectModeEnum'; export interface IOrgChartScope extends angular.IScope { selectMode?: OrgChartSelectModeEnum; ...
the_stack
import * as React from 'react'; import { Dispatch, useEffect, useReducer, useState } from 'react'; import { Provider } from 'react-redux'; import { Redirect, Route, Switch } from 'react-router'; import { ConnectedRouter } from 'connected-react-router'; import { ProtectedRoute } from './components/organisms'; import { ...
the_stack
import { store, afterChange, initStore } from '../..'; import { propPathChanges, TaskType } from '../testUtils'; declare module '../..' { interface Store { // Add a few things used in this file taskList?: TaskType[]; longArrayToCompareSort?: TaskType[]; shortArrayToCompareSort?: TaskType[]; } } co...
the_stack
import { ColorRGBA64, parseColor } from "@microsoft/fast-colors"; import { AppliedDesignTokens, AppliedRecipes, PluginNodeData, RecipeEvaluation, } from "../core/model"; import { PluginNode } from "../core/node"; import { DesignTokenType } from "../core/ui/design-token-registry"; function isNodeType<T ...
the_stack
namespace Linqer { export interface Enumerable extends Iterable<any> { /** * Applies an accumulator function over a sequence. * The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value. * * @param {*} accumulator * @param {(acc: ...
the_stack
import { ident } from "../../Data/Function" import { fmapF } from "../../Data/Functor" import { any, elem, insertAt, List, snocF } from "../../Data/List" import { Just, Maybe, maybe, Nothing } from "../../Data/Maybe" import { Record } from "../../Data/Record" import { uncurry3 } from "../../Data/Tuple/Curry" import { S...
the_stack
import { BottomSheetBackdrop, BottomSheetModal, BottomSheetModalProvider, BottomSheetScrollView, } from '@gorhom/bottom-sheet'; import { useTheme } from '@react-navigation/native'; import LottieView from 'lottie-react-native'; import React, { useCallback, useContext, useEffect, useRef } from 'react'; import { ...
the_stack
import Dockerode from 'dockerode'; import { SettingsStore } from '../stores/SettingsStore'; import { readFileSync } from 'fs'; import { autorun } from 'mobx/lib/mobx'; import { inject, provideSingleton, kernel } from './IOC'; import { NOTIFICATION_TYPE, NotificationStore } from '../stores/NotificationStore'; import { C...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { IntegrationAccountMaps } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { LogicManagementClient } from ".....
the_stack
import pako from "pako"; import JSZip from "jszip"; import * as deckgl from "./Deckgl"; const FILENAME_MASK1 = "olhwjsktri"; // const FILENAME_MASK2 = "eizxdwknmo"; const FILENAME_ENCODING: { [key: string]: number } = {}; for (let i = 0; i < FILENAME_MASK1.length; i++) { FILENAME_ENCODING[FILENAME_MASK1.charAt(i)] =...
the_stack
import {moveCursorToOffset} from '@deckdeckgo/utils'; import containerStore from '../stores/container.store'; import undoRedoStore from '../stores/undo-redo.store'; import { UndoRedoAddRemoveParagraph, UndoRedoChange, UndoRedoChanges, UndoRedoInput, UndoRedoSelection, UndoRedoUpdateParagraph } from '../type...
the_stack
import {Change, Prefix, EvaluationContext, GlobalInterner, printPrefix} from "./runtime"; import * as Runtime from "./runtime"; import {Renderer} from "../microReact"; import {PerformanceTracker} from "./performance" function isID(v: any) { return typeof v === "string" && (v.indexOf("|") > -1 || (v[8] === "-" && v.l...
the_stack
import { HardhatRuntimeEnvironment } from "hardhat/types"; import { DeployFunction } from "hardhat-deploy/types"; import { ethers, upgrades } from "hardhat"; import { MdexRestrictedStrategyAddBaseTokenOnly__factory, MdexRestrictedStrategyAddTwoSidesOptimal__factory, MdexRestrictedStrategyLiquidate__factory, Mde...
the_stack
import express = require('express'); declare namespace e { } declare function e(): express.RequestHandler; export = e; /** * Type augmentation for express */ /** * Based on Sandeep K Nair gist: https://gist.github.com/sandeepsuvit/2486c99c0346db87de24539472f34451 * And https://github.com/hapijs/boom */ declare g...
the_stack
import * as b2 from "@box2d"; import * as testbed from "@testbed"; /** * Tracks instances of RadialEmitter and destroys them after a * specified period of time. */ export declare class EmitterTracker { m_emitterLifetime: Array<{ emitter: testbed.RadialEmitter; lifetime: number; }>; /** ...
the_stack
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { Pipe, PipeTransform, Injectable, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, Directive, Input, Output } from '@angular/core'; import { isPlatformBrowser } from '@angular/common'; import { FormsModule, ReactiveFormsModule } from '@angular/f...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { MetricAlerts } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { MonitorClient } from "../monitorClient"; i...
the_stack
import { ES6Achieve } from "../../utility/algorithm/es6-achieve"; // ? ES6Achieve describe('ES6Achieve tests', () => { // ? _reflect describe('ES6Achieve._reflect tests', () => { const _reflect = ES6Achieve._reflect; test('_reflect.get should return the value of the special key from target object'...
the_stack
import { AutoIncrement, BackReference, BinaryBigInt, cast, copyAndSetParent, createReference, Embedded, hasCircularReference, hasEmbedded, integer, MapName, MongoId, PrimaryKey, ReceiveType, Reference, ReflectionClass, ReflectionKind, resolveReceiv...
the_stack
import Fs = require("fs"); import _ = require("lodash"); import Path = require("path"); /** * This plugin (SubAppWebpackPlugin) add hooks for webpack's compiler and parser, and listen * for any code that call the SubApp APIs declareSubApp or createDynamicComponent. * * It then take the parser's AST to analyze the ...
the_stack
export type conststring = string & {} | ""; /** A type useful as a base constraint for a number that should be inferred as a number literal type. */ export type constnumber = number & {} | 0; /** A type useful as a base constraint for a symbol that should be inferred as a unique symbol type. */ export type cons...
the_stack
import * as assert from "assert"; import { BatchType } from "../../../src/common/batch/BatchOperation"; import BatchRequestHeaders from "../../../src/common/batch/BatchRequestHeaders"; import { BatchSerialization } from "../../../src/common/batch/BatchSerialization"; import { TableBatchSerialization } from "../../../sr...
the_stack
import * as protos from 'fabric-protos'; import * as chai from 'chai'; import * as sinonChai from 'sinon-chai'; import * as chaiAsPromised from 'chai-as-promised'; import { EndorsementPolicy } from '../src/Policy'; chai.should(); chai.use(sinonChai); chai.use(chaiAsPromised); // tslint:disable:no-unused-expression de...
the_stack
import './index'; import { $, $$ } from 'common-sk/modules/dom'; import fetchMock from 'fetch-mock'; import { expect } from 'chai'; import { eventPromise, expectQueryStringToEqual, setQueryString, setUpElementUnderTest, } from '../../../infra-sk/modules/test_util'; import { sampleByTestList } from './test_data...
the_stack
import {Component, ElementRef, ViewChild, AfterViewInit, Input, ChangeDetectorRef} from '@angular/core'; import * as ts from 'typescript'; import {FileConfig} from '../codelab/file-config'; import {StateService, selectedExercise} from '../codelab/state.service'; import {LoopProtectionService} from '../loop-protection.s...
the_stack
import type { Participations } from '@guardian/ab-core'; import { clearPermutiveSegments, getPermutiveSegments, } from '@guardian/commercial-core'; import { cmp, onConsentChange } from '@guardian/consent-management-platform'; import type { ConsentState } from '@guardian/consent-management-platform/dist/types'; import...
the_stack
import { compareBy, CompareResult, tieBreakComparators, equals, numberComparator } from 'vs/base/common/arrays'; import { BugIndicatingError } from 'vs/base/common/errors'; import { splitLines } from 'vs/base/common/strings'; import { Constants } from 'vs/base/common/uint'; import { Position } from 'vs/editor/common/co...
the_stack
declare function map<T, R>(project: (value: T, index: number) => R, thisArg?: any): OperatorFunction<T, R>; declare class MapOperator<T, R> implements Operator<T, R> { private project; private thisArg; constructor(project: (value: T, index: number) => R, thisArg: any); call(subscriber: Subscriber<R>, s...
the_stack
import { BackSide, BufferGeometry, DoubleSide, Float32BufferAttribute, FrontSide, Mesh, MeshBasicMaterial, NearestFilter, OrthographicCamera, PlaneBufferGeometry, Scene, ShaderLib, ShaderMaterial, sRGBEncoding, Texture, TextureLoader, UniformsUtils, Vector4, WebGLRenderer, } from '...
the_stack
import { BlockInstance } from '@wordpress/blocks'; import { EditorBlockListSettings, EditorBlockMode, EditorInserterItem, EditorSelection, EditorSettings } from '../'; /** * Determines if the given block type is allowed to be inserted into the block list. * * @param blockName - The name of the block type, e.g.' co...
the_stack
import { ANTLRv4ParserListener } from "../parser/ANTLRv4ParserListener"; import { LexerRuleSpecContext, ParserRuleSpecContext, TokensSpecContext, ChannelsSpecContext, ModeSpecContext, DelegateGrammarContext, TerminalRuleContext, RulerefContext, BlockContext, AlternativeContext, RuleBlockContext, EbnfSuffixC...
the_stack