text stringlengths 3.08k 15.5k |
|---|
import axios from 'axios';
import { createHash } from 'crypto';
import * as dotenv from 'dotenv';
import { startCase } from 'lodash';
import * as moment from 'moment-timezone';
import * as regexp from 'path-to-regexp';
import { Op } from 'sequelize';
import db from './models';
dotenv.config();
const YoutubeAPIKey = ... |
<reponame>rsksmart/zksync-wallet-vue
import { walletData } from "@/plugins/walletData";
import { ZkInBalancesList, GweiBalance, ZkInDeposits, ZKInDepositTx } from "@/types/lib";
import { BigNumber } from "ethers";
import { actionTree, getterTree, mutationTree } from "typed-vuex/lib";
import { Address, ChangePubKeyFee, ... |
<reponame>MioQuispe/sudograph<gh_stars>100-1000
import {
html,
render as litRender
} from 'lit-html';
import { createObjectStore } from 'reduxular';
import {
BlogPostsAreSaving,
BlogPostInputTextChangedEvent,
BlogPostInputTexts,
CreateBlogPostEvent,
User,
UsernameInputTextChangedEvent
} ... |
<reponame>tom-weatherhead/thaw-grammar<filename>src/languages/sasl/domain-object-model/prim-op.ts<gh_stars>0
// prim-op.ts
import { Name } from 'thaw-interpreter-core';
import { IEnvironmentFrame } from '../../../common/domain-object-model/environment-frame';
// import { ExpressionList } from '../../../common/domain-... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import Discord = require('discord.js');
import { AppDataSource } from "../appDataSource";
import { MoveSetUsage, UsageData, ChecksAndCountersUsageData, SmogonFormat } from "../smogon/usageModels";
import { ColorService } from '../pokemon/colorService';
import { FormatHelper } from '../smogon/formatHelper';
import { Pok... |
<filename>LSVRP/_Client/buses.ts
/// <reference path="@types/index.d.ts" />
import * as CefClass from "./cef"
let MathHelper = {
// Get the linear interpolation between two value
lerp: function(value1, value2, amount) {
amount = amount < 0 ? 0 : amount;
amount = amount > 1 ? 1 : amount;
... |
import Libp2p from "libp2p";
import { InMessage } from "libp2p-interfaces/src/pubsub";
import { includes, map } from "lodash";
import { get } from "lodash";
import PeerId from "peer-id";
import { useEffect, useState } from "react";
import { DidKey } from "../didkey";
import { buildNode, buildPeerId } from "../p2p";
im... |
<filename>src/main/modules/plugin/services/plugin-win.service.ts
import { WebPreferences, BrowserWindowConstructorOptions } from 'electron';
// 窗体管理
import windowService from '@/main/modules/window/window.service';
// 插件管理
import pluginService from '@/main/modules/plugin/plugin.service';
// 开发者管理
import devService f... |
import _ from "lodash";
import classnames from "classnames";
import React, { useEffect, useRef, useState } from "react";
import { Project, useProjectsQuery } from "../contexts/ApiContext";
import Loading from "./Loading";
import Link from "next/link";
interface TextWithMatchProps extends React.HTMLAttributes<HTMLSpanE... |
<gh_stars>0
import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';
import type { RootState } from '.';
import { sbankenApiBaseUrl, sbankenIdentityServerUrl } from '../config';
import keyBy from 'lodash-es/keyBy';
const SBANKEN_SLICE_NAME = 'sbanken';
const SBANKEN_CREDENTIALS_KEY = 'sbanken:... |
<filename>src/game-logic/game-loop.ts
import { assertNever, sum } from '../utils/utilities'
import { DEBUG, FPS, GameState } from './types'
// create and return the next GameState based on the current one
export const nextState = (state: GameState): GameState => {
const ns: GameState = { ...state } // newState; shal... |
<reponame>pepopowitz/eigen<filename>src/__generated__/CollectionArtistSeriesRailTestsQuery.graphql.ts
/* tslint:disable */
/* eslint-disable */
/* @relayHash 31039fa6cb52ca627156e3190bb4d32f */
import { ConcreteRequest } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type MarketingGroupType... |
import renderCss from "./detailed-summary-css.function";
import {TestCaseContext, TestContextEntityStates, TestStepContext, TestSuiteContext} from "@sakuli/core";
import {oneLine, oneLineTrim} from "common-tags";
import {
extractScreenshot,
renderCaseCritical, renderCaseErrors,
renderCaseWarning,
render... |
<reponame>CamiloTD/-unete-cli
import { load } from "yamljs";
import path, { join, resolve } from "path";
import { log, highlight, danger } from "termx";
import https from "https";
import fs from 'fs';
import * as ServerRender from './render/serve';
import { Socket } from "socket.io";
const Server = require('unete-io/... |
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
import needle from 'needle';
import * as fs from 'fs';
import cliProgress from 'cli-progress';
import logger from '../../logging';
import { Champion, Spell } from '../../types/dto';
import State from '../../state';
const log = logger('datadragon');
const realm = 'euw';... |
<filename>src/loggerCapture/logger.ts
import * as vscode from 'vscode';
import { ExtensionContext } from 'vscode';
import Utils from '../utils';
import * as zlib from 'zlib';
import * as fs from 'fs';
import * as tmp from 'tmp';
import * as nls from 'vscode-nls';
let localize = nls.loadMessageBundle();
let logFile: s... |
import * as React from "react";
import { classNames } from "../../lib/classNames";
import { getClassName } from "../../helpers/getClassName";
import { IOS } from "../../lib/platform";
import { ConfigProviderContext } from "../ConfigProvider/ConfigProviderContext";
import { SplitColContext } from "../SplitCol/SplitCol";... |
<gh_stars>0
import AwesomeDebouncePromise from 'awesome-debounce-promise';
import { STORAGE_KEY_PREFIX } from './constants';
import { IMetaService } from './services/meta';
import { InitialStateType } from './store/reducers';
import { Dictionary, SupabaseGridProps, SupaColumn, SupaTable } from './types';
import { getGr... |
<reponame>robbailey3/website<filename>apps/site/src/app/cv/cv.ts
import { IconProp } from '@fortawesome/fontawesome-svg-core';
import {
faGithub,
faLinkedin,
faStackOverflow,
faTwitter
} from '@fortawesome/free-brands-svg-icons';
export interface Location {
city: string;
country: string;
remote?: boolean... |
<filename>src/app/shared/utils/index.ts
import * as moment from 'moment';
import { UserState } from '../../core/store';
/**
* 对能改变数组的方法添加钩子函数
*
* @param {any[]} array
*/
export function bindEventForArray(array: any[], cb: Function) {
const fun = ['push', 'pop', 'sort', 'reverse', 'unshift', 'shift', 'splice'];
... |
<reponame>vlovich/miniflare<filename>packages/core/test/standards/timers.spec.ts
import { setTimeout as setTimeoutPromises } from "timers/promises";
import { DOMException, Scheduler, createTimer } from "@miniflare/core";
import {
TestInputGate,
triggerPromise,
waitsForInputGate,
} from "@miniflare/shared-test";
i... |
import * as React from 'react';
import { makeStyles, mergeClasses, shorthands } from '@griffel/react';
// eslint-disable-next-line import/no-extraneous-dependencies
import {
Calendar3DayRegular,
CalendarAgendaRegular,
CalendarChatRegular,
CalendarDayRegular,
CalendarMonthRegular,
CalendarSearchRegular,
Ca... |
import {
ColDef,
Grid,
GridOptions,
ICellRendererParams,
IDatasource,
IGetRowsParams,
RowClassParams,
ValueFormatterParams
} from '@ag-grid-community/core'
const valueFormatter = function (params: ValueFormatterParams) {
if (typeof params.value === 'number') {
return '£' + params.... |
import { Breadcrumbs, makeStyles, Typography } from "@material-ui/core";
import Alert from "components/Alert";
import CircularProgress from "components/CircularProgress";
import {
CalendarIcon,
CouchIcon,
EmailIcon,
LocationIcon,
} from "components/Icons";
import { useCommunity } from "features/communities/useC... |
import { isReserved } from './keywords';
import * as Token from './parser';
export type InfixOperator =
| '+'
| '-'
| '*'
| '/'
| '='
| '<>'
| '<'
| '<='
| '>'
| '>='
| 'and'
| 'or'
| 'is';
export type PrefixOperator = '+' | '-' | 'not';
export enum Kind {
INFIX,
PREFIX,
VALUE,
NAME... |
<gh_stars>1-10
import * as m from "mithril";
import * as moment from "moment";
let momentrange = require("moment-range");
import * as d3 from "d3";
import BudgetContext from "../data/budgetcontext";
import Expense from "../expenses/expense";
import Rate from "../rates/rate";
import formatCurrency from "../utils/currenc... |
import {
CacheConfig,
FetchFunction,
GraphQLResponse,
Observable,
RequestParameters,
Uploadable,
UploadableMap,
Variables,
} from 'relay-runtime';
import { Sink } from 'relay-runtime/lib/network/RelayObservable';
export interface BatchConfig {
enabled: boolean;
timeoutMs?: number;
shouldRequestBe... |
import {
INDENT,
Indent,
IndentCacheIndex,
IndentOption,
} from "../consts/indent.ts";
const NEW_LINE = "\n";
const DEFAULT_INDENT_OPTION = Indent.Space2;
/**
* This type covers each way a **block of code** may be represented.
* A string implies the block is one line. An array of strings
* imp... |
<reponame>Lessthanfree/nusmods<filename>www/src/js/utils/ical.ts
import _ from 'lodash';
// @ts-ignore
import { EventOption } from 'ical-generator';
import { Module, ModuleCode, RawLesson, Semester } from 'types/modules';
import { ModuleLessonConfigWithLessons, SemTimetableConfigWithLessons } from 'types/timetables';
... |
<gh_stars>1-10
/**
* This file created by ./bin/gen_types
* Do not modify this file!!!!!!!!!
*/
import _type from './basic/type';
import _object from './basic/object';
import _RequestRecord from './basic/RequestRecord';
import _ResponseRecord from './basic/ResponseRecord';
import _EmptyRequestRecord from './basic/Emp... |
<reponame>Rockcookies/artisan-framework
import { ArtisanException } from '../error';
import { Constructor } from '../interfaces';
import { randomString } from '../utils/core-helper';
import { AdvisorManager } from './advisor-manager';
import {
AdvisorRegistry,
ClassRegistrationOptions,
ClassRegistry,
ConfigHolder,
... |
import {
Alert,
AlertDescription,
AlertTitle,
Box,
Button,
Flex,
FormControl, FormHelperText, FormLabel, HStack, Input, Stack, Text,
} from '@chakra-ui/react';
import { useForm, Controller } from 'react-hook-form';
import { useTranslation } from 'react-i18next';
import { InferType, object, string } from '... |
import React, { useState } from 'react';
import { Stack, Typography, Grid } from '@mui/material';
import { DialogTitleTypo, PageNumberTypo, DetailedInfoTitleTypo, DetailedInfoLabelTypo } from '../../styles';
import { PrimaryButton, SecondaryButton } from 'src/components/Buttons/styles';
import WarningTypo from '../../c... |
<reponame>a-bigelow/aws-gameservers
import { RemovalPolicy } from "aws-cdk-lib";
import { Construct } from "constructs";
import {
AmazonLinuxGeneration,
AmazonLinuxImage,
BlockDeviceVolume,
CfnEIP,
EbsDeviceVolumeType,
IInstance,
Instance,
InstanceType, ISecurityGroup,
IVpc, Security... |
import {ClamsensorTestCaseDefiner, ClamsensorVerifier, CLAMSENSOR_AUTOWIRED_TEST_MARKER} from "main"
let twoDig = (x: number) => (x > 9 ? "" : "0") + x
let threeDig = (x: number) => (x > 99 ? "" : "0") + twoDig(x)
let log = (x: string, noPrefix?: boolean) => logNoNewline(x + "\n", noPrefix)
let logNoNewline = (x: str... |
<reponame>CodeWell-fi/website
import test, { ExecutionContext } from "ava";
import * as pulumi from "@pulumi/pulumi";
import * as nw from "@pulumi/azure-native/network";
import * as auth from "@pulumi/azure-native/authorization";
import * as azureTypes from "@pulumi/azure-native/types";
import { isDeepStrictEqual } fro... |
import { Context } from 'src/ts2php/components/context';
import { Declaration } from '../types';
import * as ts from 'typescript';
import { fetchAllBindingIdents, getClosestOrigParentOfType } from '../utils/ast';
import { handleComponent } from './react/reactComponents';
import { BoundNode } from './unusedCodeEliminati... |
import { StrictMap } from "../strict-map";
import {
Binding,
Expr,
EnumBinding,
Stmt,
StructFieldValue,
TraitExpr,
TypeExpr,
} from "../ast";
import { IRStmt, IRExpr, Builtin } from "../ir";
export type Type =
| {
tag: "concrete";
name: symbol;
parameters: Type[];
// extra type-... |
<filename>src/spotcast-connector.ts
import { ConnectDevice, CurrentPlayer, Playlist, PlaybackOptions } from './types';
import { SpotifyCard } from './spotify-card';
interface Message {
type: string;
account?: string;
}
interface PlaylistMessage extends Message {
playlist_type: string;
country_code?: s... |
<reponame>carloscarvallo/WebphoneLib
import { EventEmitter } from 'events';
import * as Features from './features';
import { eqSet } from './lib/utils';
import { log } from './logger';
import * as Time from './time';
import { IMediaInput } from './types';
export interface IAudioDevice {
/**
* Unique identifier f... |
//Code generated by solts. DO NOT EDIT.
import { Address, CancelStreamSignal, ContractCodec, Event, Keccak } from '../../index';
interface Provider {
deploy(
data: string | Uint8Array,
contractMeta?: {
abi: string;
codeHash: Uint8Array;
}[],
): Promise<Address>;
call(data: string | Uint8Ar... |
<gh_stars>0
// Copyright 2018 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 a... |
<filename>src/extras/core/CurvePath.ts
import {
LineCurve,
SplineCurve,
CatmullRomCurve3,
CubicBezierCurve,
QuadraticBezierCurve,
LineCurve3,
QuadraticBezierCurve3,
CubicBezierCurve3,
ArcCurve,
EllipseCurve,
Curve,
Vector2,
} from "../..";
/** ************************************************************
*... |
<reponame>DamYash/aws-issue-triage-manager
/* eslint-disable no-control-regex */
import * as core from '@actions/core';
import levenshtein from 'js-levenshtein';
export interface IIssueData {
title?: string;
body?: string;
labels?: string[];
isValidIssueType?: boolean;
}
export interface IParameter extends ID... |
import Canvas from 'canvas'
import { CommandInteraction, MessageAttachment, Snowflake, TextChannel } from 'discord.js'
import { GMI_GUILD } from '../../lib/Config'
import { bot } from '../../lib/Discord'
import logger from '../../lib/Logger'
import { redis } from '../../lib/Redis'
import { InteractionConfig } from '../... |
import { Reducer } from 'redux';
import * as actions from './actions';
import { ActionType, getType } from 'typesafe-actions';
import { WorkingD2Rating, D2ItemReviewResponse, D2ItemUserReview } from './d2-dtr-api-types';
import { WorkingD1Rating, D1ItemReviewResponse, D1ItemUserReview } from './d1-dtr-api-types';
impor... |
<gh_stars>0
import * as JsSearch from 'js-search';
import { formattedPrefix } from '@/helpers/utils';
import { get } from '@/helpers/http';
import { Observable, of } from 'rxjs';
import { catchError, concatMap } from 'rxjs/operators';
const { getSearchMapPath } = require('../../../utils');
const { dataMapDir } = requi... |
import { Hidden } from "@material-ui/core";
import React, { Component } from "react";
import { defineMessages, FormattedMessage, InjectedIntlProps, injectIntl } from "react-intl";
import { connect } from "react-redux";
import { Dispatch } from "redux";
import { IUserRole } from "../../common/models/authentication/... |
<gh_stars>1-10
import { Dictionary, BillStatus } from '@/typings'
export interface PermissionConfig {
action: string[]
page: { check: string[], edit: string[] }
fields: { hide: string[], edit: string[] }
}
export interface CommonState {
v_moduleData: Object
v_activeName: string
v_disabled: Boolean
v_btn... |
import vm from "vm";
import type { JestEnvironment } from "@jest/environment";
import { LegacyFakeTimers, ModernFakeTimers } from "@jest/fake-timers";
import type { Circus, Config, Global } from "@jest/types";
import { CachePlugin } from "@miniflare/cache";
import { BindingsPlugin, CorePlugin, MiniflareCore } from "@mi... |
import { gql } from "@apollo/client/core";
import { LanguageCode } from "@aws-sdk/client-transcribe";
import { AudioElementBlob, AWSJobStatus, VideoElementBlob } from "@clowdr-app/shared-types/build/content";
import AmazonS3URI from "amazon-s3-uri";
import assert from "assert";
import path from "path";
import R from "r... |
<gh_stars>100-1000
// Copyright 2018 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 l... |
import { Application, Builder, Enums, Screen, Utils } from '@nativescript/core';
import {
autoPagingIntervalProperty,
bounceProperty,
CarouselCommon,
CarouselItem,
CarouselUtil,
finiteProperty,
indicatorColorProperty,
indicatorColorUnselectedProperty,
indicatorOffsetProperty,
Log,
scrollEnabledPro... |
<gh_stars>1-10
//
// create-certs-cdk-stack.ts
//
import { strict as assert } from 'assert'
import { readFileSync } from 'fs'
import { CfnOutput, Stack, StackProps, Tags } from 'aws-cdk-lib'
import * as ec2 from 'aws-cdk-lib/aws-ec2'
import * as iam from 'aws-cdk-lib/aws-iam'
import * as route53 from 'aws-cdk-lib/aws-... |
<reponame>zhengfeiwen/hs-template
// 请求处理
import axios from 'axios'
import { UserModule } from '@/store/modules/user'
import { isType, typeName, urlParamsParse } from '@/utils/common'
import { Message, MessageBox } from 'element-ui'
import { isWhite, standardization } from './apidatautils'
import qs from 'qs'
import { ... |
<gh_stars>0
import UserLocationService from '@/structures/userlocation.service';
import store from '@/store';
import ETA from '@/structures/eta';
// SocketManager wraps a WebSocket in order to provide guarantees about
// reliability, reconnections, retries, etc.
class SocketManager {
private ws: WebSocket | null =... |
import {Promise, PromiseWrapper, EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
import {Map, MapWrapper, List, ListWrapper} from 'angular2/src/facade/collection';
import {isBlank, isPresent, Type} from 'angular2/src/facade/lang';
import {RouteRegistry} from './route_registry';
import {Pipeline} fro... |
import type { NodePath, PluginObj, PluginPass } from '@babel/core';
import { types } from '@babel/core';
import { declare } from '@babel/helper-plugin-utils';
import hash from '@emotion/hash';
import * as findUp from 'find-up';
import { dirname, relative } from 'path';
import { readFileSync } from 'fs';
import {
CONT... |
import {NativeModules, NativeEventEmitter} from 'react-native';
//Model class used for evaluation's data returned via events listeners.
export class EvaluationResponse {
constructor(flag, value) {
this.flag = flag;
this.value = value
}
flag: string
value: any
}
//Model class for SDK ... |
import { createNamespace } from '@line-ui/line/src/utils/namespace';
import { usePopup } from '@line-ui/line/src/mixins/use-popup';
import { usePopupDuration } from '@line-ui/line/src/mixins/use-popup-duration';
import { useColor } from '@line-ui/line/src/mixins/use-color';
import { safeCall, isObject } from '@line-ui/... |
import React, { PureComponent } from 'react';
import { DragDropContext } from 'react-beautiful-dnd';
import styled from 'styled-components';
import { Paginated } from '@feathersjs/feathers';
import client from '../../lib/client';
import {
transformData,
generateGoogleDriveDocuments,
} from '../../lib/pipelineUtils'... |
<filename>uploader.ts
import { Adapter, SetObjectHeader, Part, ProgressCallback, Object } from './adapter';
import { FileHandle } from 'fs/promises';
import { Throttle, ThrottleGroup, ThrottleOptions } from 'stream-throttle';
export class Uploader {
private aborted: boolean = false;
private static readonly use... |
<reponame>tom-weatherhead/thaw-mongodb-client-direct<filename>src/collection.ts
// thaw-mongodb-client-direct/src/collection.ts
// Guide for migration to mongodb 4.x :
// See https://github.com/mongodb/node-mongodb-native/blob/4.1/docs/CHANGES_4.0.0.md
import {
Collection,
Db,
Document,
Filter,
InsertOneResult,
... |
<filename>src/core/prototypes/legends/categorical_legend.ts
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import { Color, indexOf } from "../../common";
import * as Graphics from "../../graphics";
import { LegendClass, LegendProperties } from "./legend";
import { Cont... |
import assert from 'assert';
import fs from 'fs';
import path from 'path';
import Reader from '.';
const dataDir = path.join(__dirname, '../test/data/test-data');
const read = (dir: string, filepath: string): Buffer =>
fs.readFileSync(path.join(dir, filepath));
describe('findAddressInTree()', () => {
it('should w... |
import { Prices, Wallets } from "@app"
import { ONCHAIN_MIN_CONFIRMATIONS } from "@config/app"
import { sat2btc, toSats } from "@domain/bitcoin"
import { LedgerTransactionType } from "@domain/ledger"
import { NotificationType } from "@domain/notifications"
import { TxStatus } from "@domain/wallets"
import { onchainBloc... |
import { EventEmitter } from 'events';
import { FPTree, IPrefixPath, ItemsCount } from './fptree';
import { FPNode } from './fpnode';
export interface IFPGrowthEvents<T> {
on(event: 'data', listener: (itemset: Itemset<T>) => void): this;
on(event: string, listener: Function): this;
}
export interface Itemset<... |
/*
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
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, modi... |
import { Typography } from "@material-ui/core";
import { appPath } from "@saleor/apps/urls";
import Form from "@saleor/components/Form";
import Hr from "@saleor/components/Hr";
import Link from "@saleor/components/Link";
import Skeleton from "@saleor/components/Skeleton";
import Timeline, {
TimelineAddNote,
Timelin... |
<filename>Go.Data-Chrome_Extension/src/services/cryptography.service.ts
import {Injectable} from '@angular/core';
const forge = require('node-forge');
const pki = forge.pki;
const Buffer = require('buffer/').Buffer;
@Injectable({
providedIn: 'root'
})
export class CryptographyService {
constructor() { }
/**
*... |
import {
CHANGE_POPUP_MODAL_ID,
CHANGE_PROPERTY_ITEM,
CHANGE_PROPERTY_ITEM_DEFAULT_SELECTED,
CHANGE_VAS_LIST_SELECTED,
GET_PRODUCT_DETAIL_INFO,
GET_PRODUCT_PROPERTY,
} from 'constant/index'
import { fromJS } from 'immutable'
import { handleActions } from 'redux-actions'
const initialDetail: any = {
idAct... |
import {linedOutputOf} from "../PTY";
import * as Path from "path";
import * as fs from "fs";
import {executeCommand} from "../PTY";
import * as _ from "lodash";
import * as ChildProcess from "child_process";
export class Branch {
constructor(private refName: string, private _isCurrent: boolean) {
}
toStr... |
import * as React from 'react';
import Input from './Input';
import Panel from './Panel';
import * as key from './keyboard';
import {Category} from "./Category";
import {Tag} from "./Tag";
import FormEvent = React.FormEvent;
import Timer = NodeJS.Timer;
import "./CategorizedTagInput.css";
export function isCategoryI... |
import { Command } from '@structures';
import { Message } from 'discord.js';
import { PassThrough } from 'stream';
import axios from 'axios';
import ffmpeg from 'fluent-ffmpeg';
import ffprobe from 'ffprobe-static';
ffmpeg.setFfprobePath(ffprobe.path);
const TAGS = [
'Pure',
'R18',
'Whisper',
'Ear Lick... |
// import { deepCopy } from "./util";
// /**
// * Units
// */
// export type ConversionTableType<Units extends string> = {
// [fromUnit in Units]: { [toUnit in Units]: number }
// };
// export class ConversionTable<Units extends string> {
// public static new<Units extends string>(baseUnit: Units) {
// ret... |
/*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and 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 restriction, including without limitation the r... |
import 'whatwg-fetch';
import { message, notification } from 'antd';
import { merge } from 'lodash';
interface AnyObject {
[name: string]: any;
}
type Body =
| string
| Blob
| ArrayBufferView
| ArrayBuffer
| FormData
| URLSearchParams
| ReadableStream<Uint8Array>
| AnyObject
| null;
type Intercep... |
<reponame>hcnode/salesforcedx-vscode<filename>packages/salesforcedx-utils-vscode/test/unit/context/workspaceContextUtil.test.ts
/*
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://op... |
<reponame>thomas-simon/ngx-sails<filename>projects/ngx-sails/src/lib/SailsClient.ts<gh_stars>0
import {Inject, Injectable, Injector, OnDestroy, Optional} from '@angular/core';
import {Observable, Subject} from 'rxjs';
import * as _io from 'socket.io-client';
import {SailsError} from './classes/SailsError';
import {Sail... |
<gh_stars>0
export const AD: Flag;
export const AE: Flag;
export const AF: Flag;
export const AG: Flag;
export const AI: Flag;
export const AL: Flag;
export const AM: Flag;
export const AO: Flag;
export const AR: Flag;
export const AS: Flag;
export const AT: Flag;
export const AU: Flag;
export const AW: Flag;
export co... |
<gh_stars>0
import * as utils from '../utils';
import * as dom from '../dom';
import { ControlBase, ControlOptions } from './ControlBase';
import { CallbackArgs, ElementDimension } from '../base';
export interface LimiterOptions extends ControlOptions {
position?: string;
template?: string;
timeout?: numbe... |
<filename>functions/src/messages.ts<gh_stars>1-10
/*
* <NAME>
* Copyright (c) 2020 by SilentByte <https://www.silentbyte.com/>
*/
import * as yaml from "yaml";
// language=yaml
const RAW_MESSAGES = yaml.parse(`
messageTypeNotSupported:
- Oh no, looks like I haven't received training for this message format ... |
import path from 'path';
import process from 'process';
import { Promise as BluebirdPromise } from 'bluebird';
import boxen, { BorderStyle } from 'boxen';
import CFonts from 'cfonts';
import chalk from 'chalk';
import { gitignore } from 'globby';
import inquirer from 'inquirer';
import flatten from 'lodash/flatten';
i... |
import React from "react"
import { codeDiff, CodeLine } from "@code-hike/code-diff"
import { SmoothLines } from "@code-hike/smooth-lines"
import { useDimensions } from "./use-dimensions"
import {
getFocusByKey,
getFocusIndexes,
} from "./focus-parser"
export type CodeProps = {
prevCode: string
prevFocus: strin... |
import picomatch from 'picomatch';
import getCommitAndBranch from '../git/getCommitAndBranch';
import {
getParentCommits,
getBaselineBuilds,
getChangedFiles,
getSlug,
getVersion,
} from '../git/git';
import { exitCodes, setExitCode } from '../lib/setExitCode';
import { createTask, transitionTo } from '../lib... |
import { Component, OnInit } from '@angular/core';
import { MatTableDataSource } from '@angular/material/table';
import { trigger, transition, style, animate } from '@angular/animations';
import { ModalDismissReasons, NgbModal, NgbModalOptions } from '@ng-bootstrap/ng-bootstrap';
import { UserService } from 'app/servic... |
/**
* @packageDocumentation
* @module API-AVM-OperationTx
*/
import { Buffer } from 'buffer/';
import BinTools from '../../utils/bintools';
import { AVMConstants } from './constants';
import { TransferableOutput } from './outputs';
import { TransferableInput } from './inputs';
import { TransferableOperation } from '... |
import { Board, makeBoard, Player, Point, wrapBoard } from 'renjukit'
import { GameState, PointsState, SegmentsState } from './common'
const boardModes = [
'game',
'freeBlacks',
'freeWhites',
'markerPoints',
'markerLines',
'preview',
] as const
export type BoardMode = typeof boardModes[number]
export const... |
import { Provider, Inject, Injectable, Optional } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Observer } from 'rxjs/Observer';
import { ReplaySubject } from 'rxjs/ReplaySubject';
import { FirebaseApp, FirebaseAuthConfig, WindowLocation } from '../tokens';
import * as utils from '../util... |
<filename>x-pack/plugins/lists/public/lists/api.ts
/*
* 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 { chain, fromEither... |
<reponame>taylorjb/angular-playground
import { Injectable, Injector } from '@angular/core';
import { HttpClient, HttpEvent, HttpInterceptor, HttpResponse,
HttpHandler, HttpRequest } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
import { Observer } from 'rxjs/Observer';
import { LocalSto... |
import { LedgerItem } from './ledger-item';
import itiriri, { IterableQuery } from 'itiriri';
import { ILedgerSummary } from './i-ledger-summary';
import { LedgerItemType } from './ledger-item-type';
import { IRentalPropertyEntity, PropertyType } from '../properties';
import currency from '../formatters/currency';
impo... |
<reponame>nkaravias/policy-library
/**
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
<reponame>youngjeong46/ssp-amazon-eks<gh_stars>0
import * as cdk from '@aws-cdk/core';
import { Construct, StackProps } from '@aws-cdk/core';
import * as cdkpipelines from '@aws-cdk/pipelines';
import * as assert from "assert";
import { ApplicationRepository, AsyncStackBuilder, StackBuilder } from '../spi';
import { wi... |
import { app, BrowserWindow } from 'electron'
import encoding from 'encoding-down'
import { promises as fs } from 'fs'
import leveldown from 'leveldown'
import levelup, { LevelUp } from 'levelup'
import path from 'path'
import { createLogger, format, transports } from 'winston'
import 'winston-daily-rotate-file'
import... |
import React, {useState, useContext, useEffect} from "react";
import {Modal, Form, Input, Radio} from "antd";
import {SearchContext} from "../../../../util/search-context";
import styles from "../save-query-modal/save-query-modal.module.scss";
import axios from "axios";
import {UserContext} from "../../../../util/user-... |
import * as am5 from "@amcharts/amcharts5";
import * as am5xy from "@amcharts/amcharts5/xy";
import am5themes_Animated from "@amcharts/amcharts5/themes/Animated";
/**
* ---------------------------------------
* This demo was created using amCharts 5.
*
* For more information visit:
* https://www.amchar... |
import { VERTICAL_GUTTER } from '@/constants/global';
import { Form2, SmartTable, Table2 } from '@/containers';
import Page from '@/containers/Page';
import { queryAuthDepartmentList } from '@/services/department';
import { authRolesList } from '@/services/role';
import { authUserList, createUser, updateUserRole } from... |
import Icon from "antd/lib/icon";
import Tabs from "antd/lib/tabs";
import * as H from "history";
import { Account } from "iotex-antenna/lib/account/account";
import isElectron from "is-electron";
// @ts-ignore
import { t } from "onefx/lib/iso-i18n";
import { Component } from "react";
import React from "react";
import ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.