text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import { arrayBuffer } from "stream/consumers";
import { ReadableStream } from "stream/web";
import { TextDecoder, TextEncoder } from "util";
import {
Clock,
Storage,
StoredKeyMeta,
assertInRequest,
defaultClock,
millisToSeconds,
viewToArray,
viewToBuffer,
waitForOpenInputGate,
waitForOpenOutputGate... | the_stack |
import { Dictionary, ArrayLike, KeyOfDistributive } from './types';
import { GradientObject } from '../graphic/Gradient';
import { ImagePatternObject } from '../graphic/Pattern';
// 用于处理merge时无法遍历Date等对象的问题
const BUILTIN_OBJECT: {[key: string]: boolean} = {
'[object Function]': true,
'[object RegExp]': true,
... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
import * as utilities from "../utilities";
/**
* An Anthos node pool running on Azure.
*
* For more information, see:
* * [Multicloud overview](https://cloud.google.com/anthos/clusters/docs/multi-cloud)
* ## E... | the_stack |
import { Editor as CoreEditor } from "slate";
import EditTable from 'slate-uui-table-plugin';
import * as React from "react";
import { Table } from "./Table";
import { TableRow } from "./TableRow";
import { TableCell } from "./TableCell";
import { TableHeaderCell } from "./TableHeaderCell";
import { Editor } from "slat... | the_stack |
import { StyleBuilderDefinitions, StaticStyles } from "./types";
import { StyleSheet } from "react-native";
import { UnionToIntersection } from "utility-types";
export class DefinitionKebabCase {
protected startIndex: number = -1;
constructor(protected readonly definition: string) {}
peek(): string {
const... | the_stack |
import { Emitter, Event } from 'vs/base/common/event';
import { Disposable, IDisposable, toDisposable } from 'vs/base/common/lifecycle';
import * as strings from 'vs/base/common/strings';
import { ITextModel } from 'vs/editor/common/model';
import { DEFAULT_WORD_REGEXP, ensureValidWordDefinition } from 'vs/editor/commo... | the_stack |
import { RequestOptions as HttpsRequestOptions } from "https";
import { RequestOptions as HttpRequestOptions } from "http";
import { RawSourceMap, SourceMapGenerator } from "source-map";
/**
* Shared options passed when initializing a new instance of CleanCSS that returns either a promise or output
*/
interface Opt... | the_stack |
import {
assert,
ASTNode,
CompileResult,
ContractDefinition,
FunctionDefinition,
ParameterList,
PragmaDirective,
SourceUnit,
SrcRangeMap,
StructuredDocumentation,
VariableDeclaration
} from "solc-typed-ast";
import { Range, SrcTriple } from "./location";
import { getOr } from... | the_stack |
import { homedir } from 'os'
import path from 'path'
import readline from 'readline'
import { randomBytes } from 'crypto'
import { ensureDirSync, readFileSync, removeSync } from 'fs-extra'
import { Server as RPCServer } from 'jayson/promise'
import Common, { Chain, Hardfork } from '@ethereumjs/common'
import { _getInit... | the_stack |
namespace sensors {
/**
* Makecode package for the TSL2591 Light sensor.
*
* More details here: https://ams.com/documents/20143/36005/TSL2591_DS000338_6-00.pdf/090eb50d-bb18-5b45-4938-9b3672f86b80
*/
const TSL2591_I2C_ADDRESS = 0x29 //I2C address of the TSL2591 (Page 28)
//See Page 13... | the_stack |
import { Util } from './util'
export class Special {
public readonly acceptsBooleans: boolean
constructor(
public readonly type: Special.Type,
public readonly propertyName: string,
public readonly attributeName: string,
public readonly attributeNamespace: string | null = null,
public readonly ... | the_stack |
import test from "ava";
import { Indexer, TransactionCollector } from "@ckb-lumos/indexer";
import { CacheManager, getBalance } from "../src";
import {
HDCache,
getDefaultInfos,
CellCollector,
CellCollectorWithQueryOptions,
publicKeyToMultisigArgs,
} from "../src/index";
import {
Cell,
QueryOptions,
Tr... | the_stack |
import { ethers, waffle } from "hardhat";
import { Signer, BigNumber } from "ethers";
import chai from "chai";
import { solidity } from "ethereum-waffle";
import "@openzeppelin/test-helpers";
import {
AlpacaToken,
FairLaunch,
FairLaunch__factory,
MockContractContext,
MockContractContext__factory,
MockERC20,... | the_stack |
'use strict';
/* Directive tells jshint that suite and test are globals defined by mocha */
/* global suite */
/* global test */
/* global setup */
/* global teardown */
import * as _ from "underscore";
import * as assert from "assert";
const util = require('./util/util');
const cp = util.commonParameters;
const test... | the_stack |
import * as d3 from 'd3-selection';
var tempDiv = document.createElement('div');
import * as utils from './utils';
var scrollbarSizes: WeakMap<Node, {width: number; height: number;}> = new WeakMap();
export function appendTo(el: string | Node, container: Element) {
var node: Node;
if (el instanceof... | the_stack |
import '@testing-library/jest-dom/extend-expect';
import React, { useState } from 'react';
import {
render,
cleanup,
fireEvent,
RenderResult,
act,
} from '@testing-library/react';
import genericUserEvent from '@testing-library/user-event';
import {
BraidTestProvider,
MenuItem,
MenuItemLink,
MenuItemCh... | the_stack |
import {
Action,
BaseResource,
exceptions,
handlerEvent,
HandlerErrorCode,
integer,
Integer,
LoggerProxy,
OperationStatus,
Optional,
ProgressEvent,
ResourceHandlerRequest,
SessionProxy
} from '@amazon-web-services-cloudformation/cloudformation-cli-typescript-lib';
imp... | the_stack |
* @module Errors
*/
import {
AuthStatus,
BentleyError,
BentleyStatus,
BriefcaseStatus,
ChangeSetStatus,
GeoServiceStatus,
HttpStatus,
IModelHubStatus,
IModelStatus,
RealityDataStatus,
RepositoryStatus,
RpcInterfaceStatus,
} from "./BentleyError";
/* eslint-disable @typescript-eslint/no-shadow... | the_stack |
import { URLExt } from '@jupyterlab/coreutils';
import { ServerConnection } from '@jupyterlab/services';
import { ISettingRegistry } from '@jupyterlab/settingregistry';
import { JSONObject, PromiseDelegate } from '@lumino/coreutils';
import { ISignal, Signal } from '@lumino/signaling';
import { Conda, IEnvironmentManag... | the_stack |
import { actions } from "common/actions";
import { ITCH_URL_RE } from "common/constants/urls";
import { Space } from "common/helpers/space";
import { Store, TabPage } from "common/types";
import { Watcher } from "common/util/watcher";
import { BrowserWindow, WebContents, webContents } from "electron";
import { mainLogg... | the_stack |
* Hyperledger Cactus Plugin - Connector Iroha
* Can perform basic tasks on a Iroha ledger
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
impor... | the_stack |
import { ComposeHelper, compose_file } from './composer';
import {
debug_print,
each_exec,
fromLineCharToOffset,
get_extra_indent,
hash,
insert_segments,
MappedKeys,
MappedPosition,
MappedRange,
Mappings,
Position,
Range,
range_for,
reduce_segments,
tab_aware_... | the_stack |
import React from 'react'
import _ from 'lodash'
import { StoreState, MenuPosition, Role, MenuItem } from 'src/types'
import { Store } from 'redux';
import { updateMenuItems } from 'src/store/reducers/menu';
import { getBootConfig, currentLang } from 'src/packages/datav-core/src';
import localeData from 'src/core/libr... | the_stack |
import React, { useState, PropsWithChildren } from 'react'
import Link from 'next/link'
import Button from '../components/Button'
import Hero from '../components/Hero'
import * as Feature from '../components/Feature'
import Footer from '../components/Footer'
import Navigation from '../components/Navigation'
import Sec... | the_stack |
import fs from "fs";
import ts, { factory } from "typescript";
ts.parseIsolatedEntityName;
type KeywordTypeName =
| "any"
| "number"
| "object"
| "string"
| "boolean"
| "undefined"
| "null";
export const questionToken = factory.createToken(ts.SyntaxKind.QuestionToken);
export function createQuestionTok... | the_stack |
export default function makeDashboard(integrationId: string) {
return {
annotations: {
list: [
{
builtIn: 1,
datasource: "-- Grafana --",
enable: true,
hide: true,
iconColor: "rgba(0, 211, 255, 1)",
name: "Annotations & Alerts",
t... | the_stack |
import 'mocha'
import * as C from '../../../src/constants'
import { expect } from 'chai'
import RecordHandler from './record-handler'
import * as M from './test-messages'
import * as testHelper from '../../test/helper/test-helper'
import { getTestMocks } from '../../test/helper/test-mocks'
describe('record handler... | the_stack |
* Adapted from React TypeScript definition
* @see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts
* https://github.com/DefinitelyTyped/DefinitelyTyped/commit/e6491e0d87a72a566c0f6ce61fca2b57199aa172
*/
import type * as CSS from "csstype"
export * from "./extra"
export { styled ... | the_stack |
import Decimal from "decimal.js-light";
import { SeedName, SEEDS } from "../types/crops";
import { InventoryItemName } from "../types/game";
import { Section } from "lib/utils/hooks/useScrollIntoView";
import { Flag, FLAGS } from "./flags";
import { marketRate } from "../lib/halvening";
import { KNOWN_IDS, KNOWN_ITEMS,... | the_stack |
import {
Mutable,
Class,
Arrays,
Comparator,
FromAny,
Dictionary,
MutableDictionary,
Creatable,
InitType,
Initable,
ConsumerType,
Consumable,
Consumer,
} from "@swim/util";
import {
Fastener,
Property,
Provider,
ComponentFlags,
ComponentInit,
Component,
} from "@swim/component";
im... | the_stack |
import { Constants, Message, OldMessage, TextChannel } from 'eris';
import { Inject, Subscribe } from '@augu/lilith';
import { LoggingEvents } from '../entities/LoggingEntity';
import { EmbedBuilder } from '../structures';
import CommandService from '../services/CommandService';
import AutomodService from '../services/... | the_stack |
import * as React from 'react';
import { IPropertyFieldMaskedInputPropsInternal } from './PropertyFieldMaskedInput';
import { Label } from 'office-ui-fabric-react/lib/Label';
import { Async } from 'office-ui-fabric-react/lib/Utilities';
import 'office-ui-fabric-react/lib/components/TextField/TextField.scss';
/**
* @i... | the_stack |
import {Component, OnInit, Input, Output, EventEmitter, OnChanges, SimpleChanges, ViewChildren} from '@angular/core';
import * as _ from 'lodash';
import {LoggerService} from '../services/logger.service';
import {animate, group, query, style, transition, trigger} from '@angular/animations';
import { RefactorFieldsServi... | the_stack |
import {
switchMode,
getIsMarkdown,
getMenu,
clearEditor,
hasClass,
editorSelector,
isElementVisible,
elementExists,
typeText,
} from "../e2e-helpers";
const boldMenuButtonSelector = ".js-bold-btn";
const insertLinkMenuItemSelector = ".js-insert-link-btn";
const linkViewTooltipSele... | the_stack |
import * as ts from "typescript";
import * as lua from "../../../LuaAST";
import { cast } from "../../../utils";
import { TransformationContext } from "../../context";
import { validateAssignment } from "../../utils/assignment-validation";
import { createExportedIdentifier, getDependenciesOfSymbol, isSymbolExported } f... | the_stack |
'use strict';
import * as assert from 'assert';
import { Promise, TPromise } from 'vs/base/common/winjs.base';
import Async = require('vs/base/common/async');
suite('Async', () => {
test('Throttler - non async', function(done) {
var count = 0;
var factory = () => {
return TPromise.as(++count);
};
var thr... | the_stack |
import { Component, OnInit, Input } from '@angular/core';
import { ApiService } from '../api.service';
import { NzMessageService } from 'ng-zorro-antd/message';
import { EJSON, ObjectId } from 'bson';
import {
NzNotificationService,
NzTreeHigherOrderServiceToken,
} from 'ng-zorro-antd';
import * as _ from 'lodash';... | the_stack |
// clang-format off
import 'chrome://settings/lazy_load.js';
import {webUIListenerCallback} from 'chrome://resources/js/cr.m.js';
import {loadTimeData} from 'chrome://resources/js/load_time_data.m.js';
import {flush} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import {SecureDnsInputElement, ... | the_stack |
import colors, { Color } from "chalk";
import { Ora } from "ora";
import { SetRequired } from "type-fest";
declare type ColorType = typeof Color;
interface Options {
logLevel?: number;
mock?: boolean;
}
declare class Logger {
options: Required<Options>;
lines: string[];
constructor(options?: Optio... | the_stack |
import { CONSTANTS } from '@/util/common'
import AppTbs from '@/components/appTbs'
import PageTitle from '@/components/PageTitle'
import applicationModels from '@/models/application/model'
import applicationService from '@/models/application/service'
import { connect } from '@/util/store'
import '@/style/masonry.less'
... | the_stack |
import assert from "assert";
import {
Storage,
StorageListOptions,
StorageListResult,
StoredKey,
StoredKeyMeta,
StoredValue,
StoredValueMeta,
millisToSeconds,
viewToArray,
} from "@miniflare/shared";
import { listFilterMatch, listPaginate } from "@miniflare/storage-memory";
import { Commands, Pipeline... | the_stack |
//prettier-ignore
export const nonAsciiIdentifierMap: readonly number[] = [
0xa0, 0x377,
0x37a, 0x37f,
0x384, 0x38a,
0x38c, 0x38c,
0x38e, 0x3a1,
0x3a3, 0x52f,
0x531, 0x556,
0x559, 0x58a,
0x58d, 0x58f,
0x591, 0x5c7,
0x5d0, 0x5ea,
0x5ef, 0x5f4,
0x600, 0x61c,
0x61e, 0x70d,
0x70f, 0x74a,
0x7... | the_stack |
import {clamp} from '@math.gl/core';
import Controller from './controller';
import ViewState from './view-state';
import {mod} from '../utils/math-utils';
import type Viewport from '../viewports/viewport';
import LinearInterpolator from '../transitions/linear-interpolator';
export type OrbitStateProps = {
width: nu... | the_stack |
import { isSpace, isDigit, isAlpha, findGroupEnd } from './utils';
import { Token, TokenType, REVERSED_KEYWORDS } from './tokens';
export class Lexer {
text: string;
pos: number;
_isFunc = false; // func setup and prop value setup
_isID = false; // solve dict pairs setup and prop value setup, cause number|str... | the_stack |
import type {Class, Initable} from "@swim/util";
import {Affinity, MemberFastenerClass, Animator} from "@swim/component";
import {AnyLength, Length, AnyAngle, Angle, AnyR2Point, R2Point, R2Box} from "@swim/math";
import {AnyFont, Font, AnyColor, Color} from "@swim/style";
import {Look, ThemeAnimator} from "@swim/theme"... | the_stack |
import {
HalfFloatType,
OrthographicCamera,
RGBFormat,
Texture,
TextureLoader,
UnsignedByteType,
Vector2,
Vector4,
WebGLRenderer
} from "three";
import { AdvectionPass } from "./passes/AdvectionPass";
import { BoundaryPass } from "./passes/BoundaryPass";
import { ColorInitPass } from "./passes/ColorIn... | the_stack |
declare class AXCategoricalDataAxisDescriptor extends NSObject implements AXDataAxisDescriptor {
static alloc(): AXCategoricalDataAxisDescriptor; // inherited from NSObject
static new(): AXCategoricalDataAxisDescriptor; // inherited from NSObject
categoryOrder: NSArray<string>;
attributedTitle: NSAttributedStri... | the_stack |
import { BlockRegData, BlockParameterEnumRegData } from "../Define/BlockDef";
import { Block } from "../Define/Block";
import { BlockEditor } from "../Editor/BlockEditor";
import ParamTypeServiceInstance from "../../sevices/ParamTypeService";
import CommonUtils from "../../utils/CommonUtils";
import StringUtils from ".... | the_stack |
import {
Box,
Button,
Dialog,
DialogActions,
DialogContent,
Divider,
FormControl,
FormControlLabel,
Grid,
Link,
Switch,
Typography
} from '@material-ui/core'
import { shell } from 'electron'
import { ipcRenderer as ipc } from 'electron-better-ipc'
import path from 'path'
... | the_stack |
import * as async from "../async";
import * as path from "path";
import * as os from "os";
import { Dictionary } from "../dictionary";
import { Workspace } from "./workspace"
import { PuppetModulesInfo } from "./modules_info"
import { PuppetClassInfo, PuppetDefinedTypeInfo, PuppetFunctionInfo } from "./class_info"
imp... | the_stack |
import { flattenBinArray } from '../../format/hex';
import {
AuthenticationInstruction,
ParsedAuthenticationInstruction,
ParsedAuthenticationInstructionMalformed,
} from '../../vm/instruction-sets/instruction-sets-types';
import {
authenticationInstructionIsMalformed,
parseBytecode,
serializeParsedAuthentic... | the_stack |
import $ from "jquery";
import { asArray, hasOwnProperty } from "../utils";
import { isIE } from "../utils/browser";
import type { BindScope } from "./bind";
import {
shinyBindAll,
shinyInitializeInputs,
shinyUnbindAll,
} from "./initedMethods";
import { sendImageSizeFns } from "./sendImageSize";
import { render... | the_stack |
import { wrapped } from "../functions";
import { expressionSkipsCopy, withPossibleRepresentations, FunctionMap, PossibleRepresentation, ReifiedType, TypeParameterHost } from "../reified";
import { addVariable, lookup, uniqueName, Scope } from "../scope";
import { concat, lookupForMap } from "../utils";
import { array, ... | the_stack |
import {ResourceBase, ResourceTag} from '../resource'
import {Value, List} from '../dataTypes'
export class IncrementalPullConfig {
DatetimeTypeFieldName?: Value<string>
constructor(properties: IncrementalPullConfig) {
Object.assign(this, properties)
}
}
export class PrefixConfig {
PrefixType... | the_stack |
/**
*
* @module GameObjects
* @submodule Tilemap
*
*/
module Kiwi.GameObjects.Tilemap {
/**
* Contains the code for managing and rendering Isometric types of TileMaps.
* This class should not be directly created, but instead should be created via methods on the TileMap class.
*
*
* @class TileMap... | the_stack |
import './strings.m.js';
import {assert} from 'chrome://resources/js/assert.m.js';
import {loadTimeData} from 'chrome://resources/js/load_time_data.m.js';
import {isTabElement, TabElement} from './tab.js';
import {isDragHandle, isTabGroupElement, TabGroupElement} from './tab_group.js';
import {Tab, TabNetworkState} f... | the_stack |
import { browser, protractor, $, $$, Browser} from 'protractor';
import {AssetList} from '../page-objects/asset-list.po';
import { Menu } from '../page-objects/menu.po';
import { Login } from '../page-objects/login.po';
import { OverviewCompliance } from '../page-objects/overview.po';
import { CONFIGURATIONS } from '..... | the_stack |
import { DOMParser, Node } from 'prosemirror-model';
import { EditorState, Plugin, Selection, Transaction } from 'prosemirror-state';
import { EditorView } from 'prosemirror-view';
import 'prosemirror-view/style/prosemirror.css';
import ResizeObserver from 'resize-observer-polyfill';
import Vue from 'vue';
import { Com... | the_stack |
import {
ColorHSL,
ColorLAB,
ColorRGBA64,
hslToRGB,
interpolateRGB,
labToRGB,
rgbToHSL,
rgbToLAB,
roundToPrecisionSmall,
} from "@microsoft/fast-colors";
import { BasePalette } from "./palette.js";
import { SwatchRGB } from "./swatch.js";
import { contrast } from "./utilities/relativ... | the_stack |
import {
State,
Agile,
StateObserver,
Observer,
StatePersistent,
EnhancedState,
} from '../../../src';
import * as Utils from '@agile-ts/utils';
import { LogMock } from '../../helper/logMock';
jest.mock('../../../src/state/state.persistent');
describe('Enhanced State Tests', () => {
let dummyAgile: Agil... | the_stack |
import * as ts from 'typescript'
import {
FieldDefinition,
FunctionDefinition,
Identifier,
ServiceDefinition,
SyntaxType,
ThriftStatement,
} from '@creditkarma/thrift-parser'
import { ContextType, TProtocolType } from './types'
import {
createStructArgsName,
createStructResultName,
... | the_stack |
import chunk from 'lodash/chunk'
import flatMap from 'lodash/flatMap'
import { getWellDepth } from '@opentrons/shared-data'
import { AIR_GAP_OFFSET_FROM_TOP } from '../../constants'
import * as errorCreators from '../../errorCreators'
import { getPipetteWithTipMaxVol } from '../../robotStateSelectors'
import type {
C... | the_stack |
import {Mutable, Proto, AnyTiming, Timing} from "@swim/util";
import {FastenerContext, FastenerOwner, FastenerInit, FastenerClass, Fastener} from "@swim/component";
import type {
AnyConstraintExpression,
ConstraintVariable,
ConstraintProperty,
ConstraintRelation,
AnyConstraintStrength,
Constraint,
Constra... | the_stack |
import { take } from "rxjs/operators";
import { IBApi, IBApiNext, IBApiNextError, EventName } from "../../..";
describe("RxJS Wrapper: getAccountSummary()", () => {
test("Error Event", (done) => {
const apiNext = new IBApiNext();
const api = ((apiNext as unknown) as Record<string, unknown>).api as IBApi;
... | the_stack |
require("./index.scss");
require("datatables.net-dt/css/jquery.dataTables.css");
require("datatables.net");
//@ts-ignore (jquery _does_ expose a default. In es6, it's the one we should use)
import $ from "jquery";
import Parser from "../../parsers";
import { escape } from "lodash-es";
import { Plugin, DownloadInfo } fr... | the_stack |
| Copyright (c) 2014-2017, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|----------------------------------------------------------------------------*/
import {
IIterator, empty
} from '@lumino/algorit... | the_stack |
import { Event, Emitter } from 'vs/base/common/event';
import { IEditorFactoryRegistry, GroupIdentifier, EditorsOrder, EditorExtensions, IUntypedEditorInput, SideBySideEditor, EditorCloseContext, IMatchEditorOptions, GroupModelChangeKind } from 'vs/workbench/common/editor';
import { EditorInput } from 'vs/workbench/com... | the_stack |
import React from "react"
import PropTypes from "prop-types"
import { action, observable, makeObservable } from "mobx"
import { observer, inject, Provider } from "../src"
import { IValueMap } from "../src/types/IValueMap"
import { render, act } from "@testing-library/react"
import { withConsole } from "./utils/withCons... | the_stack |
import { IHttpPostMessageResponse } from 'http-post-message';
import {
CommonErrorCodes,
DisplayOption,
FiltersOperations,
ICustomPageSize,
IFilter,
IPage,
IUpdateFiltersRequest,
IVisual,
LayoutType,
PageLevelFilters,
PageSizeType,
SectionVisibility,
VisualContainerDisplayMode,
IPageBackgrou... | the_stack |
import { ParseQueryConfig } from '../src/parser/parser';
export interface TestCaseForFormat {
testCase: number;
soql: string;
isValid: boolean;
options?: ParseQueryConfig;
}
export const testCases: TestCaseForFormat[] = [
{
testCase: 1,
soql: 'SELECT Id, Name, BillingCity FROM Account',
isValid:... | the_stack |
import * as React from "react";
import { DraggableEventHandler, default as DraggableRoot } from "react-draggable";
import { Enable, Resizable, ResizeDirection } from "re-resizable";
// FIXME: https://github.com/mzabriskie/react-draggable/issues/381
// I can not find `scale` too...
type $TODO = any;
const Dragg... | the_stack |
import { AspidaClient, dataToURLString } from 'aspida'
// prettier-ignore
import { Methods as Methods0 } from './users/_user_id@string/orders'
// prettier-ignore
import { Methods as Methods1 } from './users/_user_id@string/orders/_order_id@string'
// prettier-ignore
import { Methods as Methods2 } from './users/_user_id... | the_stack |
import { APP_BASE_HREF } from '@angular/common';
import { HttpRequest } from '@angular/common/http';
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { fakeAsync, TestBed, tick } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testi... | the_stack |
import {BaseGlShaderAssembler} from '../_Base';
import {ThreeToGl} from '../../../../../../core/ThreeToGl';
import {OutputGlNode} from '../../../Output';
import {AttributeGlNode} from '../../../Attribute';
import {ShaderName} from '../../../../utils/shaders/ShaderName';
import {GlobalsGlNode} from '../../../Globals';
... | the_stack |
import { utils as ethersUtils } from 'ethers';
import { AdvancedLogic } from '@requestnetwork/advanced-logic';
import { PaymentNetworkFactory } from '@requestnetwork/payment-detection';
import { RequestLogic } from '@requestnetwork/request-logic';
import { TransactionManager } from '@requestnetwork/transaction-manager'... | the_stack |
import {Component, OnDestroy, OnInit} from '@angular/core';
import {ActivatedRoute} from '@angular/router';
import {EveboxSubscriptionService} from '../../subscription.service';
import {ElasticSearchService} from '../../elasticsearch.service';
import {TopNavService} from '../../topnav.service';
import {ReportsService} ... | the_stack |
* @title: GPU ParticleSystem
* @description:
* This sample demonstrates the capabilities and usage of the GPU ParticleSystem.
*/
/*{{ javascript("jslib/observer.js") }}*/
/*{{ javascript("jslib/requesthandler.js") }}*/
/*{{ javascript("jslib/utilities.js") }}*/
/*{{ javascript("jslib/floor.js") }}*/
/*{{ javascript(... | the_stack |
* @module node-opcua-address-space
*/
// produce nodeset xml files
import { assert } from "node-opcua-assert";
import { make_debugLog, make_errorLog } from "node-opcua-debug";
import { ExtensionObject } from "node-opcua-extension-object";
import {
BrowseDirection,
LocalizedText,
makeNodeClassMask,
make... | the_stack |
import { Player } from "./Player";
import WebSocket from "ws";
/**
* The Lavalink Event
* */
export interface LavalinkEvent {
/**
* The type of event from lavalink
*/
type: "TrackStartEvent" | "TrackEndEvent" | "TrackExceptionEvent" | "TrackStuckEvent" | "WebSocketClosedEvent";
/**
* Why t... | the_stack |
import type {
Box,
Connection,
CoordinateExtent,
DefaultEdgeOptions,
Dimensions,
Edge,
EdgeMarkerType,
Elements,
FlowElement,
Getters,
GraphEdge,
GraphNode,
Node,
Rect,
Viewport,
XYPosition,
XYZPosition,
} from '~/types'
import { useWindow } from '~/composables'
const isHTMLElement = ... | the_stack |
import {BoundingBox, LineXY, PointXY} from "@jsplumb/util"
export type Curve = Array<PointXY>
export type PointOnPath = { point:PointXY, location:number }
export type DistanceFromCurve = { location:number, distance:number }
export type AxisCoefficients = [ number, number, number, number ]
type CubicRoots = [ number, n... | the_stack |
import { Component, AfterViewInit, Input, ViewChildren } from "@angular/core";
// Components
import { FileFolderComponent } from "../../components/file-folder/file-folder.component";
import { PopUpComponent } from "../../components/pop-up/pop-up.component";
// data models
import sortType from "../../../model/sortType... | the_stack |
import { IonicNativePlugin } from '@ionic-native/core';
/**
* @name jmessage
* @description
* This plugin does something
*
* @usage
* ```typescript
* import { jmessage } from '@ionic-native/jmessage';
*
*
* constructor(private jmessage: jmessage) { }
*
* ...
*
*
* this.jmessage.functionName('Hello', 123)... | the_stack |
namespace egret {
/**
* @private
*/
export class ScrollEase {
/**
* @version Egret 2.4
* @platform Web,Native
*/
constructor() {
egret.$error(1014);
}
/**
*
* @param amount
* @returns
* @versio... | the_stack |
import React from 'react'
import { expect, match, mount, stub } from '@instructure/ui-test-utils'
import { PaginationPageInput } from '../index'
import { PaginationPageInputLocator } from '../PaginationPageInputLocator'
const defaultSRLabel = (currentPage: number, numberOfPages: number) =>
`Select page (${currentPag... | the_stack |
import { Compiler } from '@0x/sol-compiler';
import { NameResolver } from '@0x/sol-resolver';
import { PackageJSON } from '@0x/types';
import { logUtils } from '@0x/utils';
import { CompilerOptions } from 'ethereum-types';
import * as fs from 'fs';
import * as _ from 'lodash';
import * as mkdirp from 'mkdirp';
import *... | the_stack |
import assert from "assert"
import last from "lodash/last"
import type {
ErrorCode,
HasLocation,
Namespace,
Token,
VAttribute,
} from "../ast"
import { ParseError } from "../ast"
import { debug } from "../common/debug"
import type { Tokenizer, TokenizerState, TokenType } from "./tokenizer"
const DU... | the_stack |
import XGraph from './graph_class';
import { Rule, EventMap } from './rule_class';
import { Metric } from './metric_class';
import { TooltipHandler } from './tooltipHandler';
import { $GF, GFVariables } from 'globals_class';
/**
* Class for state of one cell
*
* @export
* @class State
*/
export class State {
mx... | the_stack |
import * as Restler from "restler";
import * as http from "http";
export {};
interface RestlerResult {
on(eventName: string, listener: (data?: any, response?: http.ServerResponse) => void): RestlerResult;
}
export type SailthruError = {
statusCode: string,
error: string,
errormsg: string
} | null;
e... | the_stack |
import * as fs from "fs-extra";
import path = require("path");
import glob = require("glob");
import { promisify } from "util";
import { WorkspaceConfig } from "./../../../global-types.js";
import { WorkspaceConfigProvider } from "./workspace-config-provider.js";
import * as contentFormats from "./../../content-formats... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* Manages a Load Balancer Rule.
*
* > **NOTE** When using this resource, the Load Balancer needs to have a FrontEnd IP Configuration Attached
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi... | the_stack |
import type { PosixFilePath } from '@contentlayer/utils'
import { filePathJoin, unknownToPosixFilePath } from '@contentlayer/utils'
import * as utils from '@contentlayer/utils'
import type { E, HasClock, HasConsole } from '@contentlayer/utils/effect'
import { Array, Chunk, flow, OT, pipe, S, T } from '@contentlayer/uti... | the_stack |
import * as React from "react";
import { fireEvent, render, waitFor } from "@testing-library/react";
import {
login,
logout,
handleIncomingRedirect,
getDefaultSession,
onSessionRestore,
} from "@inrupt/solid-client-authn-browser";
import { SessionContext, SessionProvider } from "./index";
jest.mock("@inrup... | the_stack |
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
import { assert, expect } from "chai";
import { BigNumber, ethers } from "ethers";
import {
createSnapshot,
PayloadToSign721withQuantity,
SignatureDrop,
Token,
} from "../src";
import { expectError, sdk, signers, storage } from "./before-set... | the_stack |
import React from 'react';
import { useSelector } from './useSelector';
import { createReducer, BaseStore } from '../..';
type IsNumber<P> = P extends number ? 1 : 0;
type IsString<P> = P extends string ? 1 : 0;
type IsBoolean<P> = P extends boolean ? 1 : 0;
type IsArray<P> = P extends [] ? 1 : 0;
type IsAny<P> = P ex... | the_stack |
import 'mocha'
import * as assert from 'assert'
import BitArray from './../../../../core/common/BitArray'
import ByteMatrix from './../../../../core/qrcode/encoder/ByteMatrix'
import MatrixUtil from './../../../../core/qrcode/encoder/MatrixUtil'
import ErrorCorrectionLevel from './../../../../core/qrcode/decoder/ErrorC... | the_stack |
import {
CompilerOptionsContainer,
createHosts,
createModuleResolutionHost,
errors,
FileSystemHost,
FileUtils,
InMemoryFileSystemHost,
Memoize,
RealFileSystemHost,
ResolutionHostFactory,
runtime,
StandardizedFilePath,
TransactionalFileSystem,
ts,
TsConfigResolver,
} from "@ts-morph/common"... | the_stack |
import type {
MLASTDoctype,
MLASTElementCloseTag,
MLASTNode,
MLASTOmittedElement,
MLASTParentNode,
MLASTTag,
MLASTText,
} from '@markuplint/ml-ast';
import type {
CommentNode,
Document,
DocumentFragment,
Element,
Node,
TextNode,
ElementLocation,
Location,
} from 'parse5';
import { getEndCol, getEndLine,... | the_stack |
import {
strShimUndefined, strShimObject, strShimFunction, throwTypeError,
ObjClass, ObjProto, ObjAssign, ObjHasOwnProperty, ObjDefineProperty
} from "@microsoft/applicationinsights-shims";
// RESTRICT and AVOID circular dependencies you should not import other contained modules or export the contents of this ... | the_stack |
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { NO_ERRORS_SCHEMA } from '@angular/core';
import { ClipboardModule } from '@angular/cdk/clipboard';
import { NgxTimeDisplayComponent as TestComponent } from './time-display.component';
import { MomentModule } from 'ngx-moment';
im... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.