text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import type { DataItem } from "../../core/render/Component"; import type * as d3hierarchy from "d3-hierarchy"; import { Hierarchy, IHierarchySettings, IHierarchyDataItem, IHierarchyPrivate, IHierarchyEvents } from "./Hierarchy"; import { Container } from "../../core/render/Container"; import { LinkedHierarchyNode } fr...
the_stack
declare module 'tls' { import { X509Certificate } from 'node:crypto'; import * as net from 'node:net'; const CLIENT_RENEG_LIMIT: number; const CLIENT_RENEG_WINDOW: number; interface Certificate { /** * Country code. */ C: string; /** * Street. ...
the_stack
import { Dialog, Dropdown, ICommandBarItemProps, Icon, IconButton, IDropdownOption, LayerHost, Position, ProgressIndicator, SpinButton, Stack, Toggle, TooltipHost } from '@fluentui/react'; import { useBoolean, useId } from '@fluentui/react-hooks'; import { FormEvent, KeyboardEvent, useCallback, useContext, useLayoutEff...
the_stack
import { RangeModel, Workbook, getCell, SheetModel, RowModel, CellModel, getSheetIndex, getSheetName } from '../base/index'; import { insertModel, ExtendedRange, InsertDeleteModelArgs, workbookFormulaOperation, checkUniqueRange, ConditionalFormatModel } from '../../workbook/common/index'; import { insert, insertMerge, ...
the_stack
import { _FirebaseService, _getProvider, FirebaseApp, getApp } from '@firebase/app'; import { AppCheckInternalComponentName } from '@firebase/app-check-interop-types'; import { FirebaseAuthInternalName } from '@firebase/auth-interop-types'; import { Provider } from '@firebase/component'; import { getModularIn...
the_stack
A C-program for MT19937, with initialization improved 2002/1/26. Coded by Takuji Nishimura and Makoto Matsumoto. Before using, initialize the state by using init_genrand(seed) or init_by_array(init_key, key_length). Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, All rights reserved. Redistri...
the_stack
declare const COMMAND_WAIT = 0; declare const COMMAND_ANIMATE = 1; declare const COMMAND_FACE_NORTH = 2; declare const COMMAND_FACE_NORTHEAST = 3; declare const COMMAND_FACE_EAST = 4; declare const COMMAND_FACE_SOUTHEAST = 5; declare const COMMAND_FACE_SOUTH = 6; declare const COMMAND_FACE_SOUTHWEST = 7; declare const ...
the_stack
Copyright (c) 2020 Xiamen Yaji Software Co., Ltd. https://www.cocos.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license to use...
the_stack
import { logger, OrNull, parseColor } from '@pintora/core' import { StyleParam } from '../util/style' export interface WrappedText { text: string wrap: boolean } type ParsedDescription = WrappedText export enum LINETYPE { SOLID = 0, DOTTED = 1, NOTE = 2, SOLID_CROSS = 3, DOTTED_CROSS = 4, SOLID_OPEN ...
the_stack
import { EventEmitter as EE } from '../src/ee' interface A { foo(): void bar(a: number, b: number): number } test('nullish listeners', () => { let ee = new EE<A>() ee.on('foo', undefined) ee.on({ foo: null }) expect(ee[EE.ev]).toEqual({}) }) /** * Recurring listeners */ test('add a recurring listener'...
the_stack
import * as events from 'events'; import * as tls from 'tls'; import {ConnectionOptions} from 'tls'; import {ErrorCode, INVALID_ENCODING_MSG_PREFIX, NatsError} from './error'; import {createInbox, extend} from './util'; import {ProtocolHandler} from './protocolhandler'; import { DEFAULT_JITTER, DEFAULT_JITTER_TLS, ...
the_stack
import './ndarray-image-visualizer'; import './ndarray-logits-visualizer'; import './model-layer'; // tslint:disable-next-line:max-line-length import {Array1D, Array3D, DataStats, FeedEntry, Graph, InCPUMemoryShuffledInputProviderBuilder, Initializer, InMemoryDataset, MetricReduction, MomentumOptimizer, SGDOptimizer, ...
the_stack
import { CommonModule } from '@angular/common'; import { Component, DebugElement } from '@angular/core'; import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import...
the_stack
import ora, { Ora } from "ora"; import { exec } from "child_process"; import fs from "fs"; import path from "path"; import { Octokit } from "@octokit/core"; import dotenv from "dotenv"; import chalk from "chalk"; import walk from "../lib/walk"; import { Repositories, Repository } from "../lib/repositories"; import { Al...
the_stack
import React, { useEffect, useMemo, useState } from 'react'; import { notification, Spin, Button, Popover } from 'antd'; import { contexts, useUserAccounts, WalletSigner, useWallet } from '@oyster/common'; import { Input } from '../Input'; import './style.less'; import { ASSET_CHAIN, chainToName } from '../../utils/as...
the_stack
import { Memoize } from 'typescript-memoize'; import { Deferred } from './deferred'; import { Container as ContainerInterface, Factory, isFactoryByCreateMethod } from './container'; let nonce = 0; export class Container implements ContainerInterface { private cache = new Map() as Map<CacheKey, CacheEntry>; privat...
the_stack
const AlTrackballState = { NONE: -1, ROTATE: 0, ZOOM: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_ZOOM_PAN: 4 }; // Mouse button binds to actions const AlMouseButtons = { ROTATE: THREE.MOUSE.LEFT, ZOOM: THREE.MOUSE.MIDDLE, PAN: THREE.MOUSE.RIGHT }; export class AlTrackballControls extends THREE.EventDispatche...
the_stack
import { Task } from 'klasa'; import { Bank, Monsters } from 'oldschooljs'; import { Emoji, Events } from '../../lib/constants'; import { defaultFarmingContract, PatchTypes } from '../../lib/minions/farming'; import { FarmingContract } from '../../lib/minions/farming/types'; import { ClientSettings } from '../../lib/s...
the_stack
import { _Image, _ScrollView, _Text, _View, DefaultSectionT, FlatListProps, NativeSyntheticEvent, SectionListProps } from 'react-native'; import { nanoid } from 'nanoid/non-secure'; import * as React from 'react'; type AnimatedValue = Value; type AnimatedValueXY = ValueXY; class Animat...
the_stack
const InitKeyPair = function () { const keyPair: keypair = { publicKey: null, privateKey: null, keyLength: null, nikeName: null, createDate: null, email: null, passwordOK: false, verified: false, publicKeyID: null, _password: null } return keyPair } const makeKeyPairData = function ( view: view_...
the_stack
import { afterAll, expect, test } from '@jest/globals'; import 'reflect-metadata'; import { JSONError, ValidationError, ValidationErrorItem } from '@deepkit/rpc'; import { appModuleForControllers, closeAllCreatedServers, createServerClientPair, subscribeAndWait } from './util'; import { Observable } from 'rxjs'; import...
the_stack
import { Capabilities } from '@wdio/types' import { sessionEnvironmentDetector, capabilitiesEnvironmentDetector } from '../src/envDetector' import appiumResponse from './__fixtures__/appium.response.json' import experitestResponse from './__fixtures__/experitest.response.json' import chromedriverResponse from './__fix...
the_stack
import { AfterViewInit, ChangeDetectionStrategy, Component, ContentChild, ElementRef, EventEmitter, forwardRef, Injector, Input, NgZone, OnDestroy, OnInit, Output, QueryList, Renderer2, TemplateRef, ViewChild, ViewChildren, ChangeDetectorRef } ...
the_stack
import { CST } from './parse-cst' import { AST, Scalar, Schema, YAMLMap, YAMLSeq } from './types' import { Type, YAMLError, YAMLWarning } from './util' export { AST, CST } export { default as parseCST } from './parse-cst' /** * `yaml` defines document-specific options in three places: as an argument of * parse, cre...
the_stack
import classNames from "classnames"; import React, { FunctionComponent } from "react"; import { useTranslation } from "react-i18next"; import { ButtonBase, ButtonProps, Fade, lighten, makeStyles, styled, Theme, Typography, useMediaQuery, useTheme, withStyles, } from "@material-ui/core"; import { ...
the_stack
import * as Throttle from '../src/throttle'; import {Result} from '../src/throttle'; interface Person { firstName: string; lastName: string; } describe('Throttle test', function() { describe('raw', function() { it('should return the same amount of tasks', async function() { ...
the_stack
import { Component, NgModule, ViewChild, } from '@angular/core'; import { TsSortDirective, TsSortHeaderComponent, } from '@terminus/ui/sort'; import { TsTableColumnsChangeEvent, TsTableComponent, TsTableDataSource, TsTableDensity, TsTableModule, } from '@terminus/ui/table'; import { FakeDataSourc...
the_stack
interface HttpClientBase { get(url: string, callback: (data: any) => any, errorCalback: (xhr: JQueryXHR, ajaxOptions: string, thrown: string) => any, statusCodeCallback: Object, headersHandler?: () => { [header: string]: string } ); post(url: string, dataToSave: any, ...
the_stack
import { expect } from "chai"; import { BSplineCurve3d } from "../../bspline/BSplineCurve"; import { InterpolationCurve3d, InterpolationCurve3dOptions } from "../../bspline/InterpolationCurve3d"; import { Arc3d } from "../../curve/Arc3d"; import { AnyCurve } from "../../curve/CurveChain"; import { GeometryQuery } from ...
the_stack
declare const openpgp: any const requestTimeOut = 1000 * 180 const KloakNode_publicKey = `-----BEGIN PGP PUBLIC KEY BLOCK----- mDMEXjMkUBYJKwYBBAHaRw8BAQdAFD5n6LecvYdEOn65nCjOvn/C2bco7JPkGg2a xY0rGoa0NEtsb2FrIEluZm9ybWF0aW9uIFRlY2hub2xvZ2llcyBJbmMuIDxub2Rl QEtsb2FrLmFwcD6IeAQQFgoAIAUCXjMkUAYLCQcIAwIEFQgKAgQWAgEAAh...
the_stack
import type { Driver } from "@effect/core/io/Schedule/Driver" import type { SinkInternal } from "@effect/core/stream/Sink/operations/_internal/SinkInternal" import { concreteSink } from "@effect/core/stream/Sink/operations/_internal/SinkInternal" import { Handoff } from "@effect/core/stream/Stream/operations/_internal/...
the_stack
process.env.LOG_LEVEL = "SILENT"; import pull from "../pull"; /* UNCHANGED - Note should remain unchanged if not DELETED || NEW || UPDATED DELETED - Delete notes that were synced (having sync?.file.id) but deleted from the remote NEW - Add new notes created in the remote (file.id not present in any of notes) UPDATED ...
the_stack
import { Component, Input, ElementRef, ViewChild, SimpleChanges, OnDestroy, OnInit, OnChanges, EventEmitter, Output } from '@angular/core'; import { Subscription } from 'rxjs/Subscription'; import { LoggerService } from '../../../shared/services/logger.service'; import * as d3 from 'd3-selection'; ...
the_stack
import { EventEmitter } from "events"; import { Socket, SocketConnectOpts } from "net"; import { Discover } from "./discover"; import { defaultLogger } from "./logger"; import { AdjustType, Color, Command, CommandType, DevicePropery, FlowState, ICommandResult, IConfig, IDevice, IEventResult, Scene, StartFlowAct...
the_stack
* Common rules / configuration for WordPress webpack builder. * * To make webpack possible with *.ts "ts-node" is needed for the "interpret" package. */ import { resolve, join } from "path"; import fs from "fs"; import { Configuration, DefinePlugin, Compiler, Options, ProvidePlugin } from "webpack"; import { spawn,...
the_stack
import { simpleHash } from '@tamagui/helpers' import hyphenateStyleName from 'hyphenate-style-name' import normalizeCSSColor from 'normalize-css-color' import { TextStyle, ViewStyle } from 'react-native' import { isWeb } from '../constants/platform' import { prefixInlineStyles, prefixStyles } from './prefixStyles' ex...
the_stack
import '../fetchProxy'; import { QnaApiService } from './qnaApiService'; const mockArmToken = 'bm90aGluZw.eyJ1cG4iOiJnbGFzZ293QHNjb3RsYW5kLmNvbSJ9.7gjdshgfdsk98458205jfds9843fjds'; const mockResponsesTemplate = [ { value: [ { id: '/subscriptions/1234', subscriptionId: '1234', tenant...
the_stack
import { File, Storage } from "@google-cloud/storage"; import * as commander from "commander"; import * as faker from "faker"; import * as admin from "firebase-admin"; import * as lodash from "lodash"; import * as ora from "ora"; import * as winston from "winston"; import { Operation, OperationSet, Task } from "../fun...
the_stack
import {assert, assertNotReached} from '../../assert.js'; import {AsyncJobQueue} from '../../async_job_queue.js'; import * as Comlink from '../../lib/comlink.js'; import runFFmpeg from '../../lib/ffmpeg.js'; import {WaitableEvent} from '../../waitable_event.js'; import {AsyncWriter} from '../async_writer.js'; import {V...
the_stack
import fetch from "isomorphic-unfetch"; import Utils from "web3-utils"; import { createApolloFetch } from "apollo-fetch"; import { applyMiddleware } from "graphql-middleware"; import graphqlFields from "graphql-fields"; import { makeExecutableSchema } from "@graphql-tools/schema"; import { stitchSchemas, ValidationLeve...
the_stack
import waitUntil from "wait-until-promise"; import { Directory, FileType, File, Problem, Project } from "../../src/models"; import { Service } from "../../src/service"; function getDirectoryStructure() { const a = new Directory("test"); const b = a.newFile("b", FileType.JavaScript, false); const c = a.newDirecto...
the_stack
import { Line } from './line'; import { Matrix } from './matrix'; import { Plane } from './plane'; import { Sylvester, InvalidOperationError } from './sylvester'; import { Vector } from './vector'; import { VectorOrList } from './likeness'; export class Polygon { /** * Plane on which the polygon lies. */ pub...
the_stack
"use strict"; import { ParsedDiff } from "diff"; import * as diffMatchPatch from "diff-match-patch"; import { compareTwoStrings, findBestMatch, Rating } from "string-similarity"; import { MarkerLocation, MarkerLocationsById } from "../api/extensions"; import { Logger } from "../logger"; import { Id } from "../managers...
the_stack
import * as path from 'path'; import * as util from 'util'; import { CancellationToken, Position, Range, TestController, TestItem, Uri } from 'vscode'; import { createDeferred, Deferred } from '../../common/utils/async'; import { Testing } from '../../common/utils/localize'; import { traceError } from '../../logging'; ...
the_stack
import * as spec from '@jsii/spec'; import * as fs from 'fs-extra'; import { TypeFingerprinter } from './jsii/fingerprinting'; import { TARGET_LANGUAGES } from './languages'; import * as logging from './logging'; import { TypeScriptSnippet, completeSource } from './snippet'; import { collectDependencies, validateAvail...
the_stack
import Debug = ts.Debug; /** * All the line stuff as it is from session.ts */ const lineCollectionCapacity = 4; export class LineIndex { root: LineNode; // set this to true to check each edit for accuracy checkEdits = false; charOffsetToLineNumberAndPos(charOffset: number) { return this.ro...
the_stack
import BN from 'bn.js'; import BigNumber from 'bignumber.js'; import { PromiEvent, TransactionReceipt, EventResponse, EventData, Web3ContractContext, } from 'ethereum-abi-types-generator'; export interface CallOptions { from?: string; gasPrice?: string; gas?: number; } export interface SendOptions { ...
the_stack
import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import * as Mappers from "../models/policiesMappers"; import * as Parameters from "../models/parameters"; import { BillingManagementClientContext } from "../billingManagementClientContext"; /** Class representing a Policies. */ export cl...
the_stack
import assert from '../utils/assert' import { parsePostFromPaste, setClipboardData, parsePostFromDrop } from '../utils/parse-utils' import { filter, forEach } from '../utils/array-utils' import Key from '../utils/key' import TextInputHandler, { TextInputHandlerListener } from '../editor/text-input-handler' import Selec...
the_stack
import { Glue42Core } from "../../../../glue"; import ClientRepository from "../../client/repository"; import { ServerMethodsPair } from "../../client/types"; import * as GW3Messages from "./messages"; import { SubscriptionCancelledMessage, EventMessage, SubscribedMessage, ErrorSubscribingMessage } from "./messages"; i...
the_stack
import { assert } from "chai"; import { Client, getClient } from "@azure-rest/core-client"; import { getLongRunningPoller } from "../src/getLongRunningHelper"; import { PipelineResponse, createHttpHeaders, HttpHeaders, HttpMethods, } from "@azure/core-rest-pipeline"; import { URL } from "./utils/url"; describe...
the_stack
import * as parser from '@babel/parser'; import generate from '@babel/generator'; import traverse, { NodePath } from '@babel/traverse'; import * as t from '@babel/types'; import { isIdentifier, Node } from '@babel/types'; import { OrderedSet } from './OrderedSet'; import { IScope } from '../types'; export class Parse...
the_stack
import assert from 'assert'; import { r } from '../src'; import config from './config'; import { uuid } from './util/common'; describe('document manipulation', () => { let dbName: string; let tableName: string; before(async () => { await r.connectPool(config); dbName = uuid(); tableName = uuid(); ...
the_stack
export class App { constructor(gl: WebGLRenderingContext); /** * Simulate context loss. * @returns The App object. */ loseContext(): App; /** * Simulate context restoration. * @returns The App object. */ restoreContext(): App; /** * Set function to handle conte...
the_stack
import {Pt, Group, Bound} from "./Pt"; import {Num} from "./Num"; import {ITempoListener, ITempoStartFn, ITempoProgressFn, ITempoResponses} from "./Types"; import {ISoundAnalyzer, SoundType, PtLike, IPlayer} from "./Types"; /** * Tempo helps you create synchronized and rhythmic animations. */ export class Tempo impl...
the_stack
* Created by Dolkkok on 2017. 8. 14.. */ import {AfterViewInit, Component, ElementRef, Injector, OnDestroy, OnInit} from '@angular/core'; import { AxisType, CHART_STRING_DELIMITER, ChartType, LineType, Position, SeriesType, ShelveFieldType, ShelveType, UIChartDataLabelDisplayType } from '../option/d...
the_stack
import { rest, stream, paginate, RequestOptions } from "../request"; import { AuthClient, TwitterResponse, TwitterBody, TwitterParams, TwitterPaginatedResponse, } from "../types"; import { OAuth2Bearer } from "../auth"; import { findUsersById, findUserById, findUsersByUsername, findMyUser, findUser...
the_stack
// Migrator // ------- import _ from '../deps/lodash@4.17.15/index.js'; const differenceWith = _.differenceWith; const get = _.get; const isBoolean = _.isBoolean; const isEmpty = _.isEmpty; const isFunction = _.isFunction; const max = _.max; import inherits from '../deps/inherits@2.0.4/inherits.js'; import { getLockT...
the_stack
'use strict'; import * as vscode from 'vscode'; import { TextEditor, Disposable } from 'vscode'; import * as vscodeTypes from 'vscode-languageserver-types'; import * as fs from 'fs'; import * as path from 'path'; import * as os from 'os'; import {decorations} from './Decorations'; import {Highlights} from './Highligh...
the_stack
import { Resolvers } from '@apollo/client'; import { ClientType, getBlockTime, getLogs, ColonyClientV5, ColonyClientV6, getMultipleEvents, ColonyRole, ColonyVersion, } from '@colony/colony-js'; import { Log } from 'ethers/providers'; import { LogDescription } from 'ethers/utils'; import { AddressZero } ...
the_stack
import {ParsedUrlQuery} from 'querystring'; import * as React from 'react'; import {CSSProperties} from 'react'; import {Store} from 'redux'; import {UrlWithStringQuery} from 'url'; import {DataCustomer} from './core/DataCustomer/index'; import {DataProviderEvent} from './core/Events/dataProviderEvent'; import {Events}...
the_stack
import { expectSaga } from 'redux-saga-test-plan'; import { ExternalLibraryName } from '../../../commons/application/types/ExternalTypes'; import { actions } from '../../../commons/utils/ActionsHelper'; import { CHANGE_EXTERNAL_LIBRARY, CHAPTER_SELECT, UPDATE_EDITOR_VALUE } from '../../../commons/workspace/Works...
the_stack
import {isNull, isNullOrUndefined} from 'util'; import * as pixelWidth from 'string-pixel-width'; import { Component, ElementRef, EventEmitter, HostListener, Injector, Input, OnDestroy, OnInit, Output, ViewChild } from '@angular/core'; import {CommonUtil} from '@common/util/common.util'; import {Pop...
the_stack
import * as cloudwatch from '@aws-cdk/aws-cloudwatch'; import * as ec2 from '@aws-cdk/aws-ec2'; import * as events from '@aws-cdk/aws-events'; import * as iam from '@aws-cdk/aws-iam'; import * as s3 from '@aws-cdk/aws-s3'; import * as core from '@aws-cdk/core'; import { Construct } from 'constructs'; // for files that ...
the_stack
export type Maybe<T> = T | null; export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }; export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> }; export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> }; /** All...
the_stack
import axios from "axios"; import fs from "fs"; import { SigningCosmWasmClient } from "@cosmjs/cosmwasm-stargate"; import { GasPrice, calculateFee, StdFee } from "@cosmjs/stargate"; import { DirectSecp256k1HdWallet, makeCosmoshubPath } from "@cosmjs/proto-signing"; import { Slip10RawIndex } from "@cosmjs/crypto"; imp...
the_stack
module es { /** * 多边形 */ export class Polygon extends Shape { /** * 组成多边形的点 * 保持顺时针与凸边形 */ public points: Vector2[]; public _areEdgeNormalsDirty = true; /** * 多边形的原始数据 */ public _originalPoints: Vector2[...
the_stack
import { useEffect, useState } from 'react'; import { KeyWithTranslationsModel, LanguageModel } from '@tolgee/core'; import { ComponentDependencies } from './KeyDialog'; import { sleep } from '../tools/sleep'; import { createProvider } from '../tools/createProvider'; export interface ScreenshotInterface { id: numbe...
the_stack
import {Field, Form as FormikForm, Formik, FormikBag, FormikErrors, FormikProps, withFormik} from "formik"; import * as React from "react"; import { AccordionTitleProps, CheckboxProps, Form, Button, Divider, Icon, Label, Accordion, FormProps } from "semantic-ui-react"; import * as Y...
the_stack
import { ReactElement } from 'react'; import { ComponentMetadata, NpmInfo, NodeData, NodeSchema, ComponentAction, TitleContent, TransformedComponentMetadata, NestingFilter, isTitleConfig, I18nData, LiveTextEditingConfig, FieldConfig, } from '@alilc/lowcode-types'; import { deprecate } from '@ali...
the_stack
import { TxData, TxDataPayable } from "../../types"; import * as promisify from "tiny-promisify"; import { classUtils } from "../../../utils/class_utils"; import { Web3Utils } from "../../../utils/web3_utils"; import { BigNumber } from "../../../utils/bignumber"; import { DummyToken as ContractArtifacts } from "@dharma...
the_stack
import * as Fs from 'fs-extra'; import * as Path from 'path'; import * as ReadlineSync from 'readline-sync'; import * as semver from 'semver'; import * as Tmp from 'tmp'; import { Git } from './git'; import { Paths } from './paths'; import { Release } from './release'; import { Submodule } from './submodule'; import { ...
the_stack
import { BoundingBox, Browser, ElementHandle, launch, Page } from 'puppeteer' import * as path from 'path' import { CollectionViewDelegate, GridLayoutParameters, Size as ImportedSize, CollectionView, GridLayout } from '../dist' jest.setTimeout(10000) let page: Page let browser: Browser const width = 1024 const height...
the_stack
import { } from '@dapplets/dapplet-extension'; import WHITE_ICON from './icons/money-twiter-light.svg'; import DARK_ICON from './icons/money-twiter-dark.svg'; import NEAR_BIG_ICON from './icons/near-big.svg'; import NEAR_SMALL_ICON from './icons/near-small.svg'; import NEAR_LINK_BLACK_ICON from './icons/near-link-black...
the_stack
import { Regl, Framebuffer2D, DrawCommand } from "regl" import * as k from "./kernels/simulation" import { DrawInfo, DrawShape } from "./drawing" export type MaterialType = "permittivity" | "permeability" | "conductivity" function clamp(min: number, max: number, value: number) { return Math.max(min, Math.m...
the_stack
import { parserInput } from 'fruitsconfits/modules/lib/types'; import { formatErrorMessage } from 'fruitsconfits/modules/lib/parser'; import { SxToken, SxSymbol, SxParserConfig } from 'liyad/modules/s-exp/types'; import installCore from 'liyad/modules/s-exp/operators/...
the_stack
import * as csstips from 'csstips'; import * as typestyle from 'typestyle'; import * as React from "react"; /** * Defaults used in layout */ export let defaultValues = { verticalSpacing: 24, horizontalSpacing: 24, breakpoints: { phone: 480, } } export function setDefaults(defaults: typeof defaultValues)...
the_stack
import fix from './fix'; type SkipToken<T> = { data: symbol, next: ChainedPromise<T> }; /** * An extended promise for recurring promises with multiple compositions. * * ```javascript * var chained = ChainedPromise.from(promise); * chained.flatMap(a).flatMap(b).flatMap(c).forEach(fn).catch(onRejected); * ```...
the_stack
import * as d3 from 'd3'; import { annotation, annotationBadge, annotationLabel, annotationCallout, annotationCalloutElbow, annotationCalloutCurve, annotationCalloutCircle, annotationCalloutRect, annotationXYThreshold } from '../../node_modules/d3-svg-annotation/indexRollupNext.js'; import { visaColor...
the_stack
import { Component } from 'react' import { FormattedMessage } from 'react-intl' import { connect } from 'redaction' import { BigNumber } from 'bignumber.js' import erc20Like from 'common/erc20Like' import { feedback, externalConfig, constants, transactions, cacheStorageGet, cacheStorageSet, metamask, } fr...
the_stack
import * as aws from "@pulumi/aws"; import * as lambda from "@pulumi/aws/lambda"; import * as awsx from "@pulumi/awsx"; import * as cloud from "@pulumi/cloud"; import * as pulumi from "@pulumi/pulumi"; import { RunError } from "@pulumi/pulumi/errors"; import { createCallbackFunction } from "./function"; import { Endpo...
the_stack
import { mXparserConstants } from '../mXparserConstants'; import { java } from 'j4ts/j4ts'; import { javaemul } from 'j4ts/j4ts'; import { SpecialFunctions } from './SpecialFunctions'; import { MathConstants } from './MathConstants'; import { MathFunctions } from './MathFunctions'; /** * ProbabilityDistributions - ra...
the_stack
import { Component, HostBinding } from '@angular/core'; import { MatSnackBar } from '@angular/material/snack-bar'; import { slideInUpAnimation } from '../../../../app.animations'; import { copyToClipboard, formatJSON, convertObjectsToCSV, convertCSVToJSON, downloadCSV, downloadJSON, downloadObjectsToCSV, ...
the_stack
import { expect } from 'chai'; import * as sinon from 'sinon'; import { Source, StackFrame } from 'vscode-debugadapter'; import { DebugProtocol } from 'vscode-debugprotocol'; import { EXTENT_TRIGGER_PREFIX } from '../../../src'; import { ApexDebugStackFrameInfo, ApexReplayDebug, ApexVariable, ApexVariableContai...
the_stack
import * as FunctionNames from "./FunctionNames"; import * as babylon from "@babel/parser"; import operations, { shouldSkipIdentifier, initForBabel } from "./operations"; import { ignoreNode, ignoredArrayExpression, ignoredStringLiteral, ignoredIdentifier, ignoredCallExpression, ignoredNumericLiteral, cre...
the_stack
class Main extends egret.DisplayObjectContainer { public static menu: Menu; private static _that: egret.DisplayObjectContainer; private rewardedVideo: any; public constructor() { super(); this.addEventListener(egret.Event.ADDED_TO_STAGE, this.onAddToStage, this); } private onAdd...
the_stack
import '../../../test/common-test-setup-karma'; import './gr-permission'; import {GrPermission} from './gr-permission'; import {stubRestApi} from '../../../test/test-utils'; import {GitRef, GroupId, GroupName} from '../../../types/common'; import {PermissionAction} from '../../../constants/constants'; import * as MockI...
the_stack
import { Component, OnInit, ViewChild, AfterViewInit, ElementRef } from '@angular/core'; import { MatSort, MatTableDataSource, MatPaginator, PageEvent } from '@angular/material'; import { GlobalService } from '../../global.service'; import { Router, ActivatedRoute, NavigationEnd } from '@angular/router'; import { isNul...
the_stack
import * as AsyncLock from 'async-lock' import { getLogger, hexStrToBuf, hexBufToStr, logError, SignatureVerifier, DefaultSignatureVerifier, serializeObject, serializeObjectAsHexString, SignatureProvider, } from '@pigi/core-utils' import { DB, EthereumListener, EthereumEvent } from '@pigi/core-db' ...
the_stack
import type * as Common from '../../core/common/common.js'; import * as i18n from '../../core/i18n/i18n.js'; import * as SDK from '../../core/sdk/sdk.js'; import * as TimelineModel from '../../models/timeline_model/timeline_model.js'; import * as Components from '../../ui/legacy/components/utils/utils.js'; import * as ...
the_stack
module Inknote { var keysDown: number[] = []; if (typeof document != "undefined" && typeof window != "undefined") { document.onkeydown = function (e) { if (e.target == document.getElementById("file-search") && e.keyCode != 27) { return; } if (e.ta...
the_stack
import MapOverlay from '../effects/MapOverlay'; import GameState from '../states/GameState'; import { IKeymap } from '../data/Keymap'; import Constants from '../data/Constants'; import Hud from '../gui/Hud'; import Dialog from '../gui/Dialog'; import Entity from '../entities/Entity'; export default class Level extends...
the_stack
import { Migrator as AppMigrator, getMigratorPlugins as getAppMigratorPlugins, MigrationAllOptions as AppMigrationAllOptions, } from '@nodepack/app-migrator' import { Migrator as EnvMigrator } from '@nodepack/env-migrator' import { Migrator as DbMigrator } from '@nodepack/db-migrator' import { getPlugins } from '...
the_stack
import { FeatureStateUpdate, StrategyAttributeDeviceName, RoleType, StrategyAttributeWellKnownNames, SSEResultState, FeatureState, StrategyAttributeCountryName, RolloutStrategyAttribute, RolloutStrategy, Environment, FeatureValueType, StrategyAttributePlatformName, RolloutStrategyAttributeConditional, RolloutStrategyFi...
the_stack
'use strict'; import { DomainInfo, FileInfo, parser, PddlLanguage, ProblemInfo } from 'pddl-workspace'; import {TextDocument, CancellationToken, DocumentFormattingEditProvider, FormattingOptions, TextEdit, DocumentRangeFormattingEditProvider, Range, Position, EndOfLine } from 'vscode'; import { nodeToRange } from '../...
the_stack
import { encodeXml, IFormat } from '../utils'; import { IHeadersMap, HeaderNames } from './Parser'; /** * ESLevent * * @see https://freeswitch.org/confluence/display/FREESWITCH/Event+Socket+Library#EventSocketLibrary-ESLeventObject */ export class Event { private _headers: IHeadersMap = {}; private _type: ...
the_stack
/// <reference path="../metricsPlugin.ts"/> /// <reference path="../services/alertsManager.ts"/> /// <reference path="../services/errorsManager.ts"/> module HawkularMetrics { export class AppServerPlatformDetailsController implements IRefreshable { public static USED_COLOR = '#1884c7'; /// blue public static...
the_stack
import { Nes } from "./nes"; import { BitHelper } from "./bithelper"; import { VideoScreen } from "./video"; import { Mirroring } from "./cartridge"; export class PPU { nes: Nes; palette: Color[] = []; vram: Uint8Array; scanline = -1; //y coordinate of scanline tick = 0; //x coor...
the_stack
import { expect } from 'chai'; import { Title } from '@phosphor/widgets'; const owner = { name: 'Bob' }; describe('@phosphor/widgets', () => { describe('Title', () => { describe('#constructor()', () => { it('should accept title options', () => { let title = new Title({ owner }); ...
the_stack
import {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion'; import {ANIMATION_MODULE_TYPE} from '@angular/platform-browser/animations'; import { AfterViewInit, Component, ChangeDetectionStrategy, ChangeDetectorRef, ContentChild, ElementRef, EventEmitter, Inject, Input, NgZone, OnDes...
the_stack