text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import * as cairo from '@gi-types/cairo'; import * as Gdk from '@gi-types/gdk'; import * as GdkPixbuf from '@gi-types/gdkpixbuf'; import * as Gio from '@gi-types/gio'; import * as GLib from '@gi-types/glib'; import * as GObject from '@gi-types/gobject'; import * as Graphene from '@gi-types/graphene'; import * as Gsk fr...
the_stack
import React, { useCallback, useMemo, useReducer, useRef, useState, } from 'react' import { Column, useExpanded, useTable } from 'react-table' import { SortEndHandler, SortStartHandler } from 'react-sortable-hoc' import { ChannelTableContentsSet, ChannelTableContentsSetVariables, ChannelTableContentsSe...
the_stack
import { defineComponent } from 'vue'; import classNames from '../../../_util/classNames'; import PropTypes from '../../../_util/vue-types'; import addEventListener from '../../../vc-util/Dom/addEventListener'; import warning from '../../../_util/warning'; import { initDefaultProps, getSlot } from '../../../_util/props...
the_stack
import { waitFor, fireEvent } from '@testing-library/react' import React from 'react' import { queryKey, sleep, mockConsoleError, renderWithClient, setActTimeout, Blink, } from './utils' import { useInfiniteQuery, UseInfiniteQueryResult, QueryClient, QueryCache, } from '../..' interface Result { ...
the_stack
import {exactMatchOptions, subsetMatchOptions} from '../src/router'; import {containsTree, DefaultUrlSerializer} from '../src/url_tree'; describe('UrlTree', () => { const serializer = new DefaultUrlSerializer(); describe('DefaultUrlSerializer', () => { let serializer: DefaultUrlSerializer; beforeEach(() ...
the_stack
import { TypeMap, Watchers, WiredProperties, WiredMethods, AirwireException, AirwirePromise, ComponentResponse, Magic, TypeName, TypeNames } from 'airwire' export class Component<AirwireComponent = TypeMap[keyof TypeMap]> { public proxy: any; public loading: boolean = false; public errors: Record<string,...
the_stack
import React, { useEffect, useState, useRef, useCallback } from "react"; import EditorView from "./EditorView"; import ListView from "./ListView"; import GraphView from "./GraphView"; import LoginView from "./LoginView"; import ConfirmationServiceProvider from "./ConfirmationServiceProvider"; import AppMenu from "./App...
the_stack
import Vue from 'vue' import { mount, Wrapper, MountOptions, } from '@vue/test-utils' import VTreeview from '../VTreeview' import { ExtractVue } from '../../../util/mixins' import { wait } from '../../../../test' const singleRootTwoChildren = [ { id: 0, name: 'Root', children: [{ id: 1, name: 'Child' }, { id: ...
the_stack
import { nextTick } from 'vue' import XEUtils from 'xe-utils' import { VXETable } from '../../v-x-e-table' import { toFilters, handleFieldOrColumn } from '../../table/src/util' import { getDomNode, triggerEvent } from '../../tools/dom' import { VxeGlobalHooksHandles, TableFilterMethods, TableFilterPrivateMethods } fro...
the_stack
import { OrderDiscountCommonInput, OrderErrorCode, OrderEventsEmailsEnum, OrderEventsEnum, FulfillmentStatus, PaymentChargeStatusEnum, OrderStatus, OrderAction, JobStatusEnum } from "./../../types/globalTypes"; // ==================================================== // GraphQL mutation operation: OrderLineDiscountAdd ...
the_stack
* @fileoverview Computes the difference between two texts to create a patch. * Applies the patch onto another text, allowing for errors. * @author fraser@google.com (Neil Fraser) */ /** * CHANGES by pedrottimark to diff_match_patch_uncompressed.ts file: * * 1. Delete anything not needed to use diff_cleanupSemant...
the_stack
import { expect } from 'chai'; import { firstValueFrom, of as observableOf, of } from 'rxjs'; import { catchError, map } from 'rxjs/operators'; import { NetworkConfigurationDTO, NodeRoutesApi } from 'symbol-openapi-typescript-fetch-client'; import { instance, mock, when } from 'ts-mockito'; import { AccountHttp, ...
the_stack
import * as os from 'os'; import * as path from 'path'; import { testDeprecated } from '@aws-cdk/cdk-build-tools'; import { FileAssetPackaging } from '@aws-cdk/cloud-assembly-schema'; import * as cxapi from '@aws-cdk/cx-api'; import * as fs from 'fs-extra'; import * as sinon from 'sinon'; import { App, AssetHashType, A...
the_stack
import { Component, OnInit, OnDestroy, EventEmitter } from '@angular/core'; import { Router } from '@angular/router'; import { Store } from '@ngrx/store'; import { combineLatest, Subject } from 'rxjs'; import { NgrxStateAtom } from 'app/ngrx.reducers'; import { LayoutFacadeService, Sidebar } from 'app/entities/layout/l...
the_stack
module BABYLON { export class Text2DRenderCache extends ModelRenderCache { effectsReady: boolean = false; vb: WebGLBuffer = null; ib: WebGLBuffer = null; instancingAttributes: InstancingAttribu...
the_stack
import * as Boom from "@hapi/boom"; import * as Hapi from "@hapi/hapi"; import * as HapiAuthBearer from 'hapi-auth-bearer-token'; import * as Joi from "@hapi/joi"; import { Connection, PaperSelector } from "./db-connection"; import * as s2Api from "./s2-api"; import { Entity, EntityCreatePayload, EntityUpdatePayl...
the_stack
import { DinoContainer, IDinoContainerConfig, DIContainer, RouteTable, ObjectUtility, DinoUtility, RequestStartMiddleware, IRouteTable, DinoErrorController, ControllerAction, DinoController, RequestEndMiddleware, ErrorMiddleware, Constants, IAct...
the_stack
import * as Fs from 'fs' import * as Path from 'path' import { Glob } from 'glob' import { dialog } from 'electron' import { v4 as uuid } from 'uuid' import { findIndex, omit } from 'lodash' import { ApplicationWindow } from '@main/application-window' import { Frameworks } from '@lib/frameworks' import { ProjectEventEm...
the_stack
import { text, integer, relationship } from '@keystone-next/keystone/fields'; import { list } from '@keystone-next/keystone'; import { setupTestRunner } from '@keystone-next/keystone/testing'; import { apiTestConfig, expectGraphQLValidationError, expectLimitsExceededError } from '../utils'; import { depthLimit, definit...
the_stack
import forEach from "lodash/forEach"; import { displaySemicolon, getBlankLinesSeparator, getClassBodyDeclarationsSeparator, isStatementEmptyStatement, putIntoBraces, reject, rejectAndConcat, rejectAndJoin, rejectAndJoinSeps, sortClassTypeChildren, sortModifiers } from "./printer-utils"; import { c...
the_stack
import React, { FunctionComponent, useCallback, useEffect, useRef, useState, } from "react"; import { Dimensions, Image, StatusBar, StyleSheet, View } from "react-native"; import Animated, { Easing } from "react-native-reanimated"; import { observer } from "mobx-react-lite"; import { useStyle } from "../../st...
the_stack
import finale from '../utils/finale' import { removeDefaultImport, removeRequireAndImport } from '../utils/imports' import logger from '../utils/logger' const getAssertionExpression = (chaiAssertExpression, assertionName) => ({ type: 'CallExpression', callee: { type: 'MemberExpression', object: chaiAssertE...
the_stack
import * as React from 'react'; import { cc98Fetch, getToken } from '../../Utility'; import Button from 'antd/es/button'; import Table from 'antd/es/table'; import Checkbox from 'antd/es/checkbox'; import Input from 'antd/es/input'; import * as moment from 'moment'; const PostForumIndexColumnInfoType = [ '推荐阅读', '...
the_stack
export const weekday = [ { Day: 'Friday', 'SUM(AIR_TIME)': 1943661 }, { Day: 'Saturday', 'SUM(AIR_TIME)': 1798845 }, { Day: 'Thursday', 'SUM(AIR_TIME)': 1626157 }, { Day: 'Sunday', 'SUM(AIR_TIME)': 1048653 }, ]; export const population = [ { Country: 'China', Population: 58345455000 }, { Country: 'India', ...
the_stack
import React from 'react'; export function getDesignerIcon(icon: string) { if (icon === 'routes') return ( <svg className="top-icon" width="32px" height="32px" viewBox="0 0 32 32" id="icon"> <defs> <style>{".cls-1{fill:none;}"}</style> </defs> <path d="M2...
the_stack
import { Constants, PersistentCacheKeys, TemporaryCacheKeys, ErrorCacheKeys, ServerHashParamKeys, SESSION_STORAGE} from "../utils/Constants"; import { AccessTokenCacheItem } from "./AccessTokenCacheItem"; import { CacheLocation } from "../Configuration"; import { BrowserStorage } from "./BrowserStorage"; import { Reque...
the_stack
declare const enum FBSDKDefaultAudience { Friends = 0, OnlyMe = 1, Everyone = 2 } declare class FBSDKDeviceLoginCodeInfo extends NSObject { static alloc(): FBSDKDeviceLoginCodeInfo; // inherited from NSObject static new(): FBSDKDeviceLoginCodeInfo; // inherited from NSObject readonly expirationDate: Date; ...
the_stack
import { Base } from "../class/Base.js" import { CI } from "../collection/Iterator.js" import { DEBUG, warn } from "../environment/Debug.js" import { cycleInfo, OnCycleAction, WalkStep } from "../graph/WalkDepth.js" import { CalculationContext, runGeneratorAsyncWithEffect, SynchronousCalculationStarted } from "../primi...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs, enums } from "../types"; import * as utilities from "../utilities"; /** * Manages an AWS Storage Gateway file, tape, or volume gateway in the provider region. * * > **NOTE:** The Storage Gateway API requires the gateway to be con...
the_stack
* @module Curve */ import { BSplineCurve3d, BSplineCurve3dBase } from "../bspline/BSplineCurve"; import { BSplineCurve3dH } from "../bspline/BSplineCurve3dH"; import { Geometry } from "../Geometry"; import { NullGeometryHandler } from "../geometry3d/GeometryHandler"; import { GrowableFloat64Array } from "../geometry3...
the_stack
import { XmppJsInstance, XMPP_PROTOCOL } from "./XJSInstance"; import { Element, x } from "@xmpp/xml"; import { jid, JID } from "@xmpp/jid"; import { Logging } from "matrix-appservice-bridge"; import { IConfigBridge } from "../Config"; import { IBasicProtocolMessage } from "..//MessageFormatter"; import { IGatewayJoin,...
the_stack
import * as _ from 'lodash'; import {AbstractComponent} from '@common/component/abstract.component'; import { Component, ElementRef, EventEmitter, Injector, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChange, SimpleChanges, ViewChild } from '@angular/core'; import {TimeUnit} from '@domain/workb...
the_stack
import * as fs from "fs"; import * as parse5 from "parse5"; import * as dom5 from "dom5"; import * as path from "path"; import {Node} from 'dom5'; import {fail, unexpectedSwitchValue} from "../utils/common"; import {readMultilineParamFile} from "../utils/command-line"; import { HtmlSrcFilePath, JsSrcFilePath, Htm...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { permutation } from "js-combinatorics"; pulumi.runtime.setConfig("aws:region", "us-east-2"); import * as assert from "assert"; import * as utils from "../../utils"; import { Cidr32Block } from "../../ec2/cidr"; import { VpcSubnetArgs } from "../../ec2/vpc"; ...
the_stack
import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; 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...
the_stack
import SwaggerParser from '@apidevtools/swagger-parser' import fs from 'fs-extra' import { OpenAPIV3 } from 'openapi-types' import { CollectionDefinition } from 'postman-collection' import * as mockOAS from '../../__tests__/fixtures/mockOAS.json' import * as mockPostman from '../../__tests__/fixtures/mockPostman.json' ...
the_stack
import * as React from "react"; import { useCallback, useLayoutEffect, useMemo } from "react"; import { Column, ColumnInstance, DataRecord } from "react-table"; import "@kogito-tooling/boxed-expression-component"; import { ColumnsUpdateArgs, ExpressionProps, GroupOperations, RowsUpdateArgs, TableHeaderVisibil...
the_stack
import type { IconifyJSON } from '@iconify/types' // import { useConfig, useDebugger } from '@nbhr/utils' import type { UnoGenerator } from '@unocss/core' import { createGenerator } from '@unocss/core' import UnocssIcons from '@unocss/preset-icons' import fg from 'fast-glob' import { readFileSync } from 'fs' import { p...
the_stack
//JavaScript Image Resizer (c) 2012 - Grant Galitz export class Resize { constructor(widthOriginal, heightOriginal, targetWidth, targetHeight, blendAlpha, interpolationPass, useWebWorker, resizeCallback) { this.widthOriginal = Math.abs(parseInt(widthOriginal) || 0); this.heightOriginal = Math.abs(parseInt(heightO...
the_stack
import { assert, Has, NotHas, IsAny, IsExact } from "conditional-type-checks"; import * as Comlink from "../src/comlink.js"; async function closureSoICanUseAwait() { { function simpleNumberFunction() { return 4; } const proxy = Comlink.wrap<typeof simpleNumberFunction>(0 as any); assert<IsAny...
the_stack
import { Identity } from '@textile/crypto' import { CopyAuthOptions, GrpcAuthentication, WithKeyInfoOptions, WithUserAuthOptions, } from '@textile/grpc-authentication' import { Client } from '@textile/hub-threads-client' import { KeyInfo, UserAuth } from '@textile/security' import { ThreadID } from '@textile/th...
the_stack
import "./helpers/dotenv_helper"; import { getTestId, dispatch, getState } from "./helpers/test_helper"; import { envkeyFetch } from "./helpers/fetch_helper"; import { graphTypes } from "@core/lib/graph"; import { getAuth } from "@core/lib/client"; import * as R from "ramda"; import { createBlock } from "./helpers/bloc...
the_stack
import { Tagged } from "../../Case" import * as Clock from "../../Clock" import * as ClockId from "../../Clock/id" import * as Chunk from "../../Collections/Immutable/Chunk" import * as HashMap from "../../Collections/Immutable/HashMap" import * as List from "../../Collections/Immutable/List" import * as SortedSet from...
the_stack
import { Component, OnInit, ViewChild, OnDestroy, AfterViewInit } from '@angular/core'; import { CalendarOptions, EventInput } from '@fullcalendar/core'; import { FullCalendarComponent } from '@fullcalendar/angular'; import dayGridPlugin from '@fullcalendar/daygrid'; import timeGrigPlugin from '@fullcalendar/timegrid';...
the_stack
import * as vscode from 'vscode'; import * as cp from 'child_process'; import * as http from 'http'; import * as net from 'net'; import * as url from 'url'; import * as path from 'path'; import * as fs from 'fs'; import * as websockets from 'ws'; import { getConfig } from './config'; import compileDocs, { draftRoot } f...
the_stack
import { TypeAssertion, TypeAssertionMap } from '../../types'; import * as JsonSchema from '../../types/json-schema-types'; function addMetaInfo(a: JsonSchema.JsonSchemaAssertion, ty: TypeAssertion) { const a2 = {...a}; let changed = false; if (ty.docComment) { a2.description = ty....
the_stack
import { getVoidLogger } from '@backstage/backend-common'; import { Entity, DEFAULT_NAMESPACE } from '@backstage/catalog-model'; import { ConfigReader } from '@backstage/config'; import express from 'express'; import request from 'supertest'; import mockFs from 'mock-fs'; import path from 'path'; import fs from 'fs-ext...
the_stack
import { POSITION_UNKNOWN, SourceLocation, SourcePosition, isSourcePosition, } from "@opticss/element-analysis"; import { SerializedTemplateInfo, TemplateAnalysis as OptimizationTemplateAnalysis, TemplateInfoFactory, TemplateTypes, } from "@opticss/template-api"; import { ObjectDictionary, objectValues ...
the_stack
import { DecorationRenderOptions } from 'vscode'; import { TheTask } from './TheTask'; /** * Object describing items for Tree View Provider */ export interface ItemForProvider { title: string; tasks: TheTask[]; } /** * Due date possible values */ export const enum DueState { notDue, due, overdue, invalid, } /...
the_stack
import React, { FunctionComponent, useState, useEffect, useCallback } from 'react'; import { ContentSwitcher, Form, Switch, MultiSelect } from 'carbon-components-react'; import TransactionManualInput from '../TransactionManualInput/TransactionManualInput'; import TransactionDataInput from '../TransactionDataInput/Trans...
the_stack
import { getScaleFactor } from './Scale'; /** * @ignore */ export function getOrbitShaderFragment() { return ` varying vec3 vColor; uniform sampler2D texture; void main() { gl_FragColor = vec4(vColor, 1.0) * texture2D(texture, gl_PointCoord); } `; } /** * @ignore */ export function getO...
the_stack
import * as React from "react"; import { ZxSpectrumCoreBase } from "../machines/zx-spectrum/ZxSpectrumCoreBase"; import Key from "./Sp48Key"; import { Sp48ButtonClickArgs } from "./ui-core-types"; import styles from "styled-components"; import { getVmEngineService } from "../machines/core/vm-engine-service"; const D...
the_stack
namespace pxsim.protocol { /** * Host for debug session that is responsible with communication with * the debugger's user interface. */ export interface DebugSessionHost { send(msg: string): void; onData(cb: (msg: DebugProtocol.ProtocolMessage) => void): void; onError(cb: ...
the_stack
import { Response } from 'node-fetch'; import { IResult } from '../../models/http-result'; import * as path from 'path'; import * as fs from 'fs'; export class Utils { private static readonly LOG_FILE_PATH = '../../../log.txt'; private static writeStream = fs.createWriteStream(path.resolve(__dirname, Utils.LOG_...
the_stack
'use strict'; import {DebugSession, InitializedEvent, TerminatedEvent, StoppedEvent, BreakpointEvent, OutputEvent, Thread, StackFrame, Scope, Source, Handles, Breakpoint} from 'vscode-debugadapter'; import {DebugProtocol} from 'vscode-debugprotocol'; import {readFileSync} from 'fs'; import {basename, dirname} from 'pa...
the_stack
import { CreateOptionsRes } from '../core/components/formTypes'; import { IBlockType, IStoreData } from '../core/store/storetype'; import { CSSProperties, PropsWithChildren, useEffect, useMemo, useState } from 'react'; import React from 'react'; import { Tabs, Input, Row, Col, Checkbox, InputNumber } from 'antd'; impor...
the_stack
import ClassOrder from './class-order' import { defaultGraphURI } from './factories/canonical-data-factory' import Formula, { FormulaOpts } from './formula' import { ArrayIndexOf } from './utils' import { RDFArrayRemove } from './utils-js' import { isRDFlibObject, isStore, isGraph, isPredicate, isQuad, isSu...
the_stack
import BTree from 'sorted-btree'; import { fail, assert, comparePayloads, copyPropertyIfDefined } from './Common'; import { NodeData, Payload } from './generic'; import { NodeId, TraitLabel } from './Identifiers'; import { compareStrings } from './SnapshotUtilities'; type Optional<T> = { [P in keyof T]: T[P] | undefi...
the_stack
import path from 'path' import { renderMarkdown } from './util' interface HandlebarData { packageName?: string packageDirectory?: string shortPackageName?: string tokenizerName: string tokenizerPriority: string inGfm?: boolean inGfmEx?: boolean isInlineTokenizer: boolean isBlockTokenizer: boolean u...
the_stack
import { emitMempoolInfo, dropWebSocket } from "../../support/websocket"; const baseModule = Cypress.env("BASE_MODULE"); //Credit: https://github.com/bahmutov/cypress-examples/blob/6cedb17f83a3bb03ded13cf1d6a3f0656ca2cdf5/docs/recipes/overlapping-elements.md /** * Returns true if two DOM rectangles are overlapping...
the_stack
import { left, right, leftStopAtNewLines, chompLeft } from "string-left-right"; import { fixEnt } from "string-fix-broken-named-entities"; import { removeWidows } from "string-remove-widows"; import { rProcessOutside } from "ranges-process-outside"; import { collapse } from "string-collapse-white-space"; import { trimS...
the_stack
import { makeExecutableSchema } from 'apollo-server'; import { getAdditionalSchemas, queries, mutations, getResolvers, getCollections, QueryAndDescription, MutationAndDescription } from '../../../lib/vulcan-lib/graphql'; import { selectorInputTemplate, mainTypeTemplate, createInputTemplate, createDataInputTempl...
the_stack
import { ComponentInfoForMerge, ComponentSkeletonModel, mergeFiles, ProjectSyncMetadataModel, renameAndSerializePlasmicASTNode, WarningInfo, } from "../index"; import { CodeVersion } from "../plasmic-parser"; import { code, formatted } from "../utils"; describe("Test CodeMerger", function () { it("no cha...
the_stack
export type DateTime = any; /* The &#x60;BigDecimal&#x60; scalar type represents signed fractional values with arbitrary precision. */ export type BigDecimal = any; /* The &#x60;BigInt&#x60; scalar type represents non-fractional signed whole numeric values. BigInt can represent arbitrary big values. */ export type Bi...
the_stack
import React, { PureComponent } from 'react' import ConsentManagerBuilder from '../consent-manager-builder' import Container from './container' import { ADVERTISING_CATEGORIES, FUNCTIONAL_CATEGORIES } from './categories' import { CategoryPreferences, Destination, ConsentManagerProps, PreferenceDialogTemplate } ...
the_stack
import {Component, Input, OnChanges, OnInit, SimpleChanges} from "@angular/core"; import {FormGroup} from "@angular/forms"; import * as _ from "underscore" import {Templates} from "../../feed-mgr/services/TemplateTypes"; import {FieldConfig} from "../../dynamic-form/model/FieldConfig"; import {FieldGroup} from "../../...
the_stack
import 'd3-transition'; import { rgb as d3_rgb, } from 'd3-color'; import { scaleOrdinal as d3_scaleOrdinal, schemeCategory10 as d3_schemeCategory10 } from 'd3-scale'; import { BaseType as d3_BaseType, Selection as d3_Selection, select as d3_select, event as d3_event, } from 'd3-selection'; import { ...
the_stack
import { Match, MatchGame, Seeding, Stage, Status } from 'brackets-model'; import { BracketKind, ParticipantSlot, Side } from '../types'; import { SetNextOpponent } from '../helpers'; import { ordering } from '../ordering'; import { Create } from '../create'; import { BaseGetter } from './getter'; import * as helpers f...
the_stack
import { compose, createSelector } from '@ngrx/store'; import { Step, RateType, Entities, Rational, DisplayRateVal, RationalProduct, Product, MatrixResultType, } from '~/models'; import { RateUtility, SimplexUtility, FlowUtility, RecipeUtility, } from '~/utilities'; import * as Factories from '...
the_stack
import { Currency, CurrencyAmount, IssuedCurrencyAmount, XRPDropsAmount, } from '../../../src/XRP/Generated/web/org/xrpl/rpc/v1/amount_pb' import { Amount, Date, Destination, Account, SigningPublicKey, TransactionSignature, Sequence, DestinationTag, DeliverMin, InvoiceID, SendMax, MemoDa...
the_stack
import { IAspectExports } from "../util/IAspectExports"; import { Rtrace, BlockInfo, TOTAL_OVERHEAD } from "../util/rTrace"; // @ts-ignore: Constructor is new Long(low, high, signed); import Long from "long"; import { NameSection } from "../util/wasmTools"; import { ReflectedValue } from "../util/ReflectedValue"; impo...
the_stack
import { TimeInstant } from '../time'; import { Command } from 'nf-grapher'; import { ScoreAudioParam } from '../params/ScoreAudioParam'; import { SPNode, NodePlaybackDescription } from './SPNode'; import { SPNodeFactory } from './SPNodeFactory'; import { mixdown, asInterleaved, asPlanar } from '../AudioBufferUtils'; i...
the_stack
import '../common/eager_offset' import { Bytes } from '../common/collections' import { BigInt } from '../common/numbers' // Most types from this namespace are direct mappings or adaptations from: // https://github.com/streamingfast/proto-near/blob/develop/sf/near/codec/v1/codec.proto export namespace near { export t...
the_stack
import { Component, OnInit, OnDestroy } from '@angular/core'; import { environment } from './../../../../../environments/environment'; import { AssetGroupObservableService } from '../../../../core/services/asset-group-observable.service'; import { ActivatedRoute, Router } from '@angular/router'; import { Subscription }...
the_stack
import BigNumber from 'bignumber.js' import { SmartBuffer } from 'smart-buffer' import { readVarUInt, writeVarUInt } from './varuint' import { getBitsFrom } from './bitmask' import { MAX_INT64, ONE_HUNDRED_MILLION, readBigNumberUInt64, writeBigNumberUInt64 } from './bignumber' export interface BufferComposer { fromB...
the_stack
import { getOffsetSecondsFromTimezoneString, getTimezoneOffsetFromSeconds } from '../util/DateTimeUtil'; /** * ### Local time object * * Represents time in day without timezone. */ export class LocalTime { private static readonly timeStringRegex = /(\d\d):(\d\d):(\d\d)(\.\d+)?/; /** * @param h...
the_stack
declare module '@emp-antd/base/App' { /// <reference types="react" /> import '@emp-antd/base/index.scss' import '@emp-antd/base/App.scss' import {RouterCompType} from '@emp-antd/base/types' const App: ({layout, routes, stores}: RouterCompType) => JSX.Element export default App } declare module '@emp-antd/ba...
the_stack
import 'mocha' import { expect } from 'chai' import {spy} from 'sinon' import * as C from '../../constants' import { recordRequest } from './record-request' import { getTestMocks } from '../../test/helper/test-mocks' import { RECORD_ACTION } from '../../constants' import * as testHelper from '../../test/helper/test-h...
the_stack
import * as React from 'react'; import { useState } from 'react'; import { NavLink, useHistory, useLocation, useParams } from 'react-router-dom'; import { Button, Dropdown, message, Modal, MessageArgsProps, Tooltip, notification } from 'antd'; // @Components import { BreadcrumbsProps, withHome, Breadc...
the_stack
import { PluginStateObject, PluginStateTransform } from '../../mol-plugin-state/objects'; import { createSphericalCollocationGrid } from './orbitals'; import { ParamDefinition as PD } from '../../mol-util/param-definition'; import { Task } from '../../mol-task'; import { CustomProperties } from '../../mol-model/custom-...
the_stack
import React, { ComponentType, isValidElement, ReactElement, useCallback, useMemo, useRef, useState } from 'react'; import { Animated, FlatList, FlatListProps, ListRenderItem, ListRenderItemInfo, NativeScrollEvent, NativeSyntheticEvent, StyleProp, StyleSheet, Text, TextStyle, Touch...
the_stack
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * Operations * __NOTE__: An instance of this class is automatically created for an * instance of the DataFactoryManagementClient. */ export interface Operation...
the_stack
import {AfterViewInit, Component, ElementRef, Injector, OnDestroy, OnInit, ViewChild} from '@angular/core'; import {Alert} from '@common/util/alert.util'; import {StringUtil} from '@common/util/string.util'; import {EventBroadcaster} from '@common/event/event.broadcaster'; import {Field} from '@domain/data-preparation/...
the_stack
import { action, computed, observable, reaction, autorun } from 'mobx'; import _ from 'lodash'; import { XYWH, XY, dummy as geom } from '~/domain/geometry'; import { StoreFrame } from '~/store/frame'; import ControlStore from '~/store/stores/controls'; import InteractionStore from '~/store/stores/interaction'; import...
the_stack
import { PdfStreamWriter } from './../../input-output/pdf-stream-writer'; import { GetResourceEventHandler } from './../pdf-graphics'; import { PdfColorSpace } from './../enum'; import { PdfBrush } from './pdf-brush'; import { PointF, SizeF, RectangleF, Rectangle } from './../../drawing/pdf-drawing'; import { IPdfWrapp...
the_stack
import React, { useEffect, useRef } from 'react' import { act, render } from '@react-facet/dom-fiber-testing-library' import { useFacetMap } from './useFacetMap' import { NO_VALUE, Facet } from '../types' import { useFacetEffect } from './useFacetEffect' import { createFacet } from '../facet' import { useFacetState } f...
the_stack
import { util } from "../helpers/util.ts"; import { ZodTypes } from "../ZodTypes.ts"; import { ParseParams, ZodParser } from "../parser.ts"; import { ZodCustomIssue, ZodError, ZodIssueCode, MakeErrorData, } from "../ZodError.ts"; import { ZodArray, ZodNullable, ZodNullableType, ZodOptional, ZodOption...
the_stack
import { Response, Request } from "express"; import ChunkInterface from "./utils/ChunkInterface"; import { UserInterface } from "../../models/user"; import NotAuthorizedError from "../../utils/NotAuthorizedError"; import NotFoundError from "../../utils/NotFoundError"; import crypto from "crypto"; import getBusboyData f...
the_stack
import { calcInputByPrice, calcOutByIn, calcPrice, revertPositive } from './MultiRouterMath'; import {PoolType, Pool, Route} from './MultiRouterTypes' const LegGasConsuming = 40_000; function calcPoolChainOutByIn(pools:Pool[], amountIn: number): number { return pools.reduce((input, p) => calcOutByIn(p, input), am...
the_stack
import {app} from './app.js'; app.controller( 'specTabCtrl', function ($scope, $location, $filter, $sce, Spec, storageService) { // Initial Config $scope.canEdit = false; $scope.editing = false; $scope.overlay = false; $scope.configuring = false; $scope.showingVideoWarning = false; $sco...
the_stack
/// <reference path="ezgui.ts" /> declare var Phaser; module EZGUI { export class Theme { static imageComponents = ['bg', 'corner', 'line', 'side', 'image', 'checkmark']; static imageStates = ['default', 'hover', 'down', 'checked']; static imageVariants = ['', 't', 'r', 'b', 'l', 'left', '...
the_stack
import { TextDocument, Location, Range } from 'vscode'; import { SystemVerilogSymbol } from './symbol'; export class SystemVerilogParser { private illegalMatches = /(?!return|begin|end|else|join|fork|for|if|virtual|static|automatic|generate|assign|initial|assert|disable)/; private comment = /(?:\/\/.*$)?/; ...
the_stack
import { BigAmount } from '@emeraldpay/bigamount'; import { isLedger, SeedReference } from '@emeraldpay/emerald-vault-core'; import { amountDecoder, BlockchainCode, Blockchains, HDPath, isEthereum } from '@emeraldwallet/core'; import { accounts, hdpathPreview, hwkey, IState } from '@emeraldwallet/store'; import { HDPat...
the_stack
import { Credentials } from '@aws-amplify/core'; import { LocationClient, SearchPlaceIndexForPositionCommand, SearchPlaceIndexForTextCommand, } from '@aws-sdk/client-location'; import { GeoClass } from '../src/Geo'; import { AmazonLocationServiceProvider } from '../src/Providers/AmazonLocationServiceProvider'; impo...
the_stack
import { Injectable } from '@angular/core'; import { Angulartics2 } from '../../angulartics2-core'; declare var _paq: any; export type EventTrackAction = | 'setEcommerceView' | 'addEcommerceItem' | 'trackEcommerceCartUpdate' | 'trackEcommerceOrder' | 'trackLink' | 'trackGoal' | 'trackSiteSearch' | st...
the_stack
import Dimensions = Utils.Measurements.Dimensions; import DisplayObject = etch.drawing.DisplayObject; import IDisplayContext = etch.drawing.IDisplayContext; import Point = etch.primitives.Point; import Size = minerva.Size; import {Device} from '../Device'; import {IApp} from '../IApp'; import {MainScene} from './../Mai...
the_stack
import { Box, Button, Checkbox, ColumnLayout, Container, Form, FormField, Header, Input, Multiselect, SpaceBetween } from "@awsui/components-react"; import { OptionDefinition } from "@awsui/components-react/internal/components/option/interfaces"; import { MemoryHistory } from "history"; import pat...
the_stack
import { render } from 'mustache'; import { cyan, green } from 'chalk'; import { Module, Component } from '../parser/formatters'; import { WorldLayout, GardenLayout, WallThickness, TreeLayout, TreeWidth, LeaveSet, LeafType, Position, Size } from './layout'; const Header = `<!DOCTYPE html> <html lang...
the_stack
import { produce } from 'immer'; import clone from 'lodash-es/clone'; import fill from 'lodash-es/fill'; import includes from 'lodash-es/includes'; import isFinite from 'lodash-es/isFinite'; import isNumber from 'lodash-es/isNumber'; import values from 'lodash-es/values'; import { DiagramMakerData, DiagramMakerNode } ...
the_stack
import {Query} from '@parca/parser'; import {QueryServiceClient, ProfileTypesResponse} from '@parca/client'; import {RpcError} from '@protobuf-ts/runtime-rpc'; import {ProfileSelection} from '@parca/profile'; import React, {useEffect, useState} from 'react'; import ProfileMetricsGraph from '../ProfileMetricsGraph'; imp...
the_stack