text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import { Injectable, EventEmitter } from '@angular/core';
import { Http } from '@angular/http';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import 'rxjs/add/operator/toPromise';
import * as _ from 'lodash';
import { environment } from '../../environments/environment';
import { handleError, parseJson... | the_stack |
import { StorageTypes } from '@requestnetwork/types';
import { EventEmitter } from 'events';
import * as http from 'http';
import IpfsManager from '../src/ipfs-manager';
const ipfsGatewayConnection: StorageTypes.IIpfsGatewayConnection = {
host: 'localhost',
port: 5001,
protocol: StorageTypes.IpfsGatewayProtocol.... | the_stack |
import * as vscode from 'vscode';
import {
AuthenticationClient,
IBucket,
IObject,
DataManagementClient,
ModelDerivativeClient,
DesignAutomationClient,
WebhooksClient,
BIM360Client,
IActivityDetail
} from 'forge-server-utils';
import * as dmp from './providers/data-management';
import * as dap from './provider... | the_stack |
import * as fs from "fs";
import * as mkdirp from "mkdirp";
import * as path from "path";
import * as async from "async";
import RemoteProjectClient from "./RemoteProjectClient";
import * as schemas from "./schemas";
import migrateProject from "./migrateProject";
const saveDelay = 60;
interface SaveCallback {
last... | the_stack |
import { IntPretty } from "./int-pretty";
import { Int } from "./int";
import { Dec } from "./decimal";
describe("Test IntPretty", () => {
it("Test the precision of IntPretty", () => {
const params: {
arg: Dec | Int;
precision: number;
dec: Dec;
str: string;
}[] = [
{
ar... | the_stack |
import {
getViewClass,
getViewMeta,
normalizeElementName,
NSVViewMeta,
} from './registry'
import { ELEMENT_REF } from './runtimeHelpers';
// import { debug } from '../shared';
import { Component, NodeObject, NodeWidget, QObjectSignals, QWidgetSignals } from '@nodegui/nodegui'
import type { RNComponent ... | the_stack |
import * as assert from "assert";
import * as ts from "typescript";
import {TypeChecker} from "../../type-checker";
import {CodeGenerationContext} from "../code-generation-context";
import {isMaybeObjectType} from "../util/types";
import {PerFileSourceFileRewirter} from "./per-file-source-file-rewriter";
import {MODUL... | the_stack |
import gql from 'graphql-tag';
import * as ApolloReactCommon from '@apollo/react-common';
import * as ApolloReactHooks from '@apollo/react-hooks';
export type Maybe<T> = T | null;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string,
String: string,
Boolean: boo... | the_stack |
import BigNumber from "bignumber.js/bignumber";
enum ChainId {
MAINNET = 1,
ROPSTEN = 3,
RINKEBY = 4,
GÖRLI = 5,
KOVAN = 42,
BSC_MAINNET = 56,
BSC_TESTNET = 97
}
// mint token
export const MINTTOKEN = Object.freeze({
ALLNEW: 'ALLNEW',
ENDED: 'ENDED',
BAKE: 'BAKE',
PET: 'PET... | the_stack |
import {fakeAsync, TestBed, tick} from '@angular/core/testing';
import {Component, Type} from '@angular/core';
import {By} from '@angular/platform-browser';
import {CdkListbox, CdkListboxModule, CdkOption, ListboxValueChangeEvent} from './index';
import {dispatchKeyboardEvent, dispatchMouseEvent} from '../../cdk/testin... | the_stack |
module formFor {
/**
* SelectField $scope.
*/
interface TypeAheadFieldScope extends ng.IScope {
/**
* Name of the attribute within the parent form-for directive's model object.
* This attributes specifies the data-binding target for the input.
* Dot notation (ex "address.street") is suppo... | the_stack |
import React, { useRef, useEffect, forwardRef, useCallback } from 'react';
import { Tree } from './Tree';
import { melodies } from '../melodies';
import { toNote } from './utils/midiHelpers';
import debounce from 'lodash.debounce';
import * as Tone from 'tone';
import throttle from 'lodash.debounce';
import { persistKe... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "./types";
import * as utilities from "./utilities";
/**
* Provides a [DigitalOcean Monitoring](https://docs.digitalocean.com/reference/api/api-reference/#tag/Monitoring) resource.
* Monitor alerts can be configured t... | the_stack |
import { chainAsync, uuid, objectsEqual } from "./utilities";
import { InanoSQLAdapter, InanoSQLAdapterConstructor, InanoSQLInstance, InanoSQLTable } from "./interfaces";
import { nanoSQL } from ".";
export const myConsole = Object.create(console, {
assert: {
value: function assert(assertion, message, ...a... | the_stack |
import {
AwaitTransactionSuccessOpts,
ContractFunctionObj,
ContractTxFunctionObj,
SendTransactionOpts,
BaseContract,
SubscriptionManager,
PromiseWithTransactionHash,
methodAbiToFunctionSignature,
linkLibrariesInBytecode,
} from '@0x/base-contract';
import { schemas } from '@0x/json-s... | the_stack |
import { css } from '@emotion/react';
import styled from '@emotion/styled';
import FocusTrap from 'focus-trap-react';
import { motion } from 'framer-motion';
import Link from 'next/link';
import { useRouter } from 'next/router';
import React from 'react';
import ReactDOM from 'react-dom';
import useDebouncedValue from ... | the_stack |
* ERR_MANIFEST_ASSERT_INTEGRITY
* ERR_QUICSESSION_VERSION_NEGOTIATION
* ERR_REQUIRE_ESM
* ERR_TLS_CERT_ALTNAME_INVALID
* ERR_UNHANDLED_ERROR
* ERR_WORKER_INVALID_EXEC_ARGV
* ERR_WORKER_PATH
* ERR_QUIC_ERROR
* ERR_SOCKET_BUFFER_SIZE //System error, shouldn't ever happen inside Deno
* ERR_SYSTEM_ERROR //System e... | the_stack |
import { localize } from 'vs/nls';
import { distinct, coalesce } from 'vs/base/common/arrays';
import * as strings from 'vs/base/common/strings';
import { OperatingSystem, Language } from 'vs/base/common/platform';
import { IMatch, IFilter, or, matchesContiguousSubString, matchesPrefix, matchesCamelCase, matchesWords }... | the_stack |
import {Application} from "../../../support/application.config";
import {toolbar, createEditStepDialog} from "../../../support/components/common";
import curatePage from "../../../support/pages/curate";
import LoginPage from "../../../support/pages/login";
import {advancedSettings} from "../../../support/components/mer... | the_stack |
import { T, Val, EmptyArray, IterType, FalseyValues, isTruthy } from "./common";
import { Option, Some, None } from "./option";
export type Ok<T> = ResultType<T, never>;
export type Err<E> = ResultType<never, E>;
export type Result<T, E> = ResultType<T, E>;
type From<T> = Exclude<T, Error | FalseyValues>;
type Resul... | the_stack |
import test, { Test } from "tape-promise/tape";
import HelloWorldContractJson from "../../../../solidity/hello-world-contract/HelloWorld.json";
import Web3 from "web3";
import Web3JsQuorum, { IPrivateTransactionReceipt } from "web3js-quorum";
import { BesuMpTestLedger } from "@hyperledger/cactus-test-tooling";
import {... | the_stack |
import React from 'react';
import { render, waitFor } from '@testing-library/react';
import gql from 'graphql-tag';
// @ts-ignore
import { withState } from './recomposeWithState.js';
import { DocumentNode } from 'graphql';
import { ApolloClient } from '../../../../core';
import { ApolloProvider } from '../../../contex... | the_stack |
import {
Application,
expect,
isFreePort,
Router,
RouterContext,
} from "./deps.ts";
import { getFreePort, Test } from "../deps.ts";
import { describe, it } from "./utils.ts";
import { superoak } from "../mod.ts";
describe("superoak(url)", () => {
it("superoak(url): should support `superoak(url)` if consum... | the_stack |
import {OAuth2Client} from 'google-auth-library';
import {google, script_v1 as scriptV1} from 'googleapis';
import {createServer} from 'http';
import open from 'open';
import readline from 'readline';
import enableDestroy from 'server-destroy';
import type {Credentials, GenerateAuthUrlOpts, OAuth2ClientOptions} from 'g... | the_stack |
import {
ILifecycleEvents,
IPuppetFrame,
IPuppetFrameEvents,
} from '@secret-agent/interfaces/IPuppetFrame';
import { URL } from 'url';
import Protocol from 'devtools-protocol';
import { CanceledPromiseError } from '@secret-agent/commons/interfaces/IPendingWaitEvent';
import { TypedEventEmitter } from '@secret-ag... | the_stack |
import assert = require("assert");
import { CrossValidator } from "../../../../src/model/evaluation/cross_validation/CrossValidator";
import { AppSoftmaxRegressionSparse } from "../../../../src/model/supervised/classifier/neural_network/learner/AppSoftmaxRegressionSparse";
import { ColumnarContentEmail } from "../..... | the_stack |
import { GlobalProps } from 'ojs/ojvcomponent';
import { ComponentChildren } from 'preact';
import { editableValue, editableValueEventMap, editableValueSettableProperties } from '../ojeditablevalue';
import { JetElement, JetSettableProperties, JetElementCustomEvent, JetSetPropertyType } from '..';
export interface ojRa... | the_stack |
import { Stopwatch } from 'ts-stopwatch';
import { azureCloudEndpoint } from '../../Enums/azureCloudEndpoint';
import { CdmCorpusDefinition, CdmDocumentDefinition, CdmManifestDefinition, cdmStatusLevel, StorageAdapterCacheContext } from '../../internal';
import { ADLSAdapter } from '../../Storage';
import { TokenProvi... | the_stack |
import {EventEmitter} from 'events';
import * as uuid from 'uuid';
import {cls, RootContext} from './cls';
import {OpenCensusPropagation, TracePolicy} from './config';
import {Constants, SpanType} from './constants';
import {Logger} from './logger';
import {
Func,
Propagation,
RootSpan,
RootSpanOptions,
Span... | the_stack |
import {
keywordFor,
assocBang,
MalError,
symbolFor as S,
MalNode,
MalNodeMap,
isMap,
MalMap,
MalVal,
M_OUTER,
isNode,
M_ELMSTRS,
M_DELIMITERS,
M_ISSUGAR,
M_ISLIST,
M_OUTER_INDEX,
isSeq,
getName,
createList as L,
MalSeq,
isSymbol,
} from './types'
import printExp from './printer'
const S_QUOTE = S... | the_stack |
import * as React from 'react';
import {
Button,
Checkbox,
Dialog,
DialogActions,
DialogContent,
DialogTitle,
Grid,
Divider,
Typography,
IconButton,
CircularProgress,
Zoom,
} from '@material-ui/core';
import AddIcon from '@material-ui/icons/Add';
import Help from '@material-ui/icons/Help';
impor... | the_stack |
import type { Signer, TypedDataSigner } from '@ethersproject/abstract-signer';
import type {
BaseProvider,
TransactionReceipt,
} from '@ethersproject/providers';
import { BigNumber, BigNumberish, ContractTransaction } from 'ethers';
import { Interface } from '@ethersproject/abi';
import invariant from 'tiny-invaria... | the_stack |
import { giveConsent } from '../helpers/consent-management';
import { SampleUser } from '../sample-data/checkout-flow';
import { standardUser } from '../sample-data/shared-users';
import { switchSiteContext } from '../support/utils/switch-site-context';
import { login, register } from './auth-forms';
import { clickHamb... | the_stack |
import type { Container } from "../../Core/Container";
import type { IContainerPlugin, ICoordinates, IDelta, IDimension } from "../../Core/Interfaces";
import { InlineArrangement, Type } from "./Enums";
import { Particle } from "../../Core/Particle";
import { Constants, deepExtend, getDistance, getDistances, itemFromAr... | the_stack |
import * as assert from "assert";
import { createHash } from "crypto";
import { PersistentCache } from "./cache";
import { FaastError, FaastErrorNames } from "./error";
import { deserialize, serialize } from "./serialize";
import { sleep } from "./shared";
export class Deferred<T = void> {
promise: Promise<T>;
... | the_stack |
import 'phaser';
import variables from '~/variables';
import StateData from '~/data/stateData';
import Phaser from 'phaser';
import GoldEntry from '~/data/goldEntry';
import WindowUtils from '~/convert/windowUtils';
import OverlayConfigEvent, { ObjectiveSpawnConfig, OverlayConfig, ScoreboardPopUpConfig } from '~/data/c... | the_stack |
const SPACING_UNIT = 5;
const MEASUREMENT_UNIT = 'px';
/**
* Do not use directly the colorPalette in your components
* Create an entry in the colorUsage below instead
*/
const colorPalette = {
primary500: '#3657FF',
grey100: '#FAFAFA',
grey200: '#F7F8FA',
grey300: '#E9EBED',
grey350: 'rgba(57, 63, 72, 0.3... | the_stack |
import { TEMPERATURE_MODULE_TYPE } from '@opentrons/shared-data'
import { i18n } from '../../../localization'
import {
END_TERMINAL_ITEM_ID,
PRESAVED_STEP_ID,
START_TERMINAL_ITEM_ID,
} from '../../../steplist/types'
import {
SINGLE_STEP_SELECTION_TYPE,
MULTI_STEP_SELECTION_TYPE,
TERMINAL_ITEM_SELECTION_TYPE... | the_stack |
import BN from "bn.js";
import { EventData, PastEventOptions } from "web3-eth-contract";
export interface IERC721MetadataUpgradeableContract
extends Truffle.Contract<IERC721MetadataUpgradeableInstance> {
"new"(
meta?: Truffle.TransactionDetails
): Promise<IERC721MetadataUpgradeableInstance>;
}
export interf... | the_stack |
import {
getPluginDataLoaded,
getAnnotationData,
getRunToMetrics,
getEmbeddingDataSet,
getSelectedAnnotations,
getFlaggedAnnotations,
getHiddenAnnotations,
getAnnotationsRegex,
getMetricsRegex,
getMetricArithmetic,
getMetricFilters,
getAnnotationSort,
getPCExpanded,
getAnnotationsExpanded,
... | the_stack |
import React, { Component } from "react";
import Modal from "react-modal";
import dateformat from "dateformat";
import { RouteComponentProps, withRouter } from "react-router";
import { BalanceBlockHighlight } from "./BalanceBlocks";
import styles from "./Transactions.module.css";
import cstyles from "./Common.module.cs... | the_stack |
import * as assert from 'assert';
import * as fs from 'fs';
import * as path from 'path';
import rewire = require('rewire');
import * as sinon from 'sinon';
import uuid = require('uuid');
import * as vscode from 'vscode';
import { TruffleCommands } from '../../src/commands/TruffleCommands';
import { Constants } from '.... | the_stack |
import UniversalRouter, { Route } from './UniversalRouter'
test('requires routes', () => {
// @ts-expect-error missing argument
expect(() => new UniversalRouter()).toThrow(/Invalid routes/)
// @ts-expect-error wrong argument
expect(() => new UniversalRouter(12)).toThrow(/Invalid routes/)
// @ts-expect-error ... | the_stack |
type bool = number;
declare function hexdump(target: NativePointer, options?: object): void;
declare function int64(v: string | number): Int64;
declare function uint64(v: string | number): UInt64;
declare function ptr(v: string | number): NativePointer;
declare var NULL: NativePointer;
// TODO: recv([type, ]callback)... | the_stack |
import test from 'ava';
import * as sinon from 'sinon';
import * as common from '../../../common';
import {clone} from '../../../common';
import * as Api from '../api/v2';
import {ActionsSdkConversationOptions, ActionsSdkConversation} from '../conv';
import {Permission} from '..';
const CONVERSATION_ID = '1234';
co... | the_stack |
import {Env} from 'onnxruntime-common';
import {WebGLContext} from './backends/webgl/webgl-context';
export declare namespace Logger {
export interface SeverityTypeMap {
verbose: 'v';
info: 'i';
warning: 'w';
error: 'e';
fatal: 'f';
}
export type Severity = keyof SeverityTypeMap;
export ... | the_stack |
import { expect } from 'chai';
import * as fs from 'fs';
import * as path from 'path';
import * as oniguruma from 'vscode-oniguruma';
import * as vsctm from 'vscode-textmate';
describe('TextMate grammar tests', async () => {
before(async () => {
// prepare grammar parser
const nodeModulesDir = pat... | the_stack |
import type { Room } from 'xxscreeps/game/room';
import type { RoomIntentPayload, SingleIntent } from 'xxscreeps/engine/processor';
import type { Shard } from 'xxscreeps/engine/db';
import type { flushUsers } from 'xxscreeps/game/room/room';
import Fn from 'xxscreeps/utility/functional';
import { Channel } from 'xxscre... | the_stack |
import { ethers, upgrades, waffle } from "hardhat";
import { Signer, BigNumber } from "ethers";
import chai from "chai";
import { solidity } from "ethereum-waffle";
import "@openzeppelin/test-helpers";
import {
MockERC20,
MockERC20__factory,
PancakeFactory,
PancakeFactory__factory,
PancakeRouterV2__factory,
... | the_stack |
import * as moment from "moment";
/**
* Defines the query context that Bing used for the request.
*/
export interface QueryContext {
/**
* The query string as specified in the request.
*/
originalQuery: string;
/**
* The query string used by Bing to perform the query. Bing uses the altered query strin... | the_stack |
import { SpreadsheetHelper } from "../util/spreadsheethelper.spec";
import { defaultData } from '../util/datasource.spec';
import { CellModel, DialogBeforeOpenEventArgs, Spreadsheet, dialog } from "../../../src/index";
import { Dialog } from "../../../src/spreadsheet/services/index";
describe('Data validation ->', ()... | the_stack |
import { createQueue, Subscription } from '@effection/subscription';
import { Operation, Task, Resource, spawn } from '@effection/core';
import { DeepPartial, matcher } from './match';
import { createBuffer } from './buffer';
/**
* A callback operation to {@link createStream}. This is an operation which takes
* a `p... | the_stack |
import { transformErrorForSerialization } from 'vs/base/common/errors';
import { Emitter, Event } from 'vs/base/common/event';
import { Disposable, IDisposable } from 'vs/base/common/lifecycle';
import { globals, isWeb } from 'vs/base/common/platform';
import * as types from 'vs/base/common/types';
import * as strings ... | the_stack |
import {sendNotify} from './sendNotify';
import USER_AGENT, {get, getShareCodePool, o2s, requireConfig, wait} from './TS_USER_AGENTS'
import {H5ST} from "./utils/h5st";
let cookie: string = '', res: any = '', data: any, UserName: string
let shareCodeSelf: string[] = [], shareCodePool: string[] = [], shareCode: string[... | the_stack |
import { Property, Complex, ChildProperty, Collection } from '@syncfusion/ej2-base';
import { VisibleLabels, Size, VisibleRange, Rect, Align } from '../utils/helper';
import { Font, Border } from '../model/base';
import { FontModel, BorderModel } from '../model/base-model';
import { RangeModel, PointerModel, LabelModel... | the_stack |
import { Cell, ICell } from './cell.ts';
import { IRow, Row } from './row.ts';
import type { IBorderOptions, ITableSettings, Table } from './table.ts';
import { consumeWords, longest, stripeColors } from './utils.ts';
interface IRenderSettings {
padding: number[];
width: number[];
columns: number;
hasB... | the_stack |
import { animate, state, style, transition, trigger } from '@angular/animations';
import {
AfterViewInit, ChangeDetectorRef, Component, ContentChild,
ElementRef, EventEmitter, forwardRef, HostListener, Input,
OnChanges, OnInit, Output, QueryList, Renderer2,
SimpleChanges, TemplateRef, ViewChild, ViewChildren,
}... | the_stack |
import { createAction, ACTION_PARAMETERS } from '@tramvai/core';
import { createContainer } from '@tinkoff/dippy';
import { ActionExecution } from './actionExecution';
import { alwaysCondition } from './conditions/always';
import { actionType } from './constants';
const contextMock = { isContext: true };
const create... | the_stack |
import {
GraphQLInputType,
GraphQLList,
GraphQLNamedType,
GraphQLNonNull,
GraphQLType,
isWrappingType,
isListType,
isNonNullType,
} from 'graphql'
import type { DynamicInputMethodDef, DynamicOutputMethodDef } from '../dynamicMethod'
import type { DynamicOutputPropertyDef } from '../dynamicProperty'
impo... | the_stack |
import { createMuiTheme } from '@material-ui/core/styles';
import { getForumType, ThemeOptions } from './themeNames';
import deepmerge from 'deepmerge';
import isPlainObject from 'is-plain-object';
import type { PartialDeep } from 'type-fest'
import { defaultShadePalette, defaultComponentPalette } from './defaultPalett... | the_stack |
import { union, defaultsDeep, isArray, toArray, mergeWith } from 'lodash'
import { FabrixApp } from './'
import { Templates } from './'
import {
ApiNotDefinedError,
ConfigNotDefinedError,
ConfigValueError,
GraphCompletenessError,
IllegalAccessError,
NamespaceConflictError,
PackageNotDefinedError,
Timeou... | the_stack |
import { EventEmitter } from '@angular/core';
import { importAllAngularServices } from 'tests/unit-test-utils.ajs';
/**
* @fileoverview Unit tests for QuestionPlayerComponent.
*/
describe('QuestionPlayerComponent', () => {
let ctrl = null;
let $rootScope = null;
let $scope = null;
let $location = null;
le... | the_stack |
namespace gdjs {
export namespace evtTools {
export namespace firebaseTools {
/**
* Firebase Cloud database Event Tools.
* @namespace
*/
export namespace database {
/**
* (Over)writes a variable in a collection as database variable.
* @param path - The pa... | the_stack |
const serverRequire = require;
let THREE: typeof SupEngine.THREE;
// NOTE: It is important that we require THREE through SupEngine
// so that we inherit any settings, like the global Euler order
// (or, alternatively, we could duplicate those settings...)
if ((<any>global).window == null) {
THREE = serverRequire("../... | the_stack |
* @packageDocumentation
* @module tiledmap
*/
import { Label, HorizontalTextAlignment, VerticalTextAlignment } from '../2d/components/label';
import codec from '../../external/compression/ZipUtils.js';
import zlib from '../../external/compression/zlib.min.js';
import { SAXParser } from '../core/asset-manager/plist-p... | the_stack |
import React, { MutableRefObject, useEffect, useRef, useState } from 'react';
import { BoxProps, CylinderProps, useRaycastVehicle } from '@react-three/cannon';
import * as THREE from 'three';
import { DebouncedFunc } from 'lodash';
import { useFrame } from '@react-three/fiber';
import { RootState } from '@react-three/f... | the_stack |
import { Component } from "../component";
import { defaultRuntimeFeatures, getPrismClient, IRuntimeFeatures, treeShakeBundle } from "./prism-client";
import { Module } from "../chef/javascript/components/module";
import { Stylesheet } from "../chef/css/stylesheet";
import { IRenderSettings, ModuleFormat, ScriptLanguage... | the_stack |
import { parse, parseType } from 'graphql/language/parser';
import { DirectiveLocation, Kind, Source, TokenKind } from 'graphql/language';
import { invariant } from './utils/misc';
import { getArgumentValues } from 'graphql/execution/values';
import type {
DocumentNode,
ScalarTypeDefinitionNode,
ObjectTypeDefini... | the_stack |
import {Model} from "../../model"
import {LayoutDOM, LayoutDOMView} from "../layouts/layout_dom"
import {Styles} from "./styles"
import {span} from "core/dom"
import {View} from "core/view"
import {DOMView} from "core/dom_view"
import {build_views, remove_views} from "core/build_views"
import * as p from "core/properti... | the_stack |
'use strict';
import {
IPCMessageReader, IPCMessageWriter,
createConnection, IConnection, TextDocumentSyncKind,
TextDocuments, TextDocument, Diagnostic, DiagnosticSeverity,
InitializeParams, InitializeResult, TextDocumentIdentifier, TextDocumentPositionParams,
CompletionItem, CompletionItemKind, Re... | the_stack |
import {
EventRef,
MetadataCache,
SectionCache,
TAbstractFile,
TFile,
Vault,
} from 'obsidian';
import { Mutex } from 'async-mutex';
import { Task } from './Task';
import type { Events } from './Events';
export enum State {
Cold = 'Cold',
Initializing = 'Initializing',
Warm = 'Warm... | the_stack |
import React from 'react';
import { DataTable, Table, TableBody, TableCell, TableContainer, TableHead, TableHeader,
TableRow, TableSelectAll, TableSelectRow, TableToolbar,
TableToolbarContent,
TableToolbarSearch, TableBatchActions, TableBatchAction, Row, Button, Modal
} from 'carbon-components-react';
impo... | the_stack |
import { basename, strings } from '@angular-devkit/core';
import {
chain,
externalSchematic,
noop,
Rule,
SchematicContext,
SchematicsException,
Tree,
} from '@angular-devkit/schematics';
import {
getDecoratorMetadata,
getSourceNodes,
insertImport,
isImported,
} from '@schematics/angular/utility/as... | the_stack |
import React, { useContext, useMemo, useCallback, useEffect, Suspense } from 'react';
import ReactDOM from 'react-dom';
import {
BrowserRouter,
Route,
Switch,
Link,
Redirect,
useRouteMatch,
useParams,
} from 'react-router-dom';
import { Provider, useDispatch } from 'react-redux';
import thro... | the_stack |
import { underline } from 'colorette';
import { cli, command } from '../dist/index.js';
let mockProcessExit: jest.SpyInstance;
let mockConsoleLog: jest.SpyInstance;
let mockConsoleError: jest.SpyInstance;
beforeAll(() => {
process.stdout.columns = 90;
mockProcessExit = jest.spyOn(process, 'exit').mockImplementation... | the_stack |
import { Viewport } from '../mol-canvas3d/camera/util';
import { ICamera } from '../mol-canvas3d/camera';
import { Scene } from './scene';
import { WebGLContext } from './webgl/context';
import { Mat4, Vec3, Vec4, Vec2, Quat } from '../mol-math/linear-algebra';
import { GraphicsRenderable } from './renderable';
import ... | the_stack |
import type { AstNode, ColorTokenType, IntegerNode, SymbolBaseNode } from '@spyglassmc/core'
import { atArray, CommentNode, FloatNode, ResourceLocationNode, StringNode } from '@spyglassmc/core'
export interface ModuleNode extends AstNode {
type: 'mcdoc:module',
children: TopLevelNode[],
}
export const ModuleNode = O... | the_stack |
import React from 'react';
import { fireEvent, render } from '@testing-library/react';
import Select, { SelectProps } from './Select';
import SvgSmileyHappy from '@itwin/itwinui-icons-react/cjs/icons/SmileyHappy';
import { MenuItem } from '../Menu';
function assertSelect(
select: HTMLElement,
{ text = '', isPlaceh... | the_stack |
"use strict";
import Boom from "@hapi/boom";
import Bounce from "@hapi/bounce";
import Hoek from "@hapi/hoek";
import Teamwork from "@hapi/teamwork";
import { parseNesMessage, protocol, stringifyNesMessage } from "./utils";
const internals = {
version: "2",
};
export class Socket {
public server;
public ... | 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 './index.less';
import { remote, ipcRenderer } from 'electron';
import TypeWeibo from '@/../../src/type/namespace/weibo';
import { useState, useEffect } from 'react';
import { enableMapSet } from 'immer';
enableMapSet();
import produce from 'immer';
import { Table, Card, Select, Button } from 'antd';
import { Pl... | the_stack |
import * as cl from 'node-opencl';
import { log, isUint8, isFloat32, isInt32, nullValForType, checkType, gpuTypeForType, typeForGPUType, stringifyVector3, isArray, isInteger } from './utils';
import { Type, GPUBufferDataType, TomType, GPUTypedArray, TomTypedArray } from './types';
import { closeSync, openSync, readFile... | the_stack |
import React, { useState, useEffect } from 'react';
import * as actions from '../../actions';
import { connect } from "react-redux";
import { Dispatch } from 'redux';
import { FormComponentProps } from 'antd/lib/form';
import { Select, Form, Input, Switch, Radio, DatePicker, Row, Col, Collapse } from 'antd';
import { g... | the_stack |
import fse from 'fs-extra';
import path from 'path';
import winston from 'winston';
const logger = winston.createLogger({
level: 'verbose',
defaultMeta: {service: 'user-service'},
format: winston.format.combine(
winston.format.timestamp(),
winston.format.json(),
),
transports: [
new winston.trans... | the_stack |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { ParseTreeListener } from "antlr4ts/tree/ParseTreeListener";
import { ParenthesisExpContext } from "./ExpressionAntlrParser";
import { ArrayCreationExpContext } from "./ExpressionAntlrParser";
import { Json... | the_stack |
import * as sinon from 'sinon';
import * as chai from 'chai';
import * as sinonChai from 'sinon-chai';
import Hls from '../../../src/hls';
import BufferOperationQueue from '../../../src/controller/buffer-operation-queue';
import BufferController from '../../../src/controller/buffer-controller';
import { BufferOperatio... | the_stack |
import '../../../test/common-test-setup-karma';
import './gr-textarea';
import {GrTextarea} from './gr-textarea';
import {html} from '@polymer/polymer/lib/utils/html-tag';
import * as MockInteractions from '@polymer/iron-test-helpers/mock-interactions';
import {ItemSelectedEvent} from '../gr-autocomplete-dropdown/gr-au... | the_stack |
import { Builder } from '../../api/clients/IOClients/apps/Builder'
import {
ChangeSizeLimitError,
ChangeToSend,
ProjectSizeLimitError,
ProjectUploader,
} from '../../api/modules/apps/ProjectUploader'
import {
checkBuilderHubMessage,
showBuilderHubMessage,
continueAfterReactTermsAndConditions,
validateAp... | the_stack |
import {
Dimension,
FontSize,
Glue,
MacroDictionary,
Registers,
RegisterValue,
Style,
} from '../public/core';
import { highlight } from './color';
import { FontMetrics, FONT_SCALE } from './font-metrics';
import { D, Dc, Mathstyle, MathstyleName, MATHSTYLES } from './mathstyle';
import { Box } from './b... | the_stack |
import { Loki } from "../../src/loki";
import { MemoryStorage } from "../../../memory-storage/src/memory_storage";
import { Collection } from "../../src/collection";
import { StorageAdapter } from "../../../common/types";
import { AvlTreeIndex } from "../../src/avl_index";
import { CreateJavascriptComparator } from "..... | the_stack |
'use strict';
import { getAbsolutUrl } from "chord/base/node/url";
import { ISong } from "chord/music/api/song";
import { ILyric } from 'chord/music/api/lyric';
import { IAlbum } from "chord/music/api/album";
import { IArtist } from "chord/music/api/artist";
import { ITag } from "chord/music/api/tag";
import { IColle... | the_stack |
export enum KeyEnum {
/**
* The user agent wasn't able to map the event's virtual keycode to a
* specific key value.
* This can happen due to hardware or software constraints, or because of
* constraints around the platform on which the user agent is running.
*/
Unidentified = "Unidentified",
/** ... | the_stack |
import highlightJS from 'highlight.js/lib/core';
// Convert to imports
// ^hljs\.registerLanguage\('(.+)', require\('\./languages\/(.+)'\)\);$
// import $1 from 'highlight.js/lib/languages/$2';
// import _1c from 'highlight.js/lib/languages/1c';
// import abnf from 'highlight.js/lib/languages/abnf';
// import accessl... | the_stack |
import CustomError from "./Error";
import utils from "./utils";
import Internal from "./Internal";
import {Item, ItemObjectFromSchemaSettings} from "./Item";
import {Model, ModelIndexes} from "./Model";
import * as DynamoDB from "@aws-sdk/client-dynamodb";
import {ModelType, ObjectType} from "./General";
import {Intern... | the_stack |
import {
colors,
Command,
CompletionsCommand,
debounce,
deferred,
fs,
path,
prettyBytes,
RollupCache,
Table,
} from "./deps/mod.ts";
import { bundle } from "./src/bundle.ts";
import { dependencyList } from "./src/dependency_graph.ts";
import { exportCommand } from "./src/export.ts";
import { serve }... | the_stack |
require('source-map-support').install();
var falafel = require("falafel");
var XRegExp = require('xregexp').XRegExp;
import Json = require('source-processor');
import error = require('source-processor');
import optimizer = require('../src/optimizer');
import globals = require('../src/globals');
//todo
//implement ex... | the_stack |
import {CATEGORY_SOP} from './Category';
import {AddSopNode} from '../../../nodes/sop/Add';
import {AnimationCopySopNode} from '../../../nodes/sop/AnimationCopy';
import {AnimationMixerSopNode} from '../../../nodes/sop/AnimationMixer';
import {AttribAddMultSopNode} from '../../../nodes/sop/AttribAddMult';
import {Attr... | the_stack |
declare namespace WebAssembly {
interface Module {}
}
declare namespace Emscripten {
interface FileSystemType {}
type EnvironmentType = "WEB" | "NODE" | "SHELL" | "WORKER";
type ValueType = "number" | "string" | "array" | "boolean";
type TypeCompatibleWithC = number | string | any[] | boolean;
type WebAss... | the_stack |
import {ExportNs} from '../../esl-utils/environment/export-ns';
import {ESC} from '../../esl-utils/dom/keys';
import {CSSClassUtils} from '../../esl-utils/dom/class';
import {bind} from '../../esl-utils/decorators/bind';
import {defined, copyDefinedKeys} from '../../esl-utils/misc/object';
import {DeviceDetector} from ... | the_stack |
import * as cp from 'child_process';
// eslint-disable-next-line import/no-extraneous-dependencies
import * as which from 'which';
import { attach } from '../attach';
import { NeovimClient } from './client';
function wait(ms: number): Promise<void> {
return new Promise(resolve => {
setTimeout(() => {
resol... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.