text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import { CancelablePromise, createCancelablePromise } from 'vs/base/common/async'; import { onUnexpectedError } from 'vs/base/common/errors'; import { KeyChord, KeyCode, KeyMod } from 'vs/base/common/keyCodes'; import { DisposableStore } from 'vs/base/common/lifecycle'; import { ICodeEditor } from 'vs/editor/browser/ed...
the_stack
import React, { useEffect, useState } from 'react'; import { RouteComponentProps, withRouter } from 'react-router'; import Editor from '../components/editor'; import { languageToEditorMode } from '../config/mappings'; import API from '../utils/API'; import { debounce } from '../utils/utils'; import SplitPane from 'reac...
the_stack
import { Properties } from '@posthog/plugin-scaffold' import * as Sentry from '@sentry/node' import crypto from 'crypto' import { ProducerRecord } from 'kafkajs' import { DateTime } from 'luxon' import { defaultConfig } from '../../config/config' import { KAFKA_PERSON } from '../../config/kafka-topics' import { BasePe...
the_stack
import { Component, Output, EventEmitter, Input, HostListener, ViewChildren, QueryList, HostBinding, DoCheck, OnInit } from '@angular/core'; import { ICalendarDate, isDateInRanges } from '../../calendar/calendar'; import { NG_VALUE_ACCESSOR } from '@angular/forms'; import { IgxDa...
the_stack
import type { TVec3, TVec4, TVec8 } from '@oito/types'; class DualQuat extends Float32Array{ //#region STATIC VALUES static BYTESIZE = 8 * Float32Array.BYTES_PER_ELEMENT; //#endregion //////////////////////////////////////////////////////// //#region CONSTRUCTORS constructor() constructor( q:...
the_stack
// To run the test, use command "tsc stamplay.tests.ts" // Note that the below examples are in the same order as they appear on the Stamplay docs website import * as Stamplay from "./stamplay"; var car = { make: "Volkswagen", model: "Jetta", year: 2013, color: "silver", top_speed: 140 } Stamplay...
the_stack
import { Bip39, EnglishMnemonic, HdPath, pathToString, Random, Secp256k1, Secp256k1Keypair, sha256, Slip10, Slip10Curve, stringToPath, } from "@cosmjs/crypto"; import { Bech32, fromBase64, fromUtf8, toBase64, toUtf8 } from "@cosmjs/encoding"; import { assert, isNonNullObject } from "@cosmjs/utils"...
the_stack
import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** * Represents a TargetHttpsProxy resource, which is used by one or more * global forwarding rule to route incoming HTTPS requests to a URL map. * * To get more information about TargetHttpsProxy, see: * * * [API documentation...
the_stack
import {TypedObjNode} from './_Base'; import {Group} from 'three/src/objects/Group'; import {FlagsControllerD} from '../utils/FlagsController'; import {NodeParamsConfig, ParamConfig} from '../utils/params/ParamsConfig'; import {BaseNodeType} from '../_Base'; import {HierarchyController} from './utils/HierarchyControlle...
the_stack
import { generateSubstepItem } from '../generateSubstepItem' import { makeInitialRobotState, makeContext, InvariantContext, RobotState, EngageMagnetArgs, DisengageMagnetArgs, } from '@opentrons/step-generation' import { THERMOCYCLER_STATE } from '../../constants' import { LabwareNamesByModuleId, StepArgsAnd...
the_stack
import { AfterViewInit, ApplicationRef, ChangeDetectorRef, Component, ComponentRef, Directive, ElementRef, EventEmitter, HostListener, Injector, Input, OnChanges, OnDestroy, Optional, Output, SimpleChanges, SkipSelf, TemplateRef, Type, ViewChil...
the_stack
import { TestBed } from '@angular/core/testing'; import { ObjectFormValidityChangeEvent } from 'app-events/app-events'; import { EventBusGroup, EventBusService } from 'app-events/event-bus.service'; import { importAllAngularServices } from 'tests/unit-test-utils.ajs'; describe('RuleEditorComponent', () => { importAl...
the_stack
import { Container } from './di.container'; import { IDiEntry, IServiceIdentifier } from './di.shared'; import { ValidatorUtils } from '../utils/validator.utils'; import { ClassParameter } from '../utils/typescript.utils'; import { ArrayUtils } from '../utils/array.utils'; export class DiService { public static read...
the_stack
import { View } from '..'; // Requires import { ViewHelper } from './view-helper-common'; import { iOSNativeHelper, layout } from '../../../../utils'; import { Trace } from '../../../../trace'; export * from './view-helper-common'; const majorVersion = iOSNativeHelper.MajorVersion; @NativeClass class UILayoutViewCo...
the_stack
import { assert } from '@canvas-ui/assert' import { Point, Rect, Size } from '../math' import { HitTestResult } from './hit-test' import { PaintingContext } from './painting-context' import { RenderBox } from './render-box' import type { RenderContainer } from './render-container' import { ParentData, RenderObject, Vis...
the_stack
import Constants from "expo-constants"; import React from "react"; import { Animated, Easing, StyleSheet, Text, TouchableWithoutFeedback, View, Platform, } from "react-native"; import { connect } from "react-redux"; import { dispatch } from "../rematch/store"; import { useSafeArea } from "react-native-saf...
the_stack
/// <reference types="node" /> import * as fs from "fs"; export interface SetupOptions { EV_KEY: any[]; } export interface CreateOptions { name: string; id: CreateID; } export interface CreateID { bustype: number; vendor: number; product: number; version: number; ff_effects_max?: number; absmax?: ...
the_stack
export const themeDataBase = { "lf-active-icon": "#3578E5", "lf-attachment-footer-background": "#F2F3F5", "lf-black": "#000000", "lf-black-alpha-05": "rgba(0, 0, 0, 0.05)", "lf-black-alpha-10": "rgba(0, 0, 0, 0.1)", "lf-black-alpha-15": "rgba(0, 0, 0, 0.15)", "lf-black-alpha-20": "rgba(0, 0, 0, 0.2)", "...
the_stack
'use strict'; import URI from 'vs/base/common/uri'; import {readonly, illegalArgument} from 'vs/base/common/errors'; import {IdGenerator} from 'vs/base/common/idGenerator'; import Event, {Emitter} from 'vs/base/common/event'; import {TPromise} from 'vs/base/common/winjs.base'; import {IThreadService} from 'vs/workbenc...
the_stack
import { from } from 'rxjs'; import { throwError } from 'rxjs/internal/observable/throwError'; import { CacheMissError } from '../src/cache-bridge/cache-miss-error'; import { Cache } from '../src/cache/cache'; import { Client } from '../src/client/client'; import { DataListContainer } from '../src/client/data-list-con...
the_stack
import { A } from '@ember/array'; import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render, find, settled } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; //@ts-ignore import { initialize as injectC3Enhancements } from '@yavin/c3/initializers/inj...
the_stack
import { t } from 'ttag'; import SimpleSchema from 'simpl-schema'; import './SimpleSchemaExtensions'; import { PersonalProfile, PersonalProfileSchema } from './PersonalProfile'; import { Entrance, EntranceSchema } from './Entrance'; import { Restroom, RestroomSchema } from './Restroom'; import { Staff, StaffSchema } ...
the_stack
import * as i18n from '../../../../core/i18n/i18n.js'; import * as Platform from '../../../../core/platform/platform.js'; import * as SDK from '../../../../core/sdk/sdk.js'; import * as Formatter from '../../../../models/formatter/formatter.js'; import * as JavaScriptMetaData from '../../../../models/javascript_metadat...
the_stack
import { fetchAndThrowOnError } from './util'; import * as fsx from 'fs-extra'; import * as path from "path"; import yaml = require('js-yaml'); import * as colors from 'colors'; const CURRENT_EXCEL_RELEASE = 14; const OLDEST_EXCEL_RELEASE_WITH_CUSTOM_FUNCTIONS = 9; const CURRENT_OUTLOOK_RELEASE = 10; const CURRENT_WOR...
the_stack
import { ObjectType, ElemID, InstanceElement, Element, BuiltinTypes, isInstanceElement, ReferenceExpression, ListType } from '@salto-io/adapter-api' import { extractStandaloneFields } from '../../../src/elements/ducktype/standalone_field_extractor' const ADAPTER_NAME = 'myAdapter' describe('Extract standalone fields'...
the_stack
import * as utils from '../util/utils' import { EVENT, RecordMessage } from '../constants' import { RecordCore, WriteAckCallback } from './record-core' import { Emitter } from '../util/emitter' export class List extends Emitter { public debugId = this.record.getDebugId() private wrappedFunctions: Map<Function...
the_stack
import { LuaArray, tonumber, pairs, LuaObj } from "@wowts/lua"; import { GetTime, TalentId, SpellId } from "@wowts/wow-mock"; import { find } from "@wowts/string"; import { pow } from "@wowts/math"; import { OvaleClass } from "../Ovale"; import { StateModule } from "../engine/state"; import { OvaleAuraClass } from "./A...
the_stack
import * as path from 'path'; import { DisposableObject } from './pure/disposable-object'; import { Event, EventEmitter, ProviderResult, TreeDataProvider, TreeItem, Uri, window, env, } from 'vscode'; import * as fs from 'fs-extra'; import { DatabaseChangedEvent, DatabaseItem, DatabaseManager, } f...
the_stack
import { AddonModAssignAssign, AddonModAssignSubmission, AddonModAssignPlugin, AddonModAssignProvider, AddonModAssign, } from '@addons/mod/assign/services/assign'; import { AddonModAssignHelper } from '@addons/mod/assign/services/assign-helper'; import { AddonModAssignOffline, AddonModAssignSubmissi...
the_stack
import WebSocket from 'isomorphic-ws' import { XrpError, XrpErrorType } from '../shared' import { WebSocketReadyState, RippledMethod, WebSocketRequest, SubscribeRequest, AccountLinesRequest, GatewayBalancesRequest, AccountOffersRequest, RipplePathFindRequest, WebSocketResponse, WebSocketFailureRespo...
the_stack
* User storage format: * { * type: "matrix|remote", * id: "user_id|remote_id", * data: { * .. matrix-specific info e.g. display name .. * .. remote specific info e.g. IRC username .. * } * } * Examples: * { * type: "matrix", * id: "@foo:bar", * data: { * localpart: "foo", //...
the_stack
import { BehaviorSubject } from "rxjs" import { gql } from "graphql-tag" import pull from "lodash/pull" import remove from "lodash/remove" import { translateToNewRequest } from "../types/HoppRESTRequest" import { TeamCollection } from "./TeamCollection" import { TeamRequest } from "./TeamRequest" import { rootCollect...
the_stack
import { listenStylesheetChange } from '../../Api/app'; import Storage from '../../Api/storage'; import { CustomTheme, Theme } from '../../Typings/theme'; /** * Detect system theme * @returns {string} */ const detectDefaultTheme = (): string => { if (window.matchMedia && window.matchMedia('(prefers-color-scheme: da...
the_stack
(() => { swan.request({ url: 'https://smartprogram.baidu.com/xxx', // 仅为示例,并非真实的接口地址 method: 'GET', dataType: 'json', data: { key: 'value' }, header: { 'content-type': 'application/json' // 默认值 }, success(res) { cons...
the_stack
import { DOMWidgetModel, DOMWidgetView, ISerializers } from '@jupyter-widgets/base'; import { MODULE_NAME, MODULE_VERSION } from './version'; import '../style/base.css' import * as React from "react"; import * as ReactDOM from "react-dom"; import _ from 'lodash'; import {Tabs,Tab} from 'react-bootstrap'; import...
the_stack
* @module MarkupTools */ // cspell:ignore rtmp stmp import { Point3d, Vector3d } from "@itwin/core-geometry"; import { BeButtonEvent, CoordinateLockOverrides, CoreTools, EventHandled, IModelApp, QuantityType, ToolAssistance, ToolAssistanceImage, ToolAssistanceInputMethod, ToolAssistanceInstruction, ToolAssistanc...
the_stack
import { expect } from "chai"; import { IModelConnection, SnapshotConnection } from "@itwin/core-frontend"; import { ContentSpecificationTypes, Field, KeySet, NestedContentField, RelationshipDirection, RelationshipMeaning, Ruleset, RuleTypes, } from "@itwin/presentation-common"; import { Presentation } from "@itwin/p...
the_stack
import Tooltip from 'rc-tooltip' import * as React from 'react' import { DragElementWrapper, DropTarget, DropTargetCollector, DropTargetConnector, DropTargetMonitor, DropTargetSpec, } from 'react-dnd' import { MeteorCall } from '../../lib/api/methods' import { PubSub } from '../../lib/api/pubsub' import { StatusR...
the_stack
import 'chrome://resources/cr_elements/cr_button/cr_button.m.js'; import 'chrome://resources/cr_elements/cr_dialog/cr_dialog.m.js'; import 'chrome://resources/cr_elements/cr_tabs/cr_tabs.js'; import 'chrome://resources/cr_elements/shared_vars_css.m.js'; import 'chrome://resources/polymer/v3_0/iron-pages/iron-pages.js';...
the_stack
import Vue, {VueConstructor, PropType} from 'vue' import {withKnobs, object} from '@storybook/addon-knobs' import * as uiv from 'uiv' import {RundeckVcr, Cassette} from '@rundeck/client/dist/util/RundeckVcr' Vue.use(uiv) import LogViewer from './logViewer.vue' import { ExecutionLog } from '../../utilities/Execution...
the_stack
import * as _ from 'underscore' import * as jQuery from 'jquery' // Initial Setup // ------------- declare global { interface Window { Backbone : any } function attachEvent( a, b ); function detachEvent( a, b ); } // Save the previous value of the `Backbone` variable, so that it can be // resto...
the_stack
import * as assert from 'assert'; import { VSBufferReadableStream, newWriteableBufferStream, VSBuffer, streamToBuffer, bufferToStream, readableToBuffer, VSBufferReadable } from 'vs/base/common/buffer'; import { CancellationToken } from 'vs/base/common/cancellation'; import { Emitter } from 'vs/base/common/event'; impor...
the_stack
import { Portal, TemplatePortal } from '@angular/cdk/portal'; import { AfterViewInit, Component, ComponentFactory, ComponentFactoryResolver, ComponentRef, OnDestroy, TemplateRef, ViewChild, ViewContainerRef, } from '@angular/core'; import moment from 'moment'; import { Observable, of } from 'rxjs'; im...
the_stack
import * as fs from "fs-extra"; import * as path from "path"; import * as commander from "commander"; import * as object from "./common/object"; import * as utils from "./common/utils"; import * as nodeUtils from "./common/nodeUtils"; import * as dbft from "./format/dragonBonesFormat"; import * as spft from "./format/s...
the_stack
import { HttpException, HttpStatus, Injectable, Logger } from '@nestjs/common' import { HefengConfig } from 'life-helper-config' import { COMMON_SERVER_ERROR } from 'src/common/errors.constant' import { request } from 'src/common/http' import { INVALID_LOCATION } from './hefeng-error.constant' import { AirDaily...
the_stack
import { Component, Input, Output, Pipe, PipeTransform, ViewChild, EventEmitter, OnInit, ChangeDetectionStrategy } from '@angular/core'; import { Validators, FormGroup, FormArray, FormBuilder } from '@angular/forms'; import { ModalDirective, ModalOptions } from 'ngx-bootstrap'; import { SnmpDeviceService } from '../sn...
the_stack
import { isObject, isPromise, isBoolean, RefTyped, wrap, unwrap, NO_OP, } from "../utils"; import { ref, Ref, watch, computed, reactive, UnwrapRef } from "../api"; type ValidatorFunc<T, TContext = any> = ( model: T, ctx: TContext ) => boolean | Promise<boolean>; type ValidatorObject<TValidator exten...
the_stack
* This module provides the APIs to Silabs Simplicity Studio's Jetty server. * */ // dirty flag reporting interval const DIRTY_FLAG_REPORT_INTERVAL_MS = 1000 const UC_COMPONENT_STATE_REPORTING_INTERVAL_ID = 6000 import axios, { AxiosPromise, AxiosResponse } from 'axios' import * as env from '../util/env' import * as ...
the_stack
import { Signer, TypedDataSigner } from '@ethersproject/abstract-signer'; import { BigNumber } from '@ethersproject/bignumber'; import { hexDataLength, hexDataSlice } from '@ethersproject/bytes'; import type { BaseProvider } from '@ethersproject/providers'; import type { ContractTransaction } from '@ethersproject/contr...
the_stack
import { fetcher, IndexedFormula, NamedNode, sym } from 'rdflib' import { ACLbyCombination, readACL } from './acl' import * as widgets from '../widgets' import * as ns from '../ns' import { AccessController } from './access-controller' import { AgentMapMap, ComboList, PartialAgentTriple } from './types' import { AddAge...
the_stack
import { Component, Input, OnChanges, ViewChild, ElementRef, SimpleChanges, OnInit } from '@angular/core'; import * as d3 from 'd3'; import { DayPercentage } from 'app/entities/desktop/desktop.model'; export interface MarginObject { top: number; bottom: number; right: number; left: number; } @Component({ ...
the_stack
import {TypedSopNode} from './_Base'; import { AttribClassMenuEntries, AttribTypeMenuEntries, AttribClass, AttribType, ATTRIBUTE_CLASSES, ATTRIBUTE_TYPES, } from '../../../core/geometry/Constant'; import {CoreAttribute} from '../../../core/geometry/Attribute'; import {CoreObject} from '../../../core/geometry/Obje...
the_stack
import * as React from 'react'; import PropTypes from 'prop-types'; import { isEqual, find } from 'lodash'; import ReactSelect, { components as Components, createFilter } from 'react-select'; import CreatableSelect from 'react-select/creatable'; import Icon from './Icon'; export const CONTROL_CLASS = 'common-select-c...
the_stack
import { Component, ElementRef, NgZone, Input, OnDestroy, ChangeDetectionStrategy, Inject, ViewChild } from '@angular/core'; import { normalizePassiveListenerOptions } from '@angular/cdk/platform'; import { Style, WithStyles, StyleRenderer, lyl } from '@alyle/ui'; import { STYLES, LyImageCropper } from './image-cropper...
the_stack
type ErrorWithCode = Error & { code: number }; type MaybeErrorWithCode = ErrorWithCode | null | undefined; const createErrorFromCodeLookup: Map<number, () => ErrorWithCode> = new Map(); const createErrorFromNameLookup: Map<string, () => ErrorWithCode> = new Map(); /** * InstructionUnpackError: 'Failed to unpack inst...
the_stack
import * as _ from 'lodash'; import React, { Component } from 'react'; import './index.css'; import { Trace } from '../../../types/trace'; import HeaderTable from './HeaderTable'; import MainTableData from './MainTableData'; import DetailTableData from './DetailTableData'; import TraceStatisticsHeader from './TraceStat...
the_stack
import 'lit/experimental-hydrate-support.js'; import {html, noChange, nothing, Part} from 'lit'; import { directive, Directive, DirectiveParameters, DirectiveResult, PartInfo, PartType, } from 'lit/directive.js'; import {repeat} from 'lit/directives/repeat.js'; import {guard} from 'lit/directives/guard.js'...
the_stack
import { Injectable } from '@angular/core'; import { BehaviorSubject, Observable, of as observableOf } from 'rxjs'; import { map, merge, mergeMap, scan } from 'rxjs/operators'; import { findIndex } from 'lodash'; import { LOAD_MORE_NODE, LOAD_MORE_ROOT_NODE, TreeviewFlatNode, TreeviewNode } from './vocabulary...
the_stack
import { Commitment, PedersenParams } from '../commit/pedersen.js' import { Group, hashPoints } from '../curves/group.js' import { MultiMult, Relation } from '../curves/multimult.js' import { PointAddProof, aggregatePointAdd, provePointAdd } from './pointAdd.js' import { isOdd, rndRange } from '../bignum/big.js' import...
the_stack
import Jasmine = require('jasmine') const jasmine = new Jasmine({}) jasmine.randomizeTests(false) import { Crypto } from '@peculiar/webcrypto' (global as any).crypto = new Crypto() import fetch from 'node-fetch' import * as OracleSdk from '@keydonix/uniswap-oracle-sdk' import { keccak256 } from '@zoltu/ethereum-crypt...
the_stack
import { Subject } from "rxjs"; import { Alignment } from "../../../viewer/enums/Alignment"; import { PolygonGeometry } from "../geometry/PolygonGeometry"; import { VertexGeometry } from "../geometry/VertexGeometry"; import { OutlineTagOptions } from "../interfaces/OutlineTagOptions"; import { Tag } from "./Tag"; imp...
the_stack
import { EncodeOptions } from '../shared/meta'; import type WorkerBridge from 'client/lazy-app/worker-bridge'; import { h, Component } from 'preact'; import { inputFieldCheckedAsNumber, inputFieldValueAsNumber, preventDefault, } from 'client/lazy-app/util'; import * as style from 'client/lazy-app/Compress/Options...
the_stack
import { CPU } from './cpu'; import { avrInstruction } from './instruction'; import { assemble } from '../utils/assembler'; const r0 = 0; const r1 = 1; const r2 = 2; const r3 = 3; const r4 = 4; const r5 = 5; const r6 = 6; const r7 = 7; const r8 = 8; const r16 = 16; const r17 = 17; const r18 = 18; const r19 = 19; const...
the_stack
import * as React from "react"; import { ConfigurationPropertyValue, ConfigurationProperty, TokenPluralization, buildConfigurationPropertyValue, makeUniqueId, PropertyPreview, } from "@codotype/core"; import classnames from "classnames"; import { FontAwesomeIcon } from "@fortawesome/react-fontaw...
the_stack
import CustomListener from "../../utilities/CustomListener"; import { IRequestMaintenanceProps } from './components/IRequestMaintenanceProps'; import RequestMaintenance from './components/RequestMaintenance'; import { IPropertyPaneConfiguration, PropertyPaneDropdown, PropertyPaneTextField, PropertyPaneToggle } from '@...
the_stack
import { createElement } from '@syncfusion/ej2-base'; import { Diagram } from '../../../src/diagram/diagram'; import { NodeModel } from '../../../src/diagram/objects/node-model'; import { ShadowModel, RadialGradientModel, StopModel } from '../../../src/diagram/core/appearance-model'; import { Canvas } from '../../../sr...
the_stack
export type ScriptEnv = typeof scriptenv declare namespace scriptenv { // // The Scripter environment. // // What's declared here is available to scripts in their global namespace. // // symbolic type aliases type int = number type float = number type byte = number type bool = boolean /** Outputs a message to t...
the_stack
import * as React from 'react'; import { createRef } from "office-ui-fabric-react/lib/Utilities"; import styles from './GraphCalendar.module.scss'; import * as strings from "GraphCalendarWebPartStrings"; import { IGraphCalendarProps } from './IGraphCalendarProps'; import { MSGraphClient } from "@microsoft/sp-http"; imp...
the_stack
module android.text { import KeyEvent = android.view.KeyEvent; export class InputType { /** * Mask of bits that determine the overall class * of text being given. Currently supported classes are: * {@link #TYPE_CLASS_TEXT}, {@link #TYPE_CLASS_NUMBER}, * {@link #TYPE...
the_stack
import { BaseResource, CloudError } from "ms-rest-azure"; import * as moment from "moment"; export { BaseResource, CloudError }; /** * Resource properties. */ export interface ProxyResource extends BaseResource { /** * Resource ID */ readonly id?: string; /** * Resource name. */ readonly na...
the_stack
import { Post } from 'app/entities/metis/post.model'; import { PostService } from 'app/shared/metis/post.service'; import { BehaviorSubject, map, Observable, ReplaySubject, tap } from 'rxjs'; import { HttpResponse } from '@angular/common/http'; import { User } from 'app/core/user/user.model'; import { AccountService } ...
the_stack
import {IConstant} from "./i-constant"; import tempDirectory from "temp-dir"; import {join} from "crosspath"; import {ALL_CONTEXTS, WINDOW_CONTEXT, WINDOW_NODE_CONTEXT, WINDOW_WORKER_CONTEXT} from "../polyfill/polyfill-context"; import pkg from "../../package.json"; import {booleanize} from "../api/util"; const tempRo...
the_stack
import React, { useState, useEffect, useCallback } from 'react'; import Button from '@material-ui/core/Button'; import sumBy from 'lodash/sumBy' import { registerComponent, Components, getFragment } from '../../lib/vulcan-lib'; import { useUpdate } from '../../lib/crud/withUpdate'; import { updateEachQueryResultOfType,...
the_stack
import { CancellationToken, ExtensionContext, NotebookCellExecution, NotebookCellOutput, NotebookCellOutputItem } from 'vscode'; import { getNotebookCwd, registerDisposable } from '../utils'; import { CellExecutionState } from './types'; import { spawn } from 'child_process'; import type { Terminal ...
the_stack
export const TERRAIN_LOD_VERTS = 33; export const TERRAIN_LOD_TILES = 32; export const TERRAIN_LOD_LEVELS = 4; export const TERRAIN_LOD_NORTH_INDEX = 0; export const TERRAIN_LOD_SOUTH_INDEX = 1; export const TERRAIN_LOD_WEST_INDEX = 2; export const TERRAIN_LOD_EAST_INDEX = 3; export const TERRAIN_LOD_MAX_DISTANCE = 100...
the_stack
import QlogConnection from '@/data/Connection'; import * as d3 from 'd3'; import * as qlog from '@/data/QlogSchema'; import StreamGraphDataHelper from './MultiplexingGraphDataHelper'; export default class MultiplexingGraphD3WaterfallRenderer { public containerID:string; public rendering:boolean = false; ...
the_stack
import { arrayBuffer2HexArray, recordAllocations, makeCarrier, } from "../testUtils"; import { linkedListItemInsert, linkedListItemRemove, initLinkedList, linkedListLowLevelIterator, linkedListGetValue, linkedListGetPointersToFree, // LINKED_LIST_ITEM_MACHINE } from "./linkedList"; describe("Linke...
the_stack
import { GeoCoordinates, mercatorProjection, Projection, sphereProjection } from "@here/harp-geoutils"; import { expect } from "chai"; import * as THREE from "three"; import { CameraUtils } from "../lib/CameraUtils"; import { TiltViewClipPlanesEvaluator } from "../lib/ClipPlanesEvaluator"; import { Map...
the_stack
import {Collection} from '../collections'; import {Model} from './model'; import * as angular from 'angular'; import * as Uuid from 'uuid'; describe('Model: Model', function () { let $rootScope, $httpBackend, $resource, mocks, v4Orig; beforeEach(function () { angular.mock.module('bi.core.internal'); v4Or...
the_stack
import type {Mutable, Class, Dictionary, MutableDictionary} from "@swim/util"; import {MemberFastenerClass, Provider, Component, ComponentRef, ComponentSet} from "@swim/component"; import {FileRef} from "@swim/sys"; import type {Workspace} from "../workspace/Workspace"; import {Scope} from "../scope/Scope"; import {Tas...
the_stack
import { Directive, Input, ElementRef, Renderer2, NgModule, Output, EventEmitter, Inject, LOCALE_ID, OnChanges, SimpleChanges, HostListener, OnInit } from '@angular/core'; import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors, NG_VALIDATORS, NG_VALUE_ACCESSOR, } from '@angular/forms'; im...
the_stack
import * as argparse from 'argparse'; import * as fs from 'fs'; import * as path from 'path'; import assert from 'assert'; import csvstringify from 'csv-stringify'; import JSONStream from 'JSONStream'; import * as StreamUtils from '../../../lib/utils/stream-utils'; import { argnameFromLabel } from './utils'; import { C...
the_stack
import * as fs from 'fs'; import * as os from 'os'; import * as path from 'path'; import {expect} from 'chai'; import * as sinon from 'sinon'; import {vscode} from '../utils'; import PersistentSettings from '../../src/lib/persistent-settings'; import {IState} from '../../typings/interfaces/persistent-settings'; const ...
the_stack
namespace LiteMol.Viewer.PDBe.Data { "use strict"; import Bootstrap = LiteMol.Bootstrap; import Entity = Bootstrap.Entity; import Transformer = Bootstrap.Entity.Transformer; import Tree = Bootstrap.Tree; import Transform = Tree.Transform; import Visualization = Bootstrap.V...
the_stack
import * as chai from 'chai'; import * as sinonChai from 'sinon-chai' import { spy } from 'sinon' chai.use(sinonChai); const expect = chai.expect import * as Parser from 'storyboard-lang' import checkPredicate from '../src/predicate' import keyPathify from '../src/keyPathify' // TODO: We have no tests for [unless fo...
the_stack
import * as cdk from '@aws-cdk/core'; import * as iam from '@aws-cdk/aws-iam'; import * as sns from '@aws-cdk/aws-sns'; import * as cw from '@aws-cdk/aws-cloudwatch'; import * as cwa from '@aws-cdk/aws-cloudwatch-actions'; import * as cwe from '@aws-cdk/aws-events'; import * as cwl from '@aws-cdk/aws-logs'; import * as...
the_stack
import child_process from "child_process"; import path from "path"; import fs from "fs-extra"; import { MacAddress } from "hap-nodejs"; import { IpcOutgoingEvent, IpcService } from "./ipcService"; import { ExternalPortService } from "./externalPortService"; import { HomebridgeAPI, PluginType } from "./api"; import { H...
the_stack
import React, { useState, useRef, useEffect, useCallback } from "react" import ReactDOM from "react-dom" import { Script } from "./script" import { db } from "./data" import { scriptsData } from "./script-data" import { exportAllScripts } from "./script-export" import { editor } from "./editor" import { EventEmitter } ...
the_stack
import chai from 'chai' import chaiAsPromised from 'chai-as-promised' import { AwsKmsMrkAwareSymmetricKeyringClass } from '../src/kms_mrk_keyring' import { NodeAlgorithmSuite, AlgorithmSuiteIdentifier, KeyringTraceFlag, NodeDecryptionMaterial, EncryptedDataKey, Keyring, Newable, } from '@aws-crypto/materi...
the_stack
import { EarthConstants, sphereProjection } from "@here/harp-geoutils"; import { Math2D } from "@here/harp-utils"; import * as THREE from "three"; import { CameraUtils } from "./CameraUtils"; import { MapViewUtils } from "./Utils"; const twoPi = Math.PI * 2; // Keep counter clockwise order. export enum CanvasSide { ...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { namespace Formmsfp_surveyresponse_Information { interface Header extends DevKit.Controls.IHeader { /** Unique identifier of the user or team who owns the activity. */ OwnerId: DevKit.Controls.Lookup; /** Priority of the activity. */...
the_stack
import { CHAIN_ID_BSC, CHAIN_ID_ETH, createNonce, hexToUint8Array, nativeToHexString, parseSequenceFromLogEth, TokenImplementation__factory, } from "@certusone/wormhole-sdk"; import { formatUnits, parseUnits } from "@ethersproject/units"; import { Button, Container, makeStyles, Paper, Typography...
the_stack
import {Finding, Severity, Type} from './finding'; /** * Content Security Policy object. * List of valid CSP directives: * - http://www.w3.org/TR/CSP2/#directives * - https://www.w3.org/TR/upgrade-insecure-requests/ */ export class Csp { directives: Record<string, string[]|undefined> = {}; /** * Clones ...
the_stack
import * as tf from '@tensorflow/tfjs'; import { chunk, flatMapDeep } from 'lodash'; import * as types from '../../../types'; import { EmbeddingsModel } from '../embeddings/EmbeddingsModel'; import { TimeSeriesAttention } from '../TimeSeriesAttention'; export default class NerModel extends types.PipelineModel implemen...
the_stack
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** * Azure resource */ export interface Resource extends BaseResource { /** * Specifies the resource ID. * **NOTE: This property w...
the_stack
import {mat4, ReadonlyVec3, vec3} from 'gl-matrix'; import {quatLookRotation} from '../../../utils/math/math'; import Camera3D from '../../../utils/render/camera/Camera3D'; import Renderer from '../../../utils/render/Renderer'; import ObjLoader from '../ObjLoader'; import {BodyPart} from './BodyPart'; import SkeletonMo...
the_stack
import { DebugSession, InitializedEvent, TerminatedEvent, StoppedEvent, BreakpointEvent, OutputEvent, ThreadEvent, Event, Thread, StackFrame, Scope, Source, Handles, Breakpoint } from 'vscode-debugadapter' import { DebugProtocol } from 'vscode-debugprotocol' import { readFileSync } from 'fs' import { basename ...
the_stack
import { errors } from '@tanker/core'; import type { Tanker, b64string } from '@tanker/core'; import { getPublicIdentity, createIdentity } from '@tanker/identity'; import { expect, uuid } from '@tanker/test-utils'; import type { AppHelper, AppProvisionalUser, TestArgs } from './helpers'; import { expectDecrypt } from ...
the_stack
import { TokenReader, IRenderSettings, IRenderable, makeRenderSettings, ScriptLanguages, defaultRenderSettings } from "../../../helpers"; import { JSToken, stringToTokens } from "../../javascript"; import { ValueTypes } from "../value/value"; import { TypeSignature } from "../types/type-signature"; import { StatementTy...
the_stack
import * as support from "../support"; const opt = { err: true }; support.runTest("String Operators", { $concat: [ [[null, "abc"], null], [["a", "-", "c"], "a-c"], ], $indexOfBytes: [ [["cafeteria", "e"], 3], [["cafétéria", "é"], 3], [["cafétéria", "e"], -1], [["cafétéria", "t"], 4], //...
the_stack