text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import * as React from 'react'; import Scaler from './Scaler'; export type imageAttr = 'width' | 'height'; import dataURLtoBlob from './canvasToBlob.polyfills'; import { debounce, downScaleImage, applyTransform, getLocale } from './utils'; function isImage(file: File) { return file.type && /^image\//g.test(file.type...
the_stack
"use strict"; import { TokenCredential } from "@azure/core-http"; import { TokenCredentialsBase } from "@azure/ms-rest-nodeauth"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; import * as identity from "@azure/identity"; import { SubscriptionClient } from "@azure/arm-subscriptions"; import * as fs from "f...
the_stack
import { CellRenderer } from './cellrenderer'; import { GraphicsContext } from './graphicscontext'; /** * A cell renderer which renders data values as text. */ export class TextRenderer extends CellRenderer { /** * Construct a new text renderer. * * @param options - The options for initializing the ...
the_stack
import { IRawThemeSetting } from 'vscode-textmate'; import { Autowired, Injectable } from '@opensumi/di'; import { URI, localize, parseWithComments, ILogger, IReporterService, REPORT_NAME, isString, CharCode, isBoolean, } from '@opensumi/ide-core-browser'; import { IFileServiceClient } from '@opensum...
the_stack
import { ExpressionValueType } from "@abstractions/z80-compiler-service"; import { CompareBinPragma, Expression, IdentifierNode, NodePosition, Statement, Z80AssemblyLine, } from "./assembler-tree-nodes"; import { ErrorCodes } from "./assembler-errors"; /** * Represents the value of an evaluated expression...
the_stack
import { AfterViewInit, Component, DoCheck, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core'; import { DragulaService } from 'ng2-dragula'; import { DatatableComponent } from '@swimlane/ngx-datatable'; import { NgxDataTableConfig } from './ngx-d...
the_stack
import * as ts from "typescript"; import * as fs from "fs"; import * as path from "path"; import { unexpectedValue } from "../utils/unexpectedValue"; import * as codeUtils from "../utils/codeUtils"; import {CommentsParser} from '../utils/commentsParser'; export class LegacyPolymerComponentParser { public constructor...
the_stack
import _ = require('lodash'); import { Duplex } from 'stream'; import DuplexPair = require('native-duplexpair'); import { TypedError } from 'typed-error'; import * as CrossFetch from 'cross-fetch'; import * as WebSocket from 'isomorphic-ws'; import connectWebSocketStream = require('@httptoolkit/websocket-stream'); impo...
the_stack
import assert from "assert"; import * as vscode from "vscode"; import * as sinon from "sinon"; import { TextEditor } from "vscode"; import { EmacsEmulator } from "../../emulator"; import { assertCursorsEqual, assertTextEqual, cleanUpWorkspace, setEmptyCursors, setupWorkspace } from "./utils"; suite("Prefix argument (U...
the_stack
import * as sprequest from 'sp-request'; import { ISPRequest, HTTPError } from 'sp-request'; import * as url from 'url'; import { IAuthOptions } from 'sp-request'; import { ICoreOptions, IFileContentOptions, CheckinType, IFileMetaData } from './SPSaveOptions'; import { UrlHelper } from './../utils/UrlHelper'; ...
the_stack
import { ArrayType1D, BaseDataOptionType, SeriesInterface } from "../shared/types"; import NDframe from "./generic"; import Str from './strings'; import Dt from './datetime'; import { DataFrame } from "./frame"; /** * One-dimensional ndarray with axis labels. * The object supports both integer- and label-based indexi...
the_stack
import * as babelCore from '@babel/core'; import { Scope } from '@babel/traverse'; // @ts-ignore import splitExportDeclaration from '@babel/helper-split-export-declaration'; import path from 'path'; import babelPluginMacros, { createMacro } from 'babel-plugin-macros'; import { StateMachine } from 'xstate'; import { rol...
the_stack
import { RoughCanvas } from 'roughjs/bin/canvas' import { Options } from 'roughjs/bin/core' import rough from 'roughjs/bin/rough' import { RoughSVG } from 'roughjs/bin/svg' import { processRoot } from './processor' import { RenderMode } from './RenderMode' import { SvgTextures } from './SvgTextures' import { getDefsEle...
the_stack
import * as T from '@babel/types' import template from '@babel/template' import generator, { GeneratorResult, GeneratorOptions } from '@babel/generator' import { parse, ParserOptions } from '@babel/parser' interface ParseOptions extends ParserOptions { isScriptSetup: boolean lang: string } export function toAST( ...
the_stack
import { CollectibleBase } from '@algomart/schemas' import { AccountInfo, accountInformation, calculateAppMinBalance, configureSignTxns, createClawbackNFTTransactions, createConfigureCustodialAccountTransactions, createDeployContractTransactions, createExportNFTTransactions, createImportNFTTransaction...
the_stack
import { parsing } from "@algo-builder/web"; import { decodeAddress, encodeAddress, EncodedLogicSig, EncodedLogicSigAccount, EncodedMultisig, multisigAddress, MultisigMetadata, signBytes, verifyBytes } from "algosdk"; import * as murmurhash from 'murmurhash'; import * as tweet from "tweetnacl-ts"; import { RUN...
the_stack
import { SystemInfo, Connector, ControllerScope, EngineApiOptions, EngineConnectorSettings, EngineProgramOptions, GlobalUserSettings, GlobalUserSettingsOptions, Machine, Program, ProgramExecutionResult, ProgramTestResult, TestResult, // Container, ContainerStats, ContainerImageMount, ...
the_stack
import * as os from 'os'; import * as path from 'path'; import * as im from 'immutable'; import * as editor from '../../editor'; import * as lexical from '../lexical'; import * as _static from '../../static'; // --------------------------------------------------------------------------- export type Environment = im...
the_stack
import ffi from "ffi"; import Struct from "ref-struct"; import { Stores } from "../schema/stores"; import { KotsApp } from "./"; import { Params } from "../server/params"; import { putObject } from "../util/s3"; import path from "path"; import tmp from "tmp"; import fs from "fs"; import { extractDownstreamNamesFromTa...
the_stack
import gulp, { TaskFunction } from 'gulp'; import path from 'path'; import chalk from 'chalk'; import isEmail from 'validator/lib/isEmail'; import isUrl from 'validator/lib/isURL'; import npmValidate from 'validate-npm-package-name'; import inquirer, { QuestionCollection } from 'inquirer'; import { args, runShellComma...
the_stack
import { DB } from 'https://deno.land/x/sqlite@v2.4.2/mod.ts'; import { AccessRecord, checkAccessRecord, checkDomainRecord, DomainRecord, isAccessRecordBeta1, isDomainRecordBeta1 } from './model.ts'; const VERSION = 4; export class Database { private readonly _db: DB; constructor(path: string) { this...
the_stack
import { EToolName } from '@/constant/store'; import { IFileInfo, IStepInfo } from '@/store'; import { getBaseName, jsonParser } from './tool/common'; import { DrawUtils } from '@labelbee/lb-annotation'; import ColorCheatSheet from '@/assets/color.json'; // 获取 color cheat sheet 内的颜色 export const getRgbFromColorCheatSh...
the_stack
import { options, tasks, objectForEach, cleanNode, triggerEvent } from '@tko/utils' import { observable, isWritableObservable, isObservable } from '@tko/observable' import { isComputed } from '@tko/computed' import { MultiProvider } from '@tko/provider.multi' import { DataBindProvider } from '@tko/provid...
the_stack
import { Action, Thunk, Computed, Reducer, Generic, ActionOn, ThunkOn, createStore, action, thunk, computed, actionOn, thunkOn, reducer, } from 'easy-peasy'; interface Foo { name: string; age: number; } interface StoreModel { one: One; two: Two; three: Three; four: Four; five...
the_stack
* @fileoverview Mixin that implements lazy typesetting * * @author dpvc@mathjax.org (Davide Cervone) */ import {MathDocumentConstructor, ContainerList} from '../../core/MathDocument.js'; import {MathItem, STATE, newState} from '../../core/MathItem.js'; import {HTMLMathItem} from '../../handlers/html/HTMLMathItem.j...
the_stack
import { ObjectID } from 'mongodb'; import { advanceTo, advanceBy } from "jest-date-mock"; import { QueryFilter, GraphbackCoreMetadata } from '@graphback/core'; import { Context, createTestingContext } from "./__util__"; import { buildSchema } from 'graphql'; import { MongoDBDataProvider } from '../src/MongoDBDataProvi...
the_stack
export const vector2DTemplate = { annotation: { name: "TestVector2D", annotation: { description: "A sample vector 2D schema", }, }, typeid: "autodesk.appframework.tests:myVector2D-1.0.0", properties: [ { id: "x", typeid: "Float32", ...
the_stack
import { resolve } from 'path'; import { HostTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { Schema as AddNsOptions } from './schema'; import { getFileContent } from '@schematics/angular/utility/test'; import * as stripJsonComm...
the_stack
import * as functions from "firebase-functions"; import * as admin from "firebase-admin"; import * as utils from "../lib/utils"; import { order_status, possible_transitions, order_status_keys, timeEventMapping } from "../common/constant"; import { createCustomer } from "../stripe/customer"; import moment from "moment-t...
the_stack
import BaseClient from "./BaseClient"; import { Callback, ClientOptions, DefaultResponse, FilteringParameters, } from "./models"; import { CreateDomainRequest, CreateServerRequest, CreateSignatureRequest, DomainDetails, Domains, Server, ServerFilteringParameters, Serve...
the_stack
import {expect} from 'chai' import {queryToTable, queryToFromFluxResult} from '../../src' // @influxdata/influxdb-client uses node transport in tests (tests run in node), therefore nock is used to mock HTTP import nock from 'nock' import {Readable} from 'stream' import {InfluxDB} from '@influxdata/influxdb-client' impo...
the_stack
import { ChildProcess, fork, spawn, SpawnOptions } from 'child_process'; import * as path from 'path'; import { MongoBinary, MongoBinaryOpts } from './MongoBinary'; import debug from 'debug'; import { assertion, uriTemplate, isNullOrUndefined, killProcess, ManagerBase, checkBinaryPermissions, } from './util...
the_stack
import { relative, dirname } from "path"; export interface IPosition { file?: string, column: number, line: number } /** Matches [0-9] */ export function characterIsNumber(char: string) { const charCode = char.charCodeAt(0); return 48 <= charCode && charCode <= 57; } /** * These are settings for...
the_stack
export namespace Enum { /** * */ export abstract class AbstractEnum { public value: string /** * */ constructor(value: string) { this.value = value } /** * */ toString(): string { return this.value } } /** * */ export class Command extends AbstractEnum { static readon...
the_stack
import { test } from 'tap' import { Client, errors } from '../../../' import { connection } from '../../utils' import FakeTimers from '@sinonjs/fake-timers' test('Basic', async t => { const MockConnection = connection.buildMockConnection({ onRequest (params) { return { body: { responses: ...
the_stack
import { GuildMember, integer, Internal, snowflake, timestamp, User } from '.' /** https://discord.com/developers/docs/resources/channel#channel-object-channel-structure */ export interface Channel { /** the id of this channel */ id: snowflake /** the type of channel */ type: integer /** the id of the guild ...
the_stack
import {Component, OnDestroy, OnInit} from '@angular/core'; import _countBy from 'lodash/countBy'; import _difference from 'lodash/difference'; import _groupBy from 'lodash/groupBy'; import _isEmpty from 'lodash/isEmpty'; import _map from 'lodash/map'; import _uniqBy from 'lodash/uniqBy'; import {catchError, takeUntil}...
the_stack
import { Constants } from '../constants'; import { Scope } from '../scope/scope'; import { Component } from './component'; import { ComponentInstance } from './component.instance'; export class CapivaraInstance { /** * @name capivara.components * @description Armazena os componentes criados */ public scop...
the_stack
import Long from "long"; import _m0 from "protobufjs/minimal"; import { Timestamp } from "../google/protobuf/timestamp"; import { Notification, ChannelMessage, Rpc } from "../api/api"; import { BoolValue, Int32Value, StringValue, } from "../google/protobuf/wrappers"; export const protobufPackage = "nakama.realti...
the_stack
import css from 'styled-jsx/css'; import KeyboardNumberInput from '../../keyboard-number-input'; import Slider from './slider'; import OptionsContainer from '../options-container'; import {useState, useEffect, useMemo} from 'react'; import * as stringMath from 'string-math'; import VideoMetadataContainer from '../video...
the_stack
import should from "should"; import Adapt, { AdaptElement, AnyState, Component, createStateStore, PrimitiveComponent, StateStore, } from "../src"; import * as st from "../src/state"; import { Empty, MakeGroup } from "./testlib"; type Update = AnyState | st.StateUpdater; interface StateUpdater...
the_stack
import { AbiItem, BurnDetails, ContractCall, EventEmitterTyped, LockAndMintTransaction, Logger, NullLogger, } from "@renproject/interfaces"; import { assert, assertType, fromHex, isDefined, isHex, Ox, payloadToABI, payloadToMintABI, SECONDS, sleep, ...
the_stack
import {BiMap} from 'bim' import {minBy} from 'lodash' import sleep from 'sleep-promise' import {FocalLength} from '..' import { Aperture, BatteryLevel, computeShutterSpeedSeconds, ConfigName, ExposureMode, ISO, WhiteBalance, } from '../configs' import {decodeIFD, IFDType} from '../IFD' import {ResCode} from '....
the_stack
import Dom from '../dom'; import Listeners from './listeners'; import Flipper from '../flipper'; import SearchInput from './search-input'; import EventsDispatcher from './events'; import { isMobileScreen, keyCodes, cacheable } from '../utils'; import ScrollLocker from './scroll-locker'; /** * Describe parameters for ...
the_stack
import { reduceField, ReducerID } from '..'; import { getFieldDisplayName } from '../field'; import { DataFrame, FieldType } from '../types/dataFrame'; import { DataFrameJSON } from './DataFrameJSON'; import { StreamingDataFrame } from './StreamingDataFrame'; describe('Streaming JSON', () => { describe('when called ...
the_stack
import { Vector2, Vector3, Matrix4, Texture } from "three"; export const rayMarchingVertexShaderSrc = [ // switch on high precision floats "#ifdef GL_ES", "precision highp float;", "#endif", "varying vec3 pObj;", "void main()", "{", " pObj = position;", " gl_Position = projectionMatrix * modelViewMa...
the_stack
import React, {useState} from "react"; import styles from "./custom-card.module.scss"; import {Card, Row, Col, Modal, Select} from "antd"; import {convertDateFromISO, getInitialChars, extractCollectionFromSrcQuery} from "../../../util/conversionFunctions"; import {CustomStepTooltips} from "../../../config/tooltips.conf...
the_stack
import { LoanToken } from '@defichain/whale-api-client/dist/api/loan' import { EnvironmentNetwork } from '../../../../../../shared/environment' import { checkCollateralDetailValues, checkVaultDetailValues } from '../../../../support/loanCommands' import { VaultStatus } from '../../../../../app/screens/AppNavigator/...
the_stack
import * as vscode from 'vscode'; import TelemetryReporter from '@vscode/extension-telemetry'; import { DocumentSelector, ExecuteCommandParams, ExecuteCommandRequest, LanguageClient, LanguageClientOptions, RevealOutputChannelOn, State, StaticFeature, ServerOptions, } from 'vscode-languageclient/node';...
the_stack
import * as React from 'react'; import { IconButton } from 'office-ui-fabric-react/lib/Button'; import { Panel, PanelType } from 'office-ui-fabric-react/lib/Panel'; import { Link } from 'office-ui-fabric-react/lib/Link'; import { Shimmer, ShimmerElementsGroup, ShimmerElementType } from 'office-ui-fabric-react/lib/Shim...
the_stack
import { MathUtil, Matrix, Quaternion, Vector3 } from "oasis-engine"; import { LiteUpdateFlagManager } from "./LiteUpdateFlagManager"; import { LiteUpdateFlag } from "./LiteUpdateFlag"; import { LiteColliderShape } from "./shape/LiteColliderShape"; import { LiteCollider } from "./LiteCollider"; /** * Used to implemen...
the_stack
import * as bodyParser from 'body-parser'; import * as morgan from 'morgan'; import * as bunyan from 'bunyan'; import * as cookieParser from 'cookie-parser'; import * as express from 'express'; import cookieSession = require('cookie-session'); import * as methodOverride from 'method-override'; import * as passport from...
the_stack
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext' import Database from '@ioc:Adonis/Lucid/Database' import CacheHelper from 'App/Helpers/CacheHelper' import UserServices from 'App/Services/UserServices' import UserValidator from 'App/Validators/UserValidator' import { CACHE_TAGS } from 'Contracts/cache...
the_stack
const page = figma.createPage() page.name = "Icons for export" figma.root.appendChild(page); let nodes if(figma.currentPage.selection && figma.currentPage.selection.length > 0) { // Go over nodes the user has selected nodes = figma.currentPage.selection } else { // Get all nodes that are components and begin with ...
the_stack
module android.graphics.drawable { import Rect = android.graphics.Rect; import PixelFormat = android.graphics.PixelFormat; import WeakReference = java.lang.ref.WeakReference; import Runnable = java.lang.Runnable; import StateSet = android.util.StateSet; import Canvas = android.graphics.Canvas; ...
the_stack
"use strict"; import { Server, Socket, Namespace } from ".."; import { createServer } from "http"; import fs = require("fs"); import { join } from "path"; import { exec } from "child_process"; import request from "supertest"; import expect from "expect.js"; import type { AddressInfo } from "net"; import * as io_v2 fro...
the_stack
import {API} from '../../src/schema/api'; import * as protos from '../../../protos'; import * as assert from 'assert'; import {afterEach, describe, it} from 'mocha'; import * as sinon from 'sinon'; import * as proto from '../../src/schema/proto'; describe('src/schema/api.ts', () => { it('should construct an API obje...
the_stack
import { Browser, EventHandler, createElement, EmitType } from '@syncfusion/ej2-base'; import { ILoadedEventArgs, ILoadEventArgs, IAnimationCompleteEventArgs } from '../../src/linear-gauge/model/interface'; import { LinearGauge } from '../../src/linear-gauge/linear-gauge'; import { MouseEvents } from '../base/events.sp...
the_stack
import { BadRequestException, ConflictException, Injectable, NotFoundException, UnauthorizedException, UnprocessableEntityException, } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import type { Prisma } from '@prisma/client'; import { Email, MfaMethod, User } from '@prisma/client';...
the_stack
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; import { AuditManagerClient } from "./AuditManagerClient"; import { AssociateAssessmentReportEvidenceFolderCommand, AssociateAssessmentReportEvidenceFolderCommandInput, AssociateAssessmentReportEvidenceFolderCommandOutput, } from "./com...
the_stack
import {Random} from "./simjs"; export class Project { constructor(public startYear: int, public totalAmount: number) {} } export class SubBucket { min = Number.MAX_SAFE_INTEGER; max = Number.MIN_SAFE_INTEGER; empty = true; } export class Bucket { min = Number.MAX_SAFE_INTEGER; max = Number.M...
the_stack
import { assert } from "chai"; import { mount, ReactWrapper, shallow } from "enzyme"; import * as React from "react"; import * as sinon from "sinon"; import { Menu } from "@blueprintjs/core"; import { IQueryListProps } from "@blueprintjs/select"; import { IFilm, renderFilm, TOP_100_FILMS } from "../../docs-app/src/co...
the_stack
* @module Content */ import { assert, Id64String } from "@itwin/core-bentley"; import { ClassInfo, ClassInfoJSON, CompressedClassInfoJSON, RelatedClassInfo, RelatedClassInfoJSON, RelatedClassInfoWithOptionalRelationship, RelatedClassInfoWithOptionalRelationshipJSON, RelationshipPath, RelationshipPathJSON, } from ...
the_stack
import { assert, log, logIf, LogLevel } from './auxiliaries'; import { byteSizeOfFormat } from './formatbytesizes'; import { AllocationRegister } from './allocationregister'; import { ContextMasquerade } from './contextmasquerade'; import { WEBGL1_EXTENSIONS, WEBGL2_DEFAULT_EXTENSIONS, WEBGL2_EXTENSIONS } from './exte...
the_stack
import * as firestore from '@google-cloud/firestore'; import {CallOptions} from 'google-gax'; import {Duplex, PassThrough, Transform} from 'stream'; import {URL} from 'url'; import {google} from '../protos/firestore_v1_proto_api'; import {ExponentialBackoff, ExponentialBackoffSetting} from './backoff'; import {BulkW...
the_stack
import {CollectionViewer, DataSource} from '@angular/cdk/collections'; import {CdkTableModule} from '@angular/cdk/table'; import { createFakeEvent, createMouseEvent, dispatchMouseEvent, wrappedErrorMessage } from '@angular/cdk/testing'; import {Component, ElementRef, ViewChild} from '@angular/core'; import {asy...
the_stack
import { AbortSignal } from "abort-controller"; import timeoutSignal from "timeout-signal"; import * as debug_ from "debug"; import { promises as fsp } from "fs"; import * as http from "http"; import * as https from "https"; import { AbortError, Headers, RequestInit, Response } from "node-fetch"; import { IHttpGetR...
the_stack
import crypto from 'crypto'; import Ejs from 'ejs'; import fs from 'fs'; import { IncomingMessage, ServerResponse } from 'http'; import path from 'path'; import serialize from 'serialize-javascript'; import Vue from 'vue'; import { BundleRenderer, createBundleRenderer, createRenderer, Renderer as VueRen...
the_stack
import * as ecr from '@aws-cdk/aws-ecr'; import * as assets from '@aws-cdk/aws-ecr-assets'; import * as iam from '@aws-cdk/aws-iam'; import * as cdk from '@aws-cdk/core'; import { Construct } from 'constructs'; import { CfnService } from './apprunner.generated'; /** * The image repository types */ export enum ImageR...
the_stack
import { Provider, TransactionResponse } from '@ethersproject/abstract-provider' import { EtherscanProvider, getDefaultProvider } from '@ethersproject/providers' import { Address, Balance, BaseXChainClient, FeeOption, FeeType, Fees, Network, Tx, TxHash, TxHistoryParams, TxParams, TxsPage, XCha...
the_stack
* @packageDocumentation * @module asset */ import { EDITOR, TEST } from 'internal:constants'; import { ccclass, serializable } from 'cc.decorator'; import { TextureType, TextureInfo } from '../gfx'; import { ImageAsset } from './image-asset'; import { PresumedGFXTextureInfo, SimpleTexture } from './simple-texture'; ...
the_stack
import React from 'react'; import axios from 'axios'; import {Table, Icon, Tooltip} from 'antd'; import {PaginationConfig} from 'antd/lib/pagination'; import moment from 'moment'; import {ReplicationIcon} from 'utils/themeIcons'; import StorageBar from 'components/storageBar/storageBar'; import { DatanodeState, Dat...
the_stack
/// <reference path="core/ResourceItem.ts" /> /// <reference path="core/ResourceConfig.ts" /> /// <reference path="core/ResourceLoader.ts" /> /// <reference path="events/ResourceEvent.ts" /> /// <reference path="analyzer/BinAnalyzer.ts" /> /// <reference path="analyzer/ImageAnalyzer.ts" /> /// <reference path="analyzer...
the_stack
export declare type callback = (e?: Error, respBody?: any, respInfo?: any) => void; export declare namespace auth { namespace digest { class Mac { accessKey: string; secretKey: string; constructor(accessKey?: string, secretKey?: string); } } } export declar...
the_stack
import Group from "./Group"; import MakiObject from "./MakiObject"; import { findDescendantByTypeAndId, getMousePosition, unimplementedWarning, } from "../utils"; import * as Actions from "../Actions"; import * as Selectors from "../Selectors"; import { ModernStore } from "../types"; import Layout from "./Layout"...
the_stack
import * as _ from 'lodash'; import { expect } from 'chai'; import * as validation from '../src/lib/validation'; const almostTooLongText = _.times(255, () => 'a').join(''); describe('validation', () => { describe('checkBooleanish', () => { it('returns true for a truthy or falsey value', () => { expect(validati...
the_stack
import { DoData, EditorClipboard, STATE_CLIPBOARD } from "./EditorClipboard"; import { File } from "../common/File"; import fs from "fs"; import { Logger } from "../common/Logger"; import { StringUtils, StringLineToken } from "../common/StringUtils"; import { FileReader, convertAttrToStatMode } from "../panel/FileReade...
the_stack
import { Component, OnInit, ComponentFactoryResolver, ReflectiveInjector, ElementRef ,EventEmitter, Output, Inject, Input,ViewChild} from '@angular/core'; import {FilterTagsComponent} from '../../secondary-components/filter-tags/filter-tags.component'; import { Filter } from '../../secondary-components/jazz-table/jazz...
the_stack
import { responseType } from '../../content/modules/content-getChapters'; import { Code } from '../../content/types/Code'; import { Footnote } from '../../content/types/Footnote'; import { Img } from '../../content/types/Img'; import { reConfigCollectionType } from '../../options/options-utils'; import { Item } from '....
the_stack
import { Gantt } from '../base/gantt'; import { getValue, Internationalization, isNullOrUndefined } from '@syncfusion/ej2-base'; import { Tooltip, TooltipEventArgs } from '@syncfusion/ej2-popups'; import { BeforeTooltipRenderEventArgs, ITaskData } from '../base/interface'; import { TaskbarEdit } from '../actions/taskba...
the_stack
import {Observable} from "data/observable"; import {ObservableArray} from "data/observable-array"; import TypeUtils = require("utils/types"); class Batch implements IBatch { private _firstOperation: BatchOperation; private _invokeFinishedCheckForAll: boolean = false; private _invokeStrategy: InvokeS...
the_stack
import type { BaseCanvas, BaseCanvasElement, BaseCanvasRenderingContext2D } from './BaseCanvas'; export const fontRegExp = /([\d.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q)/i; export const getFontHeight = (() => { const kCache = new Map<string, number>(); return (font: string): number => { // If it was already parsed...
the_stack
import { clone } from 'gl-vec2'; import { QuaggaContext } from '../QuaggaContext'; import _initBuffers from './initBuffers'; import _getViewPort from './getViewPort'; import ImageWrapper from '../common/image_wrapper'; import BarcodeDecoder from '../decoder/barcode_decoder'; import _initCanvas from './initCanvas'; impo...
the_stack
import { Primitive } from './aliases-and-guards'; /** * Credits to all the people who given inspiration and shared some very useful code snippets * in the following github issue: https://github.com/Microsoft/TypeScript/issues/12215 */ /** * SetIntersection (same as Extract) * @desc Set intersection of given unio...
the_stack
import * as expect from 'expect'; import * as fc from 'fast-check'; import { Scanner } from '../../../cursor-doc/clojure-lexer'; import { toplevel, validPair } from '../../../cursor-doc/clojure-lexer' const MAX_LINE_LENGTH = 100; // fast-check Arbritraries // TODO: single quotes are valid in real Clojure, but Calva ...
the_stack
import * as fs from 'fs'; import * as path from 'path'; import * as uuid from 'uuid/v4'; import chalk from 'chalk'; import { IEntityConfig, IRelation, IQuery, IField, IApplyOptions, IFieldUpdate } from '@materia/interfaces'; import { App } from '../app'; import { MateriaError } from '../error'; import { MigrationType ...
the_stack
import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** * An HttpsHealthCheck resource. This resource defines a template for how * individual VMs should be checked for health, via HTTPS. * * > **Note:** gcp.compute.HttpsHealthCheck is a legacy health check. * The newer [gcp.comput...
the_stack
import { DiffSelection, DiffSelectionType } from './diff' /** * The status entry code as reported by Git. */ export enum GitStatusEntry { Modified = 'M', Added = 'A', Deleted = 'D', Renamed = 'R', Copied = 'C', Unchanged = '.', Untracked = '?', Ignored = '!', UpdatedButUnmerged = 'U', } /** The en...
the_stack
import azureCore = require("@azure/core-http"); import CorrelationIdManager = require("./CorrelationIdManager"); import ConnectionStringParser = require("./ConnectionStringParser"); import Logging = require("./Logging"); import Constants = require("../Declarations/Constants"); import http = require("http"); import htt...
the_stack
import { getFromId, InvalidTypeError, parseAndValidate, parseParameter } from '#lib/customCommands'; import { CustomCommand, GuildSettings, readSettings, writeSettings } from '#lib/database'; import { LanguageKeys } from '#lib/i18n/languageKeys'; import { SkyraCommand, SkyraPaginatedMessage } from '#lib/structures'; im...
the_stack
import { ConcreteRequest } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type MyCollectionArtworkArtistAuctionResultsTestsQueryVariables = {}; export type MyCollectionArtworkArtistAuctionResultsTestsQueryResponse = { readonly artwork: { readonly " $fragmentRefs": FragmentRefs<"M...
the_stack
import { $enum, EnumValueVisitor, EnumValueVisitorWithNull, EnumValueVisitorWithUndefined, EnumValueVisitorWithNullAndUndefined } from "../src"; enum RGB { R = "r", G = "g", B = "b" } describe("visitValue (string)", () => { const handlerMockR = jest.fn((value: RGB.R) => { r...
the_stack
import { Component, EventEmitter, OnInit } from '@angular/core'; import { NgbActiveModal, NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import { ExternalSourceEntry } from '../../../../../../../core/shared/external-source-entry.model'; import { MetadataValue } from '../../../../../../../core/shared/metadat...
the_stack
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; import { EmptyOperationCommand, EmptyOperationCommandInput, EmptyOperationCommandOutput, } from "./commands/EmptyOperationCommand"; import { EndpointOperationCommand, EndpointOperationCommandInput, EndpointOperationCommandOutput, ...
the_stack
* marked - a markdown parser * Copyright (c) 2011-2013, Christopher Jeffrey. (MIT Licensed) * https://github.com/chjj/marked */ import React from "react" import users from "../../pages/users" import Prism from "../Prism/index" import Header from "./Header" import MiniGraphiQL from "./MiniGraphiQL" import { StarWar...
the_stack
import '../test/setup'; import { expect } from 'chai'; import { spy, stub } from 'sinon'; import { setTokenAutoRefreshEnabled, initializeAppCheck, getToken, onTokenChanged } from './api'; import { FAKE_SITE_KEY, getFullApp, getFakeApp, getFakeGreCAPTCHA, getFakeAppCheck, removegreCAPTCHAScriptsOnPag...
the_stack
import classNames from 'classnames' import qsa from 'dom-helpers/querySelectorAll' import PropTypes from 'prop-types' import React, { useCallback, useRef, useState } from 'react' import { useUncontrolled } from 'uncontrollable' import Button from './Button' import DateTimePartInput from './DateTimePartInput' import { t...
the_stack
import "./helpers/dotenv_helper"; import { envkeyFetch } from "./helpers/fetch_helper"; import { getTestId, resetTestId, getState, dispatch, hostUrl, } from "./helpers/test_helper"; import { getUserEncryptedKeys } from "@api_shared/blob"; import { query, getDb } from "@api_shared/db"; import * as R from "ramd...
the_stack
import { IExecSyncResult } from 'azure-pipelines-task-lib/toolrunner'; import { IExecSyncOptions } from 'azure-pipelines-task-lib/toolrunner'; import * as azdev from "azure-devops-node-api"; import * as taskAgentAPI from "azure-devops-node-api/TaskAgentApi" import path = require("path"); import tl = require("azure-pi...
the_stack
import * as iam from '@aws-cdk/aws-iam'; import * as secretsmanager from '@aws-cdk/aws-secretsmanager'; import { IEngine } from './engine'; import { IOptionGroup } from './option-group'; import { Construct } from '@aws-cdk/core'; /** * The options passed to {@link IInstanceEngine.bind}. * * @stability stable */ exp...
the_stack