text
stringlengths
3.3k
33k
<gh_stars>1-10 import { spawnSync } from "child_process"; import * as os from "os"; import * as fs from "fs"; import { encodeBs58, assign, decodeState, encodeState, stateSize, } from "./utils"; import { AccountContext, defaultAccountContext, createContext, VMContext, defaultContext, } from "./contex...
import { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/experimental-utils'; import * as util from '../util'; /** * Check whatever node can be considered as simple * @param node the node to be evaluated. */ function isSimpleType(node: TSESTree.Node): boolean { switch (node.type) { ...
import React, {MouseEventHandler, CSSProperties} from 'react'; // @ts-ignore no types for the package import Panel from 'react-flex-panel'; import FontAwesome from 'react-fontawesome'; import {FixedSizeList, ListChildComponentProps} from 'react-window'; import AutoSizer from 'react-virtualized-auto-sizer'; import class...
<reponame>zquestz/sotez export const prefix: { [key: string]: Uint8Array } = { tz1: new Uint8Array([6, 161, 159]), tz2: new Uint8Array([6, 161, 161]), tz3: new Uint8Array([6, 161, 164]), KT: new Uint8Array([2, 90, 121]), edsk: new Uint8Array([43, 246, 78, 7]), edsk2: new Uint8Array([13, 15, 58, 7]), spsk...
// @ts-nocheck // TODO Later: Remove this and fix types on stringifyNumbers // Factorial function that takes a number and gives back the multiplied numbers leading up to it. export function factorial(num: number): number { if (num === 1) { return num; } return num * factorial(num - 1); } // ...
<filename>frontend/resources/selectors.ts import { ResourceIndex, UUID } from "./interfaces"; import { ResourceName, TaggedGenericPointer, TaggedPlantPointer, TaggedRegimen, TaggedResource, TaggedSequence, TaggedTool, TaggedToolSlotPointer, TaggedUser, TaggedDevice, } from "farmbot"; import { isTa...
import { Component, Input, ViewChild, AfterViewInit, OnChanges, SimpleChanges, Output, EventEmitter, ViewChildren, QueryList, NgZone } from '@angular/core'; import { MappedLayer, Bounds, LayerSelection, StaticDataService, MetadataService } from 'map-wald'; import { DataMouseEvent, LatLng, AgmMap, AgmInfoWindo...
<filename>src/service/ServServiceClient.ts import { EServConstant, asyncThrow, asyncThrowMessage } from '../common/common'; import { ServServiceMessageCreator } from '../message/creator'; import { ServMessageContextManager } from '../message/ServMessageContextManager'; import { ServMessage, ServServiceEventMessage, Ser...
/* * Copyright (c) 2021, jayree * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import * as path from 'path'; import * as util from 'util'; import { flags, SfdxCommand } from '@salesf...
<reponame>krynble/n8n import { BINARY_ENCODING, IExecuteFunctions, ILoadOptionsFunctions, } from 'n8n-core'; import { IBinaryKeyData, IDataObject, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription, } from 'n8n-workflow'; import { tweetFields, tweetOperations, } from './TweetDescrip...
import { Context, DynamoDBStreamEvent } from "aws-lambda"; import AWS = require("aws-sdk"); import { publish, AppSyncEvent } from "aarts-eb-types" import { samLocalSimulateSQSHandlerFromContent } from "./samLocalSimulateSQSHandlerFromContent"; import { processPayload } from "aarts-handler/aartsHandler" import { prepare...
/** @jsx jsx */ import React, { useState, useEffect, useRef, ReactElement, useCallback, } from 'react'; import {jsx, SxStyleProp} from 'theme-ui'; import {FaTimes, FaArrowRight, FaArrowLeft} from 'react-icons/fa'; import {ViewerPhoto} from './ViewerPhoto'; import {ViewerButton} from './ViewerButton'; import ...
/* * Copyright 2020 EPAM Systems * * 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 * * Unless required by applicable law or agreed ...
<filename>kernel/packages/shared/loading/types.ts import { action } from 'typesafe-actions' export const loadingTips = [ { text: `MANA is Decentraland’s virtual currency. Use it to buy LAND and other premium items, vote on key policies and pay platform fees.`, image: 'images/decentraland-connect/loadingtips/...
/** * @since 2.0.0 */ import { ApplicativeComposition12, ApplicativeComposition22, ApplicativeCompositionHKT2 } from './Applicative' import { apComposition } from './Apply' import * as E from './Either' import { flow, Lazy, pipe } from './function' import { HKT, Kind, Kind2, URIS, URIS2 } from './HKT' import { Monad,...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
import { DeepPartial } from './types'; export interface PlacementAZ { uuid: string; name: string; replicationFactor: number; subnet: string; numNodesInAZ: number; isAffinitized: boolean; } export interface PlacementRegion { uuid: string; code: string; name: string; azList: PlacementAZ[]; } export...
<filename>packages/cli/src/bin/wuzzle-transpile/wuzzle-transpile.test.ts import { resolveRequire } from '@wuzzle/helpers'; import chokidar from 'chokidar'; import glob from 'glob'; import { noop } from 'lodash'; import path from 'path'; import shelljs from 'shelljs'; import { mocked } from 'ts-jest/utils'; import waitF...
<filename>packages/common/src/state/geom.ts // import { getV } from "../struct"; import { memoize } from "../utils/memoization"; export type Bounds = { left: number; right: number; top: number; bottom: number; }; export type Size = { width: number; height: number; }; export type Bounded = { bounds: Bou...
import React, { useCallback, useEffect, useMemo, useRef } from 'react' import * as H from 'history' import { from, Observable, ReplaySubject, Subscription } from 'rxjs' import { map, mapTo, switchMap, tap } from 'rxjs/operators' import { BuiltinTabbedPanelDefinition, BuiltinTabbedPanelView, useBuiltinTabb...
<reponame>Persiasty/nativefier<filename>app/src/main.ts<gh_stars>0 import 'source-map-support/register'; import fs from 'fs'; import path from 'path'; import net from 'net'; import { app, crashReporter, globalShortcut, BrowserWindow } from 'electron'; import electronDownload from 'electron-dl'; import { createLoginW...
/* * Copyright 2018 <NAME> <<EMAIL>> * Copyright 2018 Institute of the Czech National Corpus, * Faculty of Arts, Charles University * * 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 ...
<reponame>pedropbazzo/angular<gh_stars>10-100 /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {BoundTarget} from '@angular/compiler'; import * as ts from 'ty...
<reponame>initics/ts-edifact<gh_stars>1-10 /** * @author <NAME> * @copyright 2020 <NAME> * @license Apache-2.0 * * 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.apa...
<reponame>jcreedcmu/vscode-codeql import * as leb from 'leb'; /** * digester.ts * ----------- * * A wrapper around node's stream and buffer types to make reading the * binary formats used by the QL query server a little more uniform * and convenient. * * This works around limitations in using Node streams (whe...
import * as Path from 'path' import { ChildProcess } from 'child_process' import * as FSE from 'fs-extra' import { GitError } from 'dugite' import * as byline from 'byline' import { Repository } from '../../models/repository' import { git, IGitResult, IGitExecutionOptions } from './core' import { WorkingDirectoryFil...
import React, { useState, useMemo, useCallback, ReactNode, useEffect, useRef } from 'react'; import { Tooltip, Button } from 'antd'; import moment from 'moment'; import { cloneDeep } from 'lodash'; import Grid from '@grid'; import ConfigModal from './config'; import { SmartGridType, SmartGridProps, ViewConfig } from '....
import * as React from 'react'; import { ActivityIndicator, StyleSheet, TouchableOpacity } from 'react-native'; import { NavigationParams, NavigationScreenProp, NavigationState, } from 'react-navigation'; import { RouteProp } from '@react-navigation/native'; import { gql, useQuery, useMutation } from '@apollo/cli...
<filename>specification/xpack/usage/types.ts /* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, ...
import { Logger, PlatformAccessory, Service } from 'homebridge'; import { ZigbeeNTHomebridgePlatform } from '../platform'; import { ZigBeeClient } from '../zigbee/zig-bee-client'; import { findByDevice } from 'zigbee-herdsman-converters'; import { Device } from 'zigbee-herdsman/dist/controller/model'; import { DeviceSt...
import {Component, ElementRef, Inject, Injectable, Input} from '@angular/core'; import Injectable = ng.Injectable; import {RegionInterface, Region} from './../util/region'; @Injectable() export interface DragDropInterface { id:string; config:Object; dragElId:ElementRef; handleElId:ElementRef; inv...
<reponame>kern/centre-tokens import BN from "bn.js"; import { FiatTokenProxyInstance } from "../../@types/generated"; const FiatTokenProxy = artifacts.require("FiatTokenProxy"); const FiatTokenV1 = artifacts.require("FiatTokenV1"); const FiatTokenV1_1 = artifacts.require("FiatTokenV1_1"); export function usesOriginal...
<filename>src/parser/converts/block.ts import type * as SvAST from "../svelte-ast-types" import type ESTree from "estree" import type { SvelteAwaitBlock, SvelteAwaitCatchBlock, SvelteAwaitPendingBlock, SvelteAwaitThenBlock, SvelteEachBlock, SvelteElseBlock, SvelteIfBlock, SvelteKeyBlock,...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. import { CdmArgumentDefinition, CdmAttributeGroupDefinition, CdmCollection, CdmConstantEntityDefinition, CdmCorpusContext, CdmDataTypeDefi...
<reponame>kangasta/timetablescreen import { getUniqueFilter } from './Utils'; const stopQuery = ` gtfsId name code platformCode desc lat lon`; const stoptimesQuery = ` stop { ${stopQuery} } trip { gtfsId route { shortName mode alerts { alertDescriptionTextTranslations { text lang...
/* * Copyright (C) 2019-2021 HERE Europe B.V. * * 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 * * Unless required by applicable law...
/// <reference path="../typings/tsd.d.ts" /> interface ILoginScope extends ng.IScope { //credentials: Credentials; isAuthenticated(): boolean; login(): any; userInfo: IUser; blockchainAccounts: IBlockchainAccountCollection; isGlobalAdmin: boolean; } interface IOVWindowService extends ng.IWind...
<gh_stars>0 /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ /* eslint-disable @typescript-eslint/no-var-requires */ import hre from 'hardhat'; import {BigNumber, Contract, ContractTransaction, Signer} from 'ethers'; import {DeployResult} from 'hardhat-deploy/types'; import fs from 'fs'; import pa...
<gh_stars>100-1000 import {Highlight, Text2HtmlConverter, TextRenderer} from './renderer'; import {SlElement} from '@app/utils/sl-element'; import {LvUtils} from '@app/utils/utils'; const exceptionMessageClass = 'exception-message'; const exceptionFileNameClass = 'ex-stacktrace-source'; const MAX_MESSAGE_LENGTH = 102...
<reponame>houruomu/modules<gh_stars>1-10 import { MemoryHeaps, Memory, Tag, COMMAND, CommandHeapObject } from './types'; // Global Variables let ROW: number = 10; const COLUMN: number = 32; let NODE_SIZE: number = 0; let MEMORY_SIZE: number = -99; let memory: Memory; let memoryHeaps: Memory[] = []; const comm...
<gh_stars>100-1000 import {Provider, JsonRPCRequest, Callback, JsonRPCResponse} from 'web3/providers'; import {Config, getConfigForNetwork} from './config'; import UniLoginSdk, {WalletService, SdkConfig} from '@unilogin/sdk'; import {UIController} from './services/UIController'; import {providers, utils} from 'ethers';...
import { Grid } from '@mui/material' import PagesChart from '@/components/charts/PagesCharts' import InfoBulle from '@/components/ui/InfoBulle' import Emoji from '@/components/utils/Emoji' import { useScrollToHash } from '@/components/utils/markdown' import { Radio, ToggleGroup } from '@/design-system/field' import { I...
import { EventEmitter } from "events"; import { filter, get, groupBy, last, orderBy } from "lodash"; import type { FrameEntryType, FramesType, GameStartType, PostFrameUpdateType } from "../types"; import type { ConversionType, MoveLandedType, PlayerIndexedType } from "./common"; import { calcDamageTaken, didLoseSt...
<reponame>ir210/chipmunk import * as Path from 'path'; import * as FS from '../../tools/fs'; import * as Net from 'net'; import * as IPCPluginMessages from '../../../../ipc/plugins.ipc.messages/index'; import { ChildProcess, fork } from 'child_process'; import { Emitter, Subscription } from '../../tools/index'; import ...
<filename>nodejs/npm.src/src.dev/update-common-src/app/_src/src/code-parser/code-parser.ts<gh_stars>0 import { hasValue } from "../../src.common/utils/types.js"; import { CodeCharType, CodeSyntaxError, CodeFragment, } from "./code-parser.base.js"; export class CodeParser { readonly specialSymbolsHash: { [key:...
import { Emitter, Register } from "src/base/common/event"; import { URI } from "src/base/common/file/uri"; import * as path from "src/base/common/file/path"; import { IFileService } from "src/code/common/service/fileService/fileService"; import { isArray, isObject } from "src/base/common/type"; import { Section } from ...
import { Injectable, Inject } from "@angular/core" import { Http, Response, RequestOptions } from "@angular/http" import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/do'; import 'rxjs/add/operator/map'; import { AuthorizeApi } from '../security/security.models'; i...
import { isEqual, pull } from "lodash"; import React from "react"; import { FilterBuilderContextProvider } from "./FilterBuilderContext"; import { FilterGroup, FilterGroupModel, FilterGroupOperator } from "./FilterGroup"; import { FilterRow, FilterRowModel } from "./FilterRow"; import { PersistedResource, FilterP...
import React, { useMemo, ReactElement } from 'react' import { animated } from 'react-spring' import { MathCss, parserFactory } from './parser' import { css as emoCSS } from '@emotion/core' import Parser, { ParserOutputList, ParserOutput } from './parser/Parser' import { useLatexBBox } from './LatexContext' type usePar...
import SmallerC, { EmscriptenModule } from "../lib/SmallerC/smlrc"; import { preprocess } from "./c-preprocessor"; /** * Compiles C source to MIPS assembly. * @param source C source code string */ export async function compile(source: string): Promise<string> { try { source = await preprocess(source); //$...
import BScroll from '@better-scroll/core' import { IndicatorOptions, Ratio, Postion, ValueSign } from './types' import { EventRegister, EventEmitter, getRect, getClientSize, getNow, between, Probe, TouchEvent, style, } from '@better-scroll/shared-utils' const resolveRatioOption = (ratioConfig?: Ratio)...
import type { Node } from 'acorn'; export interface Position { line: number; column: number; offset: number; } export interface SourceLocation { start: Position; end: Position; source?: string | null; } export type { Node }; // export interface Node { // type: string; // start?: numb...
<reponame>AndreHermanto/sgc-1<filename>src/app/services/project-data/initiative-service.ts import { Injectable } from '@angular/core'; import { Initiative } from '../../model/initiative'; /* tslint:disable:max-line-length */ const INITIATIVES = new Map<string, Initiative>([ [ 'mgrb', { ...
<reponame>k8w/tsrpc-ws import WebSocket from 'ws'; import { MsgServiceDef, ApiServiceDef, ServiceProto, ServiceDef } from '../proto/ServiceProto'; import { ServerInputData, ServerOutputData, ApiError } from '../proto/TransportData'; import { TSBuffer } from 'tsbuffer'; import { Counter } from './Counter'; import {...
import React from 'react'; import styled from 'styled-components'; import Button from '@atlaskit/button/standard-button'; import Drawer from '@atlaskit/drawer'; import { format } from 'url'; import { default as FullPageExample } from './5-full-page'; import EditorActions from '../src/actions'; // helper function to re...
<filename>common/GameLogic.ts /***************************************************************************** * Constants and utility types *****************************************************************************/ type UserID = string; export const BOARD_SIZE = 10; export enum PHASE { SETUP, PLAYER1_TURN, ...
<gh_stars>0 import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Input, OnDestroy, OnInit, ViewChild } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { Select, Store } from '@ngxs/store'; import { PipelineStatus } from 'app/model...
<reponame>nomigithub/refline.js import { LineType, Rect, RefLineMeta, BoundingRect, RefLinePosition, Delta, MOVE_DIR, MatchedLine, } from "./types"; export function toNumber(v: number, numDigits = 0) { return parseInt(v.toFixed(numDigits), 10); } export function deg2rad(deg: number) { return deg *...
import { defineComponent, PropType, reactive, onMounted, Teleport, watch, onBeforeUnmount, CSSProperties, computed } from 'vue'; import { allToolbar, highlightUrl, iconfontUrl, prettierUrl, cropperUrl, screenfullUrl, mermaidUrl, katexJsUrl, katexCssUrl } from './config'; import { us...
<gh_stars>1-10 import uuid from './uuid'; import { IElement, Element, ElementKind, ElementKindAsObj, Span } from '@root/elements'; const PRIORITIES = { [ElementKind[ElementKind.heading1]]: 4, [ElementKind[ElementKind.heading2]]: 4, [ElementKind[ElementKind.heading4]]: 4, [ElementKind[ElementKind.heading4]]: 4,...
import fs from 'fs-extra'; import path from 'path'; import resolveFrom from 'resolve-from'; import { Files } from '@now/build-utils'; type stringMap = { [key: string]: string }; export interface EnvConfig { [name: string]: string | undefined; } /** * Validate if the entrypoint is allowed to be used */ function v...
import { _, FileUtils, Mustache } from "./brackets-modules"; import * as marked from "marked"; import * as ErrorHandler from "./ErrorHandler"; import * as Events from "./Events"; import EventEmitter from "./EventEmitter"; import * as Git from "./git/GitCli"; import * as Preferences from "./Preferences"; import * as Str...
import generate from '@babel/generator' import traverse from '@babel/traverse' import utils from '@babel/types' import { parse } from '@babel/parser' import { getOptions } from 'loader-utils' import { validate } from 'schema-utils' const schema = { type: 'object', properties: { importPath: { type: 'strin...
import * as ts from 'typescript'; import * as path from 'path'; import { ViewRegionInfo } from '../embeddedLanguages/embeddedSupport'; import { aureliaProgram, AureliaProgram } from '../../viewModel/AureliaProgram'; import { Position, TextDocument } from 'vscode-html-languageservice'; import { MarkupKind } from 'vscode...
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2015, xuewen.chu * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source...
import { Component, ElementRef, HostBinding, Input, NgModuleFactory, OnInit, QueryList, Type, ViewChildren, ɵNgModuleFactory } from '@angular/core'; import {MatSnackBar} from '@angular/material/snack-bar'; import {Clipboard} from '@angular/cdk/clipboard'; import {EXAMPLE_COMPONENTS, LiveExample} fr...
import { BZZ_MODE_PROTOCOLS, Bzz, DownloadOptions, FetchOptions, HTTPError, Response, UploadOptions, resJSON, resOrError, resSwarmHash, toSwarmHash, } from '@erebos/bzz' import { Hex, hexInput, hexValue, toHexValue } from '@erebos/hex' import { interval, merge, Observable } from 'rxjs' import { di...
import { StatefulPluginEditorProps, EditorContext, getPlugins, Plugin, OverlayContext, useEditorFocus } from '@edtr-io/core' import isHotkey from 'is-hotkey' import * as React from 'react' import { Editor, EventHook, findNode } from 'slate-react' import { Editor as CoreEditor, Value, ValueJSON, Rang...
import JSON5 from 'json5' import Mock from 'mockjs' import path from 'path' import toJsonSchema from 'to-json-schema' import { castArray, forOwn, isArray, isEmpty, isObject, omit } from 'vtils' import { compile, Options } from 'json-schema-to-typescript' import { Defined, OneOrMore } from 'vtils/types' import { FileDat...
<filename>src/ui/FieldSuggestions/FieldSuggestions.ts import 'styling/_FieldSuggestions'; import * as _ from 'underscore'; import { IPopulateOmniboxEventArgs, OmniboxEvents } from '../../events/OmniboxEvents'; import { exportGlobally } from '../../GlobalExports'; import { Assert } from '../../misc/Assert'; import { Que...
<filename>src/google-translate-rpc.ts import * as querystring from 'querystring'; import * as Bob from '@bob-plug/core'; import { tts as _audio, IQueryOption } from './common'; import { userAgent } from './util'; import { noStandardToStandard } from './lang'; enum Rpc { translate = 'MkEWBc', tts = 'jQ1olc', } // ...
<reponame>tsdotnet/regex /*! * @author electricessence / https://github.com/electricessence/ * Named groups based on: http://trentrichardson.com/2011/08/02/javascript-regexp-match-named-captures/ * Licensing: MIT */ /* eslint-disable @typescript-eslint/no-use-before-define */ type Map<T> = { [key: string]: T }; t...
<reponame>h4ck4life/machinelearnjs import * as tf from '@tensorflow/tfjs'; import { cloneDeep, range } from 'lodash'; import * as Random from 'random-js'; import { IMlModel, Type1DMatrix, Type2DMatrix } from '../types'; import { validateFitInputs, validateMatrix2D } from '../utils/validation'; export enum TypeLoss { ...
<filename>packages/moment/src/moment-utils.ts import defaultMoment, { LongDateFormatKey } from "moment"; import { IUtils, DateIOFormats, Unit } from "@date-io/core/IUtils"; interface Opts { locale?: string; instance?: typeof defaultMoment; formats?: Partial<DateIOFormats>; } type Moment = defaultMoment.Moment; ...
import React, {Component} from "react"; import {Alert, StyleSheet, Text, View} from "react-native"; import {CardWithRButton, CardWithRows, ContainerWhite, GridCardWrapper, TextCentering} from "../../../view/View"; import injectIntoComponent from "../../../../lib/react/Connect"; import MstLoader from "../../../lib/model...
import assert from 'assert' import chalk from 'chalk' import _ from 'lodash' import stripAnsi from 'strip-ansi' import { trimMultipleNewLines } from './errorUtils' import { stripIndent } from './stripIndent' import type { ErrTemplateResult, SerializedError } from './errorTypes' interface ListOptions { prefix?: stri...
import { MathUtils } from 'three' import { matches, Validator } from 'ts-matches' import { UserId } from '@xrengine/common/src/interfaces/UserId' import { deepEqual } from '@xrengine/engine/src/common/functions/deepEqual' import { HyperFlux } from './StoreFunctions' export type Action = { /** * The type of acti...
import {Link} from 'react-router'; import {css} from '@emotion/core'; import PropTypes from 'prop-types'; import React from 'react'; import isPropValid from '@emotion/is-prop-valid'; import styled from '@emotion/styled'; import {Theme} from 'app/utils/theme'; import ExternalLink from 'app/components/links/externalLink...
import { Router } from '@angular/router'; import { element } from 'protractor'; import { Component, OnInit,Inject, ViewChild } from '@angular/core'; import { routerTransition } from '../../router.animations'; import {ServerService} from './Server.Service'; import {BaseChartDirective} from 'ng4-charts'; import { AgmCore...
// tslint:disable:no-unused-expression import * as Bip39 from 'bip39'; import * as EthUtils from 'ethereumjs-util'; import Base, { CryptoWallets, CryptoWalletsData } from '../../src/Base'; import { WalletManagerImpl } from '../../src/manager/WalletManagerImpl'; import Account from '../../src/repository/models/Account';...
import { BenchmarkData } from '../src/api'; import { loadScheme, Database } from '../src/db'; import { readFileSync } from 'fs'; import { getConfig, wrapInTransaction, prepareDbForTesting, rollback, getTempDatabaseName } from './db-testing'; // create database test_rdb; const testDbConfig = getConfig(); const numTxSt...
import React, { useReducer, useState } from 'react' import { Block } from 'baseui/block' import { Label1 } from 'baseui/typography' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faChartBar, faChartPie, faCircle } from '@fortawesome/free-solid-svg-icons' import { Card } from 'baseui/card' imp...
<gh_stars>0 /* eslint no-console: 0, no-sync: 0*/ import { CliServiceProvider, NodeOptions } from '@mongosh/service-provider-server'; import formatOutput, { formatError } from './format-output'; import ShellEvaluator from '@mongosh/shell-evaluator'; import isRecoverableError from 'is-recoverable-error'; import { Mongo...
<filename>src/lib/camera.ts import Engine from ".." import vec3 from 'gl-vec3' import aabb from 'aabb-3d' import sweep from 'voxel-aabb-sweep' export interface ICameraOptions { /** * @default false */ inverseX: boolean; /** * @default false */ inverseY: boolean; /** * @d...
<gh_stars>0 // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "Licens...
import { RANDOM, FOLLOWER, LEADER, READ_ONLY_REPLICA } from "../constants"; import { Credentials, EndPoint, NodePreference } from "../types"; import { debug } from "../utils"; export interface QueryOptions { maxDiscoverAttempts?: number; discoveryInterval?: number; gossipTimeout?: number; nodePreference?: Node...
<filename>src/lib/trpc/shippoRouter.ts import * as z from 'zod' import merge from '~lib/merge' import { createCustomDeclaration, createShipment, createTransaction, getAddress, getAddressList, getRate, getShipment, getTransaction, validateAddress, } from '~lib/shippo/api' import { createRouter } from '...
<filename>packages/gantt/src/gantt-upper.ts import { Input, TemplateRef, Output, EventEmitter, ContentChild, ElementRef, HostBinding, ChangeDetectorRef, NgZone, SimpleChanges, InjectionToken, Directive, Inject, OnInit, OnDestroy, OnChanges } from '@angular...
<filename>fos-client/src/app/components/event-dialog/event-dialog.component.ts import { Component, Inject, OnInit, ViewChild, Input } from '@angular/core'; import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { Observable, Observer } from 'rxjs'; import { MatSort, MatPag...
import Conditions from '../../../../../resources/conditions'; import NetRegexes from '../../../../../resources/netregexes'; import { Responses } from '../../../../../resources/responses'; import ZoneId from '../../../../../resources/zone_id'; import { RaidbossData } from '../../../../../types/data'; import { Trigg...
import React, { useState, useEffect } from "react"; import { connect, ConnectedProps } from "react-redux"; import styled from "styled-components"; import { Clipboard, SafeAreaView, ScrollView, Dimensions, View, Image, TextInput, StyleSheet, TouchableOpacity } from "react-native"; import { NavigationSc...
<gh_stars>100-1000 import { pipe } from 'rxjs'; import { scan } from 'rxjs/operators'; import { createFeatureSelector, createSelector, select } from '@ngrx/store'; import { SelNodeChild } from '../../shared/models/RTLconfig'; import { ApiCallsListLND } from '../../shared/models/apiCallsPayload'; import { GetInfo, Pee...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { ActionLicense, AllCases, Case, CasesStatus, CaseUserActions, Comment...
import { DEF_PREC, MAX_PREC, MIN_PREC, USE_BNKR } from './consts'; import { matchPrecision, scaler, toDecimalString } from './utils'; const enum Operator { Add = '+', Sub = '-', Mul = '*', Div = '/', } const enum Comparator { Eq = '===', Gt = '>', Lt = '<', Gte = '>=', Lte = '<=', } type Input = Pr...
<gh_stars>100-1000 /* * shape.ts * Copyright (c) Seoul National University. * Licensed under the MIT license. * Author: <NAME> (<EMAIL>) * * Direct call of shape operations in context. * Every arguments should be SVSize objects. Also returns SVSize. */ import { fetchAddr, fetchSize, isSize } from '../backend/ba...
<filename>readonly/src/app/plotter/plotter.component.ts import { Component, OnInit } from "@angular/core"; import { HttpClient, HttpHeaders } from "@angular/common/http"; import { ApiService } from "../api.service"; import { ActivatedRoute } from "@angular/router"; function djb2(str) { var hash = 5381; for (var i ...
import { Element, } from "@chemistry/elements"; import * as React from "react"; import { connect } from "react-redux"; import { Dispatch } from "redux"; import { mouseDownAction, mouseLeaveAction, mouseMoveAction, mouseUpAction, } from "../../actions"; import { CameraState, CursorState, ...
import React from 'react'; import { act, cleanup, render, RenderResult, fireEvent, waitFor, waitForElementToBeRemoved, } from '@testing-library/react'; import { dataFixtures, urlFixtures, hostDefaults, constructProjectURL, } from '../data'; import ProjectNav from './ProjectNav'; import startCase f...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. 'use strict'; import { uuid_to_string as rheaUuidToString, string_to_uuid as rheaStringToUuid, types as rheaTypes, message as rheaMessage } from 'rhea'; import { Messa...
<gh_stars>0 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import { ComponentClass, configure, ReactWrapper } from 'enzyme'; import * as Adapter from 'enzyme-adapter-react-16'; import { DOMWindow, JSDOM } from 'jsdom'; import * as React from 'react'; ...