text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
* @module Bspline */ import { Point3d, Vector3d } from "../geometry3d/Point3dVector3d"; import { Geometry } from "../Geometry"; import { Point3dArray } from "../geometry3d/PointHelpers"; import { ProxyCurve } from "../curve/ProxyCurve"; import { CurvePrimitive } from "../curve/CurvePrimitive"; import { BSplineCurveOp...
the_stack
import { TestBed, fakeAsync, tick, flush, } from '@angular/core/testing'; import { ApolloTestingModule, ApolloTestingController, } from 'apollo-angular/testing'; import { Observable } from 'rxjs'; import { DaffCategoryIdRequest, DaffCategory, DaffCategoryFilterEqualRequest, DaffCategoryFilterRangeR...
the_stack
import {Component, Injectable, PLATFORM_ID, ViewChild} from '@angular/core'; import {CommonModule, isPlatformServer} from '@angular/common'; import {ComponentFixture, TestBed, inject, fakeAsync} from '@angular/core/testing'; import {Platform} from '@angular/cdk/platform'; import { ɵMatchMedia as MatchMedia, ɵMockMa...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace FormEntitlement { interface Header extends DevKit.Controls.IHeader { /** Choose a contact or account for which this entitlement has been defined. */ CustomerId: DevKit.Controls.Lookup; /** Enter the date when the entitleme...
the_stack
import { IntersectionObserverSupport } from '../../support/intersection-observer.js'; import { clamp } from '../../utils/clamp.js'; import { fade } from '../../utils/fade.js'; import { fire } from '../../utils/fire.js'; import { injectScript } from '../../utils/inject-script.js'; import { DEBUG_LEVEL, log } from '../.....
the_stack
import { ChannelBytes, ChannelCompression, ChannelKind, getChannelKindOffset, } from "../interfaces"; import {UnsupportedCompression} from "../utils/error"; /** * Decodes one or more encoded channels and combines them into an image. * @param width Width of the decoded image in pixels * @param height Height ...
the_stack
import React, { useCallback, useMemo, useState } from "react"; import ReactDOM from "react-dom"; import EditContainer from "./EditContainer"; import { VerticalTimeline, VerticalTimelineElement, } from "react-vertical-timeline-component"; import "react-vertical-timeline-component/style.min.css"; import { Checkbox, I...
the_stack
import { TypedArray } from '../types' const defaultByteLength = 1024 * 8 const charArray: string[] = [] export interface IOBufferParameters { offset?: number // Ignore the first n bytes of the ArrayBuffer } /** * Class for writing and reading binary data */ class IOBuffer { private _lastWrittenByte: number ...
the_stack
import { ChangeDetectorRef, Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { combineLatest, Observable, of as observableOf, Subscription } from 'rxjs'; import { filter, map, mergeMap, scan } from 'rxjs/operators'; import {...
the_stack
import { IBoxPlotData, IAdvancedBoxPlotData, round } from '../internal'; import { NumberColumn, IBoxPlotColumn, INumberColumn, isBoxPlotColumn, Column, IDataRow, isNumberColumn, isMapAbleColumn, IOrderedGroup, } from '../model'; import { BOX_PLOT, CANVAS_HEIGHT, DOT, cssClass } from '../styles'; impor...
the_stack
import { CompilationData } from '../template/compiler-types'; import { CompilationError, ResolvedScript, } from '../template/language/language-types'; /** * The partial transaction context which is shared between all of the inputs in * a transaction. */ export interface TransactionContextSharedCommon { /** ...
the_stack
import { PromiseFsClient } from 'isomorphic-git'; import path from 'path'; import Stat from './stat'; import { SystemError } from './system-error'; interface FSFile { readonly type: 'file'; readonly ino: number; readonly mtimeMs: number; readonly name: string; readonly path: string; contents: string; } i...
the_stack
import * as vsc from 'vscode'; import { Disposable, disposeAll } from './dispose'; import { WebviewCollection } from './util'; interface SQLiteEdit { readonly data: Uint8Array; } interface SQLiteDocumentDelegate { getFileData(): Promise<Uint8Array>; } class SQLiteDocument extends Disposable implements vsc.Custom...
the_stack
// IMPORTANT // This file was 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 // Generated from: https://firestore.googleapis.com/\$discovery/rest?...
the_stack
///////////////////////////// /// ECMAScript APIs ///////////////////////////// declare const NaN: number; declare const Infinity: number; declare function eval(x: string): any; declare function parseInt(s: string, radix?: number): number; declare function parseFloat(string: string): number; dec...
the_stack
import { TextEditor, Grammar } from "atom"; import * as path from "path"; import { promises } from "fs"; const { readFile } = promises; import type { HydrogenCellType } from "./hydrogen"; import { remote } from "electron"; const { dialog } = remote; import { fromJS } from "@nteract/commutable"; import type { Notebook...
the_stack
import { CanvasContext } from "@tarojs/taro"; import { IText, IIMage, ILine, IBlock } from '../types'; export interface IDrawRadiusRectData { x: number; y: number; w: number; h: number; r: number; } export interface IDrawOptions { ctx: CanvasContext; toPx: (rpx: number, int?: boolean, factor?: number) =...
the_stack
import {isString, deepCopy} from './utils.js'; export type Piece = string; export type PositionObject = {[square: string]: Piece | undefined}; export type Position = PositionObject | 'start' | string; const RUN_ASSERTS = true; export const START_FEN = 'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR'; export const COLUMN...
the_stack
import { RavenTransportOptions } from 'raven-js'; import prefixUrl from '../prefix-url'; const UNKNOWN_SYM = { sym: '??', word: '??' }; const NAV_SYMBOLS = [ { sym: 'dp', word: 'dependencies', rx: /^\/dep/i }, { sym: 'tr', word: 'trace', rx: /^\/trace/i }, { sym: 'sd', word: 'search', rx: /^\/search\?./i }, ...
the_stack
import { basename, relative, extname, normalize } from 'path' import * as convert from 'convert-source-map' import findRoot from 'find-root' import { memoize } from 'lodash' import { SourceMapGenerator } from 'source-map' import * as ts from 'typescript' const hashString = require('@emotion/hash').default interface ...
the_stack
import { $el, bind, getBooleanTypeAttr, getStrTypeAttr, removeAttrs, setCss } from '../../dom-utils'; import { clickoutside, CssTransition, warn, _Popper } from '../../mixins'; import { type, validComps } from '../../utils'; interface Config { config( el: string ): { vis...
the_stack
import axios from "axios"; import { autobind } from "core-decorators"; import * as _ from "lodash"; import { inject, observer } from "mobx-react"; import * as React from "react"; import { Button, Divider, Dropdown, Form, Header, Icon, Image, Input, Message, Reveal, Segment, } from "semantic-ui-react"; import { allo...
the_stack
export const STATE_IDLE = "Idle"; export const STATE_RUN = "Run"; export const STATE_HOLD = "Hold"; export const STATE_HOME = "Home"; export const STATE_ALARM = "Alerm"; export const STATE_CHECK = "Check"; export const STATE_DOOR = "Door"; // Special state for disconnected export const STATE_UNKNOWN = "Unknown"; ...
the_stack
import { css } from 'styled-components'; /** * Swiper 6.7.0 * Most modern mobile touch slider and framework with hardware accelerated transitions * https://swiperjs.com * * Copyright 2014-2021 Vladimir Kharlampidi * * Released under the MIT License * * Released on: May 31, 2021 */ const swiperStyle = css` ...
the_stack
import assert from 'assert'; import electron from 'electron'; import fs from 'fs'; import mkdirp from 'mkdirp'; import path from 'path'; import randomstring from 'randomstring'; import rimraf from 'rimraf'; import settings from './settings'; const rootDir = path.join(__dirname, '..'); const tmpDir = path.join(rootDir...
the_stack
import { openAlert, AlertButton, AlertConfig, closeAlerts } from './ui/alert/Alert' import { closeToast, openToast, ToastAction } from './ui/toast/Toast' import { ExtendedP2PPairingResponse } from './types/P2PPairingResponse' import { PostMessagePairingRequest } from './types/PostMessagePairingRequest' import { Extende...
the_stack
export const description = ` Util math unit tests. `; import { makeTestGroup } from '../common/framework/test_group.js'; import { kBit } from '../webgpu/shader/execution/builtin/builtin.js'; import { f32, f32Bits, Scalar } from '../webgpu/util/conversion.js'; import { correctlyRounded, diffULP, nextAfter } from '../we...
the_stack
interface pbxFile { basename: string; lastKnownFileType?: string; group?: string; path?: string; fileEncoding?: number; defaultEncoding?: number; sourceTree: string; includeInIndex?: number; explicitFileType?: unknown; settings?: object; uuid?: string; fileRef: string; target?: string; } decl...
the_stack
import React, { useCallback, useMemo } from 'react'; import { defineMessages } from 'react-intl'; import { ColonyRole, ROOT_DOMAIN_ID } from '@colony/colony-js'; import sortBy from 'lodash/sortBy'; import { FormikProps } from 'formik'; import { InputLabel, Select, Annotations } from '~core/Fields'; import { DialogSect...
the_stack
import { useEffect, useState, Fragment } from 'react'; import Head from 'next/head'; import toast from 'react-hot-toast'; import { useClipboard } from 'use-clipboard-copy'; import { ChevronDownIcon, GlobeIcon, DocumentIcon, CollectionIcon } from '@heroicons/react/solid'; import { DocumentIcon as DocumentIconOutline } f...
the_stack
import { BatchingStrategy, Collab, CollabEvent, CRDTApp, CRDTRuntime, EventEmitter, Optional, Pre, Unsubscribe, } from "@collabs/collabs"; import { ContainerMessage, HostMessage, LoadMessage, SaveRequestMessage, } from "./message_types"; interface CRDTContainerEventsRecord { /** * Emitte...
the_stack
export namespace SemanticDataInterconnectModels { /** * * @export * @class RequiredError * @extends {Error} */ export class RequiredError extends Error { name: "RequiredError" = "RequiredError"; constructor(public field: string, msg?: string) { super(msg); ...
the_stack
import * as React from 'react' import classnames from 'classnames/bind' import { User, UserAdminView } from 'src/global_types' import { adminChangePassword, adminSetUserFlags, adminDeleteUser, addHeadlessUser, deleteGlobalAuthScheme, deleteTotpForUser, adminCreateLocalUser, adminInviteUser } from 'src/services' ...
the_stack
import { DisposableStore, IDisposable, toDisposable } from 'vs/base/common/lifecycle'; import { EditorConfiguration, IEditorConstructionOptions } from 'vs/editor/browser/config/editorConfiguration'; import { IActiveCodeEditor, ICodeEditor } from 'vs/editor/browser/editorBrowser'; import { ICodeEditorService } from 'vs/...
the_stack
import {BufferGeometry, DoubleSide, Float32BufferAttribute, Material, MeshPhongMaterial, NearestFilter, RGBFormat, Texture, Uint32BufferAttribute} from 'three'; import {MapNodeGeometry} from '../geometries/MapNodeGeometry'; import {MapView} from '../MapView'; import {Martini} from './Martini'; import {MapHeightNode} fr...
the_stack
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types"; /** * <p></p> */ export interface AbortEnvironmentUpdateMessage { /** * <p>This specifies the ID of the environment with the in-progress update that you want to * cancel.</p> */ EnvironmentId?...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../types"; import * as utilities from "../utilities"; /** * Provides a WorkSpaces directory in AWS WorkSpaces Service. * * > **NOTE:** AWS WorkSpaces service requires [`workspaces_DefaultRole`](https://docs.aws.amaz...
the_stack
interface BigInt { /** * Returns a string representation of an object. * @param radix Specifies a radix for converting numeric values to strings. */ toString(radix?: number): string; /** Returns a string representation appropriate to the host environment's current locale. */ toLo...
the_stack
import { BabelFileMetadata, parseSync, transformFromAstSync, } from "@babel/core"; import { getTwConfigPath, getTwConfigCache } from "../tailwindConfig"; import xwindplugin from "../babel"; import { resolveXwindConfig } from "../xwindConfig"; import { getHash } from "../utils"; import fs from "fs"; import initTai...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../types"; import * as utilities from "../utilities"; /** * Imports a disk image from S3 as a Snapshot. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "...
the_stack
import Immutable = require('seamless-immutable'); // Test types interface User { firstName: string; lastName: string; } interface Address { line1: string; } interface ExtendedUser extends User { address: Address; } // A result type for asMutable({ deep: false } | undefined) interface NonDeepMutable...
the_stack
import * as mockery from 'mockery'; describe('projects', function () { let api: any; let validators: any; let mock: any; beforeEach(function () { mockery.enable({ useCleanCache: true, warnOnUnregistered: false }); mock = { db: {}, auth: { extractRequestUser: (req) => req.user.user,...
the_stack
import { combineReducers, PayloadAction } from '@reduxjs/toolkit'; import { ChartEditorProps } from 'app/components/ChartEditor'; import { BOARD_UNDO } from 'app/pages/DashBoardPage/constants'; import { BoardInfo, BoardLinkFilter, DeviceType, JumpPanel, WidgetData, WidgetErrorType, WidgetInfo, WidgetPan...
the_stack
import { RequestLogicTypes } from '@requestnetwork/types'; import { CurrencyInput, CurrencyDefinition, CurrencyManager, ERC20Currency } from '../src'; const testCasesPerNetwork: Record<string, Record<string, Partial<CurrencyDefinition>>> = { mainnet: { ETH: { symbol: 'ETH', network: 'mainnet' }, SAI: { ...
the_stack
import RenderUtil from "./../../starling/utils/RenderUtil"; import SystemUtil from "./../../starling/utils/SystemUtil"; import RenderState from "./../../starling/rendering/RenderState"; import MatrixUtil from "./../../starling/utils/MatrixUtil"; import IllegalOperationError from "openfl/errors/IllegalOperationError"; i...
the_stack
"use strict"; const address = require("address"); const fs = require("fs"); const path = require("path"); const url = require("url"); const chalk = require("chalk"); const detect = require("detect-port-alt"); const isRoot = require("is-root"); const inquirer = require("inquirer"); const clearConsole = require("react-d...
the_stack
import 'mocha'; import * as vscode from 'vscode'; import { acceptFirstSuggestion, typeCommitCharacter } from '../../test/suggestTestHelpers'; import { assertEditorContents, Config, createTestEditor, enumerateConfig, joinLines, updateConfig, VsCodeConfiguration } from '../../test/testUtils'; import { disposeAll } from '...
the_stack
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** * Location information. */ export interface Location { /** * The fully qualified ID of the location. For example, * /subscripti...
the_stack
import { FsLocal } from '../FsLocal'; import * as fs from 'fs'; import { sep } from 'path'; import { describeUnix, describeWin, itUnix, getPath } from '../../../utils/test/helpers'; import mock from 'mock-fs'; import TmpDir from './fixtures/tmpDir'; let localAPI: any; const HOMEDIR = getPath('home'); const TESTS_DI...
the_stack
import assert from 'assert'; import { r } from '../src'; import config from './config'; import { uuid } from './util/common'; describe('manipulating tables', () => { let dbName: string; before(async () => { await r.connectPool(config); // delete all but the system dbs await r .dbList() .fi...
the_stack
import { formatDate, formatNationalId, laws, formatGender, caseTypes, capitalize, formatAccusedByGender, } from '@island.is/judicial-system/formatters' import { CaseCustodyProvisions, CaseType, isRestrictionCase, SessionArrangements, } from '@island.is/judicial-system/types' import type { CaseGend...
the_stack
/* * Copyright (c) 2016 - now David Sehnal, licensed under Apache 2.0, See LICENSE file for more info. */ namespace LiteMol.Core.Formats.Molecule.PDB { "use strict"; class Tokenizer { private length: number; trimmedToken = { start: 0, end: 0 }; line: number = 0; position...
the_stack
import type { ActionDefaults } from '@interactjs/core/options' import type { Element, EdgeOptions, PointerEventType, PointerType, FullRect, CoordsSet, } from '@interactjs/types/index' import * as arr from '@interactjs/utils/arr' import extend from '@interactjs/utils/extend' import hypot from '@interactjs/ut...
the_stack
import * as React from 'react'; import { Animated, TextStyle, StyleProp } from 'react-native'; declare type Props = React.ComponentPropsWithRef<typeof Animated.Text> & { style?: StyleProp<TextStyle>; /** * @optional */ theme: ReactNativePaper.Theme; }; /** * Text component which follows styles fr...
the_stack
import { catchError, defer as observableDefer, map, Observable, of as observableOf, throwError as observableThrow, } from "rxjs"; import { ICustomMediaKeySystemAccess, requestMediaKeySystemAccess, shouldRenewMediaKeys, } from "../../compat"; import config from "../../config"; import { EncryptedMediaEr...
the_stack
import { getPoint, ChartLocation, appendClipElement, pathAnimation } from '../../common/utils/helper'; import { PathOption, SvgRenderer } from '@syncfusion/ej2-svg-base'; import { Chart } from '../chart'; import { Series, Points } from './chart-series'; import { Axis } from '../../chart/axis/axis'; import { LineBase } ...
the_stack
import './passwords_list_handler.js'; import 'chrome://resources/cr_elements/shared_style_css.m.js'; import '../settings_shared_css.js'; import './avatar_icon.js'; import './passwords_shared_css.js'; import './password_list_item.js'; import './password_move_multiple_passwords_to_account_dialog.js'; import 'chrome://res...
the_stack
import { DOWN_ARROW, END, ENTER, ESCAPE, HOME, SPACE, UP_ARROW } from "@angular/cdk/keycodes"; import { ConnectionPositionPair, Overlay, OverlayConfig, OverlayRef } from "@angular/cdk/overlay"; import { ComponentPortal } from "@angular/cdk/portal"; import { AfterContentInit, ChangeDetectionStrategy, ChangeD...
the_stack
import { debugAssert, debugCast } from '../util/assert'; import { wrapInUserErrorIfRecoverable } from '../util/async_queue'; import { FirestoreError } from '../util/error'; import { EventHandler } from '../util/misc'; import { ObjectMap } from '../util/obj_map'; import { canonifyQuery, Query, queryEquals, stringifyQue...
the_stack
import * as sinon from 'sinon'; import { expect } from 'chai'; import { noop, isFunction } from '../../../src/facade/lang'; import { AfterContentInit, OnDestroy, OnInit, AfterViewInit } from '../../../src/core/linker/directive_lifecycle_interfaces'; import { Component, Directive, Input, Attr, Output, ...
the_stack
import cx from 'classnames' import mime from 'mime-types' import * as R from 'ramda' import * as React from 'react' import { useDropzone } from 'react-dropzone' import type * as RF from 'react-final-form' import { fade } from '@material-ui/core/styles' import * as M from '@material-ui/core' import JsonEditor from 'com...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * A connection allows BigQuery connections to external data sources.. * * To get more information about Connection, see: * * * [API documentation](https://cloud.g...
the_stack
import { Context } from '@nuxt/types'; import { Inject } from '@nuxt/types/app'; import { AxiosError } from 'axios'; import filesize from 'filesize'; // TODO fix it complaining about no type declaration file // @ts-ignore // import { contrastRatio, HexToRGBA, parseHex } from 'vuetify/es5/util/colorUtils'; // TODO remov...
the_stack
import * as t from 'io-ts'; import { RTTI_id } from '../Scalar/RTTI_id'; import { RTTI_Meta, IMeta } from './RTTI_Meta'; import { RTTI_uri } from '../Scalar/RTTI_uri'; import { RTTI_Element, IElement } from './RTTI_Element'; import { RTTI_code } from '../Scalar/RTTI_code'; import { RTTI_Narrative, INarrative } from './...
the_stack
import { ColorInput } from '@ctrl/tinycolor'; import { ColorObject, ColorScheme, VariableColor, VariantsObject, VariantInput, ColorVariant, OpacityVariant, VariantTransformer, CustomVariant, Variant, VariantType, } from './color'; import { flattenColorObject } from '../util/flattenCo...
the_stack
import BaseFoundation, { DefaultAdapter } from '../base/foundation'; import { format, getWeeksInMonth, getWeekOfMonth, isSameMonth, startOfMonth, endOfMonth, isBefore, isAfter, addDays, startOfWeek, differenceInCalendarDays, isSameDay, startOfDay, isSameWeek, Loca...
the_stack
import * as d3Axis from 'd3-axis'; import { ScaleLinear, ScalePoint } from 'd3-scale'; import * as d3Shape from 'd3-shape'; import * as d3Drag from 'd3-drag'; import * as d3Selection from 'd3-selection'; import * as d3Transition from 'd3-transition'; import ReactDOM from 'react-dom'; import { d3Scale } from '../../inde...
the_stack
import { createBrotliCompress, createGzip } from 'zlib'; import Multistream from 'multistream'; import assert from 'assert'; import { execFileSync } from 'child_process'; import fs from 'fs-extra'; import intoStream from 'into-stream'; import path from 'path'; import streamMeter from 'stream-meter'; import { Readable }...
the_stack
import * as React from 'react'; import { arraysEqual, search, branchIn } from '../Utils'; import { ITableProps } from '../Table/Table'; import Emerge from '../Emerge/Emerge'; import Toolbar from '../Toolbar/Toolbar'; import Button from '../Button/Button'; import { IColumn } from './IColumn'; export interface IDataSo...
the_stack
import type { Fn, IObjectOf, MaybeDeref, NumOrString } from "@thi.ng/api"; export type CDataContent = ["!CDATA", ...string[]]; export type AttribVal<T> = MaybeDeref<T | undefined>; export type BooleanAttrib = AttribVal<boolean>; export type NumericAttrib = AttribVal<number>; export type StringAttrib = AttribVal<strin...
the_stack
'use strict'; import { Range } from 'vscode-languageclient'; import { LuaParse } from './LuaParse'; import { CLog } from './Utils' import { LuaFiledCompletionInfo } from "./provider/LuaFiledCompletionInfo"; /** * lua info */ export class LuaInfo { public moduleName: string; private comments: Array<LuaCom...
the_stack
import { serializeError, deserializeError, createCustomErrorClass, addCustomErrorDeserializer, } from "./helpers"; export { serializeError, deserializeError, createCustomErrorClass, addCustomErrorDeserializer, }; export const AccountNameRequiredError = createCustomErrorClass( "AccountNameRequired" )...
the_stack
import $ from "jquery"; import type { Coordmap } from "./initCoordmap"; import { findOrigin } from "./initCoordmap"; import { equal, isnan, mapValues, roundSignif } from "../utils"; import type { Panel } from "./initPanelScales"; import type { Offset } from "./findbox"; import { findBox } from "./findbox"; import { sh...
the_stack
import Marketplace = require('../Marketplace'); import Page = require('../../../base/Page'); import Response = require('../../../http/response'); import serialize = require('../../../base/serialize'); import { InstalledAddOnExtensionList } from './installedAddOn/installedAddOnExtension'; import { InstalledAddOnExtensio...
the_stack
import { createEmptyBlock } from '@app/helpers/blockFactory' import type { Operation, Transcation } from '@app/hooks/useCommit' import { BlockSnapshot, getBlockFromSnapshot } from '@app/store/block' import { Editor } from '@app/types' import { addPrefixToBlockTitle, blockIdGenerator } from '@app/utils' import dayjs fro...
the_stack
import { Node } from 'slate'; import { toSlateDoc } from '../src'; import { TestEditor, TransformFunc } from './testEditor'; import { createNode, createTestEditor, createValue, wait } from './utils'; const tests = [ [ 'Insert text into a paragraph node', [createNode('paragraph', '')], [ TestEditor....
the_stack
import * as assert from 'assert'; import {beforeEach, describe, it} from 'mocha'; // eslint-disable-next-line @typescript-eslint/no-var-requires const {Query} = require('../src/query'); // eslint-disable-next-line @typescript-eslint/no-var-requires import {Datastore} from '../src'; describe('Query', () => { const SC...
the_stack
import { config, expect } from "chai"; import sinon from "sinon"; import { PropertyRecord } from "@itwin/appui-abstract"; import { IMutableGridItemFactory, MutableGridItemFactory } from "../../../../components-react/propertygrid/internal/flat-items/MutableGridItemFactory"; import { MutablePropertyGridModel } from "../....
the_stack
"use strict"; import "aurelia-polyfills"; import { TemplatingBindingLanguage, InterpolationBindingExpression } from "aurelia-templating-binding"; import { ViewResources, BindingLanguage, BehaviorInstruction } from "aurelia-templating"; import { AccessMember, AccessScope, AccessKeyed, Expression, NameExpression, Value...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * Manages an Azure App Configuration Feature. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulu...
the_stack
import {setdifference} from '../common/base_util'; import {EngineConst} from '../common/engine'; import {AuditoryDescription} from './auditory_description'; import {Span} from './span'; export interface Tags { open?: EngineConst.personalityProps[]; close?: EngineConst.personalityProps[]; [personality: string]: ...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * A `CryptoKey` represents a logical key that can be used for cryptographic operations. * * > **Note:** CryptoKeys cannot be deleted from Google Cloud Platform. * ...
the_stack
import { EventEmitter } from 'eventemitter3'; // own modules import { ITaskOptions, ITaskTimerEvent, ITaskTimerOptions, ITimeInfo, Task as TTask, TaskCallback } from '.'; import { utils } from './utils'; /** * @private */ const DEFAULT_TIMER_OPTIONS: ITaskTimerOptions = Object.freeze({ interval: 1000, ...
the_stack
import React, { useState, useCallback, useEffect } from "react"; import { css } from "emotion"; import get from "lodash/get"; import { useRouter } from "@webiny/react-router"; import { Form } from "@webiny/form"; import { Input } from "@webiny/ui/Input"; import { Select } from "@webiny/ui/Select"; import { useSnackbar ...
the_stack
import { Physics, Plugins, Scene, Events, Scenes } from "phaser"; import { getRootBody, warnInvalidObject } from "./utils"; import logger from "./logger"; import { CollidingObject as CO, isCollidingObject } from "./valid-collision-object"; import { ListenerMap, CollideABConfig as ABConfig, Unsubscribe, CollideC...
the_stack
import { INestApplication } from '@nestjs/common' import { Test } from '@nestjs/testing' import * as request from 'supertest' import { AppModule } from '../../../../app/app.module' import { DeploymentEntityV2 } from '../../../../app/v2/api/deployments/entity/deployment.entity' import { Execution } from '../../../../app...
the_stack
import ts = require('typescript'); // A blacklist of node kinds that do NOT need to be searched for namespace usages. // // A blacklist is safer than trying to whitelist all the relevant items from SyntaxKind. // // ref: typescript.d.ts export const namespaceBlacklist: ReadonlyArray<ts.SyntaxKind> = [ ts.SyntaxKind....
the_stack
import * as $protobuf from "protobufjs"; /** Namespace master. */ export namespace master { /** Properties of a Player. */ interface IPlayer { /** Player name */ name?: (string|null); /** Player identifiers */ identifiers?: (string[]|null); /** Player endpoint */ ...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace Formmsdyusd_auditanddiagnosticssetting_Information { interface tab_ActivityTrackingTab_Sections { tab_2_section_1: DevKit.Controls.Section; } interface tab_Diagnosticstab_Sections { Diagnosticstab_section_2: DevKit.Contro...
the_stack
import { Smithchart, SmithchartLegend, TooltipRender, ISmithchartLoadedEventArgs } from '../../../src/smithchart/index'; import { createElement, remove } from '@syncfusion/ej2-base'; import { MouseEvents } from '../base/events.spec'; import { profile, inMB, getMemoryProfile } from '../../common.spec'; Smithchart.Injec...
the_stack
import * as assert from 'assert'; import * as path from 'path'; import * as vscode from 'vscode'; import { formatInstance } from '../providers/ModuleInstantiator'; const testFolderLocation = '../../src/test'; suite('ModuleInstantiator Tests', () => { test('test #1: formatInstance without parameters', async () => ...
the_stack
import { promises as fs, exists } from 'fs'; import * as path from 'path'; import * as lockfile from '@yarnpkg/lockfile'; import * as semver from 'semver'; import { hoistDependencies } from './hoisting'; import { PackageJson, PackageLock, PackageLockEntry, PackageLockPackage, YarnLock } from './types'; export interfac...
the_stack
import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych"; const info = <const>{ name: "image-slider-response", parameters: { /** The image to be displayed */ stimulus: { type: ParameterType.IMAGE, pretty_name: "Stimulus", default: undefined, }, /** Set the image ...
the_stack
import { ActivityType, IdMap } from "./messages"; import { Activity, PassiveEntity, TraceDataUpdate, SendOp, ReceiveOp, DynamicScope } from "./execution-data"; import { getEntityId, getEntityGroupId, getEntityGroupVizId, getEntityVizId } from "./view"; import { KomposMetaModel, EntityRefType } from "./meta-model"; con...
the_stack
* Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use t...
the_stack
import { BasetoolError } from "@/lib/errors"; import { Column } from "@/features/fields/types"; import { DataSource } from "@prisma/client"; import { GoogleSheetsCredentials, GoogleSheetsDataSource } from "./types"; import { GoogleSpreadsheet, GoogleSpreadsheetRow } from "google-spreadsheet"; import { IFilter } from "@...
the_stack
import { AfterViewChecked, ChangeDetectionStrategy, Component, OnInit, ViewChild, OnDestroy, Inject, } from '@angular/core'; // @ts-ignore import { SohoDataGridComponent } from 'ids-enterprise-ng'; import { PAGING_COLUMNS, PAGING_DATA } from './datagrid-paging-data'; const customErrorFormatter = function (row: any, c...
the_stack
import Adapt, { ActionInfo, AdaptElementOrNull, ChangeType, FinalDomElement, findElementsInDom, Handle, isHandle, QueryDomain, registerPlugin, Style, WidgetChange, WidgetPair, WidgetPlugin, } from "@adpt/core"; import { isEqualUnorderedArrays } from "@adpt/utils"; imp...
the_stack
export interface InstanceState { condition: Condition; since: Date; activeSince?: Date; healthy?: boolean; goal: Goal; } export interface Instance { instanceId: string; state: InstanceState; agentInfo?: AgentInfo; runSpecVersion: Date; unreachableStrategy: unknown; // TODO: implement unions; } expor...
the_stack
import { defaultModelAssessmentContext, ErrorCohort, ModelAssessmentContext } from "@responsible-ai/core-ui"; import { localization } from "@responsible-ai/localization"; import { Dropdown, ChoiceGroup, Stack, IDropdownOption, Panel, PrimaryButton, DefaultButton, IChoiceGroupOption ...
the_stack