text stringlengths 3.08k 15.5k |
|---|
import { Request, Response } from "@opennetwork/http-representation";
import { Glob, IOptions } from "glob";
import inflight from "inflight";
import li from "li";
import { combineForResponse, getType, notAccepted } from "./combine";
import { Fetcher } from "./fetcher";
import { readdir } from "./readdir";
interface Gl... |
<gh_stars>0
import caller from "../services/caller";
import evaluate from "../utils/evaluate";
import d from 'debug';
const debugHookUpdateStats = d('micro:hooks:update-stats');
// noinspection JSUnusedGlobalSymbols
export default ({o, on, model: {statTargets = {}}, dir}) => async (result, query, operation: string|un... |
// 交叉类型 用&
// const mergeFunc = <T, U>(arg1: T, arg2: U): T & U => {
// let res = {} as T & U
// res = Object.assign(arg1, arg2)
// return res
// }
// mergeFunc({ a: 'a' }, { b: 'b' }) // 可以访问到属性a/b,但访问不到其它没有的
// 联合类型 用 |
// const getLengthFunc = (content: string | number): number => {
// if (typeof content ==... |
<reponame>Idnan/mjml-cms<filename>src/theme.ts
import { theme } from '@chakra-ui/core';
import { ColorHues } from '@chakra-ui/core/dist';
// Color Creator function
const createColor = (objRange: string[]): ColorHues => {
let obj = {
50: '',
100: '',
200: '',
300: '',
400: '',
500: '',
600... |
<reponame>nathanm1011/IIS.WebManager
import { Injectable, Inject } from '@angular/core';
import { Router } from '@angular/router';
import { HttpConnection } from './httpconnection';
import { ApiConnection } from './api-connection';
import { ConnectionStore } from './connection-store';
import { NotificationService } fro... |
import {Alfred, Feature} from '../api';
import {debounce, querySelectorAll} from '../utils';
interface HighlightConfig {
highlightStyle?: string;
excludeSelf?: boolean;
excludeParents?: string[];
noHighlightWithin?: string[];
excludeUrlPatterns?: string[];
minCharSize?: number;
}
class SelectionHighlighte... |
import { PopulationChartReactComponent } from 'app/data-browser/views/genomic-view/components/population-chart.component';
import { reactStyles } from 'app/utils';
import { ClrIcon } from 'app/utils/clr-icon';
import { prepVariantPopulationDetails } from 'app/utils/constants';
import { Spinner } from 'app/utils/spinner... |
import { Irgba, TFormat, TParser, TInput, Ihsla, Ihexa, TPlugin, TNumArr } from "./types";
import { IColorMaster } from "./types/colormaster";
import { HueColors } from "./enums/colors";
import { adjustHue, clamp, rng, round } from "./utils/numeric";
import { RGBtoHEX, RGBtoHSL } from "./conversions/rgb";
import { HSLt... |
import { Component } from 'react'
import { inject, observer } from 'mobx-react'
import { AppStore } from '../../pages/_app.store'
import { DashboardPageStore, Place, LoadingStatus } from '../../pages/dashboard.store'
import { DashboardCumulativeGraphComponent } from './visualizations/cumulative-graph'
import { Das... |
import InputBase, { IInputBase, ICharacter } from './InputBase';
import { InputOptions } from '../settings/detectModel';
import { IDefaultFraction } from '../settings/defaultSettings';
export interface IFractionInput extends IInputBase { }
export default class FractionInput<T> extends InputBase<InputOptions<IDefault... |
<filename>app/components/action.worker.ts
import * as fs from 'fs-extra';
import * as path from 'path';
import { walk } from 'walk';
import { escapeRegExp, merge } from 'lodash';
import { ISearchStatus, IState } from 'types/main';
export type IWorkerData =
{
type: 'work';
state: IState;
rep... |
/*
Copyright 2021 The Matrix.org Foundation C.I.C.
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 ... |
<filename>src/util.ts
import { homedir } from 'os';
import { promises as fs } from 'fs';
import { createRequire } from 'module';
import { existsSync as exists } from 'fs';
import { parse, join, resolve } from 'path';
import { error } from './log';
// @ts-ignore - Node 14.14
export const rmdir = fs.rm || fs.rmdir;
expo... |
import * as ViewModels from "../../Contracts/ViewModels";
import * as Entities from "./Entities";
import * as Constants from "./Constants";
import * as DateTimeUtilities from "./QueryBuilder/DateTimeUtilities";
// For use exclusively with Tables API.
enum DataTypes {
Guid = 0,
Double = 1,
String = 2,
Binary =... |
<reponame>SukachevAlex/html-reporter
import axios from 'axios';
import {assign, filter, flatMap, set, cloneDeep, compact} from 'lodash';
import actionNames from './action-names';
const {QUEUED, UPDATED} = require('../../constants/test-statuses');
import {isSuiteFailed, isAcceptable} from './utils';
import {ISuite} from... |
<gh_stars>0
/**
* Sets up a central system, that can communicate with charge points
*/
import WebSocket from "ws";
import { IncomingMessage, createServer, Server } from "http";
import { Request, RequestHandler, Response } from "../messages";
import { ChargePointAction, chargePointActions } from "../messages/cp";
impo... |
/** *****************************************************************************
* Copyright 2020-2020 Exactpro (Exactpro Systems Limited)
*
* 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 a... |
<reponame>iconify-design/iconify
/* eslint-disable @typescript-eslint/no-unused-vars */
import type { QueryModuleResponse } from '@iconify/api-redundancy';
import type {
IconifyAPIIconsQueryParams,
IconifyAPIQueryParams,
IconifyAPIModule,
} from '../modules';
import type { IconifyJSON } from '@iconify/types';
/**
... |
<filename>generator/generator.ts
// Link Generator
//
//
const fs = require('fs');
//
// Assemble HTML
//
// HTML functions
function create_bookmark({
title,
title:description,
uri:link,
iconuri:image
}) {
//HTMl goes here
let bookmark: string =
`<li class=\"collection-item avatar\"... |
import urljoin from "url-join";
import {AggregatorType, DimensionType} from "../enums";
import {
AdaptedCube,
AdaptedDimension,
AdaptedHierarchy,
AdaptedLevel,
AdaptedMeasure,
AdaptedMember,
AdaptedProperty
} from "../interfaces";
import {ensureArray, switchCase} from "../utils";
import {
TesseractCube,... |
<reponame>MapColonies/vector-tiles-rasterizer
import { get } from 'config';
import { Logger } from '@map-colonies/js-logger';
import SphericalMercator from '@mapbox/sphericalmercator';
import { inject, singleton } from 'tsyringe';
import sharp from 'sharp';
import { Pool } from 'advanced-pool';
import { Map, RenderPar... |
import { fromTokenDecimals, toTokenDecimals, toWei } from '@dexdex/utils/lib/units';
import BN from 'bn.js';
import * as obmath from './ob-math';
import { computePrice, Order } from './order';
import { maxVolume, maxVolumeEth } from './order-selection';
let nextId = 1;
let TokenDecimals = 10;
beforeEach(() => {
nex... |
/**
* Copyright (c) 2021 Matronator
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
export type Hook = {
fn: Function,
args: any[],
}
export class Hooks {
onAjax: Array<Hook> = []
onInit: Array<Hook> = []
addInitHook(hook: Hook): Hook|null {
r... |
<gh_stars>0
/**
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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://... |
import { PropertyHandlerProvider } from "./providers/property-handler-provider";
import { FormControlHandler } from "./property-handlers/form-control";
import { ItemBuilderHandler } from "./property-handlers/item-builder";
import { ChildBuilderHandler } from "./property-handlers/child-builder";
import { IfHandler } fro... |
<filename>src/index.ts
export {default as theme} from './theme'
export {get as themeGet} from './constants'
export {default as BaseStyles} from './BaseStyles'
export type {BaseStylesProps} from './BaseStyles'
export {default as ThemeProvider, useTheme, useColorSchemeVar} from './ThemeProvider'
export type {ThemeProvide... |
<filename>library/helper.ts
import { Shipment } from "@/api/index";
import { AddressType, CommodityType, CustomsType, ParcelType, PresetCollection, RequestError } from "@/library/types";
const DATE_FORMAT = new Intl.DateTimeFormat("default", { month: 'short', day: '2-digit' });
const DATE_TIME_FORMAT = new Intl.DateT... |
/*
* 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 React, { useCallback, useState, useMemo, useEffect } from 'react';
impo... |
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule } from '@angular/http';
import { NgModule, ErrorHandler } from '@angular/core';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { InAppBrowser } from '@ionic-native/in-app-browser';
import { SplashScreen } ... |
import * as Domain from "@app/domain";
import { SideNavItem } from "@app/component";
import * as path from "path";
import { FilePathObject, InjectionMethod, Page } from "@app/interface";
import { QueryParams } from "@app/infra";
const urljoin = require("urljoin");
type UpdateKeyFunction = (key: string) => Promise<voi... |
import { Plugin, Compiler, Stats, compilation } from 'webpack';
import { Source, RawSource } from 'webpack-sources';
import * as path from 'path';
import * as jsdom from 'jsdom';
import 'offensive/assertions/fieldThat/register';
import 'offensive/assertions/aString/register';
import 'offensive/assertions/Undefined/re... |
/** @jsx jsx */
import { h, Fragment } from 'preact';
import { useState, useRef } from 'preact/hooks';
import { jsx, css } from '@emotion/react';
import classnames from 'classnames';
import { observer } from 'mobx-react-lite';
import deepmerge from 'deepmerge';
import type { RecommendationController } from '@searchspr... |
/**!
* @author <NAME>
*
* Copyright (C) 2021 logcation
*/
import React from 'react';
import {
Box,
Flex,
Text,
AspectRatio,
Center,
Spinner,
useToast,
} from '@chakra-ui/react';
import {IoCameraSharp, IoVideocamOff, IoReloadOutline} from 'react-icons/io5';
import QrReader from './QrReader';
import {c... |
import { BaseComponent, BaseComponentWithConnector, BaseComponentPlus } from 'react-vextensions';
import { User } from 'Store/firebase/users/@User';
import { Row, Column } from 'react-vcomponents';
import Moment from 'moment';
import { ScrollView } from 'react-vscrollview';
import { Link, PageContainer, Observer } from... |
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {ComputeTextAlternative} from './compute_text_alternative';
import {Context} from './context';
import {AccnameOptions} from './options';
import {hasTagName, isHTMLElement} from './util';
// Input types that imply role 'tex... |
const env = process.env['NODE_ENV'] || 'development';
import path from 'path';
import fs from 'fs';
import { Command } from 'commander';
import pkg from '../package.json';
import projectConfig from './config/project.settings.json';
import { Main, MainOpts, DateRange, StravaConfig } from './main';
import { readJson, Di... |
<filename>packages/adapter-components/src/client/pagination.ts
/*
* Copyright 2021 Salto Labs 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.apa... |
// adapted from https://github.com/fproulx/shc-covid19-decoder/blob/main/src/shc.js
const jsQR = require("jsqr");
import {SHCReceipt, SHCVaccinationRecord} from "./payload";
import {getVerifiedIssuer} from "./issuers";
import {registerPass} from "./passphoto-common";
import {v4 as uuid4} from 'uuid';
import {Payload} ... |
<filename>packages/PubChemApi/src/pubchem.ts
import * as ui from 'datagrok-api/ui';
import * as DG from 'datagrok-api/dg';
import {anyObject, paramsType, pubChemIdType, pubChemSearchType, urlParamsFromObject} from './utils';
const pubChemBaseURL = 'https://pubchem.ncbi.nlm.nih.gov';
const pubChemRest = `${pubChemBaseU... |
/*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
<reponame>NNNaix/react-typescript-boilerplate
import { resolve } from 'path';
import { Configuration, ContextReplacementPlugin } from 'webpack';
import WebpackBar from 'webpackbar';
import FriendlyErrorsPlugin from 'friendly-errors-webpack-plugin';
// import WebpackBuildNotifierPlugin from 'webpack-build-notifier';... |
import { createNanoEvents } from 'nanoevents';
import {
TModuleClass,
TModuleConstructorMap, TModuleCreator, GetModuleInstanceFor,
TModuleLocatorType,
TProviderFor,
} from './interfaces';
import { generateId } from './utils';
import { Provider, ProviderOptions } from './provider';
let currentScope: Scope | nul... |
import React from 'react';
import { ClassElement, Multiclassing } from 'models/class';
import { Parser, mainRenderer } from 'utils/mainRenderer';
import DangerousHtml from 'components/DangerousHtml/DangerousHtml';
const ClassBase = ({ cls }: { cls: ClassElement }) => {
// HP/hit dice
const hdEntry = {
toRoll: ... |
import styled from "styled-components";
import * as React from "react";
import AutoSizer from "react-virtualized-auto-sizer";
import { DataEditor, DataEditorProps, GridCellKind, GridColumn, Theme } from "@glideapps/glide-data-grid";
import faker from "faker";
import { useCollapsingGroups, useColumnSort, useMoveableColu... |
/* eslint-disable */
import {
ASN1Element as _Element,
ASN1TagClass as _TagClass,
OPTIONAL,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
CertPolicyId,
_decode_CertPolicyId,
_encode_CertPolicyId,
} from "../CertificateExtensions/CertPolicyId.ta";
impor... |
import Head from 'next/head';
import React from 'react';
import { Toaster } from 'react-hot-toast';
import 'tailwindcss/tailwind.css';
import '../styles/global.css';
import 'slick-carousel/slick/slick-theme.css';
import 'slick-carousel/slick/slick.css';
import 'react-loading-skeleton/dist/skeleton.css';
import { useAut... |
import AsyncReactSelect from 'react-select/lib/Async'
import { Database, OrderBy, QueryOptions } from "../../../database/Database"
import { Expr } from 'mwater-expressions';
import { useState, useCallback, useEffect } from 'react'
import React from 'react'
import { ContextVar } from '../../blocks'
import { getOptionVal... |
<gh_stars>10-100
import { getPublic, sign } from "@toruslabs/eccrypto";
import { base64url, keccak, safeatob } from "@toruslabs/openlogin-utils";
import { PopupResponse } from "./constants";
export async function documentReady(): Promise<void> {
return new Promise<void>((resolve) => {
if (document.readyState !=... |
/// <reference path="tsd.d.ts" />
interface JQueryEvent {
trigger(name: string): void;
}
interface JQueryStatic {
event: JQueryEvent;
}
module PIC {
interface FacetValueMap {
[ID: string]: string;
}
export class Facet {
ID: string;
IDPrefix: string;
element;
... |
<reponame>LukeKoz/sfdx-pushpath
import {flags, SfdxCommand} from '@salesforce/command';
import {Messages, SfdxError} from '@salesforce/core';
import {AnyJson} from '@salesforce/ts-types';
import * as proc from 'child_process';
import * as fs from 'fs-extra';
import * as path from 'path';
import IgnoreManager from '../.... |
import * as vscode from 'vscode';
import * as vscodelc from 'vscode-languageclient';
import * as fs from 'fs';
import { GDB } from './gdb'
import { TraceCodeLensProvider } from './codelens';
import {linesFilePath } from './extension'
export interface TPID{
occurence : number
before : boolean
}
export interf... |
import { Fragment, FunctionComponent, h } from 'preact';
import { useLayoutEffect, useState } from 'preact/hooks';
import { Blacklist } from './blacklist';
import { sendMessage } from './messages';
import { PathDepth } from './path-depth';
import { Dialog } from './shared/dialog';
import { TextWithLinks } from './share... |
//// react
import React, {useReducer, createContext, useContext} from 'react';
//// language
import {useIntl} from 'react-intl';
//// storage
import AsyncStorage from '@react-native-community/async-storage';
import {
SettingsActionTypes,
INITIAL_SETTINGS,
SettingsState,
SettingsContextType,
SettingsAction,
... |
<filename>vscode-extension/src/lib/Git.ts
import { exec } from "child_process";
import { Uri } from "vscode";
import { LogLevel, output, Output } from "../features/Output";
import { PropertyBag } from "./PropertyBag";
/**
* Represents a branch info with local and remote tracking info:
* - Local branch that tracks a ... |
import React, { useEffect, useMemo } from "react";
import styled from "@emotion/styled";
import {
createTable,
getCoreRowModel,
getPaginationRowModel,
useTableInstance,
} from "@tanstack/react-table";
import Axios from "axios";
import { useRouter } from "next/router";
import dayjs from "dayjs";
import { FormsDe... |
/// <export-interface path="jannesen.language.ts"/>
/// <language code="nl"/>
import * as $J from "jc3/jannesen";
export const translateError = [
{ errclass: "MessageError", translator: (err:Error) => err.message },
{ errclass: "InvalidStateError", translator: "Internal error." },
{ errclass: ... |
// NOTE: Taken from Node source and modified. Here's the license for that:
// Copyright Joyent, Inc. and other Node contributors.
//
// 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... |
import AlertStripe from 'nav-frontend-alertstriper';
import RadioPanelGruppe from 'nav-frontend-skjema/lib/radio-panel-gruppe';
import * as React from 'react';
import { FormattedHTMLMessage, InjectedIntlProps, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { Dispatch } from 'redux';
impor... |
<filename>script/src/util.ts<gh_stars>0
import { Currency } from "./currency";
import { Country } from "./country";
const wtf = require("wtf_wikipedia");
export enum WIKIPEDIA_PAGE {
COUNTRY_LIST = 58502940,
CURRENCY_LIST = 15403
}
/**
* Returns Currency object enhanced with isoCountries field, an array of Coun... |
<gh_stars>0
import { EventEmitter } from "events";
import { ICandle } from "exchange-service";
import moment from "moment";
import { ObjectID } from "mongodb";
import connect from "../connect";
import { BotServer } from "../server";
import { ExchangePaperService } from "./ExchangePaperService";
interface IBalanceItem ... |
<reponame>sadasant/vscode-jupyter<filename>src/platform/common/constants.ts<gh_stars>0
export const PYTHON_LANGUAGE = 'python';
export const MARKDOWN_LANGUAGE = 'markdown';
export const JUPYTER_LANGUAGE = 'jupyter';
export const NotebookCellScheme = 'vscode-notebook-cell';
export const PYTHON_UNTITLED = { scheme: 'unt... |
import React, { Component, ReactNode, ReactElement } from "react";
import { View, TextStyle, ViewStyle, StyleSheet, TouchableOpacity, RefreshControl, SectionListData, FlatList } from "react-native";
import { Text, ListItem, SearchBar } from "react-native-elements";
import { Container } from "inversify";
import { sort ... |
import type { Stack } from '../internal/Stack'
import type { _A } from '../prelude'
import { identity } from '../function'
import { makeStack } from '../internal/Stack'
import { tuple } from '../internal/tuple'
export const EvalTypeId = Symbol.for('@principia/base/Eval')
export type EvalTypeId = typeof EvalTypeId
ex... |
import React, { FunctionComponent, Suspense, useEffect, useState } from 'react'
import { useAppDispatch, useAppSelector } from 'redux/hooks'
import { useForm } from 'react-hook-form'
import { selectTyper } from 'components/server/redux/notifications/notifications.slice'
import { selectCurrentChannel } from 'components... |
<reponame>EduVault/sdk-js
import { PrivateKey, ThreadID } from '@textile/threaddb';
import { EduVault, LoginRedirectQueries } from '../index';
import { parseQueries } from '../api/helpers';
import { decryptAndTestKey } from '../utils';
import { decrypt, encrypt } from '../utils';
// import { ulid } from 'ulid';
expor... |
<reponame>codedread/carve
import { EditorHost } from '../editor-host.js';
import { SimpleActionTool } from './tool.js'
import { ToolbarButton } from '../toolbar-button.js';
import { DEFAULT_DRAWING_STYLE, DrawingStyleChangedEvent } from '../drawing-style.js';
import { ChangeAttributeCommand } from '../commands/change-a... |
import { Link } from "gatsby"
import React, {
useState,
useEffect,
useContext,
useRef,
SetStateAction,
Dispatch,
} from "react"
import { StaticImage } from "gatsby-plugin-image"
import styled from "styled-components"
import { FaSearch, FaFacebookF, FaBars } from "react-icons/fa"
import { useClickAway } from... |
import { useState, MouseEvent, useEffect } from "react";
import {
Box,
Collapse,
Container,
Grid,
Divider,
List,
ListItem,
ListItemIcon,
ListItemText,
ListSubheader,
makeStyles,
CircularProgress,
} from "@material-ui/core";
import clsx from "clsx";
import { FiArrowDown, FiArrowUp } from "react-icons/fi";
... |
/*
* Copyright 2019 ShipChain, 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... |
<gh_stars>1-10
/*!
* Source https://github.com/manniwatch/manniwatch Package: client-ng
*/
import { Component, Directive, Input } from '@angular/core';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import * as dateFns from 'date-fns';
import { DepartureListItemComponent } from './d... |
import React, { useState } from 'react';
import {
Bar,
BarChart,
Line,
LineChart,
ReferenceLine,
ResponsiveContainer,
Tooltip,
TooltipFormatter,
XAxis,
YAxis
} from 'recharts';
import { useGlobal } from 'reactn';
import {
getLastYears,
getMonth,
getMonthName,
getS... |
<reponame>sandtrap-monitor/sandtrap
import * as vm from "vm";
import * as fs from "fs";
import * as path from "path";
import * as acorn from "acorn";
import * as walk from "acorn-walk";
import { couldStartTrivia } from "typescript";
export class SandTrap {
Context: any;
Contextify: IContextify;
Decontext... |
/** Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applicab... |
import * as nearley from "nearley";
import * as path from "path";
import * as rules from "./grammar/index.ne";
import { FuncTransformContext, Plugin } from "./plugin";
import stdlib from "./stdlib";
import * as btfn from "./token-defs";
import { getEntryOut, simpleCall, feedStream } from "./utils";
import {
transform... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { EnContactMatcher, ContactMatcherConfig, ContactFields,
EnPlaceMatcher, PlaceMatcherConfig, PlaceFields } from "../../../ts/matchers"
import Soundex from "./soundex";
interface TestElement<Element> {
/**
... |
<gh_stars>1-10
/// <reference types="emscripten" />
import { Transform } from 'stream';
import SpeexWasm from './speex_wasm';
interface EmscriptenModuleOpusEncoder extends EmscriptenModule {
_speex_resampler_init(nbChannels: number, inRate: number, outRate: number, quality: number, errPointer: number): number;
_s... |
import { DeviceCodec, CodecApp, C8YData, DownlinkData, MicroserviceSubscriptionService, DeviceOperation } from 'lora-codec-interface';
import { Client, IManagedObject } from '@c8y/client';
import { Request, Response, NextFunction } from "express";
import { CustomCodec } from './CustomCodec';
import { DeviceOperatio... |
<reponame>tencentyun/vscode-tencent-scf
import * as vscode from "vscode";
import * as pt from "path";
import { promisify } from "util";
import * as fs from "fs";
import Base from "./ReactPanel";
import { deploy, invoke, getConfig, getProvider } from "./cli";
import {
Service,
InvokeResponse,
ServerlessRe... |
import * as flashpoint from 'flashpoint-launcher';
import { readFileSync, writeFileSync, existsSync } from 'fs';
import path = require('path');
class GameLaunch {
creaDate: Date;
gameName: string;
constructor(gameName: string) {
this.creaDate = new Date();
this.gameName = gameName;
}
}... |
import React from 'react';
import {StyleSheet, ListRenderItemInfo, FlatList, View, Animated} from 'react-native';
import {RootState} from "@/models/index";
import {connect, ConnectedProps} from "react-redux";
import BookCover from "./Item/BookCover";
import {ModalStackNavigation, RootStackNavigation} from "@/navigator/... |
<reponame>NotNinja/html.md
/*
* Copyright (C) 2022 neocotic
*
* 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... |
import { IComponentOptions, IController, IScope, IQService, ITimeoutService, IRootScopeService, IPromise, element } from 'angular';
import * as _ from 'underscore';
import { reportException } from '../exceptions';
import { isPhonePortrait } from '../mediaQueries';
import { queuedAction } from '../inventory/action-queue... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import {AttributeWithCacheKey, createAttributeWithCacheKey} from '../../../attribute-with-cache-key';
import {Graph} from '../../../graph';
import {OperatorImplementation, OperatorInitialization} from '../../../operators';
... |
/*
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 moment from "moment";
import * as request from "request-promise-native";
import { Readable } from "stream";
import WebSocket from "ws";
const BASE_URL = "https://api.hitbtc.com/api/2/";
const WS_ADDRESS = "wss://api.hitbtc.com/api/2/ws";
interface ICandle {
time: string;
open: number;
high: number;
low... |
/*
* Copyright (c) 2021, Oracle and/or its affiliates.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0,
* as published by the Free Software Foundation.
*
* This program is also distributed with certain software (includin... |
import React from 'react'
import { iNotification, iNotificationCustomType } from 'src/typings'
import { ERROR } from 'src/utils/constants'
import { NOTIFICATION_TYPE } from 'src/utils/enums'
const isNullOrUndefined = (object: any) => object === null || object === undefined
const isString = (object: any) => typeo... |
import getClient from "../Client.js";
import {
Answer,
Config,
PlayerEvent,
RoomEvents,
Types
} from "../../../index.js";
import {
reset
} from "../forms/index.js";
import {
hideElement,
showElement
} from "../forms/methods.js";
import {
translate
} from "../index.js";
const view = document... |
import fs from 'fs'
import globby from 'globby'
import path from 'path'
if (module.parent === null) {
const [func, arg1, arg2] = process.argv.slice(2)
if (func === 'create') create(arg1)
else if (func === 'check') process.exit(check(arg1, arg2 === 'fix'))
else if (func === 'update') update()
else console.err... |
import { gql } from "@apollo/client";
import { CloudIcon, UploadIcon } from "@heroicons/react/outline";
import clsx from "clsx";
import Button from "components/Button";
import Combobox from "components/forms/Combobox";
import { useFilesetRoles } from "libs/dataset";
import {
AccessmodFilesetRoleCode,
AccessmodProje... |
<gh_stars>0
/* eslint-disable @typescript-eslint/naming-convention */
import { Project, ProjectConfig } from "./Project";
import {
loadWeb3ApiManifest,
loadBuildManifest,
manifestLanguageToTargetLanguage,
} from "../helpers";
import { intlMsg } from "../intl";
import { Web3ApiManifest, BuildManifest } from "@we... |
import React, { FormEvent, useContext, useEffect, useReducer, useRef, useState } from 'react';
import { COUNTRY_WITH_POSTAL_CODE, deepEqual, isNone } from '@/lib/helper';
import AddressAutocompleteInput from '@/components/generic/address-autocomplete-input';
import InputField from '@/components/generic/input-field';
im... |
import _ from 'lodash'
import {linearFnFomPoints} from '../Utils/LinearFn'
import {nominalToReal} from '../Utils/NominalToReal'
import {assert, noCase} from '../Utils/Utils'
import {historicalReturns} from './HistoricalReturns'
import {
GlidePath,
TPAWParams,
tpawParamsValidator,
ValueForYearRange,
} from './TP... |
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
/* eslint-disable @typescript-eslint/no-explicit-any */
import { sendAsync, sendSync } from "./dispatch";
import * as msg from "gen/cli/msg_generated";
import * as flatbuffers from "./flatbuffers";
import { assert, log } from "./util";
import { ... |
/* eslint-disable unicorn/no-useless-undefined */
import { plainToClass } from 'class-transformer';
import { ToBoolean, ToNumber, ToString, ToStringArray } from './transform.decorator';
class TransformDto {
@ToBoolean() public toBoolean01: boolean;
@ToBoolean() public toBoolean02: boolean;
@ToBoolean() public ... |
import { botCache } from "../../cache.ts";
import {
addRole,
bgBlue,
bgYellow,
black,
cache,
createWebhook,
delay,
executeWebhook,
getChannelWebhooks,
Message,
} from "../../deps.ts";
import { db } from "../database/database.ts";
import { getTime } from "../utils/helpers.ts";
import { translate } fr... |
'use strict'
import parseMs from 'parse-large-ms'
import { inspect } from 'util'
import { isNumber, isString, isPlainObject,
first, last, includes, get, values, defaults } from 'lodash'
import clearRequire = require('clear-require')
// since pluralize uses a global set of rules
// I protect themselves and others fr... |
<reponame>FezVrasta/flowgen<filename>src/cli/runner.ts
import path from "path";
import fs from "fs";
import { promisify } from "./util";
import meta from "./meta";
import beautify from "./beautifier";
import compiler from "./compiler";
import defaultExporter from "./default-exporter";
import {
flowTypedExporter,
... |
import {
faWaveSquare,
faTh,
faMicroscope,
faDna,
faPills,
faPrescription,
faBullseye,
faEyeDropper,
faVenusMars,
faUser,
faVial,
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import React from "react";
import { Card, Col, Row } from ... |
// Copyright 2019-2020 the Deno authors. All rights reserved. MIT license.
import * as path from "path";
import * as fs from "fs";
import execa from "execa";
import which from "which";
import { Readable } from "stream";
export interface DenoVersions {
deno: string;
v8: string;
typescript: string;
raw: string;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.