text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import Api from '../../'; import { CheckoutSessionRequest, CouponRequest, CreateSignInCheckoutSessionRequest, GuestPlaceOrderRequest, InitiatePaymentRequest, ShippingAddressImpl, UpdatePaymentInformation, UpdateQuantity, UpdateShippingOption } from '../../../../types'; /** * The Order API provides i...
the_stack
import getResizeObserver from './polyfillLoaders/ResizeObserver.js'; import { ItemBox, Margins, Layout, Positions, LayoutConstructor, LayoutSpecifier } from './layouts/shared/Layout.js'; export const virtualizerRef = Symbol('virtualizerRef'); const SIZER_ATTRIBUTE = 'virtualizer-sizer'; interface InternalRange { fi...
the_stack
import {intersectEllipse, intersectRect} from "./intersect"; interface Point { x: number; y: number; } interface BBox extends Point { width: number; height: number; } interface D3Node extends BBox { intersect: (p: Point) => Point } class D3Element { private readonly _el: SVGElement constructor(el: SVGElemen...
the_stack
import algoliasearchHelper from 'algoliasearch-helper'; import merge from '../mergeSearchParameters'; describe('mergeSearchParameters', () => { it('overrides non-managed parameters', () => { const actual = merge( algoliasearchHelper.SearchParameters.make({ // Inherit hitsPerPage: 2, ...
the_stack
import { decodeAddress, encodeAddress, getApplicationAddress, isValidAddress, modelsv2 } from "algosdk"; import { RUNTIME_ERRORS } from "../errors/errors-list"; import { RuntimeError } from "../errors/runtime-errors"; import { Runtime } from "../index"; import { checkIndexBound, compareArray } from "../lib/compare"; i...
the_stack
import { DiscordooProviders, EventNames, GlobalCachingPolicy, IpcEvents, IpcOpCodes, otherCacheSymbol, REST_DEFAULT_OPTIONS, WS_DEFAULT_OPTIONS } from '@src/constants' import { DiscordooError, DiscordooSnowflake, ReplaceType, resolveDiscordooShards, resolveDiscordShards, ShardListResolvable,...
the_stack
import * as html from "../ast/ast"; import * as i18n from "../ast/i18n_ast"; import {I18nError} from "../ast/parse_util"; import {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from "../ast/interpolation_config"; import {createI18nMessageFactory} from "./i18n"; import {Parser, ParseTreeResult} from "../ast/parser";...
the_stack
import * as arrSort from "array-sort"; import { DocumentInterface } from "../interfaces"; const parseAndFind = ( query: Object = {}, options: any, documents: any, findOne: boolean = false ) => { const docs = Object.values(documents); let filteredDocs = []; let skipped = 0; const doSort = !!options.sort...
the_stack
import { AfterContentInit, Directive, EventEmitter, Input, OnDestroy, Output, } from "@angular/core"; import { DivIcon, DragEndEvent, Handler, Icon, LatLng, LatLngLiteral, LatLngTuple, LeafletEvent, LeafletMouseEvent, Map, Marker, PopupEvent, T...
the_stack
import { ALL_CTORS, booleanOrRandomValue, DICT_UNIT_MUTATION_FNS, LIST_UNIT_MUTATION_FNS, randomArray, randomAsyncSystemConfig, randomBoolean, randomClusterItems, randomConfig, randomMutation, randomNumber, randomNumOrStr, randomString, randomUnitCtor, randomValidValue, randomValue, se...
the_stack
import lessTree from "@abmaonline/less-tree"; import fs from "fs"; import path from "path"; import recursive from "recursive-readdir"; import treeModel from "tree-model"; // const treeify = require('treeify'); // TODO turn into type? interface IModel { id: string; type: string; filePath: string; isMissing: boo...
the_stack
import {absoluteFrom, AbsoluteFsPath, getFileSystem, ReadonlyFileSystem} from '../../../src/ngtsc/file_system'; import {runInEachFileSystem} from '../../../src/ngtsc/file_system/testing'; import {MockLogger} from '../../../src/ngtsc/logging/testing'; import {loadTestFiles} from '../../../src/ngtsc/testing'; import {Ngc...
the_stack
import { ContainerIterator, BaseType, Pair } from "../Base/Base"; import { TreeIterator, TreeNode } from "../Base/Tree"; export interface MapType<K, V> extends BaseType { /** * @return Iterator pointing to the begin element. */ begin: () => ContainerIterator<Pair<K, V>>; /** * @return Iterat...
the_stack
declare namespace egret.sys { /** * @private * @param channel */ function $pushSoundChannel(channel: SoundChannel): void; /** * @private * @param channel */ function $popSoundChannel(channel: SoundChannel): boolean; } declare namespace egret { /** * The Sound class...
the_stack
import { spawn, ChildProcess } from 'child_process'; import { ReadStream } from 'fs'; import { CancelablePromise } from '../../../tools/promise.cancelable'; import { EventEmitter } from 'events'; import { Readable, Writable } from 'stream'; import * as path from 'path'; import * as fs from 'fs'; import * as FS from '....
the_stack
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { delay, of, throwError } from 'rxjs'; import { ArtemisTestModule } from '../../test.module'; import { ModelingSubmission } from 'app/entities/modeling-submission.model'; import { ActivatedRoute, ActivatedRouteSnapshot, convertTo...
the_stack
import { Editor } from 'mobiledoc-kit' import Helpers from '../test-helpers' import { MODIFIERS } from 'mobiledoc-kit/utils/key' import { supportsSelectionExtend } from '../helpers/browsers' import { CardData } from 'mobiledoc-kit/models/card-node' import { AtomData } from 'mobiledoc-kit/models/atom-node' import ListSe...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace Formmsdyn_inventoryjournal_Information { interface Tabs { } interface Body { /** Work Order this product is allocated to */ msdyn_AllocatedToWorkOrder: DevKit.Controls.Lookup; /** The Inventory Adjustment Product recor...
the_stack
import {expect} from 'chai'; import {RunOutputOptions, RunOutputProcessor} from '../../../src/lib/util/RunOutputProcessor'; import {OUTPUT_FORMAT} from '../../../src/lib/RuleManager'; import {EngineExecutionSummary, RecombinedRuleResults} from '../../../src/types'; import {Messages} from '@salesforce/core'; import {U...
the_stack
import { Cms, FilterResult, ScoreValue, BasicField, ScoreField, SpecialField, Category, FilterFieldSet, BooleanCmsProperty, CategoryField, Field, PanelSettings, FilterPreset, } from "./Cms"; import deepcopy from "ts-deepcopy"; import CmsService from "./CmsService"; const FilterService = { /...
the_stack
import {Injectable} from '@angular/core'; import { BaseType as D3BaseType, ContainerElement as D3ContainerElement, event as d3Event, select as d3Select, Selection as D3Selection } from 'd3-selection'; import {ChartCommons} from '../../../../enums/chart-commons.enum'; import {ScaleLinear as D3ScaleLinear, Scal...
the_stack
import { WithoutNamespace } from "../tslite-bindings/.WithoutNamespace"; import { Map } from "../tslite-bindings/CourierRuntime"; import { WithCustomArrayTestId } from "../tslite-bindings/org.coursera.arrays.WithCustomArrayTestId"; import { WithCustomTypesArray } from "../tslite-bindings/org.coursera.arrays.WithCustomT...
the_stack
import 'es6-promise/auto'; // polyfill Promise on IE import { BasicKeyHandler, BasicMouseHandler, BasicSelectionModel, CellRenderer, DataGrid, DataModel, JSONModel, TextRenderer } from '@phosphor/datagrid'; import { DockPanel, StackedPanel, Widget } from '@phosphor/widgets'; import '../style/index.css'; cla...
the_stack
* DescribeCallBackStatus请求参数结构体 */ export interface DescribeCallBackStatusRequest { /** * 业务appid */ BizAppId: string /** * 回拨请求响应中返回的 callId */ CallId: string /** * 主叫号码 */ Src?: string /** * 被叫号码 */ Dst?: string /** * 通话最后状态:0:未知状态 1:主叫响铃中 2:主叫接听 3:被叫响铃中 4:正常通话中 5:通话结...
the_stack
import * as ABIDecoder from "abi-decoder"; import * as _ from "lodash"; import * as omit from "lodash.omit"; import * as singleLineString from "single-line-string"; import * as Web3 from "web3"; // Utils import { BigNumber } from "../../../utils/bignumber"; import { NULL_ADDRESS } from "../../../utils/constants"; impor...
the_stack
import * as OperationTypes from "./OperationTypes"; import { createOperation, ignoredArrayExpression, ignoredStringLiteral, getLastOperationTrackingResultCall, ignoredNumericLiteral, isInIdOfVariableDeclarator, isInLeftPartOfAssignmentExpression, trackingIdentifierIfExists, ignoredCallExpression, ig...
the_stack
import {flatbuffers} from 'flatbuffers'; /** * @enum {number} */ export namespace onnxruntime.experimental.fbs { export enum AttributeType { UNDEFINED = 0, FLOAT = 1, INT = 2, STRING = 3, TENSOR = 4, GRAPH = 5, FLOATS = 6, INTS = 7, STRINGS = 8, TENSORS = 9, GRAPHS = 10,...
the_stack
import * as React from 'react'; /** * React Props interface */ interface ICommentHeaderProps { /** * Text comment to display * * @type string */ context: string; /** * State if the comment is edited * * @type boolean */ edited: boolean; /** * Tracks the state if the card is expan...
the_stack
import {createStore, createEvent, guard, Event} from 'effector' const typecheck = '{global}' test('wide union (should fail)', () => { const trigger: Event<{a: 1} | {a: 2} | {a: 3}> = createEvent() const allow = createStore<boolean>(true) const target: Event<{a: 1} | {a: 2}> = createEvent() guard({ clock: ...
the_stack
import { Constants, Guild, Member, User, VoiceChannel, TextChannel, Message, Attachment, DiscordRESTError } from 'eris'; import { Inject, Service } from '@augu/lilith'; import { PunishmentType } from '../entities/PunishmentsEntity'; import { EmbedBuilder } from '../structures'; import type GuildEntity from '../entities...
the_stack
export type Bounds = readonly [number, number]; export type BiIndex = readonly [number, number]; type CostFn<T, U> = (o?: T, m?: U) => number; /** * An alignment between two related sequences. * * Consider this alignment between two strings: * * .. code-block:: text * * |it's| |aligned!| * | \ \ ...
the_stack
import BigNumber from 'bignumber.js'; import Web3 from 'web3'; import { TransactionConfig, TransactionReceipt } from 'web3-core'; import { AbiExamples } from '../../abi-examples'; import { ContractContext as TokenContractContext } from './generated-typings/token-contract'; import { ContractContext as UniswapExchangeCon...
the_stack
import { focusFirstSiblingOf, focusLastSiblingOf, focusNextSiblingOf, focusPreviousSiblingOf, getClosestAccordion, getSiblingButtons, } from './focus'; describe('focus', () => { function createTree(innerHTML: string): DocumentFragment { const template = document.createElement('templ...
the_stack
import { AvlTreeIndex, TreeNode } from "../../src/avl_index"; import { IRangedIndexRequest, RangedIndexFactoryMap, IRangedIndex } from "../../src/ranged_indexes"; import { CreateJavascriptComparator, ComparatorMap, ILokiComparer } from "../../src/comparators"; import { Loki } from "../../src/loki"; import { Doc } from ...
the_stack
import { assert } from "chai"; import seedrandom = require("seedrandom"); import { LWWCVariable, CRDTApp, PrimitiveCRDT, CRDTMeta } from "../../src"; import { Optional, ManualBatchingStrategy, pseudoRandomReplicaID, Pre, MessageMeta, CollabEvent, CollabEventsRecord, } from "@collabs/core"; interface Meta...
the_stack
import {promises as fs, constants as fsConstants} from 'fs'; import * as path from 'path'; import test, {after, before} from 'ava'; import sinon from 'sinon'; import {OutputOptions, rollup, RollupOutput} from 'rollup'; import * as sassJs from 'sass'; import sass from '../src/index'; import {SassOptions} from "../src/ty...
the_stack
import React, {useEffect, useRef, useState} from "react"; import Editor, {useMonaco} from "@monaco-editor/react"; import EventEmitter from "eventemitter3"; import * as monaco from 'monaco-editor' import {BufferLike, ResponseDataDetailed} from "webdav/web"; import {Uri} from "monaco-editor"; import {isBinaryJs, getEncod...
the_stack
import {Component, OnInit, OnDestroy} from '@angular/core'; import {ICourse} from '../../../../../../../shared/models/ICourse'; import {ILecture} from '../../../../../../../shared/models/ILecture'; import {ILectureCreate} from '../../../../../../../shared/models/ILectureCreate'; import {CourseService, LectureService, N...
the_stack
import { normalizePath, utils } from '@neo-one/utils'; import _ from 'lodash'; import { currentDirectory } from './constants'; import { FileSystem } from './filesystem'; // tslint:disable interface FileSystemEntries { readonly files: readonly string[]; readonly directories: readonly string[]; } interface Wildcard...
the_stack
import { getDatabase } from './'; import { HASMANY as HasMany, HASONE as HasOne, INTEGER as Integer, BELONGSTO as BelongsTo, BELONGSTOMANY as BelongsToMany, } from '../fields'; import { DataTypes } from 'sequelize'; import Database from '..'; let db: Database; beforeEach(() => { db = getDatabase(); }); a...
the_stack
import AWS = require('aws-sdk'); import type * as dynamodb from '@aws-cdk/aws-dynamodb'; import type * as iam from '@aws-cdk/aws-iam'; import type * as cdk from '@aws-cdk/core'; import { any, array, map, optional, string, Type, TypeShape, Value } from '@punchcard/shape'; import { DDB, Mapper, TableClient } from '@pun...
the_stack
import StateBlock from 'markdown-it/lib/rules_block/state_block' import { Nesting } from 'markdown-it/lib/token' import MarkdownIt from 'markdown-it' function getLine(state: StateBlock, line: number) { const pos = state.bMarks[line] + state.blkIndent const max = state.eMarks[line] return state.src.substr(pos, m...
the_stack
import { v4 as uuid } from "uuid"; import produce, { Draft } from "immer"; import { Graph, Api, Model, Rbac } from "../../types"; import { graphTypes, getOrphanedLocalKeyIds, getOrphanedRecoveryKeyIds, getAppRoleEnvironmentRolesByComposite, getIncludedAppRolesByComposite, getLocalKeysByEnvironmentId, getE...
the_stack
import { animationFrameScheduler, fromEvent, interval, NEVER, Observable } from 'rxjs'; import { distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators'; import { ktdNormalizePassiveListenerOptions } from './passive-listeners'; import { getMutableClientRect } from './client-rect'; import { ktdNoEmit } from '....
the_stack
import * as inquirer from "inquirer"; import * as path from "path"; import { BaseTemplateManager } from "../templates"; import { Component, Config, ControlExtraConfigType, ControlExtraConfiguration, Framework, FrameworkId, ProjectLibrary, ProjectTemplate, Template } from "../types"; import { App, ChoiceItem, GoogleAn...
the_stack
import { Value, Tag, valueTag, CompressedJSON } from "./CompressedJSON"; import { assertNever, defined, panic, assert } from "../support/Support"; import { TypeBuilder } from "../TypeBuilder"; import { UnionBuilder, UnionAccumulator } from "../UnionBuilder"; import { ClassProperty, transformedStringTypeTargetTy...
the_stack
import kleur from 'kleur'; import ora from 'ora'; import type { OutputAsset, OutputChunk, RollupOutput } from 'rollup'; import { ensureLeadingSlash, HeadAttrsConfig, HeadConfig, removeEndingSlash, removeLeadingSlash, ServerEntryModule, ServerPage, SiteOptions, } from '../../../../shared'; import { fs, ...
the_stack
import { AppInstanceJson, JSONSerializer, GenericConditionalTransferAppName, ConditionalTransferAppNames, } from "@connext/types"; import { getSignerAddressFromPublicIdentifier, safeJsonParse } from "@connext/utils"; import { constants } from "ethers"; import { EntityRepository, Repository } from "typeorm"; im...
the_stack
import { Memoize } from '../src'; function sleep(time: number): Promise<void> { return new Promise((resolve) => { setTimeout(resolve, time); }); } describe('@Memoize()', () => { // Date.now() is a bit too deterministic, as tests run so fast // and use the same timestamp. We use a counter to increase uniqueness....
the_stack
import FeatureNameStatistics from 'goog:proto.featureStatistics.FeatureNameStatistics'; import Histogram from 'goog:proto.featureStatistics.Histogram'; import * as fsg from '../feature_statistics_generator'; const {expect} = chai; describe('generateStats', () => { it('handles null data', () => { const stats = ...
the_stack
import * as fs from "fs"; import * as path from "path"; import * as url from "url"; import { MultiError, VError } from "verror"; import * as http from "http"; import * as https from "https"; import "source-map-support/register"; import { IDisposable } from "../../src/Types/Contracts"; import { RavenTestDriver }...
the_stack
import React, { useState, useMemo } from 'react' import styled from 'styled-components' import { FieldContract, IndexComponentProps, ResourceContract } from '@tensei/components' import { useParams, useHistory, Link } from 'react-router-dom' import { EuiSpacer } from '@tensei/eui/lib/components/spacer' import { Eu...
the_stack
/*! * Copyright (c) 2020 Ron Buckton (rbuckton@chronicles.org) * * This file is licensed to you under the terms of the MIT License, found in the LICENSE file * in the root of this repository or package. */ import { Cancelable } from "@esfx/cancelable"; import { SyntaxKind } from "./tokens"; import { Sym...
the_stack
import * as monacoApi from 'monaco-editor'; import stripComments from './utils/strip-comments'; import { createPlugin } from './plugin-api'; declare module 'monaco-editor' { namespace editor { // interface IStandaloneCodeEditor { // addSelectAction: (action: IQuickSelectAction) => monacoApi.IDisposable; ...
the_stack
declare module "vscode" { /** * Namespace for testing functionality. Tests are published by registering * {@link TestController} instances, then adding {@link TestItem TestItems}. * Controllers may also describe how to run tests by creating one or more * {@link TestRunProfile} instances. */ export na...
the_stack
/// <reference path="API.ts" /> // A '.tsx' file enables JSX support in the TypeScript compiler, // for more information see the following page on the TypeScript wiki: // https://github.com/Microsoft/TypeScript/wiki/JSX namespace bws.packer.demo { export class Application extends React.Component<{}, {}> { pri...
the_stack
export const SET_LOCALE = "SET_LOCALE" // eslint-disable-next-line @typescript-eslint/no-redeclare export type SET_LOCALE = "SET_LOCALE" export const SET_FALLBACK_LOCALE = "SET_FALLBACK_LOCALE" // eslint-disable-next-line @typescript-eslint/no-redeclare export type SET_FALLBACK_LOCALE = "SET_FALLBACK_LOCALE" export c...
the_stack
import { HttpClientTestingModule, HttpTestingController, } from '@angular/common/http/testing'; import { TestBed, async, inject } from '@angular/core/testing'; import { skip, take } from 'rxjs/operators'; import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Pagina...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace Formmsdyn_liveworkstream_Information { interface Header extends DevKit.Controls.IHeader { /** The channel to which this workstream is attached */ msdyn_streamsource: DevKit.Controls.OptionSet; /** Specifies the mode i.e Pu...
the_stack
import { TypedRule, Replacement, typescriptOnly, excludeDeclarationFiles } from '@fimbul/ymir'; import * as ts from 'typescript'; import { expressionNeedsParensWhenReplacingNode, isAmbientPropertyDeclaration, isAmbientVariableDeclaration, typesAreEqual, tryGetBaseConstraintType, } from '../utils'; i...
the_stack
import ADB from 'appium-adb'; import { KeyEventCode, PackageInfo } from 'electron/platform/android/adb-wrapper'; import { AppiumAdbWrapper } from 'electron/platform/android/appium-adb-wrapper'; import { ExpectedCallType, IMock, It, Mock, MockBehavior, Times } from 'typemoq'; describe('AppiumAdbWrapper tests', () => { ...
the_stack
import ethers, { constants, Wallet, utils, BigNumber, Transaction, } from 'ethers'; import { latency, bigNumberWithDecimalToStr } from '../../services/base'; import { HttpException, OUT_OF_GAS_ERROR_CODE, OUT_OF_GAS_ERROR_MESSAGE, LOAD_WALLET_ERROR_CODE, LOAD_WALLET_ERROR_MESSAGE, TOKEN_NOT_SUPPOR...
the_stack
import { initState, reducer, distribute, getActionPlan, predictOptimisticState, updateAllProgress, getNextAppOp, } from "./logic"; import { runAll, runOneAppOp } from "./runner"; import { deviceInfo155, mockListAppsResult, mockExecWithInstalledContext, } from "./mock"; import { prettyActionPlan, pre...
the_stack
"use strict" import * as maptalks from 'maptalks'; import * as THREE from 'three'; import { BaseObjectOptionType } from './type/BaseOption'; import Line2 from './util/fatline/Line2'; const OPTIONS = { interactive: true, altitude: 0, minZoom: 0, maxZoom: 30, asynchronous: false }; /** * a Class fo...
the_stack
import * as moment from 'moment'; import * as unhandled from 'electron-unhandled'; import * as uuid from 'uuid'; import { BundleType, Relationship, SDO, SRO, StixObject, Indicator, ObservedData, Report, StixNode, } from './stix'; import * as stix from './stix'; import * as fileSaver ...
the_stack
import { Observer } from "../Misc/observable"; import { Nullable } from "../types"; import { WebVRFreeCamera } from "../Cameras/VR/webVRCamera"; import { Scene, IDisposable } from "../scene"; import { Quaternion, Vector3, Matrix } from "../Maths/math.vector"; import { AbstractMesh } from "../Meshes/abstractMesh"; ...
the_stack
import { DomElement, HTMLInstance, IDom, IKeyValue } from "../types"; import { DomDiff } from "./DomDiff"; /** * Dom 유틸리티 * */ export class Dom implements IDom { el: HTMLInstance; _initContext: any; constructor(tag: DomElement, className: string = '', attr: IKeyValue = {}) { if (typeof tag !== 'string'...
the_stack
import { IGrid, ResponsiveDialogArgs } from '../base/interface'; import { Column } from '../models/column'; import { Dialog, DialogModel } from '@syncfusion/ej2-popups'; import { remove, extend, updateBlazorTemplate } from '@syncfusion/ej2-base'; import { L10n } from '@syncfusion/ej2-base'; import { ServiceLocator } fr...
the_stack
import type { SendEventForFacet } from '../../lib/utils'; import { checkRendering, warning, createDocumentationMessageGenerator, createSendEventForFacet, isEqual, noop, } from '../../lib/utils'; import type { SearchResults } from 'algoliasearch-helper'; import type { Connector, CreateURL, TransformIte...
the_stack
import type { IIndexable, IServiceLocator } from '@aurelia/kernel'; import type { Scope } from './observation/binding-context'; import type { CollectionLengthObserver, CollectionSizeObserver } from './observation/collection-length-observer'; export interface IBinding { interceptor: this; readonly locator: IService...
the_stack
import { Parser } from 'interweave'; import { createExpectedToken, parentConfig, TOKEN_LOCATIONS } from 'interweave/test'; import { URL_PATTERN } from '../src/constants'; import UrlMatcher from '../src/UrlMatcher'; interface URLParams { url: string; scheme?: string | null; auth?: string; host?: string; path?...
the_stack
import { OptgroupProps } from './block-kit/composition/Optgroup' import { OptionProps } from './block-kit/composition/Option' import { ButtonProps } from './block-kit/elements/Button' import { SelectProps } from './block-kit/elements/Select' import { AutoFocusibleIntrinsicProps } from './block-kit/elements/utils' impor...
the_stack
import { IPickAndOpenOptions, ISaveDialogOptions, IOpenDialogOptions, IFileDialogService, FileFilter } from 'vs/platform/dialogs/common/dialogs'; import { URI } from 'vs/base/common/uri'; import { registerSingleton } from 'vs/platform/instantiation/common/extensions'; import { AbstractFileDialogService } from 'vs/workb...
the_stack
import { CPU } from './cpu'; import { u16 } from '../types'; function isTwoWordInstruction(opcode: u16) { return ( /* LDS */ (opcode & 0xfe0f) === 0x9000 || /* STS */ (opcode & 0xfe0f) === 0x9200 || /* CALL */ (opcode & 0xfe0e) === 0x940e || /* JMP */ (opcode & 0xfe0e) === 0x940c );...
the_stack
import { Resource } from 'i18next'; import { Strings as $ } from '../constants/Strings'; import { SharedSlotType } from '../interactionModelGeneration/ModelTypes'; //todo: move this somewhere more appropriate. consider splitting prompts/intents /** * Localized data for built-ins. * * Contains prompts, reprompts, A...
the_stack
import type { MLASTElement } from '@markuplint/ml-ast'; import { nodeListToDebugMaps } from '@markuplint/parser-utils'; import { parse } from './'; describe('parser', () => { it('empty code', () => { const doc = parse('<template></template>'); expect(doc.nodeList).toStrictEqual([]); expect(doc.nodeList.length...
the_stack
import Dictionary from '../../util/Dictionary'; import Point from '../geometry/Point'; import GraphLayout from './GraphLayout'; import CellPath from '../cell/CellPath'; import Rectangle from '../geometry/Rectangle'; import { sortCells } from '../../util/styleUtils'; import WeightedCellSorter from './util/WeightedCellSo...
the_stack
import React, { Component } from 'react'; import { StyleSheet, Text, View, DeviceEventEmitter, ScrollView, TouchableOpacity, } from 'react-native'; import Kontakt from 'react-native-kontaktio'; import type { ColorValue } from 'react-native'; import type { ConfigType, RegionType, IBeaconAndroid, } from...
the_stack
import React, { createContext, useCallback, useContext, useEffect, useMemo, useReducer, useRef, useState, // Types ContextType, ElementType, MouseEvent as ReactMouseEvent, MutableRefObject, Ref, } from 'react' import { Props } from '../../types' import { match } from '../../utils/match' im...
the_stack
import { createElement } from '@syncfusion/ej2-base'; import { Chart, LineSeries, ILoadedEventArgs, getElement, DataLabel, AreaSeries, ColumnSeries, BarSeries, StackingAreaSeries, ScatterSeries, BubbleSeries, StepLineSeries, SplineSeries, removeElement, StepAreaSeries, RangeColumnSeries, Category } from '....
the_stack
import * as path from 'path'; import {google} from '../../protos/protos'; import {grpc} from 'google-gax'; import * as protoLoader from '@grpc/proto-loader'; import {createUnimplementedError, now} from './mockspanner'; import v1 = google.spanner.admin.instance.v1; import iam = google.iam.v1; import longrunning = google...
the_stack
import type { LineAndColumnData, ReportDescriptor, RuleContext, SourceLocation, ReportDescriptorSourceLocation, } from "../../../types" import type { StyleContext } from "../style" import type { VCSSCommentNode } from "../../ast" const COMMENT_DIRECTIVE_B = /^\s*(eslint-(?:en|dis)able)(?:\s+(\S...
the_stack
// eslint-disable-next-line import/no-extraneous-dependencies import { DynamoDB } from 'aws-sdk'; export class CompositeStringIndexTable { public static readonly API_VERSION = '2012-08-10'; public static async fromExisting(client: DynamoDB, tableName: string): Promise<CompositeStringIndexTable> { // Determine...
the_stack
* @module CartesianGeometry */ import { Geometry, PlaneAltitudeEvaluator } from "../Geometry"; import { Matrix4d } from "../geometry4d/Matrix4d"; import { Point4d } from "../geometry4d/Point4d"; import { XYParitySearchContext } from "../topology/XYParitySearchContext"; import { GrowableXYZArray } from "./GrowableXYZAr...
the_stack
import * as vscode from 'vscode' import * as _ from 'lodash' import * as mime from 'mime-types' import * as path from 'path' import { AWSError, S3 } from 'aws-sdk' import { inspect } from 'util' import { ext } from '../extensionGlobals' import { getLogger } from '../logger' import { DefaultFileStreams, FileStreams, pip...
the_stack
import { resolve, dirname, relative } from 'path' import fs from 'fs-extra' import os from 'os' import chalk from 'chalk' import glob from 'fast-glob' import { debug } from 'debug' import { Project } from 'ts-morph' import { normalizePath } from 'vite' import { readConfigFile } from 'typescript' import { normalizeGlo...
the_stack
import { Skeleton } from "./Skeleton"; import { MixBlend } from "./Animation"; export interface StringMap<T> { [key: string]: T; } export class IntSet { array = new Array<number>(); add (value: number): boolean { let contains = this.contains(value); this.array[value | 0] = value | 0; return !contains; } ...
the_stack
// // Main demos // // 01-default.html function defaultDemo() { const swiper = new Swiper('.swiper-container'); } // 02-responsive.html function responsive() { const swiper = new Swiper('.swiper-container', { pagination: '.swiper-pagination', paginationClickable: true }); } // 03-vertical.h...
the_stack
import { normalizeUrl } from '@worldbrain/memex-url-utils' import * as DATA from './index.test.data' import { PageUrlsByDay } from './types' import { setupBackgroundIntegrationTest } from 'src/tests/background-integration-tests' import { BackgroundModules } from 'src/background-script/setup' import { Annotation, Annot...
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 Applicatio...
the_stack
import { Component, ContentChildren, QueryList, EventEmitter, Input, Output, OnDestroy, forwardRef, ElementRef, AfterContentInit, AfterViewChecked, NgZone, } from '@angular/core'; import { SelectOptionComponent } from '../select-option/select-option.component'; import { Subscription, timer, Obse...
the_stack
declare module "vscode-tasks" { export interface TaskConfiguration extends BaseTaskConfiguration { /** * The configuration's version number */ version: string; /** * Windows specific task configuration */ windows?: BaseTaskConfiguration; ...
the_stack
import { render, Component, h } from 'preact'; import ZoomableTwoUp from './ZoomableTwoUp'; import f1WebpMatch from 'asset-url:static-build/posts/2020/09/avif-has-landed/demos/f1-match.webp'; import f1WebpMatchSize from 'asset-pretty-size:static-build/posts/2020/09/avif-has-landed/demos/f1-match.webp'; import f1WebpGo...
the_stack
import * as WebSocketProtocol from "../../../../main/js/generated/joynr/system/RoutingTypes/WebSocketProtocol"; import ProvisioningRoot from "../../../resources/joynr/provisioning/provisioning_root"; // logger and mqtt // @ts-ignore const onFatalRuntimeError = (error: JoynrRuntimeException) => { return; }; const ...
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 Inspector2...
the_stack
import {TensorContainer, TensorContainerArray, TensorContainerObject} from '@tensorflow/tfjs-core'; import {iteratorFromConcatenated, iteratorFromConcatenatedFunction, iteratorFromFunction, iteratorFromIncrementing, iteratorFromItems, iteratorFromZipped, LazyIterator, ZipMismatchMode} from './lazy_iterator'; export c...
the_stack
* TreeNavController is the navigation tree component of the documentation page. * It adds accessiblity attributes to a tree, observes the heading elements * focus the topmost link for headings visible on the page, and implements the * WAI-ARIA Treeview Design Pattern with full * [keyboard support](https://www.w3.or...
the_stack
import './_ext'; import errno from './errno'; import {Encoding} from './buffer'; import _util from './_util'; const _fs = __require__('_fs'); export enum FileOpenFlag { FOPEN_ACCMODE = 0o3, FOPEN_RDONLY = 0o0, FOPEN_WRONLY = 0o1, FOPEN_RDWR = 0o2, FOPEN_CREAT = 0o100, FOPEN_EXCL = 0o200, FOPEN_NOCTTY = 0o400, ...
the_stack
import BigNumber from 'bignumber.js'; import _ from 'lodash'; import Web3 from 'web3'; import { BigNumberable, MakerOracleMessage, Price, address, } from '../src/lib/types'; import { MirrorOracle } from '../src/modules/MirrorOracle'; import { expect, expectAddressesEqual, expectBaseValueEqual, expectBN...
the_stack
import { EventTarget } from '../utils/EventTarget' import { Vec3 } from '../math/Vec3' import { Mat3 } from '../math/Mat3' import { Quaternion } from '../math/Quaternion' import { AABB } from '../collision/AABB' import { Box } from '../shapes/Box' import type { Shape } from '../shapes/Shape' import type { Material } fr...
the_stack