text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import React from 'react'; import ReactDOM from 'react-dom'; import * as d3 from 'd3'; import {kde, probabilitiesOfSuperiority, summaryStatistics, regression, RegressionResults, Summary} from './lib/statistics'; import {LocationsWithTileID} from './lib/locations_with_tile_id'; import type {ScaleBand, ScaleLinear} from ...
the_stack
import { Cents, Degrees, Frequency, Seconds, Time } from "../../core/type/Units"; import { optionsFromArguments } from "../../core/util/Defaults"; import { readOnly } from "../../core/util/Interface"; import { isNumber, isString } from "../../core/util/TypeCheck"; import { Signal } from "../../signal/Signal"; import { ...
the_stack
import * as fs from 'fs'; import { inspect, promisify } from 'util'; import { Suite } from '../Suite'; import { AbstractRunnable, RunnableReloadResult } from '../AbstractRunnable'; import { GoogleTestTest } from './GoogleTestTest'; import { Parser } from 'xml2js'; import { RunnableProperties } from '../RunnablePropert...
the_stack
import { KeyboardAccessoryView, useComponentSize, } from '@flyerhq/react-native-keyboard-accessory-view' import { oneOf } from '@flyerhq/react-native-link-preview' import dayjs from 'dayjs' import calendar from 'dayjs/plugin/calendar' import * as React from 'react' import { FlatList, FlatListProps, GestureRes...
the_stack
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * Gateway * __NOTE__: An instance of this class is automatically created for an * instance of the ServerManagement. */ export interface Gateway { /** ...
the_stack
import * as child_process from 'child_process'; import * as protobufjs from 'protobufjs'; import * as assert from 'assert'; import * as Long from 'long'; import * as fs from 'fs'; import { parseSchema } from './index'; import { Enum, EnumTest, MapTestLongAndBool, MapTestIntAndString, Optional, RepeatedPacke...
the_stack
import { App, Editor, FuzzyMatch, FuzzySuggestModal, Modal, Notice, Platform, Scope, Setting, SuggestModal, TextComponent } from "obsidian"; import { createPopper, Instance as PopperInstance } from "@popperjs/core"; import { getIconModuleName, getIconNode, iconDefinitions } ...
the_stack
import React, { FunctionComponent } from "react"; import { TimerActionControlProps } from "./types"; import { Capability, useGoToLocationPresetsQuery, useMapSegmentationPropertiesQuery, useSegmentsQuery, useZonePresetsQuery, } from "../../api"; import { Box, Checkbox, CircularProgress, ...
the_stack
import * as React from 'react'; import styles from './Attachments.module.scss'; import * as tsStyles from './AttachmentsStyles'; import { ITaskExternalReference } from '../../../../services/ITaskExternalReference'; import { DefaultPalette, Icon, DefaultButton, IContextualMenuProps, IContextualMenuItem, Icon...
the_stack
import { Lifecycle, LifecyclePeer, LifecycleChannel } from '../src'; import * as chai from 'chai'; import * as sinonChai from 'sinon-chai'; import { Wallet, Wallets } from 'fabric-network'; import * as path from 'path'; import { ConnectOptions } from 'fabric-common'; const should: Chai.Should = chai.should(); chai.use...
the_stack
namespace com.keyman.osk { // Manages the language selection UI for touch-form factors, which is triggered by an OSK key. // Used by 'native'-mode KMW only - the Android and iOS embedding apps implement their own menus. export class LanguageMenu { keyman: KeymanBase; private lgList: HTMLDivElement; p...
the_stack
import ObjectIdentity from '../../util/ObjectIdentity'; import GraphLayout from './GraphLayout'; import { Graph } from '../Graph'; import Cell from '../cell/Cell'; import CellArray from '../cell/CellArray'; /** * Extends {@link GraphLayout} to implement a fast organic layout algorithm. * The vertices need to be conn...
the_stack
declare namespace JsHamcrest { /** * Library version. */ export var version: string; // // Description // /** * Defines the method for describing the object to a description. */ interface DescribeTo { (description: Description): void; } /** * Defi...
the_stack
module Kiwi.Geom { /** * A Circle object is an area defined by its position, * as indicated by its center point (x,y) and diameter. * * @class Circle * @namespace Kiwi.Geom * @constructor * @param [x=0] {Number} The x coordinate of the center of the circle. * @param [y=0] {Number} The y coordinate of the ce...
the_stack
import { Component, ReactElement } from 'react'; import { Icon } from '@alifd/next'; import classNames from 'classnames'; import { Title, observer, Tip, globalContext, Editor } from '@alilc/lowcode-editor-core'; import { DockProps } from '../../types'; import PanelDock from '../../widget/panel-dock'; import { composeTi...
the_stack
interface JQuery { embed: SemanticUI.Embed; } declare namespace SemanticUI { interface Embed { settings: EmbedSettings; /** * Changes iframe to a new content source */ (behavior: 'change', source: string, id: string, url: string): JQuery; /** * Remove...
the_stack
// Copyright (c) 2015 Vadim Macagon // MIT License, see LICENSE file for full terms. import * as readline from 'readline'; import * as events from 'events'; import * as stream from 'stream'; import * as parser from './mi_output_parser'; import { RecordType } from './mi_output'; // import * as bunyan from 'bunyan'; im...
the_stack
import { JSDOM } from "jsdom" import * as WebSocket from "ws" const { window, window: { document, HTMLElement }, } = new JSDOM() Object.assign(global, { window, document, HTMLElement, WebSocket }) import * as http from "http" import * as net from "net" import Purview from "../src/purview" import AsyncQueue from "...
the_stack
import { browser, protractor, $} from 'protractor'; import { OverviewCompliance } from '../page-objects/overview.po'; import { PatchingCompliance } from '../page-objects/patching-compliance.po'; import { Login } from '../page-objects/login.po'; import { AssetDetails } from '../page-objects/asset-details.po'; import { A...
the_stack
module android.widget { import Gravity = android.view.Gravity; import View = android.view.View; import ViewGroup = android.view.ViewGroup; import Drawable = android.graphics.drawable.Drawable; import Rect = android.graphics.Rect; import Canvas = android.graphics.Canvas; import AttrBinder = a...
the_stack
import {ActionGroup, Item} from '@react-spectrum/actiongroup'; import {Cell, Column, Row, TableBody, TableHeader, TableView} from '@react-spectrum/table'; import {Checkbox} from '@react-spectrum/checkbox'; import {classNames, useStyleProps} from '@react-spectrum/utils'; import {Flex} from '@react-spectrum/layout'; impo...
the_stack
import { select } from 'd3-selection'; const emptyDescriptions = { 'vcl-access-title': 'This chart has no title provided.', 'vcl-access-subtitle': 'This chart has no subtitle provided.', 'vcl-access-long-description': '', // 'This chart has no long description provided.', 'vcl-access-context': '', 'vcl-access...
the_stack
import {CamerasController} from './utils/CamerasController'; import {Cooker} from './utils/Cooker'; import {CookController} from './utils/CookController'; import {CoreGraph} from '../../core/graph/CoreGraph'; import {CorePerformance} from '../../core/performance/CorePerformance'; import {DispatchController} from './uti...
the_stack
/** * @license Copyright © 2013 onwards, Andrew Whewell * All rights reserved. * * Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyri...
the_stack
import { BrowserView, app, ipcMain } from 'electron'; import { parse as parseUrl } from 'url'; import { getViewMenu } from './menus/view'; import { AppWindow } from './windows'; import { IHistoryItem, IBookmark } from '~/interfaces'; import { ERROR_PROTOCOL, NETWORK_ERROR_HOST, WEBUI_BASE_URL, } from '~/constants...
the_stack
import { TestBed } from '@angular/core/testing'; import { HttpClientTestingModule, HttpTestingController, } from '@angular/common/http/testing'; import { ODataClient } from './client'; import { ODataMetadataResource, ODataEntitySetResource, ODataFunctionResource, ODataActionResource, ODataSingletonResourc...
the_stack
import threshold_bls from 'blind-threshold-bls' import { BLSCryptographyClient, ServicePartialSignature, } from '../../src/bls/bls-cryptography-client' import config from '../../src/config' const PUBLIC_KEY = '8VZ0ZBPBjeRaH2nE+itNKiL/wKl38foK74MniCCIxvpA/9AfE1Uy7qbGGRyiKj8AAeiFpSaMzi7Flfe/Tj/qCWM8LMgQGR+eTvt7yiY...
the_stack
import 'chrome://resources/cr_elements/cr_button/cr_button.m.js'; import 'chrome://resources/cr_elements/cr_expand_button/cr_expand_button.m.js'; import 'chrome://resources/cr_elements/policy/cr_policy_pref_indicator.m.js'; import 'chrome://resources/cr_elements/shared_style_css.m.js'; import 'chrome://resources/cr_ele...
the_stack
import { Map } from 'immutable'; import { PortRecord } from '../../constants/flowdesigner.model'; import * as Port from './port'; import * as Position from '../position/position'; describe('isPortElseThrow', () => { it('return true if given parameter is a PortRecord', () => { // given const testPort = new PortRe...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/sourceControlSyncJobOperationsMappers"; import * as Parameters from "../models/parameters"; import { AutomationClientContext } from "../automationClientContext"; /** Class representing a SourceControlS...
the_stack
import { isArray, isBlank, isBoolean, isDate, isEmpty, isFunction, isNumber, isObject, isPresent, isPromise, isString, } from '../../guards' import { Empty } from '../../guards/types' // tslint:disable:no-magic-numbers // tslint:disable-next-line:no-empty const noop = () => {} const emptyArr = [...
the_stack
declare module 'sumi-worker' { /** * Options to configure the behaviour of a file open dialog. * * * Note 1: A dialog can select files, folders, or both. This is not true for Windows * which enforces to open either files or folder, but *not both*. * * Note 2: Explicitly setting `canSelectFiles` and `ca...
the_stack
import React from 'react' import capitalize from 'lodash/capitalize' import { useRouter } from 'next/router' import { Screen } from '../../types' import { Select as NativeSelect, OrganizationWrapper, lightThemes, NewsCard, } from '@island.is/web/components' import { useDateUtils } from '@island.is/web/i18n/useD...
the_stack
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Store } from '@ngrx/store'; import { TranslateService } from '@ngx-translate/core'; import { Observable } from 'rxjs'; import { filter, map, switchMap, take } from 'rxjs/operators'; import { hasValue, is...
the_stack
import { bySport, isSport, PHASE, unwrapGameAttribute } from "../../../common"; import { team } from ".."; import { idb } from "../../db"; import { defaultGameAttributes, g, helpers } from "../../util"; import type { GameResults } from "../../../common/types"; import { getActualAttendance, getAdjustedTicketPrice, ge...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AppServiceEnvironments } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { WebSiteManagementClient } from "...
the_stack
import { Konva } from './Global'; import { Transform, Util } from './Util'; import { Factory } from './Factory'; import { Node, NodeConfig } from './Node'; import { getNumberValidator, getNumberOrAutoValidator, getStringValidator, getBooleanValidator, getStringOrGradientValidator, } from './Validators'; impo...
the_stack
import { createSelector } from '@ngrx/store'; import { ServiceOffering, serviceOfferingParamKey, Tag } from '../../../shared/models'; import { CustomComputeOfferingHardwareRestrictions, CustomComputeOfferingHardwareValues, CustomComputeOfferingParameters, HardwareLimits, } from '../../../shared/models/config';...
the_stack
import { ERC1155MintableContract, Erc1155Wrapper } from '@0x/contracts-erc1155'; import { artifacts as erc20Artifacts, DummyERC20TokenContract, DummyERC20TokenTransferEventArgs, DummyMultipleReturnERC20TokenContract, DummyNoReturnERC20TokenContract, } from '@0x/contracts-erc20'; import { artifac...
the_stack
import config from "../config"; import { Connection, MessageType } from "../connection"; import Utils from "../utils"; import UIC from "./components"; import { Platform, SpotifyUtils } from "../spotify-apis"; import Resources from "../resources"; import ComponentsStyle from "./css/components.css"; import SettingsStyle...
the_stack
import { Orbit } from '@orbit/core'; import { serializeRecordIdentity, deserializeRecordIdentity, InitializedRecord, RecordIdentity, RecordQueryBuilder, RecordTransformBuilder } from '@orbit/records'; import { RecordRelationshipIdentity, AsyncRecordCache, AsyncRecordCacheSettings, RecordCacheQueryOp...
the_stack
* @module Item */ import classnames from "classnames"; import * as React from "react"; import { Logger } from "@itwin/core-bentley"; import { BadgeType, ConditionalStringValue, OnItemExecutedFunc, SpecialKey, StringGetter, UiSyncEventArgs } from "@itwin/appui-abstract"; import { BadgeUtilities, CommonProps, Icon, Ico...
the_stack
import Ganache, { Server } from "../index"; import * as assert from "assert"; import request from "superagent"; import WebSocket from "ws"; import { ServerStatus } from "../src/server"; import { MAX_PAYLOAD_SIZE as WS_MAX_PAYLOAD_SIZE } from "../src/servers/ws-server"; import http from "http"; // https://github.com/s...
the_stack
import grafana from 'grafana_func'; import { State } from './state_class'; import _ from 'lodash'; import { Metric } from 'metric_class'; import { $GF } from 'globals_class'; import chroma from 'chroma-js'; /** * Rule definition * * @export * @class Rule */ export class Rule { data: gf.TIRuleData; shapeMaps: ...
the_stack
import * as THREE from 'three'; import {Action, AnyAction, combineReducers, Reducer} from 'redux'; import {Omit} from 'react-redux'; import {v4} from 'uuid'; import {GroupByFunction} from 'redux-undo'; import {pick} from 'lodash'; import {objectMapReducer} from './genericReducers'; import {FileIndexActionTypes, Remove...
the_stack
import { EventEmitter } from "events"; import { combine } from "pvtsutils"; import { INFO_RATCHET, INFO_TEXT, MAX_RATCHET_STACK_SIZE } from "./const"; import { Curve, ECPublicKey, IECKeyPair, Secret } from "./crypto"; import { Identity } from "./data"; import { RemoteIdentity } from "./data/remote_identity"; import { M...
the_stack
import type { Readable } from 'readable-stream' import type { Authenticator, HttpMethod, ITransportSettings, SDKResponse, Values, } from './transport' import { agentPrefix, sdkOk } from './transport' import type { IAuthSession } from './authSession' /** * Creates an "sdk" to be used with the TypeScript SDK'...
the_stack
export declare interface CSSStyleProps { /** * "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "stretch" */ "align-content"?: string; /** * "flex-start" | "flex-end" | "center" | "baseline" | "stretch" */ "align-items"?: string; /** * "auto" | "flex-start" | "flex-end"...
the_stack
import * as React from "react"; import { BaseContainer } from "../../../BaseContainer"; import classnames from "classnames"; import { SubscriptionContentsState } from "./SubscriptionContentsStore"; import { SubscriptionContent, SubscriptionContentIdentifier } from "../../../../../domain/Subscriptions/Subscripti...
the_stack
import { HTMLElement, TextNode, HTMLComment, Node } from "../../chef/html/html"; import { Expression, Operation, VariableReference } from "../../chef/javascript/components/value/expression"; import { Value, ValueTypes, Type } from "../../chef/javascript/components/value/value"; import { FunctionDeclaration, ArgumentLis...
the_stack
import { expect } from "chai"; import * as faker from "faker"; import { Id64String } from "@itwin/core-bentley"; import { CategoryDescription } from "../../presentation-common/content/Category"; import { Descriptor, DescriptorJSON, DescriptorSource, SelectClassInfo, SelectClassInfoJSON, SortDirection, } from "../../p...
the_stack
import * as Long from 'long' import { util, configure, Writer, Reader } from 'protobufjs/minimal' import { Duration } from '../../google/protobuf/duration' export const protobufPackage = 'tendermint.types' /** * ConsensusParams contains consensus critical parameters that determine the * validity of blocks. */ expo...
the_stack
import chai, { expect } from 'chai' import { Console } from 'console' import { solidity } from 'ethereum-waffle' import { BigNumber, Signer } from 'ethers' import hre from 'hardhat' import { getMarkets, isEtheremNetwork } from '../../config' import { getPlatformSetting, updatePlatformSetting } from '../../tasks' impor...
the_stack
import * as Constants from "./Constants"; import { CryptoManager, BoxCryptoManager, LoginCryptoManager, concatArrayBuffersArrays } from "./Crypto"; import { IntegrityError, MissingContentError } from "./Exceptions"; import { base64, fromBase64, toBase64, fromString, toString, randomBytes, symmetricKeyLength, msgpackEn...
the_stack
import { boot } from '../../../boot' import { Graph } from '../../../Class/Graph' import { APINotSupportedError } from '../../../exception/APINotImplementedError' import { DisplayMediaAPINotSupported } from '../../../exception/DisplayMediaAPINotSupported' import { MediaDevicesAPINotSupported } from '../../../exception/...
the_stack
import * as React from 'react'; import { Link } from 'react-router-dom'; import { Grid, Label, Popup, Table } from 'semantic-ui-react'; import { getStatusSemanticColor, ProcessEntry, ProcessKind, ProcessStatus } from '../../../api/process'; import { formatDuration } from '../../../utils'; import { GitH...
the_stack
import { createCompiler } from '../compiler'; import * as Fs from 'fs'; import * as Path from 'path'; import * as PropertyAnalyzer from './property-analyzer'; import * as ReactUtils from '../react-utils'; import * as SlotAnalyzer from './slot-analyzer'; import * as Types from '@meetalva/types'; import * as TypeScriptUt...
the_stack
class PWA { // Copy text... async copyText(text: string) { try { if (navigator.clipboard) { await navigator.clipboard.writeText(text); // Copied... return { ok: true, message: "Copied" }; } else { return { ok: false, message: "Copy Text API not sup...
the_stack
import { StateService } from '@uirouter/core'; import _ = require('lodash'); import { ApiService } from '../../../../services/api.service'; import NotificationService from '../../../../services/notification.service'; const ApiSubscriptionComponent: ng.IComponentOptions = { bindings: { api: '<', subscription...
the_stack
import 'chrome://resources/cr_elements/cr_radio_button/cr_radio_button.m.js'; import 'chrome://resources/cr_elements/cr_radio_group/cr_radio_group.m.js'; import 'chrome://resources/cr_elements/md_select_css.m.js'; import '../controls/settings_toggle_button.js'; import '../prefs/prefs.js'; import '../settings_shared_css...
the_stack
import * as _ from 'lodash'; import { expect } from 'chai'; import * as parallel from 'mocha.parallel'; import type * as BalenaSdk from '../../..'; import { toWritable } from '../../../lib/util/types'; import { timeSuite } from '../../util'; import type * as tagsHelper from './tags'; import { balena, credentials, g...
the_stack
import { MAGNETIC_MODULE_TYPE, TEMPERATURE_MODULE_TYPE, THERMOCYCLER_MODULE_TYPE, MAGNETIC_MODULE_V1, MAGNETIC_MODULE_V2, } from '@opentrons/shared-data' import { orderedStepIds, labwareInvariantProperties, moduleInvariantProperties, presavedStepForm, savedStepForms, unsavedForm, batchEditFormCh...
the_stack
import { SpreadsheetHelper } from '../util/spreadsheethelper.spec'; import { defaultData } from '../util/datasource.spec'; import { Spreadsheet, dialog as dlg, DialogBeforeOpenEventArgs, BeforeSelectEventArgs, getRangeIndexes, getCell, CellModel } from '../../../src/index'; import { SheetModel } from '../../../src/inde...
the_stack
import { API, PasteEvent } from "@editorjs/editorjs"; import { Alignment, ALIGNMENTS, TextAlign, ALIGNMENT_ICONS } from "../utils"; import { HTMLPasteEventDetail } from "@editorjs/editorjs/types/tools/paste-events"; /** * @typedef {object} ParagraphConfig * @property {string} placeholder - placeholder for the empty ...
the_stack
import { InjectionMode, IStyleSheetConfig, Stylesheet } from './Stylesheet'; describe('Stylesheet', () => { let _stylesheet: Stylesheet; const resetStylesheetInstanceSetup = () => { (window as Window & { __stylesheet__?: Stylesheet }).__stylesheet__ = undefined; }; const cacheClassNameSetup = (stylesheet...
the_stack
import * as assert from "assert"; const DeepEqual = require('deep-equal'); const CHAR_CODE_A = 65; const CHAR_CODE_Z = 90; const CHAR_CODE_a = 97; const CHAR_CODE_z = 122; const CHAR_CODE__ = 95; const CHAR_CODE_0 = 48; const CHAR_CODE_9 = 57; const CHAR_CODE_SPACE = 32; const CHAR_CODE_TAB = 9; const CHAR_CODE_MINUS...
the_stack
// Bootstrap an installation of Almond Cloud by creating the // database schema and adding the requisite initial data import assert from 'assert'; import * as argparse from 'argparse'; import * as path from 'path'; import { promises as pfs } from 'fs'; import * as mysql from 'mysql'; import * as Url from 'url'; import...
the_stack
import Sound from "openfl/media/Sound"; import SoundChannel from "openfl/media/SoundChannel"; import SoundTransform from "openfl/media/SoundTransform"; import ByteArray from "openfl/utils/ByteArray"; import Vector from "openfl/Vector"; import EventDispatcher from "./../events/EventDispatcher"; import BitmapFont from "....
the_stack
import { assert, expect } from "chai"; import { SchemaContext } from "../../Context"; import { ECObjectsError } from "../../Exception"; import { Phenomenon } from "../../Metadata/Phenomenon"; import { Schema } from "../../Metadata/Schema"; import { Unit } from "../../Metadata/Unit"; import { UnitSystem } from "../../Me...
the_stack
import * as coreHttp from "@azure/core-http"; export const KeyListResult: coreHttp.CompositeMapper = { type: { name: "Composite", className: "KeyListResult", modelProperties: { items: { serializedName: "items", type: { name: "Sequence", element: { typ...
the_stack
import { render, cleanup, PLACEMENTS_NO_CENTER, ExpectBoundsProps, fixViewport } from "./util"; import { Placement } from "../../src"; import { constants } from "../../sandbox/constants"; before(fixViewport); describe("e2e/no-overflow-container", () => { afterEach(cleanup); it("tracks the triggers posi...
the_stack
import React, { useEffect, useState } from 'react' import { observer } from 'mobx-react' import { PluginRecord } from '@jbrowse/core/PluginLoader' import { Region } from '@jbrowse/core/util/types' import ViewType from '@jbrowse/core/pluggableElementTypes/ViewType' import PluginManager from '@jbrowse/core/PluginManager'...
the_stack
import { StyleInfo } from 'lit/directives/style-map'; import { CallServiceActionConfig, CustomActionConfig, LovelaceCard, LovelaceCardEditor, MoreInfoActionConfig, NavigateActionConfig, ToggleActionConfig, UrlActionConfig, } from 'custom-card-helpers'; import { z } from 'zod'; import { deepRemoveDefaul...
the_stack
import { Assert, AITestClass } from "@microsoft/ai-test-framework"; import { AppInsightsCore, IConfiguration, DiagnosticLogger, ITelemetryItem, createCookieMgr, newId, strTrim } from "@microsoft/applicationinsights-core-js"; import PropertiesPlugin from "../../../src/PropertiesPlugin"; import { ITelemetryConfig } from...
the_stack
import { ExtendedSocket } from 'extendedsocket' import { ActiveConnections } from 'storage/activeconnections' import { CSTeamNum } from 'gametypes/shareddefs' import { HostPacketType } from 'packets/definitions' import { UserInventory } from 'user/userinventory' import { InHostPacket } from 'packets/in/host' import ...
the_stack
import AxisUtils from '@/utils/tool/AxisUtils'; import RectUtils from '@/utils/tool/RectUtils'; import MathUtils from '@/utils/MathUtils'; import { DEFAULT_TEXT_SHADOW, EDragStatus, ESortDirection } from '../../constant/annotation'; import EKeyCode from '../../constant/keyCode'; import { EDragTarget } from '../../const...
the_stack
import {Injectable} from '@angular/core'; import {Subject} from 'rxjs'; @Injectable({ providedIn: 'root' }) export class HidenavShService { data = []; mode: any = 'ios'; names = []; tabnames = []; scroll: any; requestName(){ let name = 'page'+this.names.length; this.names....
the_stack
import { createEffect, Effect, Event, /*::type*/ CompositeName, /*::type*/ kind, } from 'effector' const typecheck = '{global}' test('createEffect', () => { const createEffect_effect1: Effect<number, string> = createEffect() const createEffect_effect2 = createEffect('', { handler: createEffect_effec...
the_stack
import * as ts from "typescript"; import * as lua from "../../../LuaAST"; import { getOrUpdate } from "../../../utils"; import { FunctionVisitor, TransformationContext } from "../../context"; import { AnnotationKind, getTypeAnnotations } from "../../utils/annotations"; import { annotationRemoved } from "../../utils/dia...
the_stack
import { expect, use } from "chai"; import * as Fs from "fs"; import * as Nock from "nock"; import * as Path from "path"; import * as Sinon from "sinon"; import * as Temp from "temp"; import * as ChaiAsPromised from "chai-as-promised"; use(ChaiAsPromised); import ReleaseBinaryCommand from "../../../../src/commands/di...
the_stack
import { Cache } from '../src'; import { ICache } from '../src/CacheTypes'; import { createStorage } from '../src/createStorage'; import { prefixLayer } from '../src/layers/prefixLayer'; jest.mock('../src/createStorage', () => require.requireActual('../__mocks__/createStorage')); const INITIAL_STATE = { restore: true...
the_stack
import { MockBoot, renderRelayTree } from "v2/DevTools" import { SystemContextProvider } from "v2/System" import { ViewingRoomAppFragmentContainer } from "../ViewingRoomApp" import { graphql } from "react-relay" import { ViewingRoomApp_DraftTest_QueryRawResponse } from "v2/__generated__/ViewingRoomApp_DraftTest_Query.g...
the_stack
import * as chai from 'chai'; // tslint:disable-next-line:no-var-requires const { balance, BN, constants, ether, expectEvent, expectRevert } = require('@openzeppelin/test-helpers'); import { DAOInstance, VentureEthInstance, OneTokenOneVoteInstance } from '../../types/truffle-contracts'; const DAO = artifacts.require...
the_stack
import { Inject, Injectable, isDevMode, OnDestroy, Optional } from '@angular/core'; import { Params } from '@angular/router'; import { EMPTY, from, Observable, Subject } from 'rxjs'; import { catchError, concatMap, debounceTime, distinctUntilChanged, filter, map, startWith, switchMap, ...
the_stack
import { MountingOptions, mount } from '@vue/test-utils' import { h } from 'vue' import { renderWork, wait } from '@tests' import { IxEmpty } from '@idux/components/empty' import { IxIcon } from '@idux/components/icon' import Tree from '../src/Tree' import { TreeNode, TreeProps } from '../src/types' const dataSourc...
the_stack
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * LinkedServices * __NOTE__: An instance of this class is automatically created for an * instance of the OperationalInsightsManagementClient. */ export interfa...
the_stack
import { v4 as uuidV4 } from 'uuid' import { mocked } from 'ts-jest/utils' import adapterFactory, { SubscriptionAdapter, } from '../../src/subscribe-adapter' import { subscriptionAdapterAlreadyInitialized, subscriptionAdapterClosed, subscriptionAdapterNotInitialized, } from '../../src/subscribe-adapter-constan...
the_stack
import options from '../../util/options'; import Settings from '../../Settings'; import Math from '../../common/Math'; import Vec2 from '../../common/Vec2'; import Rot from '../../common/Rot'; import Joint, { JointOpt, JointDef } from '../Joint'; import Body from '../Body'; import { TimeStep } from "../Solver"; /** ...
the_stack
import { ClassType, GenericsType, EnumType, InterfaceType } from "./AstTypes"; import { Expression } from "./Expressions"; import { ClassReference, EnumReference, ThisReference, MethodParameterReference, SuperReference, StaticFieldReference, EnumMemberReference, InstanceFieldReference, StaticPropertyReference, Instance...
the_stack
import addon from '../utils/addon'; import { Component, NativeElement } from '../core/Component'; import { QPainterPath } from '../QtWidgets/QPainterPath'; import { PenStyle } from '../QtEnums'; import { QBrush } from '../QtGui/QBrush'; import { QColor } from '../QtGui/QColor'; import { QPoint } from '../QtCore/QPoint'...
the_stack
"use strict"; /* (hapi)nes WebSocket Client (https://github.com/hapijs/nes) Copyright (c) 2015-2016, Eran Hammer <eran@hammer.io> and other contributors BSD Licensed */ import WebSocket from "ws"; import { parseNesMessage, stringifyNesMessage } from "./utils"; /* eslint no-undef: 0 */ const version = "2"...
the_stack
import { CustomPropertyHandler, PropertyResolveResult, WidgetResolveResult } from "../providers/property-handler-provider"; import * as parseXml from '../parser/types'; import { WidgetModel, ExtraDataModel, AttributeModel, PropertyModel, AttributeInfo } from '../models/models'; import { extractForLoopParams, makeTabs, ...
the_stack
import { TransferCallTrace, Fiber, FiberDispatchCall, FiberRoot, ReactContext, ReactDispatcherTrapApi, ReactInternals, RerenderState, TransferCallTracePoint, HookInfo, HookCompute, } from "../types"; import { CoreApi } from "./core"; import { extractCallLoc, parseStackTraceLine } from "./utils/sta...
the_stack
import { Module } from '@nestjs/common'; import { MulterModule } from '@nestjs/platform-express'; import { SentryModule } from '@ntegral/nestjs-sentry'; import { ServeStaticModule, ServeStaticModuleOptions } from '@nestjs/serve-static'; import { HeaderResolver, I18nJsonParser, I18nModule } from 'nestjs-i18n'; import ...
the_stack
import {Element,Drawing} from "./drawing" import {score_from_midi,score_to_midi} from "./midicompile" import { NOTE_LENGTH,ACCIDENTAL, ORDER_OF_ACCIDENTALS, CLEF,ARTICULATION,CUE,BARLINE,BRACKET, Time_signature,Key_signature, Note_itf, Staff_itf, Rest_itf, Slur_itf, Measure_itf, Score_itf,Cresc_itf,Tempo_itf,Inst...
the_stack
import {TestBed, inject} from '@angular/core/testing'; import {NgxApiUtilsModule, AuthTokenService, ApiHttpService, TokenPayload} from '../public-api'; import {Polly} from '@pollyjs/core'; import * as XHRAdapter from '@pollyjs/adapter-xhr'; import * as FetchAdapter from '@pollyjs/adapter-fetch'; import {TokenDecoder, A...
the_stack
import * as Clutter from 'clutter'; import * as Gio from 'gio'; import * as GnomeDesktop from 'gnomedesktop'; import * as GObject from 'gobject'; import { VerticalPanelPositionEnum } from 'src/manager/msThemeManager'; import { assert, assertNotNull } from 'src/utils/assert'; import { registerGObjectClass } from 'src/ut...
the_stack
module Fayde.Controls { export class ItemsControlNode extends ControlNode { XObject: ItemsControl; constructor(xobj: ItemsControl) { super(xobj); } ItemsPresenter: ItemsPresenter = null; GetDefaultVisualTree(): UIElement { var presenter = thi...
the_stack
* @fileoverview Tools for manipulating text in SVG. */ export enum HorizontalAlign { Left, Right, Center, } export enum VerticalAlign { Top, Bottom, Middle, } /** * Definition of the options object which the fitTextInBox() function may take. */ export interface FitTextInBoxOptions { /** * Width o...
the_stack
import type { SuggestionCostMapDef } from '../models/suggestionCostsDef'; import { DEFAULT_COMPOUNDED_WORD_SEPARATOR } from '../suggestions/suggestCollector'; import { addAdjustment, addDefToWeightMap, CostPosition, createWeightMap, lookupReplaceCost, PenaltyAdjustment, prettyPrintWeightMap,...
the_stack