text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest';
import * as models from '../models';
/**
* @class
* Catalog
* __NOTE__: An instance of this class is automatically created for an
* instance of the DataLakeAnalyticsCatalogManagementClient.
*/
export interface... | the_stack |
import {expect} from 'chai';
import {Request, Response} from 'express';
import * as nock from 'nock';
import {describe, it} from 'mocha';
import {createPackument} from '../helpers/create-packument';
import {writePackageRequest} from '../helpers/write-package-request';
import * as datastore from '../../src/lib/datasto... | the_stack |
import { css, html, LitElement } from '../deps_app.ts';
import { FilterState, WebtailAppVM } from '../webtail_app_vm.ts';
import { actionIcon, CLEAR_ICON } from './icons.ts';
export const CONSOLE_HTML = html`
<div id="console">
<div id="console-header">
<div id="console-header-filters" class="body2"></div>... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { TenantAccess } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { ApiManagementClient } from "../apiManageme... | the_stack |
import { AfterViewInit, Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
import { AmexioMultipleDatePickerComponent } from '../multidatepicker/multidatepicker.component';
import { MultiDateRangePicker } from './multirangedatepicker.component.model';
@Component({
selector: 'amexio-da... | the_stack |
import { Sortable } from '../src/sortable/index';
import { createElement, remove, EventHandler, getComponent, Draggable } from '@syncfusion/ej2-base';
import { profile , inMB, getMemoryProfile } from './common.spec';
interface EventOptions {
name: String;
listener: Function;
debounce?: Function;
}
interfac... | the_stack |
import {
BaseClientSideWebPart,
IPropertyPaneConfiguration,
PropertyPaneTextField,
PropertyPaneSlider,
PropertyPaneToggle,
IWebPartContext
} from '@microsoft/sp-webpart-base';
import { Version } from '@microsoft/sp-core-library';
import * as strings from 'NewsTickerStrings';
import { INewsTickerWebPartProp... | the_stack |
import * as vscode from 'vscode';
import { sendToServer, ServerCommand, HelpServerResponse, TemplateServerResponse, sendToRepl, IdsServerResponse, HotloadClientRequest, HelpClientRequest, TemplateClientRequest, TemplateScope, AproposServerResponse, IdsClientRequest } from './net';
import { uriToLuaPath } from './util';... | the_stack |
import { ConcreteRequest } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type OnboardingPersonalizationModalTestsQueryVariables = {
query: string;
count: number;
};
export type OnboardingPersonalizationModalTestsQueryResponse = {
readonly " $fragmentRefs": FragmentRefs<"Onboardi... | the_stack |
// @noLib: true
//// interface Foo {
//// _0: 0;
//// _1: 1;
//// _2: 2;
//// _3: 3;
//// _4: 4;
//// _5: 5;
//// _6: 6;
//// _7: 7;
//// _8: 8;
//// _9: 9;
//// _10: 10;
//// _11: 11;
//// _12: 12;
//// _13: 13;
//// _14: 14;
//// _15: 15;
//// _16: 16;
//// _17: ... | the_stack |
export enum Types {
AUTO,
FULL,
PIXEL,
PERCENT,
MINUS,
INHERIT,
VALUE,
THIN, // 100
ULTRALIGHT, // 200
LIGHT, // 300
REGULAR, // 400
MEDIUM, // 500
SEMIBOLD, // 600
BOLD, // 700
HEAVY, // 800
BLACK, // 900... | the_stack |
import * as React from 'react';
import { i18n, I18nProvider } from '../../i18n';
import { Wrapper } from './elements';
import {
Controls,
ControlsWrapper,
ControlsName,
ControlsDescription,
ControlsHeader,
ControlsMain,
InlineControl,
} from '../../common/forms/controls-wrapper';
import { Input } from '..... | the_stack |
import * as object from "../common/object";
import * as geom from "../format/geom";
import * as dbft from "../format/dragonBonesFormat";
const enum FrameValueType {
Step,
Int,
Float,
}
const intArray: Array<number> = [];
const floatArray: Array<number> = [];
const timelineArray: Array<number> = [];
const ... | the_stack |
import {
Live2DCubismFramework as live2dcubismframework,
Option as Csm_Option
} from '@framework/live2dcubismframework';
import Csm_CubismFramework = live2dcubismframework.CubismFramework;
import {LAppView} from './lappview';
import {LAppPal} from './lapppal';
import {LAppTextureManager} from './lapptexturemana... | the_stack |
import { mount, Wrapper } from '@vue/test-utils'
import Picker from '../'
import PickerColumn from '../WPickerColumn'
import { slowVerticalDrag } from '@/test/unit/utils'
import { ExtractVue } from '@/utils/mixins'
const testSingleColumn = [
{
options: [1, 2, 3],
},
]
const testMultiColumn = [
{
options... | the_stack |
import { HttpClient, HttpEvent, HttpHeaders, HttpRequest } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
import { map } from 'rxjs/operators';
import * as Sentry from '@sentry/browser';
import { apiUrl } from '../../shared/config';
import { MailboxKey }... | the_stack |
import { printp } from "../../adapters/messages/pending-logs";
import { PromiseError, Component } from "./../../adapters/errors/promise-error";
import { ProcessCEMetadata } from "../../adapters/mongo-db/repo-models";
import {
DeploymentError,
DeploymentResult,
} from "../../adapters/ethereum-blockchain/structs/dep... | the_stack |
import { left, right, leftSeq, rightSeq } from "string-left-right";
interface Obj {
[key: string]: any;
}
function isStr(something: any): boolean {
return typeof something === "string";
}
const headsAndTails = {
CONFIGHEAD: "GENERATE-ATOMIC-CSS-CONFIG-STARTS",
CONFIGTAIL: "GENERATE-ATOMIC-CSS-CONFIG-ENDS",
... | the_stack |
import { isBoolean, isDate, isDefined, isFunction, isNumber, isObject, isString } from "../typeChecks";
import { Attr, type } from "./attrs";
import { CSSInJSRule, margin, styles } from "./css";
export interface ErsatzElement {
element: HTMLElement;
}
export function isErsatzElement(obj: any): obj is ErsatzElemen... | the_stack |
import * as fs from "fs";
import {PathLike} from "fs";
import * as readline from "readline";
interface ClassInfo {
/**
* 类的id,默认使用类名,不能重复
*/
id?: string;
/**
* 类的类型
*/
type: any;
/**
* 记录装饰器调用的位置
*/
pos: any;
}
/**
* 序列化时需要忽略的字段
*/
const transientFields = ne... | the_stack |
import {DataTypes, Model, QueryTypes, Sequelize} from "sequelize";
import InventorySlot from "./InventorySlot";
import PetEntity from "./PetEntity";
import PlayerSmallEvent from "./PlayerSmallEvent";
import MissionSlot from "./MissionSlot";
import PlayerMissionsInfo from "./PlayerMissionsInfo";
import InventoryInfo fro... | the_stack |
import {
ConfigureTimeSeriesOperation,
IDocumentStore,
InMemoryDocumentSessionOperations,
RawTimeSeriesPolicy, SessionTimeSeriesBase, TimeSeriesCollectionConfiguration, TimeSeriesConfiguration,
TimeSeriesPolicy,
TimeSeriesValue
} from "../../../src";
import { disposeTestDocumentStore, RavenTestC... | the_stack |
/// <reference path="../../../dist/automapper-classes.d.ts" />
/// <reference path="../../../dist/automapper-interfaces.d.ts" />
/// <reference path="../../../dist/automapper-declaration.d.ts" />
var globalScope = this;
module AutoMapperJs {
'use strict';
describe('AutoMapper - Currying support', ()... | the_stack |
import { Promise } from "bluebird";
import { async as createSubject } from "most-subject";
import * as lodashClone from "lodash.clone";
import * as lodashCloneDeep from "lodash.clonedeep";
import { StreamDSL } from "./StreamDSL";
import { messageProduceHandle } from "../messageProduceHandle";
import { Window } from "..... | the_stack |
import * as path from "path";
import * as vscode from "vscode";
import * as mkdirp from 'mkdirp';
import * as fs from 'fs';
import { denodeify } from 'q';
import { WidgetResolver } from "./resolvers/widget-resolver";
import { ParseXml } from "./parser/parser";
import { PropertyHandlerProvider } from "./providers/proper... | the_stack |
import { ImageSource } from '@nativescript/core';
import { Canvas, ImageAsset, Path2D } from '@nativescript/canvas';
import { Screen } from '@nativescript/core';
import { doesNotReject } from 'assert';
export function fillStyle(canvas) {
const ctx = canvas.getContext('2d');
for (let i = 0; i < 6; i++) {
for (let j ... | the_stack |
import type {
RenderPipelineProps,
RenderPipelineParameters,
RenderPass,
Buffer,
Binding,
ShaderLayout,
PrimitiveTopology,
BindingLayout,
AttributeLayout
} from '@luma.gl/api';
import {RenderPipeline, cast, log, decodeVertexFormat} from '@luma.gl/api';
import GL from '@luma.gl/constants';
import {getW... | the_stack |
import MockDate from 'mockdate';
// eslint-disable-next-line @shopify/strict-component-boundaries
import {StorageServiceMock} from '../StorageService/tests/StorageServiceMock';
import {ExposureStatusType} from '../ExposureNotificationService';
import PushNotification from '../../bridge/PushNotification';
import {Outb... | the_stack |
import { fromTheme } from './from-theme'
import {
isAny,
isArbitraryLength,
isArbitraryPosition,
isArbitraryShadow,
isArbitrarySize,
isArbitraryUrl,
isArbitraryValue,
isArbitraryWeight,
isInteger,
isLength,
isTshirtSize,
} from './validators'
export function getDefaultConfig... | the_stack |
import { getCoordinate } from '@antv/coord';
import { isNumberEqual } from '@antv/util';
import PolarLabel from '../../../../src/geometry/label/polar';
import Point from '../../../../src/geometry/point';
import { getTheme } from '../../../../src/theme/';
import { createCanvas, createDiv } from '../../../util/dom';
impo... | the_stack |
import { Callback } from "@siteimprove/alfa-callback";
import { Mapper } from "@siteimprove/alfa-mapper";
import { None, Option } from "@siteimprove/alfa-option";
import { Predicate } from "@siteimprove/alfa-predicate";
import { Result, Err } from "@siteimprove/alfa-result";
import { Refinement } from "@siteimprove/alf... | the_stack |
import * as pb_1 from "google-protobuf";
export namespace common.asset_transfer {
export class AssetPledge extends pb_1.Message {
constructor(data?: any[] | {
assetDetails?: Uint8Array;
localNetworkID?: string;
remoteNetworkID?: string;
recipient?: string;
... | the_stack |
import { TypeRegistry } from '@kiltprotocol/chain-helpers'
import {
IDidKeyDetails,
IDidResolutionDocumentMetadata,
IDidServiceEndpoint,
IIdentity,
KeyringPair,
} from '@kiltprotocol/types'
import type { IDidResolvedDetails } from '@kiltprotocol/types'
import { Keyring } from '@kiltprotocol/utils'
import { he... | the_stack |
module android.widget {
import Spannable = android.text.Spannable;
import TextUtils = android.text.TextUtils;
import TextView = android.widget.TextView;
import View = android.view.View;
import Gravity = android.view.Gravity;
import Context = android.content.Context;
import Color = android.graphics.Color;
import Canvas ... | the_stack |
import Global, { globalInstance } from './global'
import type { ScoreNote } from '../../main/on-score'
// eslint-disable-next-line import/no-duplicates
import type Note from './note'
// eslint-disable-next-line import/no-duplicates
import type { ScoreNoteWithNoteInstance } from './note'
import TapNote from './tap-note'... | the_stack |
import * as stream from 'stream';
import {Service} from './service';
import {Response} from './response';
import {HttpRequest} from './http_request';
import {AWSError} from './error';
export class Request<D, E> {
/**
* Creates a request for an operation on a given service with a set of input parameters.
*... | the_stack |
import * as path from "path";
import * as util from "util";
import * as _ from "lodash";
import { APP_FOLDER_NAME } from "../../constants";
import { getHash } from "../../common/helpers";
import { performanceLog } from "../../common/decorators";
import { IPlatformsDataService } from "../../definitions/platform";
import... | the_stack |
import { Router } from 'express';
import asyncHandler from 'express-async-handler';
const router: Router = Router();
import { ReposAppRequest, IAppSession, SupportedLinkType, ICorporateLink, LinkOperationSource } from '../interfaces';
import { getProviders, splitSemiColonCommas } from '../transitional';
import { Indiv... | the_stack |
import React from 'react'
import classNames from 'classnames'
import { hasEnoughSpace, calculatePosition, RelativePosition } from './positioning-utils'
import './popover.less'
/**
* Position of the popover. Defaults to `auto`.
* `auto` tries to position the tooltip to the top,
* if there's not enough space it tri... | the_stack |
import { Percent, Price, Scalar, scalar, Shares, Tokens } from "./dimension-quantity";
// This library is intended to be a home for all augur financial formulas.
// The emphasis is on safety and education with mechanisms like more specific
// types (eg. Shares instead of BigNumber), named parameters/return values
// (... | the_stack |
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {PollyCustomizations} from '../lib/services/polly';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config-base';
import {Presigner as pr... | the_stack |
import * as React from "react"
import Downshift from "downshift"
import MenuItem from "@material-ui/core/MenuItem/MenuItem"
import { UiPaper, UiSearch } from "../ui-text-field/ui-text-field"
import { Suggestion, SuggestionSection } from "../../models/typeahead"
import { UiTypeaheadFetcher } from "./ui-typeahead-fetcher... | the_stack |
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
/**
* <p>You don't have sufficient access to perform this action.</p>
*/
export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
name: "AccessDeniedException";
$fault: "client";
... | the_stack |
import type {
DbOptions,
Document,
ExplainVerbosityLike,
FindOneAndDeleteOptions,
FindOneAndReplaceOptions,
FindOneAndUpdateOptions,
DeleteOptions,
MapReduceOptions,
KMSProviders,
ExplainOptions
} from '@mongosh/service-provider-core';
import { CommonErrors, MongoshInvalidInputError, MongoshUnimplem... | the_stack |
* @module Rendering
*/
import { assert } from "@itwin/core-bentley";
import { Point3d, Vector3d } from "@itwin/core-geometry";
import { LinePixels, PolylineData, PolylineTypeFlags, QPoint3dList } from "@itwin/core-common";
import { MeshArgs, PolylineArgs } from "./mesh/MeshPrimitives";
import { VertexIndices, VertexT... | the_stack |
import G6 from '@antv/g6';
import Tooltip from '../../src/tooltip';
const div = document.createElement('div');
div.id = 'tooltip-plugin';
document.body.appendChild(div);
const data = {
nodes: [
{
id: 'node1',
label: 'node1',
x: 100,
y: 100,
},
{
id: 'node2',
label: 'n... | the_stack |
import { fakeAsync, tick } from '@angular/core/testing';
import { Observable, Subject, Subscription } from 'rxjs';
import { Notification } from 'rxjs/internal/Notification';
import { reduce } from 'rxjs/operators';
import { fromWorkerPool } from './from-worker-pool';
// tslint:disable:no-non-null-assertion
describe('... | the_stack |
import * as SDPUtils from 'sdp';
import { JingleAction, JingleReasonCondition, JingleSessionRole } from '../Constants';
import { NS_JINGLE_ICE_UDP_1 } from '../Namespaces';
import { Jingle, JingleContent, JingleIce, JingleReason } from '../protocol';
import { exportToSDP, importFromSDP } from './sdp/Intermediate';
im... | the_stack |
import * as path from 'path';
import {
CallExpression,
ClassDeclaration,
Decorator,
Identifier,
ImportClause,
ImportDeclaration,
ImportSpecifier,
NamedImports,
Node,
NodeArray,
ObjectLiteralElement, // tslint:disable-line: no-unused-variable
ObjectLiteralExpression,
PropertyAssignment,
Arra... | the_stack |
import { alert } from 'vs/base/browser/ui/aria/aria';
import { asArray, isNonEmptyArray } from 'vs/base/common/arrays';
import { CancellationToken, CancellationTokenSource } from 'vs/base/common/cancellation';
import { onUnexpectedExternalError } from 'vs/base/common/errors';
import { Iterable } from 'vs/base/common/it... | the_stack |
import * as React from "react";
import { ComponentContext } from "./component-context";
import { Debounce } from "./debounce";
import { FieldBase, DynamicFormNode, BreadcumbComponentType, FormIncludes, BreadcumbNode } from "./types";
import { ComponentRegistry } from "./component-registry";
import { FormStateBuilder } ... | the_stack |
import { expect } from "chai";
import {
ButtonGroupEditorParams, DialogItem, DialogItemValue, DialogPropertySyncItem, PropertyDescription, PropertyEditorParamTypes,
} from "@itwin/appui-abstract";
/** @internal */
export enum SelectOptions {
Method_Pick,
Method_Line,
Method_Box,
Method_View,
Mode_Add,
Mo... | the_stack |
import * as nls from 'vscode-nls';
import { TokenType, ScannerState, Scanner } from '../htmlLanguageTypes';
const localize = nls.loadMessageBundle();
class MultiLineStream {
private source: string;
private len: number;
private position: number;
constructor(source: string, position: number) {
this.source = sour... | the_stack |
import { HandlerContext } from "@atomist/automation-client/lib/HandlerContext";
import * as k8s from "@kubernetes/client-node";
import * as assert from "power-assert";
import { SdmGoalEvent } from "../../../../lib/api/goal/SdmGoalEvent";
import {
createJobSpec,
isConfiguredInEnv,
k8sJobEnv,
k8sJobName,
... | the_stack |
* Transforms Doxygen documentation model to the Markdown based model to be used by Docusaurus service.
*/
import {Config} from './config';
import {DoxModel, DoxCompound, DoxMember} from './doxygen-model';
import {
DocModel,
DocCompound,
DocSection,
DocMemberOverload,
DocMember,
} from './doc-model';
import ... | the_stack |
// lib/git/git.js
export declare class Git {
constructor(gitDirectory: any);
refs(options: any, prefix: string, callback: (err: any, data: string) => void): void;
fs_read(gitDirectory: string, file: string, callback: (err: any, data: any) => void): void;
transform_options(options: any): string[];
... | the_stack |
import { Component, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { TUNE_STATE } from '../site_tuner';
import { getIsElementVisible, getNormalizedInnerText, sendClickEvent,
waitForTimeout } from... | the_stack |
import { isNullOrUndefined } from '@syncfusion/ej2-base';
import { EventHandler } from '@syncfusion/ej2-base';
import { createElement, classList, append } from '@syncfusion/ej2-base';
import { Pager, IRender } from './pager';
/**
* `NumericContainer` module handles rendering and refreshing numeric container.
*/
expo... | the_stack |
import * as coreClient from "@azure/core-client";
export const LocationListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "LocationListResult",
modelProperties: {
value: {
serializedName: "value",
type: {
name: "Sequence",
element: {... | the_stack |
import * as Common from '../../core/common/common.js';
import * as Host from '../../core/host/host.js';
import * as i18n from '../../core/i18n/i18n.js';
import * as Platform from '../../core/platform/platform.js';
import * as SDK from '../../core/sdk/sdk.js';
import * as Bindings from '../../models/bindings/bindings.js... | the_stack |
import { ethers, waffle } from "hardhat";
import { expect, use } from "chai";
import { solidity } from "ethereum-waffle";
import {
InvariantTransactionData,
signCancelTransactionPayload,
signFulfillTransactionPayload,
VariantTransactionData,
getInvariantTransactionDigest,
getVariantTransactionDigest,
} from... | the_stack |
import React from 'react';
import { Button, MenuItem } from '@mui/material';
import { Form } from 'react-final-form';
import { Select, SelectData, SelectProps } from '../src';
import { act, customRender, fireEvent } from './TestUtils';
describe('Select', () => {
describe('basic component', () => {
interface Compo... | the_stack |
RoomVisual.prototype.infoBox = function(info: string[], x: number, y: number, opts = {}): RoomVisual {
_.defaults(opts, {
color : colors.infoBoxGood,
textstyle: false,
textsize : speechSize,
textfont : 'verdana',
opacity : 0.7,
});
let fontstring = '';
if (opts.textstyle) {
fontstring = opts.textst... | the_stack |
import {
DateEnv,
createFormatter,
createDuration,
startOfDay,
diffWholeWeeks,
diffWholeDays,
diffDayAndTime,
Calendar,
} from '@fullcalendar/core'
import dayGridPlugin from '@fullcalendar/daygrid'
import { getDSTDeadZone } from '../lib/dst-dead-zone'
import { formatPrettyTimeZoneOffset, formatIsoTimeZo... | the_stack |
import * as path from "path";
import * as openapiToolsCommon from "@azure-tools/openapi-tools-common";
import { Suppression } from "@azure/openapi-markdown";
import * as jsonPointer from "json-pointer";
import * as _ from "lodash";
import {
DefinitionsObject,
OperationObject,
ParameterObject,
ParametersDefiniti... | the_stack |
import isEqual from 'lodash/isEqual';
import { Injectable, Autowired, INJECTOR_TOKEN, Injector } from '@opensumi/di';
import {
TreeModel,
DecorationsManager,
Decoration,
IRecycleTreeHandle,
TreeNodeType,
TreeNodeEvent,
} from '@opensumi/ide-components';
import {
Emitter,
ThrottledDelayer,
Deferred,
... | the_stack |
import { ConcreteRequest } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type ShippingQuotes_Test_QueryVariables = {};
export type ShippingQuotes_Test_QueryResponse = {
readonly order: {
readonly lineItems: {
readonly edges: ReadonlyArray<{
readonly n... | the_stack |
import _ = require('lodash');
import gql from 'graphql-tag';
import { MockedEndpoint, MockedEndpointData } from "../types";
import { buildBodyReader } from '../util/request-utils';
import { objectHeadersToRaw, rawHeadersToObject } from '../util/header-utils';
import type { Serialized } from '../serialization/seriali... | the_stack |
import * as React from "react"
import * as ReactDOMServer from "react-dom/server"
import {
observable,
computed,
action,
autorun,
runInAction,
reaction,
IReactionDisposer,
} from "mobx"
import { bind } from "decko"
import { ColorScale } from "../color/ColorScale"
import {
uniqWith,
i... | the_stack |
import type {Mutable, Class, Timing} from "@swim/util";
import {Affinity, Animator} from "@swim/component";
import {AnyLength, Length, AnyR2Point, R2Point, R2Segment, R2Box} from "@swim/math";
import {AnyGeoPoint, GeoPoint, GeoBox} from "@swim/geo";
import {AnyColor, Color} from "@swim/style";
import {MoodVector, Theme... | the_stack |
import { ChartDataSectionType } from 'app/constants';
import {
ChartConfig,
ChartDataSectionField,
ChartStyleConfig,
LabelStyle,
LegendStyle,
LineStyle,
SeriesStyle,
} from 'app/types/ChartConfig';
import ChartDataSetDTO, { IChartDataSet } from 'app/types/ChartDataSet';
import {
getAxisLabel,
getAxisL... | the_stack |
import { isLeft, isRight } from "fp-ts/lib/Either";
import { reporter } from "io-ts-reporters";
import { normalize, relative } from "path";
import { IModule } from "../interfaces/modules";
import {
IWebpackStats,
IWebpackStatsAsset,
IWebpackStatsAssets,
IWebpackStatsChunk,
IWebpackStatsModule,
IWebpackStats... | the_stack |
export type Selector<S, R> = (state: S) => R
export type ParametricSelector<S, P, R> = (
state: S,
props: P,
...args: any[]
) => R
interface OutputProps<C> {
resultFunc: C
recomputations: () => number
resetRecomputations: () => number
}
export type OutputSelector<S, R, C> = Selector<S, R> & OutputProps<C>... | the_stack |
(function () {
try {
let decoder = new TextDecoder();
let encoder = new TextEncoder();
let liveChatOld: any; // 对旧播放器建立的ws对象的引用
let liveChat: any;
// 为了获取ws对象的引用,hook WebSocket.send
let wsHookRunOnce = true;
const wssend = WebSocket.prototype.send;
We... | the_stack |
import { decimalStr, fromWei } from '../utils/Converter';
import { logGas } from '../utils/Log';
import { VDODOContext, getVDODOContext } from '../utils/VDODOContext';
import { assert } from 'chai';
let dodoTeam: string;
let account0: string;
let account1: string;
let account2: string;
let account3: string;
let accoun... | the_stack |
import * as evaluator from "../utils/evaluator"
import { validators } from './validators'
import { allErrors, detachAllErrors, ValidationError, getErrors } from "./error"
import { DotvvmEvent } from '../events'
import * as spaEvents from '../spa/events'
import { postbackHandlers } from "../postback/handlers"
import { D... | the_stack |
import Graph from'./Graph';
/** A class encapsulating the functionality to find the smallest set of smallest rings in a graph. */
class SSSR {
public d: any;
public pe: any;
public pe_prime: any;
/**
* Returns an array containing arrays, each representing a ring from the smallest set of smallest ... | the_stack |
import _ from 'lodash';
import React from 'react';
import createClass from 'create-react-class';
import {
Button,
Dialog,
CheckboxLabeled,
SearchField,
SearchableMultiSelect,
SingleSelect,
} from './../../index';
export default {
title: 'Layout/Dialog',
component: Dialog,
parameters: {
docs: {
descriptio... | the_stack |
import * as _ from "underscore";
import {FeedFieldPolicyDialogData} from "./feed-field-policy-dialog-data";
import {FieldPolicyOptionsService} from "../field-policies-angular2/field-policy-options.service";
import {Component, Inject, OnDestroy, OnInit, ChangeDetectionStrategy, Output, EventEmitter, ViewChild} from "@an... | the_stack |
import { Component, ComponentFactoryResolver, Injector, OnDestroy } from '@angular/core';
import { FormBuilder } from '@angular/forms';
import { Store } from '@ngrx/store';
import { BehaviorSubject, Observable, of as observableOf, Subscription } from 'rxjs';
import { distinctUntilChanged, filter, first, map, pairwise, ... | the_stack |
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | the_stack |
import { Command } from "commander";
import { log } from "console";
import * as fs from "fs";
import { retry } from "../..";
import { EdgeAppInstanceModels, MindSphereSdk } from "../../api/sdk";
import { throwError } from "../../api/utils";
import {
adjustColor,
errorLog,
getColor,
getSdk,
homeDirLo... | the_stack |
import { OnDestroy, Directive, Component } from '@angular/core';
import {
AbstractControl,
AbstractControlOptions,
ControlValueAccessor,
FormGroup,
ValidationErrors,
Validator,
FormArray,
FormControl,
} from '@angular/forms';
import { merge, Observable, Subscription } from 'rxjs';
import { delay, filter... | the_stack |
interface BoundingBox {
top: number
left: number
width: number
height: number
}
function expectBbox(element: HTMLElement, expectedBbox: Partial<BoundingBox>) {
const bbox = element.getBoundingClientRect()
expect(bbox.left).to.equal(expectedBbox.left)
expect(bbox.top).to.equal(expectedBbox.t... | the_stack |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { AssetGroupObservableService } from '../../../../core/services/asset-group-observable.service';
import { CommonResponseService } from '../../../../shared/services/common-response.service';
import { Subscription } from 'rxjs/Subscription';
import { en... | the_stack |
import { defineMessages } from 'react-intl'
export const m = defineMessages({
// navigation
rootName: {
id: 'sp.document-provider:title',
defaultMessage: 'Skjalaveita',
},
documentProviders: {
id: 'sp.document-provider:document-providers',
defaultMessage: 'Skjalaveitur',
},
documentProvider... | the_stack |
describe('infra node detail', () => {
let adminIdToken = '';
let nodeName = '';
let runlist = '';
const environment = '';
const serverID = 'chef-manage';
const serverName = 'chef manage';
const orgID = 'viveksingh_msys';
const orgName = 'viveksingh_msys';
const serverFQDN = 'api.chef.io';
const ser... | the_stack |
import { Structure, ColumnMetadata, ResultsParams, GraphResponse, ResultsResponse, TruncationType } from '../definitions.d'
import SQL from '../adapter/sql'
import moment from 'moment'
export default class Results {
params: Partial<ResultsParams>
structure: Structure
adapter: SQL
response: ResultsResponse | ... | the_stack |
import * as R from "ramda";
import { exit } from "../../lib/process";
import { Argv } from "yargs";
import { BaseArgs } from "../../types";
import {
authz,
graphTypes,
getEnvironmentsByEnvParentId,
getEnvironmentName,
getSubEnvironmentsByParentEnvironmentId,
} from "@core/lib/graph";
import { initCore, dispat... | the_stack |
'use strict';
import * as vscode from 'vscode';
import { LanguageClient, NotificationType, Range } from 'vscode-languageclient';
import { Location, WorkspaceEdit } from './commonTypes';
import { makeVscodeRange, makeVscodeLocation, makeVscodeTextEdits, rangeEquals } from './utils';
import {LocalizeStringParams, getLoca... | the_stack |
import React, {useState, useEffect, useContext} from "react";
import {Row, Col, Card, Menu, Dropdown, Collapse, Icon, Switch} from "antd";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faPlusSquare} from "@fortawesome/free-solid-svg-icons";
import {faTrashAlt} from "@fortawesome/free-regular-s... | the_stack |
import { KeyCode, KeyMod } from 'vs/base/common/keyCodes';
import { DisposableStore } from 'vs/base/common/lifecycle';
import { ICodeEditor } from 'vs/editor/browser/editorBrowser';
import { EditorCommand, registerEditorCommand, registerEditorContribution } from 'vs/editor/browser/editorExtensions';
import { Position }... | the_stack |
import { RuntimeError, normalizeAngle, prefix } from './util';
import { GroupAttributes, RenderContext, TextMeasure } from './rendercontext';
// eslint-disable-next-line
type Attributes = { [key: string]: any };
const attrNamesToIgnoreMap: { [nodeName: string]: Attributes } = {
path: {
x: true,
y: true,
... | the_stack |
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* ---------------------------------------------------------
*
* ---------------------------------------------------------
* Generated file, DO NOT EDIT
* ------------------------------------... | the_stack |
import { history } from 'src/routes/routes'
import { fireEvent, render, screen, waitForElementToBeRemoved } from 'src/utils/test-utils'
import Stepper, { StepElement } from './Stepper'
describe('<Stepper>', () => {
it('Renders Stepper component', () => {
render(
<Stepper testId="stepper-component">
... | the_stack |
"use strict";
import * as assert from "assert";
import { Context, Dispatcher, Store, StoreGroup, UseCase } from "../src/";
import { createStore } from "./helper/create-new-store";
import { SyncNoDispatchUseCase } from "./use-case/SyncNoDispatchUseCase";
import { DispatchUseCase } from "./use-case/DispatchUseCase";
impo... | the_stack |
import * as THREE from "three";
import {
combineLatest as observableCombineLatest,
concat as observableConcat,
merge as observableMerge,
of as observableOf,
Observable,
} from "rxjs";
import {
distinctUntilChanged,
first,
map,
pairwise,
publishReplay,
refCount,
skip,
... | the_stack |
import { expect, test } from "@jest/globals";
import { LuaArray } from "@wowts/lua";
import { Deque } from "./Queue";
test("new queue", () => {
const q = new Deque<number>();
expect(q.capacity).toBe(1);
});
test("new queue sets size", () => {
const q = new Deque<number>(10);
expect(q.capacity).toBe(10... | the_stack |
import {Class, FromAny, Creatable, InitType, Initable} from "@swim/util";
import {Fastener, Provider, ComponentFlags, ComponentInit, Component} from "@swim/component";
import {ExecuteService} from "../execute/ExecuteService";
import {ExecuteProvider} from "../execute/ExecuteProvider";
import {HistoryService} from "../h... | the_stack |
import rule from '.';
import { getHtmlRuleTester, getInvalidTestFactory } from '../../test-helper.spec';
const htmlRuleTester = getHtmlRuleTester();
const getInvalidIconTest = getInvalidTestFactory('clrIconFailure');
htmlRuleTester.run('no-clr-icon', rule, {
invalid: [
getInvalidIconTest({
code: `<clr-ico... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.