text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import * as React from 'react'; import * as ReactDom from "react-dom"; import styles from './FollowDocumentWebPart.module.scss'; import { IFollowDocumentWebPartProps } from './IFollowDocumentWebPartProps'; import { IFollowDocumentWebPartState } from './IFollowDocumentWebPartState'; import { FollowDocumentGrid } from '....
the_stack
import * as Preact from 'preact'; import { ContextMenu } from 'diagramMaker/components/contextMenu'; import { Edge, EdgeBadge, EdgeStyle, PotentialEdge } from 'diagramMaker/components/edge'; import { Node, PotentialNode } from 'diagramMaker/components/node'; import { Panel } from 'diagramMaker/components/panel'; impor...
the_stack
import { Component, NgZone, OnInit, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; import { ModalController, Platform, LoadingController, ToastController, AlertController } from '@ionic/angular'; import { NavParams } from '@ionic/angular'; import { OsmApiService } from '../../services/osmA...
the_stack
export function createSnippetV5(snipConfig) { let win = window; let doc = document; var locn = win.location; var helpLink = "https://go.microsoft.com/fwlink/?linkid=2128109"; var scriptText = "script"; var strInstrumentationKey = "instrumentationKey"; var strIngestionendpoint = "ingestionen...
the_stack
import { assert } from "node-opcua-assert"; import { CertificateInternals, exploreCertificate } from "node-opcua-crypto/dist/source/crypto_explore_certificate"; import { AccessRestrictionsFlag, allPermissions, AttributeIds, PermissionFlag } from "node-opcua-data-model"; import { PreciseClock } from "node-opcua-date-tim...
the_stack
import { join } from 'path'; import tar from 'tar'; import { readdirSync, statSync, writeFileSync, copySync, ensureDirSync, pathExistsSync, readJsonSync, removeSync, PathOrFileDescriptor, } from 'fs-extra'; import fetch from 'electron-fetch'; import ServiceModel from '../../models/Service'; import Re...
the_stack
import { Evt } from "../lib"; import { getPromiseAssertionApi } from "../tools/testing"; import {getHandlerPr } from "./getHandlerPr"; const { mustResolve, mustReject } = getPromiseAssertionApi(); let op = (object: Object): object is Array<any> => object instanceof Array; let boundTo = Evt.newCtx(); let tim...
the_stack
import {Mutable, Arrays, Cursor} from "@swim/util"; import {AnyValue, Value, Form} from "@swim/structure"; import {Inlet, Outlet, OutletCombinators} from "@swim/streamlet"; import type {AnyUri, Uri} from "@swim/uri"; import type {DownlinkContext} from "./DownlinkContext"; import type {DownlinkOwner} from "./DownlinkOwn...
the_stack
import mapValues from 'lodash/mapValues' import type { Action, Error } from '../../types' import { HOME } from '../../robot-controls' import type { Mount, Slot } from '../types' import { actionTypes } from '../actions' import type { ConfirmProbedAction, PipetteCalibrationAction, LabwareCalibrationAction, Calib...
the_stack
import { Injectable } from '@angular/core'; import { CoreFileUploaderStoreFilesResult } from '@features/fileuploader/services/fileuploader'; import { CoreFile } from '@services/file'; import { CoreSites } from '@services/sites'; import { CoreTextUtils } from '@services/utils/text'; import { makeSingleton } from '@singl...
the_stack
import { autobind } from "core-decorators"; import * as _ from "lodash"; import { inject, observer } from "mobx-react"; import * as React from "react"; import * as DayPicker from "react-day-picker"; import * as ReactQuill from "react-quill/src/"; import { Quill } from "react-quill/src/"; import * as Modal from "boron...
the_stack
import { Components, registerComponent, } from '../../lib/vulcan-lib'; import React, { useState, useEffect, useRef } from 'react'; import { createStyles } from '@material-ui/core/styles'; import Geosuggest from 'react-geosuggest'; import { useUserLocation } from '../../lib/collections/users/helpers'; import { useCurren...
the_stack
"use strict"; import loadSender from "../lib/loadSender"; import logger from "../lib/logger"; import options from "../lib/options"; import { stringify } from "../lib/utils"; import { ReceiverSelectionActionType, ReceiverSelectorMediaType } from "./receiverSelector"; import ReceiverSelectorManager from "./re...
the_stack
import childProcess = require('child_process'); import fs = require('fs'); import http = require('http'); import uuid = require('node-uuid'); import path = require('path'); import querystring = require('querystring'); import url = require('url'); import util = require('util'); import idleTimeout = require('./idleTimeou...
the_stack
import { Event, TerminalSettingsId } from '@opensumi/ide-core-common'; import { localize } from '@opensumi/ide-core-common'; import { PreferenceSchema } from '@opensumi/ide-core-common/lib/preferences'; export interface IPreferenceValue { name: string; value: string | number | boolean | Array<string | number | bool...
the_stack
import {Component, EventEmitter, Input, OnInit, Output} from "@angular/core"; import {AbstractControl, FormControl, FormGroup, Validators} from "@angular/forms"; import {User} from "../../../../../electron/src/sbg-api-client/interfaces/user"; import {AuthService} from "../../../auth/auth.service"; import {AuthCredentia...
the_stack
import { Address, constant, Deploy, Hash256, MapStorage, crypto, Fixed8, createEventNotifier, SmartContract, } from '@neo-one/smart-contract'; const notifyDeposited = createEventNotifier<Address, Address, Fixed8>('deposited', 'address', 'assetID', 'amount'); const notifyWithdrawn = createEventNotifie...
the_stack
import Obniz from '../../../obniz'; const OK: any = true; const ERROR: any = false; import ObnizPartsInterface, { ObnizPartsInfo, } from '../../../obniz/ObnizPartsInterface'; export interface MFRC522Options { gnd?: number; vcc?: number; cs: number; clk?: number; mosi: number; miso: number; spi?: numb...
the_stack
* @packageDocumentation * @module core */ import '../data/class'; import { EDITOR, MINIGAME, JSB, RUNTIME_BASED } from 'internal:constants'; import { screenAdapter } from 'pal/screen-adapter'; import { systemInfo } from 'pal/system-info'; import { EventTarget } from '../event'; import { Rect, Size, Vec2 } from '../m...
the_stack
module armExplorer { angular.module("armExplorer", ["ngRoute", "ngAnimate", "ngSanitize", "ui.bootstrap", "angularBootstrapNavTree", "rx", "mp.resizer", "ui.ace"]) .controller("treeBodyController", ["$scope", "$routeParams", "$location", "$http", "$timeout", "rx", "$document", ($scope: IArmTreeScope, $routeParams:...
the_stack
import {html, render} from '../../lit-html.js'; import {ref, createRef, RefOrCallback} from '../../directives/ref.js'; import {assert} from '@esm-bundle/chai'; suite('ref', () => { let container: HTMLDivElement; setup(() => { container = document.createElement('div'); }); test('sets a ref on a Ref object...
the_stack
import { assert } from "chai"; import * as fs from "fs"; import * as path from "path"; import { Guid, Id64Array, Id64String, Logger, OpenMode } from "@itwin/core-bentley"; import { CodeScopeSpec, CodeSpec, ColorByName, DomainOptions, GeometryStreamBuilder, IModel, RelatedElementProps, RelationshipProps, SubCategoryAp...
the_stack
import { Inject, Injectable, Optional } from '@angular/core'; import { Http, Headers, URLSearchParams } from '@angular/http'; import { RequestMethod, RequestOptions, RequestOptionsArgs } from '@angular/http'; import { Response, ResponseContentType } from '@ang...
the_stack
import CustomError = require("./Error"); import utils = require("./utils"); import Internal = require("./Internal"); import {Document, DocumentObjectFromSchemaSettings} from "./Document"; import {Model, ModelIndexes} from "./Model"; import {DynamoDB} from "aws-sdk"; import {ModelType, ObjectType} from "./General"; // ...
the_stack
import { TreeGrid } from '../../src/treegrid/base/treegrid'; import { createGrid, destroy } from '../base/treegridutil.spec'; import { sampleData } from '../base/datasource.spec'; import { Edit } from '../../src/treegrid/actions/edit'; import { Freeze } from '../../src/treegrid/actions/freeze-column'; import { Toolbar ...
the_stack
import * as path from "path"; import { Event } from "@extraterm/extraterm-extension-api"; import { later } from "extraterm-later"; import { Logger, getLogger, log } from "extraterm-logging"; import { BrowserWindow, screen } from "electron"; import { SingleWindowConfiguration } from "../Config"; import * as ResourceLoa...
the_stack
import { autoinject, inject, Factory } from 'aurelia-dependency-injection' import { createGuid, PerspectiveFrustum, Matrix4, Cartographic } from './cesium/cesium-imports' import { Role, ContextFrameState, CanvasViewport, Viewport, SerializedSubviewList } from './common' import { Sess...
the_stack
import { PresetIcon, IconSet } from './icon'; interface RegisterIcon { (key: string | string[], icon: PresetIcon): void } interface RegisterFileNameIcon { (fileName: string | string[], extensions: string[], icon: PresetIcon): void } export function setExtensions(set: RegisterIcon) { // XML set('xml', { [IconSet...
the_stack
import { RootWidgetModel, WidgetModel, VariableModel, FormControlModel } from "../models/models"; import { WidgetCodeGenerator } from "./widget-generator"; import { getUniqueBy } from "../utils"; export class ClassCodeGenerator { private readonly widgetGenerator: WidgetCodeGenerator; constructor(widgetGenera...
the_stack
import { createStore, createEvent, sample, combine, forward, Event, Store, } from 'effector' import {h, using, list, node, spec, remap} from 'forest' import prettyHtml from 'effector/fixtures/prettyHtml' declare const act: (cb?: () => any) => Promise<void> declare const initBrowser: () => Promise<void> ...
the_stack
import * as Path from "path"; import {Class, Lazy, Dictionary, MutableDictionary} from "@swim/util"; import {OutputSettings, OutputStyle, Unicode} from "@swim/codec"; import {MemberFastenerClass, Service, ComponentSet} from "@swim/component"; import type {WorkspaceObserver} from "./WorkspaceObserver"; import {Scope} fr...
the_stack
import sort from 'fast-sort'; import FuzzySearch from 'fuzzy-search'; import { Nilable, Nullable } from 'tsdef'; import { createSelector } from '@reduxjs/toolkit'; import { OptionIds } from '../action-definitions/option-ids'; import { FileArray, FileData, FileFilter } from '../types/file.types'; import { RootState } ...
the_stack
function _getById(id: string): HTMLElement { const el = document.getElementById(id) if (!el) { _error(`could not find element with id '${id}'`) return null as any } return el } function ensuredSingleCharacterString(el: HTMLInputElement) { if (el.value.length > 1) { //using last char is more user friendl...
the_stack
export const testData: number[][] = [ [0,0,5,13,9,1,0,0,0,0,13,15,10,15,5,0,0,3,15,2,0,11,8,0,0,4,12,0,0,8,8,0,0,5,8,0,0,9,8,0,0,4,11,0,1,12,7,0,0,2,14,5,10,12,0,0,0,0,6,13,10,0,0,0], [0,0,0,12,13,5,0,0,0,0,0,11,16,9,0,0,0,0,3,15,16,6,0,0,0,7,15,16,16,2,0,0,0,0,1,16,16,3,0,0,0,0,1,16,16,6,0,0,0,0,1,16,16,6,0,0,0,0,...
the_stack
jest.mock('simple-peer') jest.mock('../insertable-streams') jest.mock('../socket') jest.mock('../window') jest.useFakeTimers() import SimplePeer from 'simple-peer' import { dial, hangUp } from '../actions/CallActions' import * as MediaActions from '../actions/MediaActions' import { StreamTypeCamera, StreamTypeDesktop ...
the_stack
import * as wasmlib from "wasmlib" import * as coreaccounts from "wasmlib/coreaccounts" import * as coregovernance from "wasmlib/coregovernance" import * as sc from "./index"; const CONTRACT_NAME_DEPLOYED = "exampleDeployTR"; const MSG_CORE_ONLY_PANIC = "========== core only ========="; const MSG_FULL_PANIC = "=======...
the_stack
import {add, div, keep, mul, nextFrame, Scalar, Tensor, tidy, util} from '@tensorflow/tfjs-core'; import {Container} from './engine/container'; import {ValueError} from './errors'; import {Logs, resolveScalarsInLogs, UnresolvedLogs} from './logs'; import * as generic_utils from './utils/generic_utils'; /** Verbosity ...
the_stack
import { Component, forwardRef, OnInit, ViewEncapsulation, Input, Output, EventEmitter, AfterViewInit, OnChanges } from '@angular/core'; import { InputCoreComponent } from '@sq-ui/ng-sq-common'; import { NG_VALUE_ACCESSOR } from '@angular/forms'; import { CalendarDay, InCalendarPicker } from '../interfaces/calend...
the_stack
import { Tree } from '@angular-devkit/schematics'; import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; import { collectionPath } from './common'; describe('spec', () => { let tree: Tree; beforeEach(() => { tree = Tree.empty(); tree.create('empty-class.ts', 'export ...
the_stack
import {Component, Input, AfterViewInit, Output, EventEmitter, NgZone, ViewChild} from '@angular/core'; import {OGraph} from './d3-graph/OGraph'; import {AddEdgeModal} from './modal/addEdgeModal/addEdgeModal.component' import {downgradeComponent} from '@angular/upgrade/static'; import {NotificationService} from "../.....
the_stack
import { minBy } from "lodash-es" import { Twist } from "types" import { mapObject } from "utils" import Classical, { Facet, Family } from "data/specs/Classical" import { makeOpPair, combineOps, Pose } from "./operationPairs" import { angleBetween, getPlane, withOrigin, Vec3D } from "math/geom" import { Polyhedron, Fac...
the_stack
// Unfortunately, pbf doesn't output modules. And typescript gets upset about the types. // If this file is regenerated, a lot of manual massaging is required to make it useful. import Pbf from "pbf"; export abstract class ProtobufMessageReader<T> { abstract readonly defaultMessage: T; public read(pbf: Pbf, end?...
the_stack
* @module OrbitGT */ //package orbitgt.spatial.ecrs; type int8 = number; type int16 = number; type int32 = number; type float32 = number; type float64 = number; import { AList } from "../../system/collection/AList"; import { ASystem } from "../../system/runtime/ASystem"; import { Message } from "../../system/runtim...
the_stack
import { IconEvent } from '@defencedigital/icon-library' import { isValid } from 'date-fns' import React, { useState } from 'react' import { Placement } from '@popperjs/core' import { DayModifiers, DayPickerProps } from 'react-day-picker' import { ComponentWithClass } from '../../common/ComponentWithClass' import { DA...
the_stack
import test from 'ava'; import { IocContext, NotfoundTypeError } from '../lib/IocContext'; import { inject, classInfo, injectable, imports, postConstruct, aspect } from '../lib'; import { FunctionContext } from '../lib/class/metadata'; import * as co from 'co'; import { preDestroy } from '../lib/decorator/preDestroy'; ...
the_stack
import * as coder from '../src/country-coder'; function tuple<T extends any[]>(...data: T) { return data; } describe('country-coder', () => { describe('borders', () => { it('exports borders as a feature collection', () => { expect(coder.borders).toHaveProperty('features'); }); describe('propert...
the_stack
export const syncRes = { SaleToPOIResponse: { MessageHeader: { MessageCategory: "Payment", MessageClass: "Service", MessageType: "Response", POIID: process.env.ADYEN_TERMINAL_POIID, ProtocolVersion: "3.0", SaleID: "001", Ser...
the_stack
import { TestBed } from '@angular/core/testing'; import { CxEvent, EventService } from '@spartacus/core'; import { defer, of, Subject } from 'rxjs'; import { take } from 'rxjs/operators'; import { Query, QueryService, QueryState } from './query.service'; class ReloadEvent extends CxEvent { static readonly type = 'Te...
the_stack
import { AffectedTaskOccurrence } from "../../../Enumerations/AffectedTaskOccurrence"; import { ConversationFlagStatus } from "../../../Enumerations/ConversationFlagStatus"; import { ConversationId } from "../../../ComplexProperties/ConversationId"; import { DateTime } from "../../../DateTime"; import { DeleteMode } f...
the_stack
import { expect } from 'chai'; import { promises as fs } from 'fs'; import * as path from 'path'; import { BalenaAPIMock } from '../nock/balena-api-mock'; import { BuilderMock, builderResponsePath } from '../nock/builder-mock'; import { expectStreamNoCRLF, testPushBuildStream } from '../docker-build'; import { cleanOu...
the_stack
module android.view { import PixelFormat = android.graphics.PixelFormat; import TextUtils = android.text.TextUtils; import Log = android.util.Log; import Integer = java.lang.Integer; import StringBuilder = java.lang.StringBuilder; import Gravity = android.view.Gravity; import KeyEvent = android.view.KeyEvent; import Mo...
the_stack
import * as d3 from "d3"; import { assert } from "chai"; import * as Plottable from "../../src"; import * as TestMethods from "../testMethods"; describe("Plots", () => { describe("SegmentPlot", () => { describe("rendering", () => { let div: d3.Selection<HTMLDivElement, any, any, any>; let xScale: ...
the_stack
import {IHaikuComponent, IRenderer, MountLayout} from '../../api'; import HaikuBase, {GLOBAL_LISTENER_KEY} from '../../HaikuBase'; import {getNodeCompositeId} from '../../HaikuComponent'; import assign from '../../vendor/assign'; import applyLayout from './applyLayout'; import assignAttributes from './assignAttributes'...
the_stack
* steganography.js v1.0.3 2017-09-22 * * Copyright (C) 2012 Peter Eigenschink (http://www.peter-eigenschink.at/) * Dual-licensed under MIT and Beerware license. */ const Cover = function Cover() {}; var util = { isPrime(n) { if (isNaN(n) || !isFinite(n) || n % 1 || n < 2) { return false; } if (...
the_stack
module VORLON { declare var BABYLON; class DataGenerator { //ATTRIBUTES //CONSTRUCTOR /** * Constructor. * Does nothing. */ constructor() { } //REQUESTS /** * Generate data about scenes * @returns {Array} ...
the_stack
import expressionBuilder from '../lib/expressionBuilder' // Require Table and Entity classes import Table from '../classes/Table' import Entity from '../classes/Entity' // Create basic table const TestTable = new Table({ name: 'test-table', partitionKey: 'pk' }) // Create basic entity const TestEntity = new Enti...
the_stack
import assert from 'assert' import lmdb from 'node-lmdb' import fs from 'fs' import msgpack from 'msgpack-lite' import debugLib from 'debug' import {I, queryTypes, sel, version as versionLib, err, bitHas, bitSet, resultTypes} from '@statecraft/core' // TODO: Export this cleanly in some way. import SubGroup from '@sta...
the_stack
import { getSynopsis } from 'parsing'; const LANGUAGE_ID = 'javascript'; describe('JavaScript Functions', () => { test('Function expression with no parameters', async () => { const code = `function hello() { console.log('Hello, world!'); }`; const synopsis = getSynopsis(code, LANGUAGE_ID, code); ...
the_stack
import {Mutable, Proto, Arrays, ObserverType} from "@swim/util"; import type {FastenerOwner, Fastener} from "@swim/component"; import { AnyConstraintExpression, ConstraintExpression, ConstraintVariable, ConstraintProperty, ConstraintRelation, AnyConstraintStrength, ConstraintStrength, Constraint, Cons...
the_stack
import React, { useRef, useEffect } from 'react' import * as d3 from 'd3' import { ZoomInOutlined, ZoomOutOutlined, ReloadOutlined, } from '@ant-design/icons' import { Space } from 'antd' import { cyan, magenta, grey } from '@ant-design/colors' import { useTranslation } from 'react-i18next' import { TopologyStor...
the_stack
module TDev { export class SizeDesc { public elt:HTMLElement; public top:number; constructor(public stmt:AST.Stmt) { this.elt = this.stmt.renderedAs; this.top = Util.offsetIn(this.elt, TheEditor.codeInner).y; } } export class Selector ext...
the_stack
import React, { useCallback, useRef, useState } from 'react' import styled from 'styled-components' import { useMutation } from '@apollo/client' import { useWidthOf } from 'v2/hooks/useCurrentWidth' import DropZoneUploader from 'v2/components/UI/DropZoneUploader' import { AddBlockPasteUploader } from 'v2/components/Ad...
the_stack
import { PouchDB } from "./pouchdb-browser"; import xxhash from "xxhash-wasm"; import { Entry, EntryDoc, EntryDocResponse, EntryLeaf, EntryNodeInfo, NewEntry, PlainEntry, LoadedEntry, Credential, EntryMilestoneInfo, LOG_LEVEL, LEAF_WAIT_TIMEOUT, MAX_DOC_SIZE, MAX_...
the_stack
import getDropIndex from './getDropIndex'; describe('getDropIndex', () => { describe('from header to header', () => { it('should return 0 when there are 3 columns and the second is dragged before the first', () => { const res = getDropIndex({ dropTarget: 'header', dragTarget: 'header', ...
the_stack
import http = require("http"); import https = require("https"); import zlib = require("zlib"); import Logging = require("../Library/Logging"); import TelemetryClient = require("../Library/TelemetryClient"); import snippetInjectionHelper = require("../Library/SnippetInjectionHelper"); import Statsbeat = require("./Stat...
the_stack
import { StackFrame } from 'vscode-debugadapter'; import { ApexVariableContainer } from '../adapter/apexReplayDebug'; import { ApexExecutionOverlayResultCommandSuccess, HeapDumpExtents, HeapDumpExtentValue } from '../commands/apexExecutionOverlayResultCommand'; import { ADDRESS_PREFIX, APEX_PRIMITIVE_STRING, ...
the_stack
declare module 'regular-table' { // only need the @types/react pkg for this, not the runtime react pkg import { DetailedHTMLProps, HTMLAttributes } from "react"; //// START: index.d.ts /** * The `<regular-table>` custom element. * * This module has no exports, but importing it has a side...
the_stack
import {GL} from '@loaders.gl/math'; // 'math.gl/geometry'; import assert from '../utils/assert'; /* const DEFAULT_COLOR_VALUE = Color.WHITE; const DEFAULT_SHOW_VALUE = true; */ const defined = x => x !== undefined; // The size of this array equals the maximum instance count among all loaded tiles, which has the pot...
the_stack
import ModuleEvent from "../event/ModuleEvent"; import ModuleCategories from "../enum/ModuleCategories"; import EventDispatcher from "./EventDispatcher"; import Patch from "./Patch"; import ModuleTypes from "../enum/ModuleTypes"; import Connection from "./Connection"; import AttributeTypes from "../enum/AttributeTypes"...
the_stack
import { Button, Icon } from '@ridi/rsg'; import React from 'react'; import classNames from 'classnames'; import dateFnsFormat from 'date-fns/format'; import { connect } from 'react-redux'; import { RidiSelectState } from 'app/store'; import { EnvironmentState } from 'app/services/environment'; import { FetchStatusFla...
the_stack
import { expect, use } from 'chai'; import * as chaiAsPromised from 'chai-as-promised'; import * as OriginSequelize from 'sequelize'; import { createSequelize } from '../utils/sequelize'; import { Sequelize, Model, Table, Column, BelongsToMany, ForeignKey, HasOne, HasMany, BelongsTo, DataType, } fro...
the_stack
import * as aws from 'aws-sdk'; import * as AWS from 'aws-sdk-mock'; import { hasAllTrafficEgress, SecurityGroupContextProviderPlugin } from '../../lib/context-providers/security-groups'; import { MockSdkProvider } from '../util/mock-sdk'; AWS.setSDK(require.resolve('aws-sdk')); const mockSDK = new MockSdkProvider();...
the_stack
import { TestToken } from "@connext/vector-contracts"; import { DEFAULT_CHANNEL_TIMEOUT, EngineEvents, FullChannelState, INodeService, NodeError, TransferNames, } from "@connext/vector-types"; import { createlockHash, delay, getRandomBytes32, RestServerNodeService } from "@connext/vector-utils"; import { Bi...
the_stack
import { Router } from 'express'; import asyncHandler from 'express-async-handler'; const router: Router = Router(); import { Operations, Repository } from '../business'; import { ErrorHelper, getProviders } from '../transitional'; import { AuditLogRecord } from '../entities/auditLogRecord/auditLogRecord'; import { da...
the_stack
import assert from 'assert'; import * as Tp from 'thingpedia'; import * as ThingTalk from 'thingtalk'; import { Ast, Runtime } from 'thingtalk'; import MonitorRunner from './monitor_runner'; import { Timer, AtTimer, OnTimer } from './timers'; import DeviceView from '../devices/device_view'; import NotificationFormatt...
the_stack
'use strict'; const getInVis = require('../../util/immutable-utils').getInVis; // TODO: derived fields? const SPAN_FIELD_OPEN = '<span class="field source" contenteditable="false">'; const SPAN_SIGNAL_OPEN = '<span class="signal" contenteditable="false">'; const SPAN_CLOSE = '</span>'; const DATUM = 'datum.'; const ...
the_stack
import ts from 'typescript'; import { UnionType } from 'typescript'; import path from 'path'; import fs from 'fs'; import * as util from './util'; import * as dom from './dom'; import { isEqual } from 'lodash'; import * as envMod from './env'; import { env } from './env'; export { dom, util }; export interface PlainO...
the_stack
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Un...
the_stack
namespace eui { /** * @private */ const enum Keys { useVirtualLayout, useVirtualLayoutChanged, rendererToClassMap, freeRenderers, createNewRendererFlag, itemRendererChanged, itemRenderer, itemRendererFunction, typicalItemChanged,...
the_stack
import {FS, Utils} from '../../lib'; import {SSBSet, ssbSets} from '../../data/mods/ssb/random-teams'; interface SetCriteria { moves: {mustHave: Move[], mustNotHave: Move[]}; ability: {mustHave?: Ability, mustNotHave: Ability[]}; item: {mustHave?: Item, mustNotHave: Item[]}; nature: {mustHave?: Nature, mustNotHav...
the_stack
'use strict'; import { app, BrowserWindow, Menu, MenuItem, MenuItemConstructorOptions, shell, dialog, globalShortcut, } from 'electron'; import * as path from 'path'; import { splash } from './splash'; import electronIsDev from 'electron-is-dev'; import { format as formatUrl } from 'ur...
the_stack
import { Component } from '@angular/core'; import * as json from './timelinedemo-dataproperties.json'; @Component({ selector: 'app-timeline', templateUrl: './timelinedemo.component.html', styleUrls: ['./timelinedemo.component.scss'], }) export class TimelineDemoComponent { public dataTableProperties; publ...
the_stack
import { GotOptions } from "got"; import { ClientRequest, IncomingMessage } from "http"; import { PassThrough, Transform } from "stream"; import Promise = require("bluebird"); /** * Use [`got`](https://www.npmjs.com/package/got) to make an HTTP request with automatic retries for network errors. * * Designed for dow...
the_stack
import * as React from 'react'; import * as _ from 'lodash'; import * as path from 'path'; import { render } from '@testing-library/react'; import { TestObject, IsConformantOptions } from './types'; import { defaultErrorMessages } from './defaultErrorMessages'; import { ComponentDoc } from 'react-docgen-typescript'; i...
the_stack
import React, { ChangeEvent, PureComponent } from 'react'; import { RedisGraph } from 'redis/graph'; import { css } from '@emotion/css'; import { QueryEditorProps, SelectableValue } from '@grafana/data'; import { Button, InlineFormLabel, LegacyForms, RadioButtonGroup, Select, TextArea } from '@grafana/ui'; import { Str...
the_stack
import { PublicKey } from '@solana/web3.js'; import { EventEmitter } from 'events'; import StrictEventEmitter from 'strict-event-emitter-types'; import { ClearingHouse } from './clearingHouse'; import { isVariant, MarginCategory, Order, SettlementStateAccount, UserAccount, UserOrdersAccount, UserPosition, UserP...
the_stack
module HubTests { "use strict"; var HubSection = <typeof WinJS.UI.PrivateHubSection>WinJS.UI.HubSection; var Hub = <typeof WinJS.UI.PrivateHub>WinJS.UI.Hub; // This is the setup function that will be called at the beginning of each test function. var hostId = "HubTests"; var hostSelector = "#...
the_stack
import { ActionSetState, ActionState } from '@aardvarkxr/aardvark-shared'; import { Action, InputInfo } from '@aardvarkxr/aardvark-shared'; import { ActionType, InputProcessor, twoHandBinding, InteractionProfile, Input, ActionSet, Device, InputState } from '@aardvarkxr/aardvark-shared'; jest.useFakeTimers(); beforeEa...
the_stack
import { DummyError, Throwable } from "funfix-core" import * as assert from "./asserts" import { Scheduler, GlobalScheduler, TestScheduler, Duration, ExecutionModel } from "../../src/" describe("GlobalScheduler", () => { it("Scheduler.global.get() instanceof GlobalScheduler", () => { assert.ok(Schedule...
the_stack
import 'reflect-metadata'; import { singleton, container } from 'tsyringe'; import cloneDeep from 'lodash/cloneDeep'; import { Component } from 'mo/react/component'; import { FileTypes, FileType, FolderTreeEvent, IFolderTree, IFolderTreeModel, IFolderTreeSubItem, IFolderTreeNodeProps, } from...
the_stack
import { Readable } from 'stream'; import { LinkQueueFifo } from '@comunica/actor-rdf-resolve-hypermedia-links-queue-fifo'; import type { ILink } from '@comunica/bus-rdf-resolve-hypermedia-links'; import type { ILinkQueue } from '@comunica/bus-rdf-resolve-hypermedia-links-queue'; import type * as RDF from '@rdfjs/types...
the_stack
import { Consumer as KafkaJsConsumer, PartitionAssigner, Assignment, PartitionAssigners, AssignerProtocol, SeekEntry, IHeaders } from "kafkajs"; import { URLSearchParams } from "url"; import * as vscode from "vscode"; import { ClientAccessor } from "."; import { getWorkspaceSettings, InitialConsumerOffset, ClusterSetti...
the_stack
import { IAuthentication, IConnectionFactory, RecognitionMode, RecognizerConfig, ServiceRecognizerBase, SpeechServiceConfig, TranslationConnectionFactory, TranslationServiceRecognizer, } from "../common.speech/Exports"; import { marshalPromiseToCallbacks } from "../common/Exports"; impor...
the_stack
import { ChangeDetectorRef, ElementRef, EventEmitter, Injectable, Renderer2, } from '@angular/core'; import { WindowRef } from '@spartacus/core'; import { EventListenerUtils } from '@spartacus/epd-visualization/root'; @Injectable({ providedIn: 'any', }) export class VisualViewerAnimationSliderService { p...
the_stack
import { ValueComponentProps, ValueComponent, VNode, mountComponent, createVNode } from 'jeact'; import './index.less'; export interface SingleCascaderOption { value: any; label: string; selected?: boolean; parent?: SingleCascaderOption; children?: SingleCascaderOption[]; } export interface SingleCascaderCo...
the_stack
import { Workbook } from './../src/workbook'; import { Utils } from './../spec/utils.spec'; describe('Branching Coverage', () => { it('builtInProperties', (done) => { let book: Workbook = new Workbook({ builtInProperties: { author: undefined, comments: undefined, ...
the_stack
import { Utils } from '@rpgjs/common' import { RpgClientEngine } from './RpgClientEngine'; // keyboard handling const keyCodeTable = { 3: 'break', 8: 'backspace', // backspace / delete 9: 'tab', 12: 'clear', 13: 'enter', 16: 'shift', 17: 'ctrl', 18: 'alt', 19: 'pause/break', 20:...
the_stack
import { Component, OnInit } from '@angular/core'; import { KafkaService } from '../../service/kafka.service'; import { Router, ActivatedRoute } from '@angular/router'; import { KafkaTopic } from '../../model/kafka-topic'; import { MetronAlerts } from '../../shared/metron-alerts'; import { SensorParserConfigService } f...
the_stack
import { DecodeRawTransactionResult, VerboseRawTransactionResult } from "bitcoin-com-rest" import * as chai from "chai" import * as util from "util" import { BITBOX, REST_URL } from "../../lib/BITBOX" import { RawTransactions } from "../../lib/RawTransactions" import axios from "axios" import * as sinon from "sinon...
the_stack
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; import { CloudWatchEventsClient } from "./CloudWatchEventsClient"; import { ActivateEventSourceCommand, ActivateEventSourceCommandInput, ActivateEventSourceCommandOutput, } from "./commands/ActivateEventSourceCommand"; import { Cancel...
the_stack