text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import AWS from 'aws-sdk';
import AWSMock from 'aws-sdk-mock';
import { mockProcessStdout } from 'jest-mock-process';
import { ListrTaskWrapper } from 'listr2';
import nock from 'nock';
import {
RemoveNatGatewaysTrick,
RemoveNatGatewaysState,
} from '../../src/tricks/remove-nat-gateways.trick';
import { TrickConte... | the_stack |
import { cleanup, jetstreamServerConf, setup } from "./jstest_util.ts";
import {
deferred,
delay,
Empty,
nanos,
NatsConnectionImpl,
nuid,
StringCodec,
} from "../nats-base-client/internal_mod.ts";
import {
assert,
assertArrayIncludes,
assertEquals,
assertThrows,
assertThrowsAsync,
} from "https:... | the_stack |
import { cloneDeep, isObject, set, get } from 'lodash';
import { format as formatFn } from 'date-fns';
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
import { BaseValueType, ValidateStatus, ValueType } from './foundation';
import { formatDateValues } from './_utils/formatter';
import { getDefault... | the_stack |
import {
Column,
CompositeColumn,
EAdvancedSortMethod,
EDateSort,
ESortMethod,
IMultiLevelColumn,
isSortingAscByDefault,
isSupportType,
} from '../model';
import { cssClass } from '../styles';
import ADialog, { dialogContext, IDialogContext } from './dialogs/ADialog';
import CategoricalColorMappingDialo... | the_stack |
/// <reference types="jquery" />
declare namespace MCustomScrollbar {
type Factory = (jQuery: JQueryStatic) => void;
interface CustomScrollbarOptions {
/**
* Set the width of your content (overwrites CSS width), value in pixels (integer) or percentage (string)
*/
setWidth?: bo... | the_stack |
// Import logging for electron and override default console logging
import log from 'electron-log';
console.log = log.log;
Object.assign(console, log.functions);
import * as path from 'path';
import { app, dialog, BrowserWindow, ipcMain, shell, Menu } from 'electron';
import { environment } from './environments/enviro... | the_stack |
import { DecimalPipe } from '@angular/common';
import { Host, Injectable } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { of, Observable } from 'rxjs';
import { catchError, map } from 'rxjs/operators';
import { _HttpClient, CNCurrencyPipe, DatePipe, YNPipe } from '@delon/theme... | the_stack |
import assert = require("assert");
import https = require("https");
import sinon = require("sinon");
import nock = require("nock");
import Sender = require("../../Library/Sender");
import Config = require("../../Library/Config");
import Constants = require("../../Declarations/Constants");
import Contracts = require(".... | the_stack |
let hash = require('hash.js')
let cryptojs = require('crypto-js')
import * as forge from 'node-forge'
import * as OrderedJson from './ordered-json'
export function sameObjects(a, b) {
return OrderedJson.stringify(a) == OrderedJson.stringify(b)
}
export const EMPTY_PAYLOAD_SHA = 'e3b0c44298fc1c149afbf4c8996fb92427... | the_stack |
import { ItemEventData } from '.';
import { ListViewBase, separatorColorProperty, itemTemplatesProperty, iosEstimatedRowHeightProperty } from './list-view-common';
import { CoreTypes } from '../../core-types';
import { View, KeyedTemplate } from '../core/view';
import { Length } from '../styling/style-properties';
impo... | the_stack |
import React from 'react'
import normalizeWheel from 'normalize-wheel'
import { Area, MediaSize, Point, Size, VideoSrc } from './types'
import {
getCropSize,
restrictPosition,
getDistanceBetweenPoints,
getRotationBetweenPoints,
computeCroppedArea,
getCenter,
getInitialCropFromCroppedAreaPixels,
classNam... | the_stack |
import React = require("react");
import { TeamMember } from "azure-devops-extension-api/WebApi/WebApi";
import { TeamSettingsIteration } from "azure-devops-extension-api/work";
import { getUser } from "azure-devops-extension-sdk";
import { Button } from "azure-devops-ui/Button";
import { ButtonGroup } from "... | the_stack |
import Page = require('../../../../../base/Page');
import Response = require('../../../../../http/response');
import V1 = require('../../../V1');
import { SerializableClass } from '../../../../../interfaces';
type ReservationCallStatus = 'initiated'|'ringing'|'answered'|'completed';
type ReservationConferenceEvent = ... | the_stack |
import * as _ from 'lodash';
import * as request from 'xhr-request';
import { DataSourcePlugin, IOptions } from '../DataSourcePlugin';
import { appInsightsUri } from './common';
import ApplicationInsightsConnection from '../../connections/application-insights';
import { DataSourceConnector, IDataSource } from '../../Da... | the_stack |
import { Book, translations, mechanicsEngine, Language, Section, state } from "..";
/**
* Item effect / usage description
*/
export interface ItemEffect {
/** Combat.COMBATSKILL for combat skill increment. Item.ENDURANCE for endurance points increment. */
cls: string;
/** Attribute increment */
inc... | the_stack |
import { Component } from 'react';
import { NativeEventSubscription } from 'react-native';
import {
HmsPushEvent,
RNRemoteMessage,
HmsPushMessaging,
HmsPushInstanceId,
HmsLocalNotification,
HmsPushOpenDevice,
RemoteMessageBuilder,
HmsPushProfile,
HmsPushResultCode,
} from '@hmscore/... | the_stack |
import { FormBuilder, Validators, FormGroup, FormArray } from '@angular/forms';
import { Injectable } from '@angular/core';
import {
AlgorithmsEnum,
EarlyStoppingAlgorithmsEnum,
} from '../enumerations/algorithms.enum';
import { createParameterGroup, createNasOperationGroup } from '../shared/utils';
import { SnackB... | the_stack |
import * as Atk from '@gi-types/atk';
import * as cairo from '@gi-types/cairo';
import * as Cogl from '@gi-types/cogl';
import * as Gio from '@gi-types/gio';
import * as GLib from '@gi-types/glib';
import * as GObject from '@gi-types/gobject';
import * as Graphene from '@gi-types/graphene';
import * as Json from '@gi-t... | the_stack |
import * as React from 'react';
import { useState, useEffect, useRef, useCallback, useMemo } from 'react';
import flatten from 'lodash/flatten';
let Schema = require('async-validator');
Schema = Schema.default ? Schema.default : Schema;
function validate<F>(
{
...fieldsOptions
}: {
[N in keyof F]: GetFiel... | the_stack |
import { ValueCell } from '../../../mol-util';
import { Mat4, Vec3, Vec4 } from '../../../mol-math/linear-algebra';
import { transformPositionArray, GroupMapping, createGroupMapping } from '../../util';
import { GeometryUtils } from '../geometry';
import { createColors } from '../color-data';
import { createMarkers } f... | the_stack |
import { AttributeContextExpectedValue, AttributeExpectedValue } from '../../Utilities/ObjectValidator';
import { CommonTest } from './CommonTest';
// tslint:disable:max-func-body-length
// tslint:disable:variable-name
describe('Cdm.ResolutionGuidanceFilterOut', () => {
/**
* Resolution Guidance Test - Filter... | the_stack |
import {
DIRECTION,
DIRECTION_MASK,
} from './Constants';
import Point from '../view/geometry/Point';
import Rectangle from '../view/geometry/Rectangle';
import CellState from '../view/cell/CellState';
import type { CellStateStyles } from '../types';
import { getValue, isNullish } from './Utils';
/**
* Converts t... | the_stack |
import * as Doppio from '../doppiojvm';
import JVMThread = Doppio.VM.Threading.JVMThread;
import ReferenceClassData = Doppio.VM.ClassFile.ReferenceClassData;
import IJVMConstructor = Doppio.VM.ClassFile.IJVMConstructor;
import logging = Doppio.Debug.Logging;
import util = Doppio.VM.Util;
import ThreadStatus = Doppio.VM... | the_stack |
import { Injectable } from "@angular/core";
import { Router } from "@angular/router";
import { ConfigService } from "./config.service";
import { Observable } from "rxjs";
import { ClientService, LoginResponse } from "./client.service";
import { catchError, finalize, map } from "rxjs/operators";
import { HttpClient, Htt... | the_stack |
export default class UIEventsCode {
// 3.1.1.1. Writing System Keys
public static readonly Backquote: string = 'Backquote';
public static readonly Backslash: string = 'Backslash';
public static readonly BracketLeft: string = 'BracketLeft';
public static readonly BracketRight: string = 'BracketRight'... | the_stack |
import * as choki from "chokidar";
import { hook } from "../common/helpers";
import { cache, performanceLog } from "../common/decorators";
import { EventEmitter } from "events";
import * as path from "path";
import {
AnalyticsEventLabelDelimiter,
CONFIG_FILE_NAME_JS,
CONFIG_FILE_NAME_TS,
PACKAGE_JSON_FILE_NAME,
PL... | the_stack |
import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, describe, it} from 'mocha';
import * as proxyquire from 'proxyquire';
import {PassThrough, Readable} from 'stream';
import {CallOptions} from 'google-gax';
import {PreciseDate} from '@google-cloud/precise... | the_stack |
import * as cdk from '@aws-cdk/core';
import * as cfn_parse from '@aws-cdk/core/lib/cfn-parse';
/**
* Properties for defining a `AWS::EC2::CapacityReservation`.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-capacityreservation.html
* @external
*/
export interface CfnCapaci... | the_stack |
export const description = `
TODO:
- test compatibility between bind groups and pipelines
- the binding resource in bindGroups[i].layout is "group-equivalent" (value-equal) to pipelineLayout.bgls[i].
- in the test fn, test once without the dispatch/draw (should always be valid) and once with
the dispatch/... | 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 |
"use strict";
import * as net from "net";
import * as path from "path";
import * as fs from "fs";
import * as vscode from "vscode";
import {
workspace,
Disposable,
ExtensionContext,
window,
commands,
ConfigurationTarget,
debug,
DebugAdapterExecutable,
ProviderResult,
DebugConfi... | the_stack |
import 'fake-indexeddb/auto';
import {
initSchema as initSchemaType,
syncClasses,
ModelInstanceCreator,
} from '../src/datastore/datastore';
import { ExclusiveStorage as StorageType } from '../src/storage/storage';
import { MutationEventOutbox } from '../src/sync/outbox';
import { ModelMerger } from '../src/sync/mer... | the_stack |
import * as React from "react"
import { motion } from "../.."
import { fireEvent } from "@testing-library/dom"
import { motionValue } from "../../value"
import {
mouseDown,
mouseEnter,
mouseLeave,
mouseUp,
render,
} from "../../../jest.setup"
import { drag, MockDrag } from "../drag/__tests__/utils"
... | the_stack |
import {
Configuration,
configurationValue,
} from "@atomist/automation-client/lib/configuration";
import {
ConfigurationAware,
HandlerContext,
} from "@atomist/automation-client/lib/HandlerContext";
import { guid } from "@atomist/automation-client/lib/internal/util/string";
import { ProjectOperationCre... | the_stack |
import fs from "fs";
import { assert } from "@fluidframework/common-utils";
import {
IDocumentService,
} from "@fluidframework/driver-definitions";
import {
IClient,
ISequencedDocumentMessage,
MessageType,
ScopeType,
} from "@fluidframework/protocol-definitions";
import { printMessageStats } from ".... | the_stack |
import {
Component,
Input,
OnInit,
OnChanges,
OnDestroy,
SimpleChange,
Output,
EventEmitter,
ViewChildren,
QueryList,
Type,
ViewChild,
ElementRef,
} from '@angular/core';
import { ModalOptions } from '@ionic/core';
import { CoreSites } from '@services/sites';
import {... | the_stack |
module TDev.AST.Apps {
export interface CordovaPlatformOptions {
build: boolean;
runs: string[];
}
export interface CordovaOptions {
email: string;
website: string;
domain: string;
platforms: TDev.StringMap<CordovaPlatformOptions>;
}
export function ... | the_stack |
import React from "react";
import { withTranslation, WithTranslation } from "react-i18next";
import classNames from "classnames";
import styled from "styled-components";
// @ts-ignore
import { Decoration, getChangeKey, Hunk } from "react-diff-view";
import { ButtonGroup } from "../buttons";
import Tag from "../Tag";
im... | the_stack |
Cluster tests are run if there is a pre-existing minikube cluster. Before running cluster tests the TEST_NAMESPACE
namespace is removed, if it exists, from the minikube cluster. Resources are created as part of the cluster tests in the
TEST_NAMESPACE namespace. This is done to minimize destructive impact of the clu... | the_stack |
import * as vscode from "vscode";
import * as utils from "./utils";
import { Constants } from "./constants";
import { ReqRefresh } from "./types";
import { LeoIntegration } from "./leoIntegration";
import { LeoNode } from "./leoNode";
import { LeoSettingsProvider } from "./webviews/leoSettingsWebview";
import { LeoButt... | the_stack |
import { equal as constantTimeEqual } from "@stablelib/constant-time";
import { wipe } from "@stablelib/wipe";
export const DIGEST_LENGTH = 16;
// Port of Andrew Moon's Poly1305-donna-16. Public domain.
// https://github.com/floodyberry/poly1305-donna
/**
* Poly1305 computes 16-byte authenticator of message using
... | the_stack |
declare namespace ua {
type Callback = (error: Error | null, count: number) => void;
interface VisitorOptions {
hostname?: string | undefined;
path?: string | undefined;
https?: boolean | undefined;
enableBatching?: boolean | undefined;
batchSize?: number | undefined;
... | the_stack |
import * as cdk from '@aws-cdk/core';
import * as iam from '@aws-cdk/aws-iam';
import * as lambda from '@aws-cdk/aws-lambda';
import { CfnUserPoolGroup } from '@aws-cdk/aws-cognito';
import { AmplifyUserPoolGroupStackTemplate } from '@aws-amplify/cli-extensibility-helper';
import { AmplifyUserPoolGroupStackOptions } fr... | the_stack |
export class ToDoItemClient {
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
private baseUrl: string;
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
constructor(baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestI... | the_stack |
import { GatewayVpcEndpoint, InterfaceVpcEndpoint, SubnetSelection, ISecurityGroup } from '@aws-cdk/aws-ec2';
import { ContainerDefinition, FargatePlatformVersion, FargateTaskDefinition, ICluster, LogDrivers } from '@aws-cdk/aws-ecs';
import { Effect, PolicyStatement } from '@aws-cdk/aws-iam';
import { ILogGroup, LogGr... | the_stack |
import { select } from 'd3-selection';
import { getTextWidth } from './textHelpers';
import { prepareBitmap, addToBitmap } from './vega-label/BitMap'; // printBitMap
import LabelPlacer from './vega-label/LabelPlacers/LabelPlacer';
import { getBrowser } from './browser-util';
import { polyfillGetAttributeNames } from '.... | the_stack |
import { Match, Template } from '@aws-cdk/assertions';
import { Stack } from '@aws-cdk/core';
import { behavior, LegacyTestGitHubNpmPipeline, OneStackApp, PIPELINE_ENV, TestApp, ModernTestGitHubNpmPipeline, stringLike } from '../testhelpers';
let app: TestApp;
let pipelineStack: Stack;
beforeEach(() => {
app = new ... | the_stack |
import { EventEmitter } from 'events';
import { ChildProcess, spawn, SpawnOptions, exec, execSync } from 'child_process';
import { EOL as newline, tmpdir } from 'os';
import { join, sep } from 'path'
import { Readable, Transform, TransformCallback, Writable } from 'stream'
import { writeFile, writeFileSync } from 'fs';... | the_stack |
import * as jv from "jsverify"
import * as inst from "./instances"
import * as assert from "./asserts"
import {
is,
Try,
Success,
Failure,
Left,
Right,
DummyError,
Some, None, Option
} from "funfix-core"
import { HK } from "funland"
import { Equiv } from "funland-laws"
import { monadCheck } from "../.... | the_stack |
import { IDataSet } from '../../src/base/engine';
import { pivot_dataset } from '../base/datasource.spec';
import { PivotView } from '../../src/pivotview/base/pivotview';
import { createElement, remove, EmitType } from '@syncfusion/ej2-base';
import { GroupingBar } from '../../src/common/grouping-bar/grouping-bar';
imp... | the_stack |
import Axios from 'axios';
import { readFileSync } from 'fs';
import { Base64 } from 'js-base64';
import { parse, resolve } from 'path';
import { workspace, commands } from 'vscode';
import { output } from '../helper/common';
// async fs does not have import module available
const fs = require('fs');
const util = requ... | the_stack |
import {
ClauseParameter,
ContractParameterHash,
createSignature,
crypto,
isHash
} from "ivy-bitcoin"
import {
ContractParameterType,
GenerateBytesInput,
GenerateHashInput,
getChild,
getInputNameContext,
getInputType,
HashInput,
Input,
InputContext,
InputMap,
InputTyp... | the_stack |
import { gql } from '@apollo/client'
import * as Apollo from '@apollo/client'
export type Maybe<T> = T | null
export type InputMaybe<T> = Maybe<T>
export type Exact<T extends { [key: string]: unknown }> = {
[K in keyof T]: T[K]
}
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
[SubKey in K]?: Maybe<... | the_stack |
import * as Bluebird from 'bluebird';
import { groupBy, maxBy } from 'lodash';
import * as moment from 'moment';
import { fn, Op } from 'sequelize';
import {
Article,
Comment,
CommentScore,
CommentScoreRequest,
CommentSummaryScore,
Decision,
ENDPOINT_TYPE_API,
findOrCreateTagByKey,
IResolution,
ISc... | the_stack |
import { $Values } from 'utility-types';
import { Channel } from 'redux-saga';
import { all, call, fork, put } from 'redux-saga/effects';
import {
getExtensionHash,
Extension,
ClientType,
ROOT_DOMAIN_ID,
} from '@colony/colony-js';
import { poll } from 'ethers/utils';
import { ContextModule, TEMP_getContext } ... | the_stack |
import { Param, Widget } from '../models/flutter-model';
import { applyOnDescendants, Border, findAndRemoveParam, parseBorderStyle, parseBoxShadow, parseStyleBackgroundSize, parseStyleColor, parseStyleDoubleValue, parseStyleRepeat, parseStyleUrl, parseTRBLStyle, unquote, toBorderRadiusCode, parsePropertyStyle } from '.... | the_stack |
/**
* @license Copyright © 2013 onwards, Andrew Whewell
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyri... | the_stack |
import { addListeners } from '../../../../../client/addListener'
import classnames from '../../../../../client/classnames'
import mergePropStyle from '../../../../../client/component/mergeStyle'
import { Element } from '../../../../../client/element'
import { makeCustomListener } from '../../../../../client/event/custo... | the_stack |
import * as FluentUIBaseComponent from './baseComponent.js'
type DotNetReferenceType = FluentUIBaseComponent.DotNetReferenceType;
type IRectangle = FluentUIBaseComponent.IRectangle;
type EventGroup = FluentUIBaseComponent.EventGroup;
type EventParams = FluentUIBaseComponent.EventParams;
const SELECTION_DISABLED_ATTR... | the_stack |
import _ from 'lodash';
import { TileMatrix } from '../matrix/tileMatrix';
import { TileMatrixSet } from '../matrixset/tileMatrixSet';
export class TileDaoUtils {
/**
* Adjust the tile matrix lengths if needed. Check if the tile matrix width
* and height need to expand to account for pixel * number of pixels f... | the_stack |
import * as vscode from "vscode";
import { WebviewWizard, WizardDefinition, SEVERITY, UPDATE_TITLE, WizardPageFieldDefinition, WizardPageSectionDefinition, BUTTONS, PerformFinishResponse, IWizardPage, ValidatorResponseItem, FieldDefinitionState } from "@redhat-developer/vscode-wizard";
import { ClientAccessor, Cluste... | the_stack |
import * as _ from 'lodash';
import * as React from 'react';
import { connect } from 'react-redux';
import { toastr } from 'react-redux-toastr';
import { ActionCreators as UndoActionCreators } from 'redux-undo';
import { Accordion, Divider, Grid, Header, Icon, SemanticICONS, Tab } from 'semantic-ui-react';
import { set... | the_stack |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms';
import { Store, select } from '@ngrx/store';
import { identity, isNil } from 'lodash/fp';
import { combineLatest, Subject } from 'rxjs';
import { filter, pluck, takeUntil } fro... | the_stack |
import 'es6-promise/auto'; // polyfill Promise on IE
import {
CommandRegistry
} from '@phosphor/commands';
import {
Message
} from '@phosphor/messaging';
import {
BoxPanel, CommandPalette, ContextMenu, DockPanel, Menu, MenuBar, Widget
} from '@phosphor/widgets';
import '../style/index.css';
const commands ... | the_stack |
import {
Asset,
CanonicalRequest,
ContentType,
EditorInterface,
ScheduledAction,
Tag,
Team,
User,
TagVisibility,
KeyValueMap,
Entry,
QueryOptions,
Upload,
} from './entities'
import { CollectionResponse, ContentEntityType, Link, WithOptionalId, SearchQuery } from './utils'
type Snapshot<T> = ... | the_stack |
import {
ConnectionProvider,
useConnection,
useWallet,
WalletProvider,
} from "@solana/wallet-adapter-react";
import * as web3 from "@solana/web3.js";
import {
getLedgerWallet,
getPhantomWallet,
getSlopeWallet,
getSolflareWallet,
} from "@solana/wallet-adapter-wallets";
import {
useCallback,
useEff... | the_stack |
// tslint:disable: max-func-body-length object-literal-key-quotes
import * as assert from "assert";
import { getResourceInfo, getResourcesInfo, ResourceInfo } from "../../extension.bundle";
import { IPartialDeploymentTemplate } from "../support/diagnostics";
import { parseTemplate } from "../support/parseTemplate";
s... | the_stack |
export function create(args?: string[], config?: {
phantomPath?: string,
shimPath?: string,
logger?: {
info?: winstonLeveledLogMethod,
debug?: winstonLeveledLogMethod,
error?: winstonLeveledLogMethod,
warn?: winstonLeveledLogMethod,
},
logLevel?: 'debug' | 'info' | 'w... | the_stack |
import { fromBase64, fromHex } from "@cosmjs/encoding";
import { Coin, IndexedTx, Msg, PubKey, StdSignature } from "@cosmjs/sdk38";
import { Address, Algorithm, SendTransaction, TokenTicker } from "@iov/bcp";
import {
decodeAmount,
decodeFullSignature,
decodePubkey,
decodeSignature,
parseFee,
parseMsg,
p... | the_stack |
import {NodePath} from '@babel/traverse';
import * as babel from '@babel/types';
import {VisitorOption} from './estraverse-shim';
export type VisitResult = VisitorOption|null|undefined|void;
export type VisitorCallback<N extends babel.Node> =
(node: N, parent: babel.Node|undefined|null, path: NodePath<N>) =>
... | the_stack |
import { addHook } from 'pirates';
import type {
ArrayExpression,
ArrayPattern,
AssignmentPattern,
BinaryExpression,
CallExpression,
Expression,
Identifier,
Literal,
MemberExpression,
Node,
ObjectExpression,
ObjectPattern,
Property,
RestElement,
SpreadElement,... | the_stack |
/// <reference types="node"/>
import * as fxn from 'fxn';
export class APIConstructor {
format(obj: any, arrInterface?: string[]): {
meta: {
total: number;
count: number;
offset: number;
error: any;
summary: string | null | undefined;
resource: any;
};
data: any;
};... | the_stack |
import {jsx, Global} from '@emotion/core'
import '@reach/tabs/styles.css'
import '@reach/tooltip/styles.css'
import * as React from 'react'
import ReactDOM from 'react-dom'
import {FaTools} from 'react-icons/fa'
import {Tooltip} from '@reach/tooltip'
import {Tabs, TabList, TabPanels, TabPanel, Tab} from '@reach/tabs'... | the_stack |
* Separate legend and scrollable legend to reduce package size.
*/
import * as zrUtil from 'zrender/src/core/util';
import * as graphic from '../../util/graphic';
import * as layoutUtil from '../../util/layout';
import LegendView from './LegendView';
import { LegendSelectorButtonOption } from './LegendModel';
import ... | the_stack |
import {Node, Statement} from 'shift-ast';
import {Declaration, Reference, Variable} from 'shift-scope';
import {GlobalState} from './global-state';
import {matches} from './misc/query';
import {
AsyncReplacer,
Constructor,
NodesWithStatements,
Replacer,
SelectorOrNode,
SimpleIdentifier,
SimpleIdentifierO... | the_stack |
import * as chai from 'chai';
import BigNumber from 'bignumber.js';
import * as Web3 from 'web3';
import ethUtil = require('ethereumjs-util');
import { chaiSetup } from './utils/chai_setup';
import { Artifacts } from '../../util/artifacts';
import assertRevert from '../helpers/assertRevert';
import expectThrow from '..... | the_stack |
import * as React from "react";
import styles from "./TranslationBar.module.scss";
import { ITranslationBarProps } from "./ITranslationBarProps";
import { ITranslationBarState } from "./ITranslationBarState";
import { ActionButton } from "office-ui-fabric-react/lib/Button";
import { ILanguage } from "../../models/ILa... | the_stack |
export enum ClassState {
// The class has yet to be loaded.
NOT_LOADED,
// The class's definition has been downloaded and parsed.
LOADED,
// This class and its super classes' definitions have been downloaded and
// parsed.
RESOLVED,
// This class, its super classes', and its interfaces have been downloa... | the_stack |
module android.graphics.drawable {
import Canvas = android.graphics.Canvas;
import Rect = android.graphics.Rect;
import TypedValue = android.util.TypedValue;
import Log = android.util.Log;
import Resources = android.content.res.Resources;
import Gravity = android.view.Gravity;
import Runnabl... | the_stack |
import { transduce } from "./core";
import { lazyTransduce } from "./iterables";
import {
count,
every,
find,
first,
forEach,
isEmpty,
joinToString,
max,
min,
some,
sum,
toArray,
toAverage,
toMap,
toMapGroupBy,
toObject,
toObjectGroupBy,
toSet,
} f... | the_stack |
import React, { useState, useMemo, useCallback } from 'react';
import { UUIFunctionComponent, UUIFunctionComponentProps } from '../../core';
import { Popover, PopoverPlacement } from '../Popover';
import { ListBox as UUIListBox, ListBoxItem } from '../ListBox';
import { TextField as UUITextField } from '../Input';
impo... | the_stack |
import {EventAggregator, Subscription} from 'aurelia-event-aggregator';
import {bindable, bindingMode, computedFrom, inject, observable} from 'aurelia-framework';
import {Router} from 'aurelia-router';
import {ValidateEvent, ValidationController} from 'aurelia-validation';
import {
IConnection,
IExtensionElement,
... | the_stack |
import * as Clutter from 'clutter';
import * as Gio from 'gio';
import * as GLib from 'glib';
import * as GObject from 'gobject';
import * as Shell from 'shell';
import { MsWindow } from 'src/layout/msWorkspace/msWindow';
import { MsManager } from 'src/manager/msManager';
import { assert, assertNotNull } from 'src/util... | the_stack |
import * as child_process from 'child_process';
import * as vscode from 'vscode';
import * as chai from 'chai';
import * as chaiAsPromised from 'chai-as-promised';
import * as sinon from 'sinon';
import { TestUtil } from '../../TestUtil';
import * as path from 'path';
import { YeomanUtil } from '../../../extension/util... | the_stack |
import { LiteGraph } from "litegraph.js";
import { Number, String, Boolean } from "./basic/types";
import { Variable, GetVariable, UpdateVariable } from "./basic/variable";
import { Log } from "./basic/log";
import { Debugger } from "./basic/debugger";
import { Cast } from "./basic/cast";
import { KeyCode } fro... | the_stack |
import * as React from 'react';
import assert from '../common/assert';
import { Types } from '../common/Interfaces';
import Timers from '../common/utils/Timers';
export enum GestureType {
None,
MultiTouch,
Pan,
PanVertical,
PanHorizontal
}
// These threshold values were chosen empirically.
const ... | the_stack |
import { GraphModel } from '@tensorflow/tfjs';
import {
ConfigResult,
DetectResult,
Line,
RecognizeOptions,
RecognizeResult,
Rectangle,
Scheduler,
} from 'tesseract.js';
import {
useCallback,
useEffect,
useRef,
useState,
} from 'react';
import useGraphModel from './useGraphModel';
import useLogge... | the_stack |
import {
addEvent,
bubble,
callWithCurrentCtxWithEvents,
deref,
emitEvent,
EventNames,
IBobrilCacheNode,
IBobrilComponent,
IEventParam,
ieVersion,
now,
preventDefault,
CommonUseIsHook,
buildUseIsHook,
} from "./core";
import { isBoolean } from "./isFunc";
import ... | the_stack |
import { cloneDeep, uniqueId } from 'lodash';
import { getLogger } from 'loglevel';
import * as Monaco from 'monaco-editor/esm/vs/editor/editor.api';
import { PmApiService } from '../../../common/services/pmapi/PmApiService';
import { Dict } from '../../../common/types/utils';
import { MonacoLanguageDefinition } from '... | the_stack |
import { assert } from "chai";
import * as P from "proptest";
import * as fc from "fast-check";
import * as Loriginal from "../src";
import {
List,
adjust,
ap,
concat,
drop,
dropLast,
dropWhile,
empty,
equals,
every,
filter,
find,
findIndex,
first,
foldl,
foldr,
forEach,
from,
incl... | the_stack |
import * as chai from "chai";
import "url-search-params-polyfill";
import { MindSphereSdk } from "../src";
import { EdgeAppInstanceModels } from "../src/api/sdk/open-edge/open-edge-models";
import { decrypt, loadAuth } from "../src/api/utils";
import { setupDeviceTestStructure, tearDownDeviceTestStructure } from "./tes... | the_stack |
* vConsole core class
*/
import pkg from '../../package.json';
import * as tool from '../lib/tool';
import $ from '../lib/query';
import './core.less';
import tpl from './core.html';
import tplTabbar from './tabbar.html';
import tplTabbox from './tabbox.html';
import tplTopBarItem from './topbar_item.html';
import t... | the_stack |
import * as React from "react";
import {
Color,
colorFromHTMLColor,
ColorGradient,
colorToHTMLColorHEX,
deepClone,
interpolateColors,
} from "../../core";
import { ColorPalette, predefinedPalettes } from "../resources";
import { ColorPicker, colorToCSS } from "./fluentui_color_picker";
import { InputField }... | the_stack |
import type { MikroORM } from '@mikro-orm/core';
import type { MySqlDriver } from '@mikro-orm/mysql';
import { Author2, Book2 } from '../entities-sql';
import { initORMMySql, mockLogger } from '../bootstrap';
import { Author2Subscriber } from '../subscribers/Author2Subscriber';
import { EverythingSubscriber } from '../... | the_stack |
import assert from "assert";
import { ReadableStream } from "stream/web";
import { setTimeout } from "timers/promises";
import { TextDecoder, TextEncoder } from "util";
import { Response } from "@miniflare/core";
import { HTMLRewriter, HTMLRewriterPlugin } from "@miniflare/html-rewriter";
import {
getObjectProperties... | the_stack |
import { Color, RGBA, HSLA, HSVA } from '../../src/common/color';
describe('Color', () => {
test('isLighterColor', () => {
const color1 = new Color(new HSLA(60, 1, 0.5, 1));
const color2 = new Color(new HSLA(0, 0, 0.753, 1));
expect(color1.isLighterThan(color2)).toBeTruthy();
// Abyss theme
exp... | the_stack |
import { commands, Disposable, window, ExtensionContext } from "vscode";
import { MusicControlManager, displayMusicTimeMetricsMarkdownDashboard } from "./music/MusicControlManager";
import { launchMusicAnalytics, launchWebUrl } from "./Util";
import { PlaylistItem, PlayerName, PlayerDevice, playSpotifyDevice } from "co... | the_stack |
import StateMachine from '../src/app/app'
import LifecycleLogger from './helpers/lifecycle_logger'
//-------------------------------------------------------------------------------------------------
test('lifecycle events occur in correct order', () => {
// @ts-ignore
const logger = new LifecycleLogger();
c... | the_stack |
import * as Autosuggest from 'react-autosuggest';
import * as React from 'react';
import * as ReactDom from 'react-dom';
import { Utils, PathRegion, Helpable, TagItem } from './Utils';
import AutoComplete from './AutoComplete';
import * as FontAwesome from 'react-fontawesome';
import Tags from './Tags';
// When sugges... | the_stack |
import * as _ from 'lodash';
import * as handlebars from 'handlebars';
import * as yaml from '../yaml';
import {logger} from '../logger';
import {
Env,
$EnvValues,
AnyButUndefined,
ExtendedCfnDoc,
GlobalSection,
GlobalSectionNames,
MaybeStackFrame,
validateTemplateParameter,
interpolateHandlebarsStr... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.