text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import React, { useCallback, useRef, ReactNode, HTMLProps, MutableRefObject, CSSProperties, } from 'react'; import { useTable, usePagination, useSortBy, useGlobalFilter, PluginHook, TableOptions, FilterType, IdType, Row, } from 'react-table'; import { matchSorter, rankings } from 'match-so...
the_stack
import { expect } from 'chai'; import { $, $$ } from 'common-sk/modules/dom'; import sinon from 'sinon'; import { setUpElementUnderTest, eventPromise, noEventPromise, eventSequencePromise, expectQueryStringToEqual, setQueryString, } from './test_util'; describe('test utilities', () => { describe('setUpEl...
the_stack
import { expect } from "chai"; import TestUtils from "../../../../TestUtils"; import { FlatGridItemType, IMutableCategorizedPropertyItem, IMutableFlatGridItem, IMutableGridCategoryItem } from "../../../../../components-react/propertygrid/internal/flat-items/MutableFlatGridItem"; import { FlatGridTestUtils as GridUtils ...
the_stack
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, forwardRef, Host, HostListener, Inject, Injector, Input, NgZone, OnDestroy, OnInit, Output, QueryList, Renderer2, ViewChildren, ViewEncapsulation, Vie...
the_stack
import * as assert from 'assert'; import { mock } from 'vs/base/test/common/mock'; import { ICodeEditor } from 'vs/editor/browser/editorBrowser'; import { Position } from 'vs/editor/common/core/position'; import { Selection } from 'vs/editor/common/core/selection'; import { LanguageFeaturesService } from 'vs/editor/com...
the_stack
import chalk from 'chalk' import { Argv } from 'yargs' import yargs from 'yargs/yargs' import * as cli from './cli' import fromArguments from './config' import { Converter, ConvertedCallback, ConvertType } from './converter' import { CLIError, error, isError } from './error' import { File, FileType } from './file' impo...
the_stack
import BN from "bn.js" import { Buffer } from "buffer/" import AvalancheCore from "../../avalanche" import BinTools from "../../utils/bintools" import { UTXO, UTXOSet } from "./utxos" import { AVMConstants } from "./constants" import { KeyChain } from "./keychain" import { Tx, UnsignedTx } from "./tx" import { PayloadB...
the_stack
export interface ParserOptions { /** Silently fail on parse errors */ silent?: boolean; /** * The path to the file containing css. * Makes errors and source maps more helpful, by letting them know where code comes from. */ source?: string; } /** * Error thrown during parsing. */ export interface Par...
the_stack
import { bySport, PHASE } from "../../common"; import type { DiscriminateUnion, DraftPickSeason, EventBBGM, MinimalPlayerRatings, Phase, Player, PlayerContract, PlayerStats, UpdateEvents, ViewInput, } from "../../common/types"; import { player, team } from "../core"; import { idb } from "../db"; import { g, g...
the_stack
import { getVoidLogger } from '@backstage/backend-common'; import { ConfigReader } from '@backstage/config'; import { Client, errors } from '@elastic/elasticsearch'; import Mock from '@elastic/elasticsearch-mock'; import { ElasticSearchConcreteQuery, decodePageCursor, ElasticSearchSearchEngine, encodePageCursor...
the_stack
import * as Api from './api/v2'; import * as ApiV1 from './api/v1'; import * as ActionsApi from '../actionssdk/api/v2'; import { Conversation, ConversationBaseOptions, ConversationOptionsInit, } from '../actionssdk'; import {ProtoAny, JsonObject} from '../../common'; import {Contexts, ContextValues, Parameters} f...
the_stack
import assert from "assert"; import * as vscode from "vscode"; import { Position, Range, Selection } from "vscode"; import { moveCommandIds } from "../../../../commands/move"; import { EmacsEmulator } from "../../../../emulator"; import { KillRing } from "../../../../kill-yank/kill-ring"; import { assertCursorsEqual,...
the_stack
import { Config, ConfigReader } from '@backstage/config'; import { JsonObject } from '@backstage/types'; import { Knex } from 'knex'; import { merge, omit } from 'lodash'; import { mergeDatabaseConfig } from './config'; import { createDatabaseClient, createNameOverride, createSchemaOverride, ensureDatabaseExist...
the_stack
import _ = require('lodash'); import { expect } from 'chai'; import * as Docker from 'dockerode'; import { docker } from '../src/lib/docker-utils'; import * as sinon from 'sinon'; import * as config from '../src/config'; import * as firewall from '../src/lib/firewall'; import * as logger from '../src/logger'; import ...
the_stack
import { readFileSync } from 'fs'; import { buildSchema, printSchema, GraphQLObjectType, assertInputObjectType } from 'graphql'; import { GraphbackCoreMetadata, printSchemaWithDirectives, GraphbackPluginEngine, metadataMap, GraphbackCRUDGeneratorConfig } from '@graphback/core'; import { SchemaCRUDPlugin } from '../src...
the_stack
import { useState, useContext, useEffect } from 'react'; import { useWeb3React } from '@web3-react/core'; import { Web3Provider } from '@ethersproject/providers'; import { TokenInfo } from 'types'; import { Contract } from '@ethersproject/contracts'; import { MaxUint256 } from '@ethersproject/constants'; import { parse...
the_stack
import { $$log } from "./debug"; let WINDOW_START = 0x3BE; let WINDOW_SIZE = 1024; let MIN_MATCH_LEN = 3; // var MAX_MATCH_LEN = 0x42; /* Mario Party N64 compression type 01 * * This type of compression was used in all three titles, though was the * exclusive type available in the original title. It is similar...
the_stack
const jsonldRdfaParser = require("jsonld-rdfa-parser"); const jsonldLib = require("jsonld"); // tslint:enable:no-var-requires jsonldLib.registerRDFParser("text/html", jsonldRdfaParser); import * as assert from "assert"; import * as fs from "fs"; import { ClientRequestArgs } from "http"; import * as http from "http"; im...
the_stack
import { IncomingMessage, ServerResponse } from 'http' import httpProxy from 'http-proxy' import PacProxyAgent from 'pac-proxy-agent' import consola from 'consola' import chalk from 'chalk' import path from 'path' import { renderTemplate } from '@portless/template' import { PortlessConfig } from '@portless/config' impo...
the_stack
import 'hammerjs'; import 'mousetrap'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import Spy = jasmine.Spy; import { DebugElement } from '@angular/core'; import { AccessibilityConfig } from '../../model/accessibility.interface'; import { KS_DEFAULT_ACCESSIBILITY_CONFIG } from '../../component...
the_stack
import {scalar, Tensor, tensor1d, tensor2d, test_util} from '@tensorflow/tfjs-core'; // tslint:disable-next-line: no-imports-from-dist import * as tfOps from '@tensorflow/tfjs-core/dist/ops/ops_for_converter'; import {ExecutionContext} from '../../executor/execution_context'; import {GraphExecutor} from '../../executo...
the_stack
import loadData from "../../assets/mock-data/curation/ingestion.data"; import curateData from "../../assets/mock-data/curation/flows.data"; import stepsData from "../../assets/mock-data/curation/steps.data"; import commonData from "../../assets/mock-data/curation/common.data"; import systemInfoData from "../../assets/m...
the_stack
import * as React from 'react'; import { Tree } from 'antd'; import { AntTreeNodeDropEvent } from 'antd/lib/tree/Tree'; import { ReactElement } from 'react'; import { TreeProps, AntTreeNodeCheckedEvent } from 'antd/lib/tree'; import { EventDataNode } from 'rc-tree/lib/interface'; import OlMap from 'ol/Map'; imp...
the_stack
import { safeLoad } from 'js-yaml'; import { resolve, join } from 'path'; import * as Client from 'fabric-client'; import { ensureDir, ensureFile, readdir, readFile } from 'fs-extra'; import { ClientConfig, TxResult, TxListenerResult } from './models'; export class ClientHelper { public client: Client; public use...
the_stack
"use strict"; // uuid: 9beb242e-6cc6-4be9-8728-7bd56787152d // ------------------------------------------------------------------------ // Copyright (c) 2018 Alexandre Bento Freire. All rights reserved. // Licensed under the MIT License+uuid License. See License.txt for details // -------------------------------------...
the_stack
import * as coreClient from "@azure/core-client"; export type DeliveryRuleConditionUnion = | DeliveryRuleCondition | DeliveryRuleRemoteAddressCondition | DeliveryRuleRequestMethodCondition | DeliveryRuleQueryStringCondition | DeliveryRulePostArgsCondition | DeliveryRuleRequestUriCondition | DeliveryRuleR...
the_stack
import { computed, onMounted, Ref, ref, UnwrapRef, watch } from 'vue'; import { addDays, addMonths, getDay, getHours, getISOWeek, getMinutes, getMonth, getSeconds, getYear } from 'date-fns'; import { ICalendarDay, IMarker, InternalModuleValue, UseCalendar, VueEmit } from '../../interfaces'; import { getNextMonthYe...
the_stack
export * from 'libsodium-wrappers'; import { KeyPair, StateAddress, StringKeyPair, StringOutputFormat, Uint8ArrayOutputFormat, } from 'libsodium-wrappers'; export const crypto_auth_hmacsha256_BYTES: number; export const crypto_auth_hmacsha256_KEYBYTES: number; export const crypto_auth_hmacsha512_B...
the_stack
import CLASS from './class' import { ChartInternal } from './core' import { isDefined, isEmpty, getOption } from './util' ChartInternal.prototype.initLegend = function() { var $$ = this $$.legendItemTextBox = {} $$.legendHasRendered = false $$.legend = $$.svg.append('g').attr('transform', $$.getTranslate('lege...
the_stack
import { expect } from "chai"; import { Observable } from "rxjs/internal/Observable"; import * as sinon from "sinon"; import * as moq from "typemoq"; import { IModelConnection } from "@itwin/core-frontend"; import { PropertyRecord, PropertyValueFormat } from "@itwin/appui-abstract"; import { DelayLoadedTreeNodeItem, Mu...
the_stack
import { Analyzer, StandardAnalyzer, analyze } from "./analyzer/analyzer"; /** * Converts a string into an array of code points. * @param str - the string * @returns {number[]} to code points * @hidden */ export function toCodePoints(str: string): number[] { const r = []; for (let i = 0; i < str.length;) { ...
the_stack
import { Injectable } from '@angular/core'; import { CoreError } from '@classes/errors/error'; import { CoreSitePublicConfigResponse } from '@classes/site'; import { CoreApp } from '@services/app'; import { CoreSites } from '@services/sites'; import { CoreUtils } from '@services/utils/utils'; import { makeSingleton } f...
the_stack
import { ParseError } from ".."; import { ArrayUtils, Assert, Result, ResultUtils, TypeScriptUtils } from "../../common"; import { Ast, AstUtils, Constant, Token } from "../../language"; import { NodeIdMapUtils } from "../nodeIdMap"; import { Parser, ParseStateCheckpoint } from "../parser"; import { ParseState, ParseSt...
the_stack
namespace justEat { /** * A class representing the handler for Apple Pay JS. */ export class ApplePay { public merchantIdentifier: string; public storeName: string; private applePayVersion: number; private countryCode: string; private currencyCode: string; ...
the_stack
import {createStore, createEvent, sample, Store, Event} from 'effector' const typecheck = '{global}' describe('sample(config)', () => { describe('sample({source, filter: store})', () => { it('return new event (should pass)', () => { const trigger = createEvent<number>() const allow = createStore<bool...
the_stack
import { h, ref, toRef, computed, watch, nextTick, defineComponent, Transition, PropType, CSSProperties, ComponentPublicInstance } from 'vue' import { VBinder, VTarget, VFollower, FollowerPlacement, FollowerInst as _FollowerInst } from 'vueuc' import { useIsMounted, useMergedState } from...
the_stack
'use strict'; import * as fs from 'fs'; import * as path from 'path'; import { alignedLength, guessFileExtension, getBuffer } from './exportProvider'; function readSourceFile(sourceFilename: string): Buffer { if (typeof sourceFilename == 'undefined') { throw new Error('Input file undefined.'); } if...
the_stack
import { AfterContentInit, AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, ElementRef, EventEmitter, Input, NgZone, OnDestroy, Output, QueryList, ViewEncapsulation } from '@angular/core'; import {coerceBooleanProperty} from '@angular/cdk...
the_stack
import { CompilerContext, isArray, isIterable, isObject, toFastProperties } from '@deepkit/core'; import { binaryBigIntAnnotation, BinaryBigIntType, buildFunction, callExtractedFunctionIfAvailable, collapsePath, ContainerAccessor, copyAndSetParent, createReference, excludedAnnotation...
the_stack
// Copyright (c) 2019 Erin Catto // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, dist...
the_stack
import { Component, ElementRef, KeyValueDiffers, IterableDiffers, ChangeDetectionStrategy, ChangeDetectorRef, Renderer2 } from '@angular/core'; import { IgGridBase } from './iggridbase'; @Component({ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'ig-grid', template: '<ng-content></ng-content>'...
the_stack
import path from 'path'; import gulp, { TaskFunction } from 'gulp'; import gulpHbsRuntime from '../plugins/gulp-hbs-runtime'; import { Logger } from '../common/logger'; import { PackerOptions } from '../model/packer-options'; import { TestEnvironment } from '../model/test-environment'; /** * Parse script transpiler...
the_stack
import { HttpClient, HttpEvent, HttpEventType, HttpRequest, HttpResponse } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { cookError, isSearchBot, safeStringifyError } from '@app/shared/utilities'; import { environment as env } from '@env/environment'; import { del, get, keys, set } fr...
the_stack
import { Injectable } from '@angular/core'; import { CoreSyncBlockedError } from '@classes/base-sync'; import { CoreNetworkError } from '@classes/errors/network-error'; import { CoreCourseActivitySyncBaseProvider } from '@features/course/classes/activity-sync'; import { CoreCourse } from '@features/course/services/cou...
the_stack
import { Enum, Field, Method, NamespaceBase, OneOf, Root, Service, Type, util } from 'protobufjs' import { EnumOptions, FieldOptions, FileOptions, IDescriptorProto, IEnumDescriptorProto, IFieldDescriptorProto, IFileDescriptorSet, IMethodDescriptorProto, IOneofDescriptorProto, IServiceDescriptorProto...
the_stack
import { ExclamationCircleOutlined, PlusOutlined } from '@ant-design/icons'; import { ModalForm, ProFormDependency, ProFormSelect, ProFormSwitch, ProFormText } from '@ant-design/pro-form'; import { PageContainer } from '@ant-design/pro-layout'; import ProTable, { ActionType, ProColumns } from '@ant-design/pro-table'; ...
the_stack
import * as jsonx from './index'; import * as _jsonxProps from './props'; import { getComputedProps, } from './props'; import mochaJSDOM from 'jsdom-global'; import chai from 'chai'; import sinon from 'sinon'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactDOMElements from 'react-dom-f...
the_stack
import { types } from "mobx-state-tree"; import { Decimal } from "decimal.js-light"; import { ConversionError, ConversionValue, Field, Form, converters, StateConverterOptionsWithContext, FieldAccessor, } from "../src"; import { ConverterOrFactory, makeConverter } from "../src/converter"; const baseOption...
the_stack
* This file was automatically generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually. * In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator **/ gapi.load('client', () => { /** now we can use gapi.client */ ...
the_stack
import { IInputs, IOutputs } from "./generated/ManifestTypes"; export class TableControl implements ComponentFramework.StandardControl<IInputs, IOutputs> { // Flag to track if control is in full screen mode or not private _isFullScreen: boolean; // Reference to HTMLTableElement rendered by control private _tableE...
the_stack
import { isLeft } from "fp-ts/lib/Either" import { pipe } from "fp-ts/lib/function" import { TaskEither, tryCatch, chain, right, left } from "fp-ts/lib/TaskEither" import * as qjs from "quickjs-emscripten" import { marshalObjectToVM } from "./utils" /** * The response object structure exposed to the test script */ e...
the_stack
import map, { Delegate, MatchCallback, Route } from "./route-recognizer/dsl"; import { encodePathSegment, normalizePath, normalizeSegment } from "./route-recognizer/normalizer"; import { createMap } from "./route-recognizer/util"; export { Delegate, MatchCallback } from "./route-recognizer/dsl"; const enum CHARS...
the_stack
import { CoreSites } from '@services/sites'; import { CoreTextUtils } from '@services/utils/text'; import { CoreH5P } from '@features/h5p/services/h5p'; import { CoreH5PCore, CoreH5PDisplayOptionBehaviour, CoreH5PContentDependencyData, CoreH5PLibraryData, CoreH5PLibraryAddonData, CoreH5PContentD...
the_stack
import React, { useContext, useEffect, useRef, useState } from "react"; import { useNavigate } from "react-router-dom"; import { useActor } from "@xstate/react"; import ReCAPTCHA from "react-google-recaptcha"; import { Button } from "components/ui/Button"; import { OuterPanel, Panel } from "components/ui/Panel"; impo...
the_stack
import * as React from 'react'; import { IPropertyFieldFontPickerPropsInternal } from './PropertyFieldFontPicker'; import { Label } from 'office-ui-fabric-react/lib/Label'; import { Dropdown, IDropdownOption } from 'office-ui-fabric-react/lib/Dropdown'; import { Async } from 'office-ui-fabric-react/lib/Utilities'; impo...
the_stack
import { AuthClientErrorCode, FirebaseAuthError, ErrorInfo } from '../utils/error'; import * as util from '../utils/index'; import * as validator from '../utils/validator'; import { DecodedToken, decodeJwt, JwtError, JwtErrorCode, EmulatorSignatureVerifier, PublicKeySignatureVerifier, ALGORITHM_RS256, SignatureVeri...
the_stack
import { } from "jquery"; import { CommunityData, GraphEdge, GraphNode, GSON, InitData, LoadGraphOption, LoadGraphOptionCallback, NodesEdges, PAIR, QUERY_RESULTS, RELATION_PATH } from '../types'; import { Utils } from '../utils'; import { GraphService } from './service'; export clas...
the_stack
import {Constants} from "../../../../scripts/constants"; import {ClipperState} from "../../../../scripts/clipperUI/clipperState"; import {ClipMode} from "../../../../scripts/clipperUI/clipMode"; import {Status} from "../../../../scripts/clipperUI/status"; import {RegionPreview} from "../../../../scripts/clipperUI/com...
the_stack
import Panel from '@playcanvas/pcui/Panel/component'; // @ts-ignore: library file import import Container from '@playcanvas/pcui/Container/component'; // @ts-ignore: library file import import BooleanInput from '@playcanvas/pcui/BooleanInput/component'; // @ts-ignore: library file import import Label from '@playcanvas/...
the_stack
'use strict'; import * as fs from 'fs'; import * as path from 'path'; import * as _ from 'lodash'; import {Tabletojson as tabletojson} from '../lib/Tabletojson'; describe('TableToJSON Local', function () { let html = ''; let noTables = ''; beforeAll(() => { html = fs.readFileSync(path.resolve(__d...
the_stack
import type {Class} from "@swim/util"; import {Affinity, MemberFastenerClass} from "@swim/component"; import type {Trait} from "@swim/model"; import type {View} from "@swim/view"; import type {HtmlView} from "@swim/dom"; import type {Graphics} from "@swim/graphics"; import {Controller, TraitViewRef, TraitViewController...
the_stack
// FP Interfaces interface CurriedFn1<A, R> { <A>(a: A): R } interface CurriedFn2<A, B, R> { <A>(a: A): CurriedFn1<B, R> <A, B>(a: A, b: B): R } interface CurriedFn3<A, B, C, R> { <A>(a: A): CurriedFn2<B, C, R> <A, B>(a: A, b: B): CurriedFn1<C, R> <A, B, C>(a: A, b: B, c: C): R } interface CurriedFn4<A,...
the_stack
import { Framebuffer, Texture2D, isWebGL2, readPixelsToArray, cssToDeviceRatio, cssToDevicePixels } from '@luma.gl/core'; import GL from '@luma.gl/constants'; import PickLayersPass, {PickingColorDecoder} from '../passes/pick-layers-pass'; import {getClosestObject, getUniqueObjects, PickedPixel} from './pick...
the_stack
import * as fs from "fs"; import * as path from "path"; import { CancellationToken, Command, CompletionContext, CompletionItem, CompletionItemKind, CompletionItemProvider, Position, Range, SnippetString, TextDocument, Uri, workspace, WorkspaceConfiguration } from "vscode"; import { AttributeQuoteType, Attributes, Inclu...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { class MailboxTrackingFolderApi { /** * DynamicsCrm.DevKit MailboxTrackingFolderApi * @param entity The entity object */ constructor(entity?: any); /** * Get the value of alias * @param alias the alias value * @param isMult...
the_stack
import Boom from '@hapi/boom'; import TwindTypography from '@twind/typography'; import { htmlEscape } from 'escape-goat'; import jsesc from 'jsesc'; import * as React from 'react'; import { renderToString } from 'react-dom/server'; import * as Markup from 'react-helmet-async'; import * as ReactQuery from 'react-query';...
the_stack
module VORLON { export class Tools { public static QueryString () { // This function is anonymous, is executed immediately and // the return value is assigned to QueryString! var query_string = {}; var query = window.location.search.substring(1); ...
the_stack
// clang-format off import {assertNotReached} from 'chrome://resources/js/assert.m.js'; import {flush} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'; import {AutofillManagerProxy, PasswordEditDialogElement, PasswordListItemElement, PasswordMoveMultiplePasswordsToAccountDialogElement, PasswordsEx...
the_stack
import '@/style/masonry.less' import { CONSTANTS } from '@/util/common' import Exception from '@/components/Exception' import PageTitle from '@/components/PageTitle' import applicationModel from '@/models/application/model' import applicationService from '@/models/application/service' import { connect } from '@/util/s...
the_stack
import { CopyOutlined, DeleteOutlined, PlusOutlined, RedoOutlined } from '@ant-design/icons'; import React, { useEffect, useState } from 'react'; import * as QueryString from 'query-string'; import { useLocation } from 'react-router'; import { Button, Empty, Image, message, Modal, Pagination, Tooltip, Typography } from...
the_stack
import {IApp} from '../../../IApp'; import {SoundCloudAPIResponse} from './SoundCloudAPIResponse'; import {SoundCloudAudioType} from './SoundCloudAudioType'; declare var App: IApp; declare var SC: any; export class SoundCloudAPI { static _QueryReturns: number; static QueryTotal: number; static QueryList:...
the_stack
// Copyright 2013 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
the_stack
import {createEvent, createStore, Event, guard, split} from 'effector' const typecheck = '{global}' it('infer type by given predicate (should pass)', () => { const event: Event<number | string> = createEvent() const {onlyNumbers} = split(event, { onlyNumbers: (value): value is number => typeof value === 'numb...
the_stack
import React, { useRef, useState } from 'react' import PhotoSwipe from 'photoswipe' import PhotoswipeUIDefault from 'photoswipe/dist/photoswipe-ui-default' import { mount, shallow } from 'enzyme' import toJson from 'enzyme-to-json' import { NoRefError } from '../no-ref-error' import { shuffle } from '../helpers' import...
the_stack
import MContent from "@/components/MContent.vue"; import MMain from "@/components/MMain.vue"; interface RouteMeta { icon: string; title: string; islink: number; mode: string; } const routes = [ { path: "/overview", // 临时比对本地版本用 version: +new Date(), component: MMain, meta: { icon: ...
the_stack
import {Attribute} from '../../../attribute'; import {Graph} from '../../../graph'; import {Upsample} from '../../../ops/upsample'; import {Tensor} from '../../../tensor'; import {CpuInferenceHandler} from '../inference-handler'; export declare namespace Upsample { interface GetNearestPixelFunc { (a: number, b: ...
the_stack
import {Observable} from 'data/observable'; import {ObservableArray} from 'data/observable-array'; import TypeUtils = require('utils/types'); import Xml = require('xml'); /** * A XML name. */ export class XName { private _localName: string; private _namespace: string; /** * Initializes...
the_stack
import * as angular from 'angular'; import { ContextualMenuDirective, ContextualMenuController } from './../contextualmenu/contextualMenu'; /** * @ngdoc interface * @name INavBarScope * @module officeuifabric.components.navbar * * @description * This is the scoped used by the `<uif-nav-bar>` directive. * * @pr...
the_stack
import { suite } from 'uvu'; import * as assert from 'uvu/assert'; import * as CORS from './cors'; import type { ServerResponse } from 'worktop/response'; import type { ServerRequest } from 'worktop/request'; const Headers = () => { let raw = new Map; let set = raw.set.bind(raw); // @ts-ignore - mutating raw.set ...
the_stack
import { actions, assign, createMachine, DoneInvokeEvent, send } from 'xstate' import type { Model } from 'xstate/lib/model.types' import { PersistenceBackendAPI, ProjectLoadResult, ProjectModel, ProjectWithFileChanges, } from './persistence-types' const { choose } = actions // Keep this file as simple as poss...
the_stack
import { Range, TextEditorDecorationType, ThemableDecorationRenderOptions, ThemeColor, window } from "vscode"; export interface VimHighlightUIAttributes { foreground?: number; background?: number; special?: number; reverse?: boolean; italic?: boolean; bold?: boolean; strikethrough?: boolean...
the_stack
import m from 'mithril'; import h from './h'; import _ from 'underscore'; import c from './c'; import Chart from 'chart.js'; import { Wrap } from './wrap'; import { AdminWrap } from './admin-wrap'; m.originalTrust = m.trust; m.trust = (text) => h.trust(text); (function () { window.m = m; h.SentryInitSDK(); ...
the_stack
import AppDispatcher from "../../events/AppDispatcher"; import SystemLogActions from "../SystemLogActions"; import { RequestUtil } from "mesosphere-shared-reactjs"; import * as ActionTypes from "../../constants/ActionTypes"; import Config from "#SRC/js/config/Config"; let thisEventSource, thisMessageSpy, thisConfigu...
the_stack
import { of as observableOf } from 'rxjs'; import { TestBed } from '@angular/core/testing'; import { provideMockActions } from '@ngrx/effects/testing'; import { LinkService } from '../../core/cache/builders/link.service'; import { cold, hot } from 'jasmine-marbles'; import { SetThemeAction } from './theme.actions'; imp...
the_stack
import * as A from "../../../Collections/Immutable/Chunk" import * as Tp from "../../../Collections/Immutable/Tuple" import * as T from "../../../Effect" import * as Ex from "../../../Exit" import * as O from "../../../Option" import type * as OD from "../../../Ord" import * as CombineChunks from "../_internal/api/comb...
the_stack
import moment from 'moment' import { IGlobalControl, ILocalControl, IControlBase, IControlRelatedField, IRenderTreeItem, InteractionType, IFilters } from './types' import { uuid } from 'app/utils/util' import FilterTypes, { FilterTypesOperatorSetting, IS_RANGE_TYPE, FilterTypesDynamicDefaultValueSetting }...
the_stack
import '../elements/spinner'; import '../elements/tcav_score_bar'; import '@material/mwc-switch'; import {customElement} from 'lit/decorators'; import { html} from 'lit'; import {TemplateResult} from 'lit'; import {classMap} from 'lit/directives/class-map'; import {styleMap} from 'lit/directives/style-map'; import {co...
the_stack
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; import { AppIntegrationsClient } from "./AppIntegrationsClient"; import { CreateDataIntegrationCommand, CreateDataIntegrationCommandInput, CreateDataIntegrationCommandOutput, } from "./commands/CreateDataIntegrationCommand"; import { ...
the_stack
import U from './util' import { IVisualization } from './index' const POLE_TO_POLE_RADIUS = 9 const POLE_EFFECT_RADIUS = 3 const POLE_SIZE = 1 interface IPole extends IPoint { powerArea: IPoint[] poweredEntityAreas: IPoint[][] powerGiven: number distFromMidOfConsumers: number } interface IGroup exten...
the_stack
import express from 'express'; import * as ThingTalk from 'thingtalk'; import * as Genie from 'genie-toolkit'; import * as db from '../util/db'; import * as model from '../model/mturk'; import * as deviceModel from '../model/device'; import * as example from '../model/example'; import AdminThingpediaClient from '../ut...
the_stack
import { toAsyncIterable } from '@esfx/async-iter-fromsync'; import { AsyncHierarchyIterable } from '@esfx/async-iter-hierarchy'; import { IndexedCollection } from '@esfx/collection-core'; import { HashMap } from "@esfx/collections-hashmap"; import { HashSet } from "@esfx/collections-hashset"; import { Comparer, C...
the_stack
import { CommonConstructorOptions } from "../index"; /** * Microsoft Translator APIs can be seamlessly integrated into your applications, websites, tools, or other solutions to provide multi-language user experiences. * Leveraging industry standards, it can be used on any hardware platform and with any operatin...
the_stack
import { should } from 'chai'; import { LinkedListInstance } from '../../types/truffle-contracts'; import { TestLinkedListInstance } from '../../types/truffle-contracts'; const LinkedList = artifacts.require('LinkedList') as Truffle.Contract<LinkedListInstance>; const TestLinkedList = artifacts.require('TestLinkedLis...
the_stack
import * as React from 'react'; import { createPopper, Instance, ModifierArguments } from '@popperjs/core'; import is from 'is-lite'; import useTreeChanges from 'tree-changes-hook'; import Floater from './components/Floater'; import Portal from './components/Portal'; import Wrapper from './components/Wrapper'; import ...
the_stack
import * as t from '@/lib/io'; import * as oly from '@/lib/olyger'; import uuid from 'uuid'; import { SynthType, SoundfontType, Soundfont, Synth, PatternType, Score, Pattern, Instrument, Sample, SampleType, PlaylistType, AutomationClip, AutomationType, TrackType, Channel, Track, Channe...
the_stack
import { fireSingleFieldValidations } from './single-field-dispatcher'; import { FieldValidatorArgs, FieldValidationFunctionAsync, InternalFieldValidation, } from '../model'; // Checking console log errors: https://stackoverflow.com/questions/44344801/how-to-use-jest-with-jsdom-to-test-console-log describe('sing...
the_stack
import { NodesEvent, GraphEvent, NodeConnectEvent, NodeConnectEventArg, NodeEvent, GroupEvent } from './misc/Events'; import { NodeJSONType, NodeBase } from './nodes/NodeBase'; import { Nodes } from './nodes/NodeDictionary'; import { GroupJSONType, GroupElement } from './GroupElement'; import { Process } from './Proce...
the_stack
import * as _ from "lodash"; import ASTNode from "./parsers/ASTNode"; import Position from "./parsers/Position"; import StaticContext from "./StaticContext"; import RootStaticContext from "./RootStaticContext"; import QName from "./QName"; import Variable from "./Variable"; import Marker from "./Marker"; import * as...
the_stack
require('module-alias/register'); import * as ABIDecoder from 'abi-decoder'; import * as chai from 'chai'; import { BigNumber } from 'bignumber.js'; import * as setProtocolUtils from 'set-protocol-utils'; import { Address, Bytes, ExchangeIssuanceParams, KyberTrade, ZeroExSignedFillOrder } from 'set-protocol-utils'; i...
the_stack
import { ChildProcess, spawn } from "child_process"; import { AgentInitializeResult, BaseAgentOptions, DidChangeApiVersionCompatibilityNotification, DidChangeApiVersionCompatibilityNotificationType, DidChangeConnectionStatusNotification, DidChangeConnectionStatusNotificationType, DidChangeDataNotification, DidC...
the_stack