text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import React, { useMemo } from 'react'; import { Checkbox, Tooltip } from 'antd'; import { useTable } from 'react-table'; import refractor, { RefractorNode, AST } from 'refractor'; /** @jsx jsx */ import { css, jsx } from '@emotion/core'; import createElement from './create-element'; const codeDeletionStyle = css` ...
the_stack
import { useApolloClient } from "@apollo/client"; import classNames from 'classnames'; import React, { useCallback, useEffect, useState } from 'react'; import { AnalyticsContext, useTracking } from "../../lib/analyticsEvents"; import { userHasNewTagSubscriptions } from "../../lib/betas"; import { subscriptionTypes } fr...
the_stack
import { ConcreteRequest } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type NewWorksForYouRailQueryVariables = { cursor?: string | null | undefined; count: number; }; export type NewWorksForYouRailQueryResponse = { readonly me: { readonly " $fragmentRefs": FragmentRefs...
the_stack
import * as React from "react"; import { useQuery } from "relay-hooks"; import type { Area } from "react-easy-crop/types"; import useMeasure from "react-use-measure"; import { Button, FormControl, Slider, SliderFilledTrack, SliderThumb, SliderTrack, Stack, Text, FormLabel, Input, Image, Grid, ...
the_stack
import { methodCall } from "@okikio/manager"; import { animate, tweenAttr } from "@okikio/animate"; import { interpolate } from "polymorph-js"; import type { IAnimationOptions, TypePlayStates } from "@okikio/animate"; // I added extra code to the demo to support Chrome 77 and below let playbackFn = (containerSel, ani...
the_stack
////// DEFAULT INTERFACES ////interface IFoo { //// n: number; //// s: string; //// f(i: number, s: string): string; //// a: number[]; ////} ////interface IBar { //// foo: IFoo; ////} ////// CONTEXT: Class property declaration ////class C1T5 { //// /*1*/foo: (i: number, s: string) => numbe...
the_stack
import * as child_process from "child_process"; import * as os from "os"; type EmptyCallback = () => void | Promise<void>; type ErrorCallback = (err?: string) => void | Promise<void>; type GenericCallback<T> = (err?: string | null, result?: T) => void | Promise<void>; type SimpleCallback<T> = (result?: T) => void | Pr...
the_stack
import React, { Component } from 'react' import PropTypes from 'prop-types' import { expect, StoryConfig } from '..' import { generateComponentExamples } from '../utils/generateComponentExamples' type Props = { variant: 'circle' | 'rectangle' show: boolean message: string | null children: null } class TestCo...
the_stack
import { Component, EventEmitter, HostListener, Input, Output, ViewChild } from '@angular/core'; import * as moment from 'moment'; import * as d3 from 'd3'; @Component({ selector: 'wikift-contribution', templateUrl: './wikift-contribution.component.html', styles: [` :host { position: relative; ...
the_stack
import * as cp from 'child_process'; import * as fs from 'fs'; import { DocumentFormattingEditProvider, DocumentRangeFormattingEditProvider, ExtensionContext, Range, TextDocument, TextEdit, Uri, languages, window } from 'vscode'; import { Configuration } from '../configuration/Config...
the_stack
import * as assert from "assert"; import * as debug from "debug"; import * as fs from "fs"; import * as llvm from "llvm-node"; import * as path from "path"; import * as ts from "typescript"; import {CompilationContext} from "../../compilation-context"; import {wasmOpt} from "../../external-tools/binaryen-opt"; import ...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement } from "../shared"; /** * Statement provider for service [codedeploy](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awscodedeploy.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/...
the_stack
import { OperationVariables } from '@apollo/client/core' import { useSubscription } from '../../src' import { ExampleDocument, ExampleUpdatedSubscription, ExampleUpdatedSubscriptionVariables, ExampleTypedSubscriptionDocument, } from '../fixtures/graphql-example-types' import { assertExactType } from './assertio...
the_stack
import { Loki } from "../../loki/src/loki"; import { StorageAdapter } from "../../common/types"; import { PLUGINS } from "../../common/plugin"; /** * An adapter for adapters. Converts a non reference mode adapter into a reference mode adapter * which can perform destructuring and partitioning. Each collection will b...
the_stack
import React from "react"; import { render } from "react-dom"; import clone from "clone-deep"; import { act, Simulate } from "react-dom/test-utils"; import { useConnect } from "frontity"; import useInfiniteScroll from "../../use-infinite-scroll"; import * as useArchiveInfiniteScroll from "../"; jest.mock("../../use-in...
the_stack
declare namespace JQueryTouchSwipe { /** * Event handler for pointer related events. */ export type PointerHandler = /** * @param event The original event object * @param target The element clicked on. */ (this: HTMLElement, event: JQuery.TriggeredEvent, tar...
the_stack
import { CommonModule } from '@angular/common'; import { InjectionToken, PipeTransform, Provider, Type } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { BrowserModule, HAMMER_GESTURE_CONFIG } from '@angular/platform-browser'; import { RecursivePartial } from './models/r...
the_stack
import React, { useState, useCallback, useRef, useMemo } from 'react'; import { UUIFunctionComponent, UUIFunctionComponentProps } from '../../core'; import { createComponentPropTypes, PropTypes, ExtraPropTypes } from '../../utils/createPropTypes'; import { YearMonthSelect as UUIYearMonthSelect } from './YearMonthSelect...
the_stack
import {Constructor} from '../../../../types/GlobalTypes'; import {BaseController} from './_BaseController'; import {Material} from 'three/src/materials/Material'; import {Texture} from 'three/src/textures/Texture'; import {BaseMatNodeType} from '../_Base'; import {ParamConfig} from '../../utils/params/ParamsConfig'; i...
the_stack
module Cats.Util { /** * Some help to find based on the file name extension either the computer language (for the editor) * or the mimetype (for the icons in the file navigator) */ export class MimeTypeFinder { /** * Find the mimetype for a file name */ ...
the_stack
import { findPackageDirs } from "@adpt/utils"; import * as path from "path"; import * as vm from "vm"; // tslint:disable-next-line:variable-name no-var-requires const Module = require("module"); import * as ld from "lodash"; import { InternalError, isError, ProjectCompileError, ProjectRunError, Thr...
the_stack
module Kiwi.Input { /** * Handles the dispatching and management of touch based events for the game. When the Touch manager is created TEN finger objects are created and used when the user interacts with the screen. Those finger are what you can use to create games that make the most out of multitouch events. * ...
the_stack
import react = require('react'); import react_dom = require('react-dom'); import style = require('ts-style'); import colors = require('./colors'); import { div } from '../base/dom_factory'; import fonts = require('./fonts'); import reactutil = require('../base/reactutil'); import ripple = require('./ripple'); import s...
the_stack
import { $, $Events } from '../$' import { SELF } from '../../constant/SELF' import { DuplicatedInputFoundError } from '../../exception/DuplicatedInputFoundError' import { DuplicatedOutputFoundError } from '../../exception/DuplicatedOutputFoundError' import { InputNotFoundError } from '../../exception/InputNotFoundErro...
the_stack
'use strict'; import { Store as RelayModernStore, RecordSource, Environment as RelayModernEnvironment } from '../src'; import { Network as RelayNetwork, Observable as RelayObservable, createOperationDescriptor, createReaderSelector } from 'relay-runtime'; import { createPersistedStorage } from './Utils'; const { gener...
the_stack
// IMPORTANT // This file was generated by https://github.com/Bolisov/google-api-typings-generator. Please do not edit it manually. // In case of any problems please post issue to https://github.com/Bolisov/google-api-typings-generator // Generated from: https://storagetransfer.googleapis.com/$discovery/rest?version=v1...
the_stack
import {ObjectFormat, FieldType, ConceptType} from '@google/dscc'; /** * This file provides the mock "data" received * by your visualization code when you develop * locally. * */ export const message: ObjectFormat = { tables: { DEFAULT: [ { dimID: ['20160228'], metricID: [5.4972821262...
the_stack
import * as path from "path"; import { DataType } from "./dataType"; import { Scope, unscopedPrecedence } from "./scope"; import { Location, TextDocument, Range, Uri, Position, WorkspaceConfiguration, workspace } from "vscode"; import { getCfScriptRanges, isCfcFile, getClosingPosition } from "../utils/contextUtil"; imp...
the_stack
import * as chai from 'chai'; import {Server} from '../../src/server'; import {TestHelper} from '../TestHelper'; import {User} from '../../src/models/User'; import {WhitelistUser} from '../../src/models/WhitelistUser'; import {IWhitelistUser} from '../../../shared/models/IWhitelistUser'; import {FixtureUtils} from '../...
the_stack
import {isPlainObject} from 'lodash'; import {defaultMergeItem, initialState as defaultInitialState} from '../defaults'; import {find, getGerundName, getIdKey, isFunction, isObject, isString, ucfirst} from '../helpers/util'; import {getActionType, getTypesScope} from '../types'; import { Action, ConfigActionsOption...
the_stack
import { chain, Decoder, DecoderError, number, stringUnion, } from "tiny-decoders"; // It's tempting to put a random number or something in the ID, but in case // something goes wrong and a rogue container is left behind it's always // possible to find and remove it if the ID is known. Also, RendererProgram ...
the_stack
// The MIT License (MIT) // // vs-deploy (https://github.com/mkloubert/vs-deploy) // Copyright (c) Marcel Joachim Kloubert <marcel.kloubert@gmx.net> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // ...
the_stack
import React, {RefObject} from 'react'; import GridVisualization from './GridVisualization'; import GridForeground from './GridForeground'; import Stats from './Stats'; import GridBackground from './GridBackground'; import {Node} from '../../pathfinding/algorithms/Node'; import PathfinderBuilder from '../../pathfinding...
the_stack
'use strict'; import {Position, Range} from 'vscode-languageserver'; // 'sticky' flag is not yet supported :() const lineEndingRE = /([^\r\n]*)(\r\n|\r|\n)?/; export interface RangeDelta { start: Position; end: Position; linesDelta: number; charactersDelta: number; // delta for positions on the same line as t...
the_stack
import { Canvas } from "./Canvas"; import { join, basename } from "path"; import { promise as glob } from "glob-promise"; import { URL } from "url"; import { cloneJson, compare, fileExists, formatMetadata, getLabel, getThumbnail, hasManifestsYml, log, readYml, warn, writeJson, } from "./Utils"; //...
the_stack
// eslint-disable-next-line @typescript-eslint/no-namespace export namespace OneAuth { /// Levels of logging. Defines the priority of the logged message export enum LogLevel { /// Available to fully disable logging LogLevelNoLog = 1, /// Default LogLevelError = 2, LogLevelWarning = 3, LogLev...
the_stack
import { FirebaseFunctionsRateLimiterConfiguration } from "./FirebaseFunctionsRateLimiterConfiguration"; import { GenericRateLimiter } from "./GenericRateLimiter"; import { PersistenceProviderMock } from "./persistence/PersistenceProviderMock"; import { TimestampProviderMock } from "./timestamp/TimestampProviderMock.te...
the_stack
'use strict' // tslint:disable:no-var-requires no-require-imports // This line should always be right on top. // tslint:disable:no-any require('reflect-metadata') // Initialize source maps (this must never be moved up nor further down). import { Disposable, ExtensionContext, languages, Memento, OutputChannel, Uri, wor...
the_stack
import { ConcreteRequest } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type Shipping_Test_QueryVariables = {}; export type Shipping_Test_QueryResponse = { readonly me: { readonly conversation: { readonly orderConnection: { readonly edges: ReadonlyAr...
the_stack
import { AnimationNode } from "../types"; import { getReducedInterpolationTree } from "../getInterpolationTree"; import { Metrics } from "../../../Types"; import * as Constants from "../../../Types/Constants"; import { DefaultTime } from "../../../Utilities"; describe("getInterpolationTree / duration", () => { it("s...
the_stack
import { Map } from 'immutable'; import { LinkRecord } from '../../constants/flowdesigner.model'; import * as Link from './link'; const isNotLinkException = `Linkrecord should be a Linkrecord, was given """ object """ Map {} """ you should use Link module functions to create and transform Link`; const protectedValueE...
the_stack
import { assert } from 'chai' import { Group } from '../src/Group' import { Test } from '../src/Test' import { TimeoutException } from '../src/Exceptions' import { getFn, sleep } from './helpers' describe('Group', () => { it('should register the tests to be invoked later', async () => { const group = new Group('...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/snapshotOperationsMappers"; import * as Parameters from "../models/parameters"; import { FaceClientContext } from "../faceClientContext"; /** Class representing a SnapshotOperations. */ export class Sn...
the_stack
import * as React from "react" import * as ReactDOM from "react-dom" import * as tconf from './BlocklyToolbox/ToolboxUtils' import 'semantic-ui-css/semantic.min.css' import './BlocklyToolbox/toolbox.less' import {CreateFunctionDialog} from "./CreateFunction"; import {ToolboxCategorySpecial} from "./BlocklyToolbox/Too...
the_stack
import { Service, ServiceConfig, ServiceOptions, util, } from '@google-cloud/common'; import * as promisify from '@google-cloud/promisify'; import arrify = require('arrify'); import * as assert from 'assert'; import {describe, it, before, beforeEach} from 'mocha'; import * as proxyquire from 'proxyquire'; impor...
the_stack
import { expect, test } from 'vitest' import { transformWithEsbuild } from '../../plugins/esbuild' import { traverseHtml } from '../../plugins/html' import { ssrTransform } from '../ssrTransform' test('default import', async () => { expect( ( await ssrTransform( `import foo from 'vue';console.log(f...
the_stack
import { Fragment, ReactNode, forwardRef, useState, HTMLAttributes, useMemo, useContext, } from 'react'; import { Editor, Transforms } from 'slate'; import { applyRefs } from 'apply-ref'; import { jsx, useTheme } from '@keystone-ui/core'; import { useControlledPopover } from '@keystone-ui/popover'; impor...
the_stack
import ReactReconciler from "react-reconciler"; import Reconciler, { OpaqueHandle } from "react-reconciler"; import { Action } from "./interfaces"; import { SearchOptions } from "./components"; type Type = any; type Props = JSX.ComponentProps & { [key: string]: any; }; type Container = any; type Instance = any; typ...
the_stack
import { mean, cross, histogram, quantile } from 'd3-array'; import { scaleLinear } from 'd3-scale'; import { confidenceInterval } from './confidence-interval'; import { toNearestHundreth } from './utils'; export interface Bucket { min: number; max: number; count: { control: number; experiment: number; ...
the_stack
import '../../plugins/gr-endpoint-decorator/gr-endpoint-decorator'; import '../../plugins/gr-endpoint-param/gr-endpoint-param'; import '../../shared/gr-button/gr-button'; import '../../shared/gr-editable-label/gr-editable-label'; import '../gr-default-editor/gr-default-editor'; import '../../../styles/shared-styles'; i...
the_stack
import 'chrome://resources/cr_elements/cr_button/cr_button.m.js'; import 'chrome://resources/cr_elements/cr_icon_button/cr_icon_button.m.js'; import 'chrome://resources/cr_elements/cr_icons_css.m.js'; import 'chrome://resources/cr_elements/cr_link_row/cr_link_row.js'; import 'chrome://resources/cr_elements/cr_toggle/cr...
the_stack
import { Activity, ActivityTypes, BotFrameworkAdapter, RecognizerResult } from 'botbuilder'; import { LuisRecognizer } from 'botbuilder-ai'; import { DialogContext, DialogTurnResult, WaterfallStepContext, WaterfallDialog, TextPrompt, PromptOptions, ComponentDialog } from 'bot...
the_stack
import { Vector3, Box3, Matrix3, Matrix4 } from 'three' import { WorkerRegistry, ColormakerRegistry } from '../globals' import { defaults } from '../utils' import WorkerPool from '../worker/worker-pool' import { VolumePicker } from '../utils/picker' import { uniformArray, serialArray, arrayMin, arrayMax, arraySum,...
the_stack
import 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.js'; import 'chrome://resources/cr_elements/cr_icon_button/cr_icon_button.m.js'; import 'chrome://resources/cr_elements/cr_lazy_render/cr_lazy_render.m.js'; import 'chrome://resources/cr_elements/shared_style_css.m.js'; import 'chrome://resources/poly...
the_stack
import * as vscode from "vscode"; import { glo, TyInLineInDepthInQueueInfo, TyDepthDecInfo } from "./extension"; import { ISingleLineBox } from "./renderingTools"; import { notYetDisposedDecsObject } from "./utils2"; // old renderer function // eslint-disable-next-line @typescript-eslint/naming-convention export const...
the_stack
import { Graph, Rbac, Model } from "../../types"; import * as R from "ramda"; import memoize from "../../lib/utils/memoize"; import { getConnectedAppsForBlock } from "./app_blocks"; import { getEnvironmentsByEnvParentId, getAppRoleEnvironmentRolesByComposite, getAppUserGrantsByComposite, getAppUserGroupsByCompo...
the_stack
import * as React from 'react'; import { render, fireEvent, act, screen } from '@testing-library/react'; import { ToastContainer } from '../../src/components/ToastContainer'; import { toast, eventManager, Event } from '../../src/core'; import { ToastOptions } from '../../src/types'; import { triggerAnimationEnd } fro...
the_stack
import Web3 from 'web3'; import ERC20ABI from '../contracts/abi/erc-20'; import { AbiItem } from 'web3-utils'; import { ContractOptions } from 'web3-eth-contract'; import { gasEstimate, executeTransaction, getNextNonceFromEstimate, Operation, gasInToken } from './utils/safe-utils'; import { signSafeTx } from './utils/s...
the_stack
import { useCallback, useContext, useEffect, useMemo, useState } from 'react'; import { Link } from 'react-router-dom'; import { useNavigationHook } from '../../hooks/Navigation'; import { ALL_ROUTER_TYPES } from '../../router/Types'; import MilvusGrid from '../../components/grid/Grid'; import CustomToolBar from '../.....
the_stack
import {Authorized, CurrentUser, ForbiddenError, Get, JsonController, Param, UseBefore} from 'routing-controllers'; import passportJwtMiddleware from '../security/passportJwtMiddleware'; import {Progress} from '../models/progress/Progress'; import {IProgress} from '../../../shared/models/progress/IProgress'; import {IU...
the_stack
import React, { ClipboardEvent, createRef, KeyboardEvent } from 'react'; import EMOJI_REGEX from 'emojibase-regex'; import { IContent, MatrixEvent, IEventRelation } from 'matrix-js-sdk/src/models/event'; import { DebouncedFunc, throttle } from 'lodash'; import { EventType, RelationType } from "matrix-js-sdk/src/@types/...
the_stack
import { bench, BenchmarkRunError, BenchmarkRunProgress, clearBenchmarks, ProgressState, runBenchmarks, } from "./bench.ts"; import { assert, assertEquals, assertRejects, assertThrows, } from "./asserts.ts"; Deno.test({ name: "benching", fn: async function () { bench(function forIncrementX...
the_stack
import { FocusMonitor } from '@angular/cdk/a11y'; import { coerceBooleanProperty } from '@angular/cdk/coercion'; import { SelectionModel } from '@angular/cdk/collections'; import { AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, Directive, ElementRef...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * Manages a Container Registry Task. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"...
the_stack
import { isPresent, isBlank, isFunction, toObject, toPath, isJsObject, isIndex, isKey, isArray, isArguments } from './lang'; const INFINITY = 1 / 0; /** * Wraps Javascript Objects */ export class StringMapWrapper { static create(): {[k: /*any*/ string]: any} { // Note: We are not using Obj...
the_stack
import * as React from 'react'; import { getLayerStyles } from './KeytipLayer.styles'; import { Keytip } from '../../Keytip'; import { Layer } from '../../Layer'; import { classNamesFunction, getDocument, arraysEqual, warn, isMac, EventGroup, Async, initializeComponentRef, KeyCodes, } from '../../Util...
the_stack
import '../../../src'; import G6 from '../../../src'; const div = document.createElement('div'); div.id = 'drag-combo-spec'; document.body.appendChild(div); G6.registerCombo( 'custom-combo', { draw: (cfg, group) => { const style = cfg.style || {}; const keyShape = group.addShape('circle', { ...
the_stack
import getValue from 'get-value' import setValue from 'set-value' import { objectHash } from '@jbrowse/core/util' import { isSource, isTrack } from './util' import { Config, Track, Source, Store, Names } from './types' export function parseJB1Json(config: Config | string, url: string): Config { if (typeof config ===...
the_stack
import merge from 'lodash/merge'; import Language from './language'; import { BlockModelInterface, CardEntry, CardModelInterface, ClipboardInterface, CommandInterface, ConversionInterface, EditorInterface, EditorOptions, EventInterface, EventListener, InlineModelInterface, LanguageInterface, MarkModelInter...
the_stack
import {Axis, DynamicCstr} from '../rule_engine/dynamic_cstr'; import {MathCompoundStore} from '../rule_engine/math_simple_store'; import {SpeechRuleEngine} from '../rule_engine/speech_rule_engine'; import {ClearspeakPreferences} from '../speech_rules/clearspeak_preferences'; import {Debugger} from './debugger'; import...
the_stack
import type { languages } from '../fillers/monaco-editor-core'; export const conf: languages.LanguageConfiguration = { comments: { lineComment: '--', blockComment: ['/*', '*/'] }, brackets: [ ['{', '}'], ['[', ']'], ['(', ')'] ], autoClosingPairs: [ { open: '{', close: '}' }, { open: '[', close: ']'...
the_stack
import YAML from 'yaml'; import { YAMLConfiguration, YAMLConfigurationPage, YAMLConfigurationMenuTree, YAMLConfigurationDependencyMap, YAMLConfigurationGlobalMap, YAMLConfigurationGroupMap, YAMLConfigurationResourceMap, YAMLConfigurationPageTree, YAMLConfigurationMeta, YAMLConfigurationUsageContext,...
the_stack
import './folder_node.js'; import './item.js'; import {assert} from 'chrome://resources/js/assert.m.js'; import {EventTracker} from 'chrome://resources/js/event_tracker.m.js'; import {isTextInputElement} from 'chrome://resources/js/util.m.js'; import {changeFolderOpen, deselectItems, selectItem} from './actions.js'; ...
the_stack
import { randomIntegerBetween } from '../../math' export type Size = { width: number height: number } export type Point = { x: number y: number } export type Line = { x0: number y0: number x1: number y1: number } export type Circle = { x: number y: number r: number } export type Rect = { x:...
the_stack
import axios, { AxiosRequestConfig, AxiosResponse } from "axios" import { BlockchainInfoResult, BlockDetailsResult, BlockHeaderResult, ChainTipResult, MempoolEntryResult, MempoolInfoResult, TxOutResult } from "bitcoin-com-rest" import { REST_URL } from "./BITBOX" export class Blockchain { public restUR...
the_stack
import { Component, OnDestroy, OnInit } from '@angular/core'; import { HttpErrorResponse, HttpHeaders, HttpResponse } from '@angular/common/http'; import { ActivatedRoute, Router } from '@angular/router'; import { combineLatest, Subject, Subscription } from 'rxjs'; import { onError } from 'app/shared/util/global.utils'...
the_stack
import { State, StateTransform, StateTransformer, StateAction, StateObject, StateObjectCell } from '../../mol-state'; import * as React from 'react'; import { PurePluginUIComponent } from '../base'; import { ParameterControls, ParamOnChange } from '../controls/parameters'; import { PluginContext } from '../../mol-plugi...
the_stack
import { ConcreteRequest } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type NearbyGalleriesRailRendererQueryVariables = { near: string; }; export type NearbyGalleriesRailRendererQueryResponse = { readonly partnersConnection: { readonly edges: ReadonlyArray<{ re...
the_stack
import timekeeper from 'timekeeper' import { RequestHandler } from 'express' import { MiddlewareTestHarness } from '../../../../../../tests/utils' import { authenticate, fetchAuthDetails, CLOCK_DRIFT_MS, GrantType } from '.' import { TAuthenticateRequest, EAuthType } from '../../types' // import { getSetupDetails, get...
the_stack
import { define } from 'elements-sk/define'; import { html } from 'lit-html'; import { jsonOrThrow } from 'common-sk/modules/jsonOrThrow'; import { stateReflector } from 'common-sk/modules/stateReflector'; import { fromParamSet, fromObject, ParamSet } from 'common-sk/modules/query'; import { HintableObject } from 'comm...
the_stack
type Primitive = null | boolean | string | number | symbol const TAB_CODE = 9 const LF_CODE = 10 const CR_CODE = 13 const SPACE_CODE = 32 const PERIOD_CODE = 46 // "." const COMMA_CODE = 44 // "," const SQUOTE_CODE = 39 // single quote const DQUOTE_CODE = 34 // double quotes const OPAREN_CODE = 40 // ( c...
the_stack
import {ConstantBackoff, LRUBuffer, Websocket, WebsocketBuilder, WebsocketEvents} from "../src"; import {Server} from "ws"; describe("Testsuite for Websocket", () => { const port = 42421; const url = `ws://localhost:${port}`; let ws: Websocket | undefined; let wss: Server | undefined; type WsInst...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement, Operator } from "../shared"; /** * Statement provider for service [ses-v2](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonsimpleemailservicev2.html). * * @param sid [SID](https://docs.aws.amazon.com/IA...
the_stack
import { API, APIEvent, DynamicPlatformPlugin, HAP, Logging, PlatformAccessory, PlatformConfig } from "homebridge"; import { MYQ_ACTIVE_DEVICE_REFRESH_DURATION, MYQ_ACTIVE_DEVICE_REFRESH_INTERVAL, MYQ_DEVICE_REFRESH_INTERVAL, MYQ_MQTT_TOPIC, PLATFORM_NAME, PLUGIN_NAME } from "./settings"; impo...
the_stack
import { expect } from "chai"; import { BezierCurve3d } from "../../bspline/BezierCurve3d"; import { BezierCurveBase } from "../../bspline/BezierCurveBase"; import { BSplineCurve3d } from "../../bspline/BSplineCurve"; import { BSplineCurve3dH } from "../../bspline/BSplineCurve3dH"; import { BSplineWrapMode, KnotVector ...
the_stack
import { expect } from 'chai' import { parseError } from '../../src/lib/squirrel-error-parser' describe('parseError', () => { it('parses a missing Squirrel error', () => { // Source: // https://github.com/electron/electron/blob/ad90de0c822490664bdb3a3d265f4a0fce3f69de/lib/browser/api/auto-updater/auto-updat...
the_stack
import { v4 as guid } from "uuid"; import { CosmosClient, Item, ItemDefinition, Items, OperationType, Resource, StatusCodes // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore } from "../../dist"; import logger from "./logger"; import lwwSprocDef from "./lwwSprocDef"; export c...
the_stack
module TDev.AST { var crashOnInvalid = false; var blockChaining = false; export interface ProfilingDataCollection { unitduration: number; compilerversion: string; count?: number; astnodes?: { [id: string]: ProfilingAstNodeData; }; // TD Ast node --> performance show...
the_stack
Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd. https://www.cocos.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, no...
the_stack
import {assertNotNullOrUndefined} from '../../../../../../front_end/core/platform/platform.js'; import type * as Logs from '../../../../../../front_end/models/logs/logs.js'; import type * as SDK from '../../../../../../front_end/core/sdk/sdk.js'; import * as Common from '../../../../../../front_end/core/common/common.j...
the_stack
import { ComponentSet, FileProperties, MetadataApiRetrieve, RetrieveResult, SourceComponent } from '@salesforce/source-deploy-retrieve'; import { MetadataApiRetrieveStatus, RequestStatus } from '@salesforce/source-deploy-retrieve/lib/src/client/types'; import * as AdmZip from 'adm-zip'; import { expect } ...
the_stack
import {Message, Placeholder, makeMessageIdMap} from '../messages.js'; import {writeLocaleCodesModule} from '../locales.js'; import type {Locale} from '../types/locale.js'; import type {Config} from '../types/config.js'; import type {TransformOutputConfig} from '../types/modes.js'; import ts from 'typescript'; import {...
the_stack
import { IDisposable } from '@lumino/disposable'; import { ContentType } from './content'; import { StickyCode } from './code'; import { StickyMarkdown } from './markdown'; import { StickyTab, Tab } from './tab'; import { StickyLand } from './stickyland'; import { MyIcons } from './icons'; type Position = { x: numbe...
the_stack
import React from 'react'; import Enzyme, { shallow } from 'enzyme'; import { FORM_ERROR } from 'final-form'; import FormErrorMessage from '@airbnb/lunar/lib/components/FormErrorMessage'; import Form, { FormProps } from '../../src/components/Form'; describe('<Form />', () => { let wrapper: Enzyme.ShallowWrapper<Form...
the_stack
import { Component, ViewEncapsulation, ChangeDetectionStrategy, AfterContentInit, Input, Output, EventEmitter, ViewChild, ChangeDetectorRef, Optional, Inject } from '@angular/core'; import {HcCalendarCellCssClasses, CalendarBodyComponent, HcCalendarCell} from '../calendar-bod...
the_stack
import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; import { delay } from 'rxjs/operators'; import * as dateFns from 'date-fns'; import { Subject, Observable, of } from 'rxjs'; import { IDataTableColumn, RemoteDataTableService, IDataTablePaginationOptions, IDataTableSearchOpt...
the_stack
declare namespace WebAssembly { interface Module {} } declare namespace Emscripten { interface FileSystemType {} type EnvironmentType = 'WEB' | 'NODE' | 'SHELL' | 'WORKER'; type JSType = 'number' | 'string' | 'array' | 'boolean'; type TypeCompatibleWithC = number | string | any[] | boolean; t...
the_stack
import { PublicKey, AccountInfo } from "@solana/web3.js"; import BN from "bn.js"; import { deserializeUnchecked } from "borsh"; import { BinaryReader, BinaryWriter } from "borsh"; const base58: any = require("bs58"); // eslint-disable-next-line export const METADATA_REPLACE = new RegExp("\u0000", "g"); export const ED...
the_stack
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, NgZone } from '@angular/core'; import { ProxyCmp, proxyOutputs } from './angular-component-lib/utils'; import { Components } from '@ionic/core'; export declare interface IonAccordion extends Components.IonAccordion {} @Proxy...
the_stack
import { Component, OnInit, OnDestroy, ViewChild, ElementRef } from '@angular/core'; import { FormControl, FormGroup, FormBuilder } from '@angular/forms'; import { CoreError } from '@classes/errors/error'; import { CoreCourse } from '@features/course/services/course'; import { CanLeave } from '@guards/can-leave'; impor...
the_stack