text stringlengths 3.08k 15.5k |
|---|
<gh_stars>100-1000
import express, { Request, Response } from 'express';
import fetch from 'node-fetch';
import responseTime from 'response-time';
import compression from 'compression';
import { log, warn } from '@root/scripts/env/log';
import {
render as renderAMPArticle,
renderPerfTest as renderAMPArticlePerfTest... |
import {Comparison, Order} from "../enums";
import {ClientError} from "../errors";
import {
QueryFilter,
QueryGrowth,
QueryProperty,
QueryRCA,
QueryTopk
} from "../interfaces";
import Level from "../level";
import Measure from "../measure";
import {Drillable, Query} from "../query";
import {ensureArray, undef... |
<reponame>Grape-Labs/grape-art<gh_stars>10-100
import {
ENV_AH,
AUCTION_HOUSE_ADDRESS,
TOKEN_PROGRAM_ID,
} from './helpers/constants';
import {
Transaction,
PublicKey,
LAMPORTS_PER_SOL,
SystemProgram,
TransactionInstruction,
SYSVAR_INSTRUCTIONS_PUBKEY } from '@solana/web3.js'
import { web3 ... |
<filename>shortli-api/DatabaseManager.ts
// Lnkdto.link - Copyright (C) 2021 <NAME>
// Database Manager
// Import File System
import * as fs from "fs";
// Import MongoDB
import * as mongodb from "mongodb";
// Import DeASync
import * as deasync from "deasync";
// The MongoDB File
const mongouri = fs.readFileSync("ba... |
'use strict';
import extend from './extend';
import Evented from './ext/Evented';
import * as amdText from './text';
import { defer } from './deferredUtils';
declare var define: any;
var isAmd = (typeof(define) !== 'undefined' && define.amd),
isDojo = isAmd && define.amd.vendor === 'dojotoolkit.org',
isNode = (type... |
import { PDFFont, PDFPage } from "pdf-lib";
import { IPdfTextManager } from "../content/pdf-text-manager";
import { IFourSides } from "../size/four-sides";
import { PdfUnit, IPdfUnit } from "../size/pdf-unit";
import { IPdfTableColumn } from "./pdf-table-column";
import { IPdfTableRow } from "./pdf-table-row";
import {... |
import { Injectable } from '@angular/core';
export class Employee {
ID: number;
FirstName: string;
LastName: string;
Position: string;
BirthDate: string;
HireDate: string;
Title: string;
Address: string;
City: string;
State: string;
Zipcode: number;
Email: string;
Sk... |
import * as React from 'react';
import Maybe from 'graphql/tsutils/Maybe';
import { getHighlightGradient, Icon, IconSymbol, roundedBackground, ThemeTypes as Theme } from '@getstation/theme';
import * as classNames from 'classnames';
// @ts-ignore: no declaration file
import * as isBlank from 'is-blank';
// @ts-ignore: ... |
import * as IMAP from "imap";
import { Socket } from "net";
import { ConnectionOptions as TLSConnectionOptions, TLSSocket } from "tls";
import logger from "../logger";
import ServerConnection, { ConnectionOptions } from "./base.connection";
interface IMAPLibaryOptions {
authTimeout?: number;
autotls?: "always" | "r... |
<gh_stars>1-10
import {
NgModule,
CUSTOM_ELEMENTS_SCHEMA,
InjectionToken,
} from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { FormsModule } from "@angular/forms";
import { HttpClientModule, Http... |
<filename>src/services/BookingService.tsx
import { collection, addDoc, getDocs } from "firebase/firestore";
import AviableBookingModel from "../models/BookingModel";
import BookedModel from "../models/BookedModel";
import { getFirestore } from "@firebase/firestore";
import { initializeApp } from "firebase/app";
im... |
import * as React from "react";
import CentralIndexContext from "../handlers/centralIndex";
import { COLOR_BORDER_MAP, darkerColor } from "../../utils/colors";
/**
* Used to build up all the path elements. Does not include a display
* of the annotation name or a line connecting name to annotation
*
* one central ... |
import {Workspace, Project, Target, PathReporter,
Graph, Reporter, BuildGraphOptions, Diagnostic,
Element, BuildTargetElement, TargetElement, EnvironmentElement, TargetExportsElement
} from '../index.priv';
import * as fs from 'fs-extra';
import * as path from 'path';
const transformWithCategory = Reporter.transfor... |
<filename>src/worker-util.ts
// We should save these
//const canvas = new OffscreenCanvas(256, 256);
//const ctx = canvas.getContext("2d");
function mapboxTerrainToGrid(
png: ndarray<number>,
interval?: number,
offset?: number
) {
// maybe we should do this on the GPU using REGL?
// but that would require GP... |
import { actions } from "common/actions";
import reducer from "common/reducers/reducer";
import {
TabInstance,
TabInstanceLocation,
TabInstanceResource,
TabInstanceStatus,
QueryParams,
Action,
} from "common/types";
import { omit, size } from "underscore";
import * as urlParser from "url";
import * as query... |
<filename>cypress/integration/viewerDemo.ts<gh_stars>0
/**
* Copyright 2020 <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
... |
import React, { useCallback, useEffect, useState } from 'react';
import { makeStyles, useTheme } from '@mui/styles';
import { Backdrop, Button } from '@mui/material';
import { StandardModel } from "../../models/Standard.model";
import { IPFS_SOURCE, IPFS_SOURCE_FALLBACK, IPFS_VIDEO_SOURCE } from '../../data/constants/... |
<reponame>Blockception/BC-Minecraft-Project<gh_stars>0
import * as fs from "fs";
/**A single defintion for MCDefinitions*/
export interface Definition {
/**The definition that have been defined*/
defined: string[];
/**The definition that have to be excluded*/
excluded: string[];
}
/**The namespace that provi... |
import { Actor, ExclusiveActivator } from "skytree";
import { ElementStyle } from "@anderjason/web";
import { Observable, ObservableBase } from "@anderjason/observable";
import { Duration } from "@anderjason/time";
import { LoadingIndicator } from "..";
import { Color } from "@anderjason/color";
import { ObjectUtil } f... |
import {
AlertDialog,
AlertDialogBody,
AlertDialogContent,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogOverlay,
Badge,
Box,
Divider,
HStack,
Skeleton,
Spinner,
Stack,
Text,
Textarea,
useDisclosure,
useToast,
} from '@chakra-ui/react';
import {
CustomButton,
CustomChakraNextLin... |
import * as Path from 'path'
import * as Hapi from '@hapi/hapi'
import { AnnotationType, annotationHelper, BeanFactory, CTOR_ID, CTOR_JWEB_FILE_KEY, getObjectType, ReflectHelper, checkSupportTransition, emitBegin, emitCommit, emitRollback } from 'jbean'
import Application, { AppErrorEvent, ApplicationType } from '../a... |
import React, {Component} from "react";
import {getOffers, loadOffers, validate} from "../functions/ltc";
import {withRouter} from "next/router";
import * as queryString from "querystring";
import Breadcrumb from "@components/scss/breadcrumb";
import Loaded from "@components/scss/loaded";
import Redeemed from "@compone... |
import { expect } from 'chai'
import { Bytes32 } from '../src/Bytes32'
import { TestCases } from './opcodes/bytes32/cases'
import { TestCase } from './opcodes/bytes32/cases/helpers'
import { Address } from '../src/Address'
import { Bytes } from '../src/Bytes'
describe('Bytes32', () => {
runTestCases('add', TestCases... |
import React from 'react';
import { View, Image, ImageSourcePropType, ImageResolvedAssetSource, ViewStyle } from 'react-native';
import xmldom from 'xmldom';
import Svg, {
Circle,
Ellipse,
G,
LinearGradient,
RadialGradient,
Path,
Polygon,
Rect,
Defs,
Stop,
} from 'react-native-svg';
import { camelCa... |
// Generated from ./Python.g4 by ANTLR 4.9.0-SNAPSHOT
import { ATN } from "antlr4ts/atn/ATN";
import { ATNDeserializer } from "antlr4ts/atn/ATNDeserializer";
import { FailedPredicateException } from "antlr4ts/FailedPredicateException";
import { NotNull } from "antlr4ts/Decorators";
import { NoViableAltException } fro... |
import React, { Component } from 'react';
import styled from 'styled-components';
import { makeTimeString } from '../../business/time';
import Checkin from '../../models/Checkin';
import CheckinDetails from '../../models/CheckinDetails';
const unselectedMarkerOpacity = 0.5;
const Map = styled.div`
height: 100%;
`... |
import { Push2DisplayDriver } from './Push2DisplayDriver'
import { DISPLAY_WIDTH, DISPLAY_HEIGHT } from './Push2DisplayDriver'
import { fabric } from 'fabric'
import type { Controller } from '..';
import { chord } from '../../ChordDetection/chordStore'
import { Push2DisplayKeyboard } from './Push2DisplayKeyboard';
impo... |
import React, { PureComponent, CSSProperties, ReactElement } from 'react';
import classnames from 'classnames';
import PropsType from './PropsType';
import TabPanel, { TabPanelProps } from './TabPanel';
import Carousel from '../carousel';
import { getTransformPropValue, getPxStyle, scrollLeftTo } from './util/index';
... |
<reponame>xcesiv/examma-ray
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
import { dirname } from "path";
import { sum } from "simple-statistics";
import { Exam } from "../core";
import { ExamGrader } from "../ExamGrader";
import { GradedExam } from "./assigned_exams";
import { GradedStats } ... |
import '@testing-library/jest-dom/extend-expect'
import React from 'react'
import {fireEvent, render, waitFor} from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import {AddressBook} from './AddressBook'
import {expectNoValidationErrorOnSubmit, createWithProviders} from '../common/test-he... |
<filename>src/ThreeVectorTileLayer.ts
import * as maptalks from 'maptalks';
import * as THREE from 'three';
import { pushQueue, outQueue, getQueues, nextLoop } from './queue/TileDataQueue';
import { isGeoJSONPolygon, isGeoJSONLine, spliteGeoJSONMulti, isGeoJSONPoint, getGeoJSONCoordinates } from './util/GeoJSONUtil';
i... |
/* eslint-disable @typescript-eslint/no-empty-function */
import * as React from 'react';
import {
descriptorButtonGroup,
descriptorTag,
} from '../../../../stylesheets/generic.scss';
import { ButtonGroup } from '../../../inputs/button-group';
import { GenderEnum } from '../../being/inputs/Gender';
import { Pro... |
import * as React from "react";
import { createComponent } from "reakit-system/createComponent";
import { createHook } from "reakit-system/createHook";
import { useForkRef } from "reakit-utils/useForkRef";
import { useIsomorphicEffect } from "reakit-utils/useIsomorphicEffect";
import { useLiveRef } from "reakit-utils/u... |
import { Injectable } from '@angular/core';
import defaultsDeep from 'lodash.defaultsdeep';
import { BehaviorSubject } from 'rxjs';
import { StateService } from './state.service';
export type Resolution = {
name: string;
width: number;
height: number;
alt?: number;
};
export const RESOLUTIONS: Resolution[] = ... |
<filename>index.ts
/**
* Matches a JSON object.
*/
export type JsonObject = { [key: string]: JsonValue };
/**
* Matches a JSON array.
*/
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface JsonArray extends Array<JsonValue> {}
/**
* Matches any valid JSON value.
*/
export type Jso... |
<filename>src/uniprotkb/types/commentTypes.ts<gh_stars>0
import { Evidence } from './modelTypes';
import { Absorption, KineticParameters } from '../adapters/functionConverter';
import { FeatureData } from '../components/protein-data-views/UniProtKBFeaturesView';
import { Interactant } from '../adapters/interactionConve... |
<reponame>safarishi/anywhere
import iconStyle from './icon'
let mainStyle = `
* {
margin: 0;
padding: 0;
outline: 0;
}
body {
padding: 80px 100px;
font: 13px 'Helvetica Neue', 'Lucida Grande', 'Arial';
background: #ece9e9 -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#ece9e9));
background: #ec... |
import { makeAutoObservable } from 'mobx';
import WebSocket from 'isomorphic-ws';
import { Action, ActionRequestParams, Asset, CurrencySymbol, Log, Wallet } from 'types';
import { cutString, getEndpointRequestBody } from 'utils/helpers';
import { callEndpointForWebSocket as callEndpoint, pab } from 'utils/pab';
const ... |
<reponame>frysztak/parser-ts<filename>examples/command.ts
/**
* In this example, we utilize the combinators from `parser-ts` to demonstrate one possible implementation
* of parsing command line statements into a structured abstract syntax tree (AST). Our parser will be
* capable of handling a command, named argument... |
import { useState, useCallback, useEffect } from 'react';
import { ATTO, FEMTO, MICRO, MILLI, NANO, NONE, PICO, PrefixedNumber } from '../logion-chain/numbers';
import { Coin, SYMBOL, transfer } from '../logion-chain/Balances';
import Gauge from './Gauge';
import Button from './Button';
import Icon from './Icon';
imp... |
<filename>packages/event-pub-sub/src/eventPubSub.service.ts
import { EventNamingStyle, EventSubscription, PubSubService, Subscription, titleCase, toKebabCase } from '@slickgrid-universal/common';
export interface PubSubEvent<T = any> {
name: string;
listener: (event: T | CustomEventInit<T>) => void;
}
export clas... |
<gh_stars>0
/// <reference path='./index.d.ts' />
import { Parser, DomHandler, DomUtils } from 'htmlparser2';
import { parse, Declaration, Node } from 'postcss';
import * as React from 'react';
import { taglike, join } from 'taghelper';
/**
* Special object needed for adding `key` props to child React nodes.
*/
exp... |
import React, { FunctionComponent, useCallback, useContext, useEffect, useMemo, useState } from 'react';
import { Box, Button, Flex, Heading, IconButton, Image, Stack, Text } from '@chakra-ui/core';
import useFetch from 'use-http/dist';
import NextLink from 'next/link';
import { Party, Track } from '../../interfaces';
... |
<reponame>ethossoftworks/redux-router<filename>src/route.ts
import { RouterLocation } from "./location"
import { withRouterContext } from "./context"
import { RouterState } from "./reducer"
export type RouteMap = Record<string, RouteItem>
export type RouteItem<T extends any[] = any[]> = ((...args: T) => RouteItemData)... |
<gh_stars>1-10
/*
* Licensed to the Kassenärztliche Bundesvereinigung (KBV) (c) 2020 - 2021 under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The KBV licenses this file
* to you under the Apache Lice... |
<gh_stars>1-10
import {
iBeltSides,
iBeltTypes,
iChestTypes,
iEnabledConditionOperators,
iInserterTypes,
iPumpSides,
iRefillFuelTypes,
} from "./interfaces"
export const mirrorXOffset = -3
export const websiteUrl = "https://burnysc2.github.io/Factorio-Train-Station-Blueprint-Creator"
expo... |
import { Transforms, Editor, Path, Element } from "slate"
import { MyTransforms } from "./MyTransforms"
import { MyEditor } from "./MyEditor"
import { Node } from "slate"
import { range } from "lodash"
import {
emptyVerseWithVerseNumber,
textNode,
verseNumber,
} from "../../transforms/basicSlateNodeFactory"... |
import {getRepository} from "typeorm";
import * as express from "express";
import {Request, Response} from "express";
import {Player} from "../entity/Player";
import {Position} from "../entity/Position";
import {Match} from "../entity/Match";
import {MatchDetail} from "../entity/MatchDetail";
import {validate} from "cl... |
<reponame>CuberL/easy-oas3-parser
import * as _ from 'lodash';
import { SupportedDataTypeNames, ObjectGetFunction, OAS3NumberSchema, OAS3StringSchema, OAS3ArraySchema, OAS3ObjectSchema } from './types';
import { parseAllOf } from './parseAllOf';
import { parseOneOf } from './parseOneOf';
import { parseObject } from './... |
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
import { path, ts } from "./mod.deps.ts";
import { ScriptTarget } from "./types.ts";
export function outputDiagnostics(diagnostics: readonly ts.Diagnostic[]) {
console.error(ts.formatDiagnosticsWithColorAndContext(diagnostics, {
getCanon... |
<reponame>PlayArShop/web-application<filename>src/app/game/game.component.ts<gh_stars>0
import { forEach } from '@angular/router/src/utils/collection';
import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { Http, Headers, RequestOptions } from '@angular/http';
import { contentHead... |
import { IRouter } from '@jupyterlab/application';
import { DOMUtils, ReactWidget } from '@jupyterlab/apputils';
import { LabIcon } from '@jupyterlab/ui-components';
import { Message } from '@lumino/messaging';
import { Widget } from '@lumino/widgets';
import {
QuetzFrontEnd,
QuetzFrontEndPlugin,
} from '@quetz-fro... |
<reponame>YassinEldeeb/create-prisma-generator
// Thanks for the nice guide:
// https://dev.to/antongolub/you-don-t-need-semantic-release-sometimes-3k6k
import { execSync } from 'child_process'
import fs from 'fs'
import path from 'path'
import { AuthGithub } from './utils/authGithub'
import { generateReleaseNotes } fr... |
<filename>src/index.ts
import * as commander from 'commander';
import * as fs from 'fs-extra';
import mustache from 'mustache';
import path from 'path';
import validate from 'validate-npm-package-name';
import spawn from 'cross-spawn';
let projectName: string | undefined;
async function parseArgs(): Promise<commander... |
import fs from "fs";
import path from "path";
import { CacheType, CommandInteractionOptionResolver } from "discord.js";
import { ApplicationCommandOptionTypes } from "discord.js/typings/enums";
import { ICommand } from "wokcommands";
import { data, open } from "../../data_manager";
import { setRating, ensureLadder, po... |
import React, { forwardRef, ElementType, ReactNode, ComponentProps } from 'react'
import { styled, VariantProps, CSS } from 'stitches.config'
import {
slideDownAndFade,
slideUpAndFade,
slideLeftAndFade,
slideRightAndFade
} from 'styles/keyframes'
const cssVars: CSS = {
'--popover-background': '$c... |
<filename>src/event-types.ts
/**
* Event type
*/
enum EventType {
/* Zone/User Events */
UNSEALED = 0x00,
SEALED = 0x01,
ALARM = 0x02,
ALARM_RESTORE = 0x03,
MANUAL_EXCLUDE = 0x04,
MANUAL_INCLUDE = 0x05,
AUTO_EXCLUDE = 0x06,
AUTO_INCLUDE = 0x07,
TAMPER_UNSEALED = 0x08,
TAMPER_NORMAL = 0x09,
/*... |
<reponame>vega-studio/deltav
import { RenderTarget } from "../gl/render-target";
import { Texture } from "../gl/texture";
import { divide2, scale2, Vec2, Vec4 } from "../math/vector";
import { FragmentOutputType, IColorPickingData, PickType } from "../types";
import { Surface } from "./surface";
import { IViewProps, Vi... |
import styled from '@emotion/styled';
import { useFormik } from 'formik';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { FocusEventHandler, useState } from 'react';
import { useCookies } from 'react-cookie';
import * as Yup from 'yup';
import icModalClose from 'images/modal/icModalClos... |
import {AppSelectOption, AppField, AppCallValues} from 'mattermost-redux/types/apps';
import GeneralConstants from 'mattermost-redux/constants/general';
import {Channel} from 'mattermost-redux/types/channels';
import {UserProfile} from 'mattermost-redux/types/users';
import {Oauth2App} from '../types/apps';
import {Ap... |
<gh_stars>0
import { action, computed, observable } from "mobx"
import { now } from "mobx-utils";
import { PAYOUTS, REEL, RESULT_DELAY, SPIN_DURATION } from "./consts"
import { GamePhase, ReelShifts, Symbol } from "./types";
const trans = (b: any[][]) => {
for (var d = b.length, a = 0; a < d; a++)
for (var... |
<gh_stars>1-10
//tslint:disable:no-unsafe-any
import {Component, EventEmitter, Input, Output} from '@angular/core';
import {AlertController, ModalController, PopoverController} from '@ionic/angular';
import {LiabilityServiceType} from 'sneat-shared/models/types';
import {DtoLiability} from 'sneat-shared/models/dto/dto-... |
<reponame>bludnic/lisk-sdk
/*
* Copyright © 2021 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copi... |
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable react/jsx-key */
import React, { cloneElement, isValidElement, useCallback } from 'react'
import { TriangleDownIcon, TriangleUpIcon } from '@chakra-ui/icons'
import { chakra, Table, Tbody, Td, Th, Thead, Tr, useBreakpointValue } from '@chakra-ui/... |
import React, { useState } from 'react';
import styled from 'styled-components';
import { storeMnemonicAndSeed } from '../../utils/wallet-seed';
import {
getAccountFromSeed,
DERIVATION_PATH,
} from '../../utils/walletProvider/localStorage.js';
import { useSolanaExplorerUrlSuffix } from '../../utils/connection';
imp... |
import { Camera } from "@mediapipe/camera_utils";
import { drawConnectors, drawLandmarks } from "@mediapipe/drawing_utils";
import {
ResultsListener,
POSE_CONNECTIONS,
NormalizedLandmarkList,
} from "@mediapipe/pose";
import {
useRef,
useState,
useCallback,
useEffect,
forwardRef,
useImperativeHandle,
... |
<filename>sdk/typescript/libraries/botbuilder-solutions/src/middleware/setSpeakMiddleware.ts<gh_stars>1-10
/**
* Copyright(c) Microsoft Corporation.All rights reserved.
* Licensed under the MIT License.
*/
import { Middleware, SendActivitiesHandler, TurnContext } from 'botbuilder';
import { Activity, ActivityTypes,... |
<reponame>MeeyPioneer/mey-sdk-js
import { MiddlewareConsumer } from './middleware';
import KeyManager from './managers/key-manager';
import AccountManager from './managers/account-manager';
import { TransactionTracker, TransactionManager } from './managers/transaction-manager';
import NameManager from './managers/name-... |
<gh_stars>10-100
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Router } from '@angular/router';
import { Observable, merge, of, ReplaySubject, forkJoin } from 'rxjs';
import { catchError, map, startWith, switchMap, takeUntil, finalize } from 'rxjs/operators';
import { NzModalService, } from 'ng... |
import * as THREE from 'three'
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader';
import { Color, Mesh, Vector3 } from 'three';
import Client from './client/client';
import LightDirectional from './renderer/lightDirectional';
im... |
<gh_stars>0
/// <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: "Interne fout." },
{ ... |
<reponame>kdomasze/litebox<filename>src/typescript/litebox.ts<gh_stars>0
interface Options {
enableEscClose?: boolean;
enableExitButton?: boolean;
fadeInTime?: number;
fadeOutTime?: number;
[key: string]: any;
}
class Litebox {
private litebox: HTMLElement | null = null;
private defaultOpti... |
type KeyValue<T> = {[key: string]: T};
type Profile = any;
export interface CoamClientOptions {
baseUrl?: string;
timeout?: number;
accessToken?: string;
retryAttempts?: number;
retryDelayInMs?: number;
retryOnForbidden?: boolean;
debugFunction?: (message?: any, ...optionalParams: any[]) => void;
erro... |
import ws from 'ws';
import merge from 'lodash.merge';
import {spawn, ChildProcessWithoutNullStreams} from 'child_process';
import fs from 'fs';
import http from 'http';
import {join} from 'path';
import stream from 'stream';
import winston from 'winston';
import {logger} from './Notifications'
import { Stream... |
<reponame>unicsmcr/unics_social_api<gh_stars>1-10
/* eslint-disable @typescript-eslint/no-dynamic-delete */
import { load, EnvConfig, getConfig, Environment } from '../../../../src/util/config';
// Valid fixture
const fixture1: [Record<string, string>, EnvConfig] = [
{
PORT: '8000',
LOG_ERRORS: 'true',
HOST: 'h... |
import { IAsset, URLLoaderDataFormat, ParserBase, ByteArray, URLRequest } from '@awayjs/core';
import { Image2D } from '../image/Image2D';
import { ExternalImage2D } from '../image/ExternalImage2D';
import { ImageUtils } from '../utils/ImageUtils';
import { DefaultGraphicsFactory } from '../factories/DefaultGraphicsFa... |
import { BsModalService } from 'ngx-bootstrap/modal';
import { Component, Input, OnDestroy } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { Subject, Subscription } from 'rxjs';
import { UserData } from 'app/auth/shared';
import { takeUntil } from 'rxjs/operators';
im... |
<reponame>ConnectionMaster/vscode-languageserver-node
/* --------------------------------------------------------------------------------------------
* Copyright (c) TypeFox and others. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* -------------... |
import { useState, useRef, useEffect, useCallback, useMemo, ReactNode, DOMAttributes, SyntheticEvent, MutableRefObject, MouseEvent } from 'react'
import { createPortal, findDOMNode } from 'react-dom'
import useSSR from 'use-ssr'
type HTMLElRef = MutableRefObject<HTMLElement>
type CustomEvent = {
event?: SyntheticEve... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------... |
<reponame>amelierosser/medium
import { mat4 } from 'gl-matrix';
import Camera from '../cameras/Camera';
import OrthographicCamera from '../cameras/OrthographicCamera';
import PerspectiveCamera from '../cameras/PerspectiveCamera';
import * as GL from './GL';
import Scene from './Scene';
import * as UniformBuffers from '... |
/**
* Simple Class Helper: making class management more convenient, more clean, more easy
* Api Draft
* import { createBemHelper } from './classHelper';
* const helper = createBemHelper({
* prefix: 'ohu-',
* elementJoin: '__',
* modifierJoin: '--',
* });
* // BlockContext
* let btnClass = helper.block(... |
import React, { useState } from 'react';
import * as ReactDOM from 'react-dom';
import styled from 'styled-components';
import { theme } from './theme';
import { useReplicant } from 'use-nodecg';
import { Team } from '../types/team';
import { Match, Matches, NewMatch } from '../types/matches';
import {
Grid,
Select... |
import { decode } from 'html-entities';
import needle, { NeedleOptions } from 'needle';
import { DuckbarResponse, DuckbarVideoResult } from '../types';
import { ensureJSON, getVQD, queryString, SearchTimeType } from '../util';
import { SafeSearchType } from '../util';
/** The types of video definition. */
export enum ... |
import { useState, useCallback, useMemo } from 'react';
import { NetWorthSubcategoryList } from '../subcategory-list';
import * as Styled from './styles';
import { CrudList } from '~client/components/crud-list';
import {
FormFieldColor,
FormFieldSelect,
SelectOptions,
FormFieldText,
} from '~client/components/... |
import type { FC } from 'react'
import type { User } from 'firebase/auth'
import { useState, useEffect, useRef } from 'react'
import { useAuthUser } from '@react-query-firebase/auth'
import { GoogleAuthProvider, signInWithPopup, signOut } from 'firebase/auth'
import dayjs from 'src/lib/dayjs'
import { syncData } from ... |
<reponame>IBMStreams/vscode-ide<filename>src/webviews/base.ts
import * as path from 'path';
import {
Disposable,
ExtensionContext,
Uri,
ViewColumn,
WebviewOptions,
WebviewPanel,
window
} from 'vscode';
export enum WebviewType {
CloudPakForDataAppService = 'cloudPakForDataAppService',
CloudPakForDataJ... |
<filename>enterprise-modules/sparklines/src/sparkline/columnSparkline.ts
import { BandScale } from '../scale/bandScale';
import { LinearScale } from '../scale/linearScale';
import { Group } from '../scene/group';
import { Line } from '../scene/shape/line';
import { Selection } from '../scene/selection';
import { Series... |
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import {
$el,
bind,
getBooleanTypeAttr,
getNumTypeAttr,
getStrTypeAttr,
removeAttrs,
setCss,
setHtml
} from '../../dom-utils';
import { CssTransition, _arrow, _Popper } from '../../mixins';
import { type, validComps } from '..... |
import { useInput } from 'ink';
import { useState, useEffect, useCallback } from 'react';
import { SyncClient, SyncDocument, SyncListItem } from 'twilio-sync';
import { User } from '../context/user';
import {
Group,
ChannelData,
UserChannel,
Message,
MessageData,
ChatState,
} from '../types/chat';
import {
... |
<reponame>blockchainassets/solidity-tools
import debugModule from "debug";
const debug = debugModule("decoder-core:decode:calldata");
import read from "../read";
import * as DecodeUtils from "truffle-decode-utils";
import { Types, Values, Errors } from "truffle-decode-utils";
import decodeValue from "./value";
import ... |
/*
Copyright 2019 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 in writing, software
distri... |
<filename>scripts/CrowdInvest.deploy.bsc.ts
import { ethers, waffle } from "hardhat";
import { expect, assert } from "chai";
import { CROWDInvest } from "../typechain/CROWDInvest";
import { CROWDToken } from "../typechain/CROWDToken";
import { BigNumber, BigNumberish } from "@ethersproject/bignumber";
import { SignerW... |
import * as React from 'react';
import Svg, { SvgProps, Path, Mask, G, Rect, Defs, Pattern, Use } from 'react-native-svg';
function SvgAfganistan(props: SvgProps) {
return (
<Svg
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
fill="none"
viewBox="0 0 40 40"
... |
import {
IAbstractedEvent,
IAdminAuth,
IClientAuth,
IClientAuthProviders,
IDatabaseConfig,
ISerializedQuery,
SDK,
IAdminApp,
IClientApp,
ApiKind,
Database,
ISdk,
} from '../index';
/**
* The public contract that any SDK client must meet to behave
* like an _abstracted database_.
*/
export in... |
<reponame>vunguyentuan/vscode-postcss
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-------------------------... |
<filename>src/Material/Uniforms/UserValueRegister.ts<gh_stars>0
import Texture2D from "../../Resource/Texture2D";
import UniformProxy from "../../Resource/UniformProxy";
import IMaterialArgument from "../IMaterialArgument";
import Material from "../Material";
import Pass from "../Pass";
import PassProgram from "../Pass... |
<gh_stars>10-100
import {
ANSWER_CANCEL,
CliArgs,
CliFlags,
Log,
MarketplacePlugin,
PluginCommand,
PluginContext,
printHighlight,
printSubHeadline,
printUserInput,
prompt,
promptOverwrite,
ProjectCommand,
TADA,
Task,
wait,
WRENCH,
Configurable,
} from '@jovotech/cli-core';
import { c... |
import React, {useCallback, useEffect, useState} from "react";
import PageContent from "../../../src/app/components/page/PageContent";
import {useRouter} from "next/router";
import {INTERNAL_SERVER_ERROR, NOT_FOUND} from "http-status-codes";
import Error from "next/error";
import {CircularProgress, Theme} from "@materi... |
export const cfopCompra = ['1102', '2102'];
export const cfopDevolucao = ['1202', '2202'];
export const cfopDevolucaoCompra = ['5202'];
export const cfopVenda = ['5102', '6102', '6108'];
export const cfopConsignacao = ['1917', '2917'];
export const cfopCompraConsignacao = ['1113'];
export const cfopVendaConsignacao = [... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.