text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
EventEmitter,
forwardRef,
Input,
NgModule,
Output,
Renderer2,
Injector
} from '@angular/core';
import {AbstractJigsawComponent} from "../../common/common";
import {ControlValueAccessor, NG_VALUE_ACCES... | the_stack |
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import { UnreachableCode } from '../../../../../resources/not_reached';
import { callOverlayHandler } from '../../../../../resources/overlay_plugin_api';
import { Responses } from '../../../..... | the_stack |
import { WebXRFeaturesManager, WebXRFeatureName } from "../webXRFeaturesManager";
import { WebXRSessionManager } from "../webXRSessionManager";
import { Observable } from "../../Misc/observable";
import { Vector3, Matrix, Quaternion } from "../../Maths/math.vector";
import { WebXRAbstractFeature } from "./WebXRAbst... | the_stack |
import realdeepmerge from 'deepmerge';
import { Meta } from '@/typings/module';
import { Module } from '@/typings/module/registry';
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
type Deepmerge = (x: any, y: any) => any;
beforeEach((): void => {
jest.resetModules();
});
describe('@modus/gimbal-p... | the_stack |
import { deepStrictEqual as eq, ok, fail } from 'assert';
import { JSDOM } from 'jsdom';
import sinon = require('sinon');
import { reset } from './mock';
import App from '../../renderer/app';
const { ipcRenderer } = require('electron') as any; // mocked
describe('App', function () {
let app: App;
beforeEach(... | the_stack |
import {
api,
Process,
config,
utils,
specHelper,
chatRoom,
} from "./../../src/index";
const actionhero = new Process();
describe("Core", () => {
describe("chatRoom", () => {
beforeAll(async () => {
await actionhero.start();
for (var room in config.general.startingChatRooms) {
... | the_stack |
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest';
import * as models from '../models';
/**
* @class
* Operations
* __NOTE__: An instance of this class is automatically created for an
* instance of the IotDpsClient.
*/
export interface Operations {
/**
... | the_stack |
import compose from '@tinkoff/utils/function/compose';
import type { Dispatcher } from './dispatcher';
import type { Event } from '../createEvent/createEvent.h';
import type { StoreClass, StoreInstance } from '../typings';
import type { Middleware } from './dispatcher.h';
import { subscribe } from './storeSubscribe';
... | the_stack |
import { Maybe, Just, Nothing, MaybePatterns } from './Maybe'
import { EitherAsync } from './EitherAsync'
export interface MaybeAsyncTypeRef {
/** Constructs a MaybeAsync object from a function that takes an object full of helpers that let you lift things into the MaybeAsync context and returns a Promise */
<T>(ru... | the_stack |
import { Stark as IStark, Assertion, StarkProof, StarkOptions, SecurityOptions, Logger } from '@guildofweavers/genstark';
import { MerkleTree, Hash, HashAlgorithm, createHash } from '@guildofweavers/merkle';
import { AirModule, Vector, Matrix, AirSchema, instantiate, WasmOptions } from '@guildofweavers/air-assembly';
i... | the_stack |
import { Mongo } from 'meteor/mongo';
import {
Helper,
OptionalHelper,
Data,
Full,
Helpers,
AllowPartial,
} from 'meteor/dburles:collection-helpers';
interface Author {
_id?: string | undefined;
firstName: string;
lastName: string;
// function properties are automatically detect... | the_stack |
import React, { FC } from 'react';
import styled from 'styled-components';
import { ColorScheme } from '../../../plugins';
import { PluginTheme } from '../../../plugins/misc';
import { useThemes } from '../../hooks/theme';
import { HelpTooltip } from '../help-tooltip';
const THEMES_PER_ROW = 5;
const isDark = (mode:... | the_stack |
import { AdapterBase } from "./AdapterBase";
import { ISpace, addEventToSpaceInternal, IBoard, getDeadSpaceIndex } from "../boards";
import { Space, SpaceSubtype, GameVersion } from "../types";
import { createEventInstance } from "../events/events";
import { parse as parseInst } from "mips-inst";
import { strings } fro... | the_stack |
import { ensureDir, writeFile, remove } from 'fs-extra'
import * as Path from 'path'
import * as Fs from 'fs-extra'
import { exec } from 'child_process'
import {
find,
IKactusFile as _IKactusFile,
IKactusConfig,
parseFile,
importFolder,
} from 'kactus-cli'
import { getUserDataPath, getTempPath } from '../ui/l... | the_stack |
import { strict as assert } from "assert";
import {
IsoBuffer,
stringToBuffer,
Uint8ArrayToString,
} from "@fluidframework/common-utils";
import {
SummaryObject,
ISummaryTree,
ISummaryBlob,
ISummaryHandle,
SummaryType,
ISnapshotTree,
ITree,
} from "@fluidframework/protocol-defini... | the_stack |
import type {TextureLevel} from '@loaders.gl/schema';
import {GL_EXTENSIONS_CONSTANTS} from '../gl-extensions';
import {extractMipmapImages} from '../utils/extract-mipmap-images';
const PVR_CONSTANTS: Record<string, number> = {
MAGIC_NUMBER: 0x03525650,
MAGIC_NUMBER_EXTRA: 0x50565203,
HEADER_LENGTH: 13,
HEADER... | the_stack |
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config-base';
interface Blob {}
declare class AmplifyUIB... | the_stack |
import {
Button,
FormControl,
FormHelperText,
FormLabel,
Input,
Select,
} from "@chakra-ui/react";
import { OWNER_ROLE } from "@/features/roles";
import { Organization, OrganizationUser, Role, User } from "@prisma/client";
import { PlusIcon } from "@heroicons/react/outline";
import { isUndefined } from "lod... | the_stack |
import { Injectable } from "@angular/core";
import { createWorker, ITypedWorker } from "typed-web-workers";
import { getUrl } from "./main.service";
import { EnemyManager } from "./model/enemy/enemyManager";
import { BattleRequest, ShipData } from "./workers/battleRequest";
import { Emitters } from "./emitters";
import... | the_stack |
import * as React from 'react'
import Editor from 'draft-js-plugins-editor'
import {
EditorState,
SelectionState,
ContentState,
RichUtils,
getDefaultKeyBinding,
KeyBindingUtil,
Modifier,
genKey,
ContentBlock,
DefaultDraftBlockRenderMap,
convertFromHTML
} from 'draft-js'
impor... | the_stack |
declare module EZGUI {
var Easing: {
Linear: {
None: (k: any) => any;
};
Quadratic: {
In: (k: any) => number;
Out: (k: any) => number;
InOut: (k: any) => number;
};
Cubic: {
In: (k: any) => number;
Out: (... | the_stack |
import { AEventDispatcher, ISequence, similar, fixCSS, IEventListener } from '../internal';
import { isSortingAscByDefault } from './annotations';
import {
IColumnDump,
ISortCriteria,
defaultGroup,
ECompareValueType,
IColumnDesc,
IDataRow,
IGroup,
IColumnParent,
IColumnMetaData,
IFlatColumn,
IComp... | the_stack |
import { getVoidLogger } from '@backstage/backend-common';
import { BitbucketDiscoveryProcessor } from './BitbucketDiscoveryProcessor';
import { ConfigReader } from '@backstage/config';
import { LocationSpec } from '@backstage/catalog-model';
import {
BitbucketRepository20,
BitbucketRepositoryParser,
PagedRespons... | the_stack |
import BN from 'bn.js'
import chai from 'chai'
import { ether, expectEvent, expectRevert } from '@openzeppelin/test-helpers'
import { deployHub, evmMine, setNextBlockTimestamp } from './TestUtils'
import chaiAsPromised from 'chai-as-promised'
import {
constants,
defaultEnvironment,
getEip712Signature,
splitRe... | the_stack |
import { UnitScaleDefinition, toBase, convertUnit, toBest } from '../../src/core/utils/unit-scale';
describe('unit-scale', () => {
// SI (International system of units) https://physics.nist.gov/cuu/Units/prefixes.html
const siScale: UnitScaleDefinition = {
base: '',
scale: {
n: 0.00... | the_stack |
import assert from 'assert'
import GherkinDocumentWalker, { rejectAllFilters } from '../src/GherkinDocumentWalker'
import pretty from '../src/pretty'
import parse from './parse'
describe('GherkinDocumentWalker', () => {
let walker: GherkinDocumentWalker
beforeEach(() => {
walker = new GherkinDocumentWalker()
... | the_stack |
import * as coreClient from "@azure/core-client";
export interface ProductResultValue {
value?: Product[];
nextLink?: string;
}
export interface Product {
properties?: ProductProperties;
}
export interface ProductProperties {
id?: number;
name?: string;
}
export interface ProductResult {
values?: Produc... | the_stack |
import { combinePaths, getDirectoryPath } from '../common/pathUtils';
import { parseAndGetTestState } from './harness/fourslash/testState';
import { testRenameModule } from './renameModuleTestUtils';
test('rename just file name', () => {
const code = `
// @filename: empty.py
//// # empty
// @filename: pa... | the_stack |
import {expect} from 'chai';
import {Stats} from 'fs';
import * as TestOverrides from '../test-related-lib/TestOverrides';
import {CustomRulePathManager} from '../../src/lib/CustomRulePathManager';
import {PmdEngine} from '../../src/lib/pmd/PmdEngine';
import {FileHandler} from '../../src/lib/util/FileHandler';
import ... | the_stack |
import { parsing } from "@algo-builder/web";
import algosdk, { ALGORAND_MIN_TX_FEE, decodeAddress, decodeUint64, encodeAddress, encodeUint64, getApplicationAddress, isValidAddress, modelsv2, verifyBytes } from "algosdk";
import { ec as EC } from "elliptic";
import { Message, sha256 } from "js-sha256";
import { sha512_2... | the_stack |
import { GitProcess } from 'dugite'
import * as FSE from 'fs-extra'
import * as Path from 'path'
import { IStatusResult, getChangedFiles } from '../../../../src/lib/git'
import {
abortRebase,
continueRebase,
rebase,
RebaseResult,
} from '../../../../src/lib/git/rebase'
import {
AppFileStatusKind,
Committed... | the_stack |
import * as R from "ramda";
import { Auth, Api, Client, Model } from "@core/types";
import { BaseArgs } from "../types";
import { sha256 } from "@core/lib/crypto/utils";
import { dispatch, refreshState } from "./core";
import { logAndExitIfActionFailed } from "./args";
import { exit } from "./process";
import chalk fro... | the_stack |
import React, { useCallback, useEffect, useMemo, useState } from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
faChevronDown,
faChevronUp,
faAngleLeft,
faAngleDoubleLeft,
faAngleRight,
faAngleDoubleRight,
} from "@fortawesome/free-solid-svg-icons";
import {
useTable,
... | the_stack |
import {fromEvent, merge, Subject} from 'rxjs';
import {filter, take, takeUntil} from 'rxjs/operators';
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChild,
Directive,
ElementRef,
EventEmitter,
forwardRef,
Input,
NgZone,
OnChanges,
OnDestroy,
OnInit,
Output,
Simple... | the_stack |
import * as WebSocket from 'faye-websocket'
import * as EJSON from 'ejson'
import { EventEmitter } from 'events'
import got from 'got'
export interface TLSOpts {
// Described in https://nodejs.org/api/tls.html#tls_tls_connect_options_callback
/* Necessary only if the server uses a self-signed certificate.*/
ca?: B... | the_stack |
import { BaseInfo32, limbSize32, limbInv32, limbsPerDigit32 } from './BaseInfo32';
import { BigFloatBase } from './BigFloatBase';
import { trimNumber } from './util';
export class BigFloat32 implements BigFloatBase<BigFloat32> {
constructor(value?: BigFloat32 | number | string, base?: number) {
value ? this.setVal... | the_stack |
import TimePixelConversion from './TimePixelConversion'
describe('TimePixelConversion', () => {
describe('#frameToPixel', () => {
// formula:
// framePerPixel = pixelPerSec / framerate
// pixel = inputFrame * framePerPixel * scale
it('Should returns correct value: 0', () => {
const actual1 = T... | the_stack |
import '@tamagui/polyfill-dev'
import {
useDismiss,
useFloating,
useFocus,
useInteractions,
useRole,
} from '@floating-ui/react-dom-interactions'
import { AnimatePresence } from '@tamagui/animate-presence'
import { useComposedRefs } from '@tamagui/compose-refs'
import {
Theme,
composeEventHandlers,
use... | the_stack |
import { ResponseMessage } from "../server/ws_api";
import { BroadcasterDatabase } from "./broadcaster_database";
import { BrowserAPI } from "./browser";
import { Content } from "./content";
import { EventDispatcher, EventQueue } from "./event_queue";
import { BML } from "./interface/DOM";
import { Interpreter } from "... | the_stack |
import * as leaflet from "leaflet";
// Experiment inspired by:
// http://bl.ocks.org/Sumbera/c6fed35c377a46ff74c3
// CanvasOverlad from here:
// https://github.com/Sumbera/gLayers.Leaflet/blob/master/L.CanvasLayer.js
/*
Generic Canvas Layer for leaflet 0.7 and 1.0-rc, 1.2, 1.3
copyright Stanislav Sumbera, 2016... | the_stack |
import { coerceBooleanProperty } from '@angular/cdk/coercion';
import { getSupportedInputTypes } from '@angular/cdk/platform';
import {
AfterContentInit,
Directive,
DoCheck,
ElementRef,
EventEmitter,
Inject,
Input,
OnChanges,
OnDestroy,
Optional,
Self
} from '@angular/core';
... | the_stack |
/**
*
* @module Kiwi
* @submodule Geom
*/
module Kiwi.Geom {
/**
* Represents a 2d transformation matrix. This can be used to map points
* between different coordinate spaces. Matrices are used by Transform
* objects to represent translation, scale and rotation transformations,
* and to determine where object... | the_stack |
* Copyright © 2020 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified,
* propagated, or... | the_stack |
import { Params } from '@angular/router';
import { CoreRoutedItemsManagerSource } from '@classes/items-management/routed-items-manager-source';
import {
AddonModGlossary,
AddonModGlossaryEntry,
AddonModGlossaryGetEntriesOptions,
AddonModGlossaryGetEntriesWSResponse,
AddonModGlossaryGlossary,
Add... | the_stack |
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as Models from "../models";
import * as Mappers from "../models/invoiceSectionsMappers";
import * as Parameters from "../models/parameters";
import { BillingManagementClientContext } from "../billingManagementC... | the_stack |
import { PDFOperator, PDFWidgetAnnotation } from 'src/core';
import PDFFont from 'src/api/PDFFont';
import PDFButton from 'src/api/form/PDFButton';
import PDFCheckBox from 'src/api/form/PDFCheckBox';
import PDFDropdown from 'src/api/form/PDFDropdown';
import PDFField from 'src/api/form/PDFField';
import PDFOptionList f... | the_stack |
import {
getLabwareDefURI,
MAGNETIC_MODULE_TYPE,
LabwareDefinition2,
} from '@opentrons/shared-data'
import _fixtureTiprack300ul from '@opentrons/shared-data/labware/fixtures/2/fixture_tiprack_300_ul.json'
import {
makeContext,
makeState,
getTipColumn,
getTiprackTipstate,
DEFAULT_PIPETTE,
} from '../fix... | the_stack |
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
/**
* <p>
* You are not authorized to perform this action.
* </p>
*/
export interface AccessDeniedException extends __SmithyExcept... | the_stack |
import type { BigNumber } from '@ethersproject/bignumber';
import type { Bytes } from '@ethersproject/bytes';
export type BigNumberish = BigNumber | Bytes | bigint | string | number;
export interface AddressesForChainV3 {
exchange: string;
erc20Proxy: string;
erc721Proxy: string;
multiAssetProxy: string;
er... | the_stack |
module WinJSTests {
"use strict";
var ListView = <typeof WinJS.UI.PrivateListView> WinJS.UI.ListView;
var _oldMaxTimePerCreateContainers;
var testRootEl,
smallGroups = [],
bigGroups = [],
LAST_LETTER = 26,
SMALL_GROUPS_COUNT = LAST_LETTER * 5,
BIG_GROUPS_COUNT... | the_stack |
import test from 'ava';
import {ObjectMapper} from '../src/databind/ObjectMapper';
import {JsonProperty} from '../src/decorators/JsonProperty';
import {JsonClassType} from '../src/decorators/JsonClassType';
import {JsonTypeInfo, JsonTypeInfoAs, JsonTypeInfoId} from '../src/decorators/JsonTypeInfo';
import {JsonSubTypes... | the_stack |
import {NativePath, npath, PortablePath, ppath, xfs} from '@yarnpkg/fslib';
import {createTemporaryFolder} from 'pkg-tests-core/sources/utils/fs';
import {yarn} from 'pkg-tests-core';
export type Manifest = {
name: string;
main?: string;
exports?: stri... | the_stack |
import PluginSDK from "PluginSDK";
import AppDispatcher from "#SRC/js/events/AppDispatcher";
import Config from "#SRC/js/config/Config";
import CosmosPackagesStore from "#SRC/js/stores/CosmosPackagesStore";
import GetSetBaseStore from "#SRC/js/stores/GetSetBaseStore";
import {
REQUEST_MARATHON_DEPLOYMENT_ROLLBACK_E... | the_stack |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import JqxDockingLayout, { IDockingLayoutProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdockinglayout';
import JqxTree from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtree';
class App extends React.PureComponent<{}, IDockingLayoutProps>... | the_stack |
import { mat3, mat4 } from 'gl-matrix';
import OrthographicCamera from '../cameras/OrthographicCamera';
import PerspectiveCamera from '../cameras/PerspectiveCamera';
import Geometry from '../geometry/Geometry';
import Lights from '../lights/Lights';
import Color from '../math/Color';
import {
basicFragmentShaderEs100... | the_stack |
import {Converter} from "../src/Converter";
import csv from "../src";
var assert = require("assert");
var fs = require("fs");
var sandbox = require("sinon").sandbox.create();
var file = __dirname + "/data/testData";
var trailCommaData = __dirname + "/data/trailingComma";
describe("CSV Converter", function () {
afterE... | the_stack |
import {Watcher, RawValue, DiffConsumer} from "./watcher";
import {ID, Block, FunctionConstraint, printBlock} from "../runtime/runtime";
import {Program, LinearFlow, ReferenceContext, Reference, Record, Insert, Remove, Value, Fn, Not, Choose, Union, Aggregate, WatchFlow, LinearFlowFunction, CommitFlow} from "../runtime... | the_stack |
import { Bitmap16, DIBitmap, PatternBitmap16 } from "./Bitmap";
import { Blob } from "./Blob";
import { Helper } from "./Helper";
import { Obj, PointS } from "./Primitives";
export class ColorRef {
public r: number;
public g: number;
public b: number;
constructor(reader: Blob, r?: number, g?: number, ... | the_stack |
import react = require('react');
import react_dom = require('react-dom');
import style = require('ts-style');
import agile_keychain_crypto = require('../lib/agile_keychain_crypto');
import button = require('./controls/button');
import colors = require('./controls/colors');
import { div } from './base/dom_factory';
imp... | the_stack |
import * as vscode from "vscode";
import * as utils from "./utils";
import * as path from 'path';
import { Constants } from "./constants";
import { LeoIntegration } from "./leoIntegration";
import { BodyTimeInfo } from "./types";
/**
* * Body panes implementation as a file system using "leo" as a scheme identifier
*... | the_stack |
import mapboxgl from "mapbox-gl";
import * as fogMap from "./FogMap";
import * as deckgl from "./Deckgl";
import { CANVAS_SIZE_OFFSET, FogCanvas } from "./FogCanvas";
import { HistoryManager } from "./HistoryManager";
const FOW_TILE_ZOOM = 9;
const FOW_BLOCK_ZOOM = FOW_TILE_ZOOM + fogMap.TILE_WIDTH_OFFSET;
type TileK... | the_stack |
import moment = require("moment");
import { BasicClient } from "../BasicClient";
import { ClientOptions } from "../ClientOptions";
import * as jwt from "../Jwt";
import { Level2Point } from "../Level2Point";
import { Level2Snapshot } from "../Level2Snapshots";
import { Level3Point } from "../Level3Point";
import { Leve... | the_stack |
import * as protos from '../protos/protos';
import * as assert from 'assert';
import * as sinon from 'sinon';
import {SinonStub} from 'sinon';
import {describe, it} from 'mocha';
import * as echoModule from '../src';
import {PassThrough} from 'stream';
//@ts-ignore
import {protobuf, LROperation, operationsProtos} from... | the_stack |
import { IAsyncEqualityComparer,
IAsyncParallel,
IComparer,
IEqualityComparer,
IGrouping,
InferType,
IOrderedAsyncEnumerable,
IParallelEnumerable,
OfType,
SelectorKeyType} from "./"
/**
* Async Iterable type with methods from LINQ.
*/
export int... | the_stack |
import { MachineApi } from "../wa-api";
import { MemoryHelper } from "../memory-helpers";
import {
BLOCK_LOOKUP_TABLE,
Z88_PIXEL_BUFFER,
VM_MEMORY,
Z88_MACHINE_STATE_BUFFER,
Z88_BEEPER_BUFFER,
} from "../memory-map";
import { FrameBoundZ80Machine } from "../FrameBoundZ80Machine";
import {
CambridgeZ88Machin... | the_stack |
'use strict';
import * as core from '@actions/core';
import * as fs from 'fs';
import * as yaml from 'js-yaml';
import { checkForErrors, sleep } from '../utility';
import { Kubectl } from '../../kubectl-object-model';
import { KubernetesWorkload } from '../../constants';
import * as fileHelper from '../files-helper';
... | the_stack |
import { PromiseFactory, TimeoutError } from 'common/promises/promise-factory';
import {
CallbackWindowCommandMessageListener,
CommandMessage,
CommandMessageResponse,
CommandMessageResponseCallback,
RespondableCommandMessageCommunicator,
} from 'injected/frameCommunicators/respondable-command-messag... | the_stack |
//@ts-check
///<reference path="devkit.d.ts" />
declare namespace DevKit {
namespace Formmsdyn_schedulingparameter_Information {
interface tab_tab_5_Sections {
tab_5_section_2: DevKit.Controls.Section;
}
interface tab_tab_5 extends DevKit.Controls.ITab {
Section: tab_tab_5_Sections;
}
interface Tabs {... | the_stack |
import {
StartTranslationParameters,
GetTranslationsStatusParameters,
GetDocumentStatusParameters,
GetTranslationStatusParameters,
CancelTranslationParameters,
GetDocumentsStatusParameters,
GetSupportedDocumentFormatsParameters,
GetSupportedGlossaryFormatsParameters,
GetSupportedStorageSourcesParamete... | the_stack |
import { extractGremlinQueries } from '../extractGremlinQueries';
test('Extract the parts of the code that can be parsed as Gremlin', () => {
expect(
extractGremlinQueries(
`graph = TinkerFactory.createModern()
g = graph.traversal()
g.V().has('name','marko').out('knows').values('name')`,
),
).toStric... | the_stack |
module Fayde.Media.VSM {
export interface IOutValue {
Value: any;
}
export interface IStateData {
state: VisualState;
group: VisualStateGroup;
}
export class VisualStateManager extends DependencyObject {
static VisualStateGroupsProperty: DependencyProperty ... | the_stack |
import {cssClasses, numbers} from '../../mdc-ripple/constants';
import {MDCRippleFoundation} from '../../mdc-ripple/foundation';
import {captureHandlers, checkNumTimesSpyCalledWithArgs} from '../../../testing/helpers/foundation';
import {setUpMdcTestEnvironment} from '../../../testing/helpers/setup';
import {testFound... | the_stack |
import { Inject, Injectable, PLATFORM_ID } from '@angular/core';
import { DOCUMENT, isPlatformBrowser } from '@angular/common';
import { ScrollToConfigOptions, ScrollToConfigOptionsTarget, ScrollToListenerTarget, ScrollToTarget } from './scroll-to-config.interface';
import { ScrollToAnimation } from './scroll-to-anima... | the_stack |
import * as React from 'react';
import { Dialog, DialogType, DialogFooter } from 'office-ui-fabric-react/lib/Dialog';
import { PrimaryButton, DefaultButton } from 'office-ui-fabric-react/lib/Button';
import { Label } from "office-ui-fabric-react/lib/Label";
import * as strings from 'ControlStrings';
import styles from ... | the_stack |
import type { NumericArray, TypedArray } from "./typedarray.js";
export interface INDBase<BUF extends any[] | TypedArray = any[]> {
size: NumericArray;
stride: NumericArray;
offset: number;
data: BUF;
readonly dim: number;
order(): number[];
}
/**
* Semi-typechecked interface for cases acce... | the_stack |
'use strict';
import {
window, ExtensionContext, Uri, ViewColumn, WebviewPanel, commands, workspace, ConfigurationTarget, extensions, TextDocument, Webview, WorkspaceFolder
} from 'vscode';
import { PddlConfiguration, PDDL_PLANNER } from '../configuration/configuration';
import * as path from 'path';
import { sh... | the_stack |
import { Aurelia, TaskQueue } from 'aurelia-framework';
import { inlineView, Controller, bindable, ShadowDOM, ViewSlot, ShadowSlot } from './aurelia-templating';
import 'aurelia-loader-webpack';
// the test in this file is done in integration testing style,
// instead of unit testing style to the rest as it requires h... | the_stack |
import * as t from '@babel/types';
import { Binding } from './bindings';
import getFirstUnsafeLocation from './getFirstUnsafeLocation';
import { NodePath, Scope } from '@babel/traverse';
import * as Babel from '@babel/core';
import { replaceWithAndPreserveComments } from '@resugar/helper-comments';
export interface Op... | the_stack |
import { ExactPackage, PackageConfig, PackageTarget, ExportsTarget } from '../install/package.js';
import { JspmError } from '../common/err.js';
import { Log } from '../common/log.js';
// @ts-ignore
import { fetch } from '#fetch';
import { importedFrom } from "../common/url.js";
// @ts-ignore
import { parse } from 'es-... | the_stack |
import * as React from 'react';
import {
getShopifyImageDimensions,
shopifyImageLoader,
addImageSizeParametersToUrl,
} from '../../utilities';
import type {Image as ImageType} from '../../storefront-api-types';
import type {PartialDeep, Simplify, SetRequired} from 'type-fest';
type HtmlImageProps = React.ImgHTML... | the_stack |
import "../AsyncSupport";
import "../XMLDomInit";
import xmldom from "xmldom";
import test from "ava";
import sinon from "sinon";
import GrimoireInterface from "../../src/Interface/GrimoireInterface";
import Constants from "../../src/Base/Constants";
import Component from "../../src/Node/Component";
import GomlParser f... | the_stack |
// tslint:disable:max-line-length
import * as azure from "@pulumi/azure";
import * as cloud from "@pulumi/cloud";
import * as pulumi from "@pulumi/pulumi";
import { RunError } from "@pulumi/pulumi/errors";
import * as shared from "./shared";
import * as docker from "@pulumi/docker";
import * as utils from "./utils";
... | the_stack |
import axios, {AxiosRequestConfig} from 'axios';
import BigNumber from 'bignumber.js';
import {PinoLogger} from 'nestjs-pino';
import {Request} from 'express';
import {
Currency,
SignatureId,
EgldBasicTransaction,
egldGetGasPrice,
egldGetGasLimit,
generateAddressFromXPub,
generatePrivateKeyF... | the_stack |
import NaviMetadataSerializer from '../../../serializers/metadata/base.js';
import CARDINALITY_SIZES from '../../../utils/enums/cardinality-sizes.js';
import upperFirst from 'lodash/upperFirst.js';
import { DataType } from '../../../models/metadata/function-parameter.js';
import type { FunctionParameterMetadataPayload ... | the_stack |
import { InanoSQLAdapter, InanoSQLTable, InanoSQLPlugin, InanoSQLInstance } from "@nano-sql/core/lib/interfaces";
import { generateID, deepSet, chainAsync, allAsync, blankTableDefinition } from "@nano-sql/core/lib/utilities";
import * as redis from "redis";
const noClient = `No Redis client!`;
export class Redis impl... | the_stack |
import { Column } from "../../entities/column";
import { RowNode } from "../../entities/rowNode";
import { Beans } from "./../beans";
import { Component } from "../../widgets/component";
import { ICellEditorComp, ICellEditorParams } from "../../interfaces/iCellEditor";
import { ICellRendererComp } from "./../cellRender... | the_stack |
import { Prim, Expr, StringLiteral, IntLiteral } from "./micheline";
import { decodeBase58Check, encodeBase58Check } from "./base58";
import { MichelsonData, MichelsonDataPair, MichelsonType, MichelsonTypePair } from "./michelson-types";
export type Tuple<N extends number, T> =
N extends 1 ? [T] :
N extends 2 ... | the_stack |
import mermaid from 'mermaid';
import moment from 'moment';
import { DurableOrchestrationStatus, HistoryEvent } from '../DurableOrchestrationStatus';
import { MermaidDiagramTabState } from './MermaidDiagramTabState';
import { CancelToken } from '../../CancelToken';
import { dfmContextInstance } from '../../DfmContext'... | the_stack |
import { Nullable } from "../../types";
import { Scene } from "../../scene";
import { Matrix, Vector3, Vector4 } from "../../Maths/math.vector";
import { Color4 } from '../../Maths/math.color';
import { Mesh, _CreationDataStorage } from "../mesh";
import { VertexData } from "../mesh.vertexData";
import { CreateTi... | the_stack |
import * as React from 'react';
import { classNamesFunction, css, KeyCodes, getRTL, initializeComponentRef } from '@fluentui/utilities';
import { AnimationDirection } from '../Calendar/Calendar.types';
import { CalendarDayGrid } from '../CalendarDayGrid/CalendarDayGrid';
import {
compareDatePart,
getStartDateOfWeek... | 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://clouddebugger.googleapis.com/$discovery/rest?version=v2
... | the_stack |
namespace ts.pxtc {
export const placeholderChar = "◊";
export interface FunOverride {
n: string;
t: any;
scale?: number;
snippet?: string;
}
export const ts2PyFunNameMap: pxt.Map<FunOverride> = {
"Math.trunc": { n: "int", t: ts.SyntaxKind.NumberKeyword, snippe... | the_stack |
import { QueryClientContract } from '@ioc:Adonis/Lucid/Database'
import { LucidRow, LucidModel, ModelAdapterOptions } from '@ioc:Adonis/Lucid/Orm'
import {
FactoryModelContract,
FactoryContextContract,
FactoryBuilderContract,
} from '@ioc:Adonis/Lucid/Factory'
import { FactoryModel } from './FactoryModel'
import... | the_stack |
import * as React from 'react';
import { composeEventHandlers } from '@radix-ui/primitive';
import { Primitive } from '@radix-ui/react-primitive';
import { createContext } from '@radix-ui/react-context';
import { useBodyPointerEvents } from '@radix-ui/react-use-body-pointer-events';
import { useCallbackRef } from '@rad... | the_stack |
import uuid from 'uuid/v4';
import ActiveModel from 'models/ActiveModel.js';
import serializer from 'utils/serializer.js';
import GameState from 'tactics/GameState.js';
import ServerError from 'server/Error.js';
const gameKeys = new Set([
'createdBy',
'isPublic',
]);
const stateKeys = new Set([
'type',
'ran... | the_stack |
import React, { useState, useEffect, useContext } from "react"
import { NextPage } from "next"
import Head from "next/head"
import { useQuery, useMutation } from "@apollo/react-hooks"
import Cookies from "js-cookie"
import {
useCheckoutEffect,
createCheckout,
checkoutQuery,
checkoutLineItemsAdd,
checkoutLineI... | the_stack |
* @module adaptive-expressions
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/* eslint-disable @typescript-eslint/no-unused-vars */
import { Constant } from './constant';
import { convertCSharpDateTimeToDayjs } from './datetimeFormatConverter';
import { Ex... | the_stack |
import { Octokit } from '@octokit/rest';
import {
GetResponseDataTypeFromEndpointMethod,
GetResponseTypeFromEndpointMethod
} from '@octokit/types';
import { actions } from '../../commons/utils/ActionsHelper';
import { showSimpleConfirmDialog } from '../../commons/utils/DialogHelper';
import { showSuccessMessage, s... | the_stack |
export = spritejs; // make it a module
export as namespace spritejs; // keep a global namespace called Office
type AnyAttrs = { [x: string]: any }
/**
* Sprite Node's Attributes.
*/
type BaseAttrs = {
anchor: [number, number],
anchorX: number,
anchorY: number,
bgcolor: string,
border: [number, string],
... | the_stack |
import { prettyByte } from "./utils/prettyByte";
import { ExtensionCodec, ExtensionCodecType } from "./ExtensionCodec";
import { getInt64, getUint64, UINT32_MAX } from "./utils/int";
import { utf8DecodeJs, TEXT_DECODER_THRESHOLD, utf8DecodeTD } from "./utils/utf8";
import { createDataView, ensureUint8Array } from "./ut... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.