text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
export const initEditor = (monacoEditor): void => {
monacoEditor.languages.register({ id: 'mermaid' });
const requirementDiagrams = [
'requirement',
'functionalRequirement',
'interfaceRequirement',
'performanceRequirement',
'physicalRequirement',
'designConstraint'
];
const keywords: {
[key: string]... | 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';
import {Readable} from 'stream';
interface... | the_stack |
import assert = require('assert');
import trm = require('../../lib/taskRunner');
import path = require('path');
import os = require('os');
import fs = require('fs');
function setResponseFile(name: string) {
process.env['MOCK_RESPONSES'] = path.join(__dirname, name);
}
describe('AzureCLI Suite', function () {
... | the_stack |
import * as stream from "stream";
import * as util from "util";
import { parseJson5 } from "@adpt/utils";
import * as ld from "lodash";
import * as sb from "stream-buffers";
import * as xml2js from "xml2js";
import {
AnyProps,
DOMNode,
DOMObject,
} from "./dom";
const rootName = "Adapt";
async function ... | the_stack |
import {
ICompiler,
ITsAccessor,
ITsClass,
ITsConstructor,
ITsDocBase,
ITsEnum,
ITsEnumMember,
ITsFlags,
ITsInterface,
ITsMethod,
ITsParameter,
ITsProperty,
ITsSignature,
ITsTypeAlias,
Kind,
} from "@documentalist/client";
import { relative } from "path";
impo... | the_stack |
import { ObjectMap } from '@0x/types';
import { DataItem } from 'ethereum-types';
import * as ethUtil from 'ethereumjs-util';
import * as _ from 'lodash';
import { BigNumber } from '../../../configured_bignumber';
import { SetCalldataBlock } from '../../calldata/blocks/set';
import { CalldataBlock } from '../../callda... | the_stack |
import {
CompressionFlag,
ContextFlag,
instantiateSecp256k1Wasm,
instantiateSecp256k1WasmBytes,
Secp256k1Wasm,
} from '../bin/bin';
import { RecoverableSignature, RecoveryId, Secp256k1 } from './secp256k1-types';
export { RecoverableSignature, RecoveryId, Secp256k1 };
const enum ByteLength {
compactSig =... | the_stack |
import { CommandDescriptor, Commands } from ".";
import { ArgumentError, commands, Context, Direction, EditorRequiredError, Shift } from "../api";
import { Register } from "../state/registers";
function getRegister<F extends Register.Flags | Register.Flags[]>(
_: Context.WithoutActiveEditor,
argument: { register?:... | the_stack |
import { Component, State, Element, h } from '@stencil/core';
import '@visa/visa-charts-data-table';
import '@visa/keyboard-instructions';
@Component({
tag: 'app-alluvial-diagram',
styleUrl: 'app-alluvial-diagram.scss'
})
export class AppAlluvialDiagram {
@State() highestHeadingLevel: string | number = 'h3';
@... | the_stack |
import {omit} from './util';
import {getCurrentLine} from './util-stacktrace';
import {attributesWithoutListener, registerListenerAttributes} from './Listeners';
import {toValueString} from './Console';
import Color from './Color';
import Font from './Font';
import * as symbols from './symbols';
import checkType from '... | the_stack |
import { Injectable } from '@angular/core';
import { CoreSites } from '@services/sites';
import {
AddonCalendar,
AddonCalendarDayName,
AddonCalendarEvent,
AddonCalendarEventBase,
AddonCalendarEventToDisplay,
AddonCalendarEventType,
AddonCalendarGetEventsEvent,
AddonCalendarProvider,
... | the_stack |
import {runIfMain} from "../../../../deps/mocha.ts"
import "../../../../deps/chai.ts"
import {Connection} from "../../../../../src/index.ts";
import {closeTestingConnections, createTestingConnections, reloadTestingDatabases} from "../../../../utils/test-utils.ts";
import {Post} from "./entity/Post.ts";
import {PostWith... | the_stack |
import { Bson } from "../deps.ts";
import { WriteConcern } from "./types/read_write_concern.ts";
export type Document = Bson.Document;
export interface Server {
host: string;
port: number;
domainSocket?: string;
}
export interface ConnectOptions {
compression?: string[];
certFile?: string;
keyFile?: stri... | the_stack |
import React, {useEffect, useState} from 'react';
import {
Button,
Card,
CardContent,
CardHeader,
CardOptions,
CardTitle,
Divider,
Notification,
Spacing,
TableContainer,
} from "@gui-elements/index";
import SuggestionList from "./SuggestionList";
import SuggestionHeader from "./S... | the_stack |
import {
CdmCorpusDefinition,
CdmDataTypeReference,
CdmDocumentDefinition,
CdmEntityAttributeDefinition,
CdmEntityDefinition,
CdmEntityReference,
CdmFolderDefinition,
CdmManifestDefinition,
CdmObject,
cdmObjectType,
CdmOperationAddCountAttribute,
CdmOperationAddSupporting... | the_stack |
import * as coreClient from "@azure/core-client";
/** The resource model definition representing SKU */
export interface Sku {
/** The name of the SKU. Ex - P3. It is typically a letter+number code */
name: string;
/** This field is required to be implemented by the Resource Provider if the service has more than... | the_stack |
import _ from 'lodash'
import la from 'lazy-ass'
import Debug from 'debug'
import Bluebird from 'bluebird'
import chokidar from 'chokidar'
import pluralize from 'pluralize'
import { ProjectBase, OpenProjectLaunchOptions } from './project-base'
import browsers from './browsers'
import specsUtil from './util/specs'
impor... | the_stack |
import MathHelper from './MathHelper';
import Vector2 from './Vector2';
// import Line from './Line';
// import Vertex from './Vertex';
// import Ring from './Ring';
import { getChargeText } from './UtilityFunctions';
/**
* A class wrapping a canvas element.
*
* @property {HTMLElement} canvas The HTML ele... | the_stack |
import assert from "assert";
import Path from "path";
import _ from "lodash";
import redbird from "@jchip/redbird";
import ck from "chalker";
import { makeOptionalRequire } from "optional-require";
import { devProxy } from "../../config/dev-proxy";
import { cdnMock } from "./cdn-mock";
import { isValidPort, formUrl } f... | the_stack |
import {
Injectable,
BadRequestException,
HttpException
} from '@nestjs/common';
import { HttpService } from '@nestjs/axios';
import { AxiosError, AxiosResponse } from 'axios';
import { CommandBus } from '@nestjs/cqrs';
import { DeepPartial } from 'typeorm';
import { map, catchError, switchMap } from 'rxjs/operators... | the_stack |
import * as fs from 'fs';
import * as path from 'path';
import { exec } from 'child_process';
/* eslint-disable import/no-unassigned-import mocha-no-side-effect-code */
import "mocha";
import * as chai from "chai";
import { TestHost } from "../common/testHost";
import * as util from "../common/testUtils";
import { re... | the_stack |
import { RecorderEnvironmentSetup, windowLens } from "../../src/utils";
import { record, TestContextInterface, TestContext, TestContextTest } from "../../src";
import { consoleLog, setConsoleLogForTesting } from "../../src/customConsoleLog";
import { expect } from "chai";
import MD5 from "md5";
import xhrMock from "xh... | the_stack |
namespace fgui {
export class GLoader extends GObject implements IAnimationGear, IColorGear {
protected $url: string;
protected $align: AlignType;
protected $verticalAlign: VertAlignType;
protected $autoSize: boolean;
protected $fill: LoaderFillType;
protected $show... | the_stack |
import {buildQueryString,join} from 'aurelia-path';
import {HttpClient,HttpClientConfiguration} from 'aurelia-fetch-client';
import {Container,resolver} from 'aurelia-dependency-injection';
/**
* Represents the options to use when constructing a `Rest` instance.
*/
export declare interface RestOptions {
/**
... | the_stack |
import type {
ComponentType,
ForwardRefExoticComponent,
RefAttributes,
ElementRef,
ComponentPropsWithoutRef,
Ref
} from 'react';
import Feature, { FeatureClass } from './Feature';
// LOOKUP TYPES
/**
* A lookup type to extract the instance from a {@link FeatureClass}.
*
* @typeparam F - The type of the... | the_stack |
import { Component, EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core';
import { NbDialogRef, NbDialogService } from '@nebular/theme';
import * as html2pdf from 'html2pdf.js';
import { ChartDialogComponent } from '../chart-dialog/chart-dialog.component';
import { UserAnalyticsPreferences } fr... | the_stack |
* Created by tijmen on 01-02-16.
*/
namespace ergometer.ble {
export function hasWebBlueTooth() : boolean {
return ( navigator && typeof navigator.bluetooth !== 'undefined' );
}
interface ListenerMap {
[name : string] : (data:ArrayBuffer)=>void;
}
interface ListenerCharacteristicMap {
... | the_stack |
namespace ts.tscWatch {
import projectsLocation = TestFSWithWatch.tsbuildProjectsLocation;
describe("unittests:: tsbuildWatch:: watchMode:: program updates", () => {
type TsBuildWatchSystem = TestFSWithWatch.TestServerHostTrackingWrittenFiles;
function createTsBuildWatchSystem(fileOrFolder... | the_stack |
import { PollerLike, PollOperationState } from "@azure/core-lro";
import {
PagingGetNoItemNamePagesOptionalParams,
PagingGetNoItemNamePagesResponse,
PagingGetNullNextLinkNamePagesOptionalParams,
PagingGetNullNextLinkNamePagesResponse,
PagingGetSinglePagesOptionalParams,
PagingGetSinglePagesResponse,
Pagin... | the_stack |
import * as _ from 'lodash';
import { promises as fs } from 'fs';
import * as path from 'path';
import Network from './network';
import Volume from './volume';
import Service from './service';
import * as imageManager from './images';
import type { Image } from './images';
import * as applicationManager from './appli... | the_stack |
import * as React from 'react'
import useLatest from '@react-hook/latest'
import {lru} from './lru'
import type {LRUCache} from './lru'
/**
* Creates an asynchronous LRU cache which can be used with the [`useCache()`](#usecache) hook.
* Cache keys _must_ be a `string` type.
* @param resolve
* @param lruSize
*/
e... | the_stack |
import {LitElement, html, css, PropertyValues, nothing} from 'lit';
import {customElement, query, property} from 'lit/decorators.js';
import './playground-project.js';
import './playground-tab-bar.js';
import './playground-file-editor.js';
import './playground-preview.js';
import {PlaygroundProject} from './playground... | the_stack |
import {
Body, JsonController, UseBefore, Get, Param, QueryParam, Put, Delete, Authorized, CurrentUser,
BadRequestError, ForbiddenError, InternalServerError, NotFoundError, UploadedFile, Post
} from 'routing-controllers';
import passportJwtMiddleware from '../security/passportJwtMiddleware';
import * as fs from 'fs... | the_stack |
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use t... | the_stack |
import {Component, OnInit, ViewChild, Inject, OnDestroy} from '@angular/core';
import { FormBuilder } from '@angular/forms';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { ToastrService } from 'ngx-toastr';
import {ApplicationSecurityService, ManageUngitService, StorageSer... | the_stack |
import * as gpgpu_util from './gpgpu_util';
import * as tex_util from './tex_util';
import * as webgl_util from './webgl_util';
import {WebGLLoseContextExtension} from './webgl_util';
export class GPGPUContext {
gl: WebGLRenderingContext;
textureFloatExtension: {};
colorBufferFloatExtension: {};
loseContextEx... | the_stack |
import { ReactElement } from 'react';
import { render, screen, waitFor, act } from 'unit-test/testUtils';
import userEvent from '@testing-library/user-event';
import { AllTheProviders } from "unit-test/testUtils";
import { FetchMock } from 'jest-fetch-mock/types';
import * as StateHooks from 'core/state/hooks';
import ... | the_stack |
import * as fs from "fs";
import * as nearley from "nearley";
import grammar from "parser/SubstanceParser";
import * as path from "path";
import { PenroseError } from "types/errors";
import { Result, showError, showType } from "utils/Error";
import { compileDomain } from "./Domain";
import { compileSubstance, prettySub... | the_stack |
import { Component, h, Host, Prop } from '@stencil/core';
import {
ResponsiveContainer,
Heading,
Button,
PrismicRichText,
PrismicResponsiveImage,
Paragraph,
} from '@ionic-internal/ionic-ds';
import { getAssetPath, State } from '@stencil/core/internal';
@Component({
tag: 'enterprise-page',
styleUrl: 'e... | the_stack |
import {
Address,
isTimestampTimeout,
SendTransaction,
SwapAbortTransaction,
SwapClaimTransaction,
SwapOfferTransaction,
UnsignedTransaction,
} from "@iov/bcp";
import { fromHex, toUtf8 } from "@iov/encoding";
import { encodeAmount, encodeInt, encodeNumericId, encodeString } from "./encodinghelpers";
imp... | the_stack |
import * as p from "@bokehjs/core/properties"
import {div} from "@bokehjs/core/dom"
import {clone} from "@bokehjs/core/util/object"
import {isEqual} from "@bokehjs/core/util/eq"
import {HTMLBox} from "@bokehjs/models/layouts/html_box"
import {ColumnDataSource} from "@bokehjs/models/sources/column_data_source";
import... | the_stack |
import * as protos from '../protos/protos';
import * as assert from 'assert';
import * as sinon from 'sinon';
import {SinonStub} from 'sinon';
import {describe, it} from 'mocha';
import * as databaseadminModule from '../src';
import {PassThrough} from 'stream';
import {protobuf, LROperation, operationsProtos} from 'g... | the_stack |
import { Buffer } from 'buffer';
import { ChildProcess, spawn } from 'child_process';
import { EventEmitter } from 'events';
import os from 'os';
import timers from 'timers';
import { KubeConfig } from '@kubernetes/client-node/dist/config';
import * as K8s from '@/k8s-engine/k8s';
import * as window from '@/window';
i... | the_stack |
import groupBy from "lodash-es/groupBy";
import { computed } from "mobx";
import binarySearch from "terriajs-cesium/Source/Core/binarySearch";
import JulianDate from "terriajs-cesium/Source/Core/JulianDate";
import TimeInterval from "terriajs-cesium/Source/Core/TimeInterval";
import filterOutUndefined from "../Core/fil... | the_stack |
import * as vscode from 'vscode';
import type Bluebird from 'bluebird';
import type MWBot from 'mwbot';
import { Action, Prop, RvProp, alterNativeValues } from './args';
import { ReadPageConvert, ReadPageResult, Main, Revision, Jump, Page } from '../../interface_definition/readPageInterface';
import { OldTokensConvert,... | the_stack |
import * as collabs from "@collabs/collabs";
import { Message } from "@collabs/collabs";
import { GroupComponentMessage } from "../generated/proto_compiled";
export interface GroupTranslateEvent extends collabs.CollabEvent {
readonly dX1: number;
readonly dY1: number;
readonly dX2: number;
readonly dY2: number... | the_stack |
const mix = (a: number, b: number, m: number) => (1 - m) * a + m * b;
const mixCol = (a: Color, b: Color, m: number): Color => ({
r: mix(a.r, b.r, m),
g: mix(a.g, b.g, m),
b: mix(a.b, b.b, m),
a: mix(a.a, b.a, m),
});
const halfV = {x: 0.5, y: 0.5};
const v10 = {x: 1, y: 0};
const v01 = {x: 0, y: 1};
c... | the_stack |
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { useIdAllocator } from '@leafygreen-ui/hooks';
import { cx, css } from '@leafygreen-ui/emotion';
import { createDataProp, isComponentType } from '@leafygreen-ui/lib';
import { uiColors } from '@leafygreen-ui/palette';
import { Overline } ... | the_stack |
/* eslint-disable @typescript-eslint/class-name-casing */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-empty-interface */
/* eslint-disable @typescript-eslint/no-namespace */
/* eslint-disable no-irregular-whitespace */
import {
OAuth2Client,
JWT,
Compute,
User... | the_stack |
import * as React from "react"
import {
StandardLonghandProperties,
StandardShorthandProperties,
Property,
} from "csstype"
export type Assign<T, U> = {
[P in keyof (T & U)]: P extends keyof T
? T[P]
: P extends keyof U
? U[P]
: never
}
export type ForwardRef<T, P> = React.ForwardRefExoticComp... | the_stack |
import {
ActionBaseJSON,
AnyContractParameterJSON,
ArrayContractParameterJSON,
AttributeJSON,
Block,
BlockJSON,
BooleanContractParameter,
BooleanContractParameterJSON,
ByteArrayContractParameterJSON,
CallReceiptJSON,
common,
ConfirmedTransaction,
Contract,
ContractABI,
ContractABIJSON,
C... | the_stack |
import { AppDataElementsStyleTypes } from "~/types/appData";
import { StyleDescItem } from "~/types/modules";
export const style: AppDataElementsStyleTypes = {
basic: {},
gameroot: {},
//#region 转盘
roulette_wrap: {},
roulette_lottery: {},
roulette_wheel: {
border: {
radiusTopLeft: [20, "rem"],
... | the_stack |
import { Component } from 'react';
import { connect } from 'react-redux';
import { Dispatch } from 'redux';
import { removeExpressionUI, updateExpressionUI } from '../../redux/Actions';
import { validateExpressionDomain } from '../../services/Libs';
import { ReduxAction } from '../../typings/ReduxConstants';
import Exp... | the_stack |
import * as React from "react";
import {
Row,
Col,
Icon,
Card,
Tabs,
Table,
Radio,
DatePicker,
Tooltip,
Menu,
Dropdown
} from "antd";
import { observer, inject } from "mobx-react";
import numeral from "numeral";
import {
ChartCard,
yuan,
MiniArea,
MiniBar,
... | the_stack |
import { expect } from "chai";
import { ReactWrapper, shallow, ShallowWrapper } from "enzyme";
import * as React from "react";
import * as sinon from "sinon";
import { ToolbarItemContext } from "@itwin/components-react";
import { WithOnOutsideClickProps } from "@itwin/core-react";
import { Group, Item } from "@itwin/ap... | the_stack |
import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
import { SearchService } from './search.service';
import { Router, UrlTree } from '@angular/router';
import { Request... | the_stack |
import { Desc } from "./describe";
import CompositeUnsubscribe from "./compositeunsubscribe";
import { EventStream, newEventStream } from "./observable";
import UpdateBarrier from "./internal/updatebarrier";
import { fromObservable, isTrigger, Source } from "./internal/source";
import { endEvent, Event, Value } from ".... | the_stack |
export enum NodeTypes {
TEXT = 'TEXT', // TEXT = (TEXT\s+ | TEXT\s+)*
NAMESPACE = 'NAMESPACE', // namespace splited by ., to support @use which is namespace based
VARIABLE = 'VARIABLE', // VARIABLE.value === variable's name , expression deleted after evaluation
PUNC = 'PUNC', // punctuation: parens((|... | the_stack |
import { Plan, PrismaClient } from '@prisma/client'
import fs from 'fs'
import moment from 'moment'
import nock from 'nock'
import path from 'path'
import { createProbot, Probot } from 'probot'
import { createLogger, format, Logger, transports } from 'winston'
import { logToJSON, removeLogsDateFields } from '../__fixt... | the_stack |
// tslint:disable:object-literal-sort-keys
export default {
metadata: {
name: 'xgboost-training-gzkm9',
generateName: 'xgboost-training-',
namespace: 'default',
selfLink: '/apis/argoproj.io/v1alpha1/namespaces/default/workflows/xgboost-training-gzkm9',
uid: '2c007465-41cf-11e8-bba7-42010a8a0fc2',
... | the_stack |
import { ScaleLinear } from 'd3-scale';
import { assign } from 'lodash-es';
import {
SingleTrack,
Datum,
FilterTransform,
LogTransform,
ExonSplitTransform,
Assembly,
StrConcatTransform,
StrReplaceTransform,
GenomicLengthTransform,
CoverageTransform,
CombineMatesTransform,
... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
import * as utilities from "../utilities";
/**
* A CaPool represents a group of CertificateAuthorities that form a trust anchor. A CaPool can be used to manage
* issuance policies for one or more CertificateAutho... | the_stack |
import * as React from 'react';
import * as ReactDom from 'react-dom';
import { Version } from '@microsoft/sp-core-library';
import {
IPropertyPaneConfiguration,
PropertyPaneTextField,
PropertyPaneToggle,
PropertyPaneLabel,
PropertyPaneChoiceGroup
} from '@microsoft/sp-property-pane';
import * as strings fro... | the_stack |
import * as Fs from 'fs-extra';
import * as Minimist from 'minimist';
import * as Path from 'path';
import { Git } from './git';
import { localStorage as LocalStorage } from './local-storage';
import { Paths } from './paths';
import { Step } from './step';
import { Utils } from './utils';
/**
This is the editor for i... | the_stack |
import React from "react";
import { WebBundlr } from "@bundlr-network/client"
import BigNumber from "bignumber.js";
import { Button } from "@chakra-ui/button";
import { Input, HStack, Text, VStack, useToast, Menu, MenuButton, MenuList, MenuItem, Tooltip } from "@chakra-ui/react";
import { ChevronDownIcon } from "@chak... | the_stack |
import * as vue from "vue"
import { buildInterface, ToastInterface } from "../../../src/ts/interface"
import { EVENTS, TYPE } from "../../../src/ts/constants"
import { loadPlugin } from "../../utils/plugin"
import { ToastOptions } from "../../../src/types"
import { EventBus } from "../../../src/ts/eventBus"
import { ne... | the_stack |
import Component from '../component';
import Util from '../util.js';
interface IProps {
element: HTMLElement|string; // the element must exist
container?: HTMLElement|HTMLDocument|string;
toggle?: boolean;
setupContainer?: boolean;
closableKeyCodes?: [
27 // Escape
];
aside?: {
md: false,
lg:... | the_stack |
import {ClientScope} from 'app/client/components/ClientScope';
import {guessTimezone} from 'app/client/lib/guessTimezone';
import {HomePluginManager} from 'app/client/lib/HomePluginManager';
import {ImportSourceElement} from 'app/client/lib/ImportSourceElement';
import {localStorageObs} from 'app/client/lib/localStorag... | the_stack |
window.addEventListener('WebComponentsReady', () => {
const testPath = 'testpath';
describe('<file-browser>', () => {
let testFixture: FileBrowserElement;
const startuppath = new DatalabFileId(testPath, FileManagerType.MOCK);
const mockFiles = [
new MockFile('file1'),
new MockFile('file2')... | the_stack |
export const INTERNAL_LAYER_PREFIX: string;
/**
* Symbol properties containing external resources
*/
export const RESOURCE_PROPERTIES: string[];
/**
* Corresponding size properties for the above resource properties
*/
export const RESOURCE_SIZE_PROPERTIES: Array<Array<string | null>>;
/**
* numeric symbol proper... | the_stack |
import {Injectable} from '@angular/core';
import {TranslationFile} from './translation-file';
import {isNullOrUndefined} from '../common/util';
import {BackendServiceAPI} from './backend-service-api';
import {TranslationProject, WorkflowType} from './translation-project';
import {combineLatest, Observable, of} from 'rx... | the_stack |
import * as React from 'react';
export const introspect = (mutationName, setFields, args) => {
const inputTypeName: string = mutationName + 'Input';
fetch('/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
query: `query typeQuery($inp... | the_stack |
import Boom from '@hapi/boom';
import * as Cookie from '@hapi/cookie';
import type { Plugin, Request } from '@hapi/hapi';
import Joi from 'joi';
import * as OpenID from 'openid-client';
import { URL } from 'url';
import type { NostalgieAuthOptions } from '../../../../settings';
import type { ServerAuthCredentials } fro... | the_stack |
import cx from 'classnames'
import * as FF from 'final-form'
import * as FP from 'fp-ts'
import * as R from 'ramda'
import * as React from 'react'
import { useDropzone, FileWithPath } from 'react-dropzone'
import * as RF from 'react-final-form'
import * as M from '@material-ui/core'
import SubmitSpinner from 'containe... | the_stack |
import child_process from "child_process";
import eris from "eris";
import debounce from "lodash.debounce";
import path from "path";
import {
addMessageReactions,
movePlayersToSilenceChannel,
movePlayersToTalkingChannel,
mutePlayerInChannels,
unmutePlayerInChannels,
updateMessage,
updateMess... | the_stack |
import {
AbstractControl,
FormArray,
FormBuilder,
FormControl,
FormGroup,
FormsModule,
ReactiveFormsModule,
Validators
} from '@angular/forms';
import { Component } from '@angular/core';
import { fakeAsync, TestBed, tick } from '@angular/core/testing';
import { ComponentTester, speculoosMatchers } from ... | the_stack |
* Hyperledger Cactus Plugin - HTLC Coordinator
* Can exchange assets between networks
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ... | the_stack |
import { configure } from "mobx";
import { types, getSnapshot } from "mobx-state-tree";
import { Source, Form, converters, Field, RepeatingForm } from "../src";
import { resolveReactions } from "./utils";
// "always" leads to trouble during initialization.
configure({ enforceActions: "observed" });
function refSnapsh... | the_stack |
import { GraphQLClient } from 'graphql-request';
import * as Dom from 'graphql-request/dist/types.dom';
import gql from 'graphql-tag';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [Sub... | the_stack |
module TS { // TypeSystem
import TSO = TypeSystemObserver;
//////////////////////// Additional ////////////////////////
export interface StaticResult {
varType: TS.Type
}
export class RValueOfType implements StaticResult {
constructor(public varType: TS.Type) { }
}
export c... | the_stack |
import "minimal-polyfills/Array.prototype.find";
import { importProxy } from "./importProxy";
import { create } from "./Evt.create";
import { getCtxFactory } from "./Evt.getCtx";
import { factorize } from "./Evt.factorize";
import { merge } from "./Evt.merge";
import { from } from "./Evt.from";
import { useEffect } fro... | the_stack |
/// <reference path="../../elements.d.ts" />
/// <reference path="../../../../tools/definitions/react.d.ts" />
import { LogLineContainerInterface } from '../../elements';
import { Polymer } from '../../../../tools/definitions/polymer';
import { PaperDropdownMenu } from '../../options/inputs/paper-dropdown-menu/paper-... | the_stack |
import * as React from 'react';
import { Link } from 'react-router-dom';
import styled from '@emotion/styled';
import ReadMore from './ReadMore';
import SpreadsheetKeyExtractor from './SpreadsheetKeyExtractor';
import { Away, Column, Logo, Row } from '@flowmap.blue/core';
import { Helmet } from 'react-helmet';
import M... | the_stack |
import * as bunyan from "bunyan";
import * as http from "http";
import * as http2 from "http2";
import * as url from "url";
const GRPC_CONTENT_TYPE = "application/grpc";
const GRPC_WEB_CONTENT_TYPE = "application/grpc-web";
const GRPC_WEB_TEXT_CONTENT_TYPE = "application/grpc-web-text";
const logger = bunyan.createLo... | the_stack |
'use strict';
import * as os from 'os';
import * as fs from 'fs-extra';
import * as vscode from 'vscode';
import * as chai from 'chai';
import * as sinonChai from 'sinon-chai';
import * as sinon from 'sinon';
import { TestItem } from './testTektonitem';
import { TaskRun } from '../../src/tekton/taskrun';
import { TknI... | the_stack |
import { assert } from 'chai';
import { Shape } from '../../src/Shape.js';
import { addStage, Konva, compareLayers, isNode } from './test-utils';
describe('Container', function () {
// ======================================================
it('clip', function () {
var stage = addStage();
var layer = new Ko... | the_stack |
import React, { useState } from 'react'
import ArrowRightIcon from 'mdi-react/ArrowRightIcon'
import Layout from '../components/Layout'
import Carousel from 'react-bootstrap/Carousel'
import { ContentSection } from '../components/content/ContentSection'
const CareersPage = props => {
return (
<Layout locat... | the_stack |
import { Component, OnInit, OnDestroy, HostListener } from '@angular/core';
import { Store } from '@ngrx/store';
import { ActivatedRoute, Router } from '@angular/router';
import { global, authPayload, StorageService } from '../../services/common';
import { AppStore } from '../../app.store';
import { mainAction } from '... | the_stack |
import { Constants } from './Constants';
import { Day, DayInput, DayProperty } from './Day';
import { Unit } from './DayFunctions';
import { Event } from './Event';
import { FrequencyCheck } from './Frequency';
import { Functions as fn } from './Functions';
import { Schedule, ScheduleInput } from './Schedule';
import {... | the_stack |
import * as Random from './random';
import * as Shrink from './shrink';
import * as RoseTree from './rosetree';
import * as Iter from './iterable';
import * as Util from './utilities';
import * as is from './is';
import { sample } from './sample';
import { Shrinker } from './shrink';
import { Generator } from './rando... | the_stack |
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest';
import * as models from '../models';
/**
* @class
* Accounts
* __NOTE__: An instance of this class is automatically created for an
* instance of the DataLakeStoreAccountManagementClient.
*/
export interface Ac... | the_stack |
import { AccessLevelList } from "../shared/access-level";
import { PolicyStatement, Operator } from "../shared";
/**
* Statement provider for service [batch](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsbatch.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/... | the_stack |
/*
* Copyright (c) 2016 - now David Sehnal, licensed under Apache 2.0, See LICENSE file for more info.
*/
namespace LiteMol.Visualization {
export class MaterialsHelper {
private static pickVertexShader = [
"attribute vec4 pColor;",
"varying vec4 pC;",
"void main() ... | the_stack |
import Notifications from '../lib/collections/notifications/collection';
import Conversations from '../lib/collections/conversations/collection';
import { subscriptionTypes } from '../lib/collections/subscriptions/schema';
import Localgroups from '../lib/collections/localgroups/collection';
import Users from '../lib/co... | the_stack |
import PlayerComponent from '../interfaces/component';
import Player from '../player';
import { EVENT_OPTIONS, IS_ANDROID, IS_IPHONE } from '../utils/constants';
import { removeElement } from '../utils/general';
/**
* Fullscreen element.
*
* @description Following the Fullscreen API, this class toggles media dimens... | the_stack |
import { QuestionOutlineIcon } from '@chakra-ui/icons';
import {
Box,
Button,
Flex,
Input,
Spacer,
Tooltip,
useToast,
} from '@chakra-ui/react';
import { css } from '@emotion/react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import Cookies from 'js-cookie';
import React, {
Fragme... | the_stack |
import {
IAttributes, IAugmentedJQuery, ICompileService, IDocumentService, IParseService, IPromise, IScope,
ITimeoutService
} from 'angular';
import * as ng1 from 'angular';
import {
DataResult, DataResults, DataRowGroup, GroupedDataResults, NgTableParams, NgTableEventsChannel,
PageButton
} from '../cor... | the_stack |
import Parser, { DocEntry as DefaultDocEntry } from "./Parser";
import { Config } from "./config";
export { Config };
export interface DocEntry extends DefaultDocEntry {
rowIndex?: number;
columnIndex?: number;
isRef?: boolean;
fileWidth?: number;
fileHeight?: number;
tableWidth?: number;
tableHeight?: n... | 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 { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatDialog } from '@angular/material/dialog';
import { Router } from '@angular/router';
import { debounceTime } from 'rxjs/operators';
import { FileBrowserComponent } from '../file-browser/fil... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.