text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import chalk from 'chalk'
import { EventData, PastEventOptions } from 'web3-eth-contract'
import { EventEmitter } from 'events'
import { PrefixedHexString } from 'ethereumjs-util'
import { toBN, toHex } from 'web3-utils'
import { Address } from '@opengsn/common/dist/types/Aliases'
import { AmountRequired } from '@open... | the_stack |
import 'core-js/features/array/find';
import 'core-js/features/array/from';
import 'core-js/features/object/assign';
import 'core-js/features/object/keys';
import 'core-js/features/promise';
import 'custom-event-polyfill';
import Controls from './controls';
import Fullscreen from './controls/fullscreen';
import Track f... | the_stack |
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
import {
AcceptDomainTransferFromAnotherAwsAccountCommand,
AcceptDomainTransferFromAnotherAwsAccountCommandInput,
AcceptDomainTransferFromAnotherAwsAccountCommandOutput,
} from "./commands/AcceptDomainTransferFromAnotherAwsAccountComman... | the_stack |
import { isArray, isObject } from '@deepkit/core';
import { Database, DatabaseAdapter } from '@deepkit/orm';
import {
BrowserControllerInterface,
DatabaseCommit,
DatabaseInfo,
EntityPropertySeed,
EntityPropertySeedReference,
fakerFunctions,
FakerTypes,
getType,
QueryResult,
SeedD... | the_stack |
import { testExamples, render, waitFor, fireEvent, act } from '@test/utils';
import React, { useState } from 'react';
import { Select } from 'tdesign-react';
const { Option, OptionGroup } = Select;
// 测试组件代码 Example 快照
testExamples(__dirname);
describe('Select 组件测试', () => {
const selectSelector = '.t-select';
... | the_stack |
declare module Microsoft.Maps {
/**
* An enumeration of different GeoXML file formats.
* @requires The Microsoft.Maps.GeoXml module.
*/
export enum GeoXmlFormat {
/** A KML XML file format. */
kml,
/** A GPX XML file format. */
gpx,
/** A GeoRSS XML fi... | the_stack |
'use strict';
import { syscall } from '../browser-node/syscall';
const ENOSYS = 38;
const AT_FDCWD = -0x64;
// not implemented
function sys_ni_syscall(cb: Function, trap: number): void {
console.log('ni syscall ' + trap);
debugger;
setTimeout(cb, 0, [-1, 0, -ENOSYS]);
}
// rusage size: 144
function sys_wait4(cb:... | the_stack |
import {assert} from '@esm-bundle/chai';
import {
msg,
str,
configureLocalization,
configureTransformLocalization,
LocaleModule,
LOCALE_STATUS_EVENT,
LocaleStatusEventDetail,
updateWhenLocaleChanges,
localized,
} from '../lit-localize.js';
import {Deferred} from '../internal/deferred.js';
import {html... | the_stack |
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { TranslateService } from '@ngx-translate/core';
import { ArtemisTestModule } from '../../test.module';
import { Router } from '@angular/router';
import { of, Subscription } from 'rxjs';
import { RouterTestingModule } from '@angu... | the_stack |
import { StacksTransaction, deserializeTransaction } from '../src/transaction';
import {
createSingleSigSpendingCondition,
SingleSigSpendingCondition,
createMultiSigSpendingCondition,
MultiSigSpendingCondition,
SponsoredAuthorization,
createStandardAuth,
createSponsoredAuth
} from '../src/authorization';... | the_stack |
import {TargetKind} from "../../common/framebuffer.js";
import {distance_squared_from_point} from "../../common/mat4.js";
import {Material} from "../../common/material.js";
import {
GL_ARRAY_BUFFER,
GL_BLEND,
GL_FLOAT,
GL_FRAMEBUFFER,
GL_TEXTURE0,
GL_TEXTURE1,
GL_TEXTURE2,
GL_TEXTURE3,
... | the_stack |
import { CanvasPath, ReactSketchCanvasProps } from 'react-sketch-canvas';
let defaultProps: Partial<ReactSketchCanvasProps>;
let canvasPathWithEraser: CanvasPath;
let canvasPathWithOnlyPen: CanvasPath;
before(() => {
cy.fixture('props.json').then((props) => (defaultProps = props));
cy.fixture('canvasPath/onlyPen.... | the_stack |
import {
ComponentFactoryResolver, ComponentRef, Directive, EventEmitter, Host,
Input, OnChanges, OnInit, Optional, Output,
SimpleChanges, SkipSelf, ViewContainerRef
} from '@angular/core';
import { AbstractControl, ControlContainer, FormGroup, FormGroupDirective } from '@angular/forms';
import { NguiDatetimePick... | the_stack |
import { expect } from "chai";
import { GeometryQuery } from "../../curve/GeometryQuery";
import { LineSegment3d } from "../../curve/LineSegment3d";
import { LineString3d } from "../../curve/LineString3d";
import { Angle } from "../../geometry3d/Angle";
import { Point3d, Vector3d } from "../../geometry3d/Point3dVector3... | the_stack |
const fromCharCode = String.fromCharCode;
const encoderRegexp = /[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g;
const tmpBufferU16 = new Uint16Array(32);
export class TextDecoder {
decode(inputArrayOrBuffer: Uint8Array | ArrayBuffer | SharedArrayBuffer): string {
const inputAs8 = inputArrayOrBuffe... | the_stack |
import { CRUDEvents, LocalStorage } from "./storage";
import { StoreChangeEvent } from "./storage";
import { ModelSchema } from "./ModelSchema";
import { PushStream, ObservablePushStream } from "./utils/PushStream";
import { Filter } from "./filters";
import { ModelReplicationConfig } from "./replication/api/Replicatio... | the_stack |
import { ContainerAdapterClient } from '../../container_adapter_client'
import { MasterNodeRegTestContainer } from '@defichain/testcontainers'
import {
ICXGenericResult,
ICXOffer,
ICXOfferInfo,
ICXOrder,
ICXOrderInfo,
ICXOrderStatus,
ICXOrderType
} from '../../../src/category/icxorderbook'
import BigNumbe... | the_stack |
import {Engine, EngineConst} from '../common/engine';
import {DynamicCstr} from '../rule_engine/dynamic_cstr';
import {Axis, AxisMap, AxisProperties, DefaultComparator, DynamicCstrParser,
DynamicProperties} from '../rule_engine/dynamic_cstr';
import {MathCompoundStore} from '../rule_engine/math_simple_store';
i... | the_stack |
import { AMCPUtil as AMCPUtilNS } from './AMCP'
import CasparCGSocketResponse = AMCPUtilNS.CasparCGSocketResponse
// ResponseNS
import { Response as ResponseNS } from './ResponseSignature'
import ResponseSignature = ResponseNS.ResponseSignature
import { Response as ResponseValidatorNS } from './ResponseValidators'
impo... | the_stack |
import React, { useState } from 'react';
import { Navigation } from './Navigation';
import { NavigationRow } from './navigationRow/NavigationRow';
import { NavigationItem } from './navigationItem/NavigationItem';
import { NavigationUser } from './navigationUser/NavigationUser';
import { NavigationSearch } from './navi... | the_stack |
import React, { FC, useRef } from 'react';
import { render, fireEvent, waitFor, RenderResult } from '@testing-library/react';
import { renderHook, act, RenderHookResult } from '@testing-library/react-hooks';
import ThemeProvider from '@brix-ui/theme';
import { matchMedia } from '../../../mocks/match-media';
import { ... | the_stack |
import { EventEmitter } from 'events';
import Connection from '../connection';
import Device from '../device';
import { NotSupportedError } from '../errors';
import { RTCSampleTotals } from '../rtc/sample';
import RTCSample from '../rtc/sample';
import { getRTCIceCandidateStatsReport } from '../rtc/stats';
import RTCWa... | the_stack |
import '../../../test/common-test-setup-karma';
import '../gr-comment-api/gr-comment-api';
import '../../shared/revision-info/revision-info';
import './gr-patch-range-select';
import {GrPatchRangeSelect} from './gr-patch-range-select';
import '../../../test/mocks/comment-api';
import {RevisionInfo as RevisionInfoClass}... | the_stack |
/*
* Copyright (c) 2016 - now David Sehnal, licensed under Apache 2.0, See LICENSE file for more info.
*/
namespace LiteMol.Core.Geometry.MolecularSurface {
"use strict";
export interface MolecularIsoSurfaceParameters {
exactBoundary?: boolean;
boundaryDelta?: { dx: number; dy: number; dz: ... | the_stack |
import { FocusMonitor } from '@angular/cdk/a11y';
import { coerceBooleanProperty } from '@angular/cdk/coercion';
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
EventEmitter,
Inject,
Input,
NgZone,
OnDestroy,
Optional,
Output,
ViewChild,
Vi... | the_stack |
import { LokiEventEmitter } from "./event_emitter";
import { ResultSet } from "./result_set";
import { Collection } from "./collection";
import { Doc } from "../../common/types";
import { Scorer } from "../../full-text-search/src/scorer";
/**
* DynamicView class is a versatile 'live' view class which can have filters ... | the_stack |
import * as JVMTypes from '../../includes/JVMTypes';
import * as Doppio from '../doppiojvm';
import JVMThread = Doppio.VM.Threading.JVMThread;
import ReferenceClassData = Doppio.VM.ClassFile.ReferenceClassData;
import logging = Doppio.Debug.Logging;
import util = Doppio.VM.Util;
import ConstantPool = Doppio.VM.ClassFil... | the_stack |
/* tslint:disable */
/* eslint-disable */
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v12.1.0.0 (NJsonSchema v9.13.28.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------
// ReSharper disable InconsistentNaming
import 'rxjs/add/ope... | the_stack |
import { normalize, schema } from 'normalizr';
import type { Socket } from 'socket.io-client';
import { updateDataDocPolling } from 'redux/dataDoc/action';
import SocketIOManager from 'lib/socketio-manager';
import { queryEngineSelector } from 'redux/queryEngine/selector';
import {
QueryExecutionStatus,
IQuery... | the_stack |
import {
AscReqFlag,
IscReqFlag,
AscRetFlag,
ExtendedNameFormatFlag,
AccessTokenFlag,
TargetDataRepMapFlag,
CredentialUseFlag,
} from './flags';
import { AccessToken, TokenPrivileges } from './user';
export interface Props {
[key: string]: unknown;
}
export type SecuritySupportProvider = 'NTLM' | 'Ker... | the_stack |
import { config } from "config";
import request from "helpers/request";
import { Publisher } from "helpers/record";
import { RawDataset } from "helpers/record";
import ServerError from "./ServerError";
import flatMap from "lodash/flatMap";
import partialRight from "lodash/partialRight";
import dcatDatasetStringsAspect... | the_stack |
import { shell } from "electron";
import { join, extname } from "path";
import { readdir, writeFile } from "fs-extra";
import { Undefinable } from "../../../shared/types";
import * as React from "react";
import { ButtonGroup, Button, Popover, Position, Menu, MenuItem, MenuDivider, ContextMenu, Classes, Intent,... | the_stack |
(function beautify_markup_init():void {
"use strict";
const markup = function beautify_markup(options:any):string {
const data:data = options.parsed,
lexer:string = "markup",
c:number = (prettydiff.end < 1 || prettydiff.end > data.token.length)
? data.t... | the_stack |
import React, { useState, useEffect, useRef, useMemo, ChangeEvent } from 'react';
import FileSelector from './FileSelector';
import MessagePreview from './MessagePreview';
import Settings, { SettingsValues, defaultSettings, NONE_COLOUR_NAME } from './Settings';
import { frameCount, getTransformationMatrices, colours } ... | the_stack |
import { Collection } from '@stdlib/types/object';
import dispatch = require( './index' );
// FUNCTIONS //
/**
* Add-on function.
*
* @param N - number of indexed elements
* @param dtypeX - `x` data type (enumeration constant)
* @param x - input array
* @param strideX - `x` stride length
* @param dtypeY - `y` data t... | the_stack |
import { AccessLevelList } from "../shared/access-level";
import { PolicyStatement } from "../shared";
/**
* Statement provider for service [worklink](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonworklink.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/r... | the_stack |
import BigNumber from 'bignumber.js';
import _ from 'lodash';
import { address } from '../src';
import { INTEGERS } from '../src/lib/Constants';
import {
Price,
TxResult,
BigNumberable,
} from '../src/lib/types';
import { expectThrow, expect, expectAddressesEqual, expectBN } from './helpers/Expect';
import { exp... | the_stack |
import _ from 'lodash'
import $ from 'jquery'
import chai from 'chai'
import sinonChai from '@cypress/sinon-chai'
import $dom from '../dom'
import $utils from '../cypress/utils'
import $errUtils from '../cypress/error_utils'
import $stackUtils from '../cypress/stack_utils'
import $chaiJquery from '../cypress/chai_jque... | the_stack |
/// <reference path="../mongoose/mongoose-model.ts" />
import * as MongooseModel from '../mongoose/mongoose-model';
import * as Utils from "../mongoose/utils";
import * as modeEntity from '../core/dynamic/model-entity';
import * as mockData from '../unit-test/MockDataForRelation';
import * as db from './db';
import {c... | the_stack |
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
import { SuperTabChangeEventDetail, SuperTabsConfig } from "./interface";
export namespace Component... | the_stack |
export const statusList = {
// 所有内容的审核状态
pendingReview: 1, // 待审核
reviewSuccess: 2, // 审核成功
reviewFail: 3, // 审核失败
freeReview: 4, // 免审核
deleted: 5, // 已删除
draft: 6 // 草稿
}
export const statusListText = {
// 所有内容的审核状态文字
[statusList.pendingReview]: '待审核', // 待审核
[statusList.reviewSuccess]: '审核成功', //... | the_stack |
/// <reference path="API.ts" />
namespace bws.packer
{
/**
* @brief Packer, a solver of 3d bin packing with multiple wrappers.
*
* @details
* <p> Packer is a facade class supporting packing operations in user side. You can solve a packing problem
* by constructing Packer class with {@link WrapperArray wra... | the_stack |
import React, { PureComponent } from "react";
import { compose, withHandlers } from "recompose";
import { connect } from "react-redux";
import { fromJS, Map, List } from "immutable";
import { schemaKeysFactory, schemaFieldFactory } from "fx-schema-form-core";
import { ErrorObject, ValidationError } from "ajv";
import ... | the_stack |
import {
INodeProperties,
} from 'n8n-workflow';
export const userStoryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
'userStory',
],
},
},
options: [
{
name: 'Create',
value: 'create',
... | the_stack |
import {Mutable, Class, AnyTiming, Timing} from "@swim/util";
import {Affinity, FastenerOwner, Property} from "@swim/component";
import {Length} from "@swim/math";
import {Look, Mood, ThemeAnimator} from "@swim/theme";
import {ViewportInsets, ViewContextType, ViewContext, View, ViewRefFactory, ViewRef} from "@swim/view... | the_stack |
export { AccordionModule } from './components/accordion/index';
export { TlAccordion } from './components/accordion/accordion';
export { TlAccordionItem } from './components/accordion/parts/accordion-item/accordion-item';
// Autocomplete
export { AutoCompleteModule } from './components/autocomplete/index';
export { Tl... | the_stack |
declare type PluralForm = (n: number) => number;
/**
* Metadata for a language pack.
*/
interface IJsonDataHeader {
/**
* Language locale. Example: es_CO, es-CO.
*/
language: string;
/**
* The domain of the translation, usually the normalized package name.
* Example: "jupyterlab", "jup... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Cache } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { ApiManagementClient } from "../apiManagementClien... | the_stack |
import Box from "../Box";
import Flex from "../Flex";
import { useMemo } from "react";
import { useTable, useFilters, useSortBy, usePagination } from "react-table";
import matchSorter from "match-sorter";
import AccountCell from "../AccountCell";
import moment from "moment";
import Link from "next/link";
import { forwa... | the_stack |
import { withBrowser } from 'pleasantest';
import type { PleasantestContext, PleasantestUtils } from 'pleasantest';
import { formatErrorWithCodeFrame, printErrorFrames } from '../test-utils';
import vuePlugin from 'rollup-plugin-vue';
import sveltePlugin from 'rollup-plugin-svelte';
import sveltePreprocess from 'svelte... | the_stack |
import * as d3 from 'd3';
import moment from 'moment-timezone';
import Grid from "../Components/Grid/Grid";
import { ChartOptions } from '../Models/ChartOptions';
import { ChartComponentData } from '../Models/ChartComponentData';
import { CharactersToEscapeForExactSearchInstance, nullTsidDisplayString, GRIDCONTAINERCLA... | the_stack |
import { CustomElement } from 'extraterm-web-component-decorators';
import { ResizeNotifier } from 'extraterm-resize-notifier';
import {Logger, getLogger} from "extraterm-logging";
import { log } from "extraterm-logging";
import { trimBetweenTags } from 'extraterm-trim-between-tags';
import * as ThemeTypes from '../..... | 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 { ConcreteRequest } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type ItemInfo_Test_QueryVariables = {};
export type ItemInfo_Test_QueryResponse = {
readonly me: {
readonly conversation: {
readonly items: ReadonlyArray<{
readonly item: {
... | the_stack |
import { Component, OnInit } from '@angular/core';
import { FormArray, Validators } from '@angular/forms';
import { ClrLoadingState } from "@clr/angular";
// Third party imports
import { debounceTime, distinctUntilChanged, finalize, takeUntil } from 'rxjs/operators';
import { IpFamilyEnum } from 'src/app/shared/constan... | the_stack |
import * as errors from "./errors";
import {ConnectConfig} from "./con_utils";
import {parseConnectArguments, NormalizedConnectConfig} from "./con_utils";
import {LifoQueue} from "./queues";
import {ConnectionImpl, InnerConnection} from "./client";
import {StandaloneConnection} from "./client";
import {Options, RetryO... | the_stack |
import { ILayoutDefinition, ILayout, BaseLayout } from '@pnp/modern-search-extensibility';
import { BuiltinLayoutsKeys } from '../layouts/AvailableLayouts';
import { ServiceKey, ServiceScope, Text } from '@microsoft/sp-core-library';
import { ServiceScopeHelper } from './ServiceScopeHelper';
import { IPropertyPaneChoic... | the_stack |
import { ScoredItem, Tweet } from 'src/common-types';
// Mix of real and fake data for testing purposes.
export const TWITTER_ENTRIES: Array<ScoredItem<Tweet>> = [
{
item: {
created_at: 'Mon Jan 24 20:43:25 +0000 2022',
date: new Date(new Date('2022-01-24T20:43:25.000Z')),
entities: {
h... | the_stack |
import {AttributeWithCacheKey, createAttributeWithCacheKey} from '../../../attribute-with-cache-key';
import {Graph} from '../../../graph';
import {OperatorImplementation, OperatorInitialization} from '../../../operators';
import {Tensor} from '../../../tensor';
import {getGlsl} from '../glsl-source';
import {WebGLInfe... | the_stack |
import fetch from 'node-fetch';
import * as dotenv from 'dotenv';
import glob from 'glob';
import {
buildSite,
cleanupExistingBuckets,
deploySite,
EnvironmentBoolean,
forceDeleteBucket,
generateBucketName,
Permission,
resolveSiteDirectory,
s3,
} from './helpers';
import 'jest-expect-... | the_stack |
import React from 'react';
import ReactDOM from 'react-dom';
import { connect, history } from 'umi';
import { Avatar, Button, Mentions, message, Upload } from 'antd';
import { UserOutlined, PictureOutlined, SmileOutlined, MessageOutlined } from '@ant-design/icons';
import { UploadChangeParam } from 'antd/es/upload/inte... | the_stack |
module android.view {
import CopyOnWriteArrayList = java.lang.util.concurrent.CopyOnWriteArrayList;
import CopyOnWriteArray = android.util.CopyOnWriteArray;
/**
* A view tree observer is used to register listeners that can be notified of global
* changes in the view tree. Such global events inclu... | the_stack |
import ts from 'typescript';
import {LitClassContext} from './lit-class-context.js';
import {LitFileContext} from './lit-file-context.js';
import {isStatic} from './util.js';
import type {
Visitor,
ClassDecoratorVisitor,
MemberDecoratorVisitor,
GenericVisitor,
} from './visitor.js';
/**
* A transformer for L... | the_stack |
import * as msRest from "@azure/ms-rest-js";
export const TrainSourceFilter: msRest.CompositeMapper = {
serializedName: "TrainSourceFilter",
type: {
name: "Composite",
className: "TrainSourceFilter",
modelProperties: {
prefix: {
serializedName: "prefix",
constraints: {
... | the_stack |
import { fireEvent, render, RenderResult } from '@testing-library/vue';
import { sleep, triggerDocument } from '@/test/test-utils';
import VueSlider from './VueSlider.vue';
describe('VueSlider.vue', () => {
beforeEach(() => {
(global as any).HTMLElement.prototype.getBoundingClientRect = function () {
retur... | the_stack |
import * as express from 'express';
import { EventEmitter } from 'eventemitter3';
import { json as _json } from 'body-parser';
import { createHmac } from 'crypto';
import * as request from 'request';
import * as neuro from 'neuro.js';
export class MessengerBot extends EventEmitter {
PAGE_ACCESS_TOKEN: any;
VALIDAT... | the_stack |
import * as Clutter from 'clutter';
import * as GObject from 'gobject';
import * as Meta from 'meta';
import * as Shell from 'shell';
import { MsPanel } from 'src/layout/verticalPanel/verticalPanel';
import { Signal } from 'src/manager/msManager';
import {
HorizontalPanelPositionEnum,
VerticalPanelPositionEnum,... | the_stack |
import { Widget } from '@lumino/widgets';
import { Signal, ISignal } from '@lumino/signaling';
import { PromiseDelegate } from '@lumino/coreutils';
/*
This is a typing-only import. If you use it directly, the mxgraph content
will be included in the main JupyterLab js bundle.
*/
// @ts-ignore
import * as MX from '... | the_stack |
import { OutputVertex } from './type';
import { findIndex, find } from '../Utils/utils';
import { BaseVertex, BaseEdge, Vertex, Edge, } from '../type';
const VIRTUAL_ROOT_ID = Symbol('VIRTUAL_ROOT_ID');
// 内部 Tree 节点
class _TreeVertex<V, E> {
/** 索引 id */
id: string;
/** 节点类型 */
type: 'virtualRoot' | 'realNo... | the_stack |
import { Event } from '@linode/api-v4/lib/account';
import { path } from 'ramda';
import { isProductionBuild } from 'src/constants';
import { reportException } from 'src/exceptionReporting';
type EventMessageCreator = (e: Event) => string;
interface CreatorsForStatus {
scheduled?: EventMessageCreator;
started?: E... | the_stack |
import ReactDOM from "react-dom";
import { render } from "./test-utils";
import App from "../components/App";
import { defaultLang, setLanguage } from "../i18n";
import { UI, Pointer } from "./helpers/ui";
import { API } from "./helpers/api";
import { actionFlipHorizontal, actionFlipVertical } from "../actions";
const... | the_stack |
import { useStorybookApi } from '@storybook/api';
import { styled } from '@storybook/theming';
import { Icons } from '@storybook/components';
import Downshift, { DownshiftState, StateChangeOptions } from 'downshift';
import Fuse, { FuseOptions } from 'fuse.js';
import global from 'global';
import { transparentize } fro... | the_stack |
import { v4 as uuid } from 'uuid'
import {
CommandStartEvent,
CommandCompleteEvent,
KResponse,
ScalarResponse,
hideReplayOutput,
isCommentaryResponse,
isCommentarySectionBreak,
isError,
Util
} from '@kui-shell/core'
// this used to be defined here
export { isError }
export const enum BlockState {
... | the_stack |
import 'vs/css!./simpleFindWidget';
import * as nls from 'vs/nls';
import * as dom from 'vs/base/browser/dom';
import { FindInput, IFindInputStyles } from 'vs/base/browser/ui/findinput/findInput';
import { Widget } from 'vs/base/browser/ui/widget';
import { Delayer } from 'vs/base/common/async';
import { KeyCode } from... | the_stack |
import React, { useEffect, useState } from 'react';
import { TextField, List, ListItem, Link } from '@material-ui/core';
import ClusterTemplateCardList from '../ClusterTemplateCardList';
import ProfileCardList from '../ProfileCardList';
import { useLocalStorage } from 'react-use';
import { gitOpsApiRef, Status } from ... | the_stack |
import { assert, expect } from "chai";
import { Arc3d, AuxChannel, AuxChannelData, AuxChannelDataType, LineString3d, Loop, Point3d, PolyfaceAuxData, PolyfaceBuilder, Range3d, Transform } from "@itwin/core-geometry";
import { ColorDef, GraphicParams } from "@itwin/core-common";
import { GraphicType } from "../../../rend... | the_stack |
import {Utils as _} from "../utils";
import {RenderedCell} from "./renderedCell";
import {RowNode} from "../entities/rowNode";
import {GridOptionsWrapper} from "../gridOptionsWrapper";
import {ColumnController} from "../columnController/columnController";
import {RowRenderer} from "./rowRenderer";
import {Column} from ... | the_stack |
import * as webdriver from 'selenium-webdriver';
import * as chrome from 'selenium-webdriver/chrome';
import * as edge from 'selenium-webdriver/edge';
import * as firefox from 'selenium-webdriver/firefox';
import * as http from 'selenium-webdriver/http';
import * as remote from 'selenium-webdriver/remote';
import * as ... | the_stack |
import { module, test } from 'qunit';
import { setupApplicationTest } from 'ember-qunit';
import { MirageTestContext, setupMirage } from 'ember-cli-mirage/test-support';
import { click, visit, currentURL, waitFor } from '@ember/test-helpers';
import WorkflowPersistence from '@cardstack/web-client/services/workflow-pers... | the_stack |
import React, { forwardRef, useEffect, useCallback, useRef, useState } from 'react';
import { ReactCompareSliderHandle } from './ReactCompareSliderHandle';
import { ReactCompareSliderCommonProps, ReactCompareSliderPropPosition } from './types';
import {
useEventListener,
usePrevious,
UseResizeObserverHandlerPar... | the_stack |
import ZeroClipboard = require("zeroclipboard");
// import * as ZeroClipboard from "zeroclipboard";
namespace SimpleExample {
ZeroClipboard.config( { swfPath: "http://YOURSERVER/path/ZeroClipboard.swf" } );
let client = new ZeroClipboard(document.getElementById("copy-button"));
let client2 = new ZeroClipboard(j... | the_stack |
import React from 'react'
import { Row, Col, Input, Checkbox, Select, InputNumber } from 'antd'
const Option = Select.Option
import ColorPicker from 'app/components/ColorPicker'
import {
PIVOT_CHART_FONT_FAMILIES,
PIVOT_CHART_LINE_STYLES,
PIVOT_CHART_FONT_SIZES,
CHART_LABEL_POSITIONS,
CHART_PIE_LABEL_POSITION... | the_stack |
import { Vector3 } from 'three';
import { performance } from 'perf_hooks';
import { TomType, TomTypedArray, TypedArray, Type, GPUBufferDataType } from './types';
import { existsSync, unlinkSync, mkdirSync } from 'fs';
import * as del from 'del';
import { DATA_PATH, FILENAME, OUTPUT_PATH } from './Defaults';
import { ge... | the_stack |
import * as path from 'path';
import { Template } from '@aws-cdk/assertions';
import * as cloudwatch from '@aws-cdk/aws-cloudwatch';
import * as core from '@aws-cdk/core';
import * as constructs from 'constructs';
import * as inc from '../lib';
import * as futils from '../lib/file-utils';
/* eslint-disable quote-props... | the_stack |
import * as React from 'react';
import { StyleSheet, TextStyle, View, ViewStyle } from 'react-native';
import { toArray } from '../../_utils';
import MDPicker from '../picker/index';
export interface IMDDatePickerProps {
style?: ViewStyle;
type?: 'date' | 'time' | 'datetime' | 'custom';
customTypes?: Array<'yyyy... | the_stack |
import { Component, OnInit, OnDestroy } from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router';
import {Subscription} from 'rxjs/Subscription';
import { environment } from './../../../../../environments/environment';
import {WorkflowService} from '../../../../core/services/workflow.service';
impor... | the_stack |
import { Component, OnInit, Input, NgZone, ViewChild, ElementRef, OnChanges, SimpleChanges, OnDestroy, AfterViewInit } from '@angular/core';
import { AutorefreshService } from '../../services/autorefresh.service';
import * as d3 from 'd3-selection';
import * as d3Shape from 'd3-shape';
import * as d3Scale from 'd3-sca... | the_stack |
import {Component, ElementRef, Input, OnInit, ViewChild} from '@angular/core'
import {dayIDNow, dayIDToDate} from '../util/time-util'
import {DataStore, DayData} from '../data/data-store'
import {MatDialog} from '@angular/material/dialog'
import {SessionDetailsComponent} from '../session-details/session-details.compone... | the_stack |
import { gte } from "semver";
import {
AddressType,
ArrayType,
assert,
ASTNodeFactory,
Block,
BoolType,
BytesType,
ContractDefinition,
ElementaryTypeName,
EnumDefinition,
Expression,
FixedBytesType,
ForStatement,
FunctionCallKind,
FunctionDefinition,
Funct... | the_stack |
const chaiColors = require('chai-colors');
const Base64 = require('js-base64').Base64;
chai.use(chaiColors);
// @ts-ignore
Cypress.on('uncaught:exception', (err, runnable) => {
// returning false here prevents Cypress from
// failing the test on exceptions
return !!Cypress.env('TRAVIS_BUILD_ID');
});
const encode... | the_stack |
interface JQuery {
checkbox: SemanticUI.Checkbox;
}
declare namespace SemanticUI {
interface Checkbox {
settings: CheckboxSettings;
/**
* Switches a checkbox from current state
*/
(behavior: 'toggle'): JQuery;
/**
* Set a checkbox state to checked
... | the_stack |
import keycode = require('keycode');
import camelCase = require('lodash.camelcase');
// @ts-ignore: no declaration file
import { shallowEquals } from 'redux-observers';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { logger } from '../../api/logger';
import { Omit } from '../../types';
i... | the_stack |
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
EventEmitter,
forwardRef,
Injector,
Input,
NgModule,
OnDestroy,
OnInit,
Output,
AfterViewInit,
ViewChild
} from '@angular/core';
import {ComboSelectValue, JigsawComboSelectModule, JigsawComboSelect} from ... | the_stack |
import React from 'react'
import { MetadataUtils } from '../../../core/model/element-metadata-utils'
import {
ElementInstanceMetadataMap,
UtopiaJSXComponent,
} from '../../../core/shared/element-template'
import { Imports, ElementPath } from '../../../core/shared/project-file-types'
import Utils from '../../../util... | the_stack |
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use t... | the_stack |
import type { Processor } from '../lib';
import { flatColors } from './tools';
const utilities: { [key:string]: string[]} = {
// Layout
columns: [
'columns-${static}',
'columns-${float}',
'columns-${size}',
'columns-${int}xl',
],
container: [
'container',
],
objectPosition: [
'object... | the_stack |
import Logger from '@joplin/lib/Logger';
import { PluginMessage } from './services/plugins/PluginRunner';
import shim from '@joplin/lib/shim';
import { isCallbackUrl } from '@joplin/lib/callbackUrlUtils';
const { BrowserWindow, Tray, screen } = require('electron');
const url = require('url');
const path = require('pat... | the_stack |
import { createHmac, randomBytes } from "crypto";
import fs from "fs";
import { TextDecoder } from "util";
// This zmq must be used only for types.
// zeromq runtime must be delay loaded in init().
import * as zmq from "zeromq";
import { isCompleteCode } from "./converter";
import { Executor } from "./executor";
impo... | the_stack |
import {ResourceBase, ResourceTag} from '../resource'
import {Value, List} from '../dataTypes'
export class ComputeLimits {
MaximumCapacityUnits!: Value<number>
MaximumCoreCapacityUnits?: Value<number>
MaximumOnDemandCapacityUnits?: Value<number>
MinimumCapacityUnits!: Value<number>
UnitType!: Valu... | the_stack |
import * as AWS from 'aws-sdk';
import { mock, restore, setSDKInstance } from 'aws-sdk-mock';
import { MongoDbConfigure } from '../handler';
jest.mock('../../lib/secrets-manager/read-certificate');
const secretArn: string = 'arn:aws:secretsmanager:us-west-1:1234567890:secret:SecretPath/Cert';
// @ts-ignore
async fu... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.