text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import aceEvent, { AceEvent } from "@wowts/ace_event-3.0"; import { LuaArray, LuaObj, next, pairs, truthy, unpack } from "@wowts/lua"; import { find } from "@wowts/string"; import { AceModule } from "@wowts/tsaddon"; import { COMBATLOG_OBJECT_AFFILIATION_MINE, COMBATLOG_OBJECT_AFFILIATION_PARTY, COMBATLOG_O...
the_stack
import { isIn } from '@nestled/util'; import * as color from 'chalk'; import { execSync } from 'child_process'; import { CommanderStatic } from 'commander'; import * as getGitBranch from 'current-git-branch'; import * as emoji from 'node-emoji'; import { CONFIG_FILE_NAME } from '../constants'; import { hasCached, saveC...
the_stack
type FlagTarget = Element | Document | string; interface Event { /** Tells the browser that the default action should not be taken. The event will still continue to propagate up the tree. See Event.preventDefault() @see https://imba.io/events/event-modifiers#core-prevent */ αprevent(): void; /...
the_stack
import { IBundle, IStorages } from "@staticdeploy/core"; import { expect } from "chai"; import { omit } from "lodash"; function removeAssetsContent(bundle: IBundle): IBundle { return { ...bundle, assets: bundle.assets.map((asset) => omit(asset, "content")), }; } export default (storages: IStor...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/environmentSettingsMappers"; import * as Parameters from "../models/parameters"; import { ManagedLabsClientContext } from "../managedLabsClientCon...
the_stack
import {Mutable, Class, Equals, Values, Domain, Range, AnyTiming, LinearRange, ContinuousScale} from "@swim/util"; import {Affinity, MemberFastenerClass, Property, Animator} from "@swim/component"; import {BTree} from "@swim/collections"; import type {R2Box} from "@swim/math"; import {AnyFont, Font, AnyColor, Color} fr...
the_stack
import * as d3 from "d3"; import {WordLine} from "../vis/WordLine"; import {AttentionVis} from "../vis/AttentionVis"; import {BarList} from "../vis/BarList"; import {StateVis} from "../vis/StateVis"; import {CloseWordList} from "../vis/CloseWordList"; import {WordProjector} from "../vis/WordProjector"; import {SimpleEv...
the_stack
import { request, IRequestOptions, appendCustomParams } from "@esri/arcgis-rest-request"; import { IItem, IGroup } from "@esri/arcgis-rest-types"; import { getPortalUrl } from "../util/get-portal-url"; import { scrubControlChars } from '../util/scrub-control-chars'; import { IItemDataOptions, IItemRelationsh...
the_stack
import React, { useEffect } from "react"; import { connect, useConnect } from "frontity"; import { isArchive, isError } from "@frontity/source"; import { generateMemoizedWrapper, InternalWrapper, } from "../use-infinite-scroll/utils"; import { getLinksFromPages } from "./utils"; import { Packages, WrapperGenera...
the_stack
import 'reflect-metadata'; import { Collection, Before, After, MongoRepository, RepoEventArgs, RepoOperation, DatabaseClient } from '../src'; import * as mongoMock from 'mongo-mock'; mongoMock.max_delay = 0; // turn of fake async import { expect } from 'chai'; import * as faker from 'faker'; import { ObjectId } from 'm...
the_stack
import NoteToTransmit from "../lib/notes/interfaces/NoteToTransmit.js"; import { NoteId } from "../lib/notes/interfaces/NoteId.js"; import Stats from "../lib/notes/interfaces/GraphStats.js"; import { yyyymmdd } from "../lib/utils.js"; import * as config from "./config.js"; import compression from "compression"; import ...
the_stack
import {Watcher, RawMap, RawValue, RawEAV} from "./watcher"; import {v4 as uuid} from "uuid"; export interface Attrs extends RawMap<RawValue|RawValue[]|RawEAV[]> {} export class UIWatcher extends Watcher { protected static _addAttrs(id:string, attrs?: Attrs, eavs:RawEAV[] = []) { if(attrs) { for(let attr ...
the_stack
import { HttpStatus, Injectable } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { Feed, FeedDocument, FeedModel } from './entities/feed.entity'; import { DetailedFeed } from './types/detailed-feed.type'; import { Types, FilterQuery } from 'mongoose'; import _ from 'lodash'; import { Fail...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/billingAccountsMappers"; import * as Parameters from "../models/parameters"; import { BillingManagementClientContext } from "../billingManagementC...
the_stack
import * as chai from 'chai'; import * as path from 'path'; import * as fs from 'fs-extra'; import * as sinon from 'sinon'; import * as chaiAsPromised from 'chai-as-promised'; import { FabricWalletRegistryEntry } from '../../src/registries/FabricWalletRegistryEntry'; import { FabricWalletRegistry } from '../../src/regi...
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 chai from 'chai' import chaiAsPromised from 'chai-as-promised' import { AwsKmsMrkAwareSymmetricDiscoveryKeyringClass } from '../src/kms_mrk_discovery_keyring' import { NodeAlgorithmSuite, AlgorithmSuiteIdentifier, KeyringTraceFlag, NodeDecryptionMaterial, EncryptedDataKey, Keyring, Newable, } from ...
the_stack
import Long from 'long'; import {X86Unit} from '../X86Unit'; import {X87RegsStore, X87Tag} from './X87Regs'; import {X86InstructionSet} from '../X86InstructionSet'; import {X86OpcodesList} from '../X86CPU'; import {X86AbstractCPU} from '../types'; import { X87Error, X87ErrorCode, } from './X87Error'; /** * Float...
the_stack
import * as ESTree from 'estree'; import Scope from '../scope'; import { Value } from '../value'; import Signal from '../signal'; import Environment from '../environment'; import { slice, toString } from '../tool'; export function ExpressionStatement(env: Environment<ESTree.ExpressionStatement>) { return env.evalu...
the_stack
import { Activity, TurnContext, TurnContextStateCollection } from 'botbuilder-core'; import { Choice } from './choices'; import { Dialog, DialogInstance, DialogReason, DialogTurnResult, DialogTurnStatus, DialogEvent } from './dialog'; import { DialogSet } from './dialogSet'; import { PromptOptions } from './prompts'; i...
the_stack
import { isNullOrUndefined, isUndefined, extend, setValue, getValue, deleteObject, createElement } from '@syncfusion/ej2-base'; import { Gantt } from '../base/gantt'; import { TaskFieldsModel, EditSettingsModel, ResourceFieldsModel } from '../models/models'; import { IGanttData, ITaskData, ITaskbarEditedEventArgs, IVal...
the_stack
import uuid from "uuid/v4"; import { ChangeFeedIterator } from "../../ChangeFeedIterator"; import { ChangeFeedOptions } from "../../ChangeFeedOptions"; import { ClientContext } from "../../ClientContext"; import { getIdFromLink, getPathFromLink, isResourceValid, ResourceType } from "../../common"; import { extractParti...
the_stack
import {Align, AxisOrient, Orient, SignalRef} from 'vega'; import {isArray, isObject} from 'vega-util'; import {AxisInternal} from '../../axis'; import {isBinned, isBinning} from '../../bin'; import {PositionScaleChannel, X} from '../../channel'; import { DatumDef, isDiscrete, isFieldDef, PositionDatumDef, Po...
the_stack
import { AnimationClip, AnimationMixer, Euler, Matrix4, Quaternion, QuaternionKeyframeTrack, SkeletonHelper, Vector2, Vector3, VectorKeyframeTrack } from 'three' interface ShortOptions { names?: any hip?: string } interface RetargetOptions { useFirstFramePosition?: boolean fps?: number n...
the_stack
import { ancestorsOf, catchError, classOf, deepClone, deepMerge, isClass, isFunction, isInheritedFrom, Metadata, nameOf, prototypeOf, Store } from "@tsed/core"; import {DI_PARAM_OPTIONS, INJECTABLE_PROP} from "../constants/constants"; import {Configuration} from "../decorators/configuration"; im...
the_stack
import * as go from "../../release/go"; import * as gcs from "./GoCloudStorage"; import {Promise} from "es6-promise"; /** * <p>Class for saving / loading GoJS <a href="https://gojs.net/latest/api/symbols/Diagram.html">Diagram</a> <a href="https://gojs.net/latest/api/symbols/Model.html">models</a> * to / from Dropbox...
the_stack
import type Model from 'controller/model'; import type Preview from 'view/preview'; import type { FloatConfig } from 'controller/model'; import FloatingDragUI from 'view/floating/floating-drag-ui'; import { OS } from 'environment/environment'; import { deviceIsLandscape } from 'utils/dom'; import { isIframe } from 'uti...
the_stack
import { EOL } from "os"; import { DeviceAndroidDebugBridge } from "../android/device-android-debug-bridge"; import { TARGET_FRAMEWORK_IDENTIFIERS } from "../../constants"; import { exported } from "../../decorators"; import { IDictionary, IErrors, INet } from "../../declarations"; import { ICleanupService } from "../....
the_stack
import { fromAscii, toHex } from "@cosmjs/encoding"; import { Uint53 } from "@cosmjs/math"; import { Account, accountFromAny, AuthExtension, BankExtension, Block, BroadcastTxResponse, Coin, IndexedTx, isSearchByHeightQuery, isSearchBySentFromOrToQuery, isSearchByTagsQuery, QueryClient, SearchT...
the_stack
import { CalendarEvent, Config } from '../../../common/interface'; import { Context } from '../../../context/store'; import { DateTime } from 'luxon'; import { EVENT_TYPE } from '../../../common/enums'; import { disableTouchDragging } from '../../eventButton/EventButton.utils'; import { formatDateTimeToString, parseCss...
the_stack
import { Matrix4, matrixEquals4 } from './Matrix4' import { Vector3 } from './Vector3' import { Euler, EulerRotationOrder, eulerEquals } from './Euler' import { Quaternion } from './Quaternion' import { Float32BufferAttribute } from '../core/BufferAttribute' import * as MathUtils from './MathUtils' import { eps } from ...
the_stack
export type SearchOptions = { /** * Create a new query with an empty search query. */ readonly query?: string; /** * Allows a search for similar objects, but the query has to be constructed on your end and included alongside an empty query. * * The similarQuery should be made from the tags and key...
the_stack
import { Component, Element, Prop, h, Watch, EventEmitter, Event } from '@stencil/core'; import { select, event } from 'd3-selection'; import { max, min } from 'd3-array'; import { scaleBand, scaleLinear, scaleOrdinal } from 'd3-scale'; import { line } from 'd3-shape'; import { v4 as uuid } from 'uuid'; import 'd3-tran...
the_stack
import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; import {Role} from "./index"; /** * Provides an IAM instance profile. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const role = new aws.iam.Role...
the_stack
export const wrapper: XELib; /** * Handles are distinguished from `number`. * * They are only meaninful to xelib and one should not pass arbitrary numbers. */ export type Handle = number & { __xelib_handle__: never }; /** * A type which can either be a `Handle` type or `0`. * * In most cases `0` means "all file...
the_stack
* lodash (Custom Build) <https://lodash.com/> * Build: `lodash modularize exports="npm" -o ./` * Copyright jQuery Foundation and other contributors <https://jquery.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ash...
the_stack
import 'source-map-support/register' import { RelayProvider, GSNConfig } from '@opengsn/provider' import { decodeRevertReason, getEip712Signature } from '@opengsn/common' import { Address } from '@opengsn/common/dist/types/Aliases' import { TypedRequestData, GsnDomainSeparatorType, GsnRequestType } from '@opengsn...
the_stack
import { Vue, Component, Prop, Emit } from 'vue-property-decorator' import type { ProgressInfo } from 'mishiro-core' import ProgressBar from '../../vue/component/ProgressBar.vue' import check from './check' import { setLatestResVer, setMaster, setResVer } from './store' import MishiroIdol from './mishiro-idol' // impo...
the_stack
* This is a fork of the Karpathy's TSNE.js (original license below). * This fork implements Barnes-Hut approximation and runs in O(NlogN) * time, as opposed to the Karpathy's O(N^2) version. * * @author smilkov@google.com (Daniel Smilkov) */ /** * The MIT License (MIT) * Copyright (c) 2015 Andrej Karpathy * Pe...
the_stack
import { expect } from 'chai'; import { of, Observable } from 'rxjs'; import { concatWith, mergeMap, take } from 'rxjs/operators'; import { TestScheduler } from 'rxjs/testing'; import { NO_SUBS } from '../helpers/test-helper'; import { observableMatcher } from '../helpers/observableMatcher'; /** @test {concat} */ desc...
the_stack
import { ReaderFragment } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type Artwork_artworkBelowTheFold = { readonly additional_information: string | null; readonly description: string | null; readonly provenance: string | null; readonly exhibition_history: string | null; ...
the_stack
import * as jwt from 'jsonwebtoken'; import { usGovernmentAuthentication, authentication, v32Authentication, v31Authentication, } from '../../utils/constants'; import { createBotFrameworkAuthenticationMiddleware } from '../createBotFrameworkAuthentication'; const mockGetKey = jest.fn().mockResolvedValue(`open...
the_stack
// ----------------------------------------------------------------------------- interface AnimationList { [name: string]: Animation; }; class AnimationManager { /* tslint:disable:no-unused-variable */ static version = 1; /* tslint:enable:no-unused-variable */ mathDevice: MathDevice; // Meth...
the_stack
import { workspace, Selection } from 'vscode'; import { resetConfiguration, updateConfiguration } from "../util/configuration"; import { testCommand } from "../util/generic"; suite("Ordered list renumbering.", () => { suiteSetup(async () => { await resetConfiguration(); }); suiteTeardown(async () ...
the_stack
import { MongoClient, ObjectId, WithID } from "../deps.ts"; export type DBModule = Omit<Module, "name"> & { _id: string }; export type ScoredModule = DBModule & { search_score: number }; export interface Module { name: string; type: string; repo_id: number; owner: string; repo: string; description: string...
the_stack
* This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, run "npm run codegen" to regenerate this file. */ export interface CensysCertificatesData { validation?: { nss?: { paths?: { path?: string; [k: string]: unknown; }; /** ...
the_stack
import { Decoration } from './decoration' import { LUA_MULTRET, LuaEventMasks, LuaResumeResult, LuaReturn, LuaState, LuaThreadRunOptions, LuaTimeoutError, LuaType, PointerSize, } from './types' import { Pointer } from './pointer' import LuaTypeExtension from './type-extension' import...
the_stack
import { DataObject } from "@fluidframework/aqueduct"; import { IFluidObject, IFluidHandle, } from "@fluidframework/core-interfaces"; import { IEvent } from "@fluidframework/common-definitions"; import { SharedMap, ISharedMap } from "@fluidframework/map"; import type { IFluidDataStoreRuntime } from "@fluidframe...
the_stack
"use strict"; import { Range } from "vscode-languageserver"; import { Logger } from "../logger"; import { CSCodeError, CSCodemark, CSLocationArray, CSMarker, CSMarkerLocation, CSMarkerLocations, CSMe, CSMSTeamsProviderInfo, CSProviderInfos, CSReview, CSSlackProviderInfo, CSTeam, CSTeamProviderInfos } from ...
the_stack
import * as fs from "fs"; import { performance } from "perf_hooks"; import * as path from "path"; import chalk from "chalk"; import { TestContext, IWarning, IReporter } from "@as-pect/core"; import { IConfiguration, ICompilerFlags } from "./util/IConfiguration"; import glob from "glob"; import { collectReporter } from ...
the_stack
import { configure } from "mobx"; import { types, Instance } from "mobx-state-tree"; import { Field, Form, RepeatingForm, SubForm, converters } from "../src"; // "always" leads to trouble during initialization. configure({ enforceActions: "observed" }); test("setRaw with required ignore", () => { const M = types.mo...
the_stack
import { URLSearchParams } from './url-search-params'; // https://github.com/Polymer/URL var relative = Object.create(null); relative.ftp = 21; relative.file = 0; relative.gopher = 70; relative.http = 80; relative.https = 443; relative.ws = 80; relative.wss = 443; var relativePathDotMapping = Object.create(null); rel...
the_stack
import { ApiResourceScopeDTO } from '../entities/dtos/api-resource-allowed-scope.dto' import { ApiResourceSecretDTO } from '../entities/dtos/api-resource-secret.dto' import { ApiResourcesDTO } from '../entities/dtos/api-resources-dto' import { ApiScopeDTO } from '../entities/dtos/api-scope-dto' import { ApiScopeGroupDT...
the_stack
import {Oas20Document} from "../src/models/2.0/document.model"; import {OasLibraryUtils} from "../src/library.utils"; import {Oas30Document} from "../src/models/3.0/document.model"; import {OasAllNodeVisitor} from "../src/visitors/visitor.base"; import {OasNode} from "../src/models/node.model"; import {OasVisitorUtil} ...
the_stack
import { FixNamingScheme } from './FixNamingScheme'; import { GeoMath } from './GeoMath'; import { HoldDetails, HoldTurnDirection } from './HoldDetails'; import { RawDataMapper } from './RawDataMapper'; /** * Creates a collection of waypoints from a legs procedure. */ export class LegsProcedure { /** The current ...
the_stack
import { expect } from 'chai'; import { each, every } from '@phosphor/algorithm'; import { Message, MessageLoop } from '@phosphor/messaging'; import { BoxLayout, Widget } from '@phosphor/widgets'; class LogBoxLayout extends BoxLayout { methods: string[] = []; protected init(): void { super.init()...
the_stack
import { ScaleBand, ScaleLinear, ScaleTime } from 'd3-scale' import { CurveFactory, stackOffsetNone } from 'd3-shape' import React, { CSSProperties, RefObject } from 'react' import * as TSTB from 'ts-toolbelt' import { TooltipRendererProps } from './components/TooltipRenderer' export type ChartOptions<TDatum> = { d...
the_stack
import { Keyboard, Platform } from 'react-native'; import { runOnJS, useWorkletCallback } from 'react-native-reanimated'; import { clamp, snapPoint } from 'react-native-redash'; import { useBottomSheetInternal } from './useBottomSheetInternal'; import { ANIMATION_SOURCE, GESTURE_SOURCE, KEYBOARD_STATE, SCROLLAB...
the_stack
import * as chai from 'chai'; import castToType from 'fontoxpath/expressions/dataTypes/castToType'; import createAtomicValue from 'fontoxpath/expressions/dataTypes/createAtomicValue'; import { ValueType } from 'fontoxpath/expressions/dataTypes/Value'; import DateTime from 'fontoxpath/expressions/dataTypes/valueTypes/Da...
the_stack
import { EOL } from 'os' import _ from 'lodash' import wu from 'wu' import { getChangeElement, isInstanceElement, AdapterOperationName, Progress } from '@salto-io/adapter-api' import { fetch as apiFetch, FetchFunc, FetchChange, FetchProgressEvents, StepEmitter, PlanItem, FetchFromWorkspaceFunc, loadLocalWorkspace, fe...
the_stack
import UPlot, { Options as UPlotOptions, AlignedData as UPlotData, Plugin, Series, DrawOrderKey, SyncPubSub, } from 'uplot'; import LegendPlugin from './plugins/legend/legend'; import tooltipPlugin, {TooltipPlugin} from './plugins/tooltip/tooltip'; import markersPlugin from './plugins/markers';...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AccessPolicies } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { VideoAnalyzerManagementClient } from ".....
the_stack
import { ChangeLogItem, ChangeLogKind, ContentProvider, Header, Image, Sponsor, IssueKind, SupportChannel, SponsorProvider, SocialMediaProvider } from "../../vscode-whats-new/src/ContentProvider"; export class ProjectManagerContentProvider implements ContentProvider { public provideHeader(logoUrl: string): Header...
the_stack
'use strict'; import {TPromise} from 'vs/base/common/winjs.base'; import {WorkbenchShell, enableBrowserHack, BrowserHack} from 'vs/workbench/electron-browser/shell'; import {IOptions} from 'vs/workbench/common/options'; import {domContentLoaded} from 'vs/base/browser/dom'; import errors = require('vs/base/common/error...
the_stack
import { OnAfterSettingsUpdateTopicParams, OnBeforeSettingsUpdateTopicParams, PageBuilderContextObject, PageBuilderStorageOperations, PageSpecialType, PbContext, Settings, SettingsCrud, SettingsStorageOperationsCreateParams, SettingsStorageOperationsGetParams, SettingsUpdateT...
the_stack
import { Injectable, ElementRef } from "@angular/core"; import { BehaviorSubject, Subject } from "rxjs"; import { TransformMatrixModel, TrackModel, SelectionRectModel, PanelInfoModel } from "./model"; import { PanelWidgetModel } from "./panel-widget/model"; import { cloneDeep, get } from "lodash"; import { CombinationW...
the_stack
'use strict'; import { inject, injectable } from 'inversify'; import { cloneDeep } from 'lodash'; import * as path from 'path'; import { QuickPick, QuickPickItem } from 'vscode'; import { IApplicationShell, ICommandManager, IWorkspaceService } from '../../../../common/application/types'; import { Commands, Octi...
the_stack
import type { _Object } from "@aws-sdk/client-s3"; import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, HeadObjectCommandOutput, ListObjectsV2Command, ListObjectsV2CommandInput, PutObjectCommand, S3Client, } from "@aws-sdk/client-s3"; import { Upload } from "@aws-sdk/l...
the_stack
import { toQueryString } from "../../utils"; import { SdkClient } from "../common/sdk-client"; import { DataExchangeModels } from "./data-exchange-models"; import { dataExchangeTemplate, putFileTemplate } from "./data-exchange-template"; /** * * Offers data transfer operations as part of the Analytics package, * ...
the_stack
class Afl { /** * Field containing the `Module` object for `afl-frida-trace.so` (the FRIDA mode * implementation). */ public static module: Module = Process.getModuleByName("afl-frida-trace.so"); /** * This is equivalent to setting a value in `AFL_FRIDA_EXCLUDE_RANGES`, * it takes as arguments a ...
the_stack
import { getLogger } from 'pinus-logger'; import {MonitorAgent} from './monitor/monitorAgent'; import { EventEmitter } from 'events'; import { MasterAgent, MasterAgentOptions } from './master/masterAgent'; import * as schedule from 'pinus-scheduler'; import * as protocol from './util/protocol'; import * as utils from '...
the_stack
import * as React from 'react'; import { cloneElement, Component, createElement, CSSProperties } from 'react'; import raf, { cancel as caf } from 'raf'; import css from 'dom-css'; // import { ScrollValues, ScrollbarsProps, StyleKeys } from './types'; import { getFinalClasses, getScrollbarWidth, returnFalse, get...
the_stack
import * as path from 'path'; import * as npmRun from 'npm-run'; import * as assert from "yeoman-assert"; import * as lodash from 'lodash'; import * as helpers from "yeoman-test"; export const DEPENDENCIES = [ '../../../generators/tab', '../../../generators/bot', '../../../generators/connector', '../../../gen...
the_stack
import test from 'ava'; import * as fse from 'fs-extra'; import { join } from '../src/path'; import { getRandomPath } from './helper'; import { FILTER, Repository, StatusEntry } from '../src/repository'; import { IgnoreManager } from '../src/ignore'; function createFiles(workdir : string, ...names : string[]) { fo...
the_stack
import React, { useCallback, useEffect, useMemo, useRef, ReactNode } from 'react'; import noop from 'src/utils/noop'; export type Key = number | string; export type KeyMap = Map<Key, boolean>; export type ChildrenMap = Map<Key, ReactNode>; export interface GroupContext { selectedKeyMap?: KeyMap; selectedKeys?...
the_stack
import { right } from '../../core/shared/either' import { emptyComments, jsxAttributesEntry, jsxAttributeValue, jsxElementWithoutUID, } from '../../core/shared/element-template' import { importAlias, importDetails } from '../../core/shared/project-file-types' import { DispatchPriority, EditorAction, EditorDispa...
the_stack
import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import * as React from 'react'; import { Employee } from 'domain/Employee'; import { getRouterProps } from 'util/BookmarkableTestUtils'; import { Button, FileUpload, TextInput } from '@patternfly/react-core'; import { Map } from 'immutable'; import ...
the_stack
import { assert } from 'chai'; import * as fs from 'fs'; import * as path from 'path'; import * as ts from 'typescript'; const testFilename = path.join(__dirname, '..', 'test.ts'); function getDiagnostics(code: string) { fs.writeFileSync(testFilename, code); const options: ts.CompilerOptions = { modu...
the_stack
import {createCategory as createCategoryRedux, moveChannelsToCategory} from 'mattermost-redux/actions/channel_categories'; import {General} from 'mattermost-redux/constants'; import {CategoryTypes} from 'mattermost-redux/constants/channel_categories'; import {getCategory, makeGetChannelIdsForCategory} from 'mattermost-...
the_stack
// This component can only be used in the context of an exploration. /** * NOTE: These are some hacky behavior in the component class. Apologies in * advance if you were stuck on one of these for a long time. * * 1. Whenever changing a property of the data property of this component * class, please make sure the o...
the_stack
import { Nes } from "./nes"; //for debugging //don't rely on this for functionality, always use getFlag() export class DEBUGVIEWERFL { C: number = 0; Z: number = 0; I: number = 0; D: number = 0; B: number = 0; U: number = 0; V: number = 0; N: number = 0; } export class I...
the_stack
* @title: 3D Physics rigid body constraints * @subTitle: How to create physical constraints for physics rigid bodies. * @description: * This sample shows how to create each of the physics constraints (point to point, hinge, slider, cone twist, * 6 degrees of freedom). * Each object in the scene can be manipulated ...
the_stack
import { setBlockType, toggleMark, wrapIn, chainCommands, exitCode, } from "prosemirror-commands"; import { MarkType, NodeType, Node as ProsemirrorNode, ResolvedPos, } from "prosemirror-model"; import { EditorState, Transaction, Plugin, Selection } from "prosemirror-state"; import { ...
the_stack
import { basename, dirname, globToRegExp, join } from "https://deno.land/std@0.144.0/path/mod.ts"; import { JSONC } from "https://deno.land/x/jsonc_parser@v0.0.1/src/jsonc.ts"; import { createGenerator, type UnoGenerator } from "../lib/@unocss/core.ts"; import { findFile } from "../lib/fs.ts"; import log from "../lib/l...
the_stack
import React, { useEffect, useState, useRef } from 'react' import { useRouter } from 'next/router' import Head from 'next/head' import intersection from 'lodash/intersection' import NextLink from 'next/link' import { Text, Stack, Box, Link, Breadcrumbs, AccordionCard, TopicCard, FocusableBox, Navigati...
the_stack
export function script(options?: script.Options): script.Script; declare namespace script { interface Options { /** * Determines if execution of tests should be delayed until the CLI runs them explicitly. * * @default true */ schedule?: boolean; /** ...
the_stack
import chroma from 'chroma-js' import { v4 as UUID } from 'uuid' import { PackageType } from '../core/shared/project-file-types' import { AnyJson, JsonMap } from '../missing-types/json' import { JsonSchema, PropSchema } from '../missing-types/json-schema' import { ControlStyles } from '../components/inspector/common/co...
the_stack
import * as assert from 'assert'; import isolate from '@cycle/isolate'; import xs, {Stream, MemoryStream} from 'xstream'; import fromDiagram from 'xstream/extra/fromDiagram'; import delay from 'xstream/extra/delay'; import concat from 'xstream/extra/concat'; import {setup} from '@cycle/run'; import { h, svg, div,...
the_stack
import React from "react" import ReactDOM from "react-dom" import Head from "@docusaurus/Head" import * as ReactKakaoMapsSdk from "react-kakao-maps-sdk" import clusterPositionsData from "./clusterPositions.json" const AddMapControlStyle = () => ( <Head> <style>{` .map_wrap {position:relative;overflow:hidden;...
the_stack
import React, { useState } from "react"; import { Table, TableBody, TableCell, TableContainer, TableHead, TableRow, TableSortLabel, } from "@material-ui/core"; import { createStyles, makeStyles, Theme } from "@material-ui/core/styles"; import { useHistory, useParams } from "react-router-dom"; import { u...
the_stack
import { EChartsType, registerMap } from '../../../../src/echarts'; import { GeoJSON } from '../../../../src/coord/geo/geoTypes'; import { createChart } from '../../core/utHelper'; describe('api/converter', function () { const DELTA = 1E-3; function pointEquals(p1: number | number[], p2: number | number[]):...
the_stack
import { ComponentPath, HierarchyPath, isPropertyPath, TargetPath } from './target-path'; import { IValueProxyFactory } from './value-proxy'; import * as easing from './easing'; import { BezierControlPoints } from './bezier'; import { CompactValueTypeArray } from '../data/utils/compact-value-type-array'; import { seria...
the_stack
import * as React from "react"; import { Logger, LogLevel } from "@pnp/logging"; import isEqual from "lodash/isEqual"; import filter from "lodash/filter"; import includes from "lodash/includes"; import concat from "lodash/concat"; import uniqBy from "lodash/uniqBy"; import sortBy from "lodash/sortBy"; import find from...
the_stack
import { join } from 'aurelia-path'; import { PLATFORM } from 'aurelia-pal'; import deepExtend from './deep-extend'; import { WindowInfo } from './window-info'; export class Configuration { private environment: string = 'default'; private environments: string[] | null = null; private directory: str...
the_stack
import { ClassSchema, getClassSchema, PropertySchema } from './model'; import { TypeConverterCompiler } from './serializer-compiler'; import { ClassType } from '@deepkit/core'; import { getClassToXFunction, getPartialClassToXFunction, getPartialXToClassFunction, getPropertyClassToXFunction, getPrope...
the_stack
import { RepositoryLocationLoadStatus, InstigationType, InstigationStatus, PipelineRunStatus, InstigationTickStatus } from "./../../types/globalTypes"; // ==================================================== // GraphQL query operation: InstanceSensorsQuery // ==================================================== expor...
the_stack
import { TreeMap } from '../../../src/treemap/treemap'; import { TreeMapTooltip } from '../../../src/treemap/user-interaction/tooltip'; import { MouseEvents } from '../base/events.spec'; import { ILoadedEventArgs, ITreeMapEventArgs } from '../../../src/treemap/model/interface'; import { createElement, remove } from '@s...
the_stack
import {Component, OnDestroy} from '@angular/core'; import {MatDialog, MatDialogConfig} from '@angular/material/dialog'; import {MatSnackBar} from '@angular/material/snack-bar'; import {ReplaySubject} from 'rxjs'; import {concatMap, filter, take, takeUntil} from 'rxjs/operators'; import {AdvancedActionDialogComponent}...
the_stack
const FIXTURES = "network"; import { existsSync } from "fs"; import * as cheerio from "cheerio"; import * as debug from "debug"; import { diffJson as diff } from "diff"; import { back as nockBack } from "nock"; import { default as fetch } from "node-fetch"; import { _getBody as getBody } from ".."; import { _getSche...
the_stack
import { ElemID } from '@salto-io/adapter-api' export const HUBSPOT = 'hubspot' export const RECORDS_PATH = 'Records' export const TYPES_PATH = 'Types' export const SUBTYPES_PATH = 'Subtypes' export const NAME = 'name' const LABEL = 'label' const PROPERTY_OPTIONS = 'options' const DISPLAYORDER = 'displayOrder' const C...
the_stack