text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
import * as React from 'react'; import { Button, ButtonProps } from '@mui/material'; import { Theme } from '@mui/material/styles'; import { createStyles, makeStyles } from '@mui/styles'; import Axios, { AxiosError } from 'axios'; import * as QueryString from 'query-string'; import { Link } from 'react-router-dom'; im...
the_stack
import * as crypto from "crypto"; import * as debug_ from "debug"; import * as path from "path"; import { ok } from "readium-desktop/common/utils/assert"; import { httpGet } from "readium-desktop/main/network/http"; import { getUniqueResourcesFromR2Publication, w3cPublicationManifestToReadiumPublicationManifest, } ...
the_stack
import * as mockery from 'mockery'; import { mockElectron } from './electron'; import * as assert from 'assert'; import ofEvents from '../src/browser/of_events'; import route from '../src/common/route'; // tslint:disable-next-line const sinon = require('sinon'); mockery.registerMock('electron', mockElectron); mockery...
the_stack
import { useContext, useEffect, useMemo, useRef, useState } from 'react'; import { equal } from '@wry/equality'; import { OperationVariables } from '../../core'; import { getApolloContext } from '../context'; import { ApolloError } from '../../errors'; import { ApolloQueryResult, NetworkStatus, ObservableQuery, ...
the_stack
import { MachineConfig, AnyEventObject, forwardTo, Machine } from "xstate" import { IDataLayerContext } from "../data-layer/types" import { IQueryRunningContext } from "../query-running/types" import { IWaitingContext } from "../waiting/types" import { buildActions } from "./actions" import { developServices } from "./...
the_stack
import { Injectable } from '@angular/core'; import { Params } from '@angular/router'; import moment from 'moment'; import { CoreSites, CoreSitesReadingStrategy } from '@services/sites'; import { CoreCourse, CoreCourseCompletionActivityStatus, CoreCourseModuleWSCompletionData, CoreCourseModuleContentFil...
the_stack
export const defaultOptions: ParseOptions; /** * May throw on error, and it may log warnings using `console.warn`. * It only supports input consisting of a single YAML document; * for multi-document support you should use `YAML.parseAllDocuments` * @param str Should be a string with YAML formatting. * @returns Th...
the_stack
import { ColorReducer } from "./colorreductionmanagement"; import { delay, IMap, RGB } from "./common"; import { FacetCreator } from "./facetCreator"; import { Facet, FacetResult } from "./facetmanagement"; import { BooleanArray2D, Uint8Array2D } from "./structs/typedarrays"; export class FacetReducer { /** ...
the_stack
import React from 'react'; import {Node} from '../../pathfinding/algorithms/Node'; import {Point} from '../../pathfinding/core/Components'; import AppSettings from "../../utils/AppSettings"; import {HashTable, stringify} from '../../pathfinding/structures/Hash'; const CLOSED_NODE = 'rgb(198, 237, 238)'; const OPEN_NOD...
the_stack
import * as chai from 'chai'; import * as path from 'path'; import { getLogger, Logger } from "../../../common/log"; import { TrialJobApplicationForm, TrialJobStatus } from '../../../common/trainingService'; import { cleanupUnitTest, delay, prepareUnitTest, uniqueString } from '../../../common/utils'; import { INITIALI...
the_stack
import dynamicProto from "@microsoft/dynamicproto-js"; import { removeInvalidElements, walkUpDomChainWithElementValidation, extend, isValueAssigned } from "../common/Utils"; import { IDiagnosticLogger, eLoggingSeverity, getDocument, isNullOrUndefined, hasDocument, _throwInternal, _eInternalMessageId } from ...
the_stack
import * as TE from 'fp-ts/lib/TaskEither'; import * as Q from '../../src/Query'; import * as S from '../../src/Strategy'; import { param, command } from '../../src/DSL'; import { observeShallow } from '../../src/observe'; import { declareQueries, WithQueries, useQuery, useQueries } from '../../src/react'; impo...
the_stack
import * as path from 'path'; import { join as pathJoin } from 'path'; import { ConfigFile, Connection, fs, Logger, Org, SfdxError } from '@salesforce/core'; import { Dictionary, Optional } from '@salesforce/ts-types'; import { Duration, env, sleep, toNumber } from '@salesforce/kit'; import MetadataRegistry = require('...
the_stack
"use strict"; import { assert } from "chai"; import { Strings } from "../../../src/helpers/strings"; import { GetInfo } from "../../../src/tfvc/commands/getinfo"; import { TfvcError, TfvcErrorCodes } from "../../../src/tfvc/tfvcerror"; import { IExecutionResult, IItemInfo } from "../../../src/tfvc/interfaces"; import...
the_stack
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { NetworkInterface, NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesOptionalParams, NetworkInterfacesListCloudServiceNetworkInterfacesOptionalParams, NetworkInt...
the_stack
* @module Quantity */ import { QuantityError, QuantityStatus } from "../Exception"; /** The regular expression to parse [format strings]($docs/bis/ec/kindofquantity.md#format-string) * provided in serialized formats as well as the full name of an [[OverrideFormat]]. * * `formatName(precision)[unitName|unitLabel][...
the_stack
import { DirectiveForestHooks } from './hooks'; import { ElementPosition, ProfilerFrame, ElementProfile, DirectiveProfile, LifecycleProfile } from 'protocol'; import { runOutsideAngular, isCustomElement } from '../utils'; import { getDirectiveName } from '../highlighter'; import { ComponentTreeNode } from '../component...
the_stack
import { CONFIG } from './Config' import Core from './gameUnits/Core' import Formations from './utils/Formations' import { common } from './Common' import { IGameUnit } from './gameUnits/IGameUnit' import Ground from './Ground' import Lobby from './hud/Lobby' import MathHelpers from './MathHelpers' import { CenterOfMas...
the_stack
module android.text { import Canvas = android.graphics.Canvas; import Paint = android.graphics.Paint; import Path = android.graphics.Path; import ParagraphStyle = android.text.style.ParagraphStyle; import Layout = android.text.Layout; import Spanned = android.text.Spanned; import TextDirectionHeuristic = android.text.T...
the_stack
import {CursorPos} from 'app/client/components/Cursor'; import {GristDoc} from 'app/client/components/GristDoc'; import {ViewFieldRec, ViewSectionRec} from 'app/client/models/DocModel'; import {reportError} from 'app/client/models/errors'; import {delay} from 'app/common/delay'; import {waitObs} from 'app/common/gutil'...
the_stack
import * as path from 'path'; import * as ts from 'typescript'; import * as base from './base'; import {Transpiler} from './main'; type CallHandler = (c: ts.CallExpression, context: ts.Expression) => void; type PropertyHandler = (c: ts.PropertyAccessExpression) => void; type Set = { [s: string]: boolean }; const F...
the_stack
import { Injectable } from '@angular/core'; import { CoreLogger } from '@singletons/logger'; import { CoreSites } from '@services/sites'; import { CoreUtils } from '@services/utils/utils'; import { CoreCourses } from '@features/courses/services/courses'; import { CoreSite, CoreSiteWSPreSets } from '@classes/site'; impo...
the_stack
import _ from "lodash" import * as action from "../../src/action/common" import Session, { dispatch, getState } from "../../src/common/session" import { getNumLabels, getShapes } from "../../src/functional/state_util" import { Size2D } from "../../src/math/size2d" import { IdType, PathPoint2DType } from "../../src/typ...
the_stack
import React from 'react' import { toHaveFocus, toHaveClass, toBeInTheDocument, } from '@testing-library/jest-dom/matchers' import { screen, render, cleanup, fireEvent, waitFor, } from '@testing-library/react' import userEvent from '@testing-library/user-event' expect.extend({ toHaveFocus, toHaveClass,...
the_stack
import { expect } from "chai"; import { DOM } from "@microsoft/fast-element"; import { fixture } from "../test-utilities/fixture"; import { tooltipTemplate as template, Tooltip } from "./index"; import { TooltipPosition } from "./tooltip"; import { AnchoredRegion, anchoredRegionTemplate } from '../anchored-region'; co...
the_stack
import { Injectable, Injector } from '@angular/core'; import { createSelector, MemoizedSelector, select, Store } from '@ngrx/store'; import { CoreState } from '../../core.reducers'; import { coreSelector } from '../../core.selectors'; import { FieldState, FieldUpdates, Identifiable, OBJECT_UPDATES_TRASH_PATH, ...
the_stack
import * as fse from 'fs-extra'; import chalk from 'chalk'; import * as Sequelize from 'sequelize'; import { join } from 'path'; import { IEndpoint, IApplyOptions, IField } from '@materia/interfaces'; import { App } from './app'; import { MateriaError } from './error'; import { Addon } from './addons/addon'; import ...
the_stack
//@ts-check ///<reference path="devkit.d.ts" /> declare namespace DevKit { class BulkDeleteFailureApi { /** * DynamicsCrm.DevKit BulkDeleteFailureApi * @param entity The entity object */ constructor(entity?: any); /** * Get the value of alias * @param alias the alias value * @param isMultiOptionS...
the_stack
import * as puppeteer from 'puppeteer'; import { relative, join, isAbsolute, dirname } from 'path'; import type { BoundQueries, WaitForOptions } from './pptr-testing-library'; import { getQueriesForElement, waitFor as innerWaitFor, } from './pptr-testing-library'; import { connectToBrowser } from './connect-to-brow...
the_stack
import { HttpClient, HttpErrorResponse } from '@angular/common/http'; import { HttpClientTestingModule, HttpTestingController, } from '@angular/common/http/testing'; import { fakeAsync, TestBed, tick } from '@angular/core/testing'; import { CardType, Cart, PaymentDetails } from '@spartacus/cart/base/root'; import {...
the_stack
import * as vscode from './mocks/vscode'; jest.mock('vscode', () => vscode, { virtual: true }); import { getConfig } from '../src/config'; import { CommitDetailsViewLocation, CommitOrdering, DateFormatType, DateType, FileViewType, GitResetMode, GraphStyle, GraphUncommittedChangesStyle, RepoDropdownOrder, SquashMes...
the_stack
import { Assert, AITestClass } from "@microsoft/ai-test-framework"; import { addEventHandler, addEventListeners, createUniqueNamespace, removeEventHandler } from "../../../src/applicationinsights-core-js"; import { _InternalMessageId, LoggingSeverity } from "../../../src/JavaScriptSDK.Enums/LoggingEnums"; import { _Int...
the_stack
import {getJSON} from '../util/ajax'; import {RequestPerformance} from '../util/performance'; import rewind from '@mapbox/geojson-rewind'; import GeoJSONWrapper from './geojson_wrapper'; import vtpbf from 'vt-pbf'; import Supercluster from 'supercluster'; import geojsonvt from 'geojson-vt'; import assert from 'assert'...
the_stack
import { Directionality } from '@angular/cdk/bidi'; import { coerceBooleanProperty } from '@angular/cdk/coercion'; import { ESCAPE, UP_ARROW } from '@angular/cdk/keycodes'; import { Overlay, OverlayConfig, OverlayRef, PositionStrategy, ScrollStrategy } from '@angular/cdk/overlay'; import { ComponentPortal } from '@angu...
the_stack
import { BoardType, CostumeType, View } from "../types"; import { getCurrentBoard, IBoard, boardIsROM, currentBoardIsROM, BoardAudioType, IBoardAudioData, setBoardName, setBoardDescription, setBoardDifficulty, setBoardOtherBackground, setBoardAudio, IBoardAudioChanges, setBoardCostumeTypeIndex } from "../boards"; impor...
the_stack
export const description = ` Validation tests for GPUBuffer.mapAsync, GPUBuffer.unmap and GPUBuffer.getMappedRange. `; import { makeTestGroup } from '../../../../common/framework/test_group.js'; import { attemptGarbageCollection } from '../../../../common/util/collect_garbage.js'; import { assert, unreachable } from '...
the_stack
import { inspect } from 'util' import { memoize } from './utils/memoize-utils' import { enumerablizeWithPrototypeGetters } from './utils/object-utils' import { createLayerEntitySelector } from './utils/selector-utils' import type { CancelToken } from '@avocode/cancel-token' import { ILayerCollection, DesignLayerSe...
the_stack
* Contains config details and operations meant for package subscriber orgs. * This could potentially include test orgs used by CI process for testing packages, * and target subscriber orgs. **/ import * as util from 'util'; import * as BBPromise from 'bluebird'; import * as _ from 'lodash'; // New messages (move t...
the_stack
import { timelineFrameBeforeActiveItem, timelineFrameAfterActiveItem, } from '../timelineFrames' import { START_TERMINAL_ITEM_ID, END_TERMINAL_ITEM_ID, PRESAVED_STEP_ID, } from '../../steplist/types' import { SINGLE_STEP_SELECTION_TYPE, TERMINAL_ITEM_SELECTION_TYPE, HoverableItem, } from '../../ui/steps...
the_stack
import ms from 'ms'; import fs from 'fs-extra'; import { join } from 'path'; import build from '../../../src/commands/build'; import { client } from '../../mocks/client'; import { defaultProject, useProject } from '../../mocks/project'; import { useTeams } from '../../mocks/team'; import { useUser } from '../../mocks/u...
the_stack
import '@loaders.gl/polyfills'; import {join} from 'path'; import {I3SConverter, Tiles3DConverter} from '@loaders.gl/tile-converter'; import {DepsInstaller} from './deps-installer/deps-installer'; type TileConversionOptions = { /** "I3S" - for I3S to 3DTiles conversion, "3DTILES" for 3DTiles to I3S conversion */ i...
the_stack
import * as arraybuffers from '../arraybuffers/arraybuffers'; import * as logging from '../logging/logging'; var log :logging.Log = new logging.Log('arithmetic shaper'); // Here is some background reading on arithmetic coding and range coding. // http://www.arturocampos.com/ac_arithmetic.html // http://www.arturocamp...
the_stack
import { } from '@cypress/react'; import { Action, Actions, BorderNode, DockLocation, IJsonModel, Model, Node, Orientation, Rect, RowNode, SplitterNode, TabNode, TabSetNode } from "../src"; /* * The textRendered tabs: a representation of the model 'rendered' to a list of tab paths * where /ts0/t1[One]* is tab index 1...
the_stack
import 'neuroglancer/render_layer_backend'; import {Chunk, ChunkConstructor, ChunkRenderLayerBackend, ChunkSource, getNextMarkGeneration, withChunkManager} from 'neuroglancer/chunk_manager/backend'; import {ChunkPriorityTier, ChunkState} from 'neuroglancer/chunk_manager/base'; import {SharedWatchableValue} from 'neuro...
the_stack
import './setup'; import { StageComponent } from './component-tester'; import { PLATFORM } from 'aurelia-pal'; import { createAssertionQueue, validateState, validateScrolledState, AsyncQueue, waitForTimeout } from './utilities'; import { VirtualRepeat } from '../src/virtual-repeat'; PLATFORM.moduleName('src/virtual-re...
the_stack
import { AttributeScores, AttributeScore, EnabledAttributes, linscale, getCommentVisibility, getHideReasonDescription, getFeedbackQuestion, scaleEnabledAttributeScore } from './scores'; function zeroScores(): AttributeScores { return { 'identityAttack': 0.0, 'insult': 0.0, 'pro...
the_stack
import { DirectiveHook, App, DirectiveBinding, ObjectDirective } from 'vue'; import { getComputedStyleList } from '../shared'; export interface ToDragOptions { isAbsolute?: boolean, adsorbOffset: number, moveCursor?: boolean, adsorb?: number, transitionDuration?: number, transitionTimingFunction?: s...
the_stack
import { platform } from "os"; import { EventEmitter } from "events"; import { getCanonicalUUID } from "./helpers"; import { BluetoothDevice } from "./device"; import { BluetoothRemoteGATTService } from "./service"; import { BluetoothRemoteGATTCharacteristic } from "./characteristic"; import * as noble from "@abandonwa...
the_stack
import { PdfDockStyle, PdfAlignmentStyle, TemplateType } from './enum'; import { PointF, SizeF } from './../drawing/pdf-drawing'; import { PdfGraphics } from './../graphics/pdf-graphics'; import { PdfTemplate } from './../graphics/figures/pdf-template'; import { PdfPageLayer } from './pdf-page-layer'; import { PdfPage ...
the_stack
import debug from 'debug' import ETHProvider from 'eth-provider' import fs from 'fs-extra' import json from 'jsonfile' import Level from 'level' import ora from 'ora' import os from 'os' import path from 'path' import shell from 'shelljs' import contractor from 'truffle-contract' import Web3 from 'web3' import GitHelpe...
the_stack
import { JSONExt, JSONObject } from '@phosphor/coreutils'; import { Fields, Datastore, RegisterField, TextField } from '@phosphor/datastore'; import { DisposableDelegate, IDisposable } from '@phosphor/disposable'; import { Panel, Widget } from '@phosphor/widgets'; import * as CodeMirror from 'codemirror'; ...
the_stack
import type { __INTERNAL_REMIRROR_IDENTIFIER_KEY__, RemirrorIdentifier, } from '@remirror/core-constants'; import type { CommandFunctionProps, EditorSchema, EditorState, EditorView, Mark, ProsemirrorCommandFunction, ProsemirrorNode, ResolvedPos, Selection, } from '@remirror/pm'; import type { Mark...
the_stack
// taze: $, JQuery from //third_party/javascript/typings/jquery:jquery_without_externs // taze: jstree from //third_party/javascript/typings/jstree:jstree // taze: saveAs from //third_party/javascript/typings/file_saver:file_saver import {Component, ElementRef, NgZone, OnDestroy, OnInit, ViewChild} from '@angular/core...
the_stack
import { $O, auto, Auto, o, ObserverTarget } from 'wana/core' let runs: number let prevRuns: number function expectRuns(n: number) { expect(runs).toBe(prevRuns + n) prevRuns = runs } let runner: Auto let ctx = o({ effect: () => {}, }) beforeEach(() => { if (runner) { runner.dispose() ctx.effect = () ...
the_stack
import {html} from '@polymer/polymer'; import './styles'; import '../../../components/tf_wbr_string/tf-wbr-string'; export const template = html` <style include="vz-projector-styles"></style> <style> .container { padding: 5px 20px 20px 20px; } input[type='file'] { display: none; } ...
the_stack
import { Get, HttpCode, Body, Controller, Param, Post, Delete, UseGuards, Req, NotFoundException, BadRequestException, ForbiddenException, HttpStatus, Inject, forwardRef, } from '@nestjs/common' import { ApiOkResponse, ApiBearerAuth, ApiCreatedResponse, ApiNoContentResponse, ApiE...
the_stack
import { DemoSharedBase } from '../utils'; import { ImageSource, ObservableArray, Screen, Color, Application } from '@nativescript/core'; import Chart from 'chart.js'; let Matter; import { Canvas, ImageAsset } from '@nativescript/canvas'; import { flappyBird, arc, arcTo, cancelParticlesColor, cancelParticlesLarge, can...
the_stack
export namespace EventManagementModels { export class RequiredError extends Error { name: "RequiredError" = "RequiredError"; constructor(public field: string, msg?: string) { super(msg); } } /** * * @export * @interface BaseEvent */ export interfa...
the_stack
import { graphql, GraphQLID, GraphQLSchema, printSchema } from "graphql"; import Knex from "knex"; import { has, map, sortBy } from "lodash"; import { mapArgs, mapDataSource, MappedMultiSourceUnionQueryOperation, MappedSingleSourceQueryOperation, mapSchema, operationPresets, SingleSourceQue...
the_stack
// tslint:disable:no-console import * as ts from 'typescript' import * as terser from 'terser' import { inspect } from 'util' import { resolve, dirname, relative } from 'path' type PackageJson = { main: string // only package.json typings?: string bundleDependencies: string[] decentralandLibrary?: any } t...
the_stack
import objectValues from '../polyfills/objectValues.js'; import keyMap from '../jsutils/keyMap.js'; import inspect from '../jsutils/inspect.js'; import mapValue from '../jsutils/mapValue.js'; import invariant from '../jsutils/invariant.js'; import devAssert from '../jsutils/devAssert.js'; import { Kind } from '../langu...
the_stack
module TDev.RT.Charts { export class Point { constructor (public x: number, public y: number) { } } export class CanvasChart { public lineColor = "#f00"; public gridColor = "#ccc"; public backgroundColor :string = undefined; public axesColor = "#fff"; public ...
the_stack
import fs from "fs"; import path from "path"; import * as appsync from "@aws-cdk/aws-appsync-alpha"; import { serializeFunction } from "@functionless/nodejs-closure-serializer"; import { AssetHashType, aws_apigateway, aws_dynamodb, aws_events_targets, aws_lambda, CfnResource, DockerImage, Reference, R...
the_stack
import 'graphql-import-node'; // Needed so you can import *.graphql files import { makeBindingClass, Options } from 'graphql-binding' import { GraphQLResolveInfo, GraphQLSchema } from 'graphql' import { IResolvers } from 'graphql-tools/dist/Interfaces' import * as schema from './schema.graphql' export interface Que...
the_stack
import { BaseProjectLibrary, Component, Template, Util } from "@igniteui/cli-core"; import * as path from "path"; describe("Unit - Base project library ", () => { it("has correct projects.", async done => { const mockProjects = ["angular", "jquery"]; spyOn(Util, "getDirectoryNames").and.returnValue(mockProjects...
the_stack
/// <reference path="../../../elements.d.ts" /> import { Polymer } from "../../../../../tools/definitions/polymer"; import { PaperDropdownMenu, PaperDropdownMenuBase } from '../paper-dropdown-menu/paper-dropdown-menu'; import { PaperLibrariesSelectorBase } from '../../editpages/code-edit-pages/tools/paper-libraries-s...
the_stack
import * as React from 'react' import { getWellRatio } from '../utils' import { canPipetteUseLabware } from '../../utils' import { MAGNETIC_MODULE_V1, MAGNETIC_MODULE_V2 } from '@opentrons/shared-data' import { getPipetteCapacity } from '../../pipettes/pipetteData' import { MIN_ENGAGE_HEIGHT_V1, MAX_ENGAGE_HEIGHT_V...
the_stack
import React, { useEffect, useState, useCallback, useRef } from "react"; import ForceGraph2D from "react-force-graph-2d"; import { nodeFillColor, riskOutline } from "./graphVizualization/nodeColoring"; import { calcLinkColor } from "./graphVizualization/linkCalcs"; import { nodeSize } from "./graphVizualization/nodeCal...
the_stack
import { providers, BigNumberish } from "ethers"; import { Address, BigNumber, Bytes32, HexString, PublicIdentifier, SignatureString } from "./basic"; import { ConditionalTransferTypes } from "./transfers"; import { MethodResults, MethodParams } from "./methods"; import { NodeResponses } from "./node"; import { Challe...
the_stack
import * as errors from 'balena-errors'; import * as memoizee from 'memoizee'; import type { InjectedDependenciesParam, InjectedOptionsParam } from '.'; const getAuth = function ( deps: InjectedDependenciesParam, opts: InjectedOptionsParam, ) { const { auth: authBase, pubsub, request, pine } = deps; const { apiUrl...
the_stack
import { isPresent, stringify, assign, isType, getFuncName, isBlank } from '../../facade/lang'; import { StringMapWrapper, ListWrapper } from '../../facade/collections'; import { reflector } from '../reflection/reflection'; import { DirectiveMetadata, ComponentMetadata, InputMetadata, AttrMetadata, OutputMeta...
the_stack
import {UserAutoGenerateAttributes} from '../../../../__mocks__/user-auto-generate-attributes'; import { Attribute, AutoGenerateAttribute, AUTO_GENERATE_ATTRIBUTE_STRATEGY, Entity, INDEX_TYPE, Table, } from '@typedorm/common'; import {Organisation} from '../../../../__mocks__/organisation'; import {User} fr...
the_stack
import {WboxProps, WimageProps, WdateProps, WspacerProps, WstackProps, WtextProps} from '../types/widget' import {getImage, hash} from './help' import {URLSchemeFrom} from './constants' type WidgetType = 'wbox' | 'wdate' | 'wimage' | 'wspacer' | 'wstack' | 'wtext' type WidgetProps = WboxProps | WdateProps | WspacerPro...
the_stack
import { NodeTags } from '../utils'; import { ParsedVisitor } from './parsed-visitor'; export type ParseSimpleType = | ParseMethod // a function can be a type | ParsePrimitiveType | ParseReferenceType | ParseValueType; export type ParseType = | ParseEmpty | ParseSimpleType | ParseUnionType; export enum...
the_stack
import React from "react"; import styled from "styled-components"; import { useDispatch, useSelector, shallowEqual } from "react-redux"; import { CodeStreamState } from "../store"; import { Dispatch } from "../store/common"; import Tooltip from "./Tooltip"; import { ComposeArea } from "./ReviewNav"; import { CSMe } fro...
the_stack
import React from 'react' import c from 'classnames' import { debounce, omit, pick } from 'lodash-es' import { getScrollParents } from '@floating-ui/dom' import { ArrowUpOutlined, ArrowDownOutlined, DragOutlined, DeleteOutlined } from '@ant-design/icons' import { css } from '../utils/emotion-css' import usePersistFn f...
the_stack
import { GraphQLResolveInfo } from 'graphql'; import { ApolloContext } from '../server/apolloContext'; 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]> }...
the_stack
import * as O from 'fp-ts/lib/Option' import * as R from 'fp-ts/lib/Reader' import * as ts from 'typescript' import * as M from './model' import { Lens } from 'monocle-ts' import { tuple } from 'fp-ts/lib/function' import * as S from 'fp-ts/lib/Semigroup' import * as A from 'fp-ts/lib/Array' import { head } from 'fp-ts...
the_stack
import { Component, OnInit, EventEmitter } from '@angular/core'; import { ActivatedRoute, Router, Params } from '@angular/router'; import { Location } from '@angular/common'; import { Project } from '../common/project'; import { Organization } from '../../organization/common/organization'; import { User } from '../../u...
the_stack
import _ from "lodash"; import { createDeferred } from "joynr/joynr/util/UtilInternal"; import * as util from "util"; import Enumeration from "../generated-javascript/joynr/interlanguagetest/Enumeration"; import * as EnumerationWithoutDefinedValues from "../generated-javascript/joynr/interlanguagetest/EnumerationWitho...
the_stack
import EventEmitter from 'eventemitter3'; import Log from '../Utils/Logger'; import SpeedSampler from './SpeedChecker'; import BaseLoader from './BaseLoader'; import { RuntimeException } from '../Utils/Exception'; import UserConfig from '../Interfaces/UserConfig'; import RangeSeekHandler from './RangeSeekHandler'; impo...
the_stack
import React from 'react'; import { Drawer, Checkbox, Button, Tooltip, Spin, Select, Tag, Empty, } from 'antd'; import './index.less'; import { connect } from 'react-redux'; import BrowserView, { removeViews } from 'react-electron-browser-view'; import { HighlightOutlined, FieldTimeOutlined, Enter...
the_stack
import { Container, Utils as KernelUtils } from "@packages/core-kernel"; import { NetworkStateStatus } from "@packages/core-p2p/src/enums"; import { NetworkState } from "@packages/core-p2p/src/network-state"; import { Peer } from "@packages/core-p2p/src/peer"; import { PeerVerificationResult } from "@packages/core-p2p/...
the_stack
import { Op, OpInfo, AuxType, SymEffect } from "../ir/op" import { UInt64 } from "../int64" import { t_bool, t_f32, t_f64, t_i16, t_i32, t_i64, t_mem, t_nil, t_u16, t_u32, t_u64, t_u8, t_uintptr } from "../ast" const u64_ffff = new UInt64(65535,0), u64_50000ffff = new UInt64(65535,5), ...
the_stack
import { log } from '../util/logging'; import { ITicks, INeonTransferChunk, INeonNotification } from '../util/progress'; import { RustDltIndexerChannel, RustDltStatsChannel, RustExportFileChannel, RustDltSocketChannel, RustDltPcapChannel, RustDltPcapConverterChannel } from '../native'; import { NativeComputationM...
the_stack
import { CommonModule } from '@angular/common'; import { Component, QueryList, Input, Output, EventEmitter, ContentChild, Directive, NgModule, TemplateRef, OnInit, AfterViewInit, ContentChildren, OnDestroy, HostBinding, ElementRef, Optional, Inject } from '@angular/core'; import { FormsModule } from '@angular/f...
the_stack
import { languages as Languages, Disposable, TextDocument, ProviderResult, Range as VRange, Position as VPosition, TextEdit as VTextEdit, FormattingOptions as VFormattingOptions, DocumentFormattingEditProvider, DocumentRangeFormattingEditProvider, workspace as Workspace, OnTypeFormattingEditProvider } from 'vscode'; ...
the_stack
import { DebugElement } from '@angular/core'; import { ComponentFixture, fakeAsync, flush, flushMicrotasks, TestBed, tick } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { of, throwError } from 'rxjs'; import { createDummies, dispatchMouseEvent, expectDom, fastTest...
the_stack
///////////////////////////// /// ECMAScript APIs ///////////////////////////// declare var NaN: number; declare var Infinity: number; /** * Evaluates JavaScript code and executes it. * @param x A String value that contains valid JavaScript code. */ declare function eval(x: string): any; /** * Converts a string ...
the_stack
declare module "crypto" { import * as stream from "stream"; interface Certificate { exportChallenge(spkac: BinaryLike): Buffer; exportPublicKey(spkac: BinaryLike): Buffer; verifySpkac(spkac: NodeJS.ArrayBufferView): boolean; } const Certificate: { new(): Certificate; ...
the_stack
import React, { useState, useRef, useEffect, KeyboardEvent } from 'react' import { today, addDays, subMonths, addMonths, startOfMonth, startOfWeek, isSameDay, isSameMonth, isDateWithinMinAndMax, subYears, keepDateBetweenMinAndMax, addYears, listToTable, setMonth, setYear, min, max, ...
the_stack
// Some lines of code are from Elyra Code Snippet. /* * Copyright 2018-2020 IBM Corporation * 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 *...
the_stack
import { createLoggingContext, createRequestContext, delay, jsonifyError, RequestContext, RequestContextWithTransactionId, safeJsonStringify, } from "@connext/nxtp-utils"; import { BigNumber, providers } from "ethers"; import { getContext } from "../../router"; import { ActiveTransaction, CrosschainT...
the_stack
export class PositionStats { AB: number = 0; AD: number = 0; A2: number = 0; constructor(public scale: number) {} addVariable(v: Variable): void { var ai = this.scale / v.scale; var bi = v.offset / v.scale; var wi = v.weight; this...
the_stack
import React from 'react'; import { MutableRefObject } from 'react'; import { TypeComputedProps, TypeComputedColumn, TypeSingleSortInfo, } from '../../types'; import { IS_IE, IS_MS_BROWSER } from '../../../detect-ua'; import { getCellHeader } from '../../../Layout/ColumnLayout/HeaderLayout/Header'; import Menu ...
the_stack
import { ApiResponse, FileWrapper, RequestOptions } from '../core'; import { AcceptDisputeResponse, acceptDisputeResponseSchema, } from '../models/acceptDisputeResponse'; import { CreateDisputeEvidenceFileRequest, createDisputeEvidenceFileRequestSchema, } from '../models/createDisputeEvidenceFileRequest'; impor...
the_stack
* @fileoverview A SpriteMesh is a THREE.js Mesh that handles the creation and * properties of a collection of Sprites. * * Because a SpriteMesh is meant to be rendered using a THREE.js WebGLRenderer * and has a custom SpriteMaterial, the details of this implementation are very * vertex-centric. The downside of thi...
the_stack
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; import * as utilities from "../utilities"; /** * ## Import * * SQL Databases can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:sql/database:Database database1 /subscriptions/000...
the_stack
// This folder includes api convenience that we use for accessing // MediaWiki Action API and REST API import { wikiToDomain } from '@/shared/utility-shared'; import * as _ from 'underscore'; import update from 'immutability-helper'; const axios = require('axios'); const MAX_MWAPI_LIMIT:number = 50; const userAgent =...
the_stack
import { arrayPickIndices, cantorPairing } from '../../mol-data/util'; import { LinkedIndex, SortedArray } from '../../mol-data/int'; import { AssignableArrayLike } from '../../mol-util/type-helpers'; /** * Represent a graph using vertex adjacency list. * * Edges of the i-th vertex are stored in the arrays a and b ...
the_stack