text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { Request } from 'express'; import rimraf from 'rimraf'; import * as msRest from '@azure/ms-rest-js'; import { ExtensionContext } from '../../models/extension/extensionContext'; import { BotProjectService } from '../../services/project'; import AssetService from '../../services/asset'; import { ProjectControlle...
the_stack
import { errors, getSyntaxKindName, StringUtils, SyntaxKind, ts } from "@ts-morph/common"; import { CommentNodeKind, CompilerCommentClassElement, CompilerCommentEnumMember, CompilerCommentNode, CompilerCommentObjectLiteralElement, CompilerCommentStatement, CompilerCommentTypeElement } from "../comment/CompilerComme...
the_stack
import React, { FC, ReactElement, useState } from 'react'; import { Typography, Table, Tag, Modal, Input, Form, Switch, Button, AutoComplete } from 'antd'; import { ColumnsType } from 'antd/es/table'; import { DeleteOutlined, EditOutlined, ExclamationCircleOutlined, MenuOutlined } from '@ant-design/icons'; import ...
the_stack
import React from 'react'; import {FormattedDate, FormattedMessage, FormattedTime} from 'react-intl'; import {Link} from 'react-router-dom'; import {UserProfile} from 'mattermost-redux/types/users'; import {ActionResult} from 'mattermost-redux/types/actions'; import {OAuthApp} from 'mattermost-redux/types/integrations...
the_stack
import * as crypto from "crypto"; import * as fs from "fs"; import * as os from "os"; import { URL } from "url"; import { TimeStampedDataPoint } from ".."; import { IMindConnectConfiguration } from "./mindconnect-models"; const groupby = require("json-groupby"); export const convertToTdpArray = (data: any[]): TimeStam...
the_stack
import {KIND_TEXT} from '@remote-ui/core'; import type { RemoteRoot, RemoteComponent, RemoteText, RemoteChild, } from '@remote-ui/core'; import {Fragment} from '../Fragment'; import {createVNode} from '../create-element'; import {EMPTY_ARRAY} from '../constants'; import {removeNode} from '../utilities'; import...
the_stack
'use strict'; const elementId: { [key: string]: string } = { // Basic settings configName: "configName", configNameInvalid: "configNameInvalid", configSelection: "configSelection", addConfigDiv: "addConfigDiv", addConfigBtn: "addConfigBtn", addConfigInputDiv: "addConfigInputDiv", ...
the_stack
import Alert from 'antd/es/alert'; import BackTop from 'antd/es/back-top'; import Card from 'antd/es/card'; import Col from 'antd/es/col'; import Row from 'antd/es/row'; import Spin from 'antd/es/spin'; import clsx from 'clsx'; import * as echarts from 'echarts/lib/echarts'; import { find, get, isEmpty, last, map } fro...
the_stack
import localVarRequest = require('request'); import http = require('http'); import Promise = require('bluebird'); let defaultBasePath = 'http://petstore.swagger.io/v2'; // =============================================== // This file is autogenerated - Please do not edit // ============================================...
the_stack
import { ConnectionDetachedParams, ConnectionEstablishedParams, ConnectionMovedParams } from '../callbacks' import { JsPlumbInstance, jsPlumbElement } from "../core" import {UIGroup, GroupOptions, UINode} from "./group" import * as Constants from "../constants" import {PointXY, removeWithFunction, Diction...
the_stack
import { action } from "../common"; import { ProviderPullRequestActionsTypes } from "./types"; import { logError } from "@codestream/webview/logger"; import { HostApi } from "@codestream/webview/webview-api"; import { FetchThirdPartyPullRequestRequestType, FetchThirdPartyPullRequestResponse, ExecuteThirdPartyTypedTy...
the_stack
import { stub, match, SinonStub, fake, replace } from 'sinon' import { random, lorem, internet } from 'faker' import { Logger, GraphQLRequestEnvelope, GraphQLStart, GraphQLStop, MessageTypes, BoosterConfig, ProviderConnectionsLibrary, GraphQLRequestEnvelopeError, UserEnvelope, ConnectionDataEnvelope...
the_stack
import { Injectable } from '@angular/core'; import { combineLatest, Observable } from 'rxjs'; import { filter, map } from 'rxjs/operators'; import { helmEntityCatalog } from '../../../../helm/helm-entity-catalog'; import { ChartAttributes } from '../../../../helm/monocular/shared/models/chart'; import { ChartMetadata ...
the_stack
import { Address, Amount, AtomicSwap, AtomicSwapConnection, AtomicSwapHelpers, createTimestampTimeout, Identity, isBlockInfoPending, isBlockInfoSucceeded, isClaimedSwap, Preimage, SendTransaction, SwapClaimTransaction, SwapId, SwapIdBytes, SwapOfferTransaction, SwapProcessState, Toke...
the_stack
import { PuppetASTObject, PuppetASTContainerContext, Resolver, ResolveError, PuppetASTReturn, PuppetASTResourcesDeclaration, PuppetASTVariable, OrderedDictionary, PuppetASTValue, PuppetASTPrimitive, PuppetASTList, PuppetASTKeyedEntry} from "./ast"; import { isArray, isObject } from "util"; im...
the_stack
import * as vscode from 'vscode'; import { v4 as uuid } from 'uuid'; import { Keychain } from './common/keychain'; import { GitHubEnterpriseServer, GitHubServer, IGitHubServer } from './githubServer'; import { arrayEquals } from './common/utils'; import { ExperimentationTelemetry } from './experimentationService'; impo...
the_stack
import {createSelector} from 'reselect'; import * as Autocomplete from '@constants/autocomplete'; import {General} from '@mm-redux/constants'; import {getMyChannels, getOtherChannels} from '@mm-redux/selectors/entities/channels'; import {getConfig} from '@mm-redux/selectors/entities/general'; import { getCurrentUs...
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 PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js'; import paintProfilerStyles from './paintProfiler.css.js'; import type * as Proto...
the_stack
interface Iban { alpha: string[]; formats: Array<{ bban: Array<{ type: string; count: number }>; country: string; format?: string; total?: number; }>; iso3166: string[]; mod97: (digitStr: string) => number; pattern10: string[]; pattern100: string[]; toDigitString: (str: string) => string...
the_stack
import * as uuid from 'uuid'; export interface BundleType { type: 'bundle' | 'Bundle'; objects: Core[]; metadata?: Core[]; } export type SDO = Asset | AttackPattern | Campaign | CourseOfAction | Identity | Indicator | IntrusionSet | Malware | ObservedData | Report | ThreatActor | Tool | Vulnerability; export t...
the_stack
import { Accessor, Observable } from "../observation/observable"; import { DOM } from "../dom"; import type { Notifier } from "../observation/notifier"; /** * Represents objects that can convert values to and from * view or model representations. * @public */ export interface ValueConverter { /** * Conver...
the_stack
import React, { forwardRef, useContext, useRef, useState, useImperativeHandle, useEffect, useCallback, useMemo, } from 'react'; import { CSSTransition } from 'react-transition-group'; import { findDOMNode } from 'react-dom'; import cs from '../_util/classNames'; import { on, off, isServerRendering } fro...
the_stack
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; import { CompleteSnapshotCommand, CompleteSnapshotCommandInput, CompleteSnapshotCommandOutput, } from "./commands/CompleteSnapshotCommand"; import { GetSnapshotBlockCommand, GetSnapshotBlockCommandInput, GetSnapshotBlockCommandOut...
the_stack
import * as assert from 'assert'; import {before, beforeEach, afterEach, describe, it} from 'mocha'; import {EventEmitter} from 'events'; import * as extend from 'extend'; import {ApiError, util} from '@google-cloud/common'; import * as proxyquire from 'proxyquire'; import * as sinon from 'sinon'; import {Transform, Du...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormMarketing_List { interface Header extends DevKit.Controls.IHeader { /** Shows the date and time when the marketing list was last used in a campaign or in the creation of activities or opportunities. */ LastUsedOn: DevKit....
the_stack
//////////////////////////////////////////////////////////////////////////////// // // General utility types // //////////////////////////////////////////////////////////////////////////////// declare type StringDict = { [key: string]: string }; //////////////////////////////////////////////////////////////////...
the_stack
import {ifEnvSupports} from '../test-util'; describe('AsyncTestZoneSpec', function() { let log: string[]; const AsyncTestZoneSpec = (Zone as any)['AsyncTestZoneSpec']; function finishCallback() { log.push('finish'); } function failCallback() { log.push('fail'); } beforeEach(() => { log = [...
the_stack
import CommonTypes = require('../ojcommontypes'); import { DataProvider } from '../ojdataprovider'; import { editableValue, editableValueEventMap, editableValueSettableProperties } from '../ojeditablevalue'; import { JetElement, JetSettableProperties, JetElementCustomEvent, JetSetPropertyType } from '..'; export interf...
the_stack
// clang-format off import {assert} from 'chrome://resources/js/assert.m.js'; import {beforeNextRender, dedupingMixin, PolymerElement} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'; import {BaseMixin} from '../base_mixin.js'; import {SettingsIdleLoadElement} from '../controls/settings_idle_load...
the_stack
import type { Operation } from '../../../../src/http/Operation'; import type { ErrorHandler, ErrorHandlerArgs } from '../../../../src/http/output/error/ErrorHandler'; import type { ResponseDescription } from '../../../../src/http/output/response/ResponseDescription'; import { BasicRepresentation } from '../../../../src...
the_stack
import { Signer } from "ethers"; import { ethers } from "hardhat"; import "module-alias/register"; import { DateString__factory } from "typechain/factories/DateString__factory"; import { IERC20__factory } from "typechain/factories/IERC20__factory"; import { InterestTokenFactory__factory } from "typechain/factories/Inte...
the_stack
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { StandardProps, omitProps, findTypes, getFirst, } from '../../util/component-types'; import { lucidClassNames } from '../../util/style-helpers'; import { partitionText, propsSearch } from '../../util/text-manipulation'; i...
the_stack
import { Logger, LoggerFactory } from '../logger'; import { ColumnUtils } from './columnUtils'; import { AbstractColDef, ColDef, ColGroupDef } from "../entities/colDef"; import { ColumnKeyCreator } from "./columnKeyCreator"; import { IProvidedColumn } from "../entities/iProvidedColumn"; import { ProvidedColumnGroup } f...
the_stack
import EventEmitter from 'eventemitter3' import delay, { ClearablePromise } from 'delay' import PCancelable from 'p-cancelable' import pEvent from 'p-event' import pTimeout from 'p-timeout' import uniq from 'lodash/uniq' import { BaseMessage, ChatCommands, Commands, Events, GlobalUserStateTags, Messages, ...
the_stack
import * as angular from 'angular'; import { find, map, prop, UrlMatcher } from '../src/index'; import { UIRouter, UrlMatcherFactory, UrlService } from '@uirouter/core'; declare var inject; const module = angular['mock'].module; describe('UrlMatcher', function () { let router: UIRouter; let $umf: UrlMatcherFactor...
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 { CyNode } from '../CytoscapeGraphUtils'; import { BoxByType } from 'types/Graph'; import { getLayoutByName } from '../graphs/LayoutDictionary'; export const BOX_NODE_CLASS = '__boxNodeClass'; const NAMESPACE_KEY = 'box-layout'; const STYLES_KEY = NAMESPACE_KEY + 'styles'; const RELATIVE_POSITION_KEY = NAMESPA...
the_stack
import _ from 'lodash'; import path from 'path'; import { Config as AppConfig, ROLES, createAnonymousRemoteUser, createRemoteUser, parseConfigFile, } from '@verdaccio/config'; import { API_ERROR, CHARACTER_ENCODING, TOKEN_BEARER, VerdaccioError, errorUtils, } from '@verdaccio/core'; import { setup ...
the_stack
import { LayoutViewer } from '../index'; import { TableOptionsDialog } from './index'; import { Dialog } from '@syncfusion/ej2-popups'; import { CheckBox } from '@syncfusion/ej2-buttons'; import { NumericTextBox } from '@syncfusion/ej2-inputs'; import { WCellFormat } from '../index'; import { isNullOrUndefined, L10n, c...
the_stack
import { KeysInitSparql, KeysQueryOperation } from '@comunica/context-entries'; import type { ActionContext, IActorArgs, IActorTest, Mediator } from '@comunica/core'; import { Actor } from '@comunica/core'; import { BlankNodeBindingsScoped } from '@comunica/data-factory'; import type { IActionQueryOperation, IActor...
the_stack
import {get as getBrowserGlobals} from 'app/client/lib/browserGlobals'; import {reportError} from 'app/client/models/AppModel'; import {BillingModel} from 'app/client/models/BillingModel'; import * as css from 'app/client/ui/BillingPageCss'; import {colors, vars} from 'app/client/ui2018/cssVars'; import {IOption, selec...
the_stack
import produce from 'immer'; import { createSelector } from 'reselect'; import get from 'lodash.get'; import { sortDifficultyIds } from '../helpers/song.helpers'; import { DEFAULT_RED, DEFAULT_BLUE } from '../helpers/colors.helpers'; import { DEFAULT_GRID, DEFAULT_COL_WIDTH, DEFAULT_ROW_HEIGHT, } from '../helper...
the_stack
'use strict'; import * as vscode from 'vscode'; import * as path from 'path'; import * as fs from 'fs'; import * as os from 'os'; import * as ini from 'ini'; import { FactorioModDebugSession } from './factorioModDebug'; import { validateLocale, LocaleColorProvider, LocaleDocumentSymbolProvider, LocaleCodeActionProvider...
the_stack
import React from 'react'; import { act, cleanup, fireEvent, render } from '@testing-library/react'; import '@testing-library/jest-dom'; import { Collapse } from '../index'; import { sleep } from '@test/utils'; import { sashItemClassName } from 'mo/components/split/base'; import { collapsePaneClassName } from '../base'...
the_stack
declare type Commands = HashTable<ICommand>; interface HashTable<T> { [key: string]: T; } interface ICommand { name: string; id: number; args: any[]; // TODO specify array structure retType: string; } interface CmdMessage { devid: number; cmd: ICommand; data: Uint8Array; } interface ...
the_stack
import * as React from 'react'; import * as Utility from '../../Utility'; import * as $ from 'jquery'; import { BrowserRouter as Router, Route, Link, withRouter } from 'react-router-dom'; import { RouteComponent } from '../RouteComponent'; import { SendTopic } from './Topic-SendTopic'; imp...
the_stack
'use strict' import * as firebaseServer from '../firebaseServer'; import * as querybase from '../../entry'; import * as helpers from '../helpers'; import * as assert from 'assert'; import * as chai from 'chai'; import * as sinon from 'sinon'; const Querybase = querybase.Querybase; const QuerybaseQuery = querybase.Quer...
the_stack
import * as vscode from 'vscode'; import * as path from 'path'; import { SHA256 } from 'crypto-js'; import Config from './domain/config'; import ProjectRepository from './domain/ProjectRepository'; import RecentItems from './recentItems'; import ProjectLocator from './gitProjectLocator'; import DirList from './domain/...
the_stack
'use strict'; // tslint:disable no-unused-expression import * as vscode from 'vscode'; import * as sinon from 'sinon'; import * as chai from 'chai'; import * as sinonChai from 'sinon-chai'; import * as path from 'path'; import * as ejs from 'ejs'; import { PreReqView } from '../../extension/webview/PreReqView'; import...
the_stack
import { action, computed, flow, makeObservable, observable, runInAction, } from "mobx"; import { ChainInfoInner, ChainStore as BaseChainStore, } from "@keplr-wallet/stores"; import { ChainInfo } from "@keplr-wallet/types"; import { ChainInfoWithEmbed, GetChainInfosMsg, RemoveSuggestedChainInfoM...
the_stack
import loadStatsBasketball, { BasketballStats } from "./loadStats.basketball"; import { helpers, PHASE, PLAYER } from "../../../common"; import type { GetLeagueOptions, PlayerContract, PlayerInjury, } from "../../../common/types"; import { LATEST_SEASON, LATEST_SEASON_WITH_DRAFT_POSITIONS } from "./getLeague"; impor...
the_stack
import * as React from 'react'; import { shallowEqual } from 'react-redux'; import { getTextResourceByKey } from 'altinn-shared/utils'; import { ILabelSettings, ITextResource, Triggers, IComponentValidations, } from 'src/types'; import { Grid, makeStyles } from '@material-ui/core'; import classNames from 'clas...
the_stack
import { AxisRenderer, IAxisRendererSettings, IAxisRendererPrivate } from "./AxisRenderer"; import { p100 } from "../../../core/util/Percent"; import type { IPoint } from "../../../core/util/IPoint"; import * as $type from "../../../core/util/Type"; import * as $utils from "../../../core/util/Utils"; import type { Axis...
the_stack
import { strict as assert } from "assert"; import crypto from "crypto"; import got from "got"; import { ZonedDateTime, LocalDateTime, ZoneOffset } from "@js-joda/core"; import { log } from "../log"; import { mtimeDiffSeconds, mtimeDeadlineInSeconds, mtime, sleep } from "../mtime"; import { timestampToRFC33...
the_stack
import React from 'react' import { Events, Tab } from '@kui-shell/core' // Component Imports import { ActionGroup, Form, FormGroup, TextInput, Checkbox, FormSelect, FormSelectOption, Switch as Toggle } from '@patternfly/react-core' import { Button, Tag } from '@kui-shell/plugin-client-common' // UI Sty...
the_stack
import validator from 'validator'; import lTrim from 'lodash/trim'; import lTrimStart from 'lodash/trimStart'; import lTrimEnd from 'lodash/trimEnd'; import lCamelCase from 'lodash/camelCase'; import lSnakeCase from 'lodash/snakeCase'; import lKebabCase from 'lodash/kebabCase'; import lStartCase from 'lodash/startCase'...
the_stack
* DescribeAbnormalEvent返回参数结构体 */ export interface DescribeAbnormalEventResponse { /** * 返回的数据总条数 */ Total: number /** * 异常体验列表 */ AbnormalExperienceList: Array<AbnormalExperience> /** * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 */ RequestId?: string } /** * 查询秒级监控返回的数据 */ export in...
the_stack
import { Graph, Node, Edge, Shape, EdgeView, Line, Angle, Registry, } from '@antv/x6' Graph.registerNode( 'angle-node', Shape.Rect.define({ width: 120, height: 120, zIndex: 1, attrs: { body: { fill: '#f5f5f5', stroke: '#d9d9d9', strokeWidth: 1, ...
the_stack
import { $log } from '@tsed/logger'; import { BigNumber } from 'bignumber.js'; import moment from 'moment'; import { bootstrap, TestTz } from '../bootstrap-sandbox'; import { Contract, address, bytes, nat, mutez, key } from '../../src/type-aliases'; import { InternalOperationResult } from '@taquito/rpc'; import { ori...
the_stack
import server from "../config/oauth2orize-server"; import passport from "passport"; import login from "connect-ensure-login"; import Client from "../models/OAuth/Client"; import ClientCollection from "../models/OAuth/ClientCollection"; import AccessToken from "../models/OAuth/AccessToken"; import AccessTokenCollection ...
the_stack
declare module AutoMapperJs { /** * AutoMapper implementation, for both creating maps and performing maps. Comparable usage and functionality to the original * .NET AutoMapper library is the pursuit of this implementation. */ class AutoMapper { /** * Initializes the mapper...
the_stack
import { QueryMetrics, Resource, StoredProcedureDefinition, TriggerDefinition, UserDefinedFunctionDefinition, } from "@azure/cosmos"; import Explorer from "../Explorer/Explorer"; import { ConsoleData } from "../Explorer/Menus/NotificationConsole/ConsoleData"; import { CassandraTableKey, CassandraTableKeys } f...
the_stack
* @fileoverview Implements a class that computes complexities for enriched math * * @author dpvc@mathjax.org (Davide Cervone) */ import {MmlNode, AbstractMmlTokenNode} from '../../core/MmlTree/MmlNode.js'; import {MmlMroot} from '../../core/MmlTree/MmlNodes/mroot.js'; import {MmlMaction} from '../../core/MmlTree/M...
the_stack
import { MetricsPanelCtrl } from 'grafana/app/plugins/sdk'; import _ from 'lodash'; import $ from 'jquery'; import kbn from 'grafana/app/core/utils/kbn'; import TimeSeries from 'grafana/app/core/time_series2'; import { D3Wrapper } from './d3wrapper'; import { Transformers } from './transformers'; import { PolystatMode...
the_stack
module android.widget { import Rect = android.graphics.Rect; import Trace = android.os.Trace; import Gravity = android.view.Gravity; import KeyEvent = android.view.KeyEvent; import SoundEffectConstants = android.view.SoundEffectConstants; import View = android.view.View; import ViewGroup = android.view.ViewGroup; impor...
the_stack
import { faviconUrlSetting } from '../../components/common/HeadTags'; import { Comments } from '../../lib/collections/comments'; import { commentGetPageUrlFromDB, commentGetRSSUrl } from '../../lib/collections/comments/helpers'; import { Posts } from '../../lib/collections/posts/collection'; import { postGetPageUrl } f...
the_stack
import { Radio, Dropdown, DropdownToggle, Checkbox, Tooltip, TooltipPosition } from '@patternfly/react-core'; import * as React from 'react'; import { connect } from 'react-redux'; import { ThunkDispatch } from 'redux-thunk'; import { bindActionCreators } from 'redux'; import { KialiAppState } from '../../../store/Stor...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * A Cloud Identity resource representing a Group. * * To get more information about Group, see: * * * [API documentation](https://cloud.google.com/identity/docs/r...
the_stack
import { PDFPage, PDFFont, PDFDocument, PDFImage, PDFEmbeddedPage, rgb, degrees, setCharacterSpacing, TransformationMatrix, } from 'pdf-lib'; import { ToBufferOptions } from 'bwip-js'; import bwipjsNode from 'bwip-js/dist/node-bwipjs'; import bwipjsBrowser from 'bwip-js/dist/bwip-js'; import { getB6...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement, Operator } from "../shared"; /** * Statement provider for service [cloud9](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awscloud9.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuid...
the_stack
export type RowType = { [key: string]: any; }; // Fields ============================================================== export type Number64 = string; export type Range = [number | string, number | string]; export type Dataset = any[]; export type IFieldType = "boolean" | "number" | "number64" | "string" | "range" |...
the_stack
import { SearchParameters } from 'algoliasearch-helper'; import connectConfigureRelatedItems from '../connectConfigureRelatedItems'; jest.mock('../../core/createConnector', () => (x) => x); const connect = connectConfigureRelatedItems as any; const hit = { objectID: '1', name: 'Amazon - Fire TV Stick with Alexa ...
the_stack
import {ResourceBase, ResourceTag} from '../resource' import {Value, List} from '../dataTypes' export class HlsInputSettings { BufferSegments?: Value<number> Retries?: Value<number> Bandwidth?: Value<number> RetryInterval?: Value<number> constructor(properties: HlsInputSettings) { Object.a...
the_stack
import { difference, differenceWith, intersection, isEqual } from 'lodash'; import { join, normalize, relative, resolve } from 'path'; import { DeclarationInfo } from './declarations/DeclarationInfo'; import { ModuleDeclaration } from './declarations/ModuleDeclaration'; import { AllExport } from './exports/AllExport';...
the_stack
import * as cdk from '@aws-cdk/core'; import s3 = require('@aws-cdk/aws-s3'); import iam = require('@aws-cdk/aws-iam'); import dynamodb = require('@aws-cdk/aws-dynamodb'); import lambda = require('@aws-cdk/aws-lambda'); import event_sources = require('@aws-cdk/aws-lambda-event-sources'); import cognito = require('@aws-...
the_stack
import { Menu, webContents, app, BrowserWindow, MenuItem } from 'electron'; import { defaultTabOptions } from '~/constants/tabs'; import { viewSource, saveAs, printPage } from './common-actions'; import { WEBUI_BASE_URL, WEBUI_URL_SUFFIX } from '~/constants/files'; import { AppWindow } from '../windows'; import { Appli...
the_stack
* Part of Jupyterlab status bar defaults. */ import React from 'react'; import { TextItem } from '../component/text'; import { JupyterLabPlugin, JupyterLab, ApplicationShell } from '@jupyterlab/application'; import { INotebookTracker, NotebookPanel } from '@jupyterlab/notebook'; import { VDomRenderer, ...
the_stack
import { Component, EventEmitter, Input, OnChanges, Output } from '@angular/core'; import { ProgrammingExercise } from 'app/entities/programming-exercise.model'; import { StaticCodeAnalysisCategory, StaticCodeAnalysisCategoryState } from 'app/entities/static-code-analysis-category.model'; import { CategoryIssuesMap } f...
the_stack
import { Container, AnimatedSprite } from 'pixi.js'; import { EngineView } from './EngineView'; import { existy } from '../utils/calculations'; import { TDirection, DIRECTIONS } from '../utils/constants'; import { TColumnRowPair, ObjectInfoInteractionOffsets, ObjectInfoTextures, ObjectVisualKey, get...
the_stack
import React from 'react'; import { createContextScope } from '@radix-ui/react-context'; import { Primitive } from '@radix-ui/react-primitive'; import * as RovingFocusGroup from '@radix-ui/react-roving-focus'; import { createRovingFocusGroupScope } from '@radix-ui/react-roving-focus'; import { Toggle } from '@radix-ui/...
the_stack
import { CountableTimeInterval, TimeInterval } from '../d3-time'; // ------------------------------------------------------------------------------- // Shared Types and Interfaces // ------------------------------------------------------------------------------- export interface InterpolatorFactory<T, U> { (a: T...
the_stack
declare namespace Desmos { /** * Which features are enabled for your API key. */ const enabledFeatures: { GraphingCalculator: boolean; FourFunctionCalculator: boolean; ScientificCalculator: boolean; }; /** * An array of language codes suitable for passing into Cal...
the_stack
import { ResponseCode } from "../../../constants/response"; import { DataDirectoryPath } from "../../../types/module/data/data.types"; import { TCalendarData, TScheduleCreateData, TScheduleData, } from "../../../types/module/data/service/calendar/calendar.types"; import { getDateArray } from "../../datetime...
the_stack
* @fileoverview The WordTree data structure and related logic is used to * support Dive's bag-of-words feature. * * Consider an array of multi-word string values (like "the end" and * "hello world"). The goal of the WordTree is to treat each word of each string * individually, and split the strings according to th...
the_stack
import { Response } from "express"; import OpenApiDocument, { Operation } from "../src/OpenApiDocument"; import OpenApiValidator, { ValidatorConfig } from "../src/OpenApiValidator"; import * as parameters from "../src/parameters"; import ValidationError from "../src/ValidationError"; import openApiDocument from "./open...
the_stack
import SimpleSchema from 'simpl-schema'; import * as _ from 'underscore'; import { addUniversalFields, schemaDefaultValue } from '../../collectionUtils'; import { makeEditable } from '../../editor/make_editable'; import { getDefaultFilterSettings } from '../../filterSettings'; import { forumTypeSetting, hasEventsSettin...
the_stack
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * ClassicAdministrators * __NOTE__: An instance of this class is automatically created for an * instance of the AuthorizationManagementClient. */ export interf...
the_stack
import { domData, setHtml, triggerEvent, removeNode, virtualElements, options } from '@tko/utils' import { applyBindings, contextFor, dataFor } from '@tko/bind' import { observable, observableArray } from '@tko/observable' import { MultiProvider } from '@tko/provider.multi' import { VirtualProvider } fro...
the_stack
(function () { try { // 注册设置菜单 API.registerMenu({ key: "common", name: "通用", svg: '<svg viewBox="0 0 24 24"><g><path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"></path></g...
the_stack
import { expect } from './expect' import { Logger, InvalidParameterError, UUID, ReadModelRequestEnvelope, GraphQLOperation, NotFoundError, NotAuthorizedError, SubscriptionEnvelope, FilterFor, BoosterConfig, } from '@boostercloud/framework-types' import { restore, fake, match, spy, replace } from 'si...
the_stack
import childProcess from 'child_process'; import fs from 'fs'; import path from 'path'; import { promisify } from 'util'; import {type Readable} from "stream"; const execFile = promisify(childProcess.execFile); const readFile = promisify(fs.readFile); const writeFile = promisify(fs.writeFile); const cliFilePath = pa...
the_stack
const fs = require('fs'); class logger { /** * @property * @private * @readonly * @description folder path */ private readonly path = "./logs/"; private readonly filetimestamp : Logger.FileTimestamp; /** * @property * @private * @readonly * @description p...
the_stack
import { forumTypeSetting, siteUrlSetting } from '../../instanceSettings'; import { getOutgoingUrl, getSiteUrl } from '../../vulcan-lib/utils'; import { mongoFindOne } from '../../mongoQueries'; import { userOwns, userCanDo } from '../../vulcan-users/permissions'; import { userGetDisplayName } from '../users/helpers'; ...
the_stack
interface Window { Office: any; } declare var $: any; module VORLON { export class OfficeClient extends ClientPlugin { private objectPrototype = Object.getPrototypeOf({}); constructor() { super("office"); // Name this._ready = true; // No need to wait cons...
the_stack
import { accentColor, bodyFontFamily, labelColor, backgroundColor, buttonBackgroundColor } from './styles'; import { ContentElement } from './content'; import { ACCInputEvent } from '../events/input-event'; import { AbstractInputElement } from './abstract-input'; import { PoseInputElement } from './pose-input'; import ...
the_stack
import { TypeConstant, ActionCreatorBuilder, ActionBuilder, } from './type-helpers'; import { createAction } from './create-action'; export function throwInvalidAsyncActionArgument(argPosition: number): never { throw new Error( `Argument ${argPosition} is invalid, it should be an action type of "string | s...
the_stack
import RamlWrapper1= require("../parser/artifacts/raml10parserapi") import RamlWrapper1Impl= require("../parser/artifacts/raml10parser") import RamlWrapper08= require("../parser/artifacts/raml08parserapi") import path=require("path") import jsonTypings = require("../typings-new-format/raml"); import Opt = require('.....
the_stack
import path = require('path'); import Tacks = require('tacks'); import tempy = require('tempy'); import touch = require('touch'); import { findConfigs, generateConfig, isUpToDate } from '../lib/pectin-api'; const { Dir, File, Symlink } = Tacks; type UpdateHelper = { (fp: string): Promise<void>; cwd: string; }...
the_stack
export class DataGridSharedData { public static getEmployees(count?: number): any[] { if (count === undefined) { count = 250; } const employees: any[] = []; let maleCount: number = 0; let femaleCount: number = 0; for (let i = 0; i < count; i += 1) { const age: number = Math.round(...
the_stack
// ==================================================== // GraphQL fragment: ChannelTableContentsConnectable // ==================================================== export interface ChannelTableContentsConnectable_Attachment_connection_can { __typename: "ConnectionCan"; destroy: boolean | null; manage: boolean |...
the_stack