text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import {Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild} from '@angular/core'; import {fabric} from "fabric"; import {MobileElementRect} from "../../models/mobile-element-rect.model"; import {DevicesService} from "../../services/devices.service"; import {NotificationsService, NotificationType} fro...
the_stack
import { CircuitValue } from './circuit_value'; import { Bool, Field, Circuit, Poseidon, AsFieldElements } from '../snarky'; let indexId = 0; export class IndexBase { id: IndexId; value: Array<Bool>; constructor(value: Array<Bool>) { this.value = value; this.id = indexId++; } } class MerkleProofBase...
the_stack
export const description = ` Basic command buffer rendering tests. `; import { makeTestGroup } from '../../../../common/framework/test_group.js'; import { now } from '../../../../common/util/util.js'; import { GPUTest } from '../../../gpu_test.js'; import { checkElementsEqual } from '../../../util/check_contents.js'; ...
the_stack
import { debounce, editorEvents, editorOptions, getAceInstance } from "./editorOptions"; const ace = getAceInstance(); import { Ace, Range } from "ace-builds"; import Editor = Ace.Editor; import { Split } from "ace-builds/src-noconflict/ext-split"; import * as PropTypes from "prop-types"; import * as React from...
the_stack
import { CommandClasses, decryptAES128CCM, encodeBitMask, encryptAES128CCM, getCCName, isTransmissionError, isZWaveError, Maybe, MessageOrCCLogEntry, MessageRecord, parseBitMask, parseCCList, S2SecurityClass, SecurityClass, securityClassIsS2, securityClassOrder, SecurityManager2, SECURITY_S2_AUTH_TAG_...
the_stack
import { asmcode } from "../asm/asmcode"; import { Register } from "../assembler"; import { NetworkHandler, NetworkIdentifier } from "../bds/networkidentifier"; import { createPacketRaw, ExtendedStreamReadResult, Packet, PacketSharedPtr, StreamReadResult } from "../bds/packet"; import { MinecraftPacketIds } from "../bd...
the_stack
import * as React from "react" import { isEmpty, difference, clone, uniq } from "../clientUtils/Util" import { observable, computed, action, reaction, runInAction, IReactionDisposer, } from "mobx" import { observer } from "mobx-react" import { Redirect } from "react-router-dom" import parse fro...
the_stack
import chalk from 'chalk'; import readline = require('readline'); import stream = require('stream'); import ora = require('ora'); import { isWindows } from './common'; let logging = true; let logBuffer = ''; let errBuffer = ''; let logged = false; class MutableStdout extends stream.Writable { public muted:boolean =...
the_stack
import React from 'react'; import moment from 'moment'; import {findDOMNode} from 'react-dom'; import cx from 'classnames'; import {Icon} from './icons'; import Overlay from './Overlay'; import Calendar from './calendar/Calendar'; import PopOver from './PopOver'; import {themeable, ThemeProps} from '../theme'; import {...
the_stack
import { DataPoint, RenderModel } from "../core/renderModel"; import { resolveColorRGBA, ResolvedCoreOptions, TimeChartSeriesOptions } from '../options'; import { domainSearch } from '../utils'; import { vec2 } from 'gl-matrix'; import { TimeChartPlugin } from '.'; import { LinkedWebGLProgram, throwIfFalsy } from './we...
the_stack
import { BuiltIns, Schema, DirectiveDefinition, NonNullType, NamedType, Directive, UnionType, ObjectType, ListType, FieldDefinition, CompositeType, allSchemaRootKinds, defaultRootName, errorCauses, ErrGraphQLValidationFailed, SchemaElement, baseType, isInterfaceType, isObjectType, ...
the_stack
/// <reference path="Prelude.Core.dsc"/> /** * Glob files; if pattern is undefined, then the default is "*". * Returns the empty array if the globed directory does not exist. */ declare function glob(folder: Directory, pattern?: string): File[]; /** * Glob folders; if pattern is undefined, then the de...
the_stack
import { testStartup } from '../testMain'; import {expect} from 'chai'; import { runQuery } from '../../server/vulcan-lib'; import { createDummyUser, createDummyPost, createDummyComment, userUpdateFieldSucceeds, userUpdateFieldFails, catchGraphQLErrors, assertIsPermissionsFlavoredError } from '../utils' testStartup()...
the_stack
// This is legacy code that we are not maintaining for Typescript 4 // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-nocheck import { ATN } from 'antlr4ts/atn/ATN'; import { ATNDeserializer } from 'antlr4ts/atn/ATNDeserializer'; import { LexerATNSimulator } from 'antlr4ts/atn/LexerATNSimulator'; im...
the_stack
import React from 'react'; import * as POOL from 'types/generated/trader_pb'; import { fireEvent, waitFor } from '@testing-library/react'; import { injectIntoGrpcUnary, renderWithProviders } from 'util/tests'; import { createStore, Store } from 'store'; import OrderFormSection from 'components/pool/OrderFormSection'; ...
the_stack
import { RotationCorrection } from '../../input/OcrExtractor'; import { Barcode, BoundingBox, Character, Document, Drawing, Element, Font, Heading, Image, JsonBox, JsonElement, JsonExport, JsonFont, JsonMetadata, JsonPage, JsonPageRotation, List, Page, SpannedTableCell, Table, ...
the_stack
namespace dragonBones { const { ccclass, } = cc._decorator; @ccclass class ClockHandler extends cc.Component { update(passedTime: number) { CocosFactory.factory.dragonBones.advanceTime(passedTime); } } /** * - The Cocos factory. * @version DragonBon...
the_stack
import { Component, Property, Event, EmitType, EventHandler, L10n, setValue, getValue, isNullOrUndefined } from '@syncfusion/ej2-base'; import { NotifyPropertyChanges, INotifyPropertyChanged, detach, Internationalization, getUniqueID, closest } from '@syncfusion/ej2-base'; import { addClass, removeClass } from '@syncfu...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { WCFRelays } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { RelayAPI } from "../relayAPI"; import { Wcf...
the_stack
import type vscode from 'vscode'; import { Autowired, Injector, INJECTOR_TOKEN } from '@opensumi/di'; import { WSChannelHandler } from '@opensumi/ide-connection/lib/browser'; import { EDITOR_COMMANDS, UriComponents, ClientAppContribution, CommandContribution, CommandRegistry, CommandService, Domain, el...
the_stack
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, Component, ContentChildren, ElementRef, EventEmitter, forwardRef, HostBinding, HostListener, Input, Output, Provider, QueryList, ViewChild, ViewEncapsulation, } from "@angular/core"; import { ControlValueAccessor, NG_VALUE_ACCE...
the_stack
import { Literal, Quad_Object, NamedNode } from "@rdfjs/types"; import { Time } from "../datatypes"; import { Thing, ThingLocal, ThingPersisted, Url, UrlString, } from "../interfaces"; import { addBoolean, addDate, addDatetime, addTime, addDecimal, addInteger, addIri, addLiteral, addNamedNod...
the_stack
import '@types/node' import * as http from 'http' import * as https from 'https' import * as stream from 'stream' // ---------------------------------------------------------------------------- /** * Node core HTTP request options * | [docs](https://nodejs.org/dist/latest-v14.x/docs/api/http.html#http_http_request_...
the_stack
import React, { ReactNode, useState, useRef, useEffect, useMemo, Fragment, forwardRef, } from 'react' import cn from 'classnames' import { usePopper } from 'react-popper' import * as timelineStyles from './Timeline.css' import * as eventStyles from './Event.css' import ReactDOM from 'react-dom' import { ...
the_stack
import { AccessControl } from '../'; import { IAccessInfo, AccessControlError } from '../core'; import { Action, Possession, actions, possessions } from '../enums'; import { utils } from '../utils'; /** * Represents the inner `Access` class that helps build an access information * to be granted or denied; and fina...
the_stack
import {Watcher, Program, RawMap, RawValue, RawEAVC} from "./watcher"; import {UIWatcher} from "../watchers/ui"; interface Attrs extends RawMap<RawValue> {} function t(tag:string) { return `tag-browser/${tag}`; } function collapse<T extends any[]>(...args:T[]):T { let all:T = [] as any; for(let sublist of arg...
the_stack
import {Program} from "../src/runtime/dsl2"; import * as Runtime from "../src/runtime/runtime"; import * as test from "tape"; // You can specify changes as either [e,a,v] or [e,a,v,round,count]; export type EAVTuple = [Runtime.RawValue, Runtime.RawValue, Runtime.RawValue]; export type EAVRCTuple = [Runtime.RawValue, R...
the_stack
import { Data, Filter, Partial, ThisTask, ThisWatcher, ThisListener, Listener, Component, ComponentCallback, ComponentLoader, PropTypeFunction, PropValueFunction, PropRule, } from 'yox-type/src/type' import { VNode, } from 'yox-type/src/vnode' import { DirectiveHooks, TransitionHooks, ...
the_stack
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { EChartOption } from 'echarts'; import * as echarts from 'echarts'; import { WidgetsGQL } from '@graphql/graphql.service'; import { RealtimeWea...
the_stack
import { ActiveInterface, AvComposedEntity, AvEntityChild, AvGadget, AvGrabButton, AvInterfaceEntity, InterfaceProp, AvModel, AvModelTransform, AvOrigin, AvPrimitive, AvTransform, AvHeadFacingTransform, GrabPose, GrabRequest, GrabRequestType, k_MenuInterface, MenuEvent, MenuEventType, PanelRequest, PanelRequestType, Pr...
the_stack
import * as fs from 'fs'; import { tmpdir } from 'os'; import { promisify } from 'util'; import { ResourceQueue } from 'vs/base/common/async'; import { isEqualOrParent, isRootOrDriveLetter, randomPath } from 'vs/base/common/extpath'; import { normalizeNFC } from 'vs/base/common/normalization'; import { join } from 'vs/...
the_stack
import {expect} from '@loopback/testlab'; import {NamespacedReflect, Reflector} from '../../reflect'; import 'reflect-metadata'; function givenReflectContextWithNameSpace(): NamespacedReflect { const namespace = 'sample-app-context'; return new NamespacedReflect(namespace); } function givenReflectContext(): Names...
the_stack
import type { vec3 } from "gl-matrix"; import { arrayRemove } from "kudzu/arrays/arrayRemove"; import { arraySortedInsert } from "kudzu/arrays/arraySortedInsert"; import { audioCtx, audioReady, buffer, BufferSource, ChannelMerger, connect, decodeAudioData, hasAudioListener, hasNewAudioListener, hasOldAudioListener, loo...
the_stack
import React from 'react'; import { Typography, Grid, Button } from 'antd' const { Title, Paragraph } = Typography import { useIntl, FormattedMessage, IntlShape } from 'gatsby-plugin-intl'; import { Link } from 'gatsby' import { Layout } from '~/components/Layout'; import { SEO } from '~/components/SEO'; import { body...
the_stack
import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces'); import compatBase = require("././GalleryCompatHttpClientBase"); import GalleryInterfaces = require("./interfaces/GalleryInterfaces"); export interface IGalleryApi extends compatBase.GalleryCompatHttpClientBase { shareExtensionById(extensio...
the_stack
import * as tstl from "../../src"; import { forbiddenForIn, unsupportedForTarget } from "../../src/transformation/utils/diagnostics"; import * as util from "../util"; test("while", () => { util.testFunction` let arrTest = [0, 1, 2, 3]; let i = 0; while (i < arrTest.length) { arr...
the_stack
import memoize from "fast-memoize"; import { zipWith, reduce, times } from "lodash"; import seedrandom from "seedrandom"; import { Properties } from "types/shape"; import { Color } from "types/value"; seedrandom("secret-seed", { global: true }); // HACK: constant seed for pseudorandomness /** * Generate a random flo...
the_stack
import * as B from 'benchmark'; import { Tuple, Segmentation, OrderedSet as OrdSet } from '../mol-data/int'; // import { ElementSet } from 'mol-model/structure' // export namespace Iteration { // const U = 1000, V = 2500; // const control: number[] = []; // const sets = Object.create(null); // for (le...
the_stack
* @module Curve */ import { Geometry } from "../Geometry"; import { GrowableXYZArray } from "../geometry3d/GrowableXYZArray"; import { IndexedXYZCollection } from "../geometry3d/IndexedXYZCollection"; import { Point3dArrayCarrier } from "../geometry3d/Point3dArrayCarrier"; import { Point3d } from "../geometry3d/Point...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * A NotificationChannel is a medium through which an alert is delivered * when a policy violation is detected. Examples of channels include email, SMS, * and third-...
the_stack
import {repository} from "@loopback/repository"; import {PatientRepository} from "../repositories"; import {Contact, InfectionExposure, Patient} from "../models"; import {PatientStatus} from "../common/utils/enums"; import {HttpErrors} from "@loopback/rest"; import {PushNotificationService} from "./pushnotification.ser...
the_stack
import yargs = require("yargs"); import path = require("path"); import { execSync } from "child_process"; import * as ts from "typescript"; import glob = require("glob"); import * as util from "util"; import * as handlebars from "handlebars"; import * as fs from "fs"; import mkdirp = require("mkdirp"); import _ = requi...
the_stack
import ui, { setupSelectedNode } from "./ui"; import { data } from "./network"; import { Node, getShapeTextureFaceSize } from "../../data/CubicModelNodes"; import { TextureEdit } from "../../data/CubicModelAsset"; const THREE = SupEngine.THREE; const tmpVector3 = new THREE.Vector3(); const textureArea: { gameInstan...
the_stack
import {assert} from '../platform/assert-web.js'; import {Loader} from '../platform/loader.js'; import {TextEncoder, TextDecoder} from '../platform/text-encoder-web.js'; import {Entity} from './entity.js'; import {Reference} from './reference.js'; import {Type, EntityType, CollectionType, ReferenceType, SingletonType, ...
the_stack
import { Stereotype } from '../types'; import { DatePattern, DateTimePattern, DateTimeNoTzPattern } from '../lib/util'; const FyPattern = /^first-date-of-fy\(([0-9]+)\)$/; const FormulaPattern = /^([-+@])([0-9]+)(yr|mo|day|days|hr|min|sec|ms)$/; class UtcDate extends Date { public con...
the_stack
import React from "react"; import { snackbar } from "mdui"; import { FileInput, Button } from "mdui-in-react"; import "./caption.css"; class captionMosaic { img: any[]; constructor() { this.img = []; // @ts-expect-error ts-migrate(2551) FIXME: Property 'cutedImg' does not exist on type 'captio... Remove this com...
the_stack
import { CObject, MessageMeta, CollabEvent, CollabEventsRecord, InitToken, Pre, Message, Optional, } from "@collabs/core"; import { CNumberComponentMessage } from "../../generated/proto_compiled"; import { MultipleSemidirectProduct, StatefulCRDT, } from "../constructions/multiple_semidirect_product"...
the_stack
import i18next from "i18next"; import { action, computed, runInAction } from "mobx"; import containsAny from "../../../Core/containsAny"; import filterOutUndefined from "../../../Core/filterOutUndefined"; import isDefined from "../../../Core/isDefined"; import isReadOnlyArray from "../../../Core/isReadOnlyArray"; impor...
the_stack
import { CidrBlock, NetworkUtils, } from '@aws-cdk/aws-ec2/lib/network-util'; import * as CloudFormation from 'aws-sdk/clients/cloudformation'; import * as SecretsManager from 'aws-sdk/clients/secretsmanager'; import * as AWS from 'aws-sdk/global'; import awaitSsmCommand from '../../common/functions/awaitSsmCommand...
the_stack
import fs from 'fs'; import { assert } from 'chai'; import Connection from '../../src/connection'; import Request from '../../src/request'; import { typeByName as TYPES } from '../../src/data-type'; import { homedir } from 'os'; const debug = false; const config = JSON.parse( fs.readFileSync(homedir() + '/.tediou...
the_stack
import { assertNever } from "./assert"; import { FunctionDecl, ParameterDecl } from "./declaration"; import { Err } from "./error"; import { Argument, ArrayLiteralExpr, BinaryExpr, BooleanLiteralExpr, CallExpr, ComputedPropertyNameExpr, ConditionExpr, ElementAccessExpr, Expr, FunctionExpr, Identif...
the_stack
if ('serviceWorker' in navigator) { navigator.serviceWorker .register('./sw.js') .then(function() { console.log('service worker is all cool.'); }) .catch(function(e) { console.error('service worker is not so cool.', e); throw e; }); if (navigator.serviceWorker.controller) { ...
the_stack
import { rightOrThrow } from '@nexus/logger/dist/utils' import Chalk from 'chalk' import { stripIndent } from 'common-tags' import { Either, isLeft, left, right } from 'fp-ts/lib/Either' import * as FS from 'fs-jetpack' import * as OS from 'os' import * as Path from 'path' import * as tsm from 'ts-morph' import type { ...
the_stack
import { ELineTypes, EToolName } from '@/constant/tool'; import { createSmoothCurvePointsFromPointList } from './polygonTool'; import PolygonUtils from './PolygonUtils'; import MathUtils from '../MathUtils'; export enum EStatus { /** 正在创建 */ Create = 0, /** 正在激活 */ Active = 1, /** 正在编辑, 撤销与激活状态合并 */ Edit =...
the_stack
import { /* FilesystemService, */ ProtocolService, UIResourceStatus } from '@airgap/angular-core' import { ICoinProtocol, MainProtocolSymbols, ProtocolNetwork, TezosFA1p2Protocol, TezosFA2Protocol, TezosFA2ProtocolConfig, TezosFA2ProtocolOptions, TezosFAProtocolConfig, TezosFAProtocolOptions, TezosP...
the_stack
import { Component, ElementRef, EventEmitter, Input, OnInit, Optional, Output, SimpleChanges, ViewChild } from '@angular/core'; import {WorkspaceVersion} from "../../models/workspace-version.model"; import {TestStep} from "../../models/test-step.model"; import {FormControl, FormGroup} from '@angular/f...
the_stack
import "reflect-metadata"; type Constructor<T> = new (...args) => T; type BeanId<T> = string | Constructor<T>; type BeanDefinition = { id?: BeanId<any>; // bean id target: Constructor<any>; // 类 field?: string; // 字段名 method?: string; // 方法名 } type AutowiredInfo = { id: BeanId<any>; // 注入 t...
the_stack
import { check, CheckBlockSymbolTable, CheckHandle, CheckOption, CheckOr } from '@glimmer/debug'; import { DEBUG } from '@glimmer/env'; import { BlockArguments, BlockSymbolTable, BlockValue, CapturedArguments, CapturedBlockArguments, CapturedNamedArguments, CapturedPositionalArguments, CompilableBlock, ...
the_stack
import { SpecialAbilitySelectOptionL10n } from "../../../../../app/Database/Schema/SpecialAbilities/SpecialAbilities.l10n" import { SelectOptionCategoryUniv, SpecialAbilitySelectOptionUniv } from "../../../../../app/Database/Schema/SpecialAbilities/SpecialAbilities.univ" import { Either, Left, Right } from "../../../.....
the_stack
import { TypeAssertion, ValidationContext } from '../types'; import { validate, getType } from '../validator'; import { compile } from '../compiler'; import { serialize, deserialize } from '../serializer'; describe("compiler-4", function() { it("compiler-expor...
the_stack
import { createElement } from '@syncfusion/ej2-base'; import { CircularGauge } from '../../../src/circular-gauge/circular-gauge'; import { ILoadedEventArgs } from '../../../src/circular-gauge/model/interface'; import { profile, inMB, getMemoryProfile } from '../../common.spec'; describe('Circular-Gauge Control', () =>...
the_stack
import * as React from "react"; import CONSTANTS from "../../constants"; import accessibility from "./Accessibility_utils"; import CPX_SVG from "./Cpx_svg"; import * as SvgStyle from "./Cpx_svg_style"; import svg from "./Svg_utils"; interface IProps { pixels: number[][]; red_led: boolean; brightness: numbe...
the_stack
import { TestBed, fakeAsync, tick, flush } from '@angular/core/testing'; import { Component, Type } from '@angular/core'; import { DefaultFocusState } from '@material/menu'; import { LIST_DIRECTIVES } from '../list/mdc.list.directive'; import { MENU_SURFACE_DIRECTIVES } from '../menu-surface/mdc.menu-surface.directive'...
the_stack
import type {Mutable, Class} from "@swim/util"; import {Affinity, MemberFastenerClass, Property} from "@swim/component"; import {AnyLength, Length, R2Box} from "@swim/math"; import {AnyExpansion, Expansion} from "@swim/style"; import {Look, ThemeAnimator, ExpansionThemeAnimator, ThemeConstraintAnimator} from "@swim/the...
the_stack
export const mockChatLogs = [ { items: [ { payload: { level: 0, text: 'Emulator listening on http://localhost:60002', }, type: 'text', }, ], timestamp: 1561995656213, }, { items: [ { payload: { level: 0, text...
the_stack
import { TextureFont, Texture } from "./t"; import { CustomSprite, Sprite, CustomSpriteProps, NativeSpriteImplementation, NativeSpriteUtils, PureSprite, PureCustomSprite, Context, } from "./sprite"; import { Device, DeviceSize, preloadFiles, cleanupFiles } from "./device"; import { SpriteBaseProps, getD...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * A game server config resource. Configs are global and immutable. * * To get more information about GameServerConfig, see: * * * [API documentation](https://clou...
the_stack
import { expect } from 'chai' import { RECORD_STORE_ADD } from '../../../src/extension/public/RecordStoreActions' import ActionType from '../../../src/tracker/public/ActionType' import OwnerManager from '../../../src/tracker/private/OwnerManager' import * as utils from './utils' /* this test is based on dom tracker i...
the_stack
import { Picker, View } from "@tarojs/components"; import Taro, { useState, useMemo } from "@tarojs/taro"; import { classNames, getNowDate, isAliPay } from "../../lib"; import { IProps } from "../../../@types/select"; import { getAreaData } from "../../lib/area"; import "./index.scss" import AlipayMutiSelect from "./...
the_stack
* @title: 2D Physics callbacks * @description: * This sample shows how to use 2D physics contact callbacks * (preSolve, begin and progress) to implement one-way platforms and * destruction based on collision strength. * Left click to pick up and move the rigid bodies and right click to add new ones. */ /*{{ javas...
the_stack
import { assert } from '../common/debug'; import { DiagnosticAddendum } from '../common/diagnostic'; import { Localizer } from '../localization/localize'; import { DeclarationType } from './declaration'; import { assignProperty } from './properties'; import { TypeEvaluator } from './typeEvaluatorTypes'; import { Cl...
the_stack
import assert from 'assert'; import { CallbackObject, ComponentsObject, ExampleObject, HeaderObject, ISpecificationExtension, LinkObject, OpenAPIObject, OperationObject, ParameterObject, ReferenceObject, RequestBodyObject, ResponseObject, SchemaObject, SecuritySchemeObject, } from 'openapi3-...
the_stack
import { MnemonicLanguages } from '@celo/base/lib/account' import * as bip39 from 'bip39' import { generateKeys, generateMnemonic, getAllLanguages, invalidMnemonicWords, MnemonicStrength, normalizeMnemonic, suggestMnemonicCorrections, validateMnemonic, } from './account' describe('AccountUtils', () => ...
the_stack
import { host, optionsController, telemetry, themeController } from '../main'; import { i18n } from '../model/i18n'; import { Tabulator } from 'tabulator-tables'; import { Dic, Utils, _, __ } from '../helpers/utils'; import { Doc, DocType, MeasureStatus } from '../model/doc'; import { strings } from '../model/strings...
the_stack
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { Actions, Effect, toPayload } from '@ngrx/effects'; import { Store, Action } from '@ngrx/store'; import { AppStore } from '../../../app.store'; import { roomAction } from '../actions'; import { appAction } from '../../../actions'; im...
the_stack
import React from 'react'; import { Table, TableBody } from '@material-ui/core'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; import ExpandLessIcon from '@material-ui/icons/ExpandLess'; import CompareTableRow from './CompareTableRow'; import HeaderCell from './HeaderCell'; import * as Styles from './Loca...
the_stack
import * as assert from "assert"; import { expect } from "chai"; import ElectrodeOtaDaoRdbms from "../src/ElectrodeOtaDaoRdbms"; import MyDAO from "./MyDAO"; import { clearTables } from "./ClearTables"; import { AppDTO, MetricInDTO, MetricOutDTO, MetricByStatusOutDTO, PackageDTO, UserDTO } from "../src...
the_stack
import {DragResponse, Point} from "./draggable.directive"; import {FlowchartUtils} from "./flowchart-utils"; import {MouseOverState, MouseOverType} from "./model/mouse-over-state"; import {Component, ElementRef, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges, KeyValueChangeRecord, KeyValueDiffer, KeyValu...
the_stack
import { KeySet } from '../ojkeyset'; import { DataProvider } from '../ojdataprovider'; import { baseComponent, baseComponentEventMap, baseComponentSettableProperties, JetElementCustomEvent, JetSetPropertyType } from '..'; export interface ojListView<K, D> extends baseComponent<ojListViewSettableProperties<K, D>> { ...
the_stack
import { AbstractLoadStrategy, ILoadConfig } from './AbstractLoadStrategy'; import { getExtension, assertNever } from '../utilities'; import { ResourceType } from '../resource_type'; // tests if CORS is supported in XHR, if not we need to use XDR // Mainly this is for IE9 support. const useXdr = !!((window as any).XDo...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement } from "../shared"; /** * Statement provider for service [deepcomposer](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsdeepcomposer.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGu...
the_stack
import { Constants } from "../Constants"; import { Test } from "../tests/Test"; import { AggregatedResult, AssertionResult, TestResult } from "@jest/test-result"; /** * Create test suites * @export * @class TestSuite */ export class TestSuite { /** * Ancestor title join character * @static * @m...
the_stack
import 'aframe'; import 'aframe-extras'; import 'aframe-orbit-controls'; import 'aframe-event-set-component'; import '../lib/GLTFExporter'; import { Entity, Scene } from 'aframe'; import { ShortcutTools, EventTools, CameraTools, ViewportTools, HistoryTools } from './'; import systems from '../aframe/systems'; import c...
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"; export type TokenRange = { start: number; end: number }; export type HelperData = { dot: TokenRange; question: TokenRange; numberTokens:...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { class BulkDeleteFailureApi { /** * DynamicsCrm.DevKit BulkDeleteFailureApi * @param entity The entity object */ constructor(entity?: any); /** * Get the value of alias * @param alias the alias value * @param isMultiOptionS...
the_stack
"use strict"; import { SinonStub } from "sinon"; import { Context, DispatchedPayload, Dispatcher, ErrorPayload, UseCase } from "../src"; import { TYPE as CompletedPayloadType } from "../src/payload/CompletedPayload"; import { TYPE as DidExecutedPayloadType } from "../src/payload/DidExecutedPayload"; import { TYPE as Wi...
the_stack
import SteamID from 'steamid'; import Bot from '../../Bot'; import CommandParser from '../../CommandParser'; import { TokenType, SubTokenType } from '../../TF2GC'; import log from '../../../lib/logger'; interface CraftWeaponsBySlot { [slot: string]: string[]; } type SlotsForCraftableWeapons = 'primary' | 'second...
the_stack
import { stringify, parseVersion, isMatch, startsWith, endsWith, toBoolean } from "../src/Utils.js"; describe("Utils", () => { describe("stringify", () => { const user = { id: 1, name: "Blake", password: "123456", passwordResetToken: "a reset token", myPassword: "123456"...
the_stack
import * as React from 'react'; // Custom styles import styles from './FileBrowser.module.scss'; // Custom properties and state import { IFileBrowserProps, IFileBrowserState, IFile, ViewType } from './FileBrowser.types'; // PnP library for navigating through libraries import { sp, RenderListDataParameters, RenderLis...
the_stack
'use strict'; import { FeatureTableUtils } from './featureMetatableUtilsNext'; import { Material, TexturedMaterial } from './Material'; import { TranslucencyType, BaseColorType } from './colorTypes'; const Cesium = require('cesium'); const util = require('./utility'); const Cartesian3 = Cesium.Cartesian3; const Cesi...
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
* @fileoverview Macro and environment implementations for the mathtools package. * * @author v.sorge@mathjax.org (Volker Sorge) * @author dpvc@mathjax.org (Davide P. Cervone) */ import {ArrayItem, EqnArrayItem} from '../base/BaseItems.js'; import {StackItem} from '../StackItem.js'; import ParseUtil from '../Pa...
the_stack
/// <reference path="ps.constants.d.ts" /> declare class ActionDescriptor { /** * The number of keys contained in the descriptor. */ readonly count: number /** * The class name of the referenced actionDescriptor object. */ readonly typename: string /** * Clears the descri...
the_stack
import type { RegExpVisitor } from "regexpp/visitor" import type { Group, Quantifier } from "regexpp/ast" import type { Quant, RegExpContext } from "../utils" import { quantToString, createRule, defineRegexpVisitor } from "../utils" /** * Returns a new quant which is the combination of both given quantifiers. */ fun...
the_stack
import md from 'markdown-it'; import Token from 'markdown-it/lib/token'; import hljs from 'highlight.js'; import hljs_svelte from 'highlightjs-svelte'; import { hljsDefineVue } from './highlight_vue'; import yaml from 'yaml'; import { MDContext } from '../types'; import { paths, exists } from '../../files'; import { re...
the_stack
JPEG encoder ported to JavaScript and optimized by Andreas Ritter, www.bytestrom.eu, 11/2009 Basic GUI blocking jpeg encoder */ // var btoa = btoa || function (buf) { // return Buffer.from(buf).toString('base64'); // }; function JPEGEncoder(quality) { var self = this; var fround = Math.round; ...
the_stack
export interface SourceConfig { /** * The name you wish to set to your remote API, this will be used for building the GraphQL context */ name: string; handler: Handler; /** * List of transforms to apply to the current API source, before unifying it with the rest of the sources */ transforms?: Tran...
the_stack
import OffsetSource from "@atjson/offset-annotations"; import * as fs from "fs"; import * as path from "path"; import GDocsSource from "../src"; describe("@atjson/source-gdocs-paste", () => { let atjson: OffsetSource; beforeAll(() => { // https://docs.google.com/document/d/18pp4dAGx5II596HHGOLUXXcc6VKLAVRBUML...
the_stack
import {Constants} from "../scripts/constants"; import {UrlUtils} from "../scripts/urlUtils"; import {TooltipType} from "../scripts/clipperUI/tooltipType"; import {TestModule} from "./testModule"; export class UrlUtilsTests extends TestModule { protected module() { return "urlUtils"; } protected tests() { te...
the_stack
import { cleanNode, options, virtualElements, objectForEach } from '@tko/utils' import { unwrap, observable as koObservable } from '@tko/observable' import { computed } from '@tko/computed' import { MultiProvider } from '@tko/provider.multi' import { VirtualProvider } from '@tko/provider.virtual' import { Da...
the_stack