text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { ParseContext, ParseContextUtils, ParseError } from ".."; import { Assert, CommonError, MapUtils } from "../../common"; import { Ast, Constant, Token } from "../../language"; import { LexerSnapshot } from "../../lexer"; import { DefaultLocale } from "../../localization"; import { Disambiguation } from "../disam...
the_stack
import React, { useCallback } from 'react'; import { FormattedDate, defineMessages, FormattedMessage } from 'react-intl'; import { useParams, Switch, Route, useRouteMatch, Redirect, } from 'react-router'; import { ColonyRole, ColonyVersion, Extension, extensionsIncompatibilityMap, } from '@colony/colo...
the_stack
import Lucky from './lucky' import { UserConfigType, ImgType, ImgItemType, Tuple } from '../types/index' import SlotMachineConfig, { BlockType, PrizeType, SlotType, DefaultConfigType, DefaultStyleType, EndCallbackType, } from '../types/slot' import { get, has, isExpectType, removeEnter, computePaddi...
the_stack
import { BonusTypeEnum, IEmployeeStatistics, IEmployeeStatisticsFindInput, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, IMonthAggregatedSplitExpense } from '@gauzy/contracts'; import { Injectable } from '@nestjs/common'; import { EmployeeService } from '../employee/employee.service'; import { ExpenseS...
the_stack
import * as http from "http"; import * as https from "https"; import * as url from "url"; import * as qs from "qs"; import * as fs from "fs"; import * as zlib from "zlib"; import * as path from "path"; import * as formidable from "formidable"; import * as Mime from "mime"; import * as uuid from "uuid"; import * as etag...
the_stack
import type { NonNullObject } from '@sapphire/utilities'; import type { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql'; 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> = O...
the_stack
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { NodesApiService, setupTestBed } from '@alfresco/adf-core'; import { ContentTestingModule } from '../testing/content.testing.module'; import { TranslateModule } from '@ngx-translate/core'; import { AspectListComponent } from './aspect-list.compo...
the_stack
import { JavaArrayListMarshaller, JavaHashSetMarshaller } from "../JavaCollectionMarshaller"; import { JavaArrayList, JavaBigDecimal, JavaBigInteger, JavaBoolean, JavaByte, JavaDate, JavaDouble, JavaFloat, JavaHashMap, JavaHashSet, JavaInteger, JavaLong, JavaOptional, JavaShort, JavaString...
the_stack
import { BotAdapter, WebRequest, BotFrameworkAdapterSettings, IUserTokenProvider, TokenResponse, TurnContext, ConversationReference } from 'botbuilder'; import { AppCredentials, JwtTokenValidation, MicrosoftAppCredentials, SimpleCredentialProvider, TokenApiClient, TokenApiModels, TokenStatus, TokenExchangeRequest, Sign...
the_stack
export type AccountMigrationEvent = UkCoBoostpowerSupportKafkaMessages.AccountMigrationEvent; export namespace ComOvoenergyKafkaCommonEvent { export const EventMetadataName = "com.ovoenergy.kafka.common.event.EventMetadata"; /** * Metadata, to be used in each event class */ export interface Event...
the_stack
import * as baseQueue from '../queue/queue'; // The |QueueFeeder| is the abstraction for events to be handled. export interface QueueFeeder<Feed,Result> { // Number of things in the queue to be handled. getLength() : number; // Called by code that wants |x| to be handled. Returns a promise for // when |x| is h...
the_stack
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { DebugElement } from '@angular/core'; import { ComponentFixture, fakeAsync, flush, flushMicrotasks, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { NoopAnimationsModule } from '@angular/platf...
the_stack
import React, { FunctionComponent, useEffect, useMemo, useState } from "react"; import { Keyboard, KeyboardEvent, Platform, StyleSheet, Text, View, ViewStyle, } from "react-native"; import { useStyle } from "../../styles"; import { useSafeAreaInsets } from "react-native-safe-area-context"; import { PanGes...
the_stack
import { SpreadsheetHelper } from '../util/spreadsheethelper.spec'; import { defaultData } from '../util/datasource.spec'; import { CellModel, getCell, SpreadsheetModel, Spreadsheet } from '../../../src/index'; /** * Spreadsheet Ribbon spec */ describe('Spreadsheet Ribbon integration module ->', (): void => { l...
the_stack
import * as _ from 'lodash'; import { chai } from 'mochainon'; import * as memoize from 'memoizee'; import type * as BalenaSdk from '../../'; import type { AnyObject } from '../../typings/utils'; import { toWritable } from '../../lib/util/types'; import { getInitialOrganization } from './utils'; // tslint:disable-next-...
the_stack
import { Vpc } from '@aws-accelerator/cdk-constructs/src/vpc'; import * as c from '@aws-accelerator/common-config/src'; import * as cdk from '@aws-cdk/core'; import { getStackJsonOutput, OUTPUT_SUBSCRIPTION_REQUIRED, StackOutput, } from '@aws-accelerator/common-outputs/src/stack-output'; import { AccountStacks, A...
the_stack
module es { export enum ComponentTransform { position, scale, rotation, } export enum DirtyType { clean = 0, positionDirty = 1, scaleDirty = 2, rotationDirty = 4, } export class Transform { /** 与此转换关联的实体 */ public readonly ent...
the_stack
import 'chrome://resources/cr_elements/cr_icon_button/cr_icon_button.m.js'; import 'chrome://resources/cr_elements/cr_input/cr_input.m.js'; import 'chrome://resources/cr_elements/cr_dialog/cr_dialog.m.js'; import 'chrome://resources/polymer/v3_0/iron-list/iron-list.js'; import 'chrome://resources/polymer/v3_0/iron-page...
the_stack
import { ChangeDetectorRef, Directive, ElementRef, EventEmitter, HostBinding, HostListener, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges } from '@angular/core'; import {IsMobileOrTablet} from '../utils/utils'; @Directive({ selector: '[ngDropdown]' }) ex...
the_stack
import { NotionCache } from '@nishans/cache'; import { NotionDiscourse } from '@nishans/discourse'; import { NotionEndpoints } from '@nishans/endpoints'; import { NotionIdz } from '@nishans/idz'; import { NotionInit } from '@nishans/init'; import { NotionLineage } from '@nishans/lineage'; import { NotionLogger } from '...
the_stack
import * as DOM from 'vs/base/browser/dom'; import { IKeyboardEvent } from 'vs/base/browser/keyboardEvent'; import { alert as alertFn } from 'vs/base/browser/ui/aria/aria'; import { KeyCode, KeyMod } from 'vs/base/common/keyCodes'; import * as strings from 'vs/base/common/strings'; import { Range } from 'vs/editor/comm...
the_stack
module TDev.RT { // meta in messages coming from a logger will be augmented with the following export interface StdMeta { contextId: string; contextDuration: number; contextUser: string; } export interface AppLogTransport { log? : (level : number, category : string, msg:...
the_stack
import { AST_NODE_TYPES } from '@typescript-eslint/experimental-utils'; import rule from '../../src/rules/no-loop-func'; import { RuleTester } from '../RuleTester'; const ruleTester = new RuleTester({ parser: '@typescript-eslint/parser', }); ruleTester.run('no-loop-func', rule, { valid: [ ` let someArray: MyT...
the_stack
import {ethers} from 'hardhat'; import {setupPermit} from './fixtures'; import {BigNumber, constants} from 'ethers'; import {_TypedDataEncoder, splitSignature} from 'ethers/lib/utils'; import { expectEventWithArgs, expectReceiptEventWithArgs, waitFor, } from '../utils'; import {expect} from '../chai-setup'; impor...
the_stack
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config-base'; interface Blob {} declare class CognitoSyn...
the_stack
import { Section, Container, Heading, Link, Avatar, Flex, Button, Paragraph, Separator, Box, Grid, Text, styled, AspectRatio, } from '@modulz/design-system'; import React from 'react'; import { MarketingCaption } from './MarketingCaption'; import { CheckIcon, ChevronDownIcon } from '@radix-u...
the_stack
import { AppiumDriver, SearchOptions } from "nativescript-dev-appium"; import { assert } from "chai"; const home = "Home Component" const first = "First" const modal = "Modal"; const modalFirst = "Modal First"; const dialogConfirm = "Dialog"; const modalSecond = "Modal Second"; const modalNested = "Modal Nested"; con...
the_stack
import { Access, Characteristic, CharacteristicChange, CharacteristicEventTypes, CharacteristicProps, Formats, HAPStatus, Perms, SerializedCharacteristic, Units, uuid } from '..'; import { SelectedRTPStreamConfiguration } from "./definitions"; import { HapStatusError } from './util/hapStatusError'...
the_stack
'use strict'; // necessary for es6 output in node import { browser, element, by } from 'protractor'; function finalDemoAddressForm(element: any, index: number) { let form = { street: element.all(by.css('input[formcontrolname=street]')).get(index).getAttribute('value'), city: element.all(by.css('input[formco...
the_stack
import { JsonTypeInfoAs, JsonTypeInfoId, JsonIncludeType, JsonFormatShape, JsonPropertyAccess, ObjectIdGenerator, JsonFilterType, PropertyNamingStrategy, JsonCreatorMode, JsonSetterNulls } from '../decorators'; import { DeserializationFeature, SerializationFeature } from '../databind'; /** * https://stackoverflow.com/...
the_stack
import { create, decode, getNumericDate, Header, Payload, validate, verify, } from "../mod.ts"; import { assertEquals, assertThrows, assertThrowsAsync, decodeHex, } from "./test_deps.ts"; const header: Header = { alg: "HS256", typ: "JWT", }; const payload: Payload = { name: "John Doe", };...
the_stack
import { ConcreteRequest } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type ConversationDetailsQueryVariables = { conversationID: string; }; export type ConversationDetailsQueryResponse = { readonly me: { readonly " $fragmentRefs": FragmentRefs<"ConversationDetails_me">; ...
the_stack
import { Component, State, h, Listen, Element } from '@stencil/core'; import { getUser } from '../../util/auth'; import { identify, trackEvent } from '../../util/hubspot'; import { getUtmParams } from '../../util/analytics'; import { UserInfo } from '../../declarations'; import { Emoji } from '../emoji-picker/emoji-p...
the_stack
import { Select } from "./"; import { IJoinQuery, DATA_TYPE, ERROR_TYPE, ISelectQuery } from "@/common"; import { getDataType, LogHelper, removeSpace, promiseReject } from "@/worker/utils"; export const executeJoinQuery = function (this: Select) { return new Join(this).execute(); } interface JoinQueryWithInfo ex...
the_stack
import { expect } from 'chai' import 'mocha' import * as sinon from 'sinon' import { IAirGapTransaction, isCoinlibReady, TezosProtocol } from '../../src' import BigNumber from '../../src/dependencies/src/bignumber.js-9.0.0/bignumber' import { RawTezosTransaction } from '../../src/serializer/types' import { TezosTestPr...
the_stack
import * as stream from 'stream'; import * as db from '../util/db'; import { tokenize, stripUnsafeTokens } from '../util/tokenize'; export interface Row { id : number; schema_id : number|null; is_base : boolean; language : string; type : string; flags : string; utterance : string; prep...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/workspacesMappers"; import * as Parameters from "../models/parameters"; import { MachineLearningWorkspacesManagementClientContext } from "../machineLearningWorkspacesManagementClientContext"; /** Class...
the_stack
import * as React from "react"; import styles from "./ReactPnPjsTester.module.scss"; import { IReactPnPjsTesterProps } from "./IReactPnPjsTesterProps"; import { sp } from "@pnp/sp/presets/all"; import { TextField, Panel, PanelType, Checkbox, Icon, Dropdown, TooltipHost, DirectionalHint, Toggle, Stac...
the_stack
import { type ComputedRef, type Slots, type VNode, computed, reactive, ref, watchEffect } from 'vue' import { isNil } from 'lodash-es' import { type BreakpointKey, useSharedBreakpoints } from '@idux/cdk/breakpoint' import { type VKey, convertArray, flattenNode } from '@idux/cdk/utils' import { type TableColumnBaseCon...
the_stack
import { ClassType, getObjectKeysSize, isArray } from '@deepkit/core'; import { ClassSchema, getClassSchema, plainToClass, t, ValidationFailed } from '@deepkit/type'; import { AppModule } from '@deepkit/app'; import { http, httpClass, JSONResponse } from '@deepkit/http'; import { Database, DatabaseRegistry, Query, Uniq...
the_stack
import { PdfQRBarcodeValues } from './qr-barcode-values'; import { QRCodeVersion, ErrorCorrectionLevel } from '../barcode/enum/enum'; /** * Qrcode used to calculate the Qrcode control */ export class ErrorCorrectionCodewords { /** * Holds the length */ private mLength: number; /** * Holds...
the_stack
import * as crypto from "crypto"; import * as fs from "fs"; import * as path from "path"; import * as vscode from "vscode"; import * as zhihuEncrypt from "zhihu-encrypt"; import * as cheerio from "cheerio"; import { DefaultHTTPHeader, LoginPostHeader, QRCodeOptionHeader, WeixinLoginHeader } from "../const/HTTP"; import...
the_stack
import * as DiffMatchPatch from 'diff-match-patch'; function testDiffMainEach() { const oldValue = "hello world, how are you?"; const newValue = "hello again world. how have you been?"; const diffEngine = new DiffMatchPatch.diff_match_patch(); const diffs = diffEngine.diff_main(oldValue, newValue); ...
the_stack
import { ReactNode, forwardRef, Ref, ButtonHTMLAttributes, AnchorHTMLAttributes, HTMLAttributes, FC, } from 'react'; import { css } from '@emotion/react'; import isPropValid from '@emotion/is-prop-valid'; import { ChevronRight, IconProps } from '@sumup/icons'; import styled, { StyleProps } from '../../st...
the_stack
import { Long } from "./long"; import { ParametricDescription } from "./parametric_description"; // 1 vectors; 3 states per vector; array length = 3 const toStates0 = /*2 bits per value */ [ new Long(0x23) ]; const offsetIncrs0 = /*1 bits per value */ [ new Long(0x0) ]; // 2 vectors; 5 states per vector; array le...
the_stack
import jwt from 'jsonwebtoken' import axios from 'axios' import chalk from 'chalk' import { ArrayChange, diffArrays } from 'diff' import enquirer from 'enquirer' import moment from 'moment' import R, { compose, concat, contains, curry, head, last, prop, propSatisfies, reduce, split, tail, __ } from 'ramda' import semve...
the_stack
import React, { useCallback, useContext, useEffect, useMemo, useRef } from 'react'; import appContext from '../stores/appContext'; import { dailyNotesService, globalStateService, locationService, memoService, resourceService } from '../services'; import utils from '../helpers/utils'; import { storage } from '../helpers...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace Formmsdyn_resourcerequirement_Information { interface Tabs { } interface Body { /** The name of the custom entity. */ msdyn_name: DevKit.Controls.String; notescontrol: DevKit.Controls.Note; /** Owner Id */ OwnerI...
the_stack
import clsx from "clsx" import React, { useCallback, useState } from "react" import { CSSTransition, TransitionGroup } from "react-transition-group" import Button from "@theme/Button" import Chevron from "@theme/Chevron" import PageLayout from "@theme/PageLayout" import useResizeObserver from "@theme/useResizeObserver...
the_stack
import path from 'path'; import fs from 'fs-extra'; import program from 'commander'; import chalk from 'chalk'; import process from 'process'; import { pad, padStart, padEnd } from 'lodash'; import { FSHTank, RawFSH } from './import'; import { exportFHIR, Package } from './export'; import { IGExporter } from './ig'; im...
the_stack
import { fromFileUrl, html, join, marked, hljs } from '../deps_cli.ts'; import { Page } from './page.ts'; import { computeBreadcrumbs, SidebarNode } from './sidebar.ts'; import { SiteConfig, SiteSearchConfig } from './site_config.ts'; import { replaceSuffix } from './site_model.ts'; import { computeToc, Heading, TocNod...
the_stack
import { CstNode, IToken } from 'chevrotain'; import { Condition, ConditionWithValueQuery, DateLiteral, DateNLiteral, Field, FieldFunctionExpression, FieldRelationship, FieldRelationshipWithAlias, FieldSubquery, FieldType, FieldTypeOf, FieldTypeOfCondition, FieldWithAlias, FunctionExp, Gro...
the_stack
import * as coreClient from "@azure/core-client"; export const ResourceProviderOperationList: coreClient.CompositeMapper = { type: { name: "Composite", className: "ResourceProviderOperationList", modelProperties: { value: { serializedName: "value", type: { name: "Sequence"...
the_stack
import warning from 'warning'; import { LineClient } from 'messaging-api-line'; import { mocked } from 'ts-jest/utils'; import LineConnector, { GetSessionKeyPrefixFunction } from '../LineConnector'; import LineContext from '../LineContext'; import LineEvent from '../LineEvent'; import { LineRequestBody } from '../Line...
the_stack
import { default as base } from './default.basic'; import { innerScaleFont, innerScaleSize } from './responsive'; /* * components */ const MDComponentsThemes: { [key: string]: any } = { // button button: { primaryFill: base.colors.primary, defaultFill: base.colors.bgInverse, disabledFill: base.color...
the_stack
import { nestList, toggleList } from './lists'; import { jsx, makeEditor } from './tests/utils'; test('ordered list shortcut', () => { let editor = makeEditor( <editor> <paragraph> <text> 1. <cursor /> </text> </paragraph> </editor> ); editor.insertText(' ...
the_stack
import * as React from 'react' import { useDispatch, useSelector } from 'react-redux' import uniq from 'lodash/uniq' import UAParser from 'ua-parser-js' import { useConditionalConfirm } from '@opentrons/components' import { selectors as uiLabwareSelectors } from '../ui/labware' import * as timelineWarningSelectors fro...
the_stack
import * as React from "react"; import { routerShape } from "react-router"; import { I18n } from "@lingui/core"; import { Trans } from "@lingui/macro"; import gql from "graphql-tag"; import { DataLayer, DataLayerType } from "@extension-kid/data-layer"; import { take } from "rxjs/operators"; import { Badge, SpacingBox...
the_stack
import {concatByteArrays} from "teamten-ts-utils"; import {Density, FloppyDisk, FloppyDiskGeometry, numberToSide, Side} from "./FloppyDisk.js"; import {toHexByte} from "z80-base"; // Print extra debugging information. const DEBUG = false; // Whether to check the high bits of the GAT table entries. I keep seeing flopp...
the_stack
import { Selector, Agile, Collection, StateObserver, Item } from '../../../src'; import { LogMock } from '../../helper/logMock'; describe('Selector Tests', () => { interface ItemInterface { id: string; name: string; } let dummyAgile: Agile; let dummyCollection: Collection<ItemInterface>; beforeEach...
the_stack
import { Component, OnInit, ElementRef, HostListener, OnDestroy, Input } from '@angular/core'; import { Store } from '@ngrx/store'; import { Subject } from 'rxjs/Subject'; import { Title } from '@angular/platform-browser'; import { global, authPayload, StorageService } from '../../services/common'; import { AppStore } ...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * Manages a Logic App (Standard / Single Tenant) * * > **Note:** To connect an Azure Logic App and a subnet within the same region `azure.appservice.VirtualNetworkS...
the_stack
import * as coreHttp from "@azure/core-http"; import { should, assert } from "chai"; import { isEqual } from "lodash"; import HeaderRestClient, { HeaderRestClientRestClient } from "./generated/headerRest/src"; should(); describe("header Rest", function() { describe("Swagger Header BAT", function() { describe("B...
the_stack
// Constants and methods found in Chromium 87.0.4280.141 (nw.js 0.50.3) // WebGL 2 Compute was removed in Chromium 88.0.4324.11 (19 November 2020), see: // https://chromereleases.googleblog.com/2020/11/dev-channel-update-for-desktop_19.html // https://chromium.googlesource.com/chromium/src/+/34b075c18befb4f043aaa9612bd...
the_stack
import { BaseResource, CloudError } from "ms-rest-azure"; import * as moment from "moment"; export { BaseResource, CloudError }; /** * ARM resource. */ export interface Resource extends BaseResource { /** * Resource ID. */ readonly id?: string; /** * Resource name. */ readonly name?: string...
the_stack
import adaptor, { Adaptor, FirebaseWriteBatch } from '../adaptor' import { Collection } from '../collection' import { Ref } from '../ref' import { unwrapData } from '../data' import { UpdateModel } from '../update' import { Field } from '../field' import { SetModel } from '../set' import { UpsetModel } from '../upset' ...
the_stack
require('es6-promise').polyfill(); import * as Bacon from "../.."; import { expect } from "chai"; import { TickScheduler } from "./TickScheduler"; import { mockFunction } from "./Mock" import { fail } from "assert"; export const sc = TickScheduler(); Bacon.setScheduler(sc); export const expectError = (errorText: str...
the_stack
import { TreeNode, TreeIterator } from "../Base/Tree"; import { ContainerIterator, ContainerType } from "../Base/Base"; export interface SetType<T> extends ContainerType<T> { /** * Inserts element to Set. */ insert: (element: T) => void; /** * @return An iterator to the first element not les...
the_stack
import {assert} from 'chai'; import * as dom5 from 'dom5/lib/index-next'; import * as parse5 from 'parse5'; import * as path from 'path'; import {htmlTransform} from '../html-transform'; import {assertEqualIgnoringWhitespace} from './util'; /** * Replaces the Babel helpers, Require.js AMD loader, and WCT hack inlin...
the_stack
import {ListNode, Location, ListItemNode} from '../../node' import isNumeric from '../is-numeric' import Tokenizer from '../tokenizer' import {Parser} from '../parser' import {TAB_SIZE, ruleMarkers} from '../shared-constants' /* * A set of characters which can be used to mark * list-items. */ const listUnorderedM...
the_stack
import * as GObject from "@gi-types/gobject"; import * as Gio from "@gi-types/gio"; import * as GLib from "@gi-types/glib"; export const MAJOR_VERSION: number; export const MICRO_VERSION: number; export const MINOR_VERSION: number; export const VERSION_S: string; export function boxed_can_deserialize(gboxed_type: GObj...
the_stack
import {fixture} from '../../helper'; import test from 'ava'; import {List} from 'immutable'; import TimelineState, {DefaultTimelineState, TimelineKind} from '../../../../renderer/states/timeline'; import Item from '../../../../renderer/item/item'; import Tweet from '../../../../renderer/item/tweet'; import Activity fr...
the_stack
import * as React from 'react'; import * as ReactModal from 'react-modal'; import { connect } from 'react-redux'; import {Datum} from 'vega'; import {addPipeline, derivePipeline} from '../../actions/pipelineActions'; import {Dataset, DatasetRecord, ValuesDatasetRecord} from '../../store/factory/Dataset'; import {Pipeli...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement } from "../shared"; /** * Statement provider for service [codeguru-reviewer](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazoncodegurureviewer.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/l...
the_stack
import * as child_process from 'child_process'; import { ExecException } from 'child_process'; import * as fs from 'fs'; import { stat } from 'fs/promises'; import * as https from 'https'; import * as path from 'path'; import { match } from 'ts-pattern'; import { promisify } from 'util'; import { ConfigurationTarget, E...
the_stack
import { pick } from 'ramda' import { describe, Try } from 'riteway' import { loadConfigurationWithDefaults, mergeConfigs, applyExchangePrefix, extractValue, validatePoetVersion, validatePoetNetwork, } from './LoadConfiguration' const defaultConfig = mergeConfigs() describe('src/LoadConfiguration', async ...
the_stack
import React, { Component } from 'react'; import { TextInput, FileUploader, Accordion, AccordionItem, Link, FileUploaderItem, InlineNotification, NotificationKind } from 'carbon-components-react'; import IPackageRegistryEntry from '../../../../interfaces/IPackageRegistryEntry'; import './DeployStepTwo.scss'; interface...
the_stack
import { flatbuffers } from "flatbuffers"; import * as NS7624605610262437867 from "./Schema"; export declare namespace org.apache.arrow.flatbuf { export import Schema = NS7624605610262437867.org.apache.arrow.flatbuf.Schema; } /** * ---------------------------------------------------------------------- * The root Me...
the_stack
import { Component, OnInit, Input, OnDestroy } from '@angular/core'; import { GridOptions } from 'ag-grid'; import { Subscription } from 'rxjs/Subscription'; import { Router } from '@angular/router'; import { DataCacheService } from '../../../../core/services/data-cache.service'; import { CommonResponseService } from '...
the_stack
import * as child_process from 'child_process'; import { expect } from 'chai'; import * as Databench from '.'; import * as https from 'https'; import * as request from 'request'; describe('Standalone Process', () => { let databench_process_return_code = -42; const databench_process = child_process.spawn('python',...
the_stack
import { expect, test } from '@jest/globals'; import { pack } from '../src/reflection/processor'; import { copyAndSetParent, ParentLessType, ReflectionKind, ReflectionVisibility, TypeObjectLiteral, TypePropertySignature, TypeUnion } from '../src/reflection/type'; import { MappedModifier, ReflectionOp } from '@deepkit/t...
the_stack
import {RootState} from '../../data/reducers'; import {ProviderSourceConfig, runTimeType} from '../../types'; import {containerActionCreators} from '../Container/action'; import {isEqual, isPlainObject, isEmpty, get, has} from 'lodash'; import {ContainerProps} from '../Container/Container'; import {RunTimeContextCollec...
the_stack
import { EventEmitter } from 'events'; import { Kind, ActionType, Region, ModeInfoSet } from './actions'; import log from '../log'; import ScreenDrag from './screen-drag'; import ScreenWheel from './screen-wheel'; import { DOM } from '../neovim'; import { Dispatcher } from 'flux'; // TODO: // Debug log should be imple...
the_stack
import * as path from 'path' import * as fs from 'fs' export type AssetType = 'html' | 'typescript' | 'javascript' | 'css' | 'file' export type Asset = Html | JavaScript | TypeScript | Css | File export type Html = { type: 'html', timestamp: number, sourcePath: string, targetPath: string, content: ...
the_stack
export const alertTypes = ["error", "info", "success", "warn", "default"]; export const messageType = ["", "warning", "success", "error"]; export const numInputTypes = ["integer", "decimal"]; export const badgeColor = ["default", "blue", "red", "yellow", "green", "mint"]; export const BarFormat = ["none", "fraction", "...
the_stack
import { SemanticTokensLegend, TokenMetadata, FontStyle, MetadataConsts, SemanticTokens } from 'vs/editor/common/modes'; import { IThemeService } from 'vs/platform/theme/common/themeService'; import { ILogService, LogLevel } from 'vs/platform/log/common/log'; import { MultilineTokens2, SparseEncodedTokens } from 'vs/ed...
the_stack
import Button from "antd/lib/button"; import Row from "antd/lib/row"; import { Languages } from "iotex-react-language-dropdown"; import { LanguageSwitcher } from "iotex-react-language-dropdown/lib/language-switcher"; import isBrowser from "is-browser"; import { t } from "onefx/lib/iso-i18n"; import { styled, StyleObjec...
the_stack
import { Palette } from "../interface"; export function getItalicSyntax(palette: Palette, italicComments: boolean) { const syntax = [ // Syntax{{{ { name: "Regular", scope: "storage.type.function.arrow, keyword.other.arrow", settings: { fontStyle: "regular", }, }, { ...
the_stack
import { adoptACLDefault, getProspectiveHolder, makeACLGraphbyCombo, sameACL } from './acl' import { graph, NamedNode, UpdateManager } from 'rdflib' import { AccessGroups } from './access-groups' import { DataBrowserContext } from 'pane-registry' import { shortNameForFolder } from './acl-control' import * as utils from...
the_stack
import { Inject, Injectable, Optional } from '@angular/core'; import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; import { CustomHttpParameterCodec } from '../encoder'; import { Observable }...
the_stack
import { buildMarkdownParser } from "../../src/shared/markdown-parser"; import { richTextSchema } from "../../src/shared/schema"; import "../matchers"; const markdownParser = buildMarkdownParser( { snippets: true, html: true, tagLinks: { allowNonAscii: false, allowMe...
the_stack
'use strict'; import * as jsonc from 'jsonc-parser'; import * as path from 'path'; import * as vscode from 'vscode'; import { IPreferences } from 'vscode-wpilibapi'; import { localize as i18n } from './locale'; import { IPreferencesJson } from './shared/preferencesjson'; import { existsAsync, mkdirAsync, readFileAsync,...
the_stack
import { DeleteAllResponse } from '@destinyitemmanager/dim-api-types'; import { needsDeveloper } from 'app/accounts/actions'; import { compareAccounts } from 'app/accounts/destiny-account'; import { currentAccountSelector } from 'app/accounts/selectors'; import { getActiveToken as getBungieToken } from 'app/bungie-api/...
the_stack
import { EventEmitter } from '@angular/core'; import { TestBed } from '@angular/core/testing'; import { FileModel, FileUploadOptions, FileUploadStatus } from '../models/file.model'; import { AppConfigModule } from '../app-config/app-config.module'; import { UploadService } from './upload.service'; import { AppConfigSer...
the_stack
// check out PR#54998 for the possibility of a rewrite (https://github.com/DefinitelyTyped/DefinitelyTyped/pull/54998) // as well as this branch: https://github.com/vanitasboi/DefinitelyTyped/tree/steam-user-rewrite /// <reference types="node" /> import type SteamID = require('steamid'); import type ByteBuffer = requ...
the_stack
"use strict"; import * as tl from "azure-pipelines-task-lib/task"; import * as fs from 'fs'; import ContainerConnection from "azure-pipelines-tasks-docker-common-v2/containerconnection"; import * as dockerCommandUtils from "azure-pipelines-tasks-docker-common-v2/dockercommandutils"; import * as utils from "./utils"; i...
the_stack
import React from "react"; import { useEffect } from "react"; import styled from "styled-components"; import { useDispatch, useSelector } from "react-redux"; import { closeAllPanels, setCurrentCodeError } from "@codestream/webview/store/context/actions"; import { useDidMount, usePrevious } from "@codestream/webview/uti...
the_stack
import { Injectable } from '@angular/core'; import { createModuleTest } from './tests/createModuleTest'; import { createComponentTest } from './tests/createComponentTest'; import { createBootstrapTest } from './tests/bootstrapTest'; import { DiffFilesResolver } from '../libs/utils/src/lib/differ/diffFilesResolver'; de...
the_stack
import * as oracledb from 'oracledb'; import defaultOracledb from 'oracledb'; // import dotenv from 'dotenv'; import assert from 'assert'; // dotenv.config(); /* TABLE SETUP FOR TESTING: CREATE TABLE CONNOR_TEST_TABLE ( TEST VARCHAR2(20) NOT NULL, CLOB_COLUMN CLOB ); */ const { DB_CONNECTION_STRING, ...
the_stack
import { setupListEditor } from './list-setup'; describe('create a list', () => { const { taskList, li, doc, p, ul, ol, orderedList, unchecked, checked, editor } = setupListEditor(); it('creates a bulletList', () => { editor.add(doc(p(''))).insertText('- '); expect(editor.doc).toEqualProsemirrorNode(d...
the_stack