text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
import * as url from 'url';
import { urlUtil, validation } from ".";
import auth from '../Auth';
import { Logger } from "../cli";
import config from "../config";
import { BasePermissions } from '../m365/spo/base-permissions';
import request from "../request";
export interface ContextInfo {
FormDigestTimeoutSeconds: ... | the_stack |
import { expect } from "chai";
import { BasicTests } from "test/helper/Basic";
import { IntervalTimeline, IntervalTimelineEvent } from "./IntervalTimeline";
describe("IntervalTimeline", () => {
BasicTests(IntervalTimeline);
context("inserting/deleting events", () => {
it("accepts events into the timeline", () =... | the_stack |
import { Hash, HashedObject, HashedSet, Literal, LiteralUtils, MutationOp } from 'data/model';
import { AgentPod } from 'mesh/service/AgentPod';
import { Store } from 'storage/store';
import { Logger, LogLevel } from 'util/logging';
import { Endpoint } from '../network/NetworkAgent';
import { PeerGroupAgent } from '../... | the_stack |
import { normalize } from 'path';
import {
BotConfigWithPath,
BotConfigWithPathImpl,
CommandServiceImpl,
CommandServiceInstance,
} from '@bfemulator/sdk-shared';
import { BotConfiguration } from 'botframework-config';
import { load } from '@bfemulator/app-shared/built/state/actions/botActions';
import { Crede... | the_stack |
import { EventEmitter, Injectable } from '@angular/core';
import { arrayRemoveItem, empty, isObject } from '@deepkit/core';
import { DatabaseCommit, DatabaseInfo, EntityPropertySeed, EntitySeed, FakerTypes, findFaker } from '@deepkit/orm-browser-api';
import { Changes, changeSetSymbol, ClassSchema, getChangeDetector, g... | the_stack |
import { Subscription } from 'rxjs';
import cloneDeep from 'lodash/cloneDeep';
import { RevertExplorationModalComponent } from './modal-templates/revert-exploration-modal.component';
require(
'components/version-diff-visualization/' +
'version-diff-visualization.component.ts');
require('domain/utilities/url-inter... | the_stack |
import type BN from 'bn.js';
import type { ApiPromise } from '@polkadot/api';
import type { SubmittableExtrinsic } from '@polkadot/api/types';
import type { AccountId } from '@polkadot/types/interfaces';
import type { NodeRuntimeProxyType, PalletProxyProxyDefinition } from '@polkadot/types/lookup';
import React, { use... | the_stack |
import Debug from '@prisma/debug'
import { fixBinaryTargets, getOriginalBinaryTargetsValue, printGeneratorConfig } from '@prisma/engine-core'
import { enginesVersion, getCliQueryEngineBinaryType } from '@prisma/engines'
import type { DownloadOptions } from '@prisma/fetch-engine'
import { download } from '@prisma/fetch-... | the_stack |
import React from 'react';
import { ConfigProvider, Table, Button, DatePicker, Form, Icon, Switch, Pagination, Dialog, Input, Select } from '@alicloud/console-components';
import Actions, { LinkButton } from '@alicloud/console-components-actions';
import { withRouter } from 'react-router-dom';
import Page from '@/compo... | the_stack |
import { ERRORS } from "@algo-builder/web";
import { assert } from "chai";
import * as path from "path";
import * as sinon from "sinon";
import { types } from "../../../src/config";
import { BuilderContext } from "../../../src/internal/context";
import { Environment } from "../../../src/internal/core/runtime-environme... | the_stack |
import commander from "commander";
import { build as viteBuild } from "vite";
import { loadConfig } from "../lib/config";
import { makeViteConfig } from "../lib/vite-config";
import cheerio from "cheerio";
import fs from "fs";
import path from "path";
import micromatch from "micromatch";
import chalk from "chalk";
impo... | the_stack |
import * as Common from '../../core/common/common.js';
import * as i18n from '../../core/i18n/i18n.js';
import * as Platform from '../../core/platform/platform.js';
import * as Root from '../../core/root/root.js';
import * as Persistence from '../../models/persistence/persistence.js';
import * as Workspace from '../../... | the_stack |
import { css } from '@emotion/core'
import styled from '@emotion/styled'
import { giphyBlue, giphyGreen, giphyPurple, giphyRed, giphyYellow } from '@giphy/js-brand'
import { IGif, ImageAllTypes, IUser } from '@giphy/js-types'
import { getAltText, getBestRendition, getGifHeight, Logger } from '@giphy/js-util'
import Rea... | the_stack |
import { Component, Inject, InjectionToken, OnInit, ViewContainerRef } from '@angular/core';
import {
aggregationTranslations,
AggregationType,
DAY,
HistoryWindowType,
quickTimeIntervalPeriod,
RealtimeWindowType,
Timewindow,
TimewindowType
} from '@shared/models/time/time.models';
import { OverlayRef } ... | the_stack |
import { fireEvent, render } from "@testing-library/react";
import { expect } from "chai";
import * as enzyme from "enzyme";
import * as React from "react";
import * as sinon from "sinon";
import { Key } from "ts-key-enum";
import { FilteringInput, FilteringInputStatus } from "../../components-react/filtering/Filtering... | the_stack |
import {
AnyFunction,
Cartesian2Option,
Cartesian3Option,
Cartesian4Option,
PolygonHierarchyOption,
CartographicInDegreeOption,
NearFarScalarOption,
DistanceDisplayConditionOption,
ColorInByteOption,
MaterialOption,
VcComponentInternalInstance,
RectangleInDegreeOption,
BoundingRectangleOption,... | the_stack |
import {
addHeaders,
getAWSEnvironment,
getEdgeHost,
getEventEntitySize,
getPatchedTraceId,
getRandomId,
isAwsService,
isEmptyString,
isKeepHeadersOn,
isTimeoutTimerEnabled,
isValidAlias,
lowerCaseObjectKeys,
} from '../utils';
import {
extractBodyFromEmitSocketEvent,
extractBodyFromEndFunc,... | the_stack |
import {
CancellationToken,
CompletionItemKind,
DocumentSymbol,
Location,
SymbolInformation,
SymbolKind,
} from 'vscode-languageserver';
import { URI } from 'vscode-uri';
import { resolveAliasDeclaration } from '../analyzer/aliasDeclarationUtils';
import { AnalyzerFileInfo, ImportLookup } from ... | the_stack |
import { IComponent, ComponentList, TComAndDir, DirectiveList } from '../types';
import { utils } from '../utils';
import { Compile } from './compile';
import { buildComponentScope } from './compiler-utils';
import { Vnode, parseTemplateToVnode, isTagName } from '../vnode';
import { mountDirective } from './directive-... | the_stack |
import * as cp from 'child_process';
import ChildProcess = cp.ChildProcess;
import { TextDocumentChangeEvent, TextDocument, Disposable, OutputChannel, FileSystemWatcher as VFileSystemWatcher, DiagnosticCollection, ProviderResult, CancellationToken, Position as VPosition, Location as VLocation, Range as VRange, Comple... | the_stack |
import { ScrollView, View } from "@tarojs/components"
import { ViewProps } from "@tarojs/components/types/View"
import { nextTick } from "@tarojs/taro"
import classNames from "classnames"
import * as _ from "lodash"
import * as React from "react"
import {
Children,
isValidElement,
ReactElement,
ReactNode,
use... | the_stack |
import * as Generator from 'yeoman-generator';
import * as lodash from 'lodash';
import * as chalk from 'chalk';
import { GeneratorTeamsAppOptions } from './../app/GeneratorTeamsAppOptions';
import { Yotilities } from './../app/Yotilities';
import { Project, Scope, Decorator, ClassDeclaration } from "ts-morph";
import ... | the_stack |
declare module 'http' {
import * as stream from 'node:stream';
import { URL } from 'node:url';
import { Socket, Server as NetServer } from 'node:net';
// incoming headers will never contain number
interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
accept?: string | undefi... | the_stack |
import * as assert from 'assert';
import { ITextFileService, snapshotToString, TextFileOperationError, TextFileOperationResult, stringToSnapshot } from 'vs/workbench/services/textfile/common/textfiles';
import { URI } from 'vs/base/common/uri';
import { join, basename } from 'vs/base/common/path';
import { UTF16le, UTF... | the_stack |
'use strict';
import { Agent } from 'https';
import { endpoint } from 'azure-iot-common';
import * as ConnectionString from './connection_string';
import * as SharedAccessSignature from './shared_access_signature';
import { RestApiClient } from 'azure-iot-http-base';
import { DeviceMethod } from './device_method';
imp... | the_stack |
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import Outputs from '../../../../../resources/outputs';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { Raidbos... | the_stack |
import 'mocha';
import { expect } from '@integration/testing-tools';
import { StageManager } from '@serenity-js/core';
import { SceneFinished, SceneParametersDetected, SceneSequenceDetected, SceneStarts, SceneTagged, SceneTemplateDetected, TestRunFinishes } from '@serenity-js/core/lib/events';
import { FileSystemLocat... | the_stack |
import { IResource, Resource, Duration } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { CfnUserPoolClient } from './cognito.generated';
import { IUserPool } from './user-pool';
import { ClientAttributes } from './user-pool-attr';
import { IUserPoolResourceServer, ResourceServerScope } from './us... | the_stack |
import {
ExportInfo,
Link,
Namespace,
Paths,
Repository,
RepositoryCollection,
RepositoryCreation,
RepositoryTypeCollection,
} from "@scm-manager/ui-types";
import { useMutation, useQuery, useQueryClient } from "react-query";
import { apiClient } from "./apiclient";
import { ApiResult, ApiResultWithFetc... | the_stack |
import React, { useCallback, memo } from 'react'
import { Button, ButtonSize, ButtonType, IconArrowWhite } from '@audius/stems'
import { useHistory } from 'react-router'
import { ReactComponent as IconAlbum } from 'assets/img/iconAlbum.svg'
import { ReactComponent as IconCollectibles } from 'assets/img/iconCollectibl... | the_stack |
import * as React from "react";
import "./AddItemPanel.scss";
import { Project } from "../../Models/PortfolioPlanningQueryModels";
import {
IProject,
IAddItems,
IAddItemPanelProjectItems,
LoadingStatus,
IAddItem,
IProjectConfiguration
} from "../../Contracts";
import { PortfolioPlanningDataServi... | the_stack |
import { ContractAddresses } from '@0x/contract-addresses';
import { assetDataUtils, ERC20AssetData, generatePseudoRandomSalt, orderCalculationUtils } from '@0x/order-utils';
import { RFQTIndicativeQuote } from '@0x/quote-server';
import { SignedOrder } from '@0x/types';
import { AbiEncoder, BigNumber } from '@0x/utils... | the_stack |
import { Icon } from "@hpcc-js/common";
import { BaseScope, ScopeEdge, ScopeGraph, ScopeSubgraph, ScopeVertex } from "@hpcc-js/comms";
import { Edge, IGraphData, Lineage, Subgraph, Vertex } from "@hpcc-js/graph";
import { Edge as UtilEdge, Subgraph as UtilSubgraph, Vertex as UtilVertex } from "@hpcc-js/util";
import { ... | the_stack |
import test from 'tape-promise/tape';
import {Device} from '@luma.gl/api';
import {webgl1TestDevice, webgl2TestDevice} from '@luma.gl/test-utils';
import {assembleShaders, picking, fp64, pbr} from '@luma.gl/shadertools';
import type {WebGLDevice} from '@luma.gl/webgl';
function getInfo(device: Device) {
return {
... | the_stack |
import * as tf from '../index';
import {ALL_ENVS, describeWithFlags} from '../jasmine_util';
import {expectArraysClose, expectArraysEqual} from '../test_util';
describeWithFlags('greaterEqual', ALL_ENVS, () => {
// Tensor1D:
it('Tensor1D - int32', async () => {
let a = tf.tensor1d([1, 4, 5], 'int32');
let ... | the_stack |
import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
export const CloudError = CloudErrorMapper;
export const BaseResource = BaseResourceMapper;
export const RoleDefinitionFilter: msRest.CompositeMapper = {
serializedName: "RoleDefinitionFilter... | the_stack |
import { default as substitutions, IMatrixToSlackResult } from "../../src/substitutions";
import { FakeMain } from "../utils/fakeMain";
import { expect } from "chai";
import { Main } from "../../src/Main";
import { BridgedRoom } from "../../src/BridgedRoom";
describe("Substitutions", () => {
const fakeMain = new F... | the_stack |
import express from "express";
import _ from "lodash";
import {
getUser,
mustBeAdmin
} from "magda-typescript-common/src/authorization-api/authMiddleware";
import buildJwt from "magda-typescript-common/src/session/buildJwt";
import GenericError from "magda-typescript-common/src/authorization-api/GenericError";
... | the_stack |
import * as am5 from "@amcharts/amcharts5";
import * as am5map from "@amcharts/amcharts5/map";
import am5geodata_worldLow from "@amcharts/amcharts5/geodata/worldLow";
import am5themes_Animated from "@amcharts/amcharts5/themes/Animated";
/**
* ---------------------------------------
* This demo was created usi... | the_stack |
//inconsistent namespace: this is a helper funtion from tables.js and should not pollute the global namespace!
declare function sanitizeDuration(duration: string): string;
declare namespace Vex {
function L(block: string, args: any[]): void;
function Merge<T extends Object>(destination: T, source: Object): T;
... | the_stack |
import { Matrix } from './Matrix'
import { Vector3 } from './Vector3'
import { MathTmp } from './preallocatedVariables'
import { DEG2RAD, RAD2DEG } from './types'
import { Scalar } from "./Scalar"
/** @public */
export type ReadOnlyQuaternion = {
readonly x: number
readonly y: number
readonly z: number
readonl... | the_stack |
import { makeAutoObservable, runInAction, toJS, values } from 'mobx';
import { SwapResponse } from 'types/generated/loop_pb';
import { BuildSwapSteps, Quote, SwapDirection, SwapTerms } from 'types/state';
import Big from 'big.js';
import { percentage } from 'util/bigmath';
import { BalanceMode } from 'util/constants';
... | the_stack |
import * as assert from 'power-assert';
import {dtsmake} from '../src/dtsmake';
import fs = require('fs');
describe("Parsing TernJS definition JSON file(s), ",()=>{
let dg = new dtsmake.DTSMake();
context("parseToDTS()", ()=>{
it.skip("should parse !type type to DTS",()=>{
let baseDef = {
"F... | the_stack |
import ee from 'event-emitter';
import { AlfrescoApiConfig } from './alfrescoApiConfig';
import superagent, { Response, ProgressEvent } from 'superagent';
import { Authentication } from './authentication/authentication';
import { BasicAuth } from './authentication/basicAuth';
import { Oauth2 } from './authentication/oa... | the_stack |
import {
execute,
GraphQLBoolean,
GraphQLID,
GraphQLInputObjectType,
GraphQLInt,
GraphQLList,
GraphQLNonNull,
GraphQLObjectType,
GraphQLScalarType,
GraphQLSchema,
GraphQLString,
parse,
} from 'graphql';
import { ExecutionResult } from '@graphql-tools/utils';
import { stitchSchemas } from '@grap... | the_stack |
import {
computeHMACSHA256,
truncatedISO8061Date
} from "../../common/utils/utils";
import { BlobSASResourceType } from "./BlobSASResourceType";
import { SASProtocol } from "./IAccountSASSignatureValues";
import { IIPRange, ipRangeToString } from "./IIPRange";
/**
* IBlobSASSignatureValues is used to help generat... | the_stack |
import { IAM, Lambda } from 'aws-sdk'
import { SdkUtils } from 'lib/sdkutils'
import { TaskOperations } from 'tasks/LambdaDeployFunction/TaskOperations'
import { deployCodeAndConfig, deployCodeOnly, TaskParameters } from 'tasks/LambdaDeployFunction/TaskParameters'
import { emptyConnectionParameters } from '../testCommo... | the_stack |
jest.unmock("@dharmaprotocol/contracts");
// Unmock the "fs-extra" package in order to give us
// access to the deployed TokenRegistry on the
// test chain.
jest.unmock("fs-extra");
// External libraries
import * as moment from "moment";
import * as Web3 from "web3";
// Utils
import { BigNumber } from "../../../utils... | the_stack |
import pathlib from "path";
import semver from "semver";
import * as ts from "@tslab/typescript-for-tslab";
import { isValidModuleName } from "./util";
import { CodeMetadata } from "./metadata";
import { normalizeJoin } from "./tspath";
// TODO: Disallow accessing "module" of Node.js.
export interface SideOutput {
... | the_stack |
import * as dotnetInteractiveInterfaces from "../dotnet-interactive/dotnet-interactive-interfaces";
import { Kernel, IKernelCommandHandler } from "../common/interactive/kernel";
import { TokenGenerator } from "../common/interactive/tokenGenerator";
import { signalTransportFactory } from "../dotnet-interactive/signalr-c... | the_stack |
import * as test from "tape";
import SVGPathProperties from "../src/svg-path-properties";
import { inDelta } from "./inDelta";
test("getPointAtLength testing lineTo", function (test) {
const paths = [
{
path: "M0,50L500,50",
xValues: [0, 100, 200, 300, 400, 500],
yValues: [50, 50, 50, 50, 50, 5... | the_stack |
import log from "../../../log";
import assert from "../../../utils/assert";
import {
be2toi,
be3toi,
be4toi,
be8toi,
concat,
itobe4,
itobe8,
} from "../../../utils/byte_parsing";
import {
hexToBytes,
readNullTerminatedString,
} from "../../../utils/string_parsing";
import { MAX_32_BIT_INT } from "./co... | the_stack |
//@ts-check
///<reference path="devkit.d.ts" />
declare namespace DevKit {
namespace FormContract {
interface Header extends DevKit.Controls.IHeader {
/** Date and time when the record was created. */
CreatedOn: DevKit.Controls.DateTime;
/** Owner Id */
OwnerId: DevKit.Controls.Lookup;
/** Select the... | the_stack |
import Stats from 'three/examples/jsm/libs/stats.module.js';
import { GUI } from 'dat.GUI';
import { SimpleDropzone } from 'simple-dropzone';
import { ThreeRenderer } from './three_renderer';
import { PathtracingRenderer, Loader } from '../lib/index';
import * as THREE from 'three';
import { OrbitControls } from 'three... | the_stack |
* ---------------------------------------------------------------
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
* ## ##
* ## AUTHOR: acacode ##
* ## SOURCE: https://github.com/acacode/swagger-type... | the_stack |
/// <reference types="node" />
/**
* Jdenticon
* http://jdenticon.com
*
* Copyright (c) 2014-2019 Daniel Mester Pirttijärvi
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software with... | the_stack |
export interface DescribeSpecInfoRequest {
/**
* 可用区
*/
Zone?: string;
}
/**
* TerminateDBInstance请求参数结构体
*/
export interface TerminateDBInstanceRequest {
/**
* 实例ID,格式如:cmgo-p8vnipr5。
*/
InstanceId: string;
}
/**
* CreateDBInstance请求参数结构体
*/
export interface CreateDBInstance... | the_stack |
//@ts-check
///<reference path="devkit.d.ts" />
declare namespace DevKit {
namespace FormCompetitor {
interface Header extends DevKit.Controls.IHeader {
/** Type the amount of revenue reported in the competitor's annual report or other source. */
ReportedRevenue: DevKit.Controls.Money;
/** Type the stock e... | the_stack |
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest';
import * as models from '../models';
/**
* @class
* Recommendations
* __NOTE__: An instance of this class is automatically created for an
* instance of the AdvisorManagementClient.
*/
export interface Recommen... | the_stack |
import * as Redis from 'ioredis';
import { Module, RedisModuleOptions } from '../module.base';
import { SearchCommander } from './redisearch.commander';
import {
FTAggregateParameters, FTConfig, FTCreateParameters, FTFieldOptions, FTFieldType, FTIndexType, FTInfo, FTSchemaField,
FTSearchParameters, FTSearchResp... | the_stack |
import { expect, test } from '@oclif/test'
import { resolve } from 'path'
import chai from 'chai'
import spies from 'chai-spies'
import cmd from '../src'
import sinon from 'sinon'
import * as IpUtil from '../src/utils/public-ip'
chai.use(spies)
describe('monika', () => {
let getPublicIPStub: any
let getPublicNetw... | the_stack |
import { browser, ExpectedConditions as until } from 'protractor';
import { execSync } from 'child_process';
import { appHost, checkLogs, checkErrors, testName } from '../protractor.conf';
import * as crudView from '../views/crud.view';
import * as oauthView from '../views/oauth.view';
describe('OAuth', () => {
con... | the_stack |
import dayjs from 'dayjs';
import type { ForwardedRef, Ref } from 'react';
import React, {
useCallback,
useContext,
useEffect,
useImperativeHandle,
useMemo,
useRef,
useState,
} from 'react';
import { Platform, ScrollView, useWindowDimensions, View } from 'react-native';
import Animated, { FadeInDown, Fade... | the_stack |
/**
*
* Copyright 2018 Infosys Ltd.
* Use of this source code is governed by MIT license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.”
*
**/
import { Injectable } from "@angular/core";
import { Router } from "@angular/router";
@Injectable()
export class IdpdataService {
constr... | the_stack |
import * as childProcess from 'child_process';
import * as crypto from 'crypto';
import * as fsExtra from 'fs-extra';
import * as path from 'path';
import * as util from 'util';
const execFilePromise = util.promisify(childProcess.execFile);
const execPromise = util.promisify(childProcess.exec);
import {MountPoint} fr... | the_stack |
import React from 'react';
import {
Text,
TouchableOpacity,
View,
} from 'react-native';
import {
fireEvent,
render,
RenderAPI,
waitForElement,
} from 'react-native-testing-library';
import {
light,
mapping,
} from '@eva-design/eva';
import { ApplicationProvider } from '../../theme';
import {
Datepi... | the_stack |
import { buildCellMatcher, buildCommonExpectedStateStyle, buildReceivedCellWithCommonAttributes, ExpectedCell, ExpectedStateStyle } from '../matcher-utils';
import {
ExpectedBoundaryEventModelElement,
ExpectedCallActivityModelElement,
ExpectedEventBasedGatewayModelElement,
ExpectedEventModelElement,
ExpectedS... | the_stack |
import { HttpInfrastructureClient } from "./generated/httpInfrastructure/src";
import { assert } from "chai";
import {
PipelinePolicy,
redirectPolicy,
exponentialRetryPolicy,
RestError
} from "@azure/core-rest-pipeline";
import { isNode } from "@azure/core-util";
import {
responseStatusChecker,
responseSta... | the_stack |
import {TweenMax, TimelineMax, Power2, Power3, Power4} from 'gsap';
import objectAssign from 'object-assign';
import {
PlaneBufferGeometry, DataTexture, Vector2,
Vector3, Vector4, RGBFormat, ShaderMaterial, TextureLoader, Color,
Mesh, UnsignedByteType, UVMapping, RepeatWrapping,
LinearFilter, Texture, CanvasTex... | the_stack |
import {createContext, useContext, useMemo, useState} from 'react'
import Link from 'next/link'
import {Badge, Button, Divider, H2, H4, H5, Tabs, Tag, Text} from '@/omui'
import {SearchInput, TopContent} from '@/components/lib'
import {Alert} from '@/components/Alert'
import {FontAwesomeIcon} from '@fortawesome/react-f... | the_stack |
import type {
FileBoxInterface,
} from 'file-box'
import {
log,
} from '../config.js'
import type { PuppetSkeleton } from '../puppet/puppet-skeleton.js'
import type {
ContactPayload,
ContactPayloadFilterFunction,
ContactQueryFilter,
} ... | the_stack |
* @module iModels
*/
// cspell:ignore cset csets ecchanges
import * as path from "path";
import {
AccessToken, BeDuration, ChangeSetStatus, GuidString, IModelHubStatus, IModelStatus, Logger, OpenMode,
} from "@itwin/core-bentley";
import {
BriefcaseId, BriefcaseIdValue, BriefcaseProps, ChangesetFileProps, Change... | the_stack |
namespace MakerJs.exporter {
/**
* @private
*/
interface IChainLinkFunction {
(pathValue: IPath, link: IChainLink): void;
}
/**
* @private
*/
interface IChainLinkFunctionMap {
[type: string]: IChainLinkFunction;
}
/**
* @private
*/
functi... | the_stack |
import {ethers} from 'hardhat';
import {setupTestGiveaway} from './fixtures';
import {constants} from 'ethers';
import {waitFor, expectReceiptEventWithArgs} from '../utils';
import {expect} from '../chai-setup';
import helpers from '../../lib/merkleTreeHelper';
const {calculateClaimableAssetHash} = helpers;
const zer... | the_stack |
import { Component, OnInit, NgModule } from "@angular/core";
import { Router } from "@angular/router";
import { IdprestapiService } from "../idprestapi.service";
import { IdpService } from "../idp-service.service";
import { IdpdataService } from "../idpdata.service";
import {BrowserAnimationsModule} from "@angular/plat... | the_stack |
import { expect } from "chai";
import {
parseOutput,
Result,
buildMessage,
parseErrorOutput,
Output,
TestCompleted,
parseResult,
} from "../result";
describe("result", () => {
describe("parse results", () => {
it("one line pass", () => {
const line =
'{"event":"testCompleted","status... | the_stack |
import * as React from "react";
import {Link} from "react-router-dom";
import {Helpers} from "../Helpers";
import {Component, FormEvent, ReactElement} from "react";
import {JobsonAPI} from "../JobsonAPI";
import {APIErrorMessage} from "../apitypes/APIErrorMessage";
import {APIJobDetails} from "../apitypes/APIJobDetails... | the_stack |
import { closeSync, readFileSync, writeSync } from 'fs';
import { FileLoader, Vector2, Vector3 } from 'three';
import { writeDataToBuffer } from '../common/io';
import MutableTypedArray from '../common/MutableTypedArray';
import { dataSizeForType, getRuntimeParams } from '../common/utils';
import {
SparseMatrix,
Trip... | the_stack |
import {
AttributeResolutionDirectiveSet,
CdmCorpusDefinition,
CdmEntityAttributeDefinition,
CdmEntityDefinition,
CdmEntityReference,
CdmFolderDefinition,
cdmObjectType,
CdmProjection,
CdmTypeAttributeDefinition,
resolveOptions,
cdmStatusLevel,
CdmDataTypeReference
} from... | the_stack |
// As of 2022-01-17, PSD.js does not provide its own type definitions, and does
// not have an entry in the DefinitelyTyped project.
// As such, we provide our own types.
//
// Note: These types are based on the browser build, not the Node.js build!
export = PSD;
declare class PSD {
parsed: boolean;
header: any |... | the_stack |
import { combineUrls, Components, registerComponent } from '../../lib/vulcan-lib';
import { useMulti } from '../../lib/crud/withMulti';
import React, { useEffect, useState } from 'react';
import { Link } from '../../lib/reactRouterWrapper';
import { useLocation } from '../../lib/routeUtil';
import { userCanDo } from '.... | the_stack |
* Indicates an object that has resources that can be explicitly disposed.
*/
export interface Disposable {
/**
* Dispose this object's resources.
*/
[Disposable.dispose](): void;
}
export namespace Disposable {
const disposablePrototype: object = Object.defineProperty({ }, Symbol.toStr... | the_stack |
import * as vscode from 'vscode';
import ActiveConnectionCodeLensProvider from './activeConnectionCodeLensProvider';
import ConnectionController, {
DataServiceEventTypes
} from '../connectionController';
import { createLogger } from '../logging';
import { ExplorerController, ConnectionTreeItem, DatabaseTreeItem } fr... | the_stack |
import $ from 'mdui.jq/es/$';
import extend from 'mdui.jq/es/functions/extend';
import { JQ } from 'mdui.jq/es/JQ';
import 'mdui.jq/es/methods/addClass';
import 'mdui.jq/es/methods/each';
import 'mdui.jq/es/methods/find';
import 'mdui.jq/es/methods/first';
import 'mdui.jq/es/methods/hasClass';
import 'mdui.jq/es/method... | the_stack |
import * as vscode from 'vscode';
import { Utils } from 'vscode-uri';
import { FileSystem, Output, JsonValidator } from '../../utils';
import { Schematic } from './schematic';
import { CollectionJsonSchema, CollectionSchematicJsonSchema } from './json-schemas';
import { findCollectionUri } from './find-collection';
... | the_stack |
import abiDecoder from 'abi-decoder'
import Web3 from 'web3'
import { HttpProvider } from 'web3-core'
import { JsonRpcPayload, JsonRpcResponse } from 'web3-core-helpers'
import { PrefixedHexString } from 'ethereumjs-util'
import { EventData } from 'web3-eth-contract'
import { gsnRuntimeVersion } from '@opengsn/common'... | the_stack |
import * as t from '@babel/types';
import traverse, {NodePath} from '@babel/traverse';
import MigrationReporter from './migration_reporter';
import flowTypeAtPos from './flow_type_at_pos';
export default function migrateToTypeScript(
reporter: MigrationReporter,
filePath: string,
file: t.File,
fileStat... | the_stack |
import React from "react";
import {
AppBar,
// Divider,
Drawer,
List,
// ListItem,
// ListItemIcon,
// ListItemText,
Toolbar,
Link as MuiLink,
Typography,
Backdrop,
NoSsr,
CircularProgress,
Grow,
Fade,
Hidden,
IconButton
} from "@material-ui/core";
import { Menu as MenuIcon, Close as C... | the_stack |
import {
CdmCollection,
CdmCorpusContext,
CdmDataPartitionDefinition,
CdmDataPartitionPatternDefinition,
CdmEntityDeclarationDefinition,
CdmFileStatus,
cdmIncrementalPartitionType,
cdmLogCode,
CdmObject,
CdmObjectDefinitionBase,
cdmObjectType,
CdmTraitCollection,
CdmT... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { StorageAccounts } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { StorageManagementClient } from "../stor... | the_stack |
import { SyntaxNode } from "web-tree-sitter";
import { TreeUtils } from "../util/treeUtils";
import {
Expression,
EValueDeclaration,
mapSyntaxNodeToExpression,
ETypeAliasDeclaration,
ETypeDeclaration,
EUnionVariant,
EPortAnnotation,
} from "./utils/expressionTree";
import { IProgram } from "./program";
im... | the_stack |
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Provider } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { WebSiteManagementClient } from "../webSiteMana... | the_stack |
export interface DescribeProjectResponse {
/**
* 项目id
*/
ProjectId?: string;
/**
* 项目名称
*/
ProjectName?: string;
/**
* 项目预算
*/
ProjectBudget?: number;
/**
* 项目机构
*/
ProjectOrg?: string;
/**
* 项目简介
*/
ProjectIntroduction?... | the_stack |
import Point from "openfl/geom/Point";
import MatrixUtil from "./../../starling/utils/MatrixUtil";
import TextureOptions from "./../../starling/textures/TextureOptions";
import Rectangle from "openfl/geom/Rectangle";
import Matrix from "openfl/geom/Matrix";
import Bitmap from "openfl/display/Bitmap";
import BitmapData ... | the_stack |
import { Component, OnInit, Renderer2, ViewChild, ElementRef, Input } from '@angular/core';
import * as jp from 'jsplumb';
import { fromEvent } from 'rxjs/internal/observable/fromEvent';
import { ActivatedRoute } from '@angular/router';
import { WorkflowNode } from '../model/workflowNode';
import { WorkflowLink } from ... | the_stack |
import { mapValues, compact, xor, uniq, pickBy } from "lodash-es"
import Prismatic from "data/specs/Prismatic"
import Capstone from "data/specs/Capstone"
import Elementary from "data/specs/Elementary"
import { Polyhedron, Face, Cap } from "math/polyhedra"
import { isInverse, getOrthonormalTransform, PRECISION } from "... | the_stack |
import * as a from '../parser/ast';
import { orStr } from '../util';
import { TypeContext, IdentTypeDef } from './context';
import { TypeError } from './error';
export function typeCheck(mod: a.Module, ctx: TypeContext) {
ctx.enterScope();
// FIXME: process imports
// register global decls
mod.value.decls.fo... | the_stack |
import * as assert from "assert";
import * as llvm from "llvm-node";
import * as ts from "typescript";
import {CodeGenerationDiagnostics} from "../../code-generation-diagnostic";
import {CompilationContext} from "../../compilation-context";
import {CodeGenerationContext} from "../code-generation-context";
import {invok... | the_stack |
export const setupPrestoMode = (ace) => {
ace.define("ace/mode/presto_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text_highlight_rules"], function (require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight... | the_stack |
import {
DiagramPluginSettings,
SettingsTheme,
} from "src/DiagramPluginSettings";
export type DrawioUiThemes = "kennedy" | "min" | "atlas" | "dark" | "sketch";
export type DrawioUrlParamsFlag = "0" | "1";
/**
* UrlParams configuration read by drawio
* See: https://www.diagrams.net/doc/faq/supported-url-parame... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.