text stringlengths 3.08k 15.5k |
|---|
import WebSocket from 'ws'
import { v4 } from 'uuid'
import { Connection, Exchange, Message, Queue } from 'amqp-ts'
import { RegistryMessage } from '@shapeshiftoss/common-ingester'
import { Logger } from '@shapeshiftoss/logger'
const BROKER_URI = process.env.BROKER_URI as string
if (!BROKER_URI) throw new Error('BROK... |
#!/usr/bin/env node
// This is a bin file, so console logs are ok.
/* eslint-disable no-console */
import yargs from 'yargs';
import jscodemod, {defaultPiscinaLowerBoundInclusive} from './';
import _ from 'lodash';
import 'loud-rejection/register';
import getLogger from './get-logger';
import {CodemodMetaResult} from... |
<filename>packages/resources/src/Script.ts
import path from "path";
import { Construct } from "constructs";
import * as cdk from "aws-cdk-lib";
import * as lambda from "aws-cdk-lib/aws-lambda";
import { App } from "./App";
import { Function as Fn, FunctionProps, FunctionDefinition } from "./Function";
import { Permissi... |
/***************************************************************************************************************************
* @license *
* Copyright 2017 Coinbase, Inc. ... |
<filename>src/commands/dev/eval.ts
import db from "@db";
import Command from "@cmd/Command";
import Logger from "@util/Logger";
import EmbedBuilder from "@util/EmbedBuilder";
import ComponentHelper from "@util/components/ComponentHelper";
import Eris from "eris";
import {
Internal,
Request,
Strings,
Time,
Utility
... |
import ConstantQData from './ConstantQData';
import ConstantQ from './ConstantQ';
import Complex from './Complex';
import { Subject, Observable } from 'rxjs';
import { Pitch } from './Pitch';
/**
* the return message type along with data
*/
export type ConstantQMessage =
// completion is [0,1] and displays as a... |
import { createConfiguration, IMidwayContainer } from '@midwayjs/core'
import { __decorate } from 'tslib'
import { Inject, Controller, Get, Post, Provide } from '@midwayjs/decorator'
import { als } from '../runtime'
import { ApiFunction, ApiModule } from '../types/common'
import { ServerRouter } from '../router'
import... |
import * as t from '@babel/types';
import * as parser from '@babel/parser';
import { join, basename } from 'path';
export function findExportDefaultDeclaration(programNode) {
for (const n of programNode.body) {
if (t.isExportDefaultDeclaration(n)) {
return n.declaration;
}
}
}
export function findIm... |
<reponame>JaPNaA/JaPNaA.github.io
import AppEvents from "./AppEvents";
import BaseApp from "../BaseApp";
import IAppViews from "../../types/app/IAppViews";
import StateData from "../../types/StateData";
import View from "../../view/View";
import ViewDescriptor from "../../types/view/ViewDescriptor";
import createAppSta... |
<gh_stars>1-10
import axios, {AxiosInstance, AxiosRequestConfig} from "axios";
import {Service as MiddlewareService} from 'axios-middleware';
import _ from 'lodash';
import {Container, Service} from 'typedi';
import {EventBus} from './event-bus';
import {
Activity,
ActivityDescriptor,
ActivityDescriptorResponse,... |
import * as React from "react";
import { focusOnElement, getFocusableElements } from "../../helpers/focus";
import { GeneralBtnProps } from "./utils";
type DivProps = React.HTMLAttributes<HTMLDivElement>;
type HeadingProps = React.HTMLAttributes<HTMLHeadElement>;
interface DialogContext extends DivProps {
/** The di... |
<filename>src/configuration/configurationProvider.ts<gh_stars>0
import { ValidateFunction } from 'ajv';
import Ajv from 'ajv';
import yaml from 'js-yaml';
import { promises as fs } from 'fs';
import { Rule, RuleLogic, ScopeName } from '../types';
import Check from '../check';
import { camelize, capitalize, dasherize,... |
import {Component, EventEmitter, Input, Output} from '@angular/core';
import {DataFilterPipe} from './datafilter.pipe';
export class TwoListItem {
constructor(public displayName: string, public colId: string, public selected: boolean, public visible: boolean) {
}
}
export class SelectedItem {
constructor(... |
<gh_stars>0
import { T } from './abi';
import { ERC1155, ERC20 } from './contracts';
import { EventType, Method, View } from './solidity';
import { verifyTypedDataV4 } from './typed-verify';
import { EIP1193Provider, ProviderRpcError } from './eip1193';
import { AddEthereumChainParameter, Address, Block, BlockHash, Bl... |
<filename>src/SpectrumViewer.ts<gh_stars>1-10
import * as FunctionCurveViewer from "function-curve-viewer";
export interface Component {
frequency: number; // frequency in Hz
amplitude: number; } // amplitude in dB
export interface ViewerSt... |
import classNames from 'classnames';
import { useSession } from 'next-auth/react';
import Link from 'next/link';
import { ReactNode, useRef } from 'react';
import toast, { Toast } from 'react-hot-toast';
import { ToDate } from '@/components/common';
import {
CloseOutlined,
CommentOutlined,
CompassOutlined,
Like... |
import { EntityProps, EventPropSet } from './types';
import EventTypes, { GHEvent, GHEventPayloadIteree } from './eventTypes';
import {
EntityPaths,
GithubEventType,
IndexedResultDef,
resultDef,
} from './eventTypes';
const _ = require('lodash');
// fixUrl: utility function that lets us correct API urls return... |
<gh_stars>1-10
/// <reference path="../ace.d.ts" />
var assert: any;
var exports = {
name: "ACE range.js",
"test: create range": function () {
var range = new AceAjax.Range(1, 2, 3, 4);
assert.equal(range.start.row, 1);
assert.equal(range.start.column, 2);
assert.equal(range... |
import { FairArtworks_fair } from "v2/__generated__/FairArtworks_fair.graphql"
import { BaseArtworkFilter } from "v2/Components/v2/ArtworkFilter"
import { ArtworkFilterContextProvider } from "v2/Components/v2/ArtworkFilter/ArtworkFilterContext"
import { updateUrl } from "v2/Components/v2/ArtworkFilter/Utils/urlBuilder"... |
import { ActionContext } from 'vuex';
import { DataflowState } from '@/store/dataflow/types';
import { RootState } from '@/store';
import { resetDataflow } from '@/store/dataflow/helper';
import { serializeDiagram, deserializeDiagram } from '@/store/dataflow/helper';
import store from '@/store';
import {
axiosPost,
... |
<gh_stars>0
import simpleGit, {SimpleGit} from "simple-git";
import {concat, map} from "@softwareventures/array";
import wrap = require("wordwrap");
import {FsStage, InsertResult} from "../fs-stage/fs-stage";
import {
bindAsyncResultFn,
failure,
mapAsyncResultFn,
mapResultFn,
Result,
success,
... |
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requi... |
// simple radar
export const radarData = [
{ product: "Product 1", feature: "Price", score: 60 },
{ product: "Product 1", feature: "Usability", score: 92 },
{ product: "Product 1", feature: "Availability", score: 5 },
{ product: "Product 1", feature: "Performance", score: 85 },
{ product: "Product 1", feature: "Qu... |
/* eslint import/no-webpack-loader-syntax: off */
import { LatLng } from "leaflet";
import * as d3 from "d3";
import binarySearch from "binary-search";
import * as THREE from "three";
import { isMobile } from "mobile-device-detect";
import { CountryDensities, Densities, Density } from "./country-densities";
import { F... |
import React, { useEffect, useState } from 'react';
import clsx from 'clsx';
import { makeStyles } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';
import Drawer from '@material-ui/core/Drawer';
import Box from '@material-ui/core/Box';
import AppBar from '@material-ui/core/AppBa... |
<filename>src/core/utilities/partitioning/bin.ts
// eslint-disable-next-line no-unused-vars
import { Rectangle, MathExt } from "../../../lib/maths.js";
// eslint-disable-next-line no-unused-vars
import IPartionable from "./IPartitionable.js";
import Partitioner from "./partitioner.js";
interface IPoint {
x: number;
... |
import React, { useState, useEffect, useMemo } from 'react'
import cn from 'classnames'
import Slugger from 'github-slugger'
import { useRouter } from 'next/router'
import Link from 'next/link'
import { Heading } from 'nextra'
import { useActiveAnchor } from './misc/active-anchor'
import { getFSRoute } from './utils/g... |
<filename>index.ts
import io from 'socket.io-client'
import del from 'del'
import * as sandbox from 'simple-sandbox'
import * as lzma from 'lzma-native'
import { exec } from 'child_process'
import { join, resolve } from 'path'
import fs, { promises as fsp } from 'fs'
const terminationHandler = () => process.exit()
pr... |
import 'reflect-metadata';
import { IncomingHttpHeaders } from 'http';
import { injectable } from 'inversify';
import { Mock } from '../mock/mock';
import { MockResponse } from '../mock/mock.response';
import { Preset } from '../preset/preset';
import { IState } from './Istate';
import { GlobalState } from './globa... |
<reponame>Siteimprove/alfa
import { Applicative } from "@siteimprove/alfa-applicative";
import { Functor } from "@siteimprove/alfa-functor";
import { Serializable } from "@siteimprove/alfa-json";
import { Mapper } from "@siteimprove/alfa-mapper";
import { Monad } from "@siteimprove/alfa-monad";
import { Option } from "... |
// tslint:disable no-console
import execa from 'execa';
import isRunning from 'is-running';
import * as path from 'path';
import yargs from 'yargs';
yargs.describe('report', 'Write out test reports.').default('report', false);
yargs.describe('coverage', 'Write coverage to .nyc_output.').default('coverage', false);
yar... |
<gh_stars>0
import {
AnyURI,
Assertion,
Bool,
Curie,
Float,
IRI,
IsoDateTime,
Localized,
ObjectValue,
Text,
Uint16,
Uint32,
Uint8,
Vector2d,
Vector2dFloat,
Vector3d,
Vector3dFloat,
VectorColorRGBA
} from './schema/dalmatian_generated';
import { range } from './utils';
// tslint:disa... |
<reponame>yaadm/Mevi-Web-Angular
import { Component, OnInit, OnDestroy, ViewEncapsulation, Pipe, PipeTransform, ViewChild, ElementRef } from '@angular/core';
import { routerTransition } from '../../router.animations';
import { DatabaseService, firebaseConfigDebug, ModalConfirmComponent } from '../../shared';
import ... |
<reponame>lifeworldb/blueprint
import { Rect } from '../../model/Rect'
import CommonUtils from '../../utils/CommonUtils'
import { VNode } from 'vue/types/umd';
export type DockDirection = 'vertical'|'horizontal'|'unknow';
/**
* 停靠容器数据
*/
export class DockData {
public constructor() {
this.uid = CommonUtils.g... |
<gh_stars>0
import {
Command,
logOutput,
Package,
runTopologically,
ValidationError,
} from '@lerna-lite/core';
import pMap from 'p-map';
import { getFilteredPackages, npmRunScript, npmRunScriptStreaming, Profiler, timer } from './lib';
import { ScriptStreamingOption } from './models';
export function facto... |
import {
GraphQLID,
GraphQLObjectType,
GraphQLString,
GraphQLInt,
GraphQLFloat,
GraphQLInterfaceType,
} from "graphql"
import { connectionDefinitions } from "graphql-relay"
import { amount } from "schema/fields/money"
import date from "schema/fields/date"
import { CreditCard } from "schema/credit_card"
imp... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<reponame>Arcanorum/monorepo-typescript-next-the-sane-way
import { ItemWeightClasses } from '@dungeonz/configs';
import { ItemCategories } from '@dungeonz/types';
import { error } from '@dungeonz/utils';
import Pickup from '../../entities/classes/Pickup';
import Player from '../../entities/classes/Player';
import { Ent... |
import * as React from 'react';
import { v4 as uuid } from 'uuid';
import Dropdown from '@synerise/ds-dropdown';
import Icon, { SearchM } from '@synerise/ds-icon';
import Tabs from '@synerise/ds-tabs';
import { focusWithArrowKeys, useOnClickOutside } from '@synerise/ds-utils';
import Result from '@synerise/ds-result';... |
<reponame>marbin274/farmacia-retail-saleor-storefront
import { aunaBrand5, aunaOrangeOnSale } from '@styles/constants';
import { WINDOW_EXISTS } from '@temp/@sdk/consts';
import { IDistrictSelected } from '@temp/@sdk/repository';
export const BASE_URL = '/';
export const PRODUCTS_PER_PAGE = 8;
export const PRODUCTS_PE... |
import * as path from 'path';
import * as vscode from 'vscode';
import { getNonce } from './util';
import * as xmljs from "xml-js";
/**
* Provider for Resx editors.
*
* Resx editors are used for `.resx` files, which are just json files.
* To get started, run this extension and open an empty `.resx` file in VS Code... |
import type * as util from "./util";
type Local = { _tag: "close" | "select" | "offer" };
type SelectConts = { [label: string]: (v: never) => Local };
type OfferConts = [string, [{}, Local]];
type Global = { [role: string]: Local };
type Globals = { [label: string]: [{}, Global] };
// Select<"a", { l1: (v: V1) => L1... |
/*
* Copyright 2018 Google Inc. 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 applicable... |
import * as React from "react"
import { Textfit } from "react-textfit"
import { ident } from "../../../../Data/Function"
import { fmap, fmapF } from "../../../../Data/Functor"
import { consF, elem, flength, intercalate, List, map, replicateR, toArray } from "../../../../Data/List"
import { fromMaybe, mapMaybe, Maybe, m... |
/**
* Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or ... |
<gh_stars>0
import { google, Auth } from 'googleapis';
import keep, { PromiseKeeper } from '@resolute/promise-keeper';
export type InputTypes = boolean | string | number | null;
export type RowArray = string[];
export type RowObject = { [key: string]: string };
export type InputRowArray = InputTypes[];
export type ... |
import classNames from "classnames";
import * as React from "react";
import {ChangeEvent, ReactNode, useCallback, useMemo} from "react";
import {getSignalId, IApplicationState, ISignalInstanceState, ISignalState, SignalId} from "../store/state";
import {connect} from "react-redux";
import List from "../components/List"... |
import Plot from "react-plotly.js";
import { Text, Box } from "grommet";
import { WeatherRespType, MetaRespType } from "./queries";
import { WindRecord, Meta, PrecRecord, TmpRecord } from "./types";
import { windBins, rainBins, COLORS } from "./constants";
import { getMean, getStdMean, getWindName, getTmpColor } from "... |
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core';
import { SelectionModel } from '@angular/cdk/collections';
import { MatTableDataSource } from '@angular/material/table';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import { Top... |
import React, { FC } from 'react';
import styled from '../../util/styled-components';
import { Wrapper, WrapperType } from '../Wrapper';
import { Heading, Content, Link } from '../Text';
import { ResumePosition, Position } from './Position';
// @todo: move this to graphQL
const positions: ResumePosition[] = [
{
... |
import React from 'react'
import Helmet from 'react-helmet'
import '../styles/main.scss'
// import Prism from 'prismjs'
// import 'prismjs/plugins/custom-class/prism-custom-class'
// Prism.plugins.customClass.prefix('prism--')
// Prism.plugins.customClass.map({
// number: 'prism--number',
// })
import '../component... |
<filename>src/extension/fileDetectors/serverListDetector.ts
import * as fs from "fs";
import * as neonCore from "@cityofzion/neon-core";
import * as vscode from "vscode";
import BlockchainIdentifier from "../blockchainIdentifier";
import DetectorBase from "./detectorBase";
import IoHelpers from "../util/ioHelpers";
im... |
<filename>viewer/packages/cad-geometry-loaders/src/sector/SectorLoader.test.ts
/*!
* Copyright 2021 Cognite AS
*/
import * as THREE from 'three';
import { AutoDisposeGroup } from '@reveal/utilities';
import { asyncIteratorToArray, createCadModelMetadata, generateV8SectorTree } from '../../../../test-utilities';
imp... |
<gh_stars>0
// To run these tests, simple use `ava dist/pluginTest.js`
// We aliased this command to a NPM script pluginTest.
//import ChatServer from './server.js';
import ChatClient from '../app/client.js';
// import { ClientMessage, pluginImplementation, ServerMessage } from '../protocol';
import * as plugin from '... |
import cuid from 'cuid'
import fs from 'fs'
import { IncomingMessage, Server as HttpServer, ServerResponse } from 'http'
import Koa from 'koa'
import { NydusServer, NydusServerOptions } from 'nydus'
import path from 'path'
import { container, inject, instanceCachingFactory, singleton } from 'tsyringe'
import log from '... |
import * as React from 'react';
import { makeStyles } from '@fluentui/react-make-styles';
import { RSA_PSS_SALTLEN_AUTO } from 'constants';
import { Text } from '@pongoai/react-text';
import { TextField, Password } from '@pongoai/react-textfield';
import { MicrosoftLogo, GoogleLogo, FacebookLogo } from './Authenticatio... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import {FlexColumn, styled, FlexRow, Text, Glyph, colors} from '../../ui';
import React, {useRef, useState, useEffec... |
<reponame>artemv/webdriver-manager-replacement
import * as childProcess from 'child_process';
import * as fs from 'fs';
import * as loglevel from 'loglevel';
import * as os from 'os';
import * as path from 'path';
import {httpBaseUrl} from '../../../spec/server/env';
import {spawnProcess} from '../../../spec/support/h... |
<gh_stars>0
export function normalizeText(value: string): string {
return removeMultipleSpacesInRow(
removeAccents(
removeSpecialCharacters(value.trim())
)
).toLowerCase();
}
export function normalizeTechText(value: string): string {
return replaceNewLines(
removeMultip... |
<filename>src/runtime/entity-utils.ts
/**
* @license
* Copyright (c) 2019 Google Inc. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* Code distributed by Google as part of this project is also
* subject to an additional IP rights gran... |
import * as React from "react";
import BrowseFiles, { SelectedFile, FileError } from "react-butterfiles";
import { css } from "emotion";
import classNames from "classnames";
import { FormElementMessage } from "@webiny/ui/FormElementMessage";
import Image from "./Image";
import ImageEditorDialog from "./ImageEditorDialo... |
<gh_stars>0
import { app, users, config } from './config'
import { LiveTCP } from 'bilibili-live-ws'
import axios, { AxiosRequestConfig } from 'axios'
import { appendFile } from 'fs'
import { execSync } from 'child_process'
app.on('message', async (session) => {
console.log(
`${new Date().toLocaleTimeString()} $... |
import { find, flatten } from 'lodash'
import { ConfigConfig, ConfigType } from './types'
import { parseForwardingSpec, serializeForwardingSpec } from './forwarding-spec'
import { ConfigConfigSchema, ConfigSchema, HostSchema, ForwardingSchema } from './schema'
import { HostConfig } from '../host'
import { ForwardingCon... |
import { NextPage } from 'next';
import React from 'react';
import { GoMarkGithub as GithubIcon, GoMail as MailIcon } from 'react-icons/go';
import { FaLinkedinIn as LinkedinIcon } from 'react-icons/fa';
import { AiOutlineReddit as RedditIcon } from 'react-icons/ai';
import { motion } from 'framer-motion';
import tai... |
import { Component, ReactNode, createElement } from "react";
import { NativeModules, Text, TextStyle, ViewStyle, View, TextInput } from "react-native";
import { NativePinInputProps } from "../typings/NativePinInputProps";
import { Style, flattenStyles } from "./utils/common";
import { commonStyles, circleStyles, numKey... |
<reponame>googleinterns/gpay-group-buy<gh_stars>1-10
/**
* Copyright 2020 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... |
<filename>src/assignTags.ts<gh_stars>1-10
import * as vscode from 'vscode';
import * as fs from 'fs';
import * as path from 'path';
export class AssignTagsProvider implements vscode.TreeDataProvider<TreeItem> {
private _onDidChangeTreeData: vscode.EventEmitter<TreeItem | undefined | void> = new vscode.EventEmitter<T... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may no... |
<gh_stars>1-10
import type {
LaunchOptions,
BrowserConnectOptions,
BrowserLaunchArgumentOptions,
} from 'puppeteer'
import type {
WhatsAppClientType,
ClientOptions,
} from '../schema/whatsapp-type.js'
import {
Client as WhatsApp, LocalAuth,
} from '../schema/whatsapp-interface.js'
import WhatsAppBase from ... |
<gh_stars>0
import * as ec2 from '@aws-cdk/aws-ec2';
import * as iam from '@aws-cdk/aws-iam';
import * as cdk from '@aws-cdk/core';
/**
* Properties for configuring Jenkins to run on EC2
*/
export interface JenkinsEc2Props {
/**
* Name of the key-pair used to SSH into the Jenkins instance
*/
readonly keyP... |
import {
Button,
Container,
Grid,
GridList,
GridListTile,
Input,
LinearProgress,
Paper,
Snackbar,
Typography,
} from '@material-ui/core';
import { green, grey } from '@material-ui/core/colors';
import { makeStyles } from '@material-ui/core/styles';
import Alert from '@material-ui/lab/Alert';
import ... |
import * as Bluebird from "bluebird";
import * as _ from "lodash";
import {
NbaGame,
NbaStat,
Question,
QuestionGroup,
ScheduledNbaAutomatedAnswer,
ScheduledNbaAutomatedQuestion,
} from "sixthman-objection-models";
import { pullTop4PlayersPerStat } from "../services/pullPredictionStats";
import... |
import { IAbstractTocGardener } from "../../common/type";
import { IStyleSheet } from "style-sheet";
import { XmlComponent } from "docx-ts";
import { TocGardener } from "./toc";
import { ISection, PlainText, Element } from "xml-util";
import { TitleGardener } from "./title";
import { EntityGardener } from "./entity";
i... |
<gh_stars>10-100
import { TimeboxEvoRequest } from "../requests";
import { number2HexString, int2hexlittle } from "../helpers/utils";
import { ColorInput, TinyColor } from "@ctrl/tinycolor";
import { TimeboxEvoMessage } from "../messages/message";
interface DisplayTextOpts {
text?: string,
paletteFn?: Function,
... |
import DragAndDropHandler from '../../../pluginUtils/DragAndDropHandler';
import DragAndDropHelper from '../../../pluginUtils/DragAndDropHelper';
import TableEditFeature from './TableEditorFeature';
import { createElement, normalizeRect, VTable } from 'roosterjs-editor-dom';
import { KnownCreateElementDataIndex, Rect }... |
<gh_stars>10-100
import Resource, { ListResponse } from './index'
import axios, { AxiosPromise, AxiosRequestConfig, AxiosResponse, AxiosError, AxiosInstance } from 'axios'
export * from 'axios'
export interface RequestConfig extends AxiosRequestConfig {
useCache?: boolean
query?: any
}
export interface Resou... |
<gh_stars>10-100
import DeckGLLayer from 'maptalks.deckgl';
import { ScatterplotLayer, ArcLayer } from '@deck.gl/layers';
// @ts-ignore
import { BrushingExtension } from '@deck.gl/extensions';
import { scaleLinear } from 'd3-scale';
import Base from '../base';
const DATA_URL =
'https://raw.githubusercontent.com/visg... |
<gh_stars>1-10
import { Options } from 'vue-class-component';
import { ComponentBase, EJComponentDecorator, getProps, allVue, gh } from '@syncfusion/ej2-vue-base';
import { isNullOrUndefined } from '@syncfusion/ej2-base';
import { TreeMap } from '@syncfusion/ej2-treemap';
import { ColorMappingsDirective, ColorMappingD... |
<gh_stars>0
import EventEmitter from 'eventemitter3'
import get from 'lodash/get'
import { stringify } from 'qs'
import WebSocket from 'ws'
import { ChatEvents, Commands, Capabilities } from '../twitch'
import Queue from '../Queue'
import createLogger, { Logger } from '../utils/logger'
import * as constants from '.... |
<reponame>borenXue/xtools_js
/**
* 文件相关函数: 文件下载、文件上传
*
* @packageDocumentation
* @module File
*/
import FileSaver from 'file-saver';
import { urlGetFileName, urlAddParams } from "./url";
import { AbortError, TimeOutError, NotSuccessError, AjaxError } from "../utils/errors";
/**
* url 请求参数对象中的 值 的格式
*/
export t... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
/* tslint:disable */
import mongoose from 'mongoose';
import path from 'path';
import Models from './models';
function seedClients() {
return [
{
name: 'Hewlett Packard Enterprise',
image: 'https://github.com/RyanCCollins/cdn/blob/master/clients/hpe.png?raw=true',
url: 'https://www.hpe.com',
... |
<reponame>opencord/xos-ui
/*
* Copyright 2017-present Open Networking Foundation
* 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 r... |
import {BoardState, BoardGameRules, PieceState} from '../BoardGame/BoardGame';
import {Position} from '../BoardGameUtils/Position';
import {ObjectMap} from '../Utils/ObjectMap';
import '../BoardGame/CheckeredBoard.css';
const WHITE = "react-boardgame__piece--color-white";
const BLACK = "react-boardgame__piece--color-... |
/**
* Copyright (c) Microsoft Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
<filename>src/xyz-values/XYZValues.ts
import {Eventful} from '@lume/eventful'
import {reactive} from '@lume/element'
import {stringToArray} from './utils.js'
export type XYZValuesArray<T> = [T, T, T]
export type XYZPartialValuesArray<T> = [T] | [T, T] | [T, T, T] // Is there a better way to make a tuplet from 1 to 3 i... |
import 'colors'
import * as tf from '@tensorflow/tfjs'
import {KNearestNeighbors} from './KNN'
import {Tensor, Rank} from '@tensorflow/tfjs'
// const strToNumberGrid = v => v.split('|').map(l => l.split('').map(Number))
const strToNumberGrid = (v: string) => v.replace(/\|/g, '').split('').map(Number)
/**
* This meth... |
/// <reference types="@neo-one/build-tools/types/e2e" />
import {
common,
Contract,
ContractABI,
ContractMethodDescriptorClient,
crypto,
RawInvokeReceipt,
scriptHashToAddress,
SmartContractDefinition,
SourceMaps,
Transaction,
UserAccountID,
} from '@neo-one/client-common';
import {
DeveloperCli... |
<reponame>catpunknet/XREngine<filename>packages/server-core/tests/services/matchmaking/match-instance.test.ts
import assert from 'assert'
import nock from 'nock'
import { FRONTEND_SERVICE_URL } from '@xrengine/matchmaking/src/functions'
import type { OpenMatchTicket } from '@xrengine/matchmaking/src/interfaces'
import... |
<gh_stars>10-100
import * as Models from '../../common/models';
import ApexDoxError from '../../common/ApexDoxError';
import Utils from '../../common/Utils';
import { IMethodMatch } from '../..';
class SeeLinkGenerator {
private static isMarkdownURL(str: string): boolean {
return /^\[.*\]\(.*\)$/.test(str... |
import { Event } from '../../events/Event';
import { CrossXMLHttpRequest } from './CrossXMLHttpRequest';
export interface ILoaderStats extends Hls.LoaderStats {
aborted: boolean;
retry: number;
loaded: number;
}
interface IStats {
trequest: number;
retry: number;
aborted?: boolean;
tfirst?: number;
tl... |
/**
* @notice Helpers for managing and displaying addresses
*/
import { CnsQueryResponse, Provider } from 'components/models';
import { utils } from '@umbra/umbra-js';
import { MAINNET_PROVIDER } from 'src/utils/constants';
import { getAddress, Web3Provider } from 'src/utils/ethers';
import { getChainById } from 'sr... |
<reponame>shopstic/k8s-fdb-helper<filename>src/actions/configure.ts
import { createCliAction, ExitCode } from "../deps/cli-utils.ts";
import { Type } from "../deps/typebox.ts";
import { loggerWithContext } from "../logger.ts";
import {
FdbDatabaseConfig,
FdbStatus,
FdbStatusProcess,
NonEmptyString,
} from "../t... |
import {
JupyterFrontEnd,
JupyterFrontEndPlugin
} from '@jupyterlab/application';
import { ICommandPalette } from '@jupyterlab/apputils';
import { LabIcon } from '@jupyterlab/ui-components';
import { ISettingRegistry } from '@jupyterlab/settingregistry';
import { ILauncher } from '@jupyterlab/launcher';
const SE... |
import {
RDF__TYPE,
RDF__NIL,
RDF__FIRST,
RDF__REST,
RDF__LIST,
XSD__DOUBLE,
XSD__INTEGER,
XSD__BOOLEAN,
XSD__STRING,
} from './constants';
import {
NamedNode,
LiteralNode,
JsonldValue,
JsonldNode,
JsonldGraph,
ItemValue,
ValidListNode,
Triple,
Config,
} from './types/general';
/**... |
<gh_stars>0
import { List } from "immutable";
import Board from "../../../../domain/model/board/Board";
import BoardId from "../../../../domain/model/board/BoardId";
import BoardType from "../../../../domain/model/board/BoardType";
import Action from "../Action";
import { createReducer } from "../createReducer";
expor... |
import { useEffect, useState, useCallback } from "react";
import NProgress from "nprogress";
import { Trash } from "react-bootstrap-icons";
import { useSelector } from "react-redux";
import {
Card,
Badge,
Row,
Col,
CardColumns,
Button,
Modal,
} from "react-bootstrap";
import dayjs from "dayjs";
import loc... |
import React, { useCallback, useRef, useMemo } from 'react'
import { useTranslation } from 'react-i18next'
import { useShallowCompareEffect } from 'react-use'
import { Tooltip } from 'antd'
import {
IBaseSelectProps,
BaseSelect,
InstanceStatusBadge,
TextWrap,
} from '../'
import { useClientRequest } from '@lib/... |
import {
Button,
ButtonGroup,
Card,
Grid,
IconButton,
makeStyles,
Paper,
Typography,
} from '@material-ui/core';
import ViewListIcon from '@material-ui/icons/ViewList';
import ViewModuleIcon from '@material-ui/icons/ViewModule';
import type { Door, DoorState } from 'api-client';
import React from 'react... |
import { memo, useRef, useState, useEffect, useCallback } from 'react'
import * as React from 'react'
import {
Box,
Container,
isCursorInRect,
getRelativeCursor,
degreesToRadians,
useDimensions,
useTheme,
useValueFormatter,
} from '@simspace/nivo-core'
import { renderLegendToCanvas } fro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.