text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import { join } from 'path'
import markdownItAnchor from 'markdown-it-anchor'
import { defaultsDeep } from 'lodash'
import { pathToName, slugify, logger } from './utils'
import Database from './content/database'
import { Nuxtent } from '../types'
import { RouteConfig, Route } from 'vue-router'
import markdownIt from 'm... | the_stack |
import { Injectable } from '@angular/core';
import { CoreError } from '@classes/errors/error';
import { CoreFileUploader, CoreFileUploaderStoreFilesResult } from '@features/fileuploader/services/fileuploader';
import { FileEntry } from '@ionic-native/file/ngx';
import { CoreFile } from '@services/file';
import { CoreFi... | the_stack |
import { expect } from "chai";
import { Field, NestedContentField, PropertiesField } from "../../presentation-common";
import { FieldDescriptor, FieldDescriptorType } from "../../presentation-common/content/Fields";
import { RelationshipMeaning } from "../../presentation-common/rules/content/modifiers/RelatedProperties... | the_stack |
"use strict";
import { UseCaseFunction } from "../src/FunctionalUseCaseContext";
import * as assert from "assert";
import { CompletedPayload, Context, DidExecutedPayload, Dispatcher, Payload, Store, StoreGroup, UseCase } from "../src";
import { InitializedPayload } from "../src/payload/InitializedPayload";
import { cre... | the_stack |
import { renderDOM } from './renderDOM';
import { VNode, b, PropsArg, ChildArg, createTextVNode } from './createElement';
import {
MachineComponent,
SFC,
Effect,
DeriveTargetFunction,
} from './component';
import { diff } from './diff';
import { RouTrie, Params } from './router';
import {
machineRegistry,
M... | the_stack |
* @module Core
*/
import { ECSqlStatement, IModelDb } from "@itwin/core-backend";
import { assert, DbResult, Id64, Id64String } from "@itwin/core-bentley";
import {
CategoryDescription, Content, ElementProperties, ElementPropertiesItem, ElementPropertiesPrimitiveArrayPropertyItem, ElementPropertiesPropertyItem,
E... | the_stack |
import {
Component,
OnInit,
} from '@angular/core';
import {MatSlideToggleChange, MatSliderChange} from '@angular/material';
import {DemoSettings} from './modules/convai-checker/convai-checker.component';
import {
ConfigurationInput,
LoadingIconStyle,
ScoreThreshold,
DEFAULT_FEEDBACK_TEXT
} from './modules/... | the_stack |
import { BrowserHelper, ElementHelper } from 'topcoder-testing-lib';
import * as config from '../../config/app-config.json';
import { logger } from '../../logger/logger';
import { CommonHelper } from '../common-page/common.helper';
import { LoginPage } from '../login/login.po';
import { IProjectMilestone } from './proj... | the_stack |
module android.view {
import Canvas = android.graphics.Canvas;
import Point = android.graphics.Point;
import Rect = android.graphics.Rect;
import RectF = android.graphics.RectF;
import Matrix = android.graphics.Matrix;
import SystemClock = android.os.SystemClock;
import Context = android.con... | the_stack |
module CorsicaTests {
var _ElementResizeInstrument = <typeof WinJS.UI.PrivateElementResizeInstrument> Helper.require("WinJS/Controls/ElementResizeInstrument/_ElementResizeInstrument")._ElementResizeInstrument;
var resizeEvent = _ElementResizeInstrument.EventNames.resize;
var readyEvent = _ElementResizeIns... | the_stack |
import Ajv from "ajv";
import { FromSchema } from "index";
var ajv = new Ajv();
describe("AnyOf schemas", () => {
describe("Boolean or String", () => {
const anyOfSchema = {
anyOf: [{ type: "boolean" }, { type: "string" }],
} as const;
type StringBoolOrNumber = FromSchema<typeof anyOfSchema>;
... | the_stack |
import Axios from "axios";
import express = require("express");
import passport = require("passport");
import { BearerStrategy, VerifyCallback, IBearerStrategyOption, ITokenPayload } from "passport-azure-ad";
import qs = require("qs");
import * as debug from "debug";
import { IRecording } from "../../model/IRecording";... | the_stack |
import * as net from 'net';
import * as uuid from 'uuid';
import * as sinon from 'sinon';
import { expect } from 'chai';
import { getEchoServerAndSocket, getInboundConnection, ITestSendArgs } from '../../fixtures/helpers';
import { setupSinonChai } from '../../fixtures/setup';
import { Connection } from '../../../src/e... | the_stack |
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty, Property, Collection, append, extend, Event, EmitType, BaseEventArgs, EventHandler, closest, addClass, removeClass } from '@syncfusion/ej2-base';
import { ListBase, ListBaseOptions } from '@syncfusion/ej2-lists';
import { BreadcrumbModel,... | the_stack |
import WebSocket from 'ws';
import chalk from 'chalk';
import util from 'util';
import { az } from '../../core/utils';
import createGitHubRepo from '../github/repo';
import { loginWithGitHub } from '../github/login-github';
type AzureBlobStorageItem = {
name: string,
contentLength: number,
contentType: string,
... | the_stack |
"use strict";
import { IOptions as GlobOptions } from "glob";
import * as path from "path";
import { ModuleSpecifier } from "../modules/EyeglassModule";
import { Options as SassOptions, SassImplementation } from "./SassImplementation";
import { URI } from "./URI";
import merge = require("lodash.merge");
import type { ... | the_stack |
import * as t from 'io-ts';
import { RTTI_Extension, IExtension } from './RTTI_Extension';
import { RTTI_id } from '../Scalar/RTTI_id';
import { RTTI_Element, IElement } from './RTTI_Element';
import { RTTI_integer } from '../Scalar/RTTI_integer';
import { RTTI_Address, IAddress } from './RTTI_Address';
import { RTTI_A... | the_stack |
import {event as d3event, mouse as d3mouse} from "d3-selection";
import {Histogram2DSerialization, IViewSerialization} from "../datasetView";
import {
IColumnDescription,
kindIsString,
RemoteObjectId, kindIsNumeric, Groups, RangeFilterArrayDescription,
} from "../javaBridge";
import {Receiver, RpcRequest} f... | the_stack |
export namespace MindConnectApiModels {
/**
*
* @export
* @class RequiredError
* @extends {Error}
*/
export class RequiredError extends Error {
name: "RequiredError";
constructor(public field: string, msg?: string) {
super(msg);
this.name = "Requi... | the_stack |
import {
appendStmt,
applyBind,
applyConstructor,
applyFunction,
applyPredicate,
applyTypeDecl,
ArgExpr,
argMatches,
ArgStmtDecl,
autoLabelStmt,
cascadingDelete,
domainToSubType,
matchSignatures,
nullaryTypeCons,
} from "analysis/SubstanceAnalysis";
import { prettyStmt, prettySubstance } fro... | the_stack |
import {
BindingsPlugin,
DOMException,
ExecutionContext,
FetchError,
FetchEvent,
Request,
Response,
ScheduledController,
ScheduledEvent,
ServiceWorkerGlobalScope,
kAddModuleFetchListener,
kDispatchFetch,
kDispatchScheduled,
} from "@miniflare/core";
import { NoOpLog } from "@miniflare/shared";... | the_stack |
import {
add,
all,
always,
and,
append,
concat,
cons,
dec,
filter,
find,
fill,
findBy,
findOf,
first,
flip,
get,
greaterThan,
has,
identity,
inc,
includes,
includesi,
into,
Lens,
lessThan,
map,
matching,
maxBy,
maxOf,
minBy,
minOf,
mod,
not,
or,
prep... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Dashboards } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { Portal } from "../portal";
import {
Dashbo... | the_stack |
import Component from '@glimmer/component';
import { getOwner } from '@ember/application';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
import RouterService from '@ember/routing/router-service';
import Layer2Network from '@cards... | the_stack |
import { Signal } from 'signals'
import { Log } from '../globals'
import { defaults } from '../utils'
import { NumberArray } from '../types'
import { circularMean, arrayMean } from '../math/array-utils'
import { lerp, spline } from '../math/math-utils'
import Selection from '../selection/selection'
import Superpositio... | the_stack |
import type { IBounds } from "../util/IBounds";
import type { IPoint } from "../util/IPoint";
import type { Pattern } from "../render/patterns/Pattern";
import type { Time } from "../util/Animation";
import type { Sprite } from "../render/Sprite";
import type { MultiDisposer, IDisposer } from "../util/Disposer";
impor... | the_stack |
import { createElement } from '@syncfusion/ej2-base';
import { Diagram } from '../../../src/diagram/diagram';
import { ConnectorModel } from '../../../src/diagram/objects/connector-model';
import { BezierSegment } from '../../../src/diagram/objects/connector';
import { NodeModel, BasicShapeModel } from '../../../src/di... | the_stack |
import { Workbook } from './../src/workbook';
import { Utils } from './../spec/utils.spec';
describe('CellStyle', () => {
// afterEach(function () {
// sleep(3000);
// });
// function sleep(millSecs: any) {
// let date: any = new Date();
// let curDate: any = null;
// do { c... | the_stack |
namespace gdjs {
/** Represents a color in RGB Format */
export type RGBColor = {
/** The Red component of the color, from 0 to 255. */
r: integer;
/** The Green component of the color, from 0 to 255. */
g: integer;
/** The Blue component of the color, from 0 to 255. */
b: integer;
};
/... | the_stack |
import { BaseResource, CloudError } from "ms-rest-azure";
import * as moment from "moment";
export {
BaseResource,
CloudError
};
/**
* The resource model definition.
*/
export interface Resource extends BaseResource {
/**
* The resource identifier.
*/
readonly id?: string;
/**
* The resource nam... | the_stack |
import { ExtensionContext, ExtensionTab, Logger } from '@extraterm/extraterm-extension-api';
import { escape } from "he";
let log: Logger = null;
let context: ExtensionContext = null;
export function activate(_context: ExtensionContext): any {
log = _context.logger;
context = _context;
context.commands.registe... | the_stack |
import * as fs from 'fs';
import {app, BrowserWindow, shell, dialog, Menu} from 'electron';
import windowState = require('electron-window-state');
import * as menubar from 'menubar';
import {Config, Account, hostUrl} from './config';
import {partitionForAccount} from './account_switcher';
import log from './log';
impor... | the_stack |
declare namespace SDK {
/**
* SDK.Metadata namespace
*/
namespace Metadata {
/**
* Enum which corresponds to the entity filters used in the metadata functions.
*/
const enum EntityFilters {
Default = 1,
Entity = 1,
Attributes = 2,
Privileges = 4,
Relationships =... | the_stack |
declare namespace adone {
/**
* Various archivers
*/
namespace archive {
/**
* tar archiver
*/
namespace tar {
namespace I {
interface Header {
/**
* File path
*/
... | the_stack |
import * as api from '@aws-cdk/aws-apigateway';
import * as apiv2 from '@aws-cdk/aws-apigatewayv2';
import * as apiv2_integrations from '@aws-cdk/aws-apigatewayv2-integrations';
import * as cdk from '@aws-cdk/core';
import * as codebuild from '@aws-cdk/aws-codebuild';
import * as ec2 from '@aws-cdk/aws-ec2';
import * a... | the_stack |
import {
AttributeSpec,
MarkSpec,
Node,
NodeSpec,
ParseRule,
Schema,
} from 'prosemirror-model'
/**
* ProseMirror schema for a Stencila `Article`.
*
* This schema uses the following conventions:
*
* - Properties of Stencila nodes are represented as ProseMirror `NodeSpec`s with
* a lowercase name (e... | the_stack |
import { MonacoEditor } from "../../app/elements/options/editpages/monaco-editor/monaco-editor";
import { CodeEditBehaviorBase, CodeEditBehaviorStylesheetInstance, CodeEditBehaviorScriptInstance } from "../../app/elements/options/editpages/code-edit-pages/code-edit-behavior";
import { PaperLibrariesSelector } from "../... | the_stack |
import * as path from 'path';
import {Label} from '@microsoft/bf-dispatcher';
import {LabelType} from '@microsoft/bf-dispatcher';
import {LabelStructureUtility} from '@microsoft/bf-dispatcher';
import {OrchestratorHelper} from './orchestratorhelper';
import {Utility} from './utility';
import {Utility as UtilityDispa... | the_stack |
import {async, TestBed, ComponentFixture} from '@angular/core/testing';
import {Component, Renderer, RootRenderer, CUSTOM_ELEMENTS_SCHEMA, ViewEncapsulation} from '@angular/core';
import {PolymerModule} from '../polymer-module';
import {DefaultPolymerRenderer, EmulatedEncapsulationPolymerRenderer, ShadowDomPolymerRend... | the_stack |
module GUI {
/////////////////////// Elements ///////////////////////
export interface GUIElement {
getElement(): JQuery;
updateUI();
}
export interface GUIElementWithContent extends GUIElement {
getContent(): JQuery;
}
export function empty(element = 'div'): JQuery ... | the_stack |
import { Component, Element, Prop, h, Watch, EventEmitter, Event } from '@stencil/core';
import { select, event } from 'd3-selection';
import { scalePow, scaleOrdinal } from 'd3-scale';
import { max, min } from 'd3-array';
import { forceCollide, forceSimulation, forceManyBody, forceX, forceY } from 'd3-force';
// impor... | the_stack |
import unknownTest, { TestInterface } from 'ava';
import { createClient } from './lib/SettingsClient';
import {
Gateway,
KlasaClient,
Provider,
Schema,
Settings,
SettingsExistenceStatus,
SchemaEntry,
KeyedObject,
SettingsUpdateContext
} from '../src';
const ava = unknownTest as TestInterface<{
client: KlasaC... | the_stack |
import { Page, ReferencePointer, CryptoInterface } from '../parser';
import { Util } from '../util';
import { ErrorList, InvalidOpacityError, InvalidRectError, InvalidDateError, InvalidReferencePointerError, ColorOutOfRangeError, InvalidColorError, InvalidIDError } from './annotation_errors';
import { WriterUtil } from... | the_stack |
import { BinaryHeap } from './BinaryHeap';
import { GridNode } from './GridNode';
export type PathFindingHeuristicFunction = (pos0: GridNode, pos1: GridNode) => number;
export type PathFindingSearchOptions = {
heuristic?: PathFindingHeuristicFunction;
closest?: boolean;
};
export type PathFindingOptions = {
... | the_stack |
import {
DiskStorage
} from 'react-native'
const AsyncStorage = new DiskStorage({
namespace: 'stats'
})
import {
getMyGameAPI,
getGameAPI
} from '../dao'
const getGameURL = (psnid, page) => `https://psnine.com/psnid/${psnid}/psngame?page=${page}`
const getGameList = async (psnid, callback) => {
const list... | the_stack |
import {
CancellationToken,
CodeLens,
CompletionContext,
CompletionItem,
CompletionList,
DocumentSymbol,
Hover,
Location,
LocationLink,
Position,
ProviderResult,
ReferenceContext,
SignatureHelp,
SignatureHelpContext,
SymbolInformation,
TextDocument,
Wo... | the_stack |
import { analyzeMovesBase, getMoveObjects, getDepots, safeCheck, safeAdd, safeSubtract } from '../library';
import { reducerWithInitialState } from "typescript-fsa-reducers";
import { BasedState, AnalyzedBaseData } from '../types';
import { addMinutes, setViewport, setDefaultViewport, setTimeStamp,
setTime, increase... | the_stack |
import React, { Component } from 'react'
import {
StyleSheet,
Text,
View,
Image,
TouchableNativeFeedback,
InteractionManager,
ActivityIndicator,
Animated,
FlatList,
Linking,
TextInput,
Button
} from 'react-native'
import Ionicons from 'react-native-vector-icons/Ionicons'
import { standardColor,... | the_stack |
import {createRange, Log, Source, SourceRange} from "../../utils/log";
import {assert} from "../../utils/assert";
/**
* Author: Nidin Vinayakan
*/
export enum TokenKind {
END_OF_FILE,
// Literals
CHARACTER,
IDENTIFIER,
INT32,
INT64,
FLOAT32,
FLOAT64,
STRING,
ARRAY,
... | the_stack |
import { ServiceCenter } from '../lib'
// Compiled from https://www.samband.is/sveitarfelogin/ list and
// https://is.wikipedia.org/wiki/Íslensk_sveitarfélög_eftir_sveitarfélagsnúmerum
export const serviceCenters: ServiceCenter[] = [
{
name: 'Þjónustumiðstöð Vesturbæjar, Miðborgar og Hlíða',
number: 0,
... | the_stack |
import {
ILayoutRestorer,
JupyterFrontEnd,
JupyterFrontEndPlugin
} from '@jupyterlab/application';
import {
ICommandPalette,
WidgetTracker,
IWidgetTracker
} from '@jupyterlab/apputils';
import { IMainMenu, JupyterLabMenu } from '@jupyterlab/mainmenu';
import { IFileBrowserFactory } from '@jupyterlab/file... | the_stack |
import {
Frustum,
ICamera,
IDENTIFIER,
IInteractorService,
} from '@antv/g-webgpu-core';
import { mat3, mat4, quat, vec3, vec4 } from 'gl-matrix';
import { inject, injectable, postConstruct } from 'inversify';
import { createVec3, getAngle } from '../utils/math';
import Landmark from './Landmark';
export enum ... | the_stack |
import * as React from 'react';
import { View, TouchableOpacity, Text, ScrollView, TextInput } from 'react-native';
import { HmsLocalNotification } from '@hmscore/react-native-hms-push';
const defaultNotification = {
[HmsLocalNotification.Attr.title]: 'Notification Title',
[HmsLocalNotification.Attr.message]:... | the_stack |
import React, { PureComponent } from 'react';
import cls from 'classnames';
import PropTypes from 'prop-types';
import { cssClasses, strings } from '@douyinfe/semi-foundation/cascader/constants';
import isEnterPress from '@douyinfe/semi-foundation/utils/isEnterPress';
import { includes } from 'lodash';
import ConfigCon... | the_stack |
import _ from 'lodash'
import {
Element, ObjectType, isContainerType, MapType, ListType, InstanceElement, CORE_ANNOTATIONS,
Values, isAdditionOrModificationChange, isInstanceChange, getChangeElement, Change, isMapType,
isListType, isInstanceElement, createRefToElmWithValue, getDeepInnerType, isObjectType,
} from ... | the_stack |
import * as React from "react";
import { fireEvent, render, waitFor } from "@testing-library/react";
import * as SolidFns from "@inrupt/solid-client";
import * as helpers from "../../../helpers";
import DatetimeValue from "./index";
const mockPredicate = "http://www.w3.org/2006/vcard/ns#bday";
const mockBday = new Dat... | the_stack |
declare class FBSDKAccessToken extends NSObject implements FBSDKCopying, NSSecureCoding {
static alloc(): FBSDKAccessToken; // inherited from NSObject
static new(): FBSDKAccessToken; // inherited from NSObject
static refreshCurrentAccessToken(completionHandler: (p1: FBSDKGraphRequestConnection, p2: any, p3: NSErr... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { BatchAccountOperations } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { BatchManagementClient } from "..... | the_stack |
import { ext } from '@antv/matrix-util';
import { ICanvas, IGroup } from '@antv/g-base';
import { isNumber, isString } from '@antv/util';
import { ShapeStyle, IAbstractGraph as IGraph } from '@antv/g6-core';
import TimeBarTooltip from './timeBarTooltip';
import ControllerBtn from './controllerBtn';
import {
VALUE_CHA... | the_stack |
interface DOMElement {}
interface Promise<T> {}
declare class Registry {}
declare class Transition {}
declare namespace Handlebars { class SafeString {} }
declare class JQuery {}
declare module 'ember' {
export namespace Ember {
/**
* Define an assertion that will throw an exception if the condition is not... | the_stack |
import { compact } from 'lodash';
import { AggregationOperator, Relation, RelationSide, RootEntityType } from '../../model';
import {
AddEdgesQueryNode,
AggregationQueryNode,
BasicType,
BinaryOperationQueryNode,
BinaryOperator,
BinaryOperatorWithAnalyzer,
ConcatListsQueryNode,
Conditiona... | the_stack |
import { IBulkEditService, ResourceEdit, ResourceTextEdit } from 'vs/editor/browser/services/bulkEditService';
import { IPosition, Position } from 'vs/editor/common/core/position';
import { Range } from 'vs/editor/common/core/range';
import { EndOfLinePreference, IReadonlyTextBuffer } from 'vs/editor/common/model';
imp... | the_stack |
import {
BasePluginEvent,
PLUGIN_SDK_EK_UI_ALIAS,
PLUGIN_SDK_NS_UI_API,
PLUGIN_SDK_EK_DRAG_AND_DROPPED,
PLUGIN_SDK_EK_REQUEST_FETCH_NODE_MAIN_COMPONENT_LAYER_META,
PLUGIN_SDK_EK_REQUEST_FETCH_NODE_MAIN_COMPONENT_META,
PLUGIN_SDK_EK_REQUEST_FETCH_NODE_META,
PLUGIN_SDK_EK_REQUEST_FETCH_ROOT_META,
PLUGIN... | the_stack |
import InteropService from '../../services/interop/InteropService';
import { CustomExportContext, CustomImportContext, Module, ModuleType } from '../../services/interop/types';
import shim from '../../shim';
import { fileContentEqual, setupDatabaseAndSynchronizer, switchClient, checkThrowAsync, exportDir, supportDir } ... | the_stack |
import * as crypto from 'crypto';
import { AccountRootPrincipal, Grant, IGrantable } from '@aws-cdk/aws-iam';
import { IKey, ViaServicePrincipal } from '@aws-cdk/aws-kms';
import { IResource, Resource, Size, SizeRoundingBehavior, Stack, Token, Tags, Names, RemovalPolicy } from '@aws-cdk/core';
import { Construct } fro... | the_stack |
export interface RegExpOptions {
sensitive?: boolean;
strict?: boolean;
end?: boolean;
delimiter?: string;
delimiters?: string | string[];
endsWith?: string | string[];
}
export interface ParseOptions {
delimiter?: string;
delimiters?: string | string[];
}
export interface Key {
name: string | numbe... | the_stack |
import {
SpanStatusCode,
Exception,
ROOT_CONTEXT,
SpanContext,
SpanKind,
TraceFlags,
} from '@opentelemetry/api';
import {
hrTime,
hrTimeDuration,
hrTimeToMilliseconds,
hrTimeToNanoseconds,
} from '@opentelemetry/core';
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
import... | the_stack |
import uuid from "uuid/v4";
import {
TokenProvider, EventHubRuntimeInformation, EventHubPartitionRuntimeInformation,
AadTokenProvider, EventHubClient
} from "@azure/event-hubs";
import {
ApplicationTokenCredentials, UserTokenCredentials,
DeviceTokenCredentials, MSITokenCredentials
} from "ms-rest-azure";
import... | the_stack |
* @author Richard <richardo2016@gmail.com>
*
*/
/// <reference path="Buffer.d.ts" />
/// <reference path="BufferedStream.d.ts" />
/// <reference path="Chain.d.ts" />
/// <reference path="Cipher.d.ts" />
/// <reference path="Condition.d.ts" />
/// <reference path="DbConnection.d.ts" />
/// <reference path="... | the_stack |
import Long from "long";
import _m0 from "protobufjs/minimal";
import { Any } from "../../google/protobuf/any";
export const protobufPackage = "gravity.v1";
/**
* EthereumEventVoteRecord is an event that is pending of confirmation by 2/3 of
* the signer set. The event is then attested and executed in the state mach... | the_stack |
import { Subject, AnonymousSubject } from '../../Subject';
import { Subscriber } from '../../Subscriber';
import { Observable } from '../../Observable';
import { Subscription } from '../../Subscription';
import { Operator } from '../../Operator';
import { ReplaySubject } from '../../ReplaySubject';
import { Observer, N... | the_stack |
import { loadAcceleratorConfig } from '@aws-accelerator/common-config/src/load';
import { DynamoDB } from '@aws-accelerator/common/src/aws/dynamodb';
import { IPv4CidrRange, IPv4Prefix, Pool } from 'ip-num';
import { v4 as uuidv4 } from 'uuid';
import {
loadAssignedVpcCidrPool,
loadAssignedSubnetCidrPool,
loadCid... | the_stack |
import * as util from 'util'
import { AccessToken, AccessTokenApi } from '@tnwx/accesstoken'
import { HttpKit } from '@tnwx/kits'
/**
* @author Javen
* @copyright javendev@126.com
* @description 微信摇一摇 设备管理
*/
export class ShakeAroundDeviceApi {
private static applyIdUrl: string = 'https://api.weixin.qq.com/shake... | the_stack |
import {
genMountFn,
triggerTouchEvents,
genDelayedSelectorSpy
} from '@taro-ui-vue3/test-utils/helper'
import { Calendar } from "@taro-ui-vue3/types/calendar"
import dayjs from "dayjs/esm/index"
import * as utils from '@taro-ui-vue3/utils/common'
import AtCalendar from '../index.vue'
import AtCalendarBody from ... | the_stack |
'use strict'
import * as React from 'react'
import type { ReactElement } from 'react'
import { hatetrisAi } from '../../enemy-ais/hatetris-ai'
import { lovetrisAi } from '../../enemy-ais/lovetris-ai'
import { brzAi } from '../../enemy-ais/brzustowski'
import { burgAi } from '../../enemy-ais/burgiel'
import hatetrisRe... | the_stack |
import {
analyzeTokenTypes,
charCodeToOptimizedIndex,
cloneEmptyGroups,
DEFAULT_MODE,
LineTerminatorOptimizedTester,
performRuntimeChecks,
performWarningRuntimeChecks,
SUPPORT_STICKY,
validatePatterns
} from "./lexer"
import {
cloneArr,
cloneObj,
forEach,
IDENTITY,
isArray,
isEmpty,
isUn... | the_stack |
declare const enum CBATTError {
Success = 0,
InvalidHandle = 1,
ReadNotPermitted = 2,
WriteNotPermitted = 3,
InvalidPdu = 4,
InsufficientAuthentication = 5,
RequestNotSupported = 6,
InvalidOffset = 7,
InsufficientAuthorization = 8,
PrepareQueueFull = 9,
AttributeNotFound = 10,
AttributeNotLong =... | the_stack |
import { Connection, createConnection } from 'typeorm';
import { AccountsTypeorm, entities } from '../src';
const user = {
username: 'johndoe',
email: 'john@doe.com',
password: 'toto',
};
let connection: Connection;
const url = 'postgres://postgres@localhost:5432/accounts-js-tests-e2e';
describe('TypeormServic... | the_stack |
import { LoaderOptions, Library, Instance } from './seal'
import { Exception, SealError } from './exception'
import { VectorConstructorOptions } from './vector'
import { MemoryPoolHandle } from './memory-pool-handle'
import { PlainText, PlainTextConstructorOptions } from './plain-text'
import { Context } from './contex... | the_stack |
import { getIntrospectionQuery } from 'graphql'
import { useDisableIntrospection } from '@envelop/disable-introspection'
import EventSource from 'eventsource'
import request from 'supertest'
import puppeteer from 'puppeteer'
import { CORSOptions, createServer, GraphQLYogaError } from '../src'
import { getCounterValue, ... | the_stack |
import {js_beautify} from 'js-beautify';
import {transform, transformFile} from 'rcre-runtime-syntax-transform';
describe('ExpressionString代码转转', () => {
it('BinaryExpression', () => {
const cases: [string, number | string | boolean][] = [
['1 + 1 * 2', 3],
['1 * 4', 4],
... | the_stack |
import {
IsometricCanvas,
IsometricRectangle,
IsometricCircle,
IsometricPath,
PlaneView,
SVGPathAnimation,
SVGRectangleAnimation,
SVGCircleAnimation
} from '../src';
describe('Snapshot tests', (): void => {
let container: HTMLDivElement;
beforeEach((): void => {
contai... | the_stack |
import Accordion, { AccordionDumb } from './components/Accordion/Accordion';
import Autocomplete, {
AutocompleteDumb,
} from './components/Autocomplete/Autocomplete';
import ButtonGroup, {
ButtonGroupDumb,
} from './components/ButtonGroup/ButtonGroup';
import SingleLineLoadingSkeleton from './components/LoadingSkelet... | the_stack |
import EditorUI = require("ui/EditorUI");
import PlayMode = require("ui/playmode/PlayMode");
import EditorLicense = require("./EditorLicense");
import EditorEvents = require("./EditorEvents");
import Preferences = require("./Preferences");
class AtomicEditor extends Atomic.ScriptObject {
project: ToolCore.Project... | the_stack |
import CreateDom from "@/lib/main-entrance/CreateDom";
// 导入截图所需样式
import "@/assets/scss/screen-short.scss";
import InitData from "@/lib/main-entrance/InitData";
import {
cutOutBoxBorder,
drawCutOutBoxReturnType,
movePositionType,
positionInfoType,
screenShotType,
zoomCutOutBoxReturnType
} from "@/lib/type/... | the_stack |
import { publish, tap } from 'rxjs/operators';
import { Injectable } from '@angular/core';
import { CesiumService } from '../../../../angular-cesium/services/cesium/cesium.service';
import { MapEventsManagerService } from '../../../../angular-cesium/services/map-events-mananger/map-events-manager';
import { BehaviorSub... | the_stack |
import * as axios from "axios";
import * as prettyBytes from "pretty-bytes";
import { spawn, Thread, Worker, Pool } from "threads";
import { handleEvalScript } from "@fromjs/core";
import { writeFileSync, fstat, existsSync } from "fs";
import * as path from "path";
let instrumenterFilePath = "instrumentCode.js";
if (!... | the_stack |
import {
getFlow,
getStep,
getSteps,
isApiProviderFlow,
isEndStep,
isStartStep,
requiresInputDescribeDataShape,
requiresOutputDescribeDataShape,
WEBHOOK_INCOMING_ACTION_ID,
WithIntegrationHelpers,
} from '@syndesis/api';
import * as H from '@syndesis/history';
import { Integration, StepKind } from '... | the_stack |
interface ThirdPartyEmbeddedContent {
isThirdPartyTracking: boolean;
source?: string;
sourceDomain?: string;
}
interface AudioAtomBlockElement {
_type: 'model.dotcomrendering.pageElements.AudioAtomBlockElement';
elementId: string;
id: string;
kicker: string;
title?: string;
trackUrl: string;
duration: number;... | the_stack |
import { InstanceFactory } from "./instancefactory";
import { AopProxy } from "./aopproxy";
import { NoomiError } from "../tools/errorfactory";
import { TransactionManager } from "../database/transactionmanager";
import { Util } from "../tools/util";
/**
* Aop通知类型
*/
interface IAopAdvice{
/**
* 切点
*/
... | the_stack |
//@ts-check
///<reference path="devkit.d.ts" />
declare namespace DevKit {
namespace FormAnnotation_Information {
interface tab_general_Sections {
account_information: DevKit.Controls.Section;
attachment_information: DevKit.Controls.Section;
content_information: DevKit.Controls.Section;
}
interface tab... | the_stack |
import {
Attribute,
ButtonElement,
CanvasElement,
DataListElement,
Element,
FieldSetElement,
FormElement,
FormFieldElement,
FormValue,
HrefElement,
InputElement,
KeygenElement,
LabelElement,
LegendElement,
LinkElement,
MapElement,
MediaElement,
Met... | the_stack |
import { join } from 'path'
import { readFileSync, statSync } from 'fs'
import matter from 'gray-matter'
import dateFns from 'date-fns'
import _ from 'lodash'
import pathToRegexp from 'path-to-regexp'
import yaml from 'js-yaml'
import { slugify, logger } from '../utils'
// import { logger } from '../utils'
import { Nu... | the_stack |
import { FetchFn } from '.';
import { Matcher } from '../types';
import { labelMatchersToString } from '../parser';
import LRUCache from 'lru-cache';
export interface MetricMetadata {
type: string;
help: string;
}
export interface PrometheusClient {
labelNames(metricName?: string): Promise<string[]>;
// labe... | the_stack |
import {
commands,
window,
WorkspaceFolder,
workspace,
Uri,
debug,
DebugConfiguration,
DebugSessionOptions,
env,
ConfigurationTarget,
} from "vscode";
import { join, dirname } from "path";
import { logError, OUTPUT_CHANNEL } from "./channel";
import * as roboCommands from "./robo... | the_stack |
import { writeJSON } from 'fs-extra';
import { resolve } from 'path';
import writePackage from 'write-pkg';
import { reifyDependencies } from '#package';
import {
assertPresetterRC,
bootstrapPreset,
bootstrapContent,
getContext,
getDestinationMap,
getPresetAssets,
getPresetterRC,
getScripts,
setupPre... | the_stack |
import type { BufferInfo } from '../utils/buffer-helper';
import { BufferHelper } from '../utils/buffer-helper';
import { ErrorTypes, ErrorDetails } from '../errors';
import { Events } from '../events';
import { logger } from '../utils/logger';
import type Hls from '../hls';
import type { HlsConfig } from '../config';
... | the_stack |
import { AbstractJSONRPCTransport, DummyTransport, HTTPTransport, WSTransport } from './transport';
import { BigNumber, ethers } from 'ethers';
import {
AccountState,
Address,
IncomingTxFeeType,
ContractAddress,
Fee,
Network,
PriorityOperationReceipt,
TokenAddress,
TokenLike,
Tok... | the_stack |
import { schemas } from '@0x/json-schemas';
import { MarketOperation, Order } from '@0x/types';
import { BigNumber } from '@0x/utils';
import * as _ from 'lodash';
import { assert } from './assert';
import { constants } from './constants';
import {
FeeOrdersAndRemainingFeeAmount,
FindFeeOrdersThatCoverFeesForT... | the_stack |
import { ContainerPool } from "../core/container";
import { BadRequest, InternalServerError } from "../core/errors";
import { LogLevel } from "../core/logger";
import { EventRecord, EventRequest, EventResult, HttpMethod, HttpRequest, HttpResponse, RemoteRequest } from "../core/types";
import { HttpUtils, Utils } from "... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.