text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import {
createToolbarFactory,
SessionContext,
Toolbar,
ToolbarRegistry,
ToolbarWidgetRegistry
} from '@jupyterlab/apputils';
import { ISettingRegistry, SettingRegistry } from '@jupyterlab/settingregistry';
import { IDataConnector } from '@jupyterlab/statedb';
import {
createSessionContext,
framePromise,
... | the_stack |
import BitArray from '../../../../common/BitArray';
import FormatException from '../../../../FormatException';
import IllegalStateException from '../../../../IllegalStateException';
import StringBuilder from '../../../../util/StringBuilder';
import BlockParsedResult from './BlockParsedResult';
import CurrentParsingStat... | the_stack |
import { Buffer } from 'buffer';
import * as fs from 'fs';
import * as crypto from 'crypto';
import * as Minio from 'minio';
import * as uuid from 'uuid';
import * as sharp from 'sharp';
import { publishMainStream, publishDriveStream } from '../stream';
import { deleteFile } from './delete-file';
import { fetchMeta }... | the_stack |
import { browser, Tabs, WebNavigation, Runtime, Storage, WebRequest, Cookies, ContextualIdentities, History, ExtensionTypes } from "webextension-polyfill-ts";
import { assert } from "chai";
import { createSpy, clone, SpyData } from "./testHelpers";
// @ts-ignore
// tslint:disable-next-line:no-var-requires
const parseU... | the_stack |
import { dew as _readerForDewDew } from "./reader/readerFor.dew.js";
import { dew as _utilsDewDew } from "./utils.dew.js";
import { dew as _compressedObjectDewDew } from "./compressedObject.dew.js";
import { dew as _crc32DewDew } from "./crc32.dew.js";
import { dew as _utf8DewDew } from "./utf8.dew.js";
import { dew as... | the_stack |
import {
Color,
PageContent,
StatePages,
} from "../pageModel";
import { SENTINEL_INDEX, EMPTY_TREE_ROOT } from "../tree/tree";
import { SENTINEL_STRUCTURE } from "./tree";
import { SENTINEL_CONTENT } from "../contentTree/tree";
import pageReducer from "../reducer";
import { insertStructure } from "./actions";
im... | the_stack |
var commentre = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
function parse(css, options?) {
options = options || {};
/**
* Positional.
*/
var lineno = 1;
var column = 1;
/**
* Update lineno and column based on `str`.
*/
function updatePosition(str) {
var lines = str.match(/\n/g);
if (lines) ... | the_stack |
import * as fs from "fs";
import * as os from "os";
import * as path from "path";
import * as vscode from "vscode";
import {
CONFIG,
CONSTANTS,
DialogResponses,
GLOBAL_ENV_VARS,
HELPER_FILES,
TelemetryEventName,
VERSIONS,
} from "../constants";
import {
checkConfig,
cr... | the_stack |
function main(workbook: ExcelScript.Workbook) {
let HappyXmasTree = workbook.getWorksheet('HappyXmasTree')
OuterEdgeFFFF00(workbook) //yellow
OuterEdgeFF0000(workbook) //red
OuterEdgeFFFF00(workbook) //yellow
OuterEdgeFF0000(workbook) //red
OuterEdgeFFFF00(workbook) //yellow
OuterEdgeFF0000(workbook) //re... | the_stack |
import { contrastRatio, parseColor } from "@microsoft/fast-colors";
import { accentFill as accentFillAlgorithm } from "@microsoft/fast-components/dist/esm/color/recipes/accent-fill";
import { accentForeground as accentForegroundAlgorithm } from "@microsoft/fast-components/dist/esm/color/recipes/accent-foreground";
impo... | the_stack |
import { message } from "antd";
import axios, { CancelTokenSource } from "axios";
import BaseEntity from "../base/BaseEntity";
import Filter from "../base/filter/Filter";
import HttpUtil from "../../util/HttpUtil";
import FileUtil from "../../util/FileUtil";
import ImageUtil from "../../util/ImageUtil";
import EnvUtil ... | the_stack |
import React, { useState } from 'react';
import {
View,
StyleSheet,
Text,
TouchableOpacity,
TouchableWithoutFeedback,
} from 'react-native';
import { BlurView } from '@react-native-community/blur';
import { DEVICE_LARGE } from '@/utils/deviceConstants';
import { useDispatch, useSelector } from '@/store';
impo... | the_stack |
import * as c from "./constants";
import * as childProcess from "child_process";
import * as p from "vscode-languageserver-protocol";
import * as path from "path";
import * as t from "vscode-languageserver-types";
import {
RequestMessage,
ResponseMessage,
} from "vscode-languageserver-protocol";
import fs from "fs"... | the_stack |
import {EditorPosition, editorViewField, KeymapContext, MarkdownView, Plugin, TFile,} from "obsidian";
import SnippetManager from "./snippet_manager";
import SuggestionPopup, {SelectionDirection} from "./popup";
import {CompletrSettings, DEFAULT_SETTINGS} from "./settings";
import {WordList} from "./provider/word_list_... | the_stack |
import objectValues from '../polyfills/objectValues.js';
import inspect from '../jsutils/inspect.js';
import devAssert from '../jsutils/devAssert.js';
import keyValMap from '../jsutils/keyValMap.js';
import isObjectLike from '../jsutils/isObjectLike.js';
import { parseValue } from '../language/parser.js';
import { Grap... | the_stack |
import type { Dispatch } from 'redux';
import type { TFlags } from '@flopflip/types';
import type { NormalizedCacheObject } from '@apollo/client';
import type { ApolloError } from '@apollo/client/errors';
import type { TApplicationContext } from '@commercetools-frontend/application-shell-connectors';
import type { TAsy... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Subscriptions } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { ServiceBusManagementClient } from "../ser... | the_stack |
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/**
* locale info of decimal, thousands, grouping and currency.
*/
export const localeInfo = {
'ar-MA': {
currency: ['\u062f.\u0645. ', ''],
decimal: ',',
thousands: '.',
grouping: [... | the_stack |
import MdlElement from "../element/mdl_element";
export default class MdlMenu extends MdlElement{
userDefinedHeight: string;
outline_: HTMLElement;
container_: HTMLElement;
Keycodes_: Object;
handleForClick_: Function;
handleForKeyboardEvent_: Function;
handleItemKeyboardEvent_: Function;
handleItemCli... | the_stack |
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
import Int64 from 'node-int64';
import * as thrift from 'thrift';
import * as CompressionCodec from './CompressionCodec';
import * as Encoding from './Encoding';
import * as KeyValue from './... | the_stack |
import {Class, AnyTiming, Timing} from "@swim/util";
import {Affinity, MemberFastenerClass, Property} from "@swim/component";
import type {Color} from "@swim/style";
import {Look, Mood} from "@swim/theme";
import {ViewRef} from "@swim/view";
import type {GraphicsView} from "@swim/graphics";
import {Controller, TraitVie... | the_stack |
import {
Attribute,
Block,
Configuration as CSSBlocksConfiguration,
Style,
isFalseCondition,
isTrueCondition,
} from "@css-blocks/core";
import { EmberAnalysis, HandlebarsTemplate, TEMPLATE_TYPE } from "@css-blocks/ember-utils";
import type {
AST,
ASTPlugin,
NodeVisitor,
Syntax,
} from "@glimmer/syn... | the_stack |
import {
AST_NODE_TYPES,
AST_TOKEN_TYPES,
STORAGE_CLASS,
} from '../ast/glsl-ast-node-types';
import {
ArrayExpression,
AssignmentExpression,
BaseNode,
BinaryExpression,
BlockStatement,
CallExpression,
ConditionalExpression,
DataType,
DoWhileStatement,
Expression,
ExpressionStatement,
ForS... | the_stack |
import "setting-tab.less";
import assertNever from "assert-never";
import { cloneDeep } from "lodash-es";
import {
App,
debounce,
Modal,
Notice,
PluginSettingTab,
Setting,
TextComponent,
} from "obsidian";
import t from "./lang/helper";
import { filterKeyWithType, strToFragment } from "./misc";
import M... | the_stack |
import * as React from 'react';
import { fireEvent, wait } from '@testing-library/react';
import renderWithProvider from '@synerise/ds-utils/dist/testing/renderWithProvider/renderWithProvider';
import { ViewMeta } from '../ColumnManager.types';
import ColumnManager from '../ColumnManager';
import { Column } from '../Co... | the_stack |
// Import required packages
import fs = require("fs");
import path = require("path");
import ts = require("typescript");
import Kernel = require("jp-kernel");
import diff = require("diff");
import {sys} from "typescript";
const $TScode = fs.readFileSync(path.join(__dirname, "startup.ts")).toString("utf-8");
/**
* A ... | the_stack |
import * as moment from 'moment-timezone';
import { ArgumentOutOfRangeException, ArgumentException } from "../js/Exceptions/ArgumentException";
export class TimeSpan {
private get duration(): moment.Duration { return this.getMomentDuration(); }
private getMomentDuration: () => moment.Duration;
private set... | the_stack |
declare namespace Layui {
/**
* 第一个按钮回调即yes回调
* @param [index] 当前层索引参数
* @param [layero] 当前层的jqDOM
*/
type LayerCallbackYes = (index: number, layero: JQuery) => boolean | void;
/**
* 层关闭的回调,如果不想关闭,return false即可
* @param [index] 当前层索引参数
* @param [layero] 当前层的DOM对... | the_stack |
var undefined; var key; var $: any; var classList; var emptyArray = []; var concat = emptyArray.concat; var filter = emptyArray.filter; var slice = emptyArray.slice;
var document = window.document;
var elementDisplay = {}; var classCache = {};
var cssNumber = { 'column-count': 1, columns: 1, 'font-weight': 1, 'line-hei... | the_stack |
module RongIMLib {
export class PublicServiceMap {
publicServiceList: Array<any>;
constructor() {
this.publicServiceList = [];
}
get(publicServiceType: ConversationType, publicServiceId: string): PublicServiceProfile {
for (let i = 0, len = this.publicService... | the_stack |
import React, { Suspense } from 'react';
import SharedElement from './SharedElement';
import { RouterDataContext } from './RouterData';
import { AnimationConfig, AnimationConfigFactory, AnimationConfigSet, AnimationKeyframeEffectConfig, ReducedAnimationConfigSet, SwipeDirection } from './common/types';
import {Vec2} fr... | the_stack |
import {
Node,
NodeTypes,
Statement,
BodyStatement,
RuleStatement,
IncludeStatement,
MixinStatement,
IfStatement,
EachStatement,
FunctionStatement,
ReturnStatement,
TextNode,
createTextNode,
createEmptyNode,
createSelectorNode,
Atrule,
MediaStatement,
... | the_stack |
import * as React from "react";
import * as ReactDom from "react-dom";
import { Version, DisplayMode } from "@microsoft/sp-core-library";
import {
IPropertyPaneConfiguration,
PropertyPaneTextField,
PropertyPaneDropdown,
IPropertyPaneDropdownOption,
IPropertyPaneField,
IPropertyPaneGroup,
PropertyPaneLabel... | the_stack |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FormsModule } from '@angular/forms';
import { IconLoaderService } from '../../../index';
import { AmexioFilterTreeComponent } from './filter.tree.component';
import { AmexioTreeViewComponent } from './tree.component';
import { AmexioContextMenu... | the_stack |
import expect from 'expect';
import { JingleAction } from '../../src/Constants';
import { Session as GenericSession, SessionManager } from '../../src/jingle';
// tslint:disable no-identical-functions
const selfID = 'zuser@example.com';
const peerID = 'peer@example.com';
// We need a Stub Session that acts more like ... | the_stack |
declare var Vue: any;
declare var vuedraggable: any;
module schema_editor {
type ResponseCallback = (any) => void;
interface MessageWithCallback {
message: any;
on_response: ResponseCallback;
}
interface MessageBlock {
id: string;
messages: any[];
}
interface ... | the_stack |
import * as doctrine from 'doctrine';
import * as ts from './ts-ast';
const {parseType, parseParamType} = require('doctrine/lib/typed.js');
/**
* Convert a Closure type expression string to its equivalent TypeScript AST
* node.
*
* Note that function and method parameters should instead use
* `closureParamToTyp... | the_stack |
import {Inferred} from 'typings/Inferred'
import {TestInput} from 'typings/TestInput'
import * as p from './mocks/octokit/payloads'
/**
* Events to Test
*/
export const testEvents: string[] = [
'issue_comment_created',
'issue_comment_edited',
'pull_request_opened',
'pull_request_reopened',
'pull_request_sy... | the_stack |
import * as React from 'react';
/**
* Omits keys K from T
*/
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
/**
* Represents a HoC, whose wrapped component props are inferable.
*/
export interface InferableHOC<ProvidedProps extends {}> {
<B extends ProvidedProps>(
c: React.ComponentT... | the_stack |
import {
Component, forwardRef, Input, OnInit, Output,
EventEmitter, ViewChild,
ComponentRef, ComponentFactoryResolver, ViewContainerRef, ReflectiveInjector, OnDestroy, AfterContentInit, ChangeDetectionStrategy,
} from "@angular/core";
import { NG_VALUE_ACCESSOR, ControlValueAccessor, NG_VALIDATORS, Validat... | the_stack |
import * as Enquirer from 'enquirer';
import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing';
import {
Tree,
readProjectConfiguration,
readJson,
stripIndents,
addProjectConfiguration,
readWorkspaceConfiguration,
updateJson,
logger,
updateProjectConfiguration,
serializeJson,
names,
v... | the_stack |
import * as React from 'react';
import { observer } from 'mobx-react';
import {
FormHelperText, IconButton, InputAdornment, Link, Paper, Table, TableBody, TableCell, TableHead, TableRow,
TableSortLabel, TextField, Typography
} from '@material-ui/core';
import CloseIcon from '@material-ui/icons/Close';
import... | the_stack |
import { Component, NgZone, ViewEncapsulation } from '@angular/core';
import { ComponentFixture, fakeAsync, flush, TestBed, tick, waitForAsync } from '@angular/core/testing';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { By } from '@angular/platform-browser';
import { dispatchFakeEvent, M... | the_stack |
import * as test_util from "../test_util";
import { MathTests } from "../test_util";
import * as util from "../util";
// tslint:disable-next-line:max-line-length
import { Array1D, Array2D, Array3D, Array4D, DType, NDArray, Scalar } from "./ndarray";
const tests: MathTests = it => {
it("NDArrays of arbitrary size", (... | the_stack |
import { SharePointQueryable, SharePointQueryableCollection, SharePointQueryableInstance } from "./sharepointqueryable";
import { SharePointQueryableShareableItem } from "./sharepointqueryableshareable";
import { Folder } from "./folders";
import { File } from "./files";
import { ContentType } from "./contenttypes";
im... | the_stack |
import { Component, Input, OnInit, OnDestroy } from '@angular/core';
import { Route, Router, ActivatedRoute } from '@angular/router';
import { Subscription, concat, EMPTY, Observable, throwError, of } from 'rxjs';
import { tap, catchError, map, switchMap } from 'rxjs/operators';
import {
PoBreadcrumb,
PoDialogCon... | the_stack |
import type {TemplateResult, ChildPart} from 'lit';
import type {
Directive,
DirectiveClass,
DirectiveResult,
} from 'lit/directive.js';
import {nothing, noChange} from 'lit';
import {PartType} from 'lit/directive.js';
import {isTemplateResult, getDirectiveClass} from 'lit/directive-helpers.js';
import {_$LH} fr... | the_stack |
import { PuppetBridge } from "./puppetbridge";
import { IRemoteGroup, RemoteGroupResolvable, RemoteRoomResolvable } from "./interfaces";
import { DbGroupStore } from "./db/groupstore";
import { IGroupStoreEntry, IProfileDbEntry } from "./db/interfaces";
import { Log } from "./log";
import { Lock } from "./structures/lo... | the_stack |
import ManagedArray from '../../utils/managed-array';
import {TILE_REFINEMENT} from '../../constants';
export type TilesetTraverserProps = {
loadSiblings?: boolean;
skipLevelOfDetail?: boolean;
maximumScreenSpaceError?: number;
onTraversalEnd?: (frameState) => any;
viewportTraversersMap?: {[key: string]: any... | the_stack |
import {logWarn} from '../../utils/log';
import {throttle} from '../../utils/throttle';
import {forEach} from '../../utils/array';
import {getDuration} from '../../utils/time';
interface CreateNodeAsapParams {
selectNode: () => HTMLElement;
createNode: (target: HTMLElement) => void;
updateNode: (existing: ... | the_stack |
import {MetadataAccessor, MetadataInspector} from '@loopback/metadata';
import debugFactory from 'debug';
import {
Binding,
BindingScope,
BindingTag,
BindingTemplate,
DynamicValueProviderClass,
isDynamicValueProviderClass,
} from './binding';
import {BindingAddress} from './binding-key';
import {ContextTags... | the_stack |
import { TreeGrid } from '..';
import { QueryCellInfoEventArgs, IGrid, RowDataBoundEventArgs, getObject, appendChildren } from '@syncfusion/ej2-grids';
import { templateCompiler, extend } from '@syncfusion/ej2-grids';
import { addClass, createElement, isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
import { ... | the_stack |
import { Application } from '../../../declarations'
import config from '../../appconfig'
import axios, { AxiosRequestConfig } from 'axios'
import mimeType from 'mime-types'
import { useStorageProvider } from '../../media/storageprovider/storageprovider'
import { Agent } from 'https'
import { Params } from '@feathersjs/... | the_stack |
import { createTransport } from '@sentry/core';
import { EventEnvelope, EventItem } from '@sentry/types';
import { addItemToEnvelope, createAttachmentEnvelopeItem, createEnvelope, serializeEnvelope } from '@sentry/utils';
import * as http from 'http';
import { TextEncoder } from 'util';
import { createGunzip } from 'zl... | the_stack |
import { isUndefined, sortBy } from 'lodash';
import { useEffect, useRef, useState } from 'react';
import { FaUser } from 'react-icons/fa';
import { IoMdLogOut } from 'react-icons/io';
import { MdBusiness } from 'react-icons/md';
import { Link } from 'react-router-dom';
import API from '../../../../../../api';
import ... | the_stack |
import type * as perspective from "@finos/perspective";
import {
PerspectiveViewerElement,
register_plugin,
} from "@finos/perspective-viewer/dist/pkg/perspective_viewer.js";
import {WASM_MODULE} from "./init";
export type PerspectiveViewerConfig = perspective.ViewConfig & {
plugin?: string;
settings... | the_stack |
import "jest-extended";
import { Contracts } from "@packages/core-kernel";
import { Wallet, WalletRepository, WalletRepositoryCopyOnWrite } from "@packages/core-state/src/wallets";
import {
addressesIndexer,
ipfsIndexer,
locksIndexer,
publicKeysIndexer,
resignationsIndexer,
usernamesIndexer,
} ... | the_stack |
import * as assert from 'assert';
import * as vscode from 'vscode';
import * as extensionFunctions from '../../extensionFunctions';
import { handleExtFilePath, handleProjectFilePath } from '../../commandHandler';
import * as path from 'path';
import { removeFilesAndFolders, getCachedOutputChannel, getCachedOutputChanne... | the_stack |
import * as React from "react";
import { localFiles, localFileProtocol } from "./analyzerTools";
import { LoaderComponent } from "./Loader"
import Select from 'react-select';
import {
Button,
Checkbox,
CircularProgress,
Dialog, DialogContent,
DialogTitle,
FormControlLabel, FormGroup, FormHelperText,
Switc... | the_stack |
import { AxiosPromise, AxiosRequestConfig, AxiosResponse } from "axios";
import axios from "axios";
import Cookies from "universal-cookie";
import { sessions, users, User, setClerkApiKey } from "@clerk/clerk-sdk-node";
import {
APIGatewayProxyEvent,
APIGatewayProxyHandler,
APIGatewayProxyResult,
} from "aws-lambd... | the_stack |
export type SubListener<T = any> = (value: T, prevValue?: T) => void
export type Thunk = () => void
export type Disposer = Thunk
// Exposed, this might be useful for third part reflection based (dev) tools
export const $RVal = typeof Symbol === "undefined" ? "$RVal" : Symbol.for('$RVal')
export interface Observable... | the_stack |
import * as $protobuf from "protobufjs";
/** Properties of a Peer. */
export interface IPeer {
/** Peer host */
host?: string;
/** Peer port */
port?: number;
}
/** Represents a Peer. */
export class Peer implements IPeer {
/**
* Constructs a new Peer.
* @param [properties] Properties... | the_stack |
import { KeyCredential, TokenCredential } from "@azure/core-auth";
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
CopyAuthorization,
GeneratedClient,
GetInfoResponse,
GetOperationResponse,
ModelInfo,
ModelSummary,
OperationInfo,
} from "./generated";
import { accept1 } from "./g... | the_stack |
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { Constant } from './constant';
import {
EvaluateExpressionDelegate,
EvaluatorLookup,
ExpressionEvaluator,
ValueWithError,
} from './expressionEvaluator';
import { ExpressionType } from './expressio... | the_stack |
import { Component, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, NavController, NavParams } from '../../../..';
import { DomSanitizer } from '@angular/platform-browser';
let LOG = '';
let SIMPLE_LOG = '';
function log(page: string, message... | 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 {
expect
} from 'chai';
import {
generate, simulate
} from 'simulate-event';
import {
each, range
} from '@phosphor/algorithm';
import {
Message, MessageLoop
} from '@phosphor/messaging';
import {
TabBar, Title, Widget
} from '@phosphor/widgets';
import {
VirtualDOM
} from '@phosphor/virtualdom'... | the_stack |
import React, { useMemo } from 'react'
import { SectionList, Text as TextNative, TouchableHighlight, View } from 'react-native'
import { Text } from '@ui-kitten/components'
import { CommonActions } from '@react-navigation/native'
import { EdgeInsets } from 'react-native-safe-area-context'
import { useTranslation } from... | the_stack |
import React from 'react';
import {Box, Flex} from 'theme-ui';
import {
notification,
Button,
Container,
Divider,
Input,
Paragraph,
Text,
Title,
} from '../common';
import Spinner from '../Spinner';
import AccountUsersTable from './AccountUsersTable';
import DisabledUsersTable from './DisabledUsersTable... | the_stack |
import * as React from 'react';
import * as networking from '../../utils/networking';
import { SelectDataModelComponent } from './SelectDataModelComponent';
export interface IExternalApiComponentProps {
connectionId: any;
dataModelElements: any;
connection: any;
selectedApiDef: any;
componentApiResponseMappi... | the_stack |
import {ErrorWithCode} from 'app/common/ErrorWithCode';
import {timeFormat} from 'app/common/timeFormat';
import * as docUtils from 'app/server/lib/docUtils';
import * as log from 'app/server/lib/log';
import {fromCallback} from 'app/server/lib/serverUtils';
import * as sqlite3 from '@gristlabs/sqlite3';
import * as a... | the_stack |
import {
applyPatches,
getSnapshot,
idProp,
model,
Model,
modelAction,
modelIdKey,
onPatches,
Patch,
prop,
registerRootStore,
runUnprotected,
unregisterRootStore,
} from "../../src"
import "../commonSetup"
import { createP } from "../testbed"
import { autoDispose } from "../utils"
describe("o... | the_stack |
import fs from 'fs-extra';
import R from 'ramda';
import AbstractConfig from './abstract-config';
import { Compilers, Testers } from './abstract-config';
import { BitConfigNotFound, InvalidBitJson, InvalidPackageJson } from './exceptions';
import {
DEFAULT_COMPONENTS_DIR_PATH,
DEFAULT_DEPENDENCIES_DIR_PATH,
DEFAU... | the_stack |
import { Storage, File } from '@google-cloud/storage'
import { BadPathError, InvalidInputError, DoesNotExist } from '../errors'
import {
ListFilesResult, PerformWriteArgs, WriteResult, PerformDeleteArgs, PerformRenameArgs,
StatResult, PerformStatArgs, PerformReadArgs, ReadResult, PerformListFilesArgs,
ListFiles... | the_stack |
import AMM from './AMM'
import Base, { ChainProviders } from './Base'
import Chain from './models/Chain'
import Token from './Token'
import TokenModel from './models/Token'
import fetch from 'isomorphic-fetch'
import l1Erc20BridgeAbi from '@hop-protocol/core/abi/generated/L1_ERC20_Bridge.json'
import l1HomeAmbNativeToE... | the_stack |
import * as path from 'path';
import {Command, CLIError, flags} from '@microsoft/bf-cli-command';
import {Orchestrator, Utility} from '@microsoft/bf-orchestrator';
export default class OrchestratorTest extends Command {
static description: string = `The "test" command can operate in three modes: test, evaluation, as... | the_stack |
declare module evothings {
export module ble {
/** Information extracted from a scanRecord. Some or all of the fields may be undefined. This varies between BLE devices.
* Depending on OS version and BLE device, additional fields, not documented here, may be present.
* @typedef {Object} A... | the_stack |
type Size = { width: number, height: number };
/**
* Wraps the native Canvas element and overrides its CanvasRenderingContext2D to
* provide resolution independent rendering based on `window.devicePixelRatio`.
*/
export class HdpiCanvas {
readonly document: Document;
readonly element: HTMLCanvasElement;
... | the_stack |
import { FillQuoteTransformerOrderType } from '@0x/protocol-utils';
import { BigNumber } from '@0x/utils';
import { constants } from '../constants';
import { MarketOperation } from '../types';
import { FeeSchedule, NativeLimitOrderFillData, OptimizedMarketOrder } from './market_operation_utils/types';
import { getNat... | the_stack |
import 'es6-promise/auto'; // polyfill Promise on IE
import {
expect
} from 'chai';
import {
generate
} from 'simulate-event';
import {
CommandRegistry
} from '@phosphor/commands';
import {
JSONObject
} from '@phosphor/coreutils';
import {
Platform
} from '@phosphor/domutils';
const NULL_COMMAND = {
... | the_stack |
import {
PermissionStatus,
PermissionExpiration,
PermissionHookOptions,
createPermissionHook,
UnavailabilityError,
CodedError,
} from 'expo-modules-core';
import ExponentImagePicker from './ExponentImagePicker';
import {
CameraPermissionResponse,
CameraRollPermissionResponse,
MediaLibraryPermissionRe... | the_stack |
import { columnTypes, ILinkFieldValue, ILookupFieldValue, IPersonFieldValue } from './State';
export const getRandomInteger = (minValue:number, maxValue:number): number => {
minValue = Math.ceil(minValue);
maxValue = Math.floor(maxValue);
return Math.floor(Math.random() * (maxValue - minValue + 1)) + minValue;
};
... | the_stack |
import Backburner from 'backburner';
QUnit.module('tests/throttle');
QUnit.test('throttle', function(assert) {
assert.expect(18);
let bb = new Backburner(['zomg']);
let step = 0;
let done = assert.async();
let wasCalled = false;
function throttler() {
assert.ok(!wasCalled);
wasCalled = true;
}... | the_stack |
import * as vscode from 'vscode';
import * as path from 'path';
import * as parse from './parsing';
import SourceSymbol from './SourceSymbol';
import CSymbol from './CSymbol';
import SubSymbol from './SubSymbol';
import { ProposedPosition } from './ProposedPosition';
import { activeLanguageServer, LanguageServer } from... | the_stack |
import { Range, Position } from 'vscode';
import * as path from 'path';
import { DCollection } from '../diagnostic';
import { isNumber } from 'util';
import { Moment } from 'moment';
export enum CheckState {
Running = 'R',
Success = 'S',
Error = 'E',
Stopped = 'X'
}
export enum CheckStatus {
NotSt... | the_stack |
import { Node as AcornNode } from 'acorn';
import { isDummy } from 'acorn-loose';
import { traverse, VisitorOption } from 'estraverse';
import { Identifier, MemberExpression, Node, Program } from 'estree';
import { inject, injectable } from 'inversify';
import Cdp from '../cdp/api';
import { ICdpApi } from '../cdp/conn... | the_stack |
import { keys, values } from "./Dict";
import { Result } from "./OptionResult";
import { zip } from "./ZipUnzip";
type PendingPayload<A> = {
resolveCallbacks?: Array<(value: A) => void>;
cancelCallbacks?: Array<() => void>;
cancel?: void | (() => void);
};
function FutureInit<A>(
this: Future<A>,
init: (res... | the_stack |
import {
Broadphase,
GSSolver,
NaiveBroadphase,
PrismaticConstraint,
RevoluteConstraint,
SAPBroadphase,
vec2,
} from 'p2-es'
import { KinematicCharacterController, PlatformController } from '../Controllers'
import type { CannonMessage } from '../setup'
import { addContactMaterial, removeContactMaterial }... | the_stack |
/**
* @brief Test two arrays of C-style strings for deep equality. The results
* are reported via the testing framework (Check).
* @param a First array of strings
* @param size_a Size of first array
* @param b Second array of strings
* @param size_b Size of second array
*/
static void
deep_eq_str_ary(char **a,... | the_stack |
declare module 'vscode' {
/**
* Represents an item that can be selected from
* a list of items.
*/
export interface QuickPickItem {
/**
* A human readable string which is rendered prominent.
*/
label: string;
/**
* A human readable string which is rendered less prominent.
... | the_stack |
import CodeMirror from 'codemirror';
import 'codemirror/mode/clike/clike.js';
import 'codemirror-addon-infotip';
import 'codemirror-addon-lint-fix';
import type {
Message,
ChangeData,
DiagnosticData,
SlowUpdateMessage,
DiagnosticSeverity,
ServerOptions,
SpanData,
Language
} ... | the_stack |
import { DocgeniContext } from '../docgeni.interface';
import { ApiDeclaration, ComponentDocItem, ExampleSourceFile, Library, LiveExample, Locale, NgDefaultExportInfo } from '../interfaces';
import { toolkit } from '@docgeni/toolkit';
import { createNgSourceFile, NgModuleInfo, NgSourceFile } from '@docgeni/ngdoc';
impo... | the_stack |
import {Type} from "../Types";
import {UriComponent} from "./UriComponent";
import {Scheme} from "./Scheme";
import {SchemeValue} from "./SchemeValue";
import {QueryParam} from "./QueryParam";
import {encode, parseToMap, Separator} from "./QueryParams";
import {trim} from "../Text/Utility";
import {Exception} from "../... | the_stack |
import React, { useState } from 'react'
import FullscreenIcon from '@material-ui/icons/Fullscreen'
import FullscreenExitIcon from '@material-ui/icons/FullscreenExit';
import Tooltip from '@material-ui/core/Tooltip';
import PhotoCameraIcon from '@material-ui/icons/PhotoCamera';
import { Network as NetworkType, IdType } ... | the_stack |
import { Button } from "@components/button";
import { Keys } from "@components/shared";
import { Overlay, UsePopupOptions, usePopup } from "@components/overlay";
import { Transition } from "@components/transition";
import { act, fireEvent, waitFor } from "@testing-library/react";
import { renderWithTheme } from "@jest-... | the_stack |
import {
AuthenticateRequestWithCredentials as RequestWithCredentials,
AuthenticateRequestWithToken as RequestWithToken
} from "common"
import { post } from "handlers/authenticate"
import {
mockAuthenticationClientAuthenticateWithCredentialsWithError,
mockAuthenticationClientAuthenticateWithCredentialsWithResu... | the_stack |
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
/**
* Terms properties.
*/
export interface DatadogAgreementProperties {
/**
* Publisher identifier string.
*/
publisher?: string... | the_stack |
import { AccessLevelList } from "../shared/access-level";
import { PolicyStatement, Operator } from "../shared";
/**
* Statement provider for service [ses](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonses.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/r... | the_stack |
import axios from "axios";
import { getDateBefore, RKIError } from "../utils";
import { ResponseData } from "./response-data";
function parseDate(dateString: string): Date {
const parts = dateString.split(",");
const dateParts = parts[0].split(".");
const timeParts = parts[1].replace("Uhr", "").split(":");
ret... | the_stack |
import * as React from 'react';
import { IPropertyFieldAlignPickerPropsInternal } from './PropertyFieldAlignPicker';
import { Label } from 'office-ui-fabric-react/lib/Label';
import { Async } from 'office-ui-fabric-react/lib/Utilities';
import GuidHelper from './GuidHelper';
import styles from './PropertyFields.module.... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.