text stringlengths 3.08k 15.5k |
|---|
<filename>src/objects/backup-source.ts
import * as fs from './fs.ts';
import * as path from 'https://deno.land/std@0.91.0/path/mod.ts';
import Filter from './filter.ts';
import { BackupInfo, InfoFileEntry } from './backup-log.ts';
import { BackupStats } from './backup-set.ts';
import { BackupInstance } from './backup-... |
import React from 'react'
import * as firebase from 'firebase'
import Login from 'containers/Login'
import Chat from 'containers/Chat'
import SettingsMenu from 'containers/SettingsMenu'
import ActionBar from 'containers/ActionBar'
import Text from 'components/Text'
// import { getUserSession } from 'utils/googleAuth'
... |
import fs from '@file-services/node';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import type webpack from 'webpack';
import VirtualModulesPlugin from 'webpack-virtual-modules';
import { SetMultiMap, TopLevelConfig } from '@wixc3/engine-core';
import { createEntrypoint } from './create-entrypoint';
import type... |
<gh_stars>1-10
import client from 'undefined';
import type {} from '@apollo/client';
import { readable } from 'svelte/store';
import type { Readable } from 'svelte/store';
import gql from 'graphql-tag';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
... |
import { BigNumber } from "@ethersproject/bignumber";
import { JsonRpcProvider } from "@ethersproject/providers";
import { formatEther, parseEther } from "@ethersproject/units";
import { Wallet } from "@ethersproject/wallet";
import { blue, green, red } from "chalk";
import { clear } from "console";
import dotenv from ... |
<filename>api/connect/fhir/controllers/validator.ts
import { PacienteFHIR } from '../../fhir/schemas/IPacienteFHIR';
function pacienteFHIRFields(elem: string) {
return elem.match('resourceType|identifier|active|name|telecom|gender|birthDate|deceasedBoolean|deceasedDateTime|address|maritalStatus|photo|contact') != ... |
import {
getModule,
Action,
Module,
Mutation,
VuexModule
} from "vuex-module-decorators";
import store from "./root";
import {
IAnnotation,
IAnnotationConnection,
IAnnotationProperty,
IPropertyComputeJob
} from "./model";
import Vue from "vue";
import main from "./index";
import { logError } from ... |
import { gql } from "../gql";
import { Linear } from "../linear";
import {
CreateIssueFromCliMutation,
CreateIssueFromCliMutationVariables,
GetAllIssuesFromCliQuery,
GetAllTeamIssuesFromCliQuery,
GetIssueFromCliQuery,
GetIssueFromCliQueryVariables,
GetTeamIssueIdsFromCliQuery,
GetTeamIssueIdsFromCliQuer... |
import React, { FC, useState } from 'react';
import cn from 'classnames';
import { motion } from 'framer-motion';
import './mainSlider.scss';
import Icons from '../icons';
import InstaIcon from '../icons/instagram';
import ShareIcon from '../icons/share';
import Btn from "../btn/Btn";
import { StaticImage } from "... |
import { AlertDialog, Button, Text, View } from 'native-base';
import React, { useCallback, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { StyleSheet, TouchableOpacity } from 'react-native';
import { RecurringInterval, RecursionPeriod } from '../../dto/modules/reminder.dto';
i... |
import dayjs from "dayjs"
import timezone from "dayjs/plugin/timezone"
import utc from "dayjs/plugin/utc"
import type { PageFC } from "next"
import Link from "next/link"
import { useState, useEffect, FC } from "react"
import { Head, Panel, Spinner } from "../../../components"
import { useAuthNeue } from "../../../cont... |
<reponame>GospelSounders/swahili-kjv<filename>src/commands/translate.ts
import { GluegunCommand } from 'gluegun'
const NodeSwordinterface_ = require('node-sword-interface'),
to = require('await-to-js').to
const { Sequelize } = require('sequelize')
let interface_ = new NodeSwordinterface_()
const translate_ = requir... |
<reponame>ngx-maps/ngx-maps
/**
* the object that a <code>calculator</code> function returns.
*
* array to be used to style the cluster icon.
* If this value is <code>undefined</code> or <code>""</code>, <code>title</code> is set to the
* value of the <code>title</code> property passed to the M... |
import {defineMIME, defineMode} from '../index';
function words(str) {
const obj = {};
const words = str.split(',');
for (let i = 0; i < words.length; ++i) {
const allCaps = words[i].toUpperCase();
const firstCap = words[i].charAt(0).toUpperCase() + words[i].slice(1);
obj[words[i]]... |
<reponame>Dactilo/table-dropper
import Dragger from './draggable-list';
import classes from './classes';
import {touchy, sort} from './util';
import arrayFrom = require('array.from');
export default class Drag {
constructor(table = null, userOptions = {}) {
if (!checkIsTable(table)) {
throw new... |
<filename>webSocketHeart.ts
/**
* 心跳机制
*/
class Heart {
//心跳计时器
heartTimeout = 0;
//心跳计时器
serverHeartTimeout = 0;
//间隔时间
timeout: number;
/**
*
*/
constructor() {
//设置间隔时间5s
this.timeout = 5000;
}
//重置
reset() {
clearTimeout(this.heartTimeo... |
import * as cdk from '@aws-cdk/core'
import { FargateTaskDefinition, FargatePlatformVersion } from '@aws-cdk/aws-ecs'
import { CnameRecord, HostedZone } from '@aws-cdk/aws-route53'
import { SharedServiceStackProps } from '../shared-stack-props'
import { CustomEnvironment } from '../custom-environment'
import { Port, Su... |
/** @jsx jsx */
import { jsx } from '@emotion/core';
import React from 'react';
import HomeComponent from './home/HomeComponent';
import LogsComponent from './logs/LogsComponent';
import LoginComponent from './auth/LoginComponent';
import { Route, Switch } from 'react-router-dom';
import PrivateRoute from './auth/Priva... |
'use strict';
import { TestBed, async } from '@angular/core/testing';
import { HttpModule } from '@angular/http';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { DataTableModule, SharedModule, OverlayPanelModule, PickListModule, DragDropModule, CalendarModule,
FileUpload, FileUploa... |
<gh_stars>100-1000
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*----------------------------------------------... |
import { ICredentials } from "../interface/profile";
import Client from "../client";
import * as core from "@serverless-devs/core";
import logger from "../../common/logger";
import * as HELP from "../help/deploy";
import Function from "./function";
import { Trigger, TriggerClientFactory } from "./trigger";
import Stdou... |
import { TrackingWindow } from './types';
export type OneTrustSettings = {
production: boolean;
scope: TrackingWindow;
};
export const initializeOneTrust = async ({
production,
scope,
}: OneTrustSettings) => {
const script = document.createElement('script');
script.setAttribute('async', 'true');
script.... |
import { FastifyPluginAsync } from "fastify";
import fp from "fastify-plugin";
import { definitions } from "../common/supabase";
import { AuthToken } from "../common/jwt";
import S from "fluent-json-schema";
import config from "config";
import { logLevel } from "../lib/env";
declare module "fastify" {
interface Fast... |
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import { useLocation } from "@reach/router";
import {
Paper,
Typography,
TextField,
IconButton,
Snackbar,
CircularProgress,
} from "@material-ui/core";
import Alert from "@material-ui/lab/Alert";
import SendIcon fr... |
<reponame>Lesmiscore/monapa-cli<gh_stars>0
import Command from "../component/command";
import { ArgumentParser } from "argparse";
import api from "../cp-client";
import { ECPair, TransactionBuilder, Transaction, script, opcodes } from "bitcoinjs-lib";
import monacoin from "../misc/network";
import { keyInYN, keyInSelec... |
<reponame>danielearwicker/per<gh_stars>1-10
export type Sink<T> = (v: T) => boolean|void;
export type Source<TIn, TOut> = (sink: Sink<TOut>, value?: TIn) => boolean|void;
export type Init<TIn, TOut> = TOut | TOut[] | Source<TIn, TOut>;
function toFunc<TIn, TOut>(valOrFunc: Init<TIn, TOut>, bindThis?: any): Source<T... |
import Image from 'next/image'
import { useState } from 'react'
import { useWindowSize } from "react-use"
import styled, { css } from 'styled-components'
import { Badge, Assignment, Business, ErrorOutline } from '@styled-icons/material'
import axios from 'axios'
import general from '../styles/_general'
import niveisP... |
<reponame>johnnyfelix/transport-web
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from '@app/home/home.component';
import { LoginComponent } from '@app/login/login.component';
import { AuthGuardService } from '@app/_services/auth-guard.service... |
/*
Part of the OASIS ART PROJECT - https://github.com/orgs/oasis-art-project
Copyright (c) 2019-22 TEAM OASIS
License Artistic-2.0
*/
import { useParams, Link } from 'react-router-dom';
import styled from 'styled-components';
import { FaHome, FaInstagram, FaFacebookSquare } from 'react-icons/fa';
import { IoChatboxSha... |
import React, { useState } from "react";
import NavBar from "../../components/navbar";
import './timetable.scss'
import { withStyles, makeStyles } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/T... |
import LRU from "./helpers/LRU";
import { stem } from "./nlp/stem";
import type { RequestManager } from "./helpers/RequestManager";
import { percentEncode } from "./helpers/utils";
export type TermQuery = {
term: string;
fallbackTerm?: string;
weight: number;
};
// export type Highlight = {
// terms: { term: ... |
import {fetchBucketsByMethods} from '@/services/data/tuples/bucket';
import {EnumId} from '@/services/data/tuples/enum-types';
import {Indicator, MeasureMethod} from '@/services/data/tuples/indicator-types';
import {detectMeasures, findTopicAndFactor, isTimePeriodMeasure} from '@/services/data/tuples/indicator-utils';
... |
<reponame>privacyresearchgroup/ed25519-ts
import { IntFactory, SerializationFunctions } from './serialization'
import { BigIntType, Integers } from './integers'
export interface CurveType<BIT extends BigIntType> {
a: BIT
d: BIT
P: BIT
n: BIT
h: BIT
Gx: BIT
Gy: BIT
}
export interface Consta... |
import {
filter,
find,
flow,
forEach,
get,
identity,
indexOf,
LodashForEach,
map,
reduce,
sortBy,
uniq,
} from "lodash/fp";
import { TLink, TNode, WithConvert } from "./typings";
class Layout {
public nodes!: TNode[];
public computeLayout(nodes: TNode[]) {
this.nodes = nodes;
this.... |
import * as _ from 'lodash';
import * as dateFns from 'date-fns';
import { IUnixTimePoint } from '../state/unix-time-point';
import { IHpTimeSeriesChartState } from '../state';
import { IChartTimeSeriesBuckets, ITimeSeriesBucket } from './interfaces';
import { unixIndexMapCalculations } from './unix-index-map';
import ... |
<reponame>0xa8c81519/bsc-contracts
import { expect, assert } from 'chai';
import {
StableCoinContract,
StableCoinInstance,
BStablePoolContract,
BStablePoolInstance,
PaymentTokenContract,
PaymentTokenInstance,
BStablePaymentContract,
BStablePaymentInstance,
BStableProxyV2Contract,
... |
import type { GirderModel } from '@girder/components/src';
import {
DatasetMetaMutable,
DatasetType,
Pipe, Pipelines, SaveAttributeArgs, TrainingConfigs,
} from 'dive-common/apispec';
import {
calibrationFileTypes, inputAnnotationFileTypes, inputAnnotationTypes, otherImageTypes,
otherVideoTypes, websafeImage... |
/* eslint-disable no-await-in-loop */
import { ChildProcess, spawn } from 'child_process';
import chokidar from 'chokidar';
import { createHash } from 'crypto';
import { EventEmitter } from 'events';
import FileType from 'file-type';
import fs from 'fs-extra';
import { resolve } from 'path';
import { getTOCFiles } fr... |
<reponame>open-star/wmonsin<filename>app.ts
/**
app.ts
Copyright (c) 2015 7ThCode.
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
'use strict';
declare function require(x:string):any;
function alert_log(obj:any, name:string):void {
if (obj) {
logge... |
/**
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
<reponame>emundo/joynr<gh_stars>100-1000
/*
* #%L
* %%
* Copyright (C) 2019 BMW Car IT GmbH
* %%
* 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... |
import * as MRE from '@microsoft/mixed-reality-extension-sdk';
import { EventEmitter } from 'events';
import App from './app';
import { getAsset } from './assets';
import { textHeightForWidth } from './utils';
export enum DieType {
D100 = 'd100',
D20 = 'd20',
D12 = 'd12',
D10 = 'd10',
D8 = 'd8',
D6 = 'd6',
D4 ... |
import path = require("path");
import ConvertSourceMap = require("convert-source-map");
import SourceMap = require("source-map-js"); // use 'source-map-js' instead of 'source-map' because of https://github.com/mozilla/source-map/issues/370
import InlineSourceMap = require("./InlineSourceMap");
import Memoize = require... |
var classNames = require('classnames');
const cx = classNames.bind(require('./connect.scss'));
import Toggle from 'react-toggle';
import ClipLoader from "react-spinners/ClipLoader";
import { Endpoint } from '../context/endpoint';
import { RESX } from '../strings';
import axios from 'axios';
import * as React from 'rea... |
<filename>example/index.ts<gh_stars>0
/**
* (c) <NAME> <<EMAIL>>
* User: nguyenpl117
* Date: 4/21/2020
* Time: 10:27 PM
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import { HasOne } from '../src/Contracts/Orm/Relations/types';... |
/**
* Copyright 2020 Inrupt 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, modify, merge, publish, d... |
import Service, { inject as service } from "@ember/service";
import Evented from "@ember/object/evented";
import Store from "@ember-data/store";
import Frame from "knowledge-shell/models/frame";
import FrameBase from "knowledge-shell/models/frame-base";
import Position from "knowledge-shell/models/position";
import Slo... |
import React from 'react';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import { Field, Grid, Radio, Input, Message, Icon, Switch } from '@b-design/ui';
import { Dialog, Card, Button, Form } from '@b-design/ui';
import Translation from '../../components/Translation';
import locale from '../.... |
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { PlotPlugin } from './types';
import { pluginLog } from './utils';
import uPlot from 'uplot';
import { getTimeZoneInfo, TimeZone } from '@grafana/data';
import { usePlotPluginContext } from './context';
export const usePlotPlugins = () ... |
import { Window, Button, CursorType, MessagePointer, MessageKey, InputModifier, KbKey, Vec2 } from "../../../src";
import { getControlDemoContainer } from "../utility";
const c_PointerTypeString = ["Mouse", "Touch", "Pen", "Unknown"];
const c_ButtonTypeString = ["None", "Main", "Secondary", "Middle", "XButton1", "XBut... |
<filename>src/utils/options/normalizeOutputOptions.ts
import {
GlobalsOption,
InternalModuleFormat,
ModuleFormat,
NormalizedInputOptions,
NormalizedOutputOptions,
OptionsPaths,
OutputOptions
} from '../../rollup/types';
import { ensureArray } from '../ensureArray';
import { errInvalidExportOptionValue, error, wa... |
import * as React from "react";
import { FormattedMessage, injectIntl, InjectedIntl } from "react-intl";
import * as Moment from "moment";
import Card from "@material-ui/core/Card";
import CardActions from "@material-ui/core/CardActions";
import CardContent from "@material-ui/core/CardContent";
import Button from "@mat... |
import { useState } from 'react';
import { useDropzone } from 'react-dropzone';
import { useSelector } from 'react-redux';
import { useParams } from 'react-router-dom';
import { useForm } from 'react-hook-form';
import { yupResolver } from '@hookform/resolvers/yup';
import * as yup from 'yup';
import { Title } from '... |
import * as React from "react";
import {
newWindup,
Windup,
WindupMember,
windupFromString,
memberIsWindup
} from "../Windup";
import { isPaceElement, isMsProp } from "./Pace";
import { isOnCharElement } from "./OnChar";
import { isPauseElement } from "./Pause";
import useWindup, { HookMetadata } from "./useW... |
<reponame>offirgolan/DefinitelyTyped<filename>types/mixpanel-browser/index.d.ts
// Type definitions for mixpanel-browser 2.35
// Project: https://github.com/mixpanel/mixpanel-js
// Definitions by: <NAME> <https://github.com/karlos1337>
// <NAME> <https://github.com/RicardoRodrigues>
// <... |
import React, { useMemo } from "react";
import {
Grid,
styled,
Typography,
useTheme,
DialogContent,
DialogContentText,
DialogTitle,
CircularProgress,
makeStyles,
Button,
} from "@material-ui/core";
import { ProgressBar } from "modules/explorer/components/ProgressBar";
import { useVotesStats } from ... |
<filename>src/components/date-range-picker.ts<gh_stars>10-100
// @ts-nocheck
import wrap from "@vue/web-component-wrapper";
import { customElement } from "lit-element/lib/decorators";
import Vue from "vue";
import DateRangePicker from "vue2-daterange-picker";
import dateRangePickerStyles from "vue2-daterange-picker/dis... |
import * as React from "react"
import { useEffect, useRef, useCallback, useReducer } from "react"
import { Search } from "react-bootstrap-icons"
import Axios from "axios"
import { AxiosResponse, AxiosError } from "axios"
import * as Cookie from "js-cookie"
import Environment from "../../lib/environment"
import Proj... |
import * as React from 'react';
import { useEffect, useState } from 'react';
import Tree from '@atlaskit/tree';
import cxs from 'cxs';
import { DataItem, DataItemKind } from '../../types';
import { TreeData } from '@atlaskit/tree/types';
import { SideBarTreeItem } from './SideBarTreeItem';
import { useDataTree } from '... |
//the ones that can be divided by 3 are reaallly broken ones
//they add a new color but make the color repeat every 3 notes instead of 4
export enum NoteQuantization {
NONE = -1,
Q4 = 4,
Q8 = 8,
Q12 = 12,
Q16 = 16,
Q24 = 24,
Q32 = 32,
Q48 = 48,
Q64 = 64,
Q96 = 96,
Q128 = 128,... |
import Queue from 'bull'
import {
ASSET_TYPE,
MINUTE,
OFFICIAL_NOTICE_EXTEND_TYPE,
QUEUE_JOB,
QUEUE_NAME,
QUEUE_PRIORITY,
USER_STATE,
} from 'common/enums'
import logger from 'common/logger'
import { BaseQueue } from './baseQueue'
interface ArchiveUserData {
userId: string
}
class UserQueue extends ... |
import * as fs from 'fs-extra';
import * as path from 'path';
import {
TemplateWriter, TemplateState
} from './template';
import {
Attributes, hasWidgetRef,
} from '../core';
const INDENT = ' ';
export
class PythonWriter extends TemplateWriter {
/**
*
*/
constructor(output: string, options: Pa... |
import React, {
useCallback,
useContext,
useEffect,
useMemo,
useRef,
} from "react";
import { Animated, BackHandler, Dimensions, Easing } from "react-native";
import Reanimated from "react-native-reanimated";
import {
default as BottomSheet,
default as BottomSheetBehavior,
} from "reanimated-bottom-sheet"... |
import { fetchNewDevice, getDevice } from "../device";
import { dispatchNetworkUp, dispatchNetworkDown } from "./index";
import { Log } from "../interfaces";
import { ALLOWED_CHANNEL_NAMES, Farmbot, BotStateTree } from "farmbot";
import { throttle, noop } from "lodash";
import { success, error, info, warning } from "fa... |
/**
* 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... |
<filename>src/rules/use-v-on-exact.ts
import type { Rule } from 'eslint';
import type { AttributeToken, Loc } from 'pug-lexer';
import { processRule } from '../utils';
import { isCustomComponent } from '../utils/vue';
const SYSTEM_MODIFIERS: ReadonlyArray<string> = [
'ctrl',
'shift',
'alt',
'meta',
];
const GL... |
<gh_stars>0
// noinspection JSUnusedLocalSymbols
import blocks from "./data/KarolBlocks.json";
import Blockly, { Block } from "blockly";
let karolGenerator: any;
const blockToCode: [string, (x: Block) => string | [string, number]][] = [
["step", (block: Block) => "Schritt(" + block.getFieldValue("COUNT") + ")"],
... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React, { Fragment } from 'react';
import { HttpSetup } from 'src/core... |
<reponame>light-bringer/electron-umbrella-for-crm<gh_stars>0
import {Component, ElementRef, HostListener, OnDestroy, OnInit, ViewChild} from '@angular/core';
import {FormGroup} from '@angular/forms';
import {ActivatedRoute, Router} from '@angular/router';
import {Subscription} from 'rxjs';
import {tap} from 'rxjs/opera... |
import AfterPay from './AfterPay';
import ApplePay from './ApplePay';
import { BillDeskOnline, BillDeskWallet } from './BillDesk';
import Card from './Card';
import Bancontact from './Card/Bancontact';
import Donation from './Donation';
import Giropay from './Giropay';
import GooglePay from './GooglePay';
import Enterc... |
<filename>src/app/vm/container/vm-filter.container.ts
import { AfterViewInit, ChangeDetectorRef, Component, Input, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { select, Store } from '@ngrx/store';
import { takeUntil } from 'rxjs/operators';
import * as debounce from '... |
<filename>bokehjs/src/coffee/models/tools/toolbar_base.ts
/* XXX: partial */
import {logger} from "core/logging";
import {empty, div, a} from "core/dom";
import {build_views, remove_views} from "core/build_views";
import * as p from "core/properties";
import {DOMView} from "core/dom_view";
import {Logo, Location} from... |
import {Component, ElementRef, NgZone, OnDestroy, OnInit, ViewChild} from '@angular/core';
import {Router} from '@angular/router';
import {MapsAPILoader} from '@agm/core';
import {GoogleMapsAPIWrapper} from '@agm/core';
import {DirectionsMapDirective} from '../../directives/agm-map-directive';
import {} from '@types/... |
<filename>apps/frontend/src/app/services/game.facade.ts
import { Injectable } from '@angular/core';
import { MatSnackBar } from '@angular/material/snack-bar';
import { BehaviorSubject, Observable, combineLatest } from 'rxjs';
import { map, distinctUntilChanged, tap } from 'rxjs/operators';
import { SocketService } from... |
import React from "react";
import { Redirect, Link } from "react-router-dom";
import Axios from "axios";
import { getJSDocAugmentsTag } from "typescript";
interface IProps {
shelterId: number;
}
interface IState{
redirect: boolean,
dog: {
id: number,
name: string,
age: string,
... |
/**
* logger模块
* 错误,异常等地方都应输入日志,给出提示
*/
/* eslint-disable no-console */
import { debounce, throttle, defaults } from 'lodash'
import * as Types from '@/utils/types'
import { getUrlParams } from './tool'
type Level = 'log' | 'info' | 'warn' | 'error'
type Option = {
isPrint?: boolean
moduleName?: string
de... |
import { useAccount, useContractRead, useNetwork, useSignMessage } from "wagmi";
import { ethers } from "ethers";
import { useEffect, useState } from "react";
import {
ApolloClient,
ApolloError,
gql,
InMemoryCache,
useMutation,
} from "@apollo/client";
import { ConnectedAccountButton, Spinner, Dialog, Spacer ... |
import { set } from '@ember/object';
import { IOwner } from 'datahub-web/typings/api/datasets/owners';
import { OwnerIdType, OwnerSource, OwnerType, OwnerUrnNamespace } from 'datahub-web/utils/api/datasets/owners';
import { arrayFilter, isListUnique } from '@datahub/utils/array/index';
import { IAvatar } from 'datahub-... |
import { QueryList, SimpleChanges, SimpleChange, EmbeddedViewRef } from '@angular/core';
import { getValue, setValue } from '@syncfusion/ej2-base';
import { clearTemplate, registerEvents } from './util';
/**
* Complex Array Base module
*/
export interface IChildChange {
index: number;
change: Object;
}
int... |
<gh_stars>10-100
import * as fs from 'fs';
import * as xml2js from 'xml2js';
import { Enum, Field, MessageField, Message } from './definitions';
/*
<fix major="4" minor="4">
<header>
<field name="BeginString" required="Y"/>
<group name="NoHops" required="N">
<field name="HopCompID" req... |
import {
concat,
partition,
sortBy,
find,
values,
isNull,
without,
} from 'lodash';
import regions from './region_db';
import { getStateFips } from './regions_data';
import { County, State, Region, MetroArea } from './types';
import { GeolocationInfo } from 'common/hooks/useGeolocation';
import { CountyTo... |
import * as React from 'react'
import { useState, useEffect } from 'react'
import Container from '@material-ui/core/Container'
import Typography from '@material-ui/core/Typography'
import Grid from '@material-ui/core/Grid'
import { makeStyles } from '@material-ui/core/styles'
import { useParams } from 'react-rout... |
<filename>src/core/client/stream/test/comments/stream/liveCommentReplies.spec.tsx<gh_stars>0
import { pureMerge } from "coral-common/utils";
import {
GQLComment,
GQLResolver,
GQLStory,
SubscriptionToCommentReplyCreatedResolver,
} from "coral-framework/schema";
import {
createFixture,
createResolversStub,
... |
import {
ModalForm,
ProFormDependency,
ProFormDigit,
ProFormRadio,
ProFormSelect,
ProFormSwitch,
ProFormText
} from '@ant-design/pro-form';
import type { FormInstance } from 'antd';
import { Cascader, Form, message, Tag, TreeSelect } from 'antd';
import type { DataNode } from 'rc-tree-select/lib/interface... |
<reponame>renproject/account-chain-indexer<filename>src/indexer/filecoin.ts<gh_stars>0
// @ts-ignore
import FilecoinClient from "@glif/filecoin-rpc-client";
import { Asset } from "../database/models";
import {
FilecoinNetwork,
FilecoinTransaction,
} from "../database/models/FilecoinTransaction";
import {
F... |
<filename>src/Structures/clues/Elite.ts
import LootTable from '../LootTable';
import Clue from '../Clue';
import {GildedTable, PrayerPageTable, FirelighterTable, GiveHalfKeyTable, BlessingTable, TeleportScrollTable} from './General';
import { rand } from '../../util';
//const NUM_OF_ROLLS = [4, 6];
// 1 in 25 ... |
<gh_stars>1-10
import clone from "lodash-es/clone";
import defaults from "lodash-es/defaults";
import flatten from "lodash-es/flatten";
import isEqual from "lodash-es/isEqual";
import isUndefined from "lodash-es/isUndefined";
import omit from "lodash-es/omit";
import uniqueId from "lodash-es/uniqueId";
import IMain fro... |
import {readProcessedElectoralComissionDonations} from "./validate-csv-data";
import {Database} from 'sqlite3';
interface Donor {
donorId: number;
donorName: string;
donorStatus: string;
companyRegistrationNumber: string;
postcode: string;
}
interface Donatee {
regulatedEntityId: number;
regulatedEntityN... |
<filename>core/templates/services/auth.service.ts
// Copyright 2020 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.or... |
<gh_stars>0
import { ChunksArgument, DtypeString, CompressorConfig, Order, Filter, FillType, PersistenceMode } from './types';
import { Store } from './storage/types';
import { ZarrArray } from './core/index';
import { MemoryStore } from './storage/memoryStore';
import { initArray, containsArray, containsGroup } from '... |
<reponame>SalvatorePreviti/joiners30<filename>dev/builder/builder-main-html.ts<gh_stars>0
import cheerio from 'cheerio'
import { isExternalUrl, cleanUrl, isDataUrl } from 'vite/dist/node/utils'
import { resolveAsset, registerAssets } from 'vite/dist/node/build/buildPluginAsset'
import chalk from 'chalk'
import { Intern... |
import _ = require("lodash");
import { Listable } from "../../common/Listable";
import { PersistentCharacter } from "../../common/PersistentCharacter";
import { SavedEncounter } from "../../common/SavedEncounter";
import { Settings } from "../../common/Settings";
import { Spell } from "../../common/Spell";
import { Sta... |
import {
BBox, Feature, featureCollection, FeatureCollection, isNumber, isObject,
LineString, lineString, point, Point, polygon, Polygon, Position,
} from "@turf/helpers";
/**
* Returns a random position within a {@link bounding box}.
*
* @name randomPosition
* @param {Array<number>} [bbox=[-180, -90, 180,... |
import BigNumber from "big.js"
import React from "react"
import { useTranslation } from "react-i18next"
import { Asset, Horizon, ServerApi } from "stellar-sdk"
import Dialog from "@material-ui/core/Dialog"
import Divider from "@material-ui/core/Divider"
import List from "@material-ui/core/List"
import AddIcon from "@ma... |
<gh_stars>10-100
import {LitElement, css, html, customElement, property, PropertyValues} from 'lit-element';
import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
import {classMap} from 'lit-html/directives/class-map';
import '@material/mwc-icon';
import './icon-button-toggle';
import {DateTime} from 'luxon';... |
export const colors: Record<string, string> = {
white: "255, 255, 255",
black: "0, 0, 0",
dark: "12, 12, 13",
grey: "169, 169, 188",
darkGrey: "113, 119, 138",
lightGrey: "212, 212, 212",
blue: "101, 127, 230",
lightBlue: "64, 153, 255",
yellow: "250, 188, 45",
orange: "246, 133, 27",
green: "84, ... |
import { CfnStack } from '@aws-cdk/aws-cloudformation';
import ec2 = require('@aws-cdk/aws-ec2');
import iam = require('@aws-cdk/aws-iam');
import s3 = require('@aws-cdk/aws-s3');
import sns = require('@aws-cdk/aws-sns');
import sqs = require('@aws-cdk/aws-sqs');
import cdk = require('@aws-cdk/cdk');
/**
* This stack... |
<reponame>hackshieldteam/Atlas
import * as express from 'express';
import Controller from 'routes/interfaces/controller.interface';
import validationMiddleware from '../middleware/validation.middleware';
import permissionMiddleware from '../middleware/permission.middleware';
import { getRepository } from 'typeorm';
imp... |
import {
Component,
ChangeDetectorRef,
Input,
Output,
EventEmitter,
HostListener,
OnInit,
ViewChild,
forwardRef,
ViewEncapsulation
} from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from "@angular/forms";
import { Platform } from 'ionic-angular';
import { TAG_COLORS } from "... |
<reponame>abhishekkhandait/gear-scrollbar<filename>src/gearscroll.ts
const styles = `
.gearscroll-container {
overflow: auto;
}
.gearscroll-hidescrollbar::-webkit-scrollbar {
-webkit-appearance: none;
display: none;
}
.gearscroll-div {
position: absolute;
right: -... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.