text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import AssetsPlugin from 'assets-webpack-plugin' import { version as cacheLoaderVersion } from 'cache-loader/package.json' import chalk from 'chalk' import CleanPlugin from 'clean-webpack-plugin' import CopyPlugin from 'copy-webpack-plugin' import TsCheckerPlugin from 'fork-ts-checker-webpack-plugin' import fse from 'f...
the_stack
'use strict'; import { errors, SharedAccessSignature, ConnectionString, httpCallbackToPromise, encodeUriComponentStrict } from 'azure-iot-common'; import { RestApiClient } from 'azure-iot-http-base'; import { QuerySpecification, Query, QueryResult } from './query'; // tslint seems to think AttestationMechanism isn't u...
the_stack
import { inspect } from "util"; import ono, { Ono } from "../../esm"; class EmptyClass {} class CustomClass { // eslint-disable-next-line @typescript-eslint/no-parameter-properties public constructor(public code: number, public message: string) {} } class CustomErrorClass extends Error { // eslint-disable-next...
the_stack
import { Utility } from "@hpcc-js/common"; const TIMEOUT_DEFAULT = 60; function espValFix(val) { if (val === undefined || val === null) { return null; } if (!val.trim) { if (val.Row) { return espRowFix(val.Row); } return val; } const retVal = val.trim(); ...
the_stack
describe("unittests:: services:: PreProcessFile:", () => { function test(sourceText: string, readImportFile: boolean, detectJavaScriptImports: boolean, expectedPreProcess: ts.PreProcessedFileInfo): void { const resultPreProcess = ts.preProcessFile(sourceText, readImportFile, detectJavaScriptImports); ...
the_stack
import React from 'react'; import { act } from 'react-dom/test-utils'; import { mount } from 'enzyme'; import Icon from '../../Icon'; import Layout from '../../Layout'; import Tooltip from '../../Tooltip'; import Menu from '../index'; import collapseMotion from '../../../utils/motion'; import mountTest from '../../../....
the_stack
import fs from 'fs'; import { OnRequestFunction } from 'messaging-api-common'; export type ClientConfig = { accessToken: string; appId?: string; appSecret?: string; version?: string; origin?: string; onRequest?: OnRequestFunction; skipAppSecretProof?: boolean; }; /** * Page Scoped User ID (PSID) of th...
the_stack
import { Component, Input, OnDestroy, OnInit } from '@angular/core'; import { Flow, IFlow } from 'app/shared/model/flow.model'; import { Endpoint, EndpointType } from 'app/shared/model/endpoint.model'; import { FlowService } from './flow.service'; import { EndpointService } from '../endpoint'; import { SecurityService...
the_stack
import * as https from "https"; import Long from "long"; import * as PromisePool from "promise-pool-executor"; import { Readable } from "stream"; import { Credentials } from "df/api/commands/credentials"; import { IDbAdapter, IDbClient, OnCancel } from "df/api/dbadapters/index"; import { parseSnowflakeEvalError } from...
the_stack
import axios from 'axios'; import fs = require('fs'); import path from 'path'; import { GoogleToken } from 'gtoken'; import pLimit from 'p-limit'; import dayjs from 'dayjs'; import Table from 'cli-table3'; import constants = require('../.constants'); var AUTH: any; const FOLDER_TYPE = 'application/vnd.google-apps.fol...
the_stack
import { dispatch } from "d3-dispatch"; const cloudRadians = Math.PI / 180; const cw = 1 << 11 >> 5; const ch = 1 << 11; export function d3Cloud() { const event = dispatch("word", "end"); const cloud: any = {}; let size = [256, 256]; let text = cloudText; let font = cloudFont; let fontSize = ...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Servers } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureAnalysisServices } from "../azureAnalysisS...
the_stack
declare const figma: PluginAPI declare const __html__: string interface PluginAPI { readonly currentPage: PageNode // Root of the current Figma document. readonly root: DocumentNode // API for accessing viewport information. readonly viewport: ViewportAPI // call this once your plugin is finished execut...
the_stack
import React, { useRef, useState, useEffect, useMemo, Fragment } from 'react' import { Box, Button, GridColumn, GridContainer, GridRow, Hidden, Icon, Inline, ModalBase, Stack, Tag, Text, } from '@island.is/island-ui/core' import { TimelineSlice as Timeline } from '@island.is/web/graphql/schema' ...
the_stack
import {MemBuffer, Serializeable} from '../../misc/membuffer'; import {Utility} from '../../misc/utility'; /** * Watchpoint class used by 'watchPointMemory'. */ interface SimWatchpoint { // read/write are counters. They are reference counts and count how many // read/write access points have been set. If 0 then...
the_stack
import { Auto, IPlugin, execPromise, getLernaPackages, inFolder, validatePluginConfiguration, } from "@auto-it/core"; import envCi from "env-ci"; import endent from "endent"; import botList from "@auto-it/bot-list"; import fs from "fs"; import path from "path"; import match from "anymatch"; import on from "...
the_stack
import { EventDispatcher, MOUSE, Quaternion, Vector2, Vector3, PerspectiveCamera, OrthographicCamera } from 'three' class TrackballControls extends EventDispatcher { public enabled = true public screen = { left: 0, top: 0, width: 0, height: 0 } public rotateSpeed = 1.0 public zoomSpeed = 1.2 public panSpee...
the_stack
import React, { ReactElement, useState } from "react"; import { fireEvent, render } from "@testing-library/react"; import { TextField } from "../TextField"; describe("TextField", () => { it("should render correctly", () => { const props = { id: "field" }; const { container, rerender } = render(<TextField {....
the_stack
import React, { useState } from 'react' import LRU from 'lru-cache' import { renderHook, act } from '@testing-library/react-hooks' import MockAdapter from 'axios-mock-adapter' import axios from 'axios' import { ApiProvider } from '../ApiProvider' import { useApi, reducer, fetchApi, handleUseApiOptions } from '../useAp...
the_stack
import { PathSegment } from './../rendering/canvas-interface'; import { PointModel } from '../primitives/point-model'; /** * These utility methods help to process the data and to convert it to desired dimensions */ /** @private */ export function processPathData(data: string): Object[] { let collection: Object[...
the_stack
import { Component, Property, Event, EmitType, closest, Collection, Complex, attributes, detach, Instance, isNullOrUndefined } from '@syncfusion/ej2-base'; import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, select, isVisible } from '@syncfusion/ej2-base'; import { KeyboardEvents, KeyboardEventArgs,...
the_stack
type Function = (...args: any[]) => any export type ExtractFunctions<T> = { [P in keyof T]: T[P] extends Function ? P : never }[keyof T] /** * Unwraps the promise */ type UnWrapPromise<T> = T extends Promise<infer U> ? U : T /** * Shape of the bind callback method */ export type BindCallback<ReturnValue extend...
the_stack
import { jsx } from "@emotion/core"; import * as React from "react"; import { usePositioner } from "./Hooks/use-positioner"; import { useUid } from "./Hooks/use-uid"; import { safeBind } from "./Hooks/compose-bind"; import { useTheme } from "./Theme/Providers"; import { Text } from "./Text"; import { Touchable } from "...
the_stack
// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. declare const __karma__: any; declare const SystemJS: any; // "No stacktrace"" is usually best for app testing. // (Error as any).stackTraceLimit = 0; // Uncomment to get full stacktrace output. Sometimes helpful, usually not. // ...
the_stack
import { html, property, TemplateResult } from 'lit-element'; import { classMap } from 'lit-html/directives/class-map'; import { ComponentMediaQuery, Providers, ProviderState, MgtTemplatedComponent } from '@microsoft/mgt-element'; import { strings } from './strings'; /** * The foundation for creating task based compo...
the_stack
import {DatasetView, IViewSerialization, TableSerialization} from "../datasetView"; import { AggregateDescription, AggregateKind, allAggregateKind, ColumnSortOrientation, CompareDatasetsInfo, Comparison, CreateIntervalColumnMapInfo, ExtractValueFromKeyMapInfo, FindResult, IColumn...
the_stack
import { iif, patch } from '@ngxs/store/operators'; describe('[TEST]: the iif State Operator', () => { it('should return the correct implied null or undefined type', () => { iif(true, null); // $ExpectType StateOperator<null> iif(true, undefined); // $ExpectType StateOperator<undefined> iif(true, null, u...
the_stack
import { DataFrame, DataQueryRequest, Field, FieldConfig, FieldDTO, FieldType, getTimeField, MISSING_VALUE, MutableDataFrame, MutableField, ScopedVars, } from '@grafana/data'; import { getTemplateSrv } from '@grafana/runtime'; import { every, isString, mapValues } from 'lodas...
the_stack
import * as React from 'react'; import { FixedSizeList as List, ListOnScrollProps } from 'react-window'; import ResizeObserver from 'rc-resize-observer'; import classNames from 'classnames'; import { compact } from 'lodash'; import { useIntl } from 'react-intl'; import Button from '@synerise/ds-button'; import { Scroll...
the_stack
import { ref } from '@vue/composition-api'; import { StrictEventEmitter, addEventListener } from '@/lib/events'; import { getLogger } from '@/lib/log'; export type Direction = 'horizontal' | 'vertical'; export const isSplit = (vue: any): vue is { i: Section } => { return vue.$options.name === 'Split'; }; // tslint...
the_stack
* This file contains lots of methods for accessing the remote TableTarget.java class. */ import {DatasetView, IViewSerialization} from "./datasetView"; import { AggregateDescription, BasicColStats, BucketsInfo, CombineOperators, CompareDatasetsInfo, ComparisonFilterDescription, CountWithCo...
the_stack
import {mat4, vec2, vec3, vec4} from 'gl-matrix'; // @ts-ignore import * as Stats from 'stats-js'; import * as DAT from 'dat-gui'; import Square from './geometry/Square'; import Plane from './geometry/Plane'; import OpenGLRenderer from './rendering/gl/OpenGLRenderer'; import Camera from './Camera'; import {gl, setGL} f...
the_stack
import { HTMLAttributes } from 'react'; import { Story } from '../../../../lib/@types/storybook-emotion-10-fixes'; import { asChromaticStory, asPlayground } from '../../../../lib/story-intents'; import { Container } from '../Container/Container'; import { Column } from './Column'; import { Columns, ColumnsProps } from ...
the_stack
import { animate, timeline } from '../../src/main'; import * as chai from 'chai'; import { getEffects } from '../../src/lib/model/effects'; import { getState } from '../../src/lib/store'; const { assert } = chai; describe('basic', () => { it('resolves single target', () => { /* Test code */ const target1 = {...
the_stack
import * as chai from 'chai'; import 'mocha'; import { AbiEncoder, BigNumber } from '../../src/'; import { chaiSetup } from '../utils/chai_setup'; import * as ReturnValueAbis from './abi_samples/return_value_abis'; chaiSetup.configure(); const expect = chai.expect; describe('ABI Encoder: Return Value Encoding/Decod...
the_stack
import { AffectedTaskOccurrence } from "../../Enumerations/AffectedTaskOccurrence"; import { DeleteMode } from "../../Enumerations/DeleteMode"; import { EwsLogging } from "../EwsLogging"; import { EwsServiceXmlReader } from "../EwsServiceXmlReader"; import { EwsServiceXmlWriter } from "../EwsServiceXmlWriter"; import ...
the_stack
import * as d3Hierarchy from 'd3-hierarchy' import * as d3Interpolate from 'd3-interpolate' import * as d3Path from 'd3-path' import * as d3Selection from 'd3-selection' import * as d3Transition from 'd3-transition' import * as _ from 'lodash' import { debounceAndThrottle } from '../rxjs/operators' import { Maybe } fro...
the_stack
require('module-alias/register'); import * as _ from 'lodash'; import * as ABIDecoder from 'abi-decoder'; import * as chai from 'chai'; import * as setProtocolUtils from 'set-protocol-utils'; import { Address } from 'set-protocol-utils'; import { BigNumber } from 'bignumber.js'; import ChaiSetup from '@utils/chaiSetu...
the_stack
import { AST_NODE_TYPES, TSESLint, TSESTree, } from '@typescript-eslint/experimental-utils'; import * as tsutils from 'tsutils'; import * as ts from 'typescript'; import * as util from '../util'; export type Options = [ { ignoreArrowShorthand?: boolean; ignoreVoidOperator?: boolean; }, ]; export typ...
the_stack
import { ethers, network, upgrades, waffle } from "hardhat"; import { Signer } from "ethers"; import chai from "chai"; import { solidity } from "ethereum-waffle"; import "@openzeppelin/test-helpers"; import { MockERC20, MockERC20__factory, MdexFactory, MdexFactory__factory, MdexPair, MdexPair__factory, Md...
the_stack
import { Trans } from "@lingui/macro"; import { MountService } from "foundation-ui"; import * as React from "react"; import { Hooks } from "PluginSDK"; import { Route, hashHistory } from "react-router"; import ApplicationUtil from "#SRC/js/utils/ApplicationUtil"; import AuthStore from "#SRC/js/stores/AuthStore"; imp...
the_stack
import moment from "moment"; import type { KubeJsonApiData, KubeJsonApiDataList, KubeJsonApiListMetadata } from "./kube-json-api"; import { autoBind, formatDuration, hasOptionalTypedProperty, hasTypedProperty, isObject, isString, isNumber, bindPredicate, isTypedArray, isRecord, json } from "../utils"; import type { Ite...
the_stack
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * Operations * __NOTE__: An instance of this class is automatically created for an * instance of the ManagedServiceIdentityClient. */ export interface Operatio...
the_stack
import * as ABIDecoder from "abi-decoder"; import * as compact from "lodash.compact"; import * as moment from "moment"; import * as Web3 from "web3"; import { BigNumber } from "../../../utils/bignumber"; // Wrappers import { DebtKernelContract, DebtOrderDataWrapper, DummyTokenContract, RepaymentRouterC...
the_stack
import { App as AppCore } from './core'; import { AppStore, defaultAppStore } from './lifecycle'; import { app, appCheck, auth, messaging, machineLearning, storage, firestore, database, instanceId, installations, projectManagement, securityRules , remoteConfig, AppOptions, } from '../firebase-namespace-api'; import...
the_stack
import * as fc from '../../../../lib/fast-check'; import { floatNext, FloatNextConstraints } from '../../../../src/arbitrary/_next/floatNext'; import { floatNextConstraints, float32raw, isNotNaN32bits, float64raw, isStrictlySmaller, defaultFloatRecordConstraints, is32bits, } from '../__test-helpers__/Flo...
the_stack
import { isInputObjectType, isInterfaceType, isEnumType, isObjectType, isScalarType, GraphQLSchema, GraphQLField, GraphQLType, GraphQLArgument, GraphQLInputField, } from 'graphql'; import { isString, isObject, isFloat, isNumber, } from '../../../../Common/utils/jsUtils'; import { getUnderlyi...
the_stack
/// <reference types="angular" /> declare namespace mgcrea.ngStrap { /////////////////////////////////////////////////////////////////////////// // Modal // see http://mgcrea.github.io/angular-strap/#/modals /////////////////////////////////////////////////////////////////////////// namespace moda...
the_stack
import {LOG4TS_PROVIDER_SERVICE} from "../main/impl/Log4TSProviderService"; import {Log4TSProvider} from "../main/api/Log4TSProvider"; import {$test, ArgumentFormatterType, DateFormatterType, LogChannel, LogLevel} from "typescript-logging"; describe("Test Log4TSProvider", () => { beforeEach(() => { /* * Cl...
the_stack
import Transaction from "#SRC/js/structs/Transaction"; import Networking from "#SRC/js/constants/Networking"; import Batch from "#SRC/js/structs/Batch"; import { ADD_ITEM, SET, REMOVE_ITEM } from "#SRC/js/constants/TransactionTypes"; const { BRIDGE, HOST, CONTAINER } = Networking.type; import * as Container from "....
the_stack
import { ModelDoc } from '../component/components/doc'; import { ModelParagraph } from '../component/components/paragraph'; import { ModelText } from '../component/components/text'; import { ComponentService } from '../component/service'; import { ConfigServiceStub } from '../config/service.stub'; import { ReplaceChang...
the_stack
import React from 'react'; import createClass from 'create-react-class'; import _, { map } from 'lodash'; import { Meta, Story } from '@storybook/react'; import { Selection, SearchableMultiSelect } from './../../index'; import Resizer from '../Resizer/Resizer'; import { ISearchableMultiSelectProps } from './Searchable...
the_stack
import { Context } from './context/context' import { getAttribute, nodeIs } from './utils/node' import { toPixels } from './utils/misc' import { parseColor, parseFloats } from './utils/parsing' import FontFamily from 'font-family-papandreou' import { SvgNode } from './nodes/svgnode' import { combineFontStyleAndFontWe...
the_stack
import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; export const Sku: msRest.CompositeMapper = { serializedName: "Sku", type: { name: "Composite"...
the_stack
/// <reference path="TypeScriptReferences/jquery/jquery.d.ts" /> /// <reference path="TypeScriptReferences/phonegap/phonegap.d.ts" /> /// <reference path="TypeScriptReferences/leaflet/leaflet.d.ts" /> /// <reference path="TypeScriptReferences/history/history.d.ts" /> /// <reference path="TypeScriptReferences/collection...
the_stack
import { expect } from "chai"; import sinon from "sinon"; import { IModelConnection } from "@itwin/core-frontend"; import { KeySet } from "@itwin/presentation-common"; import { Presentation, SelectionManager } from "@itwin/presentation-frontend"; import { act, renderHook, RenderHookResult } from "@testing-library/react...
the_stack
namespace colibri.core.io { interface IGetProjectFilesData { hash: string; maxNumberOfFiles: number; projectNumberOfFiles: number; rootFile: IFileData; error: string; } export async function apiRequest(method: string, body?: any) { try { const...
the_stack
import { OutcomesConfig, OutcomeAttribution, OutcomeAttributionType, SentUniqueOutcome } from '../../models/Outcomes'; import { NotificationClicked, NotificationReceived } from '../../models/Notification'; import Database from "../../services/Database"; import Log from "../../libraries/Log"; import { Utils } from "../....
the_stack
import Adapt, { BuildData, BuildHelpers, BuiltinProps, childrenIsEmpty, DeferredComponent, gql, ObserveForStatus, SFCBuildProps, waiting, WithChildren} from "@adpt/core"; import { minBy } from "lodash"; import { isArray } from "util"; import { mountedElement } from "../common"; i...
the_stack
import "es6-promise/auto"; import * as Calendar_Contracts from "./Contracts"; import * as Context from "VSS/Context"; import * as Controls from "VSS/Controls"; import * as Controls_Contributions from "VSS/Contributions/Controls"; import * as Controls_Notifications from "VSS/Controls/Notifications"; import * as Controls...
the_stack
import * as arraybuffers from '../../arraybuffers/arraybuffers'; import * as socks_headers from '../../socks/headers'; import * as proxyintegrationtesttypes from './proxy-integration-test.types'; import ProxyIntegrationTester = proxyintegrationtesttypes.ProxyIntegrationTester; import ReceivedDataEvent = proxyintegrati...
the_stack
import { useRef, useMemo, useState } from "react"; import { makeStyles, createStyles } from "@mui/styles"; import { useTheme } from "@mui/material/styles"; import Editor, { useMonaco } from "@monaco-editor/react"; import { useProjectContext } from "contexts/ProjectContext"; import { FieldType } from "constants/fields";...
the_stack
import {Component, ElementRef, Inject, OnInit, ViewChild} from '@angular/core'; import {JsonPipe} from "@angular/common"; import {TestCase} from "../../../models/test-case.model"; import {Page} from "../../../shared/models/page"; import {MobileRecordingComponent} from "./mobile-recording.component"; import {MirroringCo...
the_stack
namespace models { /** Upper bound on the amount of suggestions to generate. */ const MAX_SUGGESTIONS = 12; /** * Additional arguments to pass into the model, in addition to the model * parameters themselves. */ interface TrieModelOptions { /** * How to break words in a phrase. */ wo...
the_stack
import { ArrayExpression, BinaryExpression, CallExpression, ConditionalExpression, Expression, LogicalExpression, MemberExpression, NewExpression, ObjectExpression, SpreadElement, ThisExpression, UnaryExpression } from 'estree'; export function execArrayExpression(exp: ArrayExpression, context:...
the_stack
import * as path from 'path'; import {Subject} from 'rxjs'; import {Promise} from 'bluebird'; import {Map as ImmutableMap} from 'immutable'; import * as browserResolve from 'browser-resolve'; import * as browserifyBuiltins from 'browserify/lib/builtins'; import * as babylon from 'babylon'; import * as postcss from 'pos...
the_stack
import IPackageRegistryEntry from '../../src/interfaces/IPackageRegistryEntry'; import Utils from '../../src/Utils'; chai.should(); describe('V2 Deploy Page', () => { const packageOne: IPackageRegistryEntry = { name: 'mycontract', version: '0.0.1', path: '/package/one', sizeKB: 9000 }; const packageTwo: IPacka...
the_stack
// libraries import React, {Component, createRef} from 'react'; import MapboxGLMap from 'react-map-gl'; import DeckGL from '@deck.gl/react'; import {createSelector} from 'reselect'; import WebMercatorViewport from 'viewport-mercator-project'; import {errorNotification} from 'utils/notifications-utils'; import * as Vis...
the_stack
import { licenseStatusEntityReducer, LicenseStatusEntityInitialState, LicenseStatusEntityState } from './license.reducer'; import { GetLicenseStatus, GetLicenseStatusSuccessExpiringSoon, GetLicenseStatusSuccess, GetLicenseStatusFailure, ApplyLicense, ApplyLicenseSuccess, ApplyLicenseFailure, Reque...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/serviceMappers"; import * as Parameters from "../models/parameters"; import { DataBoxManagementClientContext } from "../dataBoxManagementClientContext"; /** Class representing a Service. */ export clas...
the_stack
// WebRPC description and code-gen version export const WebRPCVersion = "v1" // Schema version of your RIDL schema export const WebRPCSchemaVersion = "v0.4.0" // Schema hash generated from your RIDL schema export const WebRPCSchemaHash = "d44c148ecd843665eba71e66908382e569d8821a" // // Types // export enum Contract...
the_stack
import React, { Component, useState } from "react"; import { Tag, Popover, Tooltip, ConfigProvider, Table, Progress, Button, Modal, Slider, Popconfirm, Checkbox, Skeleton, message } from "antd"; import { LazyMap } from "../../../../utils/LazyMap"; import { Broker, ConfigEntry, Partition, PartitionReassignmentsPartition...
the_stack
import { WebElement } from 'selenium-webdriver'; import { Browser } from './browser'; import { Collection } from './collection'; import { Element } from './element'; import { ConditionNotMatchedError } from './errors/conditionDoesNotMatchError'; import { query } from './queries'; import { predicate } from './utils/pred...
the_stack
import { module, test } from 'qunit'; import { click, visit, currentURL, waitFor } from '@ember/test-helpers'; import { setupApplicationTest } from 'ember-qunit'; import { setupMirage } from 'ember-cli-mirage/test-support'; import { MirageTestContext } from 'ember-cli-mirage/test-support'; import Layer2TestWeb3Strategy...
the_stack
import { triggerEvent, domData } from '@tko/utils' import { computed } from '@tko/computed' import { observable, observableArray } from '@tko/observable' import { applyBindings } from '@tko/bind' import { DataBindProvider } from '@tko/provider.databind' import { options } from '@tko/utils' ...
the_stack
import * as models from '../models'; /* generated type guards */ export function isAcl(arg: any): arg is models.Acl { return ( arg != null && typeof arg === 'object' && // id?: number ( typeof arg.id === 'undefined' || typeof arg.id === 'number' ) && // name?: string ( typeof arg.name === 'undef...
the_stack
// clang-format off import {html, PolymerElement} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'; import {BaseMixin, getSearchManager, SearchManager} from 'chrome://settings/settings.js'; import {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chai_assert.js'; // clang-format on...
the_stack
import PagingProperties from '@DataContracts/PagingPropertiesContract'; import PartialFindResultContract from '@DataContracts/PartialFindResultContract'; import SongApiContract from '@DataContracts/Song/SongApiContract'; import SongContract from '@DataContracts/Song/SongContract'; import IEntryWithIdAndName from '@...
the_stack
import { Field, Label } from "@components/field"; import { act, waitFor } from "@testing-library/react"; import { NumberInput } from "@components/number-input"; import { createRef } from "react"; import { renderWithTheme } from "@jest-utils"; import userEvent from "@testing-library/user-event"; // ***** Behaviors ***...
the_stack
import { AmbientLight, Box3, BufferAttribute, BufferGeometry, Color, DataTexture, HemisphereLight, Material, Matrix3, Mesh, MeshDepthMaterial, MeshLambertMaterial, MeshNormalMaterial, Object3D, Scene, Vector3, } from "three"; import SceneMesh from "./SceneParts/SceneM...
the_stack
import * as vscode from "vscode"; import { Editors } from "./editors"; import { Modes } from "./modes"; import { Recorder } from "./recorder"; import { Register, Registers } from "./registers"; import { StatusBar } from "./status-bar"; import { Menu, validateMenu } from "../api"; import type { Commands } from "../comm...
the_stack
* Resources: * https://promisesaplus.com/ * https://github.com/kriskowal/q */ import Type from "../Types"; import {deferImmediate} from "../Threading/deferImmediate"; import {DisposableBase} from "../Disposable/DisposableBase"; import {InvalidOperationException} from "../Exceptions/InvalidOperationException"; impor...
the_stack
import { observable, action, runInAction } from 'mobx'; import { FsApi, Fs, getFS, File, Credentials, needsConnection, FileID } from '../services/Fs'; import { Deferred } from '../utils/deferred'; import { i18next } from '../locale/i18n'; import { getLocalizedError } from '../locale/error'; import { shell, ipcRenderer ...
the_stack
import { ok, strictEqual } from "assert"; import { addComponent, addEntity, createWorld, entityExists, removeComponent } from "bitecs"; import { Transform } from "../../../src/engine/component/transform"; import { GameState } from "../../../src/engine/GameTypes"; import { createNetworkId, deserializeCreates, des...
the_stack
import util from 'somes'; import * as fs from 'somes/fs'; import * as child_process from 'child_process'; import keys from 'somes/keys'; import path from 'somes/path'; import paths from './paths'; import { exec } from 'somes/syscall'; const uglify = require('./uglify'); const base64_chars = 'ABCDEFGHIJKLMNOPQRSTUVWX...
the_stack
module TDev.RT { export enum SpriteType { Ellipse, Rectangle, Text, Picture, Anchor, } class SpriteContent extends RTValue { constructor() { super() } } //? A sprite //@ icon("fa-rocket") ctx(general,gckey) ...
the_stack
import * as https from "@rill/https"; import * as assert from "assert"; import * as fs from "fs"; import * as getPort from "get-port"; import * as path from "path"; import * as agent from "supertest"; import Rill from "../src"; import { respond } from "./util"; describe("Router", () => { describe("#listen", () => { ...
the_stack
import * as THREE from 'three'; import * as d3 from 'd3'; import type {ColorMap, Point2D, Point3D} from './types'; import {ColorType} from './types'; import {OrbitControls} from 'three/examples/jsm/controls/OrbitControls'; export type ScatterChartOptions = { width: number; height: number; is3D?: boolean;...
the_stack
 module RW.TextureEditor { export class TextureDefinition { private _isEnabled: boolean; public init: boolean; public numberOfImages: number; public babylonTextureType: BabylonTextureType; public propertyInMaterial: string; public canvasId: string; private ...
the_stack
import { Map, Set } from 'immutable' import { BulletRecord, ExplosionRecord, FlickerRecord, MapRecord, PowerUpRecord, ScoreRecord, StageConfig, TankRecord, TextRecord, } from '../types' export enum A { Move = 'Move', Tick = 'Tick', AfterTick = 'AfterTick', AddBullet = 'AddBullet', SetCooldo...
the_stack
import type {Class, ObserverType} from "@swim/util"; import type {MemberFastenerClass} from "@swim/component"; import type {TraitCreator, Trait} from "@swim/model"; import type {PositionGestureInput, ViewCreator} from "@swim/view"; import type {HtmlView} from "@swim/dom"; import type {Graphics} from "@swim/graphics"; i...
the_stack
import type Pose from '../../armature/Pose'; import type { IKChain, IKLink } from "../rigs/IKChain"; //import type { IKData } from '..'; import type { ISolver } from './support/ISolver'; import type Bone from '../.....
the_stack
import * as cp from 'child_process'; import { defaults, noop, startsWith, trimStart } from 'lodash'; import * as readline from 'readline'; import { AsyncSubject, Observable } from 'rxjs'; import { CompositeDisposable, Disposable } from 'ts-disposables'; import { IDriver, IDriverOptions, ILogger, IOmnisharpPlugin } fro...
the_stack
import { AudioPlayerOptions, AudioRecorderOptions, TNSPlayer, TNSRecorder } from 'nativescript-audio'; import * as app from 'tns-core-modules/application'; import { Observable } from 'tns-core-modules/data/observable'; import { File, knownFolders } from 'tns-core-modules/file-system'; import { isAndroid } from 'tns-cor...
the_stack
import * as ajv from "ajv"; import fetch from "cross-fetch"; import * as debug from "debug"; import * as path from "path"; import "url-search-params-polyfill"; import { AgentAuth } from "./agent-auth"; import { BaseEvent, DataPointValue, DataSourceConfiguration, IMindConnectConfiguration, Mapping, ...
the_stack
import * as Constants from "./Constants"; import Layers from "./collections/Layers"; import HistoryStates from "./collections/HistoryStates"; import HistoryState from "./HistoryState"; import { Bounds } from "./objects/Bounds"; import { JPEGSaveOptions, GIFSaveOptions, PNGSaveOptions, BMPSaveOptions, PhotoshopSaveOptio...
the_stack
import { Inject, Injectable, Optional } from '@angular/core'; import { Http, Headers, URLSearchParams } from '@angular/http'; import { RequestMethod, RequestOptions, RequestOptionsArgs } from '@angular/http'; import { Response, ResponseContentType } from '@ang...
the_stack
import { Column, Editors, FieldType, Filters, GridOption, GridStateChange, Metrics, OperatorType, Pagination, } from '@slickgrid-universal/common'; import { GridOdataService, OdataServiceApi, OdataOption } from '@slickgrid-universal/odata'; import { RxJsResource } from '@slickgrid-universal/rxjs-observable'; import { a...
the_stack
import * as React from 'react'; import SelectMimicry from '../SelectMimicry/SelectMimicry'; import { debounce, setRef } from '../../lib/utils'; import { classNames } from '../../lib/classNames'; import { NativeSelectProps } from '../NativeSelect/NativeSelect'; import CustomScrollView from '../CustomScrollView/CustomScr...
the_stack
import { Data } from '../data'; import { Visitor } from '../visitor'; import { VectorType } from '../interfaces'; import { Schema, Field } from '../schema'; import { DataType, Dictionary, Bool, Null, Utf8, Binary, Decimal, FixedSizeBinary, List, FixedSizeList, Map_, Struct, Float, Float16, Float32, Float64,...
the_stack