text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { Save } from './save'; /** * specifies current write state of XmlWriter */ export type XmlWriteState = 'Initial' | 'StartDocument' | 'EndDocument' | 'StartElement' | 'EndElement' | 'ElementContent'; /** * specifies namespace kind */ export type NamespaceKind = 'Written' | 'Ne...
the_stack
const maxIn = 255; const parse = (d: string, len = 2): string => { let res; res = `${d}`; if (res.length < len) { res = '0'.repeat(len - res.length) + res; } else { res = res.slice(0, len); } return res; }; const limit = (number, min, max) => Math.min(max, Math.max(min, number)); export class Col...
the_stack
import { Component, Directive, QueryList, ContentChildren, Input, AfterViewInit, OnDestroy, ElementRef, ChangeDetectionStrategy, ChangeDetectorRef, forwardRef, OnInit, Renderer2, ViewChild } from '@angular/core'; import { LyTheme2, toBoolean, ThemeVariables, DirAlias, ThemeRef, l...
the_stack
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, HostListener, Input, Output, ViewChild } from "@angular/core"; import {AbstractJigsawComponent} from "../../common/common"; /** * @internal */ type ProcessStatusData = { status: string; ...
the_stack
import { IDataSet } from '../../src/base/engine'; import { pivot_dataset, pivot_nodata } from '../base/datasource.spec'; import { PivotView } from '../../src/pivotview/base/pivotview'; import { createElement, remove, EventHandler, EmitType } from '@syncfusion/ej2-base'; import { GroupingBar } from '../../src/common/gro...
the_stack
import { assert } from 'chai' import nock from 'nock' import { PayIdUtils, XrplNetwork } from 'xpring-common-js' import PayIdClient from '../../src/PayID/pay-id-client' import PayIdError, { PayIdErrorType } from '../../src/PayID/pay-id-error' describe('PayIdClient', function (): void { afterEach(function () { //...
the_stack
import ConfigFile, { ValueType } from './config-file'; import * as path from 'path'; import { ProcessedPackageConfig, DepType, PackageTarget, processPackageTarget, serializePackageConfig, serializePackageTargetCanonical, resourceInstallRegEx, parsePackageName, processPackageConfig } from '../install/package'; impor...
the_stack
import * as Constants from '../../../constants/chat2' import * as React from 'react' import * as RPCTypes from '../../../constants/types/rpc-gen' import * as Types from '../../../constants/types/chat2' import * as Chat2Gen from '../../../actions/chat2-gen' import ProfileResetNotice from './system-profile-reset-notice/c...
the_stack
import { TtfTableInfo } from './ttf-table-info'; import { Dictionary } from './../../collections/dictionary'; import { TtfNameTable } from './ttf-name-table'; import { TtfNameRecord } from './ttf-name-record'; import { TtfHeadTable } from './ttf-head-table'; import { TtfMetrics } from './ttf-metrics'; import { TtfHoriz...
the_stack
import { Component, OnInit, OnDestroy, Input, Output, ViewChild, EventEmitter } from '@angular/core'; import { FormBuilder, Validators } from '@angular/forms'; import { CustomValidators } from './../../shared/validation/validators'; import { CategoryVO, AttrValueCategoryVO, ProductTypeInfoVO, Pair, CategoryNavigationPr...
the_stack
import { Client, Intents, Message, TextChannel, User } from 'discord.js' import emojiStrip from 'emoji-strip' import axios from 'axios' import type { Config } from './Config' import Rcon from './Rcon' import { escapeUnicode } from './lib/util' class Discord { config: Config client: Client channel: TextChanne...
the_stack
import { Client, ApiResponse, RequestParams } from "@elastic/elasticsearch"; import _ = require("lodash"); import { Query, FacetType, FacetSearchResult, Region, FacetOption, SearchResult, ISODate } from "../../model"; import SearchQueryer from "../SearchQueryer"; import getFacetDefinition f...
the_stack
import { ConcreteRequest } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type fairRoutes_FaiArticlesQueryVariables = { slug: string; }; export type fairRoutes_FaiArticlesQueryResponse = { readonly fair: { readonly " $fragmentRefs": FragmentRefs<"FairArticles_fair">; } | ...
the_stack
import { Component, Input, Output, ElementRef, EventEmitter, OnInit, OnDestroy, ViewEncapsulation, } from '@angular/core'; import { debounceTime } from 'rxjs/operators'; import { dia } from 'jointjs'; import { Flo } from '../shared/flo-common'; import { Shapes, Constants } from '../shared/shapes'; impor...
the_stack
const Marketplace = artifacts.require('./Marketplace') const { toBN } = web3.utils import { expectRevert, BN } from '@openzeppelin/test-helpers' import { convertTokensToWei } from '../utils/tokens' contract('Marketplace', ([contractDeployer, creator, buyer, secondBuyer]) => { let marketplace before(as...
the_stack
import * as urlLib from 'url'; // Node import * as BBPromise from 'bluebird'; import PackageVersionCreateRequestApi = require('./packageVersionCreateRequestApi'); import { SfdxError, Messages } from '@salesforce/core'; Messages.importMessagesDirectory(__dirname); import ux from 'cli-ux'; import Messages_old = requ...
the_stack
import * as fs from 'fs'; import * as path from 'path'; import { deepStrictEqual as eq, notDeepStrictEqual as neq, ok } from 'assert'; import sinon = require('sinon'); import TweetWindow from '../../main/window'; import Ipc from '../../main/ipc'; import { appDir, reset } from './mock'; type Spy = sinon.SinonSpy; cons...
the_stack
import chance from 'chance'; import { format } from '../../src/index'; import { en, fr } from '../../src/locale'; import truncateNumber from '../../src/core/utils/truncate-number'; import { NumerableLocale } from '../../src/locale/types/numerable-locale'; import { NumerableFormatter } from '../../src/core/types/numera...
the_stack
import EditorUI = require("../EditorUI"); import ModalWindow = require("./ModalWindow"); import ResourceOps = require("resources/ResourceOps"); import ProjectTemplates = require("resources/ProjectTemplates"); export class ResourceDelete extends ModalWindow { constructor(asset: ToolCore.Asset) { super(); ...
the_stack
import assert from 'assert'; import * as util from 'util'; import { parseDate } from './utils/date_utils'; import List from './utils/list'; import { SyntaxType } from './syntax_api'; import { MeasureEntity, LocationEntity, TimeEntity, DateEntity, GenericEntity, AnyEntity, EntityMap } from ...
the_stack
declare class Podium { /** * Creates a new podium emitter. * * @param events - If present, the value is passed to podium.registerEvent(). */ constructor(events?: Podium.Event | Podium.Event[]); /** * Register the specified events and their optional configuration. Events must be re...
the_stack
//TODO: restore "ATATiterator" to "@@iterator" /*@ qualif HasP (x: string, y: A): hasProperty(x, y) */ /*@ qualif EnumP(x: string, y: A): enumProp(x, y) */ module com { module cognitect { module transducers { /*@ predicate Inst(X, Key, Type) = (hasProperty(Key, X) <=> extends_interface(X, Type)) */ /*@ predicate I...
the_stack
import { Ranges } from "ranges-push"; import { rApply } from "ranges-apply"; import { version as v } from "../package.json"; const version: string = v; import { Ranges as RangesType } from "../../../scripts/common"; const BACKSLASH = `\u005C`; interface Opts { padStart: number; overrideRowNum: null | number; re...
the_stack
var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || {__proto__: []} instanceof Array && function(d2, b2) { d2.__proto__ = b2; } || function(d2, b2) { for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p]; }; return extendStatics(d, b); }...
the_stack
import * as path from 'path'; import {IConfusionMatrix} from '@microsoft/bf-dispatcher'; import {MultiLabelObjectConfusionMatrixExact} from '@microsoft/bf-dispatcher'; import {MultiLabelObjectConfusionMatrixSubset} from '@microsoft/bf-dispatcher'; import {ILabelArrayAndMap} from '@microsoft/bf-dispatcher'; import {IT...
the_stack
import editly = require('editly'); const { renderSingleFrame } = editly; /* examples/alpha.json5 */ // $ExpectType Promise<void> editly({ enableFfmpegLog: true, outPath: './alpha.mp4', clips: [ { duration: 2, layers: [ { type: 'video', path: './assets/lofoten...
the_stack
import { UInt64 } from '../int64' import { Pos } from '../pos' import { Storage, types, intTypes } from "../ast" import { ID, Fun, Block, Value, BranchPrediction, Location, BlockKind } from './ssa' import { Config } from './config' import { DesiredState } from './reg_desiredstate' import { IntGraph } from '../intgraph'...
the_stack
* OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi...
the_stack
import { expect } from 'chai'; import * as chokidar from 'chokidar'; import { promises as fs } from 'fs'; import * as _ from 'lodash'; import * as path from 'path'; import { promisify } from 'util'; import { LivepushManager } from '../../../lib/utils/device/live'; import { resetDockerignoreCache } from '../../docker-b...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement, Operator } from "../shared"; /** * Statement provider for service [dataexchange](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsdataexchange.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/lat...
the_stack
import React, { useState, useEffect, useRef, ReactNode } from 'react' import { applyDragForce, applyBoundForce } from './force' import getBoundaries from './getBoundaries' import { roundNum, isMouseEvent } from './utils' type draggerRefParams = { setPosition: (position: number, instant: boolean) => void outerWid...
the_stack
import * as assert from 'assert'; import {describe, it, afterEach} from 'mocha'; import * as qs from 'querystring'; import * as nock from 'nock'; import {createCrypto} from '../src/crypto/crypto'; import { StsCredentials, StsCredentialsOptions, StsSuccessfulResponse, } from '../src/auth/stscredentials'; import { ...
the_stack
import * as test from 'tape'; import {NoteSequence} from '../protobuf/index'; import {Performance, PerformanceEvent} from './performance'; test('From NoteSequence', (t: test.Test) => { const noteSequence = NoteSequence.create({ quantizationInfo: {stepsPerSecond: 10}, notes: [ {pitch: 60, velocity: 127,...
the_stack
type ErrorWithCode = Error & { code: number }; type MaybeErrorWithCode = ErrorWithCode | null | undefined; const createErrorFromCodeLookup: Map<number, () => ErrorWithCode> = new Map(); const createErrorFromNameLookup: Map<string, () => ErrorWithCode> = new Map(); /** * InstructionUnpackError: 'Failed to unpack inst...
the_stack
import * as KissFFT from 'kissfft-js'; import * as DCT from 'dct'; const SR = 44100; let melFilterbank = null; let context = null; export default class AudioUtils { static loadExampleBuffer() { return AudioUtils.loadBuffer('assets/spoken_command_example.wav'); } static loadSineBuffer() { return Audio...
the_stack
type ErrorWithCode = Error & { code: number }; type MaybeErrorWithCode = ErrorWithCode | null | undefined; const createErrorFromCodeLookup: Map<number, () => ErrorWithCode> = new Map(); const createErrorFromNameLookup: Map<string, () => ErrorWithCode> = new Map(); /** * NoValidSignerPresent: 'No valid signer present...
the_stack
import React, {ChangeEvent} from "react"; import {OutputField, TypingField} from "../../generic/core"; import {Button, Container, Row, Col} from "helpers/reactstrap"; import ScanPresets from "./ScanPresets"; import {subscribe} from "helpers/pubsub"; import {FaSyncAlt} from "react-icons/fa"; import useLocalStorage from ...
the_stack
import { isString, Message } from "../interfaces.js"; import { Binding, BindingObserver, ExecutionContext, Observable, ObservationRecord, } from "../observation/observable.js"; import { FAST } from "../platform.js"; import { DOM } from "./dom.js"; import { AddViewBehaviorFactory, Aspect, ...
the_stack
import { CassettePlayer, Trs80 } from "trs80-emulator"; import { CanvasScreen, ControlPanel, DriveIndicators, flashNode, PanelType, ProgressBar, SettingsPanel, WebKeyboard } from "trs80-emulator-web"; import firebase from 'firebase/app'; // These imports load individual services into the fir...
the_stack
import _ from 'lodash'; import moment from 'moment'; import * as dateMath from 'app/core/utils/datemath'; import * as Druid from 'druid.d' const DRUID_DATASOURCE_PATH = '/druid/v2/datasources'; export default class DruidDatasource { id: number; name: string; url: string; q: any; backendSrv: any; templateS...
the_stack
function stringPingLineByLine(str: string, cb: (str: string) => void): void { // console.log( // `004 ${`\u001b[${33}m${`█`}\u001b[${39}m`} stringPingLineByLine() called!` // ); let start = null; for (let i = 0, len = str.length; i < len; i++) { if (["\n", "\r"].includes(str[i])) { if (start !== ...
the_stack
module android.text { import Paint = android.graphics.Paint; import LeadingMarginSpan = android.text.style.LeadingMarginSpan; import LeadingMarginSpan2 = android.text.style.LeadingMarginSpan.LeadingMarginSpan2; import LineHeightSpan = android.text.style.LineHeightSpan; import MetricAffectingSpan = android.text.style.Me...
the_stack
import Log, { IGroup, IHeader, ILogOptions } from './Log' import isUndef from 'licia/isUndef' import perfNow from 'licia/perfNow' import now from 'licia/now' import isStr from 'licia/isStr' import extend from 'licia/extend' import uniqId from 'licia/uniqId' import isRegExp from 'licia/isRegExp' import isFn from 'licia/...
the_stack
import { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; import { RequestParameters } from "@azure-rest/core-client"; export interface ParamExistingKeyHeaders { /** Send a post request with header value "User-Agent": "overwrite" */ "User-Agent": string; } export interface ParamExistingKeyHeaderParam { h...
the_stack
import {QueryAble, QueryOptions} from "./queryAble"; import {PgDb, FieldType} from "./pgDb"; import {PgDbLogger} from "./pgDbLogger" import generateWhere from "./queryWhere"; import {PgSchema} from "./pgSchema"; import {pgUtils} from "./pgUtils"; import * as _ from 'lodash'; import * as stream from "stream"; const uti...
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 getAjvAsyncInstances from "./ajv_async_instances" import _Ajv from "./ajv" import chai from "./chai" const should = chai.should() describe("async schemas, formats and keywords", function () { this.timeout(30000) let ajv, instances beforeEach(() => { instances = getAjvAsyncInstances() ajv = instan...
the_stack
type ErrorText = { [key: string]: string }; /** * Describes the structure of error messages */ export interface ParserErrorMessage { code: ErrorCodes; text: string; position: number; line: number; column: number; } export type ErrorCodes = // --- Missing or faulty tokens | "Z0001" | "Z0002" | "Z00...
the_stack
declare module com { export module yalantis { export module ucrop { export class BuildConfig { public static DEBUG: boolean; public static APPLICATION_ID: string; public static BUILD_TYPE: string; public static FLAVOR: string; public static VERSION_CODE: number; public static VERSION_NAME:...
the_stack
// WARNING: Do not edit the *.js version of this file. Instead, always edit the // corresponding *.ts source in the ts subfolder, and then invoke the // compileTypescript.sh bash script to generate new *.js and *.js.map files. module workbench { export module query { /** * JSON value provided by...
the_stack
// Transaction // ------- import { EventEmitter } from './deps/@jspm/core@1.1.0/nodelibs/events.js'; import Debug from './deps/debug@4.1.1/src/index.js'; import makeKnex from './util/make-knex.js'; import { callbackify } from './deps/@jspm/core@1.1.0/nodelibs/util.js'; import { timeout, KnexTimeoutError } from './util...
the_stack
import { URI } from 'vs/base/common/uri'; import { Event, Emitter } from 'vs/base/common/event'; import * as errors from 'vs/base/common/errors'; import { Disposable, IDisposable, dispose, toDisposable, MutableDisposable, combinedDisposable, DisposableStore } from 'vs/base/common/lifecycle'; import { RunOnceScheduler }...
the_stack
import * as $protobuf from "protobufjs"; /** Namespace google. */ export namespace google { /** Namespace longrunning. */ namespace longrunning { /** Represents an Operations */ class Operations extends $protobuf.rpc.Service { /** * Constructs a new Operations service...
the_stack
import { Page } from 'puppeteer'; import { CreateConfig } from '../../config/create-config'; import { Id } from '../model'; import { RetrieverLayer } from './retriever.layer'; import { Scope, checkValuesSender } from '../helpers/layers-interface'; import { base64MimeType, fileToBase64, downloadFileToBase64, res...
the_stack
import { HardhatRuntimeEnvironment } from "hardhat/types"; import { DeployFunction } from "hardhat-deploy/types"; import { ethers, upgrades, network } from "hardhat"; import { PancakeswapV2RestrictedStrategyAddBaseTokenOnly__factory, PancakeswapV2RestrictedStrategyAddTwoSidesOptimal__factory, PancakeswapV2Restric...
the_stack
* Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use t...
the_stack
* CRUD actions spec */ import { DataManager, UrlAdaptor, Query } from '@syncfusion/ej2-data'; import { Kanban, KanbanModel, ActionEventArgs } from '../../src/kanban/index'; import { kanbanData } from './common/kanban-data.spec'; import { profile, inMB, getMemoryProfile } from './common/common.spec'; import * as util f...
the_stack
import { Action } from 'redux' import { ApplicationState } from '../index' import { ThunkAction } from 'redux-thunk' import moment from 'moment'; import { setUserInfo } from "../application/actions"; import NetatmoNAMain from '../../models/NetatmoNAMain'; import NetatmoUserInformation from "../../models/NetatmoUserInfo...
the_stack
import React, { useState } from "react"; import { BindComponentRenderProp, Form, BindComponent } from "@webiny/form"; import { FbFormModelField, FormLayoutComponent, FormRenderFbFormModelField } from "@webiny/app-form-builder/types"; import { validation } from "@webiny/validation"; import { RichTextRenderer...
the_stack
import { createLogger } from '@surgio/logger'; import assert from 'assert'; import fs from 'fs-extra'; import _ from 'lodash'; import os from 'os'; import { join } from 'path'; import queryString from 'query-string'; import { JsonObject } from 'type-fest'; import { URL, URLSearchParams } from 'url'; import URLSafeBase6...
the_stack
import React from 'react'; import { EventType } from "matrix-js-sdk/src/@types/event"; import { RoomMember } from "matrix-js-sdk/src/models/room-member"; import { MatrixEvent } from "matrix-js-sdk/src/models/event"; import { RoomState } from "matrix-js-sdk/src/models/room-state"; import { logger } from "matrix-js-sdk/s...
the_stack
import { mkdtemp as original_mkdtemp } from 'fs' import * as os from 'os' import * as path from 'path' import { promisify } from 'util' import Octokit from '@octokit/rest' import commandExists from 'command-exists' import execa from 'execa' import * as semver from 'semver' import { readLine, formatDate, timezoneLink,...
the_stack
// based on v12.69.43.15 // see https://openfin.co/support/technical-faq/#what-do-the-numbers-in-the-runtime-version-mean /** * JavaScript API * The JavaScript API allows you to create an HTML/JavaScript application that has access to the native windowing environment, * can communicate with other applications and h...
the_stack
import DataLoader from "dataloader"; import { CmsStorageEntry, CmsModel } from "@webiny/api-headless-cms/types"; import WebinyError from "@webiny/error"; import { Entity } from "dynamodb-toolbox"; import { queryAll, QueryAllParams } from "@webiny/db-dynamodb/utils/query"; import { createLatestSortKey, createPar...
the_stack
import * as Containers from '@docker/sdk/containers.d'; // Imports from the containers.d.ts file to prevent a tsc error (workaround for https://github.com/docker/node-sdk/issues/71) import * as Contexts from '@docker/sdk/contexts.d'; // Imports from the containers.d.ts file to prevent a tsc error (workaround for https...
the_stack
import {promisifyAll} from '@google-cloud/promisify'; import arrify = require('arrify'); import {CallOptions} from 'google-gax'; import {google} from '../protos/protos'; import {Datastore, TransactionOptions} from '.'; import {entity, Entity, Entities} from './entity'; import {Query} from './query'; import { Commit...
the_stack
import * as tf from '../../index'; import {ALL_ENVS, describeWithFlags} from '../../jasmine_util'; import {expectArraysClose} from '../../test_util'; describeWithFlags('resizeBilinear', ALL_ENVS, () => { it('simple alignCorners=false', async () => { const input = tf.tensor3d([2, 2, 4, 4], [2, 2, 1]); const o...
the_stack
//Import Web Part properties import { IWebPartContext } from '@microsoft/sp-webpart-base'; //Import SPHttpClient import { SPHttpClient, SPHttpClientResponse } from '@microsoft/sp-http'; import { SPPermission } from '@microsoft/sp-page-context'; export namespace SharePointUtilityModule { export class SharePointUtil...
the_stack
'use strict'; const assert = require('assert'); const ttm = require('azure-pipelines-task-lib/mock-test'); const path = require('path'); function setResponseFile(name) { process.env['MOCK_RESPONSES'] = path.join(__dirname, name); } describe('Azure Resource Group Deployment', function () { this.timeout(30000)...
the_stack
interface JQuery { visibility: SemanticUI.Visibility; } declare namespace SemanticUI { interface Visibility { settings: VisibilitySettings; /** * Disable callbacks temporarily. This is useful if you need to adjust scroll position and do not want to trigger callbacks during the positio...
the_stack
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** * SKU parameters supplied to the create RedisEnterprise operation. */ export interface Sku { /** * The type of RedisEnterprise clu...
the_stack
export type RequestParams = ApiKeyParams | PremiumPlanParams; export interface ApiKeyParams { /** * You must include an API key with every API request. We strongly recommend that you restrict your API key. * Restrictions provide added security and help ensure only authorized requests are made with your API key. ...
the_stack
import { Action, action, Thunk, thunk, Computed, computed } from "easy-peasy"; import { IStoreModel } from "./index"; import { IStoreInjections } from "./store"; import { lnrpc } from "../../proto/lightning"; import { getItemObject, StorageItem, setItemObject, getItem } from "../storage/app"; import { toast, timeout, ...
the_stack
import jsx from "@babel/plugin-syntax-jsx"; import { declare } from "@babel/helper-plugin-utils"; import { types as t } from "@babel/core"; import type { PluginPass } from "@babel/core"; import type { NodePath, Visitor } from "@babel/traverse"; import { addNamed, addNamespace, isModule } from "@babel/helper-module-impo...
the_stack
import { PDFPageProxy } from "pdfjs-dist/types/display/api"; import React from "react"; import { PageModel, Pages } from "../state"; import { BoundingBox } from "../api/types"; import { PDFPageView } from "../types/pdfjs-viewer"; import { Dimensions, Rectangle } from "../types/ui"; /* * Corresponds to the 'elevation'...
the_stack
import { INodeProperties, } from 'n8n-workflow'; import { billingAddress, currencies, makeCustomFieldsFixedCollection, makeGetAllFields, productDetailsOptions, shippingAddress, } from './SharedFields'; export const salesOrderOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', ...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement } from "../shared"; /** * Statement provider for service [gamelift](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazongamelift.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/r...
the_stack
import path from 'path'; import { promisify } from 'util'; import { exec } from 'child_process'; import { DialogSetting, IBotProject } from '@botframework-composer/types'; import rimraf from 'rimraf'; import * as fs from 'fs-extra'; import { copyDir } from './copyDir'; import { IFileStorage } from './interface'; con...
the_stack
import {Injectable} from "@angular/core"; import * as Yaml from "js-yaml"; import {LoadOptions} from "js-yaml"; import {Observable} from "rxjs/Observable"; import {ReplaySubject} from "rxjs/ReplaySubject"; import {App} from "../../../electron/src/sbg-api-client/interfaces/app"; import {Project} from "../../../electro...
the_stack
import React, { Component } from "react"; import { withStyles, Paper, Typography, Button, TextField, Fade, Link, CircularProgress, Tooltip, Dialog, DialogTitle, DialogActions, DialogContent, List, ListItem, ListItemText, ListItemAvatar, ListItemSec...
the_stack
import { AfterViewInit, Component, ElementRef, Input, OnDestroy, ViewChild } from '@angular/core'; import { ChartDataSets, ChartOptions, ChartPoint } from 'chart.js'; import { BaseChartDirective, Color, Label } from 'ng2-charts'; import { ExerciseScoresChartService, ExerciseScoresDTO } from 'app/overview/visualizations...
the_stack
require('source-map-support').install(); import {SourceMapGenerator} from 'source-map'; import * as fs from 'fs'; import * as path from 'path'; import * as ts from 'typescript'; import {TranspilerBase} from './base'; import mkdirP from './mkdirp'; import CallTranspiler from './call'; import DeclarationTranspiler from ...
the_stack
export interface PackMeta { texture?: PackMeta.Texture; animation?: PackMeta.Animation; pack?: PackMeta.Pack; language: PackMeta.Language; } /** * The block model json format */ export interface BlockModel { /** * For Block: * * Loads a different model from the given path, starting...
the_stack
import { Action, Dispatcher, Reducer } from '@ngrx/store'; import { difference, liftAction } from './utils'; import { ActionTypes } from './actions'; export const INIT_ACTION = { type: Dispatcher.INIT }; export interface LiftedState { monitorState: any; nextActionId: number; actionsById: { [id: number]: { act...
the_stack
import uuidv4 from 'uuid/v4' import { takeLatest, put, select, call, delay, take } from 'redux-saga/effects' import { ADD_ITEM, AddItemAction, provisionScene, RESET_ITEM, ResetItemAction, UPDATE_TRANSFORM, UpdateTransfromAction, DUPLICATE_ITEM, DELETE_ITEM, DuplicateItemAction, DeleteItemAction, ...
the_stack
* Unit tests for LayerVariables. */ import * as tfc from '@tensorflow/tfjs-core'; import {randomUniform, scalar, tensor1d, tensor2d, zeros} from '@tensorflow/tfjs-core'; import * as K from './backend/tfjs_backend'; import {nameScope} from './common'; import * as tfl from './index'; import {describeMathCPU, describeM...
the_stack
import * as React from 'react'; import { TextField } from 'office-ui-fabric-react/lib/TextField'; import { Label } from 'office-ui-fabric-react/lib/Label'; import ReactQuill from 'react-quill'; import 'react-quill/dist/quill.snow.css'; import styles from './add-update-template.module.scss'; import { modules, formats } ...
the_stack
import type { InitialState, NavigationState, PartialState, } from '@react-navigation/routers'; import escape from 'escape-string-regexp'; import * as queryString from 'query-string'; import findFocusedRoute from './findFocusedRoute'; import type { PathConfigMap } from './types'; import validatePathConfig from '....
the_stack
import { Observable, fromEventPattern } from 'rxjs' import { map, filter } from 'rxjs/operators' import { Message, MessageResponse, MsgType } from '@/typings/message' import { Mutable } from '@/typings/helpers' /* --------------------------------------- *\ * #Types \* --------------------------------------- */ expo...
the_stack
import ClipboardData from './ClipboardData'; import ContentChangedData from './ContentChangedData'; import EditorPlugin from './EditorPlugin'; import NodePosition from './NodePosition'; import TableSelection from './TableSelection'; import { ChangeSource } from '../enum/ChangeSource'; import { ColorTransformDirection }...
the_stack
import { should } from 'chai'; import { tokenize, Input, Token } from './utils/tokenize'; describe("Verbatim identifier", () => { before(() => { should() }); describe("Verbatim identifier", () => { it("in extern alias directive", async () => { const input = ` extern alias @foo; extern alia...
the_stack
export default function makeDashboard(integrationId: string) { return { annotations: { list: [ { builtIn: 1, datasource: "-- Grafana --", enable: true, hide: true, iconColor: "rgba(0, 211, 255, 1)", name: "Annotations & Alerts", t...
the_stack
import React, { useEffect, useState } from 'react'; import { DomainDetails, Subnav } from 'components'; import { ResultCard } from './ResultCard'; import { makeStyles, Paper, FormControl, Select, MenuItem, Typography, Checkbox, FormControlLabel, FormGroup, TextareaAutosize, Button } from '@materia...
the_stack
import { BncClient } from '@binance-chain/javascript-sdk/lib/client' import * as crypto from '@binance-chain/javascript-sdk/lib/crypto' import { SignedSend } from '@binance-chain/javascript-sdk/lib/types' import { Address, Balance, BaseXChainClient, FeeType, Fees, Network, Tx, TxHash, TxHistoryParams,...
the_stack
import {Router} from 'express'; import * as solc from 'solc'; import {AbiCoder} from 'web3-eth-abi'; const abiCoder = new AbiCoder(); import * as Web3 from 'web3'; import BigNumber from "bignumber.js"; import {ModelInfo} from './definitions'; import {parseModel} from './models.parsers'; import {repoSchema} from '../...
the_stack
import 'jest'; import * as DevicesService from './devicesService'; import * as DataplaneService from './dataplaneServiceHelper'; import { HTTP_OPERATION_TYPES, HUB_DATA_PLANE_API_VERSION } from '../../constants/apiConstants'; import { Twin } from '../models/device'; import { DeviceIdentity } from './../models/deviceIde...
the_stack
import * as DomUtil from '../common/dom_util'; import {SemanticFont, SemanticRole, SemanticType} from './semantic_attr'; import {SemanticNode} from './semantic_node'; import {SemanticAbstractParser} from './semantic_parser'; import * as SemanticPred from './semantic_pred'; import SemanticProcessor from './semantic_proc...
the_stack
import Dimensions = Utils.Measurements.Dimensions; import DisplayObject = etch.drawing.DisplayObject; import {Device} from '../Device'; import IDisplayContext = etch.drawing.IDisplayContext; import Size = minerva.Size; import {IApp} from '../IApp'; declare var App: IApp; export class SoundcloudPanel extends DisplayOb...
the_stack
import { mockAwsS3 } from './mock'; import { handler } from '../index'; import { ImageHandlerError, ImageHandlerEvent, StatusCodes } from '../lib'; describe('index', () => { // Arrange process.env.SOURCE_BUCKETS = 'source-bucket'; const mockImage = Buffer.from('SampleImageContent\n'); const mockFallbackImage =...
the_stack
module Kiwi.Sound { /** * Manages the initialisation of assets necessary when dealing with audio in the game, either through Audio Tags or the Web Audio API. * Also provides global sound controls that will be applyed to all Audio objects at the same time, within the Game this manager is a part of. * * @class A...
the_stack