text
stringlengths
3.08k
15.5k
import type { Document } from 'mongodb' import { createMongoDBDataAPI, MongoDBDataAPI, Region } from '../src' import { describe, expectError, expectType, expectAssignable, IsAny, IsUnion } from './type' interface FooString { foo: string } interface BarString { bar: string } describe('Class creator', ...
import { STATUS_TEXT } from './deno_std.ts'; /** * HTTPError * HTTPError has Error response. */ export class HTTPError extends Error { public responseInit: ResponseInit; /** * @param status HTTP Status code. */ constructor(status: number, responseInit?: ResponseInit) { super(STATUS_TEXT.get(status) || 'UN...
import { ComponentNode, Figma, ReflectSceneNode } from "@design-sdk/figma"; import { compare_instance_with_master, InstanceDiff_1on1, MultichildDiff, NodeDiff, } from "@design-sdk/diff"; import { ComponentsUsageRepository } from "./components-usage-repository"; import { MasterComponentMetaToken, Property, }...
import React from 'react'; import { View, StatusBar, ScrollView, TouchableOpacity, Image, StyleSheet, Text, FlatList, } from 'react-native'; import {Metrics, Shadow, Colors, FontStyle} from '../definitions/theme'; import {SafeAreaView} from 'react-native-safe-area-context'; import {getThumbBook, isFavor...
<gh_stars>1-10 import { Inject, Component, OnInit, OnDestroy, ElementRef, Renderer2 } from '@angular/core'; import { Meta } from '@angular/platform-browser'; import { DOCUMENT } from "@angular/common"; import { Config, Item, ItemTypes, ItemService } from "@geoplatform/client"; import { NG2HttpClient } from '@geopl...
<gh_stars>0 import { Request, Response } from "express"; import { MongoClient, Db, MongoError, InsertOneWriteOpResult } from "mongodb"; import express from "express"; import compression from "compression"; // compresses requests import expressValidator from "express-validator"; import bodyParser from "body-parser"; i...
<reponame>Walkover-Web-Solution/Giddh-New-Angular4-App import { Component, EventEmitter, Input, OnInit, Output, ViewChildren } from '@angular/core'; import { HeaderItem, ImportExcelResponseData, Mappings } from '../../models/api-models/import-excel'; import { IOption } from '../../theme/ng-select/option.interface'; imp...
<filename>src/Editor/Anonymization.ts import * as G from '../Graph' import * as record from '../record' import * as Utils from '../Utils' import {label_sort, taxonomy_has_label, label_order, LabelOrder} from './Config' import {pseudonymize} from 'pseudonymization' import {Store} from 'reactive-lens' export type Pseudo...
import { TracePolicy, RequestDetails, } from '@google-cloud/trace-agent/build/src/config'; import { BuiltinTracePolicy, TraceContextHeaderBehavior, } from '@google-cloud/trace-agent/build/src/tracing-policy'; import { SpanOptions } from '@google-cloud/trace-agent/build/src/plugin-types'; /** * The following c...
<gh_stars>1-10 /* * @Author : HCLonely * @Date : 2021-11-11 14:02:46 * @LastEditTime : 2022-06-08 09:41:53 * @LastEditors : HCLonely * @FilePath : /auto-task-new/src/scripts/website/keyhub.ts * @Description : https://key-hub.eu/ */ // eslint-disable-next-line /// <reference path = "Keyhub.d....
import {assert} from "chai"; import {DetailContext, IErrorDetail, NoopContext} from "../lib/util"; /** * Replace the method called `name` of `cls` * with a patched method that calls `replacement`. * * `replacement` gets two arguments: * - `instance` is the instance of `cls` whose method is being called, i.e. `thi...
/* * Copyright 2015 Samsung Research America, 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 l...
import compression from 'compression' import cors from 'cors' import express from 'express' import fs from 'fs' import helmet from 'helmet' import { StatusCodes } from 'http-status-codes' import path from 'path' import { checkOwnershipUsing } from '@/middleware/checkOwnership' import { AddresseeController } from '@/mod...
/* The MIT License Copyright (c) 2017-2019 EclipseSource Munich https://github.com/eclipsesource/jsonforms 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, inc...
import cheerio from "cheerio"; import { Entity, Log4brainsError } from "@src/domain"; import { CheerioMarkdown, cheerioToMarkdown } from "@src/lib/cheerio-markdown"; import type { Adr } from "./Adr"; import { MarkdownAdrLinkResolver } from "./MarkdownAdrLinkResolver"; type Props = { value: string; }; type ElementAn...
import React, { Fragment, useEffect, useState } from 'react'; import { createStyles, makeStyles, Theme } from '@material-ui/core'; import XTable from '../../components/table/XTable'; import { XHeadCell } from '../../components/table/XTableHead'; import { appPermissions, localRoutes } from '../../data/constants'; import...
<filename>ts/objects/Game_System.ts import { AudioManager } from "../managers/AudioManager"; interface Game_System_OnLoad { _saveEnabled: boolean; _menuEnabled: boolean; _encounterEnabled: boolean; _formationEnabled: boolean; _battleCount: number; _winCount: number; _escapeCount: number; ...
<gh_stars>0 import { Injectable } from '@nestjs/common'; import { Command, Console } from 'nestjs-console'; import { ConfigService } from '@nestjs/config'; // eslint-disable-next-line @typescript-eslint/no-var-requires const OpenAPI = require('@tinkoff/invest-openapi-js-sdk'); import { clog } from '../libs/clog'; imp...
<gh_stars>10-100 import type { AST } from "svelte-eslint-parser" import { createRule } from "../utils" import type { QuoteAndRange } from "../utils/ast-utils" import { getMustacheTokens } from "../utils/ast-utils" import { getAttributeValueQuoteAndRange } from "../utils/ast-utils" const QUOTE_CHARS = { double: '"', ...
import React, { useMemo, useRef } from 'react'; import { getData, AggregateType, Operator, getDimension, } from '@alife/mock-core'; import { compute, DefaultValue, RdxContext, RdxState, Status, useRdxStateLoader, isLoading, useRdxValueLoader, atom, useRdxState, useRdxRefresh, waitForAll, }...
<reponame>pavan3999/lnreader import * as cheerio from 'cheerio'; import { isUrlAbsolute } from '../../utils/isAbsoluteUrl'; import { SourceChapter, SourceChapterItem, SourceNovel, SourceNovelItem, } from '../types'; const sourceId = 114; const sourceName = 'LightNovelReader'; const baseUrl = 'https://lightnove...
import * as HTTP_STATUS from 'http-status-codes'; import logger from '../../common/logger'; import { ResponseModel } from '../models'; import { ChromecastMediaOptions, ChromecastOperations, ChromecastRequest } from '../models/chromecast'; import { resolve } from 'dns'; import { Body, Header } from 'tsoa'; // Need to r...
import * as SDK from 'aws-sdk'; import { customAlphabet } from 'nanoid'; import RemoteBuilderSecret from './remote-builder-secret'; import RemoteBuilderEnvironmentVariable from './remote-builder-environment-variable'; import * as fs from 'fs'; import * as core from '@actions/core'; import RemoteBuilderTaskDef from './r...
declare var angular: any; import * as _fabric from 'fabric'; let fabric = (_fabric as any).fabric as typeof _fabric; import * as $ from 'jquery'; import { DrawModule } from './module'; import { DrawError } from './core'; import { DrawStateService } from './reducers'; import { DrawToolsService, Tool } from './tools'; i...
// Copyright 2017 <NAME>, <NAME>, <NAME>, and <NAME>. // // 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 appl...
import {DocumentNode} from 'graphql'; import {createSelector} from '@ngrx/store'; import { Cache as _Cache, DataProxy, ApolloCache, Transaction, } from 'apollo-cache'; import { getFragmentQueryDocument, addTypenameToDocument, } from 'apollo-utilities'; import {Store} from '@ngrx/store'; import {take} from '...
/* eslint-disable node/no-missing-import */ import {resolve, join} from 'path' import anyTest, {TestInterface} from 'ava' import {readMultiple, readSingle} from '../src' const test = anyTest as TestInterface<{envFiles: any}> /* test input files directory path */ const inputDir = resolve( __dirname, 'input' ) /* test...
import { Formik } from 'formik'; import range from 'lodash/range'; import React from 'react'; import { EventsDocument, SuperEventType, } from '../../../../../generated/graphql'; import { fakeEvent, fakeEvents } from '../../../../../utils/mockDataUtils'; import { configure, render, screen, userEvent, } from...
import React, { useState } from 'react'; import { Collapse, Container, Navbar, NavbarToggler, Nav, NavItem, UncontrolledDropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap'; import { Button } from '@chakra-ui/react'; import { useUser } from '@auth0/nextjs-auth0'; import { intialS...
<gh_stars>100-1000 // type import type { Syringe } from 'mana-syringe' import type { IGraphCommand } from '../../command/interface' import type { HookHub } from '@antv/xflow-hook' import type { IHooks } from '../../hooks/interface' import type { Simplify } from '../../common/types' // 数据相关 import { NsGraphMeta, GraphMe...
import { EnhancedRxState, NGT_OBJECT_INPUTS_WATCHED_CONTROLLER, NgtAnimationFrameStore, NgtLoopService, NgtObject3dInputsController, NgtStore, } from '@angular-three/core'; import { Inject, Injectable, NgZone } from '@angular/core'; import { selectSlice } from '@rx-angular/state'; import { combineLatest, fi...
<filename>server/paymentProviders/braintree/gateway.ts import braintree from 'braintree'; import config from 'config'; import { Service } from '../../constants/connected_account'; import INTERVALS from '../../constants/intervals'; import logger from '../../lib/logger'; import models from '../../models'; import { getC...
/* * Copyright © 2020 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>hatz48/imazip<filename>js/background.ts // <reference path="../typings/urijs/URI.d.ts" /> // <reference path="../typings/jszip/jszip.d.ts" /> /// <reference path="./converter.ts" /> declare var chrome:any; declare var Promise:any; declare var JSZip:any; declare var URI:any; // ---- initialize ---- chrome.b...
import * as ts from 'typescript'; import {ComponentOptions, TransformOptions} from '../index'; type FunctionNode = ts.FunctionDeclaration|ts.FunctionExpression; type ClassNode = ts.ClassDeclaration|ts.ClassExpression; class Replacement { constructor (readonly start: number, readonly end: number, readonly text = '...
<filename>lib/src/services/canvas/card.ts import { CanvasRenderingContext2D, Image, loadImage } from 'canvas'; import { drawImageWithColor } from './canvas'; import { Card, Rank, Suit } from '../../options/models/models'; const suitIcons: Record<keyof typeof Suit, string> = { none: '', clubs: require('@/static/icons...
<reponame>alierkanimrek/tslocalizer const xhr = new XMLHttpRequest() interface EventCallback { type:string, callback:Function } export class Translator { private _root:string // File location private _app:string // App name private _lang:any ...
/* * Copyright (c) 2021 Ford Motor Company * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
/* * Licensed to Gisaïa under one or more contributor * license agreements. See the NOTICE.txt file distributed with * this work for additional information regarding copyright * ownership. Gisaïa licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except ...
/// <reference path="../../../../node_modules/monaco-editor/monaco.d.ts" /> import { AfterViewInit, Component, ElementRef, EventEmitter, OnDestroy, Output, ViewChild, } from '@angular/core'; import { ModeService } from '../../header/modes/mode.service'; import { SettingsService } from '../../header/settin...
import {ArrowLeftOutlined, CloseOutlined} from "@ant-design/icons/lib"; import {Button} from 'antd'; import Input from 'antd/es/input'; import Alert from 'antd/lib/alert'; import Popover from 'antd/lib/popover'; import Select from 'antd/lib/select'; import autobind from 'autobind-decorator'; import gql from 'graphql-ta...
<reponame>TillaTheHun0/transform<filename>src/transformer.ts import { registry } from './registry' import { promiseMap } from './utils' import { FieldMapper } from './fieldMapper' const PASSTHROUGH = 'PASSTHROUGH' const BUILD_WITH = 'BUILD_WITH' type CurriedTransform = (instance: any) => Promise<any> type TransformR...
import { Message } from "discord.js"; import { Storage } from "../discord/storage"; import { rollActionDice, d100, d, rollProgressDice, sum } from "./dice.utils"; import { TextChannel } from "discord.js"; import { Local } from "../../local"; export const diceCommands: { [id: string]: (message: Message, args: string[...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<gh_stars>0 /** * 路由相关工具函数 * TODO: 添加 unit test */ import { cloneDeep } from 'lodash' import { app } from '@/app' import logger from '@/utils/logger' import { ReqMockSource } from '@/utils/request/types' import { isSubStr, retryPromise, loadScriptAsync, deserialize } from '@/utils/tool' import { PageFileOption, P...
<gh_stars>0 import { existsSync, readFileSync, writeFileSync, unlinkSync } from 'fs'; import { resolve } from 'path'; import { homedir } from 'os'; import { red, green, gray, yellow } from 'colorette'; import { RegistryApi } from './registry-api'; import { AccessTokens, DEFAULT_REGION, DOMAINS, Region, AVAILABLE_REGION...
/** * Created by LeonardoAlmeida on 26/04/16. */ import {Injectable} from '@angular/core'; import { uuid } from '../componentes/utils/uuid'; export class Cliente { id: number; nome: string; telefones: Telefone[]; enderecos: Endereco[]; constructor(obj?: any) { this.id = obj...
import {deleteDB as idbDeleteDB, openDB} from 'idb'; import {ICryptoStore, IDBServiceLayer, IResponse} from './Models'; import {ICategory} from 'Modules/Main/Store/Models'; import {BASE_NAME, defaultCategories, KEY_PATH} from './Consts'; import {ECryptoStorage, EDBMode, EResponseStatus, EStoreName} from './Enums'; impo...
import * as error from '../../../error'; import * as utils from '../../../utils'; import * as constants from '../../../constants'; import * as common from '../../../common'; import { AxisSliderState, AnimationState } from './axisSliderState'; import { SliderImage } from '../../sliderImage'; import { CanvasImageAnimatio...
<reponame>lhj-web/edu-mis<filename>src/utils/request/axiosTransform.ts import type { AxiosTransform, Result, RequestOptions } from '/#/axios'; import { RequestEnum } from '/@/enums/httpEnum'; import { AxiosResponse } from 'axios'; import { useMessage } from '/@/hooks/web/useMessage'; import { getRefreshToken, getToken...
/// <reference types="lodash" /> import "core-js/fn/object"; import * as _ from "lodash"; export declare let groupBy: { <T, TKey>(collection: _.List<T>, iteratee?: _.ListIterator<T, TKey>): _.Dictionary<T[]>; <T>(collection: _.List<any>, iteratee?: _.ListIterator<T, any>): _.Dictionary<T[]>; <T, TKey>(colle...
/* * (C) Copyright 2020 Radix DLT Ltd * * 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 without limitation * the rights to use, copy, modify, merge, publi...
import { formatFileSize } from 'foxcasts-core/lib/utils'; import { AppBar, AppBarAction } from 'mai-ui/dist/components/appbar'; import { ListItem } from 'mai-ui/dist/components/list'; import { Typography } from 'mai-ui/dist/components/Typography'; import { View, ViewContent, ViewHeader } from 'mai-ui/dist/components/vi...
<gh_stars>1-10 /* This file is part of the Data Cleaning Library (openclean). * * Copyright (c) 2018-2021 New York University. * * openclean is released under the Revised BSD License. See file LICENSE for * full license details. */ /* * The request result contains all the information that is needed to render th...
type Status = { /** ドラッグスクロールが利用可能かどうか */ disabled: boolean, /** スクロール対象ノード、あるいはwindow */ target: HTMLElement | Window | null, /** Y軸方向ドラッグ開始位置 */ x: number, /** X軸方向ドラッグ開始位置 */ y: number, /** X軸方向スクロール開始位置 */ startX: number, /** Y軸方向スクロール開始位置 */ startY: number, /** X軸方向スクロール可能 */ scrollable...
<reponame>OMoukoko/domifa import moment = require("moment"); import { UsagersImportUsagerSchemaContext } from "./schema"; import { usagersImportValidator } from "./usagersImportValidator.service"; const today = new Date(Date.UTC(2021, 0, 1)); const nextYear = new Date(Date.UTC(2022, 0, 1)); const minDate = new Date(Da...
<filename>packages/content-loaders/src/gltf/gltfMaterials.ts import { resolveUri, PipelineContext } from '@gglib/content' import { MaterialOptions, Material } from '@gglib/graphics' import { GLTFTextureInfo, GLTFTextureTransform, KHR_texture_transform, KHR_materials_unlit, KHR_materials_pbrSpecularGlossiness...
#!/usr/bin/env node import http from 'http' const MAX_NEGOTIATIONS = 500 const MAX_NEGOTIATION_AGE = 1000 * 60 * 3 const CORS_HEADERS = { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Headers': '*', 'Access-Control-Allow-Methods': 'OPTIONS, POST', 'Access-Control-Max-Age': 2592000, // 30 days } ...
import axios, { AxiosInstance, AxiosResponse } from 'axios'; import keyBy from 'lodash.keyby'; import zipObject from 'lodash.zipobject'; // Modifed verison of https://stackoverflow.com/a/37016639 const urlRe = /(?:https?:\/\/)?steamcommunity\.com\/(?:profiles|id)\/([^/?]+)/; const steamidRe = /\d{17}/; const bigpictu...
<gh_stars>1-10 import * as ts from 'typescript'; type ModifierMethod = (node: ts.CallExpression, functionName: string) => ts.Node | null ; type MethodMap = { [key: string]: ModifierMethod } type ModifierMap = { [key: string]: { methodNames: MethodMap, namespace: string | null, importedVariable: { ...
import { CertaCrypt, GraphObjects, CryptoHyperdrive, createUrl, parseUrl, URL_TYPES, DriveShare } from "certacrypt"; import { IpcMain, dialog } from "electron"; import fs from 'fs' import { MainEventHandler } from "./MainEventHandler"; import { IDriveEventHandler, FileDownload , Stat, readdirResult, Peer, Share, Space}...
<filename>src/request/request.ts /* * @description request.ts */ import { commitToken } from 'Lib/conf'; import logger from 'Lib/logger'; import Chain from 'Request/chain'; import Collection from 'Request/collection'; // tslint:disable no-any no-unsafe-any // export interface IRequest { // [key: string]: Funct...
import classnames from 'classnames'; import isNull from 'lodash/isNull'; import React, { useRef, useState } from 'react'; import { MdDone } from 'react-icons/md'; import { API } from '../../api'; import { ResourceKind, User } from '../../types'; import InputField from '../common/InputField'; import Modal from '../comm...
import * as test from "tape"; import caseOf from "../../function/caseOf"; import compose from "../../function/compose"; import fmap from "../../function/fmap"; import id from "../../function/id"; import Either, { maybeToEither } from "."; import Maybe from "../Maybe"; const data = { a: { b: { c: 1 } } }; const unwrap ...
<reponame>Discordius/Lesswrong2<filename>packages/lesswrong/server/scripts/algoliaExport.ts import { Vulcan } from '../../lib/vulcan-lib'; import { Posts } from '../../lib/collections/posts' import { postStatuses } from '../../lib/collections/posts/constants'; import { Comments } from '../../lib/collections/comments' i...
<filename>src/ontodia/viewUtils/collections.ts export function createStringMap<V>(): { [key: string]: V } { const map = Object.create(null); // tslint:disable-next-line:no-string-literal delete map['hint']; return map; } export function createNumberMap<V>(): { [key: number]: V } { return createStri...
import { HttpServer, INestApplication, INestApplicationContext, INestMicroservice, } from '@nestjs/common'; import { MicroserviceOptions } from '@nestjs/common/interfaces/microservices/microservice-configuration.interface'; import { NestMicroserviceOptions } from '@nestjs/common/interfaces/microservices/nest-mi...
<filename>packages/core-magistrate-crypto/src/transactions/bridgechain-registration.ts import { Transactions, Utils } from "@arkecosystem/crypto"; import ByteBuffer from "bytebuffer"; import { MagistrateTransactionGroup, MagistrateTransactionStaticFees, MagistrateTransactionType } from "../enums"; import { IBridgechain...
import { cacheName } from '@cowtech/webpack-utils' import { globby } from 'globby' import HtmlWebpackPlugin from 'html-webpack-plugin' import { createHash } from 'node:crypto' import { readFileSync } from 'node:fs' import { resolve } from 'node:path' import webpack from 'webpack' // @ts-expect-error - Even if @types/we...
<filename>src/app/proposals/store.ts<gh_stars>0 /** * Copyright (c) 2020 BlockDev AG * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { action, computed, makeObservable, observable, reaction, runInAction, when } from "mobx" impo...
<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------...
/** * FormValidation (https://formvalidation.io) * The best validation library for JavaScript * (c) 2013 - 2019 <NAME> <<EMAIL>> */ import { Localization, ValidateInput, ValidateOptions, ValidateResult } from '../../core/Core'; import format from '../../utils/format'; // ID validators for supported countries impo...
import { GroupedOptionsType, GroupType } from "react-select/src/types"; export interface ColourOption { value: string; label: string; color: string; disabled?: boolean; } export const colourOptions: ReadonlyArray<ColourOption> = [ { value: 'ocean', label: 'Ocean', color: '#00B8D9' }, { value: 'blu...
<reponame>guardian/source import { pxToRem } from '../utils/px-to-rem'; import type { BodySizes, Category, FontWeight, FontWeightDefinition, HeadlineSizes, LineHeight, TextSansSizes, TitlepieceSizes, TypographySizes, } from './types'; const fontSizes = [12, 14, 15, 17, 20, 24, 28, 34, 42, 50, 70]; const font...
/** * @license Copyright 2017 The Lighthouse Authors. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applica...
<gh_stars>100-1000 /// Coarse-grained task classification. /// /// This type is used to determine which inference API & widget /// we want to display for each given model. /// /// As such, they describe the "shape" of each model's API (inputs and outputs) /// so the number of different types is not expected to grow ve...
// Copyright 2017-2019 @polkadot/app-staking authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces'; import { DerivedStaking, DerivedStakingOnlin...
<gh_stars>0 import {Plugin, rollup, RollupOptions, RollupOutput} from "rollup"; import commonjs from "@rollup/plugin-commonjs"; import typescriptRollupPlugin from "../../src/plugin/typescript-plugin"; import {HookRecord, InputCompilerOptions, TypescriptPluginBabelOptions, TypescriptPluginOptions, TypescriptPluginSwcOpt...
<filename>packages/pro/table/src/types.ts /** * @license * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/IDuxFE/idux/blob/main/LICENSE */ /* eslint-disable @typescript-eslint/no-explicit-any */ import type { ValidatorFn, ValidatorOptio...
import { injectable } from "inversify"; import { Vec, Compact, GenericExtrinsic } from '@polkadot/types'; import { Address, Balance, Block, EventRecord, Hash, } from '@polkadot/types/interfaces'; import { AnyJson, Registry } from '@polkadot/types/types'; import { BlockExtrinsics } from './types/responses/Block'; impor...
<gh_stars>0 /* eslint-disable @typescript-eslint/naming-convention */ import { simplify } from '../lib/src/common'; import { theState } from '../lib/src/common'; import * as turf from '@turf/turf'; import { mkdirSync } from 'fs'; import { readFileSync } from 'fs'; import { writeFileSync } from 'fs'; import chalk fro...
<reponame>manifoldfinance/contractshark<filename>packages/compiler/src/lib/solc.ts /** * Solc compiler configuration input. * @see http://solidity.readthedocs.io/en/v0.5.11/using-the-compiler.html */ export interface SolcInput { // Source code language. language?: "Solidity" | "Yul"; // Source. sources?: { ...
/** * @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 * as ts from 'typescript'; import {ParsedConfiguration} from '../../..'; import {FileSystem} from '../../../s...
import DialogContentText from "@material-ui/core/DialogContentText"; import * as React from "react"; import { Route } from "react-router-dom"; import ActionDialog from "../../components/ActionDialog"; import Messages from "../../components/messages"; import Navigator from "../../components/Navigator"; import i18n from...
import * as React from 'react'; import { PureComponent } from 'react'; import { defineMessages, injectIntl, InjectedIntlProps } from 'react-intl'; import { EditorView } from 'prosemirror-view'; import MoreIcon from '@atlaskit/icon/glyph/editor/more'; import { akEditorMenuZIndex } from '@atlaskit/editor-common'; import ...
import * as fs from "fs"; import * as assert from "assert"; import * as path from "path"; import * as minimist from "minimist"; import {quantile, median, mean, max, min, sum, modeFast as mode, standardDeviation} from "simple-statistics"; import * as moment from "moment"; import {IncrementalMap, Walk} from "./utils"; //...
import React from "react"; import SplitterLayout from "react-splitter-layout"; import { FocusStyleManager, Position, Drawer, Alert, Intent, Toaster, IToastProps } from "@blueprintjs/core"; import { ItemListRenderer, IItemListRendererProps } from "@blueprintjs/select"; import ImportDialog from "./ImportDialog"; import O...
import { useState } from "react" import { ReactNode, HTMLAttributes, FormEvent } from "react" import { useLocation } from "react-router-dom" import { Msg, StdFee } from "@terra-money/terra.js" import { useWallet } from "@terra-money/wallet-provider" import { TxResult } from "@terra-money/wallet-provider" import { UserD...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
<reponame>krubenok/berry<gh_stars>0 import {Writable} from 'stream'; import {Configuration} from './Configuration'; import {Report, MessageName} from './Report'; import {Locator} from './types'; export type StreamReportOptions = { configuration: Configuration, footer?: boolean, json...
<gh_stars>0 // Replace with your API key for OpenWeatherMap, see http://openweathermap.org/appid const API_KEY = ''; const TOO_MANY_REQUESTS = 429; const TIMEOUT = 2000; export function pollWeatherData(cityName: String): Promise<WeatherData> { if (!API_KEY) { return getExampleWeatherData(cityName); } cityNa...
/* * 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, Version 2.0 (the "License"); you may * not u...
import _ = require('lodash'); import medichelpers = require('../helpers/medic-helper'); import helpers = require('../helpers/model-helper'); import consts = require('../helpers/constants'); import { Modifier, ModelApiInterface, PreprocessApiInterface } from "deus-engine-manager-api"; const PILL_TIMEOUT = 2 * 60 * 60 *...
<reponame>SudoDotDog/Brontosaurus-Mint /** * @author WMXPY * @namespace Brontosaurus_Mint_Routes_Account * @description Register */ import { AccountController, EMAIL_VALIDATE_RESPONSE, GroupController, IAccountModel, IGroupModel, INamespaceModel, INTERNAL_USER_GROUP, IOrganizationModel, OrganizationController, PAS...
import React from 'react' import { get } from 'lodash' import { CellProps } from 'react-table' import { CustomColumn, ColumnStyle, DefaultColumnFilterOptions, Element } from './interfaces' import { DateTimePicker } from '../DateTimePicker' const DefaultColumnFilter = ({ column: { filterValue = '', setFilter, filterP...
<filename>packages/core/src/apdu/mcu/dfu.ts<gh_stars>0 import { executeCommand, executeAPDU } from '../execute/execute'; import Transport from '../../transport'; import { commands } from "../execute/command"; import { target } from '../../config/target'; import { Promise as promise } from 'bluebird'; import { SDKError ...
<gh_stars>0 import * as sourceMap from "source-map"; import * as fs from "fs"; import * as path from "path"; import { buildGraph } from "./graph_builder"; import { SourceFiles, LineHitMap, SourceTrack, SourceToBundles, LogLevels, BundleToSources, SourceFileLinesGroupedByCommonBundle, PerFileStats, Sou...
import ts from 'typescript' import { BaseService } from './base' import * as path from 'path' import stdLibs from './node-libs.json' import { without, uniq } from 'lodash-es' import { ContentMessage, PositionInfo } from '../../types' const defaultLibName = '//lib.d.ts' function getFullLibName(name: string) { return...
import * as React from 'react' import { classes } from '@framework/Globals' import * as Constructor from '@framework/Constructor' import { TypeContext } from '@framework/TypeContext' import { getSymbol } from '@framework/Reflection' import { FormGroup } from '@framework/Lines/FormGroup' import { ModifiableEntity, Lite,...
<gh_stars>0 import { timer, Subject } from 'rxjs'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { debounce, filter, tap, takeUntil, take } from 'rxjs/operators'; import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, OnDestroy, OnInit, ViewChild } from '@angular/core'; import ...