text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import type {
ApolloQueryResult,
ErrorPolicy,
QueryOptions,
SubscribeToMoreOptions,
WatchQueryFetchPolicy,
WatchQueryOptions,
} from '@apollo/client/core';
import type {
ComponentDocument,
FetchMoreParams,
Data,
MaybeTDN,
MaybeVariables,
NextFetchPolicyFunction,
Variables,
} from '@apollo-ele... | the_stack |
import { asmcode } from "./asm/asmcode";
import { asm, Register, X64Assembler } from "./assembler";
import { proc2 } from "./bds/symbols";
import "./codealloc";
import { abstract, Bufferable, emptyFunc, Encoding } from "./common";
import { AllocatedPointer, cgate, chakraUtil, jshook, NativePointer, runtimeError, Static... | the_stack |
interface IAnimation {
/**
* 透明度,参数范围 0~1
*/
opacity(value: number): IAnimation;
/**
* 颜色值
*/
backgroundColor(color: string): IAnimation;
/**
* 长度值,如果传入 Number 则默认使用 px,可传入其他自定义单位的长度值
*/
width(length: number): IAnimation;
/**
* 长度值,如果传入 Number 则默认使用 px,可传入其... | the_stack |
import {
Component, EventHandler, Event, Property, setStyleAttribute, addClass, removeClass,
isNullOrUndefined, EmitType, NotifyPropertyChanges, BaseEventArgs, INotifyPropertyChanged,
Animation, AnimationModel, AnimationOptions, Browser, createElement
} from '@syncfusion/ej2-base';
import { Sidebar } from ... | the_stack |
'use strict';
import * as paths from 'path';
import { Uri } from 'vscode';
import { UriComparer } from '../comparers';
import { DocumentSchemes } from '../constants';
import { Container } from '../container';
import { GitCommit, GitFile, GitRevision } from '../git/git';
import { Logger } from '../logger';
import { debu... | the_stack |
import _ from "lodash";
import { CompletionMsg, MsgType, OscType, OscValues } from "../osc-types";
/**
* Call and response is where an OSC command is sent to the
* server which later responds with a message whose first items
* match 'response', followed by the contents of the response.
*/
export interface CallAnd... | the_stack |
import * as assert from 'assert';
import { context, ROOT_CONTEXT, SpanStatusCode } from '@opentelemetry/api';
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
import { AsyncHooksContextManager } from '@opentelemetry/context-async-hooks';
import { NodeTracerProvider } from '@opentelemetry/sdk-tr... | the_stack |
import dynamicProto from "@microsoft/dynamicproto-js";
import {
IConfiguration, AppInsightsCore, IAppInsightsCore, eLoggingSeverity, _eInternalMessageId, ITelemetryItem, ICustomProperties,
IChannelControls, hasWindow, hasDocument, isReactNative, doPerf, IDiagnosticLogger, INotificationManager, objForEachKey, pr... | the_stack |
import { Ace, require as acequire } from 'ace-builds';
import 'ace-builds/src-noconflict/ext-language_tools';
import 'ace-builds/src-noconflict/ext-searchbox';
import 'js-slang/dist/editors/ace/theme/source';
import { Variant } from 'js-slang/dist/types';
import * as React from 'react';
import AceEditor, { IAceEditorP... | the_stack |
export const rpcContractResponse = {
balance: '0',
script: {
code: [
{
prim: 'parameter',
args: [
{
prim: 'list',
args: [
{
prim: 'pair',
args: [
{ prim: 'option', args: [{ prim: 'key_hash' }], annots: ['%key'] },
{ prim: 'sapling_transaction', ar... | the_stack |
import { EditState } from "./toolDefinitions";
export const DRAG_RADIUS = 3;
export function hasPointerEvents(): boolean {
return typeof window != "undefined" && !!(window as any).PointerEvent;
}
export function isTouchEnabled(): boolean {
return typeof window !== "undefined" &&
('ontouchstart' in wi... | the_stack |
import { Component, ElementRef, OnInit } from '@angular/core';
import { FormBuilder } from '@angular/forms';
import { Router } from '@angular/router';
import { Title } from '@angular/platform-browser';
// Third party imports
import { Observable } from 'rxjs';
// App imports
import { APIClient } from 'src/app/swagger';
... | the_stack |
import {
compareFileNames,
compareFileExtensions,
compareFileNamesDefault,
compareFileExtensionsDefault,
compareFileNamesUpper,
compareFileExtensionsUpper,
compareFileNamesLower,
compareFileExtensionsLower,
compareFileNamesUnicode,
compareFileExtensionsUnicode,
} from 'vs/base/common/comparers';
import * as a... | the_stack |
import { privateToPublic } from 'ethereumjs-util';
import { encrypt } from 'ethers/utils/secret-storage';
import { mocked } from 'ts-jest/utils';
import type { MaybeMockedDeep } from 'ts-jest/dist/util/testing';
import { Wallet } from 'ethers/wallet';
import { userInputValidator } from '../../core/src/helpers';
import... | the_stack |
import { ColumnName, LabelName, StalenessKind, ApproverKind, BlessingKind } from "./basic";
import * as Comments from "./comments";
import * as emoji from "./emoji";
import * as urls from "./urls";
import { PrInfo, BotResult, FileInfo } from "./pr-info";
import { ReviewInfo } from "./pr-info";
import { noNullish, flatt... | the_stack |
import { formatUnits } from '@ethersproject/units';
import { multicall } from '../../utils';
import { BigNumber } from '@ethersproject/bignumber';
export const author = 'ursamaritimus';
export const version = '0.3.0';
/*
* PodLeader pool balance. Accepted options:
* - chefAddress: Masterchef contract address
* - p... | the_stack |
import { ethers, providers } from 'ethers'
import { EventEmitter } from 'events'
import { Hop, Token, ChainSlug } from '@hop-protocol/sdk'
import {
getBaseExplorerUrl,
findTransferFromL1CompletedLog,
getTransferSentDetailsFromLogs,
fetchTransferFromL1Completeds,
fetchWithdrawalBondedsByTransferId,
L1Transfe... | the_stack |
import {
Directive,
ExportDefaultDeclaration,
ExportSpecifier,
Expression,
FunctionDeclaration,
ImportDeclaration,
JSXAttribute,
ModuleDeclaration,
Program,
Property,
SpreadElement,
Statement,
} from 'estree-jsx'
import { analyze } from 'periscopic'
import stringifyPosition from 'unist-util-stri... | the_stack |
import { isLoadedPhotoSection, LoadedPhotoSection, PhotoId, PhotoSectionId } from 'common/CommonTypes'
import { assertRendererProcess } from 'common/util/ElectronUtil'
import { setLibraryActivePhotoAction, setLibraryHoverPhotoAction, setLibrarySelectionAction } from 'app/state/actions'
import { getPreselectionRange } ... | the_stack |
import { Injectable } from '@angular/core';
import { Cordova, AwesomeCordovaNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
declare let clevertap: any;
/**
* @name CleverTap
* @description
* Cordova Plugin that wraps CleverTap SDK for Android and iOS
* @usage
* ```typescript
* import { CleverTap } ... | the_stack |
import {
createEffect,
createComputed,
createRenderEffect,
createMemo,
Accessor,
on,
createSignal
// } from "../types/index";
} from "../src";
class Animal {
#animal = null;
}
class Dog extends Animal {
#dog = null;
}
//////////////////////////////////////////////////////////////////////////
// cr... | the_stack |
import {WasmType} from "../core/wasm-type";
import {WasmOpcode} from "../opcode";
import {WasmRuntimeProperty} from "./wasm-runtime-local";
import {ByteArray} from "../../../utils/bytearray";
import {WasmSignature} from "../core/wasm-signature";
import {Terminal} from "../../../utils/terminal";
import {WasmGlobal} from... | the_stack |
import {
Schema, shapeExpr, ShapeOr, ShapeAnd, ShapeNot, ShapeExternal, shapeExprRef,
shapeExprLabel, NodeConstraint, xsFacet, stringFacet, numericFacet,
numericLiteral, valueSetValue, objectValue, ObjectLiteral, IriStem,
IriStemRange, LiteralStem, LiteralStemRange, Language, LanguageStem,
LanguageStemRange, ... | the_stack |
import { hsv } from "@thi.ng/color/hsv/hsv";
import { downloadWithMime } from "@thi.ng/dl-asset/raw";
import { pathBuilder } from "@thi.ng/geom/path-builder";
import { points } from "@thi.ng/geom/points";
import { canvas, normalizeTree } from "@thi.ng/hdom-canvas";
import { dropdown } from "@thi.ng/hdom-components/drop... | the_stack |
////abstract class B {
//// private privateMethod() { }
//// protected protectedMethod() { };
//// static staticMethod() { }
//// abstract getValue(): number;
//// /*abstractClass*/
////}
////class C extends B {
//// /*classThatIsEmptyAndExtendingAnotherClass*/
////}
////class D extends B {
... | the_stack |
'use strict';
import { Logger, LogLevel } from 'chord/platform/log/common/log';
import { filenameToNodeName } from 'chord/platform/utils/common/paths';
const loggerWarning = new Logger(filenameToNodeName(__filename), LogLevel.Warning);
import { getRandomSample } from 'chord/base/node/random';
import { ASCII_LETTER_DI... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { NotificationChannels } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { DevTestLabsClient } from "../devTe... | the_stack |
/**
*
* @module Kiwi
* @submodule Utils.
*
*/
module Kiwi.Utils {
/**
* A utilty class used to add management functionality to common console methods.
* You can use this class by either creating a new instance, or using the instance at the namespace 'Kiwi.Log'.
*
* log/error/warn methods contained on this cl... | the_stack |
import { strict as assert } from "assert";
import {
createFromKey,
BspSet,
compare,
union,
intersect,
except,
dense,
empty,
symmetricDiff,
complement,
SetOperations,
forEachKey,
Dense,
meets,
pair,
Pair,
} from "../bspSet";
import { Ivl, ivlMeets, ivlComp... | the_stack |
import { GraphQLInputObjectType } from './graphql';
import { resolveMaybeThunk, upperFirst, inspect, mapEachKey } from './utils/misc';
import { isObject, isFunction, isString } from './utils/is';
import { typeByPath, TypeInPath } from './utils/typeByPath';
import type {
Thunk,
ThunkWithSchemaComposer,
ObjMap,
E... | the_stack |
* @file Coordinate space transform editor widget.
*/
import './coordinate_transform.css';
import svg_updateArrow from 'ikonate/icons/arrow-up.svg';
import svg_plus from 'ikonate/icons/plus.svg';
import {CoordinateSpace, CoordinateSpaceCombiner, CoordinateSpaceTransform, coordinateSpaceTransformsEquivalent, extendTra... | the_stack |
import { dynamicElevationOffsetProperty, elevationProperty, getRippleColor, rippleColorProperty, shapeProperty, themer } from '@nativescript-community/ui-material-core';
import {
Background,
Color,
CoreTypes,
Font,
ImageSource,
Screen,
Utils,
backgroundInternalProperty,
borderBottomL... | the_stack |
import { deriveKey as pbkdf2 } from "@stablelib/pbkdf2";
import { SHA256 } from "@stablelib/sha256";
import { isInteger } from "@stablelib/int";
import { readUint32LE, writeUint32LE } from "@stablelib/binary";
import { wipe } from "@stablelib/wipe";
export class Scrypt {
private _XY: Int32Array;
private _V: In... | the_stack |
import {
SchemaInput,
Datatype,
Datatypes,
Attribute,
Schema,
Relation,
} from "../";
import { inflateSchema, buildRelations } from "./inflate";
import { ProjectInput } from "../project";
// // // //
export type PreviewOutputType = "json" | "typescript" | "graphql";
export enum PreviewOutputTy... | the_stack |
import * as React from "react";
import { useId } from "@reach/auto-id";
import { Popover } from "@reach/popover";
import {
createDescendantContext,
DescendantProvider,
useDescendant,
useDescendants,
useDescendantsInit,
useDescendantKeyDown,
} from "@reach/descendants";
import { isRightClick } from "@reach/u... | the_stack |
import { LitElement, html, customElement, property, CSSResult, TemplateResult, css, PropertyValues } from 'lit-element';
import {
HomeAssistant,
hasConfigOrEntityChanged,
applyThemesOnElement,
computeStateDisplay,
relativeTime,
hasAction,
ActionHandlerEvent,
handleAction,
LovelaceCardEditor,
getLove... | the_stack |
import { Component, ViewChild, ComponentRef } from '@angular/core';
import {
async,
TestBed,
ComponentFixture,
fakeAsync,
flush,
} from '@angular/core/testing';
import { ConfirmationPopoverModule } from '../public-api';
import { ConfirmationPopoverDirective } from '../lib/confirmation-popover.directive';
impo... | the_stack |
export class Array {
/**
* Create an instance of Array
* @param {number[]} data a javascript array of doubles/floats
*/
constructor(data: number[]);
/**
* Get the underlying javascript array
* @returns number[] the data
*/
getData(): number[];
/**
* The lenght ... | the_stack |
import {
DataStore as DataStoreType,
PersistentModelConstructor,
initSchema as initSchemaType,
} from '../src/';
import {
pause,
expectMutation,
Model,
User,
Profile,
Post,
Comment,
testSchema,
} from './helpers';
export { pause };
/**
* Adds common query test cases that all adapters should support.
*
... | the_stack |
import {
createConnection,
TextDocuments,
ProposedFeatures,
InitializeParams,
DidChangeConfigurationNotification,
CompletionItem,
CompletionItemKind,
TextDocumentPositionParams,
TextDocumentSyncKind,
InitializeResult,
WorkspaceFolder
} from 'vscode-languageserver/node';
impor... | the_stack |
import { DriveItem } from '@microsoft/microsoft-graph-types';
import { customElement, html, property, TemplateResult } from 'lit-element';
import { styles } from './mgt-file-css';
import { MgtTemplatedComponent, Providers, ProviderState } from '@microsoft/mgt-element';
import {
getDriveItemById,
getDriveItemByPath,... | the_stack |
export {};
type numeric = number | bigint;
export interface TypedArrayLike<T extends numeric = numeric> extends Readonly<ArrayBufferView> {
/** The length of the array. */
readonly length: number;
[index: number]: T;
}
export interface TypedArrayConstructor {
readonly prototype: TypedArrayPrototype;
... | the_stack |
import { Observable } from 'rxjs';
import { mergeMap } from 'rxjs/operators';
import {
BlockInfoDTO,
BlockRoutesApi,
TransactionInfoDTO,
TransactionPage,
TransactionRoutesApi,
} from 'symbol-openapi-typescript-fetch-client';
import { DtoMapping } from '../core/utils';
import {
CosignatureSignedT... | the_stack |
import {
expect
} from 'chai';
import {
AttachedProperty
} from '@phosphor/properties';
class Model {
dummyValue = 42;
}
describe('@phosphor/properties', () => {
describe('AttachedProperty', () => {
describe('#constructor()', () => {
it('should accept a single options argument', () => {
... | the_stack |
import * as fs from 'fs';
import * as path from 'path';
import "mocha";
import * as chai from "chai";
import * as util from "../common/testUtils";
const completionCasesDir = path.join(process.cwd(), "tests", "language-service", "completion_cases");
const snippetCasesDir = path.join(process.cwd(), "tests", "language-... | the_stack |
import {
ConditionalTransferCreatedEventData,
ConditionalTransferTypes,
EventNames,
HashLockTransferStatus,
IConnextClient,
NodeResponses,
PublicParams,
} from "@connext/types";
import {
delay,
getChainId,
getRandomBytes32,
stringify,
} from "@connext/utils";
import { BigNumber, providers, constan... | the_stack |
import React, { ChangeEvent } from 'react';
import './App.css';
import 'typeface-roboto';
import { createStyles, withStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Button from '@material-ui/core/Button';
import Grid from '@material-ui/core/Grid';
import IconButton from '... | the_stack |
import * as Hoek from '@hapi/hoek';
// Internal helpers
type Class<T = any> = new (...args: any[]) => T;
type UnpackArray<T> = T extends (infer U)[] ? U : T;
type RecursivePartial<T> = {
[P in keyof T]?:
T[P] extends (infer U)[] ? RecursivePartial<U>[] :
T[P] extends object ? RecursivePartial<T[P]> :
... | the_stack |
import { Injectable } from '@angular/core';
import { CoreSite, CoreSiteWSPreSets } from '@classes/site';
import { CoreCourseCommonModWSOptions } from '@features/course/services/course';
import { CoreCourseLogHelper } from '@features/course/services/log-helper';
import { CoreRatingInfo } from '@features/rating/services/... | the_stack |
import * as React from 'react';
import { styled } from 'linaria/react';
import type { Metadata, Separator, Page, Group, GroupItem } from '../types';
import Link from './Link';
const SidebarContent = styled.aside`
background-color: #f8f9fa;
background-color: var(--theme-secondary-bg);
@media (min-width: 640px) {... | the_stack |
import * as React from "react";
import * as Hammer from "hammerjs";
import { Graphics, Prototypes, Geometry } from "../../../../core";
import { classNames } from "../../../utils";
import { renderSVGPath } from "../../../renderer";
import { HandlesDragContext, HandleViewProps } from "./common";
export interface Relativ... | the_stack |
import { FixedContentTypeMapper } from '../../../../src/storage/mapping/FixedContentTypeMapper';
import { BadRequestHttpError } from '../../../../src/util/errors/BadRequestHttpError';
import { NotFoundHttpError } from '../../../../src/util/errors/NotFoundHttpError';
import { trimTrailingSlashes } from '../../../../src/... | the_stack |
import { HttpResponse, HttpEvent } from '@angular/common/http';
import { Observable } from 'rxjs';import { HttpOptions } from './types';
import * as models from './models';
export interface APIClientInterface {
/**
* Arguments object for method `getItems`.
*/
getItemsParams?: {
pageSize: number,
/** ... | the_stack |
import * as parser from "jsonc-parser";
import * as vscode from "vscode";
import { Constants } from "../common/constants";
import { DigitalTwinConstants } from "./digitalTwinConstants";
import { ClassNode, PropertyNode, ValueSchema } from "./digitalTwinGraph";
import { IntelliSenseUtility, JsonNodeType, PropertyPair, M... | the_stack |
import {LastSnapshot} from '@/services/data/account/last-snapshot-types';
import {Favorite} from '@/services/data/console/favorite-types';
import {AvailableSpaceInConsole, ConsoleSettings} from '@/services/data/console/settings-types';
import {ConnectedSpace, ConnectedSpaceGraphics, ConnectedSpaceId} from '@/services/d... | the_stack |
import React, {createContext} from 'react';
import AnimationProvider from './AnimationProvider';
import { clamp } from './common/utils';
import AnimationKeyframePresets from './Animations';
export default class AnimationLayerData {
private _progress: number = 0;
private _play: boolean = true;
private _isPl... | the_stack |
import { debug } from "../../debug"
import * as node_fetch from "node-fetch"
import { Agent } from "http"
import HttpsProxyAgent from "https-proxy-agent"
import { URLSearchParams } from "url"
import { Env } from "../../ci_source/ci_source"
import { dangerIDToString } from "../../runner/templates/bitbucketCloudTemplate... | the_stack |
import React, {useState, useEffect, useContext} from "react";
import {Button, Modal, Tooltip} from "antd";
import {UserContext} from "../../util/user-context";
import {SearchContext} from "../../util/search-context";
import SelectedFacets from "../../components/selected-facets/selected-facets";
import {FontAwesomeIcon}... | the_stack |
import {multipleEvents, PolimerHandlerMap, PolimerModel} from '../../src/';
import {defaultOOModelTestStateFactory, EventConst, OOModelTestState, ReceivedEvent, TestEvent, TestState, TestImmutableModel} from './testModel';
import {EventContext, DefaultEventContext, ObservationStage, observeEvent, PolimerEventPredicate,... | the_stack |
import { expect } from 'chai';
import { buildContractClass, signTx, toHex, bsv, Ripemd160, PubKey, Sig, Bytes, VerifyResult, Bool, getPreimage, num2bin} from 'scryptlib';
import { compileContract, newTx, sighashType2Hex } from "../../helper";
const crypto = require('crypto');
/**
* an example SuperAssetNFT test for co... | the_stack |
import * as DatatypeForTestLibjoynr from "../../../generated/joynr/vehicle/radiotypes/DatatypeForTestLibjoynr";
import * as ChildProcessUtils from "../ChildProcessUtils";
import joynr from "joynr";
import provisioning from "../../../resources/joynr/provisioning/provisioning_cc";
import RadioProvider from "../../../gen... | the_stack |
import { BaseResource } from 'ms-rest-azure';
import { CloudError } from 'ms-rest-azure';
import * as moment from 'moment';
export { BaseResource } from 'ms-rest-azure';
export { CloudError } from 'ms-rest-azure';
/**
* @class
* Initializes a new instance of the ApplyRecoveryPointProviderSpecificInput class.
* @c... | the_stack |
import React, { Component } from "react";
import {
View,
Text,
StyleSheet,
Animated,
TouchableWithoutFeedback,
} from "react-native";
const STEP_STATUS = {
CURRENT: "current",
FINISHED: "finished",
UNFINISHED: "unfinished",
};
interface CustomStyles {
stepIndicatorSize?: number;
currentStepIndicat... | the_stack |
import { IParsingState, IDcsHandler, IEscapeSequenceParser, IParams, IOscHandler, IHandlerCollection, CsiHandlerType, OscFallbackHandlerType, IOscParser, EscHandlerType, IDcsParser, DcsFallbackHandlerType, IFunctionIdentifier, ExecuteFallbackHandlerType, CsiFallbackHandlerType, EscFallbackHandlerType, PrintHandlerType,... | the_stack |
import { testConfig } from 'houdini-common'
// locals
import { Cache, rootID } from '../cache'
const config = testConfig()
test('save root object', function () {
// instantiate a cache we'll test against
const cache = new Cache(config)
// save the data
const data = {
viewer: {
id: '1',
firstName: 'bob',
... | the_stack |
module WinJSTests {
"use strict";
export class RatingKeyboardTests {
setUp(complete) {
RatingUtils.setUp().then(complete);
}
tearDown() {
RatingUtils.cleanUp();
}
//------------------------------------------------------------------------------... | the_stack |
import * as Handlebars from "handlebars";
import * as fs from "graceful-fs";
import * as path from "path";
import { promisify } from "util";
import * as globSync from "glob";
import type {
UnknownObject,
FunctionObject,
ConfigOptions,
Engine,
TemplateSpecificationObject,
TemplateDelegateObject,
FsCache,
Partial... | the_stack |
import { CoreTextUtils } from '@services/utils/text';
import { Injectable } from '@angular/core';
import { FileTransfer, FileTransferObject, FileUploadResult, FileTransferError } from '@ionic-native/file-transfer/ngx';
import { CoreFile } from '@services/file';
/**
* Mock the File Transfer Error.
*/
export class Fi... | the_stack |
// tslint:disable: max-func-body-length
import { IDeploymentParametersFile, IPartialDeploymentTemplate } from "./support/diagnostics";
import { parseParametersWithMarkers, parseTemplateWithMarkers } from "./support/parseTemplate";
import { testGetReferences } from "./support/testGetReferences";
suite("Find References... | the_stack |
import {
createStyle,
selector,
rule,
attribute,
pClass,
pElement,
combinator
} from '../../helpers/style'
import { createTemplate, h, a } from '../../helpers/template'
import { createStyleMatcher } from '@/parser/style/match'
describe('Style matcher', () => {
describe('for universal selector', () => {... | 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 Drs extend... | the_stack |
import { logger } from 'vscode-debugadapter';
import { ISetBreakpointResult, BreakOnLoadStrategy } from '../debugAdapterInterfaces';
import { Protocol as Crdp } from 'devtools-protocol';
import { ChromeDebugAdapter } from './chromeDebugAdapter';
import * as ChromeUtils from './chromeUtils';
import * as assert fr... | the_stack |
export interface RebaseBinding {
context: object;
endpoint: string;
id: number;
method: string;
}
export interface SyncStateOptions {
/**
* The context of your component.
*/
context: object;
/**
* The state property you want to sync with Firebase; can be an
* arbitraril... | the_stack |
import {
I,
supportedTypes,
queryTypes, resultTypes,
err, errFromJSON, errToJSON,
} from '@statecraft/core'
import * as N from './netmessages'
import {
queryToNet, queryFromNet,
fullVersionToNet, fullVersionFromNet,
fullVersionRangeToNet, fullVersionRangeFromNet,
} from './util'
import {TinyReader, Tiny... | the_stack |
import { expect, assert } from 'chai';
import { Keys, DeployUtil, CLValue } from '../../src/lib';
import { humanizerTTL, dehumanizerTTL } from '../../src/lib/DeployUtil';
import { TypedJSON } from 'typedjson';
const testDeploy = () => {
const senderKey = Keys.Ed25519.new();
const recipientKey = Keys.Ed25519.new();... | the_stack |
'use strict'
import { ethers } from 'ethers'
import { task } from 'hardhat/config'
import * as types from 'hardhat/internal/core/params/argumentTypes'
import { hexStringEquals } from '@eth-optimism/core-utils'
import { getContractFactory, getContractDefinition } from '../src/contract-defs'
import { names } from '../sr... | the_stack |
'use strict';
import * as vscode from 'vscode';
import * as chai from 'chai';
import * as sinon from 'sinon';
import * as sinonChai from 'sinon-chai';
import { TestUtil } from '../TestUtil';
import { ExtensionCommands } from '../../ExtensionCommands';
import { VSCodeBlockchainOutputAdapter } from '../../extension/loggi... | the_stack |
import * as coreRestPipeline from "@azure/core-rest-pipeline";
import {
WebPubSubGenerateClientTokenOptionalParams,
WebPubSubGenerateClientTokenResponse,
WebPubSubCloseAllConnectionsOptionalParams,
ContentType,
WebPubSubSendToAll$binaryOptionalParams,
WebPubSubSendToAll$textOptionalParams,
WebPubSubConnec... | the_stack |
import { ErrorReporter, noopReporter } from './debugger'
import { createScanError, createToken } from './factory'
import { KEYWORDS } from './keywords'
import { SyntaxType, TextLocation, Token } from './types'
function isDigit(value: string): boolean {
return value >= '0' && value <= '9'
}
function isAlpha(value:... | the_stack |
import {
NumberType,
StringType,
BooleanType,
ColorType,
ObjectType,
ValueType,
ErrorType,
CollatorType,
array,
toString as typeToString,
} from '../types';
import type {Type} from '../types';
import {typeOf, Color, validateRGBA, toString as valueToString} from '../values';
imp... | the_stack |
import { IInputs, IOutputs } from "./generated/ManifestTypes";
export class PortalWebAPIControl implements ComponentFramework.StandardControl<IInputs, IOutputs>
{
private _container: HTMLDivElement;
private _context: ComponentFramework.Context<IInputs>;
private static _entityName = "account";
private ... | the_stack |
import { injectable, ContainerModule } from 'inversify';
import { DirectoryService, MessageHandler, ConfigurationError, FileSummary, Finding } from '@fimbul/ymir';
import { AbstractCommandRunner, TestCommand } from './base';
import { CachedFileSystem } from '../services/cached-file-system';
import { createBaseline } fr... | the_stack |
import {BaseNodeType} from '../../_Base';
import {BaseParamType} from '../../../params/_Base';
import {ParamOptions} from '../../../params/utils/OptionsController';
import {CoreGraphNode} from '../../../../core/graph/CoreGraphNode';
import {FloatParam} from '../../../params/Float';
import {OperatorPathParam} from '../... | the_stack |
import {TypedRopNode} from './_Base';
import {Mesh} from 'three/src/objects/Mesh';
import {RopType} from '../../poly/registers/nodes/types/Rop';
import {WebGLRenderer, WebGLRendererParameters} from 'three/src/renderers/WebGLRenderer';
import {
// encoding
LinearEncoding,
sRGBEncoding,
GammaEncoding,
RGBEEncoding,
... | the_stack |
import env from '../core/env';
import {applyTransform} from '../core/vector';
import BoundingRect from '../core/BoundingRect';
import * as colorTool from '../tool/color';
import * as textContain from '../graphic/text/parse';
import Displayable from '../graphic/Displayable';
import ZRImage from '../graphic/Image';
impor... | the_stack |
import { stringify, parse } from "@brillout/json-s";
import { autoLoadEndpointFiles } from "./autoLoadEndpointFiles";
import {
assert,
assertUsage,
getUsageError,
UsageError,
setProjectInfo,
} from "@brillout/assert";
// @ts-ignore
import getUrlProps = require("@brillout/url-props");
export { WildcardServer ... | the_stack |
import {
dispatch,
getCodeRunnerService,
getVmControllerService,
getZ80CompilerService,
} from "@core/service-registry";
import {
executeCommand,
registerCommand,
} from "@abstractions/command-registry";
import {
sendFromIdeToEmu, sendFromMainToEmu,
} from "@core/messaging/message-sending";
import {
Com... | the_stack |
import * as assert from "assert";
import { testContext, disposeTestDocumentStore } from "../Utils/TestUtil";
import {
IDocumentStore,
} from "../../src";
import { User } from "../Assets/Entities";
describe("WhatChangedTest", function () {
let store: IDocumentStore;
beforeEach(async function ... | the_stack |
import {
InputNode,
InputRelation,
OutputNode,
OutputRelation,
NodeId,
InternalUpGradeNode,
InternalUpGradeLink,
DAGAIUConfig,
} from './types';
import BaseDAG from './BaseDAG';
import { maxBy } from '../../Utils/utils';
import { Point } from '../../Utils/graph';
const defaultDAGAIUConfig: DAGAIUConfig... | the_stack |
import { StateIndex } from "./state-index";
import { Grammar } from "../../grammar/grammar";
import { State, isCompleted, isActive, getActiveCategory } from "./state";
import { NonTerminal, Terminal, isNonTerminal } from "../../grammar/category";
import { Semiring } from "semiring";
import { getOrCreateSet, getOrCreate... | the_stack |
import log from "../../../log";
import Manifest, {
Adaptation,
Period,
Representation,
} from "../../../manifest";
import { IBufferedChunk } from "../../segment_buffers";
import { IBufferDiscontinuity } from "../types";
/**
* Check if there is a soon-to-be-encountered discontinuity in the buffer that
* won't b... | the_stack |
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
/**
* The object that describes the operation.
*/
export interface OperationDisplay {
/**
* The description of the operation.
* **N... | the_stack |
import * as React from 'react'
import styled from 'styled-components'
import { connect } from 'react-redux'
import { Dispatch } from 'redux'
import { usernameToAddress, validRecipientAccount } from 'helpers/account'
import { stroopsToLumens, lumensToStroops } from 'helpers/lumens'
import { BtnSubmit } from 'pages/sha... | the_stack |
import {
Agile,
Observer,
ProxyWeakMapType,
SelectorWeakMapType,
SubscriptionContainer,
} from '../../../../../src';
import * as Utils from '@agile-ts/utils';
import { LogMock } from '../../../../helper/logMock';
describe('SubscriptionContainer Tests', () => {
let dummyAgile: Agile;
let dummyObserver1: O... | the_stack |
type Callback0 = () => any;
type Callback1<T1> = (arg1: T1) => any;
type Callback2<T1, T2> = (arg1: T1, arg2: T2) => any;
type Callback3<T1, T2, T3> = (arg1: T1, arg2: T2, arg3: T3) => any;
type Callback4<T1, T2, T3, T4> = (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => any;
type Callback5<T1, T2, T3, T4, T5> = (arg1: T1, ... | the_stack |
* @file Viewer for a group of layers.
*/
import './layer_group_viewer.css';
import debounce from 'lodash/debounce';
import {DataPanelLayoutContainer, InputEventBindings as DataPanelInputEventBindings} from 'neuroglancer/data_panel_layout';
import {DisplayContext} from 'neuroglancer/display_context';
import {LayerLis... | the_stack |
import Observable, { ZenObservable } from 'zen-observable-ts';
import { GraphQLError } from 'graphql';
import * as url from 'url';
import { v4 as uuid } from 'uuid';
import { Buffer } from 'buffer';
import { ProviderOptions } from '../../types';
import {
Logger,
Credentials,
Signer,
Hub,
Constants,
USER_AGENT_HEA... | the_stack |
* 图片段信息
*/
export interface ImageSegments {
/**
* 截帧时间。
点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10
直播流:该值为时间戳,例如:1594650717
*/
OffsetTime: string
/**
* 画面截帧结果详情
*/
Result: ImageResult
}
/**
* 图片输出结果的子结果
*/
export interface ImageResultResult {
/**
* 场景
Porn 色情
Sexy 性感
Polity 政治
Illegal 违法
Ab... | the_stack |
import { jsx } from '@emotion/core';
import React, { useState, Fragment, useEffect } from 'react';
import formatMessage from 'format-message';
import {
Link,
PrimaryButton,
DefaultButton,
Pivot,
PivotItem,
Dialog,
DialogType,
Dropdown,
MessageBar,
MessageBarType,
MessageBarButton,
ScrollablePane... | the_stack |
declare namespace ts {
function createDiagnosticForNodeInSourceFile(
sourceFile: SourceFile,
node: Node,
message: DiagnosticMessage,
arg0?: string | number,
arg1?: string | number,
arg2?: string | number,
arg3?: string | number): DiagnosticWithLocation;
}
let... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.