text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
* 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 {absoluteFrom, AbsoluteFsPath, FileSystem, getFileSystem, PathSegment} from '../../../../src/ngtsc/file_system';
import {runInEachFileSystem} from '../../../../src/ngtsc/file_system/testing';
import {EntryPointPackageJson} from '../../../src/packages/entry_point';
import {BackupFileCleaner, NgccDirectoryCleaner,... | the_stack |
let globalCurrentView: string[] = [];
let previouslyActive: string = '';
let toRemove = '';
let order = new Map<string, number>();
let isSideBarClick = false;
let isFirstOpen = true; // is true on the first observation of all entries
let everyEntry: any[] = []; // a list of all attributes/properties etc.
interf... | the_stack |
import { TestProjectSpec } from '../framework/frameworkTestSupport';
import { VariablesWizard } from '../wizards/variables/variablesWizard';
import { LaunchProject } from '../fixtures/launchProject';
import { testUsing } from '../fixtures/testUsing';
// Scopes' kinds: 'global' | 'local' | 'with' | 'closure' | 'catch' ... | the_stack |
import { when } from 'jest-when';
import { KVStore } from '@liskhq/lisk-db';
import { codec } from '@liskhq/lisk-codec';
import { Block, Chain } from '@liskhq/lisk-chain';
import { BFT } from '@liskhq/lisk-bft';
import { getAddressFromPublicKey, getRandomBytes } from '@liskhq/lisk-cryptography';
import { FastChainSwit... | the_stack |
import { Component } from "react"
import * as React from "react"
import { createFragmentContainer, graphql } from "react-relay"
import { Title } from "react-head"
import { Router, Match } from "found"
import {
Button,
Flex,
Join,
Message,
Text,
Spacer,
media,
} from "@artsy/palette"
import styled from "st... | the_stack |
* This file was automatically generated by https://github.com/Bolisov/google-api-typings-generator. Please do not edit it manually.
* In case of any problems please post issue to https://github.com/Bolisov/google-api-typings-generator
**/
gapi.load('client', () => {
/** now we can use gapi.client */
gapi.client... | the_stack |
import * as fs from 'fs';
import * as path from 'path';
import * as os from 'os';
import ServicePaths from '../services/service.paths';
import Logger from '../tools/env.logger';
import ServicePackage from './service.package';
import ServiceElectron, { Subscription, IPCMessages } from './service.electron';
import Servi... | the_stack |
import { balance, ether, expectEvent, expectRevert } from '@openzeppelin/test-helpers'
import BN from 'bn.js'
import chai from 'chai'
import { toBN } from 'web3-utils'
import { decodeRevertReason, getEip712Signature, removeHexPrefix } from '@opengsn/common/dist/Utils'
import { RelayRequest, cloneRelayRequest } from '@... | the_stack |
import { MessageItem, QuickInputButtons, Uri, window } from 'vscode';
import { configuration } from '../../configuration';
import { Container } from '../../container';
import { PlusFeatures } from '../../features';
import {
WorktreeCreateError,
WorktreeCreateErrorReason,
WorktreeDeleteError,
WorktreeDeleteErrorReas... | the_stack |
* Copyright 2015 Dev Shop Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | the_stack |
import { EventHandler, dom, h } from "../../src/index";
import { expect, sinon } from "../test-utilities";
let noopEventHandlerInterceptor = (
propertyName: string,
functionPropertyArgument: EventHandler
) => {
return function (this: Node) {
/* eslint-disable prefer-rest-params */
return functionProperty... | the_stack |
import { TreeGrid } from '../../src/treegrid/base/treegrid';
import { createGrid, destroy } from '../base/treegridutil.spec';
import { projectData, sampleData } from '../base/datasource.spec';
import { ToolbarItem } from '../../src/treegrid/enum';
import { Toolbar } from '../../src/treegrid/actions/toolbar';
import { E... | the_stack |
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
/**
* Role Definitions filter
*/
export interface RoleDefinitionFilter {
/**
* Returns role definition with the specific name.
*/
... | the_stack |
import {EventEmitter} from "eventemitter3";
import PriorityQueue from "typescript-collections/PriorityQueue";
export interface Asset {
id: string;
url: string;
priority: number;
type?: any;
}
export interface SoundAsset extends Asset {
autoplay: boolean;
loop?: boolean;
volume?: number;
... | the_stack |
import {Component, ComponentSet} from './component';
import {EmbeddedComponent} from './embedded-component';
import {attribute, primaryIdentifier, secondaryIdentifier, provide} from './decorators';
import {serialize} from './serialization';
describe('Serialization', () => {
test('Component classes', async () => {
... | the_stack |
import { stripIndent } from "common-tags";
import { fromFixture } from "eslint-etc";
import rule = require("../../source/rules/prefer-takeuntil");
import { ruleTester } from "../utils";
ruleTester({ types: true }).run("prefer-takeuntil", rule, {
valid: [
{
code: stripIndent`
// correct component
... | the_stack |
import { Component, OnInit, OnDestroy, Input } from '@angular/core';
import { FetchResourcesService } from './../../services/fetch-resources.service';
import { ActivatedRoute } from '@angular/router';
import 'rxjs/add/operator/switchMap';
import { Subscription } from 'rxjs/Subscription';
import { AssetGroupObservableSe... | the_stack |
import chalk from 'chalk'
import { EventData } from 'web3-eth-contract'
import { EventEmitter } from 'events'
import { toBN, toHex } from 'web3-utils'
import { toBuffer, PrefixedHexString, BN } from 'ethereumjs-util'
import { IRelayHubInstance } from '@opengsn/contracts/types/truffle-contracts'
import { ContractInter... | the_stack |
* @deprecated `kaitian` was deprecated, Please use `sumi` instead.
*/
declare module 'kaitian' {
export * from 'sumi';
}
declare module 'sumi' {
export * from 'vscode';
import {
ExtensionContext as VSCodeExtensionContext,
Disposable,
TextEditor,
TextEditorEdit,
ExtensionKind,
} from 'vscod... | the_stack |
import * as React from 'react';
import { connect } from 'react-redux';
import { Dispatch } from 'redux';
import { removeActivity } from '../../redux/Actions';
import {
cadLog,
getSetting,
returnOptionalCookieAPIAttributes,
siteDataToBrowser,
throwErrorNotification,
} from '../../services/Libs';
import { Filte... | the_stack |
namespace ts {
describe("unittests:: createSetShim", () => {
const stringKeys = [
"1",
"3",
"2",
"4",
"0",
"999",
"A",
"B",
"C",
"Z",
"X",
"X1",
... | the_stack |
import {
AlgorithmSuite,
AlgorithmSuiteIdentifier,
WebCryptoEncryption,
WebCryptoHash,
WebCryptoECDHCurve,
AlgorithmSuiteTypeWebCrypto,
MessageFormat,
Commitment,
AesGcm,
AlgBasic,
AlgKdf,
AlgKdfSigned,
AlgCommitted,
AlgCommittedSigned,
} from './algorithm_suites'
import { needs } from './ne... | the_stack |
namespace evaluator {
declare let Symbol: SymbolConstructor;
const sourceFile = vpath.combine(vfs.srcFolder, "source.ts");
const sourceFileJs = vpath.combine(vfs.srcFolder, "source.js");
// Define a custom "Symbol" constructor to attach missing built-in symbols without
// modifying the glob... | the_stack |
import * as chai from "chai";
import { Configuration, SourceFile, createProject } from "../src/index";
import { JSDOM } from "jsdom";
import { buildSimpleIFrameDom, getEditorIFrame, buildMultiIFrameDom, getEditorIFrames, buildDoubleIFrameDom } from "./domUtilities";
import * as chaiAsPromised from "chai-as-promised";
i... | the_stack |
import '@material/mwc-button';
import '@material/mwc-icon';
import { deepEqual } from 'fast-equals';
import { css, customElement, html } from 'lit-element';
import { classMap } from 'lit-html/directives/class-map';
import { repeat } from 'lit-html/directives/repeat';
import { styleMap } from 'lit-html/directives/style-... | the_stack |
import { Observable, of, BehaviorSubject } from 'rxjs';
import { tap, finalize, take, filter, map } from 'rxjs/operators';
import { PblDataSourceTriggerChangedEvent, DataSourceOf, PblDataSourceConfigurableTriggers } from '@pebula/ngrid/core';
import { PblInfiniteScrollFactoryOptions, PblInfiniteScrollDsOptions, PblInfi... | the_stack |
import { Interface } from '@ethersproject/abi';
import { Contract } from '@ethersproject/contracts';
import { getLuminance } from '@openpalette/color';
import { CHAIN_ID } from '@openpalette/contract';
import {
CheckIcon,
ExternalLinkIcon,
Pencil1Icon,
} from '@radix-ui/react-icons';
import {
Blockquote,
Body... | the_stack |
import { Scope } from '@sentry/browser';
import { fireEvent, render, screen } from '@testing-library/react';
import * as React from 'react';
import { useState } from 'react';
import {
ErrorBoundary,
ErrorBoundaryProps,
isAtLeastReact17,
UNKNOWN_COMPONENT,
withErrorBoundary,
} from '../src/errorboundary';
co... | the_stack |
import * as React from 'react';
import { DefaultButton, CommandButton } from 'office-ui-fabric-react';
import { IWebPartContext } from '@microsoft/sp-webpart-base';
import { Logger, LogLevel } from "@pnp/logging";
import styles from './BoxButtonWebPart.module.scss';
import * as strings from 'boxButtonWebPartStrings';
... | the_stack |
import { Client } from '../../api/client';
import { SessionKeepAlive } from '../session-keep-alive';
import { Bounds, GenericEvent, ActiveMapTool, ImageFormat, RefreshMode, SelectionVariant, ClientKind, LayerTransparencySet, Size, BLANK_SIZE, IMapGuideViewerSupport, Dictionary } from '../../api/common';
import { IQuery... | the_stack |
import { TextBlock, StackPanel, AdvancedDynamicTexture, Image, Button, Rectangle, Control, Grid } from "@babylonjs/gui";
import { Scene, Sound, ParticleSystem, PostProcess, Effect, SceneSerializer } from "@babylonjs/core";
export class Hud {
private _scene: Scene;
//Game Timer
public time: number; //keep ... | the_stack |
import { constants } from '@scalecube/utils';
import { createMS, ASYNC_MODEL_TYPES } from '../../mocks/microserviceFactory';
import {
getInvalidMethodReferenceError,
SERVICES_IS_NOT_ARRAY,
SERVICE_IS_NOT_OBJECT,
getInvalidServiceReferenceError,
getServiceReferenceNotProvidedError,
} from '../../../src/helpers... | the_stack |
import { XPortalService, XPortalOverlayRef, XPortalConnectedPosition } from '@ng-nest/ui/portal';
import { Subject } from 'rxjs';
import {
Component,
OnInit,
ViewEncapsulation,
ChangeDetectionStrategy,
ChangeDetectorRef,
Renderer2,
ElementRef,
OnChanges,
ViewContainerRef,
ViewChild,
SimpleChanges
... | the_stack |
import {
assertEquals,
assertMatch,
assertThrows,
} from "https://deno.land/std@0.53.0/testing/asserts.ts";
import { DB, Status } from "./mod.ts";
import { SqliteError } from "./src/error.ts";
// file used for fs io tests
const testDbFile = "test.db";
const permRead =
(await Deno.permissions.query({ name: "re... | the_stack |
import * as codepipeline from '@aws-cdk/aws-codepipeline';
import * as iam from '@aws-cdk/aws-iam';
import * as cdk from '@aws-cdk/core';
import { Construct } from 'constructs';
/**
* Options in common between both StackSet actions
*/
export interface CommonCloudFormationStackSetOptions {
/**
* The percentage ... | the_stack |
import * as jsStyles from './AssignsStyles';
import * as React from 'react';
import InfiniteScroll from 'react-infinite-scroller';
import spservices from '../../../../services/spservices';
import styles from './Assigns.module.scss';
import * as strings from 'MyTasksWebPartStrings';
import {
Callout,
DefaultPalette,... | the_stack |
import { RuleTester, Failure, Position, dedent } from './ruleTester';
const ruleTester = new RuleTester('brace-style');
const fail = {
open: 'Opening curly brace does not appear on the same line as controlling statement.',
openAllman: 'Opening curly brace appears on the same line as controlling statement.',
bod... | the_stack |
module StockChart {
interface IKLineOptions extends IChartOptions {
ohlcPrices: CandleBar[]
volumes: number[]
dates: string[]
dataCount: number
riseColor: string
fallColor: string
period: Period,
maLists: MAList[]
}
type CandleBar = {
o: number
h: number
l: number
... | the_stack |
import { App, Stack } from '@aws-cdk/core';
import * as iam from '../lib';
import { PolicyStatement } from '../lib';
const PRINCIPAL_ARN1 = 'arn:aws:iam::111111111:user/user-name';
const principal1 = new iam.ArnPrincipal(PRINCIPAL_ARN1);
const PRINCIPAL_ARN2 = 'arn:aws:iam::111111111:role/role-name';
const principal2... | the_stack |
import quip from "quip-apps-api";
import quiptext from "quiptext";
import moment from "moment";
import isDate from "date-fns/isDate";
import startOfWeek from "date-fns/startOfWeek";
import {isSameDay} from "./util";
import debounce from "lodash.debounce";
import {DateRange} from "./types";
export type Event = {
col... | the_stack |
import { KitchenSinkCreateInput } from '../generated/binding';
export const KITCHEN_SINKS: KitchenSinkCreateInput[] = [
{
dateField: '2000-03-26T19:39:08.597Z',
stringField: 'Trantow',
emailField: 'consequuntur-94489@a.com',
integerField: 41,
stringEnumField: 'BAR',
booleanField: false,
f... | the_stack |
import {
generateBookmark,
generateHistory,
generateTab,
} from "cypress/fixtures/fixtures";
import { setupExtensionEnvironment } from "cypress/support/support";
import { SEARCH_PREFIX } from "~/constants";
describe("App", () => {
beforeEach(() => {
cy.visit("/dist/popup/index.html", {
onBeforeLoad(w... | the_stack |
import { assert, expect } from "chai";
import { Matrix3d, Matrix4d, Point3d, Transform, Vector3d } from "@itwin/core-geometry";
import { fromNormalizedCrossProduct, Matrix3, Matrix4, normalizedDifference } from "../../../render/webgl/Matrix";
describe("Matrix3", () => {
it("constructor works as expected", () => {
... | the_stack |
import { CancellationToken } from 'vscode-languageserver';
import { assert } from '../common/debug';
import { combinePaths, getDirectoryPath } from '../common/pathUtils';
import { parseAndGetTestState } from './harness/fourslash/testState';
import { testRenameModule } from './renameModuleTestUtils';
test('from... | the_stack |
import { ScoredItem, SocialMediaItem } from '../common-types';
import {
applyCommentFilters,
itemHasImage,
itemIsVerified,
itemMeetsDateFilters,
itemMeetsRegexFilters,
itemMeetsToxicityRangeFilters,
} from './filter_utils';
describe('FilterUtils', () => {
it('gives correct output of applyCommentFilters',... | the_stack |
import { TreeSet } from 'jstreemap';
const SECOND = 0;
const MINUTE = 1;
const HOUR = 2;
const DAY_OF_MONTH = 3;
const MONTH = 4;
const DAY_OF_WEEK = 5;
const YEAR = 6;
const ALL_SPEC_INT = 99; // '*'
const NO_SPEC_INT = 98; // '?'
let monthMap = new Map();
let dayMap = new Map();
monthMap.set('JAN', 0);
monthMap.set(... | the_stack |
import { h, Component } from 'preact';
import { Side } from '@t/store/focus';
import { ColumnInfo, ComplexColumnInfo } from '@t/store/column';
import { Range } from '@t/store/selection';
import { ColGroup } from './colGroup';
import {
cls,
setCursorStyle,
getCoordinateWithOffset,
hasClass,
findParentByClassNa... | the_stack |
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
import * as utilities from "../utilities";
/**
* Creates a new object inside an existing bucket in Google cloud storage service (GCS).
* [ACLs](https://cloud.google.com/storage/docs/access-control/lists) can be a... | the_stack |
import { assertEq } from "./test"
//
// simple s-expressions parser made for arch rewrite rules DSL,
// but is generic and can be used independently.
// Do remember than changing this requires testing of the generator
// program in the arch directory.
//
const char = (s :string) => s.charCodeAt(0)
const chr = (code :i... | 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 Rbin exten... | the_stack |
import {IBlock} from './Blocks/IBlock';
// SOURCE BLOCKS //
import {Granular} from './Blocks/Sources/Granular';
import {Microphone} from './Blocks/Sources/Microphone';
import {Noise} from './Blocks/Sources/Noise';
import {Recorder} from './Blocks/Sources/Recorder';
import {Sample} from './Blocks/Sources/Sample';
impor... | the_stack |
(function parse_init() {
"use strict";
const parser = function parse_parser():any {
const langstore:[string, string] = [sparser.options.language, sparser.options.lexer];
parse.count = -1;
parse.data = {
begin: [],
ender: [],
... | the_stack |
import {Vector3, Matrix3} from '@math.gl/core';
import type {GLTFMeshPrimitive, GLTFWithBuffers} from '../types/gltf-types';
import type {GLTFLoaderOptions} from '../../gltf-loader';
import {getAccessorArrayTypeAndLength} from '../gltf-utils/gltf-utils';
import {BYTES, COMPONENTS} from '../gltf-utils/gltf-constants';
i... | the_stack |
declare let DecoderModule: any;
declare let TextDecoder: any;
export const TRACE_RENDERING = 0;
let YUV2RGB_TABLE = new Uint32Array(256 * 256 * 256);
function YUV2RGB(y, u, v) {
return YUV2RGB_TABLE[(y << 16) | (u << 8) | v];
}
export function clamp(v, a, b) {
if (v < a) v = a;
if (v > b) v = b;
return v;
}
f... | the_stack |
import React, {Component} from 'react';
import {View, StyleSheet, FlatList, ActivityIndicator, Text, ImageBackground} from 'react-native';
import {connect, DispatchProp} from 'react-redux';
import {NavigationInjectedProps, withNavigation} from 'react-navigation';
import MediaQuery from 'react-responsive';
import Messa... | the_stack |
import { execSync } from "child_process";
import os from "os";
import path from "path";
import logger from "@docusaurus/logger";
import fs from "fs-extra";
import { kebabCase } from "lodash";
import prompts from "prompts";
import shell from "shelljs";
import supportsColor from "supports-color";
const RecommendedTempl... | the_stack |
'use strict';
import * as React from 'react';
import { connect } from 'react-redux';
import { ORIGIN } from 'chord/music/common/origin';
import { IEpisode } from 'chord/sound/api/episode';
import { IPodcast } from 'chord/sound/api/podcast';
import { IRadio } from 'chord/sound/api/radio';
import { makeListKey } from... | the_stack |
module android.graphics.drawable{
import Canvas = android.graphics.Canvas;
import Rect = android.graphics.Rect;
import PixelFormat = android.graphics.PixelFormat;
import WeakReference = java.lang.ref.WeakReference;
import Runnable = java.lang.Runnable;
import StateSet = android.util.StateSet;
... | the_stack |
import * as singleLineString from "single-line-string";
import * as Web3 from "web3";
import { BigNumber } from "../../utils/bignumber";
// APIs
import { AdaptersAPI, ContractsAPI } from ".";
// Adapters
import { Adapter } from "../adapters";
// Wrappers
import {
DebtKernelContract,
DebtOrderDataWrapper,
D... | the_stack |
'use strict';
import * as vscode from 'vscode';
import * as ts from 'typescript';
import throttle = require('lodash.throttle');
// TODO Clean up defensive development guards (DEBUG, most try-catches, etc), as the extension seems to work without errors,
// and the vscode extension platform can mostly be trusted to do ... | the_stack |
module fng.services {
/**
* Operations on a whole record
*
* All methods should be state-less
*
*/
/*@ngInject*/
export function recordHandler($location, $window, $filter, $timeout, routingService, cssFrameworkService, SubmissionsService, SchemasService): fng.IRecordHandler {
// TODO: Put thi... | the_stack |
import {
NullVisitor,
ParsedVisitor,
ParseMethod,
ParseResult,
ParseIntersectionType,
ParseTypeAliasDeclaration,
ParseGeneric,
ParseInterfaceDeclaration,
ParseProperty,
ParseVariableDeclaration,
ParseClassDeclaration,
ParseUnionType,
ParseValueType,
ParsePrimitiveType,
ParseTypeLiteral,
... | the_stack |
import * as React from "react"
import {
/*forceCenter,*/ forceSimulation,
forceX,
forceY,
/*forceCollide,*/ forceLink,
forceManyBody
} from "d3-force"
import { bboxCollide } from "d3-bboxCollide"
import { scaleLinear } from "d3-scale"
import { min, max } from "d3-array"
import AnnotationLabel from "react... | the_stack |
import { Chart } from 'phaser3-rex-plugins/templates/ui/ui-components.js';
import { GoldGraphDisplayConfig, GraphDisplayConfig } from "~/data/config/overlayConfig";
import GoldEntry from '~/data/goldEntry';
import IngameScene from "~/scenes/IngameScene";
import ColorUtils from '~/util/ColorUtils';
import variables from... | the_stack |
export = WPAPI;
/**
* REST API Client for WordPress
*
* @see http://wp-api.org/node-wpapi/api-reference/wpapi/1.1.2/WPAPI.html
*/
declare class WPAPI {
/**
* Construct a REST API client instance object to create
*
* @param options An options hash to configure the instance
*/
constructor... | the_stack |
import doctrine from 'doctrine'
import fs from 'fs-extra'
import { version } from 'fts-core'
import path from 'path'
import tempy from 'tempy'
import * as TS from 'ts-morph'
import * as TJS from 'typescript-json-schema'
import * as FTS from './types'
const FTSReturns = 'FTSReturns'
const FTSParams = 'FTSParams'
const... | the_stack |
import createValidator = require('../')
/** Static assertion that `value` has type `T` */
// Disable tslint here b/c the generic is used to let us do a type coercion and
// validate that coercion works for the type value "passed into" the function.
// tslint:disable-next-line:no-unnecessary-generics
function assertTyp... | the_stack |
export interface paths {
"/": {
get: {
responses: {
/** OK */
200: unknown;
};
};
};
"/comment_with_author": {
get: {
parameters: {
query: {
id?: parameters["rowFilter.comment_with_author.id"];
slug?: parameters["rowFilter.comment_with_auth... | the_stack |
'use strict'
import dotenv from 'dotenv'
import FormData from 'form-data'
import fs from 'fs'
import app from '../app'
import { getConfig } from '../utils/config'
import { signJWT } from '../utils/index'
import { S3Backend } from '../backend/s3'
dotenv.config({ path: '.env.test' })
const ENV = process.env
const { anon... | the_stack |
import { Infinite } from "../../src/Infinite";
import { cleanup } from "./utils/utils";
import * as sinon from "sinon";
describe("test Infinite", () => {
let infinite: Infinite | null;
afterEach(() => {
if (infinite) {
infinite.destroy();
}
infinite = null;
cleanup();
});
it("should chec... | the_stack |
import joplin from 'api';
import { MenuItem, MenuItemLocation } from 'api/types';
import { ChangeEvent } from 'api/JoplinSettings';
import { NoteTabType, NoteTabs } from './noteTabs';
import { LastActiveNote } from './lastActiveNote';
import { Settings, UnpinBehavior, AddBehavior } from './settings';
import { Panel } f... | the_stack |
import {
RuntimeError,
NetworkError
} from "../Errors";
import * as async from "async";
import * as fs from "fs";
import { EventEmitter } from "events";
import { DownloadItem } from "../types/download";
import { RequesterCdn } from "../types/Requester";
import * as util from "util";
import * as stream from "str... | the_stack |
// A '.tsx' file enables JSX support in the TypeScript compiler,
// for more information see the following page on the TypeScript wiki:
// https://github.com/Microsoft/TypeScript/wiki/JSX
import * as React from 'react';
import { SearchTopicSingle } from './SearchTopicSingle';
import { SearchState } from '../../States... | the_stack |
import { createSetupForContentReview } from "../utils/helpers";
import { useContentGqlHandler } from "../utils/useContentGqlHandler";
import { mocks as changeRequestMock, richTextMock } from "./mocks/changeRequest";
describe(`Delete "content review" and associated "change requests" and "comments"`, () => {
const o... | the_stack |
import { Component, Watch } from 'vue-property-decorator';
import _ from 'lodash';
import $ from 'jquery';
import { DEFAULT_ANIMATION_DURATION_S, ENLARGE_ZINDEX, NODE_CONTENT_PADDING_PX } from '@/common/constants';
import { showSystemMessage, elementContains, mouseOffset } from '@/common/util';
import { SubsetNode } ... | the_stack |
import * as GObject from "@gi-types/gobject";
import * as HarfBuzz from "@gi-types/harfbuzz";
import * as cairo from "@gi-types/cairo";
import * as GLib from "@gi-types/glib";
export const ANALYSIS_FLAG_CENTERED_BASELINE: number;
export const ANALYSIS_FLAG_IS_ELLIPSIS: number;
export const ANALYSIS_FLAG_NEED_HYPHEN: n... | the_stack |
import { SplitterOptions, defaultSplitterOptions } from './options';
const SEMICOLON = ';';
export interface SplitStreamContext {
options: SplitterOptions;
currentDelimiter: string;
pushOutput: (item: SplitResultItem) => void;
commandPart: string;
line: number;
column: number;
streamPosition: number;
... | the_stack |
import SObject, {isSObject} from '../Core/SObject';
import Component, {isComponent} from '../Core/Component';
import SName from '../Core/SName';
import Game from '../Core/Game';
import World, {isWorld} from '../Core/World';
import Level from '../Core/Level';
import {SClass} from '../Core/Decorator';
import ChildActorCo... | the_stack |
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { IBinaryWriter } from "@protobuf-ts/runtime";
import { WireType } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
import type { IBinaryReader } from "@protobuf-ts/runtime";
import { UnknownFieldHandl... | the_stack |
import { ts } from 'ts-morph';
import {
CompletionItemKind,
TextDocument,
MarkupKind,
InsertTextFormat,
CompletionParams,
CompletionTriggerKind,
} from 'vscode-languageserver';
import {
AureliaLSP,
interpolationRegex,
TemplateAttributeTriggers,
} from '../../common/constants';
import { OffsetUtils } ... | the_stack |
import { BSONDecoder, BSONSerializer, getBSONDecoder, getBSONSerializer } from '@deepkit/bson';
import { arrayRemoveItem, asyncOperation, ClassType } from '@deepkit/core';
import { AsyncSubscription } from '@deepkit/core-rxjs';
import { createRpcMessage, RpcBaseClient, RpcDirectClientAdapter, RpcMessage, RpcMessageRout... | the_stack |
import type {ComponentType, ReactNode} from 'react'
import type {
ToolkitListNestMode,
ToolkitPortableTextList,
ToolkitPortableTextListItem,
} from '@portabletext/toolkit'
import type {
ArbitraryTypedObject,
PortableTextBlock,
PortableTextBlockStyle,
PortableTextListItemBlock,
PortableTextListItemType,
... | the_stack |
import * as React from 'react'
import { css } from 'styled-components'
import {
Box,
PrimaryBtn,
Btn,
Flex,
Text,
FONT_SIZE_BODY_2,
DIRECTION_ROW,
SPACING_3,
SPACING_5,
BORDER_SOLID_LIGHT,
FONT_SIZE_HEADER,
FONT_WEIGHT_SEMIBOLD,
JUSTIFY_CENTER,
JUSTIFY_SPACE_BETWEEN,
ALIGN_STRETCH,
FONT_... | the_stack |
import BigNumber from 'bignumber.js';
import { DODOContext, getDODOContext } from '../utils-v1/ProxyContextV1';
import { decimalStr, MAX_UINT256, fromWei, mweiStr } from '../utils-v1/Converter';
import { logGas } from '../utils-v1/Log';
import * as contracts from '../utils-v1/Contracts';
import { assert } from 'chai';
... | the_stack |
"use strict";
import Q = require("q");
import { IRequestHandler } from "vso-node-api/interfaces/common/VsoBaseInterfaces";
import { SoapClient } from "./soapclient";
import { UserAgentProvider } from "../helpers/useragentprovider";
import * as xmldoc from "xmldoc";
import * as url from "url";
// This class is the 'b... | the_stack |
/// <reference path="../metricsPlugin.ts"/>
/// <reference path="../../includes.ts"/>
module HawkularMetrics {
export enum AlertType {
AVAILABILITY,
THRESHOLD,
RANGE
}
export interface IHawkularAlertCriteria {
startTime?: TimestampInMillis;
endTime?: TimestampInMillis;
alertIds?: string... | the_stack |
import { mount, shallow } from 'enzyme';
import { ActionElement, ValueEditor, ValueSelector } from '../controls/index';
import { standardClassnames } from '../defaults';
import { Rule } from '../Rule';
import {
ActionProps,
Classnames,
Controls,
Field,
FieldSelectorProps,
NameLabelPair,
OperatorSelectorPr... | the_stack |
import * as fs from "fs"
import * as os from "os"
import * as subproc from "child_process"
import { Writable, Readable, PassThrough as PassThroughStream } from "stream"
import * as io from "./io"
import { createTimeout } from "./timeout"
import { repr, expandTildePath, isWindows } from "./util"
import log from "./log"... | the_stack |
import {
InanoSQLQuery,
InanoSQLInstance,
adapterReadFilter,
adapterReadMultiFilter,
TableQueryResult,
InanoSQLTable,
adapterWriteFilter,
adapterConnectFilter,
adapterDisconnectFilter,
adapterCreateTableFilter,
adapterDropTableFilter,
adapterDeleteFilter,
adapterGetTa... | the_stack |
import {dispatchFakeEvent} from '@angular/cdk/testing';
import {Component, ViewChild} from '@angular/core';
import {async, ComponentFixture, fakeAsync, flush, TestBed, tick} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {NoopAnimationsModu... | the_stack |
import {
Circle,
Ellipse,
PI_2,
Point,
Polygon,
Rectangle,
RoundedRectangle,
Matrix,
SHAPES,
} from '@pixi/math';
import { Texture, UniformGroup, State, Renderer, BatchDrawCall, Shader } from '@pixi/core';
import { BezierUtils, QuadraticUtils, ArcUtils } from './utils';
import { hex... | the_stack |
import { distinct } from 'vs/base/common/arrays';
import { IStringDictionary } from 'vs/base/common/collections';
import { Emitter, Event } from 'vs/base/common/event';
import { IJSONSchema } from 'vs/base/common/jsonSchema';
import * as types from 'vs/base/common/types';
import * as nls from 'vs/nls';
import { Extensi... | the_stack |
import { mdiDrag, mdiNotificationClearAll, mdiPlus, mdiSort } from "@mdi/js";
import { UnsubscribeFunc } from "home-assistant-js-websocket";
import {
css,
CSSResultGroup,
html,
LitElement,
PropertyValues,
TemplateResult,
} from "lit";
import { customElement, property, state, query } from "lit/decorators";
i... | the_stack |
import { OAuth2AuthenticateOptions } from "./definitions";
// import sha256 from "fast-sha256";
export class WebUtils {
/**
* Public only for testing
*/
static getAppId(options: OAuth2AuthenticateOptions): string {
return this.getOverwritableValue(options, "appId");
}
static getOver... | the_stack |
import every from 'lodash/every'
import { combineEpics, ofType } from 'redux-observable'
import { of, interval, concat, EMPTY } from 'rxjs'
import {
filter,
map,
mapTo,
switchMap,
mergeMap,
takeUntil,
withLatestFrom,
} from 'rxjs/operators'
// imported directly to avoid circular dependencies between disc... | the_stack |
import { AccessLevelList } from "../shared/access-level";
import { PolicyStatement, Operator } from "../shared";
/**
* Statement provider for service [a4b](https://docs.aws.amazon.com/service-authorization/latest/reference/list_alexaforbusiness.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/User... | the_stack |
import { ConcreteRequest } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type MyProfileQueryVariables = {};
export type MyProfileQueryResponse = {
readonly me: {
readonly " $fragmentRefs": FragmentRefs<"MyProfile_me">;
} | null;
};
export type MyProfileQuery = {
readonly... | the_stack |
import {applyPatch, Operation} from 'fast-json-patch';
import stringify from 'json-stringify-pretty-compact';
import {satisfies} from 'semver';
import * as vegaImport from 'vega';
import {
AutoSize,
Config as VgConfig,
EncodeEntryName,
isBoolean,
isString,
Loader,
LoaderOptions,
mergeConfig,
Renderers... | the_stack |
import { PassThrough, Stream } from 'stream';
import type { IncomingMessage, ServerResponse } from 'http';
/******************************************************************************/
// Really we want:
//
// import type { FastifyReply, FastifyRequest } from 'fastify';
//
// however, we don't want people to hav... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.