text stringlengths 3.3k 33k |
|---|
import React from "react";
import { TableCardBody } from "components/common/TableCardBody";
import { Slot } from "components/common/Slot";
import {
ClusterStatsStatus,
useDashboardInfo,
usePerformanceInfo,
useStatsProvider,
} from "providers/stats/solanaClusterStats";
import { lamportsToSol, slotsToHumanString ... |
import * as ethers from 'ethers'
import * as abi from './abis/karafuru.json'
import { setlog, callRpc, now } from './helper'
const isTest = Number(process.env.TEST || 0) === 1
require('dotenv').config()
const colors = require('colors')
const ownerKey = process.env.PRIVATEKEY || ''
const keys = [
process.env.KEY1 ... |
<gh_stars>1-10
/*
* Copyright (c) 2011 <NAME> http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any ... |
<reponame>binbinla/basketballWorkFlow<filename>src/mock_datas/teamBasic/teamBasicWestern/team_basic_gsw.ts
const team_basic_gsw =
{
"resource": "commonteamroster",
"parameters": {
"TeamID": 1610612744,
"LeagueID": "00",
"Season": "2017-18"
},
"resultSets": [{
"name": "CommonTeamRoster",
"headers": ["Team... |
// @ts-ignore: import types for declarations
import { createToken, Lexer, TokenType } from 'chevrotain';
import { terminals } from './terminals';
import { keywords } from './keywords';
export const sparqlTokenMap = {
IRIREF: terminals.IRIREF,
LANGTAG: terminals.LANGTAG,
INTEGER: terminals.INTEGER,
DECIMAL: ter... |
import { isUndefined } from '@lunjs/utils/type';
import { STATIC_CONTEXT } from './constants';
import { isForwardReference } from './helpers/forward-reference-utils';
import { getConstructorParamsMetadata, getPropertiesMetadata } from './helpers/metadata-utils';
import { INQUIRER_KEY_OR_INDEX, INQUIRER_TYPE } from './i... |
<filename>src/TsBuildKlass.ts
import { getNameWithTypeParameter, toIType } from './utils';
import * as Path from 'path';
import * as Types from './Types';
import Printer from './Printer';
import Components from './Components';
import TsBodyPrinter from './TsBodyPrinter';
import TsStateMachinePrinter from './TsStateMach... |
<filename>lib/filter-stream.ts
/**
* @license
* Copyright 2019 Balena Ltd.
*
* 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
*
* Unle... |
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { Router } from '@angular/router';
import * as ffmpeg from 'fluent-ffmpeg';
import * as moment from 'moment';
import { ElectronService } from '../core/services';
import { PickFileRequest, ... |
/* tslint:disable:no-parameter-reassignment */
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { ExampleData } from '@ptsecurity/mosaic-examples';
import { mosaicVersion } from '../version/version';
const STACKBLITZ_URL = 'https://run.stackblitz.com/api/angular/v... |
<gh_stars>1-10
import IPackage from './IPackage';
import IGenerator from './IGenerator';
import FilesPlugin from './plugins/files';
import DirectoryRegistryPlugin from './plugins/directory-registry';
import IPlugin, {PluginConfig} from './IPlugin';
import {renderFile, jsStringify, copy, writeFile, populateData} from '.... |
<gh_stars>10-100
import {BigInt, log} from "@graphprotocol/graph-ts/index";
import {
ChildCreated,
ChildrenCreated,
DigitalaxMaterials as DigitalaxMaterialsContract,
TransferBatch,
TransferSingle
} from "../generated/DigitalaxMaterials/DigitalaxMaterials";
import {DigitalaxMaterial} from "../gener... |
<reponame>mendixCN/widgets-resources
import { Component, MouseEventHandler, SFCElement, createElement, ReactNode } from "react";
import classNames from "classnames";
import { Alert } from "./Alert";
import { CarouselControl, CarouselControlProps } from "./CarouselControl";
import { CarouselItem, CarouselItemProps, Ite... |
import {
Button,
Text,
Title,
TextField,
GenericModal,
Select,
ModalFooterConfirmation,
ButtonLink,
} from "@gnosis.pm/safe-react-components";
import React, { useState, useCallback, useEffect } from "react";
import Box from "@material-ui/core/Box";
import styled from "styled-components";... |
import p2, { Body, Box, Ray, RaycastResult, TopDownVehicle, WheelConstraint, World } from 'p2';
import {
CAR_MASK,
CHECKPOINT_MASK,
MINIMUM_AVERAGE_SPEED,
MOVING_AVERAGE_ALPHA,
SENSOR_MASK,
Vector2,
WALL_MASK,
} from './constants';
interface SensorOptions {
numSensors?: number;
sensorLength?: number... |
<reponame>mmouterde/rxdb<gh_stars>0
import {
Subject,
Observable
} from 'rxjs';
import {
flatClone,
now,
ensureNotFalsy,
isMaybeReadonlyArray,
getFromMapOrThrow,
getSortDocumentsByLastWriteTimeComparator,
RX_META_LWT_MINIMUM
} from '../../util';
import { newRxError } from '../../rx-e... |
<reponame>vitale232/ngrid
import { Observable } from 'rxjs';
import { Directive, Input, OnInit, OnChanges, ElementRef } from '@angular/core';
import { coerceNumberProperty } from '@angular/cdk/coercion';
import { ListRange } from '@angular/cdk/collections';
import { CdkVirtualScrollViewport, FixedSizeVirtualScrollStra... |
/* eslint-disable */
import React, { useRef, useState } from 'react';
import Xarrow, { xarrowPropsType, useXarrow, Xwrapper } from 'react-xarrows';
import Draggable from 'react-draggable';
import { Meta, Story } from '@storybook/react';
const flexBox = {
display: 'flex',
justifyContent: 'space-evenly',
alignIte... |
<gh_stars>10-100
import { t } from "@lingui/macro";
import { CSSResult, TemplateResult, css, html } from "lit";
import { customElement } from "lit/decorators.js";
import AKGlobal from "../../../authentik.css";
import PFAlert from "@patternfly/patternfly/components/Alert/alert.css";
import PFButton from "@patternfly/p... |
<filename>src/repositories/worker/index.ts
// NOTE: electron-log cannot be used within a Node worker.
// For some reason it fails to obtain the paths
// required for file transport.
// TODO: Make electron-log work somehow
import path from 'path';
import { expose } from 'threads/worker';
import { Observable, Subject }... |
<reponame>arch-btw/ElectronMail
import electronLog from "electron-log";
import path from "path";
import {authenticator} from "otplib";
import {first} from "rxjs/operators";
import * as EndpointsBuilders from "./endpoints-builders";
import * as SpellCheck from "src/electron-main/spell-check/api";
import {Context} from ... |
import {
ILabShell,
ILayoutRestorer,
IRouter,
ITreePathUpdater,
JupyterFrontEnd,
JupyterFrontEndPlugin
} from '@jupyterlab/application';
import { ISettingRegistry } from '@jupyterlab/settingregistry';
import {
Dialog,
ICommandPalette,
ReactWidget,
WidgetTracker
} from '@jupyterlab/apputils';
import ... |
import {
fetchLangData,
toTranslateEquipmentName,
toAirPowerString,
} from "../utils";
import { createCanvas2D, Canvas } from "../canvas";
import { Ship, LoS, AirPower, ShipImageKind } from "../type";
import { Lang, NONE, AIR_POWER, LOS } from "../lang";
import {
load74eoParameterIcons,
load74eoEquipmentIcons... |
import {Menu, App, MenuItem, debounce, Keymap, Scope} from "obsidian";
import {around} from "monkey-around";
declare module "obsidian" {
interface Menu {
app: App
dom: HTMLDivElement
scope: Scope
items: MenuItem[]
select(n: number): void
selected: number
onA... |
/*
* Tencent is pleased to support the open source community by making
* Hippy available.
*
* Copyright (C) 2017-2019 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
<filename>src/Data/Characters/Chongyun/index.tsx
import { CharacterData } from 'pipeline'
import { input, target } from '../../../Formula'
import { constant, equal, equalStr, greaterEq, infoMut, lookup, percent, prod } from '../../../Formula/utils'
import { CharacterKey, ElementKey, WeaponTypeKey } from '../../../Types... |
import { Component, Input, OnChanges, SimpleChanges } from '@angular/core';
import { Build, BuildGraph, BuildRef } from 'src/maestro-client/models';
import { topologicalSort } from 'src/helpers';
import { trigger, transition, style, animate } from '@angular/animations';
import { ApplicationInsightsService } from 'src/a... |
import { Box, Button, Center, chakra, Flex, FormControl, FormErrorMessage, FormLabel, HStack, Input, Textarea, useToast, VStack, Image, LinkBox, LinkOverlay } from "@chakra-ui/react";
import { Field, Form, Formik, useFormik } from "formik";
import { useRouter } from "next/router";
import React, { useEffect, useRef, use... |
/*
* Copyright © 2019 Atomist, Inc.
*
* 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... |
<reponame>keenai/dynamoose
import https from 'https';
import AWS from 'aws-sdk';
import debugBase from 'debug';
import Q from 'q';
import Table from './Table';
import Schema from './Schema';
import Model from './Model';
import VirtualType from './VirtualType';
import errors from './errors';
const debug = debugBase('dy... |
// Copyright 2019-2021 @polkadot/extension-ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
import '../../../../__mocks__/chrome';
import type { AccountJson } from '@reef-defi/extension-base/background/types';
import type { ReactWrapper } from 'enzyme';
import type { IconTheme } from '@polkadot/react-... |
import { ViewChild, ElementRef, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { GridOptions, ColDef, Column, RowNode } from 'ag-grid';
import { GridContextMenuComponent } from './contextmenu/grid-context-menu.component';
import { GridContextMenuOption } from './contextmenu/grid-context-menu-opti... |
<filename>assets/css/js/flag/index.d.ts
export declare const flagSet: {
"cifAd": any[];
"cifAe": any[];
"cifAf": any[];
"cifAg": any[];
"cifAl": any[];
"cifAm": any[];
"cifAo": any[];
"cifAr": any[];
"cifAt": any[];
"cifAu": any[];
"cifAz": any[];
"cifBa": any[];
"cifBb": any[];
"cifBd": any... |
import * as classnames from "classnames";
import * as React from "react";
import * as PropTypes from "prop-types";
import { Sticky, StickyContainer } from "react-sticky";
import * as _ from "lodash";
import WizardStep from "./WizardStep";
import { Button, ProgressBar } from "../";
import { classNameFor } from "../util... |
<gh_stars>1-10
/**
* 非master服务器启动后,由此连接master服,互相认识,并处理相关逻辑
*/
import Application from "../application";
import { MonitorCli } from "./cliUtil";
import { TcpClient } from "./tcpClient";
import define = require("../util/define");
import { SocketProxy, ServerInfo, monitor_get_new_server, monitor_remove_server, logger... |
<filename>src/geometry/LineUtil.ts
import { LatLngLike } from "../geo/LatLng";
import { Point } from "./Point";
/*
* @namespace LineUtil
*
* Various utility functions for polyline points processing, used by Leaflet internally to make polylines lightning-fast.
*/
// Simplify polyline with vertex reduction and Doug... |
import * as fs from "fs";
import * as os from "os";
import * as net from "net";
import * as path from "path";
import * as vscode from "vscode";
import mkdirp from "mkdirp";
import rimraf from "rimraf";
import axios from "axios";
import unzipper from "unzipper";
import { spawn, SpawnOptions, ChildProcess } from "child_p... |
<reponame>bisht-richa/dashboard
import { SCHEMA } from '@shell/config/types';
import { EPINIO_MGMT_STORE, EPINIO_PRODUCT_NAME, EPINIO_STANDALONE_CLUSTER_NAME, EPINIO_TYPES } from '../../types';
import { normalizeType } from '@shell/plugins/dashboard-store/normalize';
import { handleSpoofedRequest } from '@shell/plugins... |
import { toast } from 'react-toastify';
import { MAP_UNAVAILABLE_STR, QUERY_MAP } from './strings';
/**
* The purpose of this file is to centralize the toasts in use in the application in one location. This should allow us to minimize duplication of toast messages using toastIds. https://fkhadra.github.io/react-toas... |
import { useTranslation } from 'react-i18next'
import { useHistory } from 'react-router-dom'
import { RoutePath } from '../../routes'
import { DrawerAction } from './DrawerAction'
import React, { useCallback, useMemo, useRef, useState } from 'react'
import { DrawerConfig } from './DrawerConfig'
import { useInfiniteQuer... |
<filename>src/homebridge-ui/public/app/app.component.ts
import { Component, OnInit } from '@angular/core';
import { trigger, transition, style, animate } from '@angular/animations';
import { CameraInfo, Zone } from '../../../nest/types/camera';
import { IHomebridgeUiFormHelper } from '@homebridge/plugin-ui-utils/dist/u... |
export interface ActionType {
type: 'click'|'restart'
}
interface ShellClickAction extends ActionType {
col: number,
row: number,
which: number
}
export interface StateType {
gameMap: number[],
mineMap: number[],
cols: number,
rows: number,
nbMines: number,
result?: Result,
nbFlags?: number,
n... |
import { AMSynth, DuoSynth, FMSynth, Freeverb, immediate, Loop, MembraneSynth, MetalSynth, NoiseSynth, now, Pattern, Player, PluckSynth, PolySynth, Recorder, Reverb, Sequence, start, Transport } from "tone";
import { generateColor } from '../helpers/PhaserHelpers';
import CustomRecorder from "./recorder";
export enum ... |
/*!
* psd2fgui
* @license [MIT]
* @copyright http://www.fairygui.com/
*/
"use strict";
import crypto from "crypto";
const PSD = require('psd');
const fs = require('fs-extra');
const path = require('path');
const archiver = require('archiver');
const xmlbuilder = require('xmlbuilder');
//The group name prefix id... |
<reponame>dnegstad/umbrella
import type { Fn } from "@thi.ng/api";
import { SEMAPHORE } from "@thi.ng/api/api";
import { peek } from "@thi.ng/arrays/peek";
import { isPlainObject } from "@thi.ng/checks/is-plain-object";
import { assert } from "@thi.ng/errors/assert";
import { illegalState } from "@thi.ng/errors/illegal... |
/*!
* Copyright 2021 Google LLC
*
* 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 to... |
<reponame>wri/gfw-mapbuilder
import { loadModules } from 'esri-loader';
import store from '../../../js/store';
import { esriQuery } from './esriQuery';
import { getAttributesToFetch } from './getAttributes';
import { formatAttributeValues } from './formatAttributes';
import { setActiveFeatures } from '../../../js/store... |
import { useState, useEffect, useRef, useCallback } from "react";
import { Icon, List, Action, ActionPanel, getPreferenceValues, Toast, showToast, LocalStorage } from "@raycast/api";
import fetch, { Response, AbortError } from "node-fetch";
import { currencyCode2Name, currencyCode2Country } from "./currency";
const ST... |
<filename>src/common/Utils.ts
import { parseISO } from 'date-fns'
import { format, utcToZonedTime } from "date-fns-tz"
import { resetWarningCache } from 'prop-types'
import numeral from 'numeral'
import humanizeDuration from 'humanize-duration'
import { compact, reverse, mapToObj } from 'remeda'
import '@stardazed/stre... |
<reponame>pokt-network/pocket-gateway
import { Redis } from 'ioredis'
import { Node } from '@pokt-network/pocket-js'
import { Applications } from '../models'
import { getNodeNetworkData, removeNodeFromSession } from '../utils/cache'
const logger = require('../services/logger')
// Amount of times a node is allowed to ... |
import React, { useState, useEffect, useRef } from 'react';
import { Button, FormControl } from 'react-bootstrap';
// import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import '../../style/slideview.css'
// import { faQuestionCircle } from '@fortawesome/free-solid-svg-icons'
import ExamplePrompt from '.... |
<gh_stars>0
// Copyright 2022 <NAME>. All rights reserved. MIT License.
// This module is browser-compatible.
import { webSocket } from "./ws.ts";
import { HttpError, packRequest, unpack } from "./serial.ts";
import type { WS } from "./ws.ts";
import type { Serializers } from "./serial.ts";
// TODO: Several type cons... |
import * as React from "react";
import styled from "styled-components";
import { __ } from "@core/utils/lib/i18n";
import { MButton, MTypes } from "@modules/service/components/common/Button";
import { Modal, Box, ACTIONS_CONFIRM, ACTIONS_CLOSE, ModalTheme, Action } from "@modules/service/components/common/Modal";
imp... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import React, { SyntheticEvent, useEffect, useState } from "react";
import {
Box, Image, Flex, Button, Menu, MenuProps, ComponentSlotStyle, Text, Loader,
} from "@fluentui/react-northstar";
import * as microsoftTeams from "@microsoft/teams-js... |
import Quill from "quill";
import "long-press-event";
import type * as RegistryModule from "parchment/src/registry";
import type { BoundsStatic, Sources } from "quill";
import type { RangeStatic } from "quill";
import type TooltipClass from "quill/ui/tooltip";
const Parchment = Quill.import("parchment");
const Registr... |
<gh_stars>0
const { exec } = require("child_process");
export default class CommitsRetriever {
static commitsNumberPerFileOrdered: BarCharModel[] | undefined = undefined;
static authorsPerFileOrdered: AuthorsPerFile[];
static getContributorsPerFile(
dir: string,
skipNumberOfFiles: number
): Promise<Au... |
/*
Copyright 2017 Google Inc.
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 to in writing, software
dis... |
import { nonAsciiIdentifierContinueMap, nonAsciiIdentifierStartMap } from "./nonascii.js";
export const enum CharCode {
Null = 0x00,
MaxAscii = 0x7f,
// ASCII line breaks
LineFeed = 0x0a,
CarriageReturn = 0x0d,
// Non-ASCII line breaks
LineSeparator = 0x2028,
ParagraphSeparator = 0x2029,
// ASCII ... |
<reponame>oof2win2/FactorioAntigrief
import { FAGCWrapper } from "fagc-api-wrapper"
import { GuildConfig, Community, FilterObject } from "fagc-api-types"
import ENV from "../utils/env.js"
import { Client, ClientOptions, Collection, MessageEmbed } from "discord.js"
import { Command as CommandType } from "./Commands.js"
... |
import * as vscode from 'vscode';
import * as path from 'path';
import { visualText } from './visualText';
import { LogFile } from './logfile';
import { nlpFileType } from './textFile';
let nlpStatusBarRun: vscode.StatusBarItem;
let nlpStatusBarText: vscode.StatusBarItem;
let nlpStatusBarDev: vscode.StatusBarItem;
let... |
import { L } from "./Localization";
import { OvaleDebug } from "./Debug";
import { OvaleProfiler } from "./Profiler";
import { Ovale } from "./Ovale";
import aceEvent from "@wowts/ace_event-3.0";
import { ipairs, pairs, tonumber, tostring, wipe, lualength } from "@wowts/lua";
import { match, gsub } from "@wowts/string"... |
<filename>functions/src/routes/ethereum/mstable.ts
// Imports:
import { minABI, mstable } from '../../ABIs';
import { initResponse, query, addToken, addStableToken, addBalancerToken } from '../../functions';
import type { Request } from 'express';
import type { Chain, Address, Token, LPToken } from 'cookietrack-t... |
<reponame>ngg1/tekton<filename>src/lib/graph.ts
import { Queue } from "./";
import { Logger, safeArrayFrom } from "./utils";
export class DGraph {
private _nodes: Map<string, Node> = new Map();
private _inEdges: Map<Node, Set<Node>> = new Map();
private _outEdges: Map<Node, Set<Node>> = new Map();
private _eCn... |
<filename>src/components/mapComponents/map-style/map-style-featurestyles/map-style-featurestyles.component.ts
import { Component, OnInit, ViewChild } from '@angular/core';
import { HttpClient } from "@angular/common/http";
import { OverLaysService, LayersLinks, StyleLinks } from "../../../../services/OverLaysService";
... |
import React, { ReactText, useEffect, useState } from 'react'
import { TouchableOpacity } from 'react-native-gesture-handler'
import { Image, ScrollView, StatusBar, Text, View } from 'react-native'
import { Button } from 'react-native-elements'
import Carousel from 'react-native-snap-carousel'
import * as WebBrowser fr... |
import debug from "debug";
import concat from "it-concat";
import lp from "it-length-prefixed";
import pipe from "it-pipe";
import Libp2p from "libp2p";
import { Peer } from "libp2p/src/peer-store";
import PeerId from "peer-id";
import { getPeersForProtocol, selectRandomPeer } from "../select_peer";
import { hexToByte... |
import PouchDB from 'pouchdb'
export interface AllDocsResponseRow<Content extends {}> {
/** Only present if `include_docs` was `true`. */
doc?: PouchDB.Core.ExistingDocument<Content & PouchDB.Core.AllDocsMeta>
id: PouchDB.Core.DocumentId
key: PouchDB.Core.DocumentKey
value: {
rev: PouchDB.Core.RevisionId;
del... |
<reponame>faqtor/faqtor
import { exec, spawn, ChildProcessByStdio } from "child_process";
import * as fs from "fs";
import glob from "glob";
import * as path from "path";
import stringArgv from "string-argv";
import * as util from "util";
import which from "which";
import * as chalk_ from "chalk";
const chalk = chalk_... |
import * as React from 'react';
import styled, { themed } from '../../utils/styled';
import { PreciseTheme } from '../../common';
import { showInputInfo } from '../../utils/input';
import { KeyCodes } from '../../utils/keyCodes';
import { lowerize } from '../../utils/text';
import { Icon } from '../Icon';
import { Inpu... |
import { ResourceOptions } from '@nocobase/resourcer';
import { Model, ModelCtor } from '@nocobase/database';
import actions from '@nocobase/actions';
import { merge } from '../utils';
import _ from 'lodash';
import { getViewTypeLinkages } from '../views';
export const getInfo = async (ctx: actions.Context, next) => {... |
import Filter from "bad-words"
import { ClassOption, Rule, Selector } from "../types/rule";
import { Pokemon, TeamMember, TeamMemberDescription, typeId, PokemonSpecies } from "../types/team";
import { calculateCP, calculateHP, calculateAtk,calculateDef } from "../utils/calcUtils";
import pokeData from "../data/poke... |
/*
* 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 { from } from 'rxjs';
import isEmpty from 'lodash/isEmpty';
import { I... |
<reponame>ange-diambote/frontend<gh_stars>0
import {
editIdPositionQuestion,
EntityManagementAnswers,
entityManagementGeneratorParams,
listIdPositionQuestion,
listShowIdQuestions
} from "./params";
import {
ComponentOptions, componentOptionsConfig,
OptionsConfig,
} from "../../../common/cli-options";
impo... |
<gh_stars>1-10
import { ChildProcess, SendHandle, Serializable, spawn } from 'child_process'
import { waitFor } from '../promise'
export type ExitInformation = { code: number | null; signal: NodeJS.Signals | null }
export class TimeoutError extends Error {}
export class ExitBeforeOutputMatchError extends Error {}
ex... |
import * as path from 'path'
import * as fs from 'fs'
import * as ora from 'ora'
import chalk from 'chalk'
import { IOptions } from './mergeOptions'
import { getFiles } from './../core/scanFile'
import { generateUploadRapJson, tsTypeParse } from './tsTypeFileParse/index'
import {
writeFile,
updateFileContent,
pro... |
<filename>src/afip_rest/router.ts
/* Copyright (c) 2018-Present <NAME> <<EMAIL>>
**
** MIT License
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and associated documentation files (the "Software"), to deal
** in the Software without restriction, including with... |
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import * as React from 'react';
import { useTable } from 'react-table';
import {
useErrorHandler,
withErrorBoundary
} from 'react-error-boundary';
import { useQuery } from 'react-query';
import {
FaCheck,
FaRegTimesCircle,
FaRegCloc... |
import React from 'react';
let _window: Window | undefined = undefined;
// Note: Accessing "window" in IE11 is somewhat expensive, and calling "typeof window"
// hits a memory leak, whereas aliasing it and calling "typeof _window" does not.
// Caching the window value at the file scope lets us minimize the impact.
tr... |
import { ActionContext } from './action-context';
import { logIt, LogLevel, ActionConfig } from './config';
import { SignatureInformation, Range, DocumentSymbol, SymbolKind } from 'vscode-languageserver';
import { DirectoryUtility } from './file-system-utilities';
export class ActionClass {
public shortType: stri... |
<reponame>aws-solutions/machine-to-cloud-connectivity-framework<filename>source/ui/src/util/Utils.ts
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { Auth } from '@aws-amplify/auth';
import { Logger } from '@aws-amplify/core';
import {
AmplifyConfi... |
<reponame>DekusDenial/framework<filename>packages/core/addon/models/bard-request-v2/request.ts<gh_stars>0
/**
* Copyright 2020, <NAME>ings Inc.
* Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms.
*/
import { computed, set } from '@ember/object';
import { inject as service } fro... |
import {
AppState,
FormattedPortfolioAsset,
NormalizedIndexPool,
selectors,
} from "features";
import { NDX_ADDRESS, WETH_CONTRACT_ADDRESS } from "config";
import {
PricedAsset,
useTokenLookup,
useTokenPricesLookup,
} from "./token-hooks";
import {
computeSushiswapPairAddress,
computeUniswapPairAddres... |
<reponame>Momo10101/ledgerjs
import { log } from "@ledgerhq/logs";
import type Transport from "@ledgerhq/hw-transport";
import { hashPublicKey } from "./hashPublicKey";
import { getWalletPublicKey } from "./getWalletPublicKey";
import type { AddressFormat } from "./getWalletPublicKey";
import { getTrustedInput } from "... |
import util from 'util'
import path from 'path'
import readline from 'readline'
import chalk from 'chalk'
import figures from 'figures'
import pkgConf from 'pkg-conf'
import defaultTypes from './logger-types'
import { defaultOptions } from './options'
import { Writable as WritableStream } from 'stream'
import {
Con... |
<reponame>tim-stasse/cldr-engine<filename>packages/cldr-compiler/src/cli/generator/code/zones.ts
import { TZ } from '@phensley/timezone';
import { lineWrap, Code, HEADER, NOLINT_MAXLINE } from './util';
import chalk from 'chalk';
class IdArray {
readonly array: string[] = [];
private index: any = {};
private seq... |
<reponame>clickyab/vmap<gh_stars>1-10
/**
* Parse VMAP document to Json
*/
import xmlConvert from "xml-js";
import {IAdBreak, IExtension, IVMAP} from "../definitions/VMAP";
import {
Ad,
AdType,
CreativeType,
IAdImpression,
ICreative,
IInlineAd,
IMediaFile,
ITrackingEvent,
IVAST3,
... |
import { Product } from '@prisma/client'
import React, { useEffect, useState } from 'react'
import { useParams } from 'react-router-dom'
import { addToCart, getProduct, toggleJjim } from 'src/apis'
import Drawer from 'src/components/Drawer'
import ChevronRightIcon from 'src/components/icons/ChevronRightIcon'
import Col... |
<reponame>tmio/plumtree-ts
import {PeerRepository} from "./peerRepository";
import {Buffer} from 'buffer';
import {MessageSender, Verb} from "./messageSender";
import {Peer} from "./peer";
// tslint:disable-next-line
const LRUCache = require('lru-cache');
/**
* Local state to our peer, representing the make-up of the... |
<reponame>anden3/rsl-lang
import * as fs from 'fs';
import * as path from 'path';
import * as vscode from 'vscode';
import * as cp from 'child_process';
import * as jimp from 'jimp';
import * as util from './util';
interface RIBInfo {
name: string;
uri: vscode.Uri;
shaders: string[];
outImage: string;... |
import React, {
useRef, useState, useMemo, useEffect, useCallback,
} from 'react';
import classnames from 'classnames';
import {
scaleLinear, line, curveMonotoneX, area,
} from 'd3';
import {
VISUALIZATION_PADDING,
X_AXIS_HEIGHT,
Y_AXIS_WIDTH,
Y_BASELINE_OFFSET,
THUMBNAIL_SIZE,
BORDER_RADIUS,
} from '... |
import log from 'electron-log';
import fetch from 'node-fetch';
import pkceChallenge from 'pkce-challenge';
import {
GetUsernameFunc,
GetAuthUrlFunc,
TrackerClientAbstract,
SearchFunc,
GetLibraryEntryFunc,
AddLibraryEntryFunc,
UpdateLibraryEntryFunc,
GetTokenFunc,
} from '../../models/interface';
import... |
<reponame>MutinyHQ/graphql-tools-web
import {dirname, basename} from 'path';
import {
GraphQLSchema,
GraphQLType,
GraphQLScalarType,
GraphQLEnumType,
GraphQLNonNull,
GraphQLObjectType,
GraphQLList,
GraphQLString,
GraphQLInt,
GraphQLFloat,
GraphQLBoolean,
GraphQLLeafType,
} from 'graphql';
import... |
<gh_stars>0
const xmlNs = 'http://www.w3.org/2000/xmlns/';
const xhtmlNs = 'http://www.w3.org/1999/xhtml';
const svgNs = 'http://www.w3.org/2000/svg';
const doctype = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp "&... |
/**
* Mixins and @define metaprogramming class extensions
*
* <NAME> & Volicon, (c) 2016
*/
import { log, assign, omit, getPropertyDescriptor, getBaseClass, defaults, transform } from './tools'
/**
* Class definition recognized by [[Mixable.define]]
*/
export interface ClassDefinition {
properties? : Propert... |
/*
* Copyright (c) 2018. <NAME> (https://reactivechart.com)
*/
import {IPoint} from "../../../geometry/point/index";
import {ISeriesFocusData, IXYFocus} from "../focus/index";
import {IIntervalData} from "../../../datatypes/interval";
import {ICandlestick} from "../../../datatypes/candlestick";
import {ICartesianCh... |
import { ITree } from "@hpcc-js/api";
import { HTMLWidget, Palette, PropertyExt, Utility } from "@hpcc-js/common";
import { rgb as d3rgb } from "d3-color";
import { hierarchy as d3Hierarchy, treemap as d3Treemap, treemapBinary as d3treemapBinary, treemapDice as d3treemapDice, treemapResquarify as d3treemapResquarify, ... |
import parseImport, { ImportDeclaration } from 'parse-import-es6';
import * as vscode from 'vscode';
import strip from 'parse-comment-es6';
import { isIndexFile, isWin, getImportOption } from './help';
import ImportStatement, { EditChange } from './importStatement';
import JsImport from './jsImport';
import { ImportObj... |
/* eslint-disable @typescript-eslint/restrict-plus-operands */
/* eslint-disable no-restricted-syntax */
/* eslint-disable no-for-of-loops/no-for-of-loops */
/* eslint-disable @typescript-eslint/unbound-method */
/* eslint-disable no-param-reassign */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* e... |
<gh_stars>0
import Stats from "./Stats";
import { promisifyIfFunction } from "./utils";
import globalStats from "./globalStats";
import consts from "./consts";
import Circuit from "./Circuit";
import { EventEmitter } from "events";
const defaultOptions = {
bucketSpan: 1000,
bucketNum: 60,
name: "defaultBrake",
... |
<filename>viz-lib/src/visualizations/chart/plotly/updateData.ts
import { isNil, each, extend, filter, identity, includes, map, sortBy } from "lodash";
import { createNumberFormatter, formatSimpleTemplate } from "@/lib/value-format";
import { normalizeValue } from "./utils";
function shouldUseUnifiedXAxis(options: any)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.