text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import { format as dateFormat } from 'date-fns';
import { promises as fs } from 'fs';
import { EOL } from 'os';
import environments from '../libs/environments';
import http from '../libs/http';
import { HttpCall } from '../libs/models';
import routes from '../libs/routes';
import utils from '../libs/utils';
const test... | the_stack |
import {
Injectable,
NotFoundException,
UnauthorizedException,
} from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import type { InputJsonValue, JsonValue, Prisma } from '@prisma/client';
import { ApiKey } from '@prisma/client';
import QuickLRU from 'quick-lru';
import {
API_KEY_NOT_FOUND,
... | the_stack |
import faker from "faker";
import {
PluginContext,
TelemetryReporter,
LogProvider,
AppStudioTokenProvider,
GraphTokenProvider,
UserInteraction,
LogLevel,
PermissionRequestProvider,
Result,
FxError,
ok,
LocalSettings,
ConfigMap,
} from "@microsoft/teamsfx-api";
import sinon from "sinon";
import... | the_stack |
import {WebPlugin} from '@capacitor/core';
import type {OAuth2AuthenticateOptions, OAuth2ClientPlugin, OAuth2RefreshTokenOptions} from "./definitions";
import {WebOptions, WebUtils} from "./web-utils";
export class OAuth2ClientPluginWeb extends WebPlugin implements OAuth2ClientPlugin {
private webOptions: WebOpti... | the_stack |
import React, { useState } from 'react';
import { v4 as uuid } from 'uuid';
// Give composer access to both business Redux store slice and all actions
import { useDispatch } from 'react-redux';
import * as actions from '../../../features/business/businessSlice';
import * as uiactions from '../../../features/ui/uiS... | the_stack |
import { Component } from 'vue-property-decorator';
import { select } from 'd3-selection';
import { line, curveBasis } from 'd3-shape';
import _ from 'lodash';
import $ from 'jquery';
import template from './line-chart.html';
import {
DEFAULT_PLOT_MARGINS,
drawBrushBox,
getScale,
injectVisualizationTemplate,
... | the_stack |
import Connection from '../../../src/lib/connection';
import * as mediasoupMixer from '../../../src/lib/media-soup/mediasoup-mixer';
import { Participant } from '../../../src/lib/participant';
import { MEDIA_CAN_SHARE_AUDIO, MEDIA_CAN_SHARE_WEBCAM, Permission } from '../../../src/lib/permissions';
import Room from '../... | the_stack |
import { expect } from "chai";
import { IModelConnection, SnapshotConnection } from "@itwin/core-frontend";
import { ContentSpecificationTypes, KeySet, RelationshipDirection, Ruleset, RuleTypes } from "@itwin/presentation-common";
import { Presentation } from "@itwin/presentation-frontend";
import { initialize, termina... | the_stack |
import * as React from 'react';
import {
Animated,
StyleSheet,
Text,
TextStyle,
View,
ViewStyle,
} from 'react-native';
import { steps as theme } from '../../_styles/themes/default.components';
import MDIcon from '../icon';
export interface IMDStepsItem {
title: string;
brief?: string;
}
type MDStepsD... | the_stack |
import * as Clutter from "@gi-types/clutter";
import * as Cogl from "@gi-types/cogl";
import * as CoglPango from "@gi-types/coglpango";
import * as Atk from "@gi-types/atk";
import * as GObject from "@gi-types/gobject";
export function accessibility_init(): boolean;
export function get_cally_initialized(): boolean;
ex... | the_stack |
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as Models from "../models";
import * as Mappers from "../models/dscCompilationJobOperationsMappers";
import * as Parameters from "../models/parameters";
import { AutomationClientContext } from "../automationCli... | the_stack |
export interface ApplicationData {
/** Application product details. */
applicationProductDetails?: Array<ApplicationProductDetail>;
/** Schema for storing measurement reading and unit. */
avgMaterial?: Measure;
/** Schema for storing measurement reading and unit. */
totalMaterial?: Measure;
/** Schema for... | the_stack |
import { Headers, Response } from 'node-fetch';
import * as WebSocket from 'ws';
import fetch from 'node-fetch';
import { HttpgdPlot, IHttpgdViewerApi, PlotId } from './httpgdTypes';
/**
* State of the graphics device.
* For details see:
* https://github.com/nx10/httpgd/blob/master/docs/api-documentation.md
*... | the_stack |
import * as ChessJS from 'chess.js';
import { Chess } from 'chess.js';
// 2nd line is a hack to full rollup that will remove the line: import * as ChessJS from 'chess.js';
// unless we add the 2nd line.
import { Injectable, EventEmitter } from '@angular/core';
import {
Block,
BaseBlock,
Piece,
PieceColor,
Pi... | the_stack |
import Page = require('../../../base/Page');
import Response = require('../../../http/response');
import V1 = require('../V1');
import { ParticipantList } from './room/participant';
import { ParticipantListInstance } from './room/participant';
import { SerializableClass } from '../../../interfaces';
type RoomCodec = '... | the_stack |
declare namespace MusicKit {
/**
* This class represents the Apple Music API.
*/
interface API {
/**
* An instance of the Cloud library.
*/
library: Library;
/**
* The storefront used for making calls to the API.
*/
storefrontId: string;
/**
* Fetch one or more act... | the_stack |
import os from 'os';
import convict from 'convict';
import {
DataEncoding,
dataEncodings,
flatten,
getField,
getTypeOf,
hasOwn,
isNotNil,
isNumber,
isPlainObject,
isString,
} from '@terascope/utils';
import { Context } from './interfaces';
const cpuCount = os.cpus().length;
cons... | the_stack |
import { ATN } from "antlr4ts/atn/ATN";
import { ATNDeserializer } from "antlr4ts/atn/ATNDeserializer";
import { FailedPredicateException } from "antlr4ts/FailedPredicateException";
import { NotNull } from "antlr4ts/Decorators";
import { NoViableAltException } from "antlr4ts/NoViableAltException";
import { Override } f... | the_stack |
import {Callback, Id, IdOrNull, Ids, ParameterizedCallback} from '../common.d';
import {
Cell,
CellIdsListener,
CellListener,
MapCell,
Row,
RowIdsListener,
RowListener,
Store,
Table,
TableIdsListener,
TableListener,
Tables,
TablesListener,
} from '../store.d';
import {
CheckpointIds,
Check... | the_stack |
import { deepSet, Dict } from '@orbit/utils';
import { Orbit, Assertion } from '@orbit/core';
import {
RecordSchema,
RecordKeyMap,
InitializedRecord,
RecordIdentity,
RecordOperation,
ModelDefinition
} from '@orbit/records';
import {
Serializer,
SerializerForFn,
StringSerializer,
buildSerializerSetti... | the_stack |
import { Injectable } from '@angular/core';
import { IgxTree, IgxTreeNode, IgxTreeSelectionType, ITreeNodeSelectionEvent } from './common';
/** A collection containing the nodes affected in the selection as well as their direct parents */
interface CascadeSelectionNodeCollection {
nodes: Set<IgxTreeNode<any>>;
... | the_stack |
import React, { Fragment, useCallback, useEffect, useState } from "react";
import {
BaseEditor,
Editor as StaticEditor,
Range,
Transforms,
Element as SlateElement,
Descendant,
} from "slate";
import { ReactEditor, useSlateStatic } from "slate-react";
import { Icon } from "./editor/core/navbar/Ic... | the_stack |
import * as React from 'react';
import { observer, inject } from 'mobx-react';
import { Link, RouteComponentProps } from 'react-router-dom';
import Helmet from 'react-helmet';
import cs from 'classnames';
import _ from 'lodash';
import tocbot from 'tocbot';
import hljs from 'highlight.js';
import baguetteBox from 'bag... | the_stack |
* This module executes inside of electron's main process. You can start
* electron renderer process from here and communicate with the other processes
* through IPC.
*
* When running `yarn build` or `yarn build-main`, this file is compiled to
* `./desktop/main.prod.js` using webpack. This gives us some performance... | the_stack |
// 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
// Unless required by applicable law or agreed to in writing, software
// distributed unde... | the_stack |
import React, {
useState,
useEffect,
Dispatch,
SetStateAction,
useContext,
ReactNode,
useRef,
} from 'react';
import DragHelper from '@inovua/reactdatagrid-community/packages/drag-helper';
import Region from '@inovua/reactdatagrid-community/packages/region';
import join from '@inovua/reactdatagrid-commun... | the_stack |
import React, { forwardRef, useImperativeHandle, useRef } from 'react';
import { Tooltip, Spin } from 'antd';
import MxFactory from '@/components/mxGraph';
import Fullscreen from '@/components/fullScreen';
import {
AlignCenterOutlined,
ArrowsAltOutlined,
ShrinkOutlined,
SyncOutlined,
ZoomInOutlined,
ZoomOutOutlin... | the_stack |
import execa from 'execa';
import { Arg, Command, INTERNAL_PROGRAM } from '../src';
import { mockProgram, mockStreams, runCommand } from '../src/test';
import { AllDecoratorCommand } from './__fixtures__/AllDecoratorCommand';
import { AllInitializerCommand } from './__fixtures__/AllInitializerCommand';
import { AllProp... | the_stack |
import bowser from 'bowser';
import Event from '../Event';
import MainHelper from '../helpers/MainHelper';
import {
addCssClass,
addDomElement,
getPlatformNotificationIcon,
once,
removeDomElement,
removeCssClass,
getDomElementOrStub
} from '../utils';
import {
SlidedownPromptOptions,
DelayedPromptTyp... | the_stack |
import * as chai from "chai";
import { extractIncludes } from "../src/domInjection/includesProcessor";
import { JSDOM } from "jsdom";
import { expect } from "chai";
import { tryDotNetModes } from "../src/domInjection/types";
chai.should();
describe("include blocks", () => {
it("can be extracted from dom", () => {
... | the_stack |
import * as Fs from 'fs-extra';
import * as Tmp from 'tmp';
import { localStorage } from './local-storage';
import { Paths, resolveProject } from './paths';
import { Submodule } from './submodule';
import { freeText, pluckRemoteData, Utils } from './utils';
/**
Contains general git utilities.
*/
const exec = Utils.... | the_stack |
interface Sprite_Base {
z,
zIndex,
layerId,
}
interface Tilemap {
initialize(data?): void
}
interface ShaderTilemap {
initialize(data?): void
}
let init = Tilemap.prototype.initialize;
Tilemap.prototype.initialize = function (data) {
this._data = data;
init.call(this);
}
namespace PE {
/**
* Cust... | the_stack |
const { ccclass, property } = cc._decorator;
//材质球可设置的属性:
const diffuseTexture = "diffuseTexture";
const startColor = "startColor";
const endColor = "endColor";
/**
* 拖尾特效。
*
* 使用方法:
* 先 init 初始化(可以添加方法 onload ,直接调用 init,这里的 init reset 是为了适配我的框架写的),再 setShape 设置横截面形状;
*
* 其他属性如柔软度、起始颜色、纹理等,可在属性面板中设置,也可以通过代码设置;
... | the_stack |
import React, { useEffect, useRef, useState, useCallback } from 'react'
import {
Row,
Col,
Card,
weaverTheme,
Button,
PlusOutlined,
MinusOutlined,
AimOutlined,
DownloadOutlined,
Tooltip,
} from '@episclera/weaver'
import { useQuery } from '@apollo/client'
import type { Graph as GraphType, Node, Edge... | the_stack |
import debugging from 'debug';
import { SimplePeerData } from 'simple-peer';
import Transfer from "./Transfer";
import UploadProvider from "./uploadProviders/UploadProvider";
const debug = debugging('blymp:UploadService');
/**
* Upload Service that handles uploading data to the partner peer
*/
export default class ... | the_stack |
import {expect} from "chai";
import * as React from "react";
import * as Sinon from "sinon";
import {
BoxGeometry,
Camera, Mesh,
MeshLambertMaterial, Object3D,
PerspectiveCamera,
Scene, Vector3,
WebGLRenderer,
} from "three";
import ReactThreeRenderer from "../../../src/core/renderer/reactThreeRenderer";
i... | the_stack |
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Link } from 'gatsby';
import { AppstoreAddOutlined, HomeOutlined, MenuOutlined, NotificationOutlined, PlayCircleOutlined, ReadOutlined, SearchOutlined, ZhihuOutlined, TwitterOutlined, YuqueOutlined } from '@ant-design/icons';... | the_stack |
export class Encoding {
private emitBOM: boolean = true;
private encodingType: EncodingType = 'Ansi';
/**
* Gets a value indicating whether to write a Unicode byte order mark
* @returns boolean- true to specify that a Unicode byte order mark is written; otherwise, false
*/
get includeB... | the_stack |
import {readFileSync} from "fs";
import {resolve, URL} from "url";
// tslint:disable-next-line:no-var-requires
const validator = require("amphtml-validator").newInstance(
// Let's not fetch over the network on every run.
// Use `npm run update-data` to update.
// tslint:disable-next-line:no-var-requires
readFil... | the_stack |
import selector from '../fixtures/selectors.json';
import cypressJson from '../../cypress.json';
const setup = [
{
width: 1440,
height: 900,
viewport: 'macbook-15' as const,
device: 'Laptop',
},
{ width: 375, height: 667, viewport: 'iphone-6' as const, device: 'Mobile' },
{ width: 768, height: ... | the_stack |
import assert from 'assert';
import Ajv from 'ajv';
import {
Route,
normalizeRoutes,
isHandler,
routesSchema,
rewritesSchema,
redirectsSchema,
headersSchema,
cleanUrlsSchema,
trailingSlashSchema,
getTransformedRoutes,
} from '../src';
const ajv = new Ajv();
const assertValid = (data: unknown, sche... | the_stack |
module LightSpeed {
export class LoaderResult {
engine: BABYLON.Engine;
scene: BABYLON.Scene;
camera: BABYLON.ArcRotateCamera;
playerGraphic: BABYLON.AbstractMesh;
particleTexture: BABYLON.Texture;
radar: BABYLON.Mesh;
enemywing: BABYLON.Mesh;
enemyw... | the_stack |
import React from 'react';
import PropTypes from 'prop-types';
import DataContext from 'context/Data';
import ScalerContext from 'context/Scaler';
import GriffPropTypes, { seriesPropType } from 'utils/proptypes';
import Axes, { Domains } from 'utils/Axes';
import { Domain, Series, Collection } from 'external';
import {... | the_stack |
"use strict";
// uuid: e8f361d2-c6fe-4649-9fde-fe6f24fa043a
// ------------------------------------------------------------------------
// Copyright (c) 2018 Alexandre Bento Freire. All rights reserved.
// Licensed under the MIT License+uuid License. See License.txt for details
// -------------------------------------... | the_stack |
import { parseJsonAndExpectOnlyFlowNodes, verifyShape } from './JsonTestUtils';
import { TProcess } from '../../../../../src/model/bpmn/json/baseElement/rootElement/rootElement';
import { ShapeBpmnElementKind, ShapeBpmnEventBasedGatewayKind } from '../../../../../src/model/bpmn/internal';
import { ShapeBpmnEventBasedGa... | 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 { getQueueToken, NO_QUEUE_FOUND } from '@nestjs/bull-shared';
import { Injectable, Logger, OnModuleInit, Type } from '@nestjs/common';
import {
createContextId,
DiscoveryService,
MetadataScanner,
ModuleRef,
} from '@nestjs/core';
import { Injector } from '@nestjs/core/injector/injector';
import { Instanc... | the_stack |
import { ParamField } from '../types';
/**
* Formats a multi-value header's value, based on https://tools.ietf.org/html/rfc7230#section-7
* If an argument is a string, or a tuple where the second argument is '', only the key will be serialized.
* example: `formatMultiValueHeader(['k1', 'v1'], ['k2', '']) === 'k1=v1,... | the_stack |
import {MotionController} from 'webxr-input-profiles/packages/motion-controllers/src/motionController';
import {fetchProfile} from 'webxr-input-profiles/packages/motion-controllers/src/profiles';
import {Constants} from 'webxr-input-profiles/packages/motion-controllers/src/constants';
import { XRFrame, XRInputSource } ... | the_stack |
import {ipcRenderer} from 'electron';
import {useCallback, useContext, useEffect, useMemo, useRef, useState} from 'react';
import {Button, Row, Tabs, Tooltip} from 'antd';
import {ArrowLeftOutlined, ArrowRightOutlined, BookOutlined, CodeOutlined, ContainerOutlined} from '@ant-design/icons';
import {
ACTIONS_PANE_... | the_stack |
jest.dontMock('axios');
import axios from 'axios';
import { spawn } from 'child_process';
import { Server } from '@hapi/hapi';
import * as http from 'http';
import * as path from 'path';
import { createServer } from './sampleServer';
import * as unexpected from 'unexpected';
import * as url from 'url';
import { promise... | the_stack |
import { Trans } from "@lingui/macro";
import PropTypes from "prop-types";
import * as React from "react";
import { Tooltip } from "reactjs-components";
import mixin from "reactjs-mixin";
import { findNestedPropertyInObject, isObject } from "#SRC/js/utils/Util";
import { SET } from "#SRC/js/constants/TransactionTypes"... | the_stack |
import React, {Component} from 'react'
import {Form, Input, Modal, Select, Row, Col} from 'antd'
import {Plugin} from "../model/PluginModel";
import {ContainerModel} from "../../container/model/ContainerModel"
import {FormComponentProps} from "antd/lib/form/Form";
import {kernel} from "../../../common/utils/IOC"
import... | the_stack |
import Web3 from 'web3';
import {Currency, DeployErc20, TransferErc20} from '../model';
import {
prepareXdcCustomErc20SignedTransaction,
prepareXdcDeployErc20SignedTransaction,
prepareXdcOrErc20SignedTransaction,
sendXdcBurnErc721Transaction,
sendXdcDeployErc721Transaction,
sendXdcErc721Transact... | the_stack |
jest.mock(require.resolve('prettier'), () => require('../__mocks__/prettier'));
import {tmpdir} from 'os';
import * as path from 'path';
const prettier = require(require.resolve('prettier'));
import * as fs from 'graceful-fs';
import {Frame} from 'jest-message-util';
import {saveInlineSnapshots} from '../InlineSnapsho... | the_stack |
import { inject, injectable } from 'inversify';
import { FindConditions, LessThan, LessThanOrEqual, MoreThanOrEqual, ObjectLiteral } from 'typeorm';
import { QueryDeepPartialEntity } from 'typeorm/query-builder/QueryPartialEntity';
import * as apid from '../../../api';
import * as mapid from '../../../node_modules/mira... | the_stack |
import * as path from "path";
import * as fs from "fs";
import { ECObjectsError, ECObjectsStatus, ECVersion, ISchemaLocater, Schema, SchemaContext, SchemaKey, SchemaMatchType } from "@itwin/ecschema-metadata";
import { FileSchemaKey, SchemaFileLocater, SchemaJsonFileLocater } from "@itwin/ecschema-locaters";
import { D... | the_stack |
const EventId = require('eventid');
import * as extend from 'extend';
import {google} from '../protos/protos';
import {objToStruct, structToObj, zuluToDateObj} from './utils/common';
import {
makeHttpRequestData,
CloudLoggingHttpRequest,
RawHttpRequest,
isRawHttpRequest,
} from './utils/http-request';
import {C... | the_stack |
* @module ViewDefinitions
*/
import { CompressedId64Set, Id64, Id64Array, Id64Set, Id64String, OrderedId64Iterable } from "@itwin/core-bentley";
import {
BisCodeSpec, Code, CodeScopeProps, CodeSpec, ColorDef, DisplayStyle3dProps, DisplayStyle3dSettings, DisplayStyle3dSettingsProps,
DisplayStyleProps, DisplayStyle... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
import * as utilities from "../utilities";
/**
* Manages a Trigger Schedule inside a Azure Data Factory.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure... | the_stack |
import {
LearnerDashboardActivityIds,
LearnerDashboardActivityIdsDict
} from 'domain/learner_dashboard/learner-dashboard-activity-ids.model';
describe('Learner dashboard activity ids model', () => {
let learnerDashboardActivityIdsDict: LearnerDashboardActivityIdsDict;
beforeEach(() => {
learnerDashboardAc... | the_stack |
import * as vscode from 'vscode';
import { CreateParams, CreatePullRequest, RemoteInfo } from '../../common/views';
import type { Branch } from '../api/api';
import Logger from '../common/logger';
import { Protocol } from '../common/protocol';
import { Remote } from '../common/remote';
import { ASSIGN_TO } from '../com... | the_stack |
declare module "fela" {
import * as CSS from 'csstype';
import { TRuleType, TKeyframeType, TFontType, TStaticType, TClearType } from 'fela-utils';
export type TRuleProps = {};
export type TRule<T = TRuleProps> = (props: T, renderer: IRenderer) => IStyle
export type TKeyFrame<T = TRuleProps> = (props: T, rend... | the_stack |
import { AppChallenge, ChallengeEvents, ChallengeStatus } from "@connext/types";
import {
ChannelSigner,
computeAppChallengeHash,
computeCancelDisputeHash,
getRandomAddress,
getRandomBytes32,
toBN,
} from "@connext/utils";
import { BigNumberish, Contract, ContractFactory, Wallet, constants, utils } from "et... | the_stack |
// Generated by: https://github.com/david-driscoll/atom-typescript-generator
// Generation tool by david-driscoll <https://github.com/david-driscoll/>
/// <reference path="../event-kit/event-kit.d.ts" />
declare module FirstMate {
/**
* Registry containing one or more grammars.
*/
class GrammarRegist... | the_stack |
declare const monaco;
const languages = monaco.languages;
const CompletionItemKind = languages.CompletionItemKind;
const CompletionItemInsertTextRule = languages.CompletionItemInsertTextRule;
type CompletionItem = typeof languages.CompletionItem;
type IModel = any;
type IPosition = any;
type IRichLanguageConfigurati... | the_stack |
import {
createCompilerHost,
createFSHost,
getSmartContractPath,
normalizePath,
PouchDBFileSystem,
} from '@neo-one/local-browser';
import { getSemanticDiagnostics } from '@neo-one/smart-contract-compiler';
import { comlink } from '@neo-one/worker';
import { map } from 'rxjs/operators';
import ts from 'typesc... | the_stack |
module Display {
class DirtyArea {
private _xBegin:number = null;
private _yBegin:number = null;
private _xEnd:number = null;
private _yEnd:number = null;
public expand(x:number, y:number) {
this._xBegin = this._xBegin === null ? x : Math.min(this._xBegin, x);
this._xEnd = this._xEnd... | the_stack |
import { Vector } from '../vector';
import { StructVector } from './struct';
import { valueToString } from '../util/pretty';
import { DataType, Struct, RowLike } from '../type';
/** @ignore */ const kParent = Symbol.for('parent');
/** @ignore */ const kRowIndex = Symbol.for('rowIndex');
/** @ignore */ const kKeyToIdx ... | the_stack |
import { captureException } from '@sentry/core';
import { DebouncerEvents } from '../lib/collections/debouncerEvents/collection';
import { forumTypeSetting, testServerSetting } from '../lib/instanceSettings';
import moment from '../lib/moment-timezone';
import { addCronJob } from './cronUtil';
import { Vulcan } from '.... | the_stack |
import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
import { IonRefresher } from '@ionic/angular';
import { CoreApp } from '@services/app';
import { CoreEventObserver, CoreEvents } from '@singletons/events';
import { CoreSites } from '@services/sites';
import { CoreDomUtils } from '@services/utils/... | the_stack |
import { Currencies, OffersData, TradesData, Depth, Currency, Interval, HighLowOpenClose,
Markets, Offers, Offer, BisqTrade, MarketVolume, Tickers, Ticker, SummarizedIntervals, SummarizedInterval } from './interfaces';
const strtotime = require('./strtotime');
class BisqMarketsApi {
private cryptoCurrencyData: Cu... | the_stack |
import i18next from "i18next";
import { action, runInAction } from "mobx";
import retry from "retry";
import formatError from "terriajs-cesium/Source/Core/formatError";
import Rectangle from "terriajs-cesium/Source/Core/Rectangle";
import Resource from "terriajs-cesium/Source/Core/Resource";
import TileProviderError fr... | the_stack |
import { sep as osPathSeparator } from 'path';
import * as vscode from 'vscode';
import { TestLoadFinishedEvent, TestLoadStartedEvent, RetireEvent } from 'vscode-test-adapter-api';
import * as api from 'vscode-test-adapter-api';
import * as Sentry from '@sentry/node';
import { LoggerWrapper } from './LoggerWrapper';
i... | the_stack |
import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/groupsMappers";
import * as Parameters from "../models/parameters";
import { AzureMigrateContext } from "../azureMigrateContext";
/** Class representing a Groups. */
export class Groups {
private rea... | the_stack |
import {
bufferToHex,
ecsign,
keccak,
publicToAddress,
toBuffer,
} from 'ethereumjs-util';
import { rawEncode, soliditySHA3 } from 'ethereumjs-abi';
import {
concatSig,
isNullish,
legacyToBuffer,
recoverPublicKey,
} from './utils';
/**
* This is the message format used for `V1` of `signTypedData`.
... | the_stack |
import { HeaderMenu } from './grid.header.menu';
declare const Slick: any;
/**
* slick grid header builder class
*/
export class SlickGridHeader {
/* tslint:disable:variable-name function-name */
private _asyncPostRender: string = null;
private _behavior: string = null;
private _cannotTriggerInsert: boolean ... | the_stack |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HarnessLoader, TestKey } from '@angular/cdk/testing';
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';
import { MatInputHarness } from '@angular/material/input/testing';
import { MatFormFieldHarness } from '@angular/mat... | the_stack |
import * as util from './util';
import Queue from './Queue';
// Internal interface for BST
interface BSTreeNode<T> {
element: T;
leftCh: BSTreeNode<T> | null;
rightCh: BSTreeNode<T> | null;
parent: BSTreeNode<T> | null;
}
/**
* General binary search tree implementation.
*
* This interface allows one... | the_stack |
import * as assert from 'assert';
import * as path from 'path';
import * as fs from 'fs';
import { DiagnosticSeverity } from 'vscode';
import { before } from 'mocha';
import { PassThrough } from 'stream';
import { ModelCheckResult, CheckState, CheckStatus, ModelCheckResultSource, Value,
SpecFiles } from '../../../s... | the_stack |
import React, { Component, Key } from 'react';
import classNames from 'classnames';
import { action, toJS } from 'mobx';
import noop from 'lodash/noop';
import KeyCode from 'choerodon-ui/lib/_util/KeyCode';
import ConfigContext from 'choerodon-ui/lib/config-provider/ConfigContext';
import DataSet from '../data-set/Data... | the_stack |
export module InteractiveDataDisplay {
//Chart Viewer
export interface ViewState {
[name: string]: any;
}
export interface Titles {
[seriesName: string]: string;
}
export interface PlotInfo {
kind: string;
displayName: string;
titles?: Titles;
[pro... | the_stack |
import { Command, flags } from "@oclif/command";
import { OutputFlags } from "@oclif/parser";
import { error as oclifError } from "@oclif/errors";
import { readFile, outputFile, existsSync } from "fs-extra";
import { join, relative, parse } from "path";
import slash from "slash";
import ts from "typescript";
import { g... | the_stack |
import type { Context } from './src/server/context/index';
import type { core } from 'nexus';
declare global {
interface NexusGenCustomInputMethods<TypeName extends string> {
/**
* Json custom scalar type
*/
json<FieldName extends string>(fieldName: FieldName, opts?: core.CommonInputFieldConfig<Type... | the_stack |
import { $, append, clearNode, createStyleSheet, getContentHeight, getContentWidth } from 'vs/base/browser/dom';
import { IListRenderer, IListVirtualDelegate } from 'vs/base/browser/ui/list/list';
import { IListOptions, IListOptionsUpdate, IListStyles, List } from 'vs/base/browser/ui/list/listWidget';
import { ISplitVi... | the_stack |
import { coins, makeSignDoc, Secp256k1HdWallet } from "@cosmjs/amino";
import { sleep } from "@cosmjs/utils";
import { assertIsBroadcastTxSuccess } from "../cosmosclient";
import { SigningCosmosClient } from "../signingcosmosclient";
import {
dateTimeStampMatcher,
faucet,
launchpad,
launchpadEnabled,
nonNega... | the_stack |
import { Request, RequestHandler } from 'express';
declare global {
namespace Express {
namespace Multer {
/** Object containing file metadata and access information. */
interface File {
/** Name of the form field associated with this file. */
fieldna... | the_stack |
import { Color, CanvasTexture, Vector3, Matrix4 } from 'three'
import '../shader/SDFFont.vert'
import '../shader/SDFFont.frag'
import { BufferRegistry } from '../globals'
import { createParams } from '../utils'
import MappedQuadBuffer from './mappedquad-buffer'
import { IgnorePicker } from '../utils/picker'
import { ... | the_stack |
import axios from 'axios';
import { List } from 'immutable';
import { pick } from 'lodash';
import qs from 'qs';
import {
IParams,
} from './types';
import {
ArticleModel,
CommentFlagModel,
CommentModel,
CommentScoreModel,
IArticleModel,
IAuthorCountsModel,
ICommentDate,
ICommentFlagModel,
ICommen... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* Represents a Target gRPC Proxy resource. A target gRPC proxy is a component
* of load balancers intended for load balancing gRPC traffic. Global forwarding
* rules reference a target gRPC proxy. The Target gRPC Proxy referenc... | the_stack |
import { click, render, settled } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { setupMirage } from 'ember-cli-mirage/test-support';
// @ts-ignore: add ember-flatpickr types
import { setFlatpickrDate } from 'ember-flatpickr/test-support/helpers';
import { t } from 'ember-intl/test-suppor... | the_stack |
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
/**
* The JSON-serialized leaf certificate
*/
export interface CertificateVerificationDescription {
/**
* base-64 representation of X5... | the_stack |
import valueParser from 'postcss-value-parser';
import type { FunctionNode, Dimension, Node, DivNode, WordNode, SpaceNode } from 'postcss-value-parser';
import { oklabToDisplayP3 } from './convert-oklab-to-display-p3';
import { oklchToDisplayP3 } from './convert-oklch-to-display-p3';
import { Declaration, Result } from... | the_stack |
import {assert} from 'chai';
import * as parse5 from 'parse5';
import * as dom5 from '../index';
/// <reference path="mocha" />
suite('dom5', () => {
suite('Parse5 Node Manipulation', () => {
const docText = `<!DOCTYPE html>` +
`<div id='A' qux>a1<div bar='b1' bar='b2'>b1</div>a2</div>` +
`<div... | the_stack |
export class NumRange {
// TODO: check NaN
readonly start: number;
readonly end: number;
readonly hasStart: boolean; // is start inclusive?
readonly hasEnd: boolean; // is end inclusive?
constructor(start: number, end: number, hasStart: boolean, hasEnd: boolean) {
this.start = start;
... | the_stack |
import {
ApexTestResultOutcome,
HumanReporter,
TestLevel,
TestResult,
TestService
} from '@salesforce/apex-node';
import { SfdxProject } from '@salesforce/core';
import * as pathUtils from '@salesforce/salesforcedx-utils-vscode/out/src/helpers';
import { ComponentSet } from '@salesforce/source-deploy-retrieve... | the_stack |
import assert from 'assert';
import * as ThingTalk from 'thingtalk';
import * as db from './db';
import * as entityModel from '../model/entity';
// import * as stringModel from '../model/strings';
import * as userModel from '../model/user';
import { clean, splitParams } from './tokenize';
import ThingpediaClient from... | the_stack |
import { Ipfs } from "ipfs";
import { IdentityProvider } from "orbit-db-identity-provider";
import {
InsertOptions,
InsertOneOptions,
DocumentInterface,
FindOptionsInterface,
FindOneAndUpdateOptionsInterface,
FindOneAndDeleteOptionsInterface,
UpdateOptionsInterface,
UpdateOneOptionsInterface,
UpdateMa... | the_stack |
import * as React from 'react';
import { useConst } from '@fluentui/react-hooks';
import {
IFloatingSuggestionItemProps,
IFloatingSuggestionItem,
IFloatingPeopleSuggestionsProps,
} from '@fluentui/react-experiments/lib/FloatingPeopleSuggestionsComposite';
import { UnifiedPeoplePicker } from '@fluentui/react-exper... | the_stack |
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config-base';
interface Blob {}
declare class ChimeSDKMe... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.