text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
* Port of supertest (https://github.com/visionmedia/supertest) for Deno. * * Types adapted from: * - https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/superagent/index.d.ts * - https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/supertest/index.d.ts */ import type { ListenerLik...
the_stack
import { TestBed, fakeAsync, tick } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { Component } from '@angular/core'; import { MdcChipSetDirective, MdcChipDirective, MdcChipIconDirective, CHIP_DIRECTIVES } from './mdc.chip.directive'; import { hasRipple, simulateKey } from '../../...
the_stack
import { strict as assert } from 'assert'; import { Connection, Keypair, PublicKey, Signer, SystemProgram, TransactionInstruction, } from '@solana/web3.js'; import { VAULT_PREFIX, VAULT_PROGRAM_ID } from '../common/consts'; import { mintTokens, createMint, getMintRentExempt, createAssociatedTokenAcc...
the_stack
import { Component, AfterContentInit, ContentChildren, Directive, ElementRef, EventEmitter, HostBinding, Input, OnInit, Optional, Output, QueryList, forwardRef, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core'; import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angu...
the_stack
import { ExposeFunctions, ComExposeEvents, ExposeDefaultProps, ExposeApi, } from '~/types/modules'; import { style, styleDescription } from './style'; const config: { exposeFunctions: ExposeFunctions[]; exposeEvents: ComExposeEvents; exposeDefaultProps: ExposeDefaultProps; exposeApi: Ex...
the_stack
import _ from 'lodash' import {ActionGroupSpec, ActionContextType, ActionOutputStyle, ActionOutput, ActionContextOrder, ActionSpec} from '../actions/actionSpec' import IstioPluginHelper from '../k8s/istioPluginHelper' import EnvoyFunctions, {EnvoyConfigType} from '../k8s/envoyFunctions' import JsonUtil from '../util/js...
the_stack
import { browser, ExpectedConditions as until } from 'protractor'; import * as _ from 'lodash'; import { safeLoad } from 'js-yaml'; import { checkLogs, checkErrors, firstElementByTestID, appHost } from '../protractor.conf'; import { fillInput } from '@console/shared/src/test-utils/utils'; import { dropdownMenuForTestI...
the_stack
import type {Mutable, Proto, ObserverType} from "@swim/util"; import type {FastenerOwner, Fastener} from "@swim/component"; import type {AnyController, Controller} from "./Controller"; import {ControllerRelationInit, ControllerRelationClass, ControllerRelation} from "./ControllerRelation"; /** @internal */ export type...
the_stack
import {Component, Input, ViewChild} from "@angular/core"; import {AbstractControl, FormControl, FormGroup, ValidatorFn} from '@angular/forms'; import {ValidationErrors} from '@angular/forms/src/directives/validators'; import {MatSnackBar} from '@angular/material/snack-bar'; import {TdDialogService} from "@covalent/cor...
the_stack
import germanLocaleData from '@box/cldr-data/locale-data/de-DE'; import russianLocaleData from '@box/cldr-data/locale-data/ru-RU'; import japaneseLocaleData from '@box/cldr-data/locale-data/ja-JP'; import { UnifiedNumberFormat } from '@formatjs/intl-unified-numberformat'; import numAbbr, { Lengths } from '../numAbbr'; ...
the_stack
import { deepEqual } from 'assert'; import chalk from 'chalk'; import { tokenize } from '../src/lexer/'; import { parse } from '../src/parser/'; import { desugarBefore, desugarAfter } from '../src/desugarer/'; import { typeCheck } from '../src/typechecker/'; import { TypeContext } from '../src/typechecker/context'; imp...
the_stack
import * as utils from '../../utils'; import {getBezierPoint, splitCubicSegment as split} from '../bezier'; import {Point} from '../point'; interface XPoint extends Point { isCubicControl?: boolean; isInterpolated?: boolean; positionIsBeingChanged?: boolean; } /** * Returns intermediate line or curve bet...
the_stack
import colorTokens from "@kaizen/design-tokens/tokens/color.json" import React, { useCallback, useRef } from "react" import { Tooltip } from "@kaizen/draft-tooltip" import { withDesign } from "storybook-addon-designs" import { TextField } from "@kaizen/draft-form" import lockIcon from "@kaizen/component-library/icons...
the_stack
* @module CartesianGeometry */ import { Geometry } from "../Geometry"; import { Point4d } from "../geometry4d/Point4d"; import { Angle } from "./Angle"; import { Ray3d } from "./Ray3d"; import { HasZ, XAndY, XYAndZ, XYZProps } from "./XYZProps"; /** * * `XYZ` is a minimal object containing x,y,z and operations tha...
the_stack
* A {@link MethodVisitor} that generates methods in bytecode form. Each visit * method of this class appends the bytecode corresponding to the visited * instruction to a byte vector, in the order these methods are called. * * @author Eric Bruneton * @author Eugene Kuleshov */ import { MethodVisitor } from "./Meth...
the_stack
import { imageSize as getImageData } from 'image-size'; import { ISizeCalculationResult } from 'image-size/dist/types/interface'; import { normalizeString } from '@hint/utils-string'; import { isRegularProtocol } from '@hint/utils-network'; import { debug as d } from '@hint/utils-debug'; import { HintContext, IHint, N...
the_stack
import type { MapSeries } from "./MapSeries"; import type { GeoProjection, GeoPath } from "d3-geo"; import type { IPoint } from "../../core/util/IPoint"; import type { IGeoPoint } from "../../core/util/IGeoPoint"; import type { Time } from "../../core/util/Animation"; import type { ZoomControl } from "./ZoomControl"; i...
the_stack
import * as anchor from '@project-serum/anchor'; import { AnchorProvider, BN } from '@project-serum/anchor'; import { Keypair, LAMPORTS_PER_SOL, PublicKey } from '@solana/web3.js'; import { BankFlags, GemBankClient, ITokenData, NodeWallet, stringifyPKsAndBNs, stringToBytes, WhitelistType, } from '../../sr...
the_stack
import {initMockFileSystem} from '../../file_system/testing'; import {TypeCheckingConfig} from '../api'; import {ALL_ENABLED_CONFIG, tcb, TestDeclaration, TestDirective} from '../testing'; describe('type check blocks', () => { beforeEach(() => initMockFileSystem('Native')); it('should generate a basic block for...
the_stack
import { DatePipe } from '@angular/common'; import { Injectable, OnDestroy } from '@angular/core'; import { select, Store } from '@ngrx/store'; import { shell } from 'electron'; import * as path from 'path'; import { Observable, Subject, Subscription, zip } from 'rxjs'; import { map, switchMap, take } from 'rxjs/operat...
the_stack
const AssociativeArray = Cesium.AssociativeArray; const Color = Cesium.Color; const ColorGeometryInstanceAttribute = Cesium.ColorGeometryInstanceAttribute; const defined = Cesium.defined; const DistanceDisplayCondition = Cesium.DistanceDisplayCondition; const DistanceDisplayConditionGeometryInstanceAttribute = Cesium.D...
the_stack
import { window, commands, env, QuickPickItem, ExtensionContext, Terminal, Uri, workspace } from 'vscode'; import { Command } from '../odo/command'; import OpenShiftItem, { clusterRequired } from './openshiftItem'; import { CliExitData, CliChannel } from '../cli'; import { TokenStore } from '../util/credentialManager';...
the_stack
import { ApplicationCommandHandler, ApplicationCommandHandlerCallback, AutocompleteHandler, AutocompleteHandlerCallback, InteractionsClient } from './client.ts' import type { Client } from '../client/mod.ts' import { ApplicationCommandsModule } from './commandModule.ts' import { ApplicationCommandInteraction ...
the_stack
import { IConstruct } from 'constructs'; import { DefaultTokenResolver, IPostProcessor, IResolvable, IResolveContext, ITokenResolver, ResolveChangeContextOptions, StringConcat } from '../resolvable'; import { TokenizedStringFragments } from '../string-fragments'; import { containsListTokenElement, TokenString, unresolv...
the_stack
import {ProviderToken} from '../di/provider_token'; import {createElementRef, ElementRef as ViewEngine_ElementRef, unwrapElementRef} from '../linker/element_ref'; import {QueryList} from '../linker/query_list'; import {createTemplateRef, TemplateRef as ViewEngine_TemplateRef} from '../linker/template_ref'; import {crea...
the_stack
///////////////////////////// /// IE Worker APIs ///////////////////////////// interface Algorithm { name: string; } interface CacheQueryOptions { ignoreSearch?: boolean; ignoreMethod?: boolean; ignoreVary?: boolean; cacheName?: string; } interface CloseEventInit extends EventInit { wasClean?...
the_stack
import { IGroup, IShape, IElement, Point } from '@antv/g-base'; import { deepMix, mix, each, isNil, isNumber, isArray } from '@antv/util'; import { ILabelConfig, ShapeOptions } from '../interface/shape'; import { EdgeConfig, EdgeData, IPoint, LabelStyle, ShapeStyle, Item, ModelConfig, UpdateType } from '../types'; impo...
the_stack
import type { DefaultThemeRenderContext } from "../DefaultThemeRenderContext"; import { LiteralType, ReferenceType, ReflectionKind, Type, TypeKindMap } from "../../../../models"; import { JSX } from "../../../../utils"; import { join, stringify } from "../../lib"; type TypeInlinePartialsOptions = { needsParens?: boole...
the_stack
'use strict'; import { Uri, commands, scm, Disposable, window, workspace, QuickPickItem, OutputChannel, Range, WorkspaceEdit, Position, LineChange, SourceControlResourceState } from 'vscode'; import { Ref, RefType, Git, GitErrorCodes } from './git'; import { Model, Resource, Status, CommitOptions, WorkingTreeGroup, In...
the_stack
import { Item, Collection, Agile, StateObserver, EnhancedState, CollectionPersistent, } from '../../../src'; import { LogMock } from '../../helper/logMock'; describe('Item Tests', () => { interface ItemInterface { id: string; name: string; } let dummyAgile: Agile; let dummyCollection: Coll...
the_stack
import * as React from "react"; import * as ReactDOM from "react-dom"; import SplitPane from "react-split-pane"; import { ConsoleComponent, FONT_INFO } from "./consoleComponent"; import { escaped } from "./vscodeComm"; import "./style.css"; import spinner from "./spinner.svg"; import { IEvaluateMessage, nextMe...
the_stack
import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, Output, EventEmitter, HostBinding, Input, Optional, OnInit, OnDestroy } from '@angular/core'; import { ArgumentHelper } from '../utils/argument.helper'; import { SohoTreeService } from './soho-tree.service'; /** * Valid l...
the_stack
import { TimeService } from '@core/services/time.service'; import { deepClone, isDefined, isNumeric, isUndefined } from '@app/core/utils'; import * as moment_ from 'moment'; import * as momentTz from 'moment-timezone'; const moment = moment_; export const SECOND = 1000; export const MINUTE = 60 * SECOND; export const...
the_stack
import { BigNumber } from "bignumber.js"; import { sortByMarketcap, listTokens, listCryptoCurrencies, getCryptoCurrencyById, getFiatCurrencyByTicker, formatCurrencyUnit, parseCurrencyUnit, chopCurrencyUnitDecimals, formatShort, decodeURIScheme, encodeURIScheme, sanitizeValueString, } from "../cu...
the_stack
import { assert, assertionError } from '@firebase/util'; import { AckUserWrite } from '../operation/AckUserWrite'; import { Merge } from '../operation/Merge'; import { Operation, OperationType } from '../operation/Operation'; import { Overwrite } from '../operation/Overwrite'; import { ChildrenNode } from '../snap/Chi...
the_stack
* @module Workspace */ import * as fs from "fs-extra"; import { parse } from "json5"; import { BeEvent, JSONSchemaType } from "@itwin/core-bentley"; import { LocalFileName } from "@itwin/core-common"; /** The type of a Setting, according to its schema * @beta */ export type SettingType = JSONSchemaType; /** * Th...
the_stack
import {ReadBuffer} from "../buffer"; import LRU from "../lru"; import {ICodec, uuid, ScalarCodec} from "./ifaces"; import {NULL_CODEC, SCALAR_CODECS} from "./codecs"; import {NULL_CODEC_ID, KNOWN_TYPES, KNOWN_TYPENAMES} from "./consts"; import {EMPTY_TUPLE_CODEC, EMPTY_TUPLE_CODEC_ID, TupleCodec} from "./tuple"; impor...
the_stack
import { promisify } from 'util'; import test from 'ava'; import { simpleParser, ParsedMail, AddressObject } from 'mailparser'; import { SMTPServer } from 'smtp-server'; import { DEFAULT_TIMEOUT, SMTPClient, Message, MessageHeaders, isRFC2822Date, } from '../email'; const parseMap = new Map<string, ParsedMail>(...
the_stack
import { Ref } from 'vue' import { storeToRefs } from 'pinia' import { useMainStore, useSlidesStore } from '@/store' import { PPTElement } from '@/types/slides' import { AlignmentLineProps } from '@/types/edit' import { VIEWPORT_SIZE } from '@/configs/canvas' import { getRectRotatedRange, AlignLine, uniqAlignLines } fr...
the_stack
import { Spreadsheet } from '../base/index'; import { ICellRenderer, CellRenderEventArgs, inView, CellRenderArgs, renderFilterCell } from '../common/index'; import { createHyperlinkElement, checkPrevMerge, createImageElement, IRenderer, getDPRValue } from '../common/index'; import { removeAllChildren } from '../common/...
the_stack
import * as protos from '../../protos/operations'; import * as assert from 'assert'; import * as sinon from 'sinon'; import {SinonStub} from 'sinon'; import {describe, it} from 'mocha'; import {OperationsClientBuilder} from '../../src/operationsClient'; import * as protobuf from 'protobufjs'; import {GrpcClient} from '...
the_stack
import MiniCssExtractPlugin from "mini-css-extract-plugin"; import svgToTinyDataUri from "mini-svg-data-uri"; import type Config from "webpack-chain"; import merge from "deepmerge"; import yaml from "js-yaml"; import { getDefaultESBuildTarget, getIncompatibleConfig } from "../utils"; import type { INormalizedOpts } fr...
the_stack
import { applyArtifacts, computeAllStats, createProxiedStats } from "../TestUtils" import formula from "./data" let setupStats // Discord ID: 822256929929822248 describe("Testing Jean's Formulas (sohum#5921)", () => { beforeEach(() => { setupStats = createProxiedStats({ characterHP: 9533, characterATK: 15...
the_stack
import m from 'mithril'; import _ from 'underscore'; import h from '../h'; import projectVM from '../vms/project-vm'; import rewardVM from '../vms/reward-vm'; import faqBox from '../c/faq-box'; import { getCurrentUserCached } from '../shared/services/user/get-current-user-cached'; import { isLoggedIn } from '../shared/...
the_stack
import { AfterViewInit, ChangeDetectorRef, ContentChildren, Directive, ElementRef, EventEmitter, Host, Input, OnDestroy, OnInit, Optional, Output, QueryList, Self, SkipSelf, TemplateRef, ViewChild } from '@angular/core'; import { NgControl, NgForm } fr...
the_stack
import { expect } from "chai"; import { IModelConnection, SnapshotConnection } from "@itwin/core-frontend"; import { ChildNodeSpecificationTypes, InstanceLabelOverrideValueSpecificationType, Ruleset, RuleTypes, VariableValueTypes, } from "@itwin/presentation-common"; import { Presentation } from "@itwin/presentation-...
the_stack
import quinary = require( './index' ); /** * Returns the sum. * * @param x - input value * @param y - input value * @param z - input value * @param w - input value * @param u - input value * @returns sum */ function add( x: number, y: number, z: number, w: number, u: number ): number { return x + y + z + w + u; } /...
the_stack
import { useHistory, withRouter } from 'react-router-dom' import Inventory2Icon from '@mui/icons-material/Inventory2' import AccountTreeIcon from '@mui/icons-material/AccountTree' import TuneIcon from '@mui/icons-material/Tune' import { DockLayout, DockMode, LayoutData } from 'rc-dock' import 'rc-dock/dist/rc-dock.css'...
the_stack
import { DebugSession, ErrorDestination, OutputEvent, InitializedEvent, StackFrame, Source, Scope, Thread } from "vscode-debugadapter"; import { DebugProtocol } from "vscode-debugprotocol"; import { ITraceCmds, LaunchRequestArguments, PrologDebugger } from "./prologDebugger"; import * as path from...
the_stack
import Chart from "chart.js/auto"; import * as helpers from "chart.js/helpers"; import * as _ from "lodash-es"; import { UnitEnum } from "@src/models"; import { formatter } from "@src/utils"; export const INTERVALS = [ 10000, 30000, 60 * 1000, 2 * 60 * 1000, 5 * 60 * 1000, 10 * 60 * 1000, 15 * 60 * 1000,...
the_stack
import { utilsTest, formats, TEST_TIMESTAMP } from "./test-utils"; describe("DateTime calculations", () => { utilsTest("date", (date, utils) => { // ISO string expect(utils.isEqual(date, utils.date(TEST_TIMESTAMP))).toBeTruthy(); // native Date expect(utils.isEqual(date, utils.date(new Date(TEST_TIME...
the_stack
import {TestBed} from '@angular/core/testing'; import {provideMockActions} from '@ngrx/effects/testing'; import {Action, Store} from '@ngrx/store'; import {MockStore, provideMockStore} from '@ngrx/store/testing'; import * as coreActions from '../../core/actions'; import {DataLoadState} from '../../types/data'; import {...
the_stack
import { hash } from '../../../lisk-cryptography/dist-node'; import { LAYER_INDEX_SIZE, NODE_HASH_SIZE, EMPTY_HASH, LEAF_PREFIX, BRANCH_PREFIX, PREFIX_HASH_TO_VALUE, PREFIX_LOC_TO_HASH, NODE_INDEX_SIZE, } from './constants'; import { InMemoryDB } from '../inmemory_db'; import { PrefixStore } from './prefix_stor...
the_stack
import './style.scss'; import React, { useState, useEffect } from 'react'; import { motion, useAnimation } from 'framer-motion'; import { useChat } from '../chat-context/ChatContext'; import { IOption } from '../../types'; export default function ChatBody() { // Attributes const { isOpen, closeChat, config, d...
the_stack
import * as React from "react"; export function Hero() { return ( <div className="pt-8 overflow-hidden sm:pt-12 lg:relative lg:py-48"> <div className="mx-auto max-w-md px-4 sm:max-w-3xl sm:px-6 lg:px-8 lg:max-w-7xl lg:grid lg:grid-cols-2 lg:gap-24"> <div> <di...
the_stack
export const adminPage = `import { useEffect } from "react"; import { useRouter } from "next/router"; import { useEditState } from "tinacms/dist/edit-state"; const GoToEditPage = () => { const { setEdit } = useEditState(); const router = useRouter(); useEffect(() => { setEdit(true); router.back(); }, [...
the_stack
// Should refer to this part. // https://github.com/draft-js-plugins/draft-js-plugins/blob/master/draft-js-mention-plugin/src/MentionSuggestions/index.js#L236 // You can see that name is used for substitued value. // https://github.coam/draft-js-plugins/draft-js-plugins/bloba/mastera/draft-js-mention-plugin/src/modifi...
the_stack
import { expect } from 'chai'; import { ICheckedSelectionState, makeCheckedSelectionStore } from '../makeCheckedSelectionStore'; const getStateRecord = (state: any) => { return state.getIn(['test']) as ICheckedSelectionState; }; const testMakeCheckedSelectionStore = makeCheckedSelectionStore(getStateRecord, { defau...
the_stack
import NetRegexes from '../../../../../resources/netregexes'; import Outputs from '../../../../../resources/outputs'; import { callOverlayHandler } from '../../../../../resources/overlay_plugin_api'; import Util from '../../../../../resources/util'; import ZoneId from '../../../../../resources/zone_id'; import { R...
the_stack
import * as vscode from "vscode"; import * as child_process from "child_process"; import * as path from "path"; import * as fs from "fs"; import * as url from "url"; import * as simulate from "cordova-simulate"; import * as os from "os"; import * as io from "socket.io-client"; import * as execa from "execa"; import * a...
the_stack
// Names from https://blog.codinghorror.com/ascii-pronunciation-rules-for-programmers/ /** * An inlined enum containing useful character codes (to be used with String.charCodeAt). * Please leave the const keyword such that it gets inlined when compiled to JavaScript! * @internal */ export const enum CharCode { N...
the_stack
import * as THREE from 'three'; import {each, filter, findKey} from 'lodash'; import IslandAmbience from '../editor/areas/island/browser/ambience'; import LocationsNode from '../editor/areas/gameplay/locator/LocationsNode'; import Island from '../../game/scenery/island/Island'; import { createScreen } from './vrScreen'...
the_stack
import { CLIENT_NO_SERVER_PING_CLOSE_TIMEOUT, CONNECTION_RETRY_TIME, IS_DEBUG, FLAGS, LOG_LEVEL_LS } from '@/ts/utils/consts'; import { Logger, LogLevel, } from 'lines-logger'; import loggerFactory from '@/ts/instances/loggerFactory'; import MessageHandler from '@/ts/message_handlers/MesageHandler'; impor...
the_stack
import * as Typesettable from "typesettable"; import { Dataset } from "../core/dataset"; import { Formatter, identity } from "../core/formatters"; import { Bounds, Point, SimpleSelection } from "../core/interfaces"; import { memThunk, Thunk } from "../memoize"; import * as Utils from "../utils"; import { StackExtent }...
the_stack
import * as koa from 'koa'; import { EventEmitter } from 'events'; declare class Timing { constructor(); start(name: any): _EggCore.T101; end(name: any): any; toJSON(): any; } /** * BaseContextClass is a base class that can be extended, * it's instantiated in context level, * {@link Helper}, {@lin...
the_stack
import * as firewall from './firewall'; import * as globals from './globals'; import * as local_instance from './local-instance'; import * as logging from '../lib/logging/logging'; import * as metrics from './metrics'; import * as network_options from '../generic/network-options'; import * as remote_user from './remote...
the_stack
@preserve Astronomy library for JavaScript (browser and Node.js). https://github.com/cosinekitty/astronomy MIT License Copyright (c) 2019-2021 Don Cross <cosinekitty@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated docume...
the_stack
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Un...
the_stack
import { DirectiveTransform, createSimpleExpression, Node, NodeTypes, SimpleExpressionNode, CompoundExpressionNode, isText, TextNode, InterpolationNode, createCompoundExpression, TO_DISPLAY_STRING, TransformContext } from '@vue/compiler-dom' import { isNumber, isObject, isString, isSymbo...
the_stack
// eslint-disable-next-line max-len // [...$0.children].map(el => ({ label: (el.getAttribute('aria-label')|| '').replace(/\(.*?\)(.+)/, '$1').trim(), name: el.getAttribute('data-value'), offset: +(el.getAttribute('aria-label')|| '').replace(/\(.*?(-?[0-9]{2}):([0-9]{2})\).*/, (all, one, two) => +one + (two / 60) * (one...
the_stack
import fs from 'fs'; import path from 'path'; import { CancellationToken, WorkspaceFolder } from 'vscode-languageserver'; import { URI, Utils } from 'vscode-uri'; import { ServiceRegistry } from '../service-registry'; import { LangiumSharedServices } from '../services'; import { AstNode, AstNodeDescription, AstReflecti...
the_stack
import runTime from '@feathers-plus/graphql/lib/run-time'; import BatchLoader from '@feathers-plus/batch-loader'; import { assert } from 'chai'; import { parse } from 'graphql'; import { fgraphql } from '../../src'; const { getResultsByKey } = BatchLoader; describe('services fgraphql', () => { describe('using servi...
the_stack
import { i18nMark, withI18n, Trans } from "@lingui/react"; import classNames from "classnames"; import { Confirm, Dropdown, Modal } from "reactjs-components"; import { hashHistory } from "react-router"; import mixin from "reactjs-mixin"; import * as React from "react"; import { Icon } from "@dcos/ui-kit"; import { Syst...
the_stack
import { Vec } from "../math/Vec"; import { Mat3 } from "../math/Mat3"; import { Mat4 } from "../math/Mat4"; import { v3, Vec3 } from "../math/Vec3"; import { Box } from "../struct/3d/Box"; import { Sphere } from "../struct/3d/Sphere"; import { BufferAttribute, Float32BufferAttribute, Uint16BufferAttribute, Uint32Buffe...
the_stack
import { ContextMessageUpdate, Telegraf } from 'telegraf' import { addRaffle, getRaffle, Raffle } from '../models' import { ExtraEditMessage, ChatMember, Message, } from 'telegraf/typings/telegram-types' import { shuffle, random } from 'lodash' import { checkIfAdmin } from './checkAdmin' import { findChat } from ...
the_stack
import { Config, getExecutable, Launcher, LaunchInstance, OldLaunchInstance, Patcher, PatchEvents, PatchInstance, Queue, Rollbacker, State as PatcherState, Uninstaller, } from 'client-voodoo'; import * as fs from 'fs'; import * as path from 'path'; import Vue from 'vue'; import { Action, Mutation, namespace...
the_stack
import * as assert from 'assert'; import { URI as uri } from 'vs/base/common/uri'; import { DebugModel, Breakpoint } from 'vs/workbench/contrib/debug/common/debugModel'; import { getExpandedBodySize, getBreakpointMessageAndIcon } from 'vs/workbench/contrib/debug/browser/breakpointsView'; import { dispose } from 'vs/bas...
the_stack
module dragonBones { /** * @class dragonBones.AnimationState * @classdesc * AnimationState 实例由 Animation 实例播放动画时产生, 可以对单个动画的播放进行最细致的调节。 * @see dragonBones.Animation * @see dragonBones.AnimationData * * @example <pre> //获取动画数据 var skeletonData = RES.getRes("ske...
the_stack
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement } from "../shared"; /** * Statement provider for service [iotwireless](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotcoreforlorawan.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/Us...
the_stack
import { ethers, upgrades, waffle } from "hardhat"; import { Overrides, Signer, BigNumberish, utils, Wallet } from "ethers"; import chai from "chai"; import { solidity } from "ethereum-waffle"; import "@openzeppelin/test-helpers"; import { AlpacaToken, AlpacaToken__factory, FairLaunch, FairLaunch__factory, Fa...
the_stack
import * as vscode from 'vscode'; import { Plugin } from '../plugin'; import { ThemeConfig, getConfigValue, CSS_LEFT, CSS_TOP } from '../config/config'; export type ExplosionOrder = 'random' | 'sequential' | number; export type BackgroundMode = 'mask' | 'image'; export type GifMode = 'continue' | 'restart'; exp...
the_stack
import { useColorMode } from "@docusaurus/theme-common"; import Box from "@mui/material/Box"; import Button from "@mui/material/Button"; import Checkbox from "@mui/material/Checkbox"; import Container from "@mui/material/Container"; import FormControl from "@mui/material/FormControl"; import FormControlLabel from "@mui...
the_stack
import quip from "quip-apps-api"; import React from "react"; import {connect} from "react-redux"; import classNames from "classnames"; import chunk from "lodash.chunk"; import throttle from "lodash.throttle"; import startOfWeek from "date-fns/startOfWeek"; import endOfWeek from "date-fns/endOfWeek"; import eachDayOfInt...
the_stack
import * as vscode from 'vscode'; import SqlToolsServiceClient from '../languageservice/serviceclient'; import { NotificationType, RequestType } from 'vscode-languageclient'; import { TaskExecutionMode } from 'vscode-mssql'; import { Deferred } from '../protocol'; import * as utils from '../models/utils'; import * as l...
the_stack
import type * as BalenaSdk from '..'; import type { AnyObject } from '../typings/utils'; import { Compute, Equals, EqualsTrue } from './utils'; const sdk: BalenaSdk.BalenaSDK = {} as any; const strictPine = sdk.pine as BalenaSdk.PineStrict; let aAny: any; let aNumber: number; let aNumberOrUndefined: number | undefin...
the_stack
import AstNode from './base'; import type * as Values from './values'; import type * as BK from './control_commands'; import type * as CD from './class_def'; import type { FunctionDef, ArgumentDef } from './function_def'; import type * as Prog from './program'; import type * as Stmt from './statement'; import type * as...
the_stack
import { DatePart, DatePartInfo } from '../../directives/date-time-editor/date-time-editor.common'; import { formatDate, FormatWidth, getLocaleDateFormat } from '@angular/common'; import { ValidationErrors } from '@angular/forms'; import { isDate } from '../../core/utils'; /** @hidden */ const enum FormatDesc { Nu...
the_stack
import { AbstractClassType, ClassType, getClassName } from '@deepkit/core'; export type ClassDecoratorFn = (classType: AbstractClassType, property?: string, parameterIndexOrDescriptor?: any) => void; export type PropertyDecoratorFn = (prototype: object, property?: string, parameterIndexOrDescriptor?: any) => void; ex...
the_stack
import express from 'express' import index from '../controllers/client/index' // 主页 import user from '../controllers/client/user/user' // 注册 import personalCenter from '../controllers/client/user/personalCenter' // 用户个人中心 import article from '../controllers/client/article/article' // 文章内容页 import articleBlog from '../c...
the_stack
import { camelCase, cloneDeep, forEachRight, compact, clone } from "lodash-es"; import { Codex, Weapon } from "./codex"; import { i18n } from "@/i18n"; import { NormalMod, NormalModDatabase } from "./codex/mod"; import { hAccSum } from "./util"; import { Buff, BuffList } from "./codex/buff"; import { base62, debase62 }...
the_stack
import { IconCommonClose, IconCommonDataAsset, IconCommonDbt, IconCommonEdit, IconCommonLock, IconCommonSmartQuery, IconCommonSqlQuery } from '@app/assets/icons' import { useBlockSuspense } from '@app/hooks/api' import { useBlockTranscations } from '@app/hooks/useBlockTranscation' import { ThemingVariable...
the_stack
import * as T from "../../../Effect" import * as E from "../../../Either" import type { FiberID } from "../../../Fiber" import type { Journal } from "../Journal/index" export const STMTypeId = Symbol() export type STMTypeId = typeof STMTypeId /** * `STM<R, E, A>` represents an effect that can be performed transactio...
the_stack
import test from 'ava'; import {Conversation} from '../conversation'; import * as Api from '../../api/v2'; import { BasicCard, Button, Suggestions, SimpleResponse, Carousel, Permission, Image, List, RichResponse, MediaObject, Table, BrowseCarousel, MediaResponse, OrderUpdate, LinkOutSugges...
the_stack
import { Subject } from 'rxjs'; import { CoreLogger } from '@singletons/logger'; import { CoreSite, CoreSiteInfoResponse, CoreSitePublicConfigResponse } from '@classes/site'; import { CoreFilepoolComponentFileEventData } from '@services/filepool'; import { CoreNavigationOptions } from '@services/navigator'; import { C...
the_stack
export type FindImgParam = { path: string when?: Function option?: { region?: RegionType threshold?: number } index?: number useCache?: { key?: string, offset?: number } eachTime?: number nextTime?: number once?: boolean take?: number doIfN...
the_stack
import bind from "bind-decorator" import classNames from "classnames" import React, { MouseEvent } from "react" import { dapps, links, quotes, snippet } from "../../data" import { images, styles, videos } from "./styles" export interface Props { linked: boolean onClickDisconnect: () => void } export class RootPag...
the_stack
import "./helpers/dotenv_helper"; import { getTestId, dispatch, getState } from "./helpers/test_helper"; import { testExport } from "./helpers/export_helper"; import * as R from "ramda"; import { createBlock } from "./helpers/blocks_helper"; import { registerWithEmail } from "./helpers/auth_helper"; import { createApp ...
the_stack
'use strict' import { ConfigurationChangeEvent, FileSystemWatcher, StatusBarItem, WorkspaceConfiguration } from 'coc.nvim' import { CancellationToken, Disposable, Event, Position, TextDocument, WorkspaceEdit, WorkspaceFolder } from 'vscode-languageserver-protocol' import { Uri, Terminal, TerminalOptions } from 'coc.nvi...
the_stack
export declare function forEach(array: any[], fn: Function): void; /** * @returns array of elements matching the filter */ export declare function filter(array: any[], fn: Function): any; /** * @returns The result of processing the reduction function on all * of the items in the array */ export declare function ...
the_stack
import app = require("./app"); import {autoFocus} from "./utils"; let WebSocket = require('ws'); let uuid = require("uuid"); enum CardState { NONE, GOOD, PENDING, CLOSED, ERROR, } enum ReplState { CONNECTED, DISCONNECTED, CONNECTING, } export interface Query { type: string, query: string, id: ...
the_stack