text stringlengths 3.08k 15.5k |
|---|
import { PDFDocument } from 'pdf-lib'
import * as fs from 'fs'
import path = require('path')
import puppeteer = require('puppeteer')
import md2html = require('./convert_html')
import util = require("./util")
import patterns = require('./patterns')
// import { PDFLoadingTask, PDFDocumentProxy, TextContentItem } from 'p... |
<reponame>WakeUpCallApp/wakeup
import { Action } from '@ngrx/store';
import { Topic, Quote, IComment } from '../../models';
import { type } from '../util';
export const ActionTypes = {
GET_BY_TOPIC_ID: type('[Quote] Get By Topic Id'),
GET_BY_TOPIC_ID_SUCCESS: type('[Quote] Get By Topic Id Success'),
GET_BY_ID: ... |
import WeakishMap from './WeakishMap';
import {
Tuple0,
Tuple1,
Tuple2,
Tuple3,
Tuple4,
Tuple5,
Tuple6,
Tuple7,
Tuple8,
CompositeSymbol0,
CompositeSymbol1,
CompositeSymbol2,
CompositeSymbol3,
CompositeSymbol4,
CompositeSymbol5,
CompositeSymbol6,
CompositeSymbol7,
CompositeSymbol8,
} ... |
<filename>src/index.ts
import { PluginObject } from "vue";
type messengerAttributes = {
app_id?: string;
custom_launcher_selector?: string;
alignment?: string;
vertical_padding?: number;
horizontal_padding?: number;
hide_default_launcher?: boolean;
session_duration?: number;
action_color?: string;
ba... |
<reponame>whizkidwwe1217/igniteui-angular
import { useAnimation } from '@angular/animations';
import { CommonModule } from '@angular/common';
import {
Component,
EventEmitter,
HostBinding,
Input,
NgModule,
OnInit,
Output
} from '@angular/core';
import { takeUntil } from 'rxjs/operators';
imp... |
import HttpRequest from './http';
import { UserGameData, UserIpInfo } from './data';
import Environment from './environment';
import { PURCHASE_RESTRICT, IP_INFO } from './variables';
import { queryStringify } from './utils';
/**
* 键为支付项目,值为具体的描述
*/
export interface Goods {
[key: string]:
| {
... |
<gh_stars>1-10
import express = require('express')
import bodyParser = require('body-parser')
import { codes, config } from './config'
import blogtemplate from './blogtemplate'
import projecttemplate from './projecttemplate'
import axios from 'axios'
import * as AmpOptimizer from '@ampproject/toolbox-optimizer'
import ... |
import { join } from 'path';
import { readFileSync, writeFileSync, existsSync, unlinkSync } from 'fs';
import less from 'less';
const LessPluginCleanCSS = require('less-plugin-clean-css');
const LessPluginNpmImport = require('less-plugin-npm-import');
const lessToJs = require('less-vars-to-js');
import { ThemeCssItem,... |
import * as debugsx from 'debug-sx';
const debug: debugsx.IFullLogger = debugsx.createFullLogger('old::odb2:obd2');
import * as events from 'events';
import * as nconf from 'nconf';
import { DTC } from './core/dtc';
import { PID } from './core/pid';
import { OBD } from './core/obd';
import { Ticker } from './core/tic... |
import {
accordion,
banner,
characterCount,
comboBox,
datePicker,
dateRangePicker,
fileInput,
footer,
inputPrefixSuffix,
modal,
navigation,
password,
search,
skipnav,
table,
timePicker,
tooltip,
validator,
} from '@uswds/uswds';
const element = do... |
import * as React from 'react';
// Our custom styles
import styles from './PropertyPaneFilePicker.module.scss';
// Our props
import { IPropertyPaneFilePickerHostProps, IPropertyPaneFilePickerHostState } from '.';
// Office Fabric controls
import { PrimaryButton } from 'office-ui-fabric-react/lib/components/Button';
... |
<filename>years/2021/15/index.ts
import _ from "lodash";
import * as util from "../../../util/util";
import * as test from "../../../util/test";
import chalk from "chalk";
import { log, logSolution, trace } from "../../../util/log";
import { performance } from "perf_hooks";
const YEAR = 2021;
const DAY = 15;
// solut... |
import { ICloseType } from './ICloseType';
type IBorderLocation = "top" | "bottom" | "left" | "right";
type ITabLocation = "top" | "bottom";
type IInsets = { "top": number, "right": number, "bottom": number, "left": number };
export interface IJsonModel {
global?: IGlobalAttributes;
borders?: IJsonBorderNode[]... |
import { useContext, useEffect, useState } from "react";
import { sfSubgraph, sfApi } from "../../../redux/store";
import {
Breadcrumbs,
Card,
Container,
Grid,
List,
ListItem,
ListItemText,
Skeleton,
Tab,
Tooltip,
Typography,
} from "@mui/material";
import { Box } from "@mui/system";
import Networ... |
<reponame>bigred8982/vscode-versionlens
import { KeyStringArrayDictionary } from 'core.generics';
import { TSemverSpec } from "../definitions/tSemverSpec";
import { TPackageNameVersion } from "../definitions/tPackageNameVersion";
import { PackageVersionTypes } from "../definitions/ePackageVersionTypes";
export const ... |
//import 'idempotent-babel-polyfill' // so async await works ;)
import { useEffect, useState, useCallback } from 'react';
//import {auth} from '../helpers/Firebase';
import { useSession, useCache } from 'hooks';
import { useSnackbar } from 'notistack';
const isObject = (obj: any): boolean => Object.prototype.toString.... |
<filename>src/app/flota/flota.component.ts
import { Component, OnInit, ViewChild, Inject} from '@angular/core';
import { DatProviderService } from '../dat-provider.service';
import { CacheDataService } from '../cache-data.service';
import {MatTableDataSource} from '@angular/material/table';
import {MatSort} from '@angu... |
<gh_stars>0
import * as core from '@actions/core';
import { Context } from '@actions/github/lib/context';
import { GitHub } from '@actions/github/lib/utils';
import { RequestParameters } from '@octokit/plugin-paginate-rest/dist-types/types';
import { RequestError } from '@octokit/request-error';
import { Octokit } from... |
<filename>packages/query-splitter/src/splitQuery.ts
import { SplitterOptions, defaultSplitterOptions } from './options';
const SEMICOLON = ';';
interface SplitExecutionContext {
options: SplitterOptions;
source: string;
position: number;
currentDelimiter: string;
output: string[];
end: number;
wasDataOn... |
<gh_stars>1-10
import { Entorno } from "../AST/Entorno";
import { Simbolo } from "../AST/Simbolo";
import { Tipo } from "../AST/Tipo";
import { InstruccionXQuery } from "../Interfaz/instruccionXQuery";
import { TraduceXML } from "../Traduccion/TraduceXML";
import { TranslateXPath } from "../Traduccion/TranslateXPath";
... |
<filename>src/priceFeed.ts
/**
* @file Price Feed
* @desc These methods facilitate interactions with the Open Price Feed smart
* contracts.
*/
import * as eth from './eth';
import { netId } from './helpers';
import {
constants, address, abi, cTokens, underlyings, decimals, opfAssets
} from './constants';
imp... |
<filename>devex/vscode-extension/src/common/utility.ts
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
"use strict";
import * as fse from "fs-extra";
import * as path from "path";
import * as vscode from "vscode";
import { UserCancelledError } from "./userCancelledError";
export cla... |
import React, { useState } from 'react';
import { View } from 'react-native';
import { useNavigation, useRoute } from '@react-navigation/native';
import {
CustomHeader,
LoadingOrError,
Markdown,
PostList,
ShowImageModal,
} from '../components';
import { DEFAULT_CHANNEL } from '../constants';
import { Avatar,... |
<filename>src/index.ts
import * as Unibabel from 'browserify-unibabel'
interface EncryptionResult {
data: string,
iv: string,
salt?: string,
}
/**
* Encrypts a data object that can be any serializable value using
* a provided password.
*
* @param {string} password - password to use for encryption
* @param... |
const $FRAGMENT = Symbol("fragment");
const $STRING_EMPTY = "";
type PlaceHolder = () => number;
type Token = string | PlaceHolder;
const isPlaceHolder = (x: any): x is PlaceHolder => {
return typeof x === "function";
};
const tokenizer = (strings: TemplateStringsArray): Token[] => {
const length = strings.lengt... |
import { URI } from "vscode-uri";
import { flatten, pull } from "lodash";
import { ViewKey, viewKeyToString } from "./key";
import { Disposable, View, ViewModel, ViewModelDelta, Views } from "./types";
import { ViewEvent, ViewModelChangeEvent } from "./events";
import { ViewEdit } from "./edits";
import { MultiViewFact... |
/// <reference path="../common/models.ts" />
/// <reference path="shared_directives.ts"/>
import angular = require("angular");
import Models = require("../common/models");
import io = require("socket.io-client");
import moment = require("moment");
import Messaging = require("../common/messaging");
import Shared = requ... |
import {
EmptyQuery,
IFullTextSearchCursor,
Query,
calcCursorBegin,
} from '../../fullTextSearch';
import { LoadStatus } from '../../global';
import Moment from 'moment';
import { QUERY_PAGE_LIMIT_DEFAULT } from '../../storage/db';
import { TabSpace } from '../tabSpace/TabSpace';
import { TabSpaceStub } from '... |
import {
GraphQLObjectType,
GraphQLObjectTypeConfig,
GraphQLNonNull,
GraphQLString,
GraphQLID,
GraphQLList,
GraphQLBoolean,
GraphQLInt,
} from 'graphql';
import mongoose = require('mongoose');
import { IConversation } from './ConversationModel';
import MessageModel, { IMessage } from '../message/MessageModel';
... |
<reponame>Huskydog9988/Salve
import { createTheme } from "@mui/material/styles";
import { red } from "@mui/material/colors";
/**
* Dark theme for mui
*/
const theme = createTheme({
palette: {
mode: "dark",
primary: {
"50": "#F0F7FF",
"100": "#C2E0FF",
"200": "#99CCF3",
"300": "#66B2... |
<reponame>stoneli88/video-process<filename>src/handler/uploader.ts
import * as fs from "fs";
import * as path from "path";
import mkdirp from "mkdirp";
import rimraf from "rimraf";
import multiparty from "multiparty";
import { logger } from "../utils/logger";
const fileInputName = process.env.FILE_INPUT_NAME || "qqfi... |
import * as cdk from "@aws-cdk/core";
import * as ec2 from "@aws-cdk/aws-ec2";
import * as ecs from "@aws-cdk/aws-ecs";
import * as iam from "@aws-cdk/aws-iam";
import * as route53 from "@aws-cdk/aws-route53";
import * as s3deploy from "@aws-cdk/aws-s3-deployment";
import * as path from "path";
import { Watchful } fr... |
<filename>src/material-experimental/mdc-tabs/ink-bar.ts
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {BooleanInput, coerceBooleanProperty} from '@angular/c... |
<filename>src/lib/inserter.ts<gh_stars>0
/* Copyright 2020 The Rational Index Project Developers. See the LICENSE
file at the top-level directory of this distribution and at
https://github.com/zandaleph/rational-index/blob/main/LICENSE */
import bigInt, { BigInteger } from 'big-integer';
/**
* Value representing tha... |
<gh_stars>1-10
import { EzMouseEvent } from '../../event/event';
import { EzPoint } from '../../model';
import {getCenterPoint} from '../../utils/math';
import {EzLineShape, EzElement} from '../../view';
import {EzEdgeViewState, EzViewState} from '../../view/view/view-state';
import { EzDiagramPlugin } from '../diagram... |
const btnPlay = document.querySelector('.btnPlay');
const btnRestart = document.querySelector('.btnRestart');
class Board {
private _cells: Cell[][] = [];
private _cols: number;
private _rows: number;
private _nextAction: string;
private _restartButton: HTMLElement;
private _popup: HTMLElement;
private _... |
import { enumKeys, enumValues } from "taio/build/utils/enum";
import * as vscode from "vscode";
import type { CoreAPI } from "../../types/public-api";
import { intl } from "../i18n/core/locale";
import { ExecutionTask, isExecutionTask } from "../../models/execution-task";
import {
ArgumentConfig,
ArgumentField,
i... |
/**
* @module URI
* @license MIT
* @version 2018/03/28
*/
// Parse query regex
const PARSE_QUERY_REGEX: RegExp = /(?:^|&)([^&=]*)(?:=([^&]*))?/g;
// Parse WHATWG URI regex
//
// 1.protocol 2.user 3.pass 4.hostname 5.port 6.pathname 7.search 8.hash
// | ... |
import * as M from "@matechs/effect";
import { pipe } from "fp-ts/lib/pipeable";
import {
Tracer as OT,
Span as OS,
FORMAT_HTTP_HEADERS,
Tags
} from "opentracing";
import { Do } from "fp-ts-contrib/lib/Do";
import { ERROR } from "opentracing/lib/ext/tags";
import Span from "opentracing/lib/span";
import { IO } ... |
import {AnyAction, Dispatch} from "redux";
import {ForkEffect, takeEvery, takeLatest} from "redux-saga/effects";
import {isArray, isFunction, isObject} from "util";
import {getPath, setPath} from "./helpers";
import {Hashmap} from "./types";
export function parseActions(actions: Hashmap<any>, rootPath: string) {
c... |
<filename>src/commands/scoreOperation/utils/formula.ts
import { Formula, IfFormula } from '../types/Formula';
import { locale } from '../../../locales';
import { OperateTable } from '../types/OperateTable';
import { GenerateError, ParsingError } from '../../../types/Error';
import { ConditionExp, conditionExpTable } fr... |
<gh_stars>10-100
import { mount, Wrapper } from '@vue/test-utils';
import Vue from 'vue';
import { getDataTestSelector, installNewXPlugin } from '../../../__tests__/utils';
import BaseColumnPickerList from '../base-column-picker-list.vue';
function renderBaseColumnPickerListComponent({
columns,
selectedColumns,
... |
import React, { Component, ChangeEvent, ReactNode } from "react";
import {
getUrlRecordPathWithAlt,
pathToAdminPage,
RecordProps,
} from "../components/RecordComponent";
import { getParentFsPath } from "../utils";
import { loadData } from "../fetch";
import { trans, trans_fallback, trans_format, trans_obj } from ... |
<gh_stars>1-10
import * as d3 from 'd3';
const render: any = {};
let dom: any = null;
render.drawChart = (id, data, options) => {
d3.select(id).selectAll('#canvas').remove();
const { width = 0, height = 0 } = options || {};
if (!data) {
return null;
}
d3.select(id).append('canvas')
.attr('width', wi... |
<filename>packages/renderer/src/puppeteer-evaluate.ts
/* eslint-disable no-new */
import {CDPSession, JSHandle, Page, Protocol} from 'puppeteer-core';
import {SymbolicateableError} from './error-handling/symbolicateable-error';
import {parseStack} from './parse-browser-error-stack';
const EVALUATION_SCRIPT_URL = '__pu... |
<filename>src/generated/nexus.ts
/**
* This file was generated by Nexus Schema
* Do not make changes to this file directly
*/
import * as Context from "../context"
declare global {
interface NexusGenCustomOutputProperties<TypeName extends string> {
model: NexusPrisma<TypeName, 'model'>
crud: any
}
}
... |
import React from "react";
import styled, { css } from "../../utils/styled-components";
import { FilterSortBy, FilterLineTransition } from "../../utils/types";
import FilterButton from "../FilterButton";
import MenuButton from "./MenuButton";
import BackToTop from "../icons/BackToTop";
import Logo from "../icons/Log... |
<gh_stars>0
import { ethers as eth } from 'ethers'
import tokenAbi from 'human-standard-token-abi'
import { ConnextInternal } from '../Connext'
import { toBN, validateTimestamp } from '../lib'
import { getLastThreadUpdateId, getTxCount, getUpdateRequestTimeout } from '../state'
import {
argNumericFields,
ChannelSt... |
<reponame>nbrendler/ayyteegee
// # ui.ts
// UI scene. I used a separate scene as it seems to be the easiest way to keep
// UI elements fixed on the screen as the camera moves.
//
// I think a lot of this could be cleaned up if I used parent transforms.
import "phaser";
import { GameEvent } from "./types";
import { Ga... |
<gh_stars>0
import { Abilities, Items, Moves, Pokemon, Query } from '@favware/graphql-pokemon';
import { ENABLE_LOCAL_POKEDEX } from '../../../config';
import { fetch, FetchResultTypes } from './util';
const AbilityFragment = `
fragment ability on AbilityEntry {
desc
shortDesc
name
bulbapediaPage
s... |
/*
* 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 { FC } from 'react';
import { useTranslation, Trans } from 'react-i18next';
import styled from 'styled-components';
import Link from 'next/link';
import { isWalletConnectedState } from 'store/wallet';
import { useRecoilValue } from 'recoil';
import Currency from 'components/Currency';
import Button from 'compon... |
import chalk from 'chalk';
import { Direction, drawChars } from './constants.js';
import { Coordinate, GameOptions } from './types.js';
import { centerText, sleep } from './utils.js';
class Game {
private segments: Coordinate[] = [];
private apples: Coordinate[] = [];
private direction = Direction.RIGHT;
private a... |
<gh_stars>100-1000
import { AwsPostPlatformConfigHook } from "../config/aws-post-platform-config-hook.ts";
import {
CLICommand,
CLIName,
configFilePath,
configPath,
ConnectedConfig,
ConnectedConfigKey,
loadConfig,
writeConfig,
} from "../config/config.model.ts";
import { GcpPostPlatformConfigHook } from... |
// TODO(indutny): should be enum?
export const BLOCK_ID = {
CONSTANTS: 11,
FUNCTION: 12,
METADATA: 15,
METADATA_ATTACHMENT: 16,
METADATA_KIND: 22,
MODULE: 8,
PARAMATTR: 9,
PARAMATTR_GROUP: 10,
STRTAB: 23,
TYPE: 17,
VALUE_SYMTAB: 14,
};
// TODO(indutny): should be enum?
export const MODULE_CODE = ... |
import { Component, OnInit, AfterViewInit, NgZone } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { FormControl, FormGroup, FormBuilder, Validators, FormArray, AbstractControl } from '@angular/forms';
import { ZytoService } from '../../services/zyto.service';
import { GlobalStat... |
<reponame>xania/view
import { Template } from '../template';
import { compile } from '../compile';
import { ContainerMutationManager, ContainerMutationType } from './mutation';
import { RenderTarget } from '../renderable/render-target';
export interface ViewContainer<T = unknown> {
push(item: T): void;
pushMany(d... |
<filename>src/lib/output.ts
/*
* Copyright (c) 2020 <NAME> / DataScenarios
*
* All rights reserved.
*
* MIT License.
*
* 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 restr... |
<filename>src/cli.ts
import { AxiosError } from "axios";
import { printTable } from "console-table-printer";
import yargs from "yargs";
import {
generateMigakuDictionary,
getAvailableLanguages,
getFrequencyList,
getValidMonolingual,
wr,
zipMigakuDictionary,
} from "./api";
import { Arguments, FrequencyItem,... |
/*
* --------------------------------------------------------------------------------------------------------------------
* <copyright company="Aspose">
* Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a... |
/**
* @license
* 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 required by applicable law or ... |
import React, { Component } from 'react';
import { StyleSheet, View, FlatList, Text, TouchableOpacity, ListRenderItemInfo, GestureResponderEvent, TextStyle } from 'react-native';
import { TreeItem, TreeSelectProps } from '../..';
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff... |
<gh_stars>100-1000
/* eslint-disable @typescript-eslint/no-parameter-properties */
import { isPlatformBrowser } from '@angular/common';
import { AfterViewInit, Component, ElementRef, forwardRef, Inject, Input, NgZone, OnDestroy, PLATFORM_ID, InjectionToken, Optional } from '@angular/core';
import { ControlValueAccessor... |
<reponame>aggressivepixels/elm-language-client-vscode
import * as path from "path";
import {
CancellationToken,
CodeLens,
ExtensionContext,
Location,
OutputChannel,
Position,
ProviderResult,
Range,
TextDocument,
Uri,
window as Window,
workspace as Workspace,
WorkspaceFolder,
} from "vscode";
i... |
<gh_stars>0
import { Component, OnInit } from "@angular/core";
import { Router } from "@angular/router";
import Swal from "sweetalert2";
import { ElectronService } from "../core/services";
const puppeteer = require("puppeteer-core");
const fs = require("fs");
const XLSX = require("xlsx");
const xpath_send_button =
"... |
import * as RPCTypes from './rpc-gen'
import {ConversationIDKey} from './chat2'
import {RetentionPolicy} from './retention-policy'
import * as RPCChatTypes from './rpc-chat-gen'
import {TeamBuildingSubState} from './team-building'
export type TeamID = string
export const stringToTeamID = (s: string): TeamID => s
expor... |
import { View } from "tns-core-modules/ui/core/view";
import { Page, NavigatedData } from "tns-core-modules/ui/page";
import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout";
import { ScrollView } from "tns-core-modules/ui/scroll-view";
import { Label } from "tns-core-modules/ui/label";
import { FontStyl... |
import { parse as babelParse } from "@babel/parser";
import traverse, {
TraverseOptions,
NodePath,
Visitor,
Binding
} from "@babel/traverse";
import * as t from "@babel/types";
import * as recast from "recast";
import { Code } from "../editor/editor";
import { findScopePath } from "./scope";
const traverseNod... |
/**
* Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* from https://github.com/dsehnal/CIFTools.js
* @author <NAME> <<EMAIL>>
*/
/**
* A generic chunked array builder.
*
* When adding elements, the array grows by a specified number
* of elements and no copying is d... |
<reponame>rtviii/oracle-feeder<filename>feeder/src/index.ts
import { ArgumentParser } from 'argparse'
import { vote } from './vote'
import { updateKey } from './updateKey'
import * as packageInfo from '../package.json'
function registerCommands(parser: ArgumentParser): void {
const subparsers = parser.addSubparsers(... |
/*
* Copyright 2020 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
<gh_stars>1-10
/* eslint-disable no-var */
/* eslint-disable no-redeclare */
declare class DummyGestureRecognizer extends UIGestureRecognizer {
static alloc(): DummyGestureRecognizer; // inherited from NSObject
static new(): DummyGestureRecognizer; // inherited from NSObject
}
declare class FlingGestureHandle... |
import * as ServiceUser from './user';
import * as ServiceMessaging from './messaging';
import * as ServiceBriq from './briq';
import Games, { Move } from './games';
import Game from './games/game';
const games = Games.getInstance();
const USERNAME_REGEX = /<@([^|]*)\|([^>]*)>/;
type GetUsernameFromStringResult =
... |
import {
IndexTuple,
isIndexSegment,
isIndexTuple,
isKeySegment,
KeyedSegment,
Path,
PathSegment,
} from '@sanity/types'
const rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g
const reKeySegment = /_key\s*==\s*['"](.*)['"]/
const EMPTY_PATH: ... |
<reponame>ddprrt/barista
/**
* @license
* Copyright 2020 Dynatrace 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 require... |
import { Logger } from '../../../../cli';
import {
CommandOption
} from '../../../../Command';
import GlobalOptions from '../../../../GlobalOptions';
import request from '../../../../request';
import { GraphItemsListCommand } from '../../../base/GraphItemsListCommand';
import commands from '../../commands';
import { ... |
<reponame>barnettx/GoGovSG
import { injectable } from 'inversify'
import { Op, QueryTypes } from 'sequelize'
import _ from 'lodash'
import { Url, UrlType } from '../models/url'
import { UrlClicks } from '../models/statistics/clicks'
import { DailyClicks, DailyClicksType } from '../models/statistics/daily'
import { Dev... |
<filename>packages/artifact/src/internal/artifact-client.ts
import * as core from '@actions/core'
import {
UploadSpecification,
getUploadSpecification
} from './upload-specification'
import {UploadHttpClient} from './upload-http-client'
import {UploadResponse} from './upload-response'
import {UploadOptions} from '.... |
import Telegraf from "telegraf";
import express from "express";
import { CallbackButton } from "telegraf/typings/markup";
import { TelegrafContext } from "telegraf/typings/context";
import { Sources, Item, ItemInfo } from "./Util";
import {
search_mangaeden,
info_mangaeden,
chapter_mangaeden,
} from "./Sources/... |
import { Construct, Duration } from '@aws-cdk/core';
import {
Ec2TaskDefinition,
Ec2Service,
Protocol,
ContainerDefinitionOptions,
PortMapping,
Ec2ServiceProps,
ICluster,
LogDrivers,
ContainerDefinition,
ScalableTaskCount,
CpuUtilizationScalingProps,
RequestCountScalingProps,
PlacementStrategy... |
import cc from 'classcat'
import * as React from 'react'
import { merge } from 'rxjs'
import { Atom, classes, F } from '@grammarly/focal'
import { actionsItems } from '../../_generic/actions'
import { Logo } from '../../_generic/ui/Logo'
import { ShowIf } from '../../_generic/ui/ShowIf'
import { GetTheCode } from '..... |
<reponame>sycosquirl18/FluidFramework<filename>packages/drivers/local-driver/src/localDocumentDeltaConnection.ts
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { BatchManager, TypedEventEmitter } from "@fluidframework/common-utils";
import { IDocumentDelt... |
import { Ref, createRef, ComponentChildren, createElement, RefObject, createContext } from '../vdom'
import { setRef, BaseComponent } from '../vdom-util'
import { isPropsEqual } from '../util/object'
import { parseClassNames, ClassNamesInput } from '../util/html'
export interface RenderHookProps<HookProps> {
hookPr... |
import * as React from "react";
import { Button } from "components/Button";
import { FormField } from "components/form/FormField";
import { Loader } from "components/Loader";
import { Modal } from "components/modal/Modal";
import { useModal } from "state/modalState";
import { Form, Formik } from "formik";
import useFet... |
<filename>src/dev-server/index.ts<gh_stars>0
import type {
BuildOnEventRemove,
CompilerWatcher,
DevServerConfig,
Logger,
StencilDevServerConfig,
DevServer,
CompilerBuildResults,
InitServerProcess,
DevServerMessage,
} from '../declarations';
import { initServerProcessWorkerProxy } from './server-worker... |
import React, { useState } from "react";
import { styled } from "@mui/material/styles";
import Container from "@mui/material/Container";
import Card from "@mui/material/Card";
import CardContent from "@mui/material/CardContent";
import CardActions from "@mui/material/CardActions";
import Typography from "@mui/material/... |
import { ReactElement, useMemo } from 'react';
import { ExclamationCircleOutlined, DownloadOutlined, WarningOutlined, CheckCircleOutlined } from '@ant-design/icons';
import { Button, Popconfirm } from 'antd';
import { useStateValue } from '../../context/websocket/context';
import React from 'react';
import { useDispatc... |
import React from "react";
import styled from "@emotion/styled";
import {
ClickAwayListener,
Grid,
Icon,
IconButton,
InputAdornment as MuiInputAdornment,
Popper as MuiPopper,
TextField,
Typography,
} from "@material-ui/core";
import CloseIcon from "@material-ui/icons/Close";
import SearchIcon from "@mat... |
import * as assert from 'assert';
import axios, { AxiosError } from 'axios';
import buildDebug from 'debug';
import { Network } from '../../../src/networkTypes';
import { getMainnet, getNetworkName, isZcash } from '../../../src/coins';
import { RpcTransaction } from './RpcTypes';
const utxolib = require('../../../src... |
import { Event, Emitter, Path } from '../../../../utils';
import { TreeNodeEvent, ITreeNodeOrCompositeTreeNode } from '../../../types';
import { CompositeTreeNode, TreeNode } from '../../TreeNode';
import { ISerializableState } from './types';
export enum Operation {
SetExpanded = 1,
SetCollapsed,
SetActive,
}
... |
import { getConfig } from '@expo/config';
import { Flags } from '@oclif/core';
import assert from 'assert';
import chalk from 'chalk';
import Table from 'cli-table3';
import gql from 'graphql-tag';
import EasCommand from '../../commandUtils/EasCommand';
import { graphqlClient, withErrorHandlingAsync } from '../../grap... |
import { parseJS } from "@romejs/js-parser/index";
import { ImportDeclaration } from "@romejs/js-ast/index";
import { AbsoluteFilePath } from "@romejs/path/index";
import { ArrayElement } from "./useful-types";
const isRelativePath = (path: string) => {
return (
path.startsWith("./") || path.startsWith("../") |... |
import { useMutation, useQuery, useReactiveVar } from '@apollo/client'
import { useRouter } from 'next/router'
import React, {
Dispatch,
Ref,
RefObject,
SetStateAction,
useCallback,
useEffect,
useMemo,
useState,
} from 'react'
import styled from 'styled-components'
import { IMAGES } from '../../constant... |
<gh_stars>10-100
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*
*/
import { Observable, Observer, Subject, Subscription, from, isObservable, of } from 'rxjs';
impor... |
import { raiseError } from 'analytics'
import { Clippy, ClippyClassName } from 'components/Clippy'
import * as React from 'react'
import { $ } from 'utils/DOMHelper'
import { renderReact } from 'utils/general'
import { CopyFileButton, copyFileButtonClassName } from './CopyFileButton'
export function isInRepoPage() {
... |
import React, {useCallback, useMemo} from 'react';
import Page from '../../components/Page';
import {createGlobalStyle} from 'styled-components';
import {Route, Switch, useRouteMatch} from 'react-router-dom';
import {useWallet} from 'use-wallet';
import UnlockWallet from '../../components/UnlockWallet';
import PageHead... |
/*
* 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 { EuiButton, EuiHorizontalRule, EuiFlexGroup, EuiFlexItem } from '@ela... |
import { memo, useCallback, useEffect, useMemo } from "react";
import { FaRegTimesCircle } from "@react-icons/all-files/fa/FaRegTimesCircle";
import { FaSpinner } from "@react-icons/all-files/fa/FaSpinner";
import clsx from "clsx";
import { dissoc } from "ramda";
import { useForm, type SubmitHandler } from "react-hook... |
import { Localized } from "fluent-react/compat";
import { Match, Router, withRouter } from "found";
import React, {
KeyboardEvent,
MouseEvent,
useCallback,
useRef,
useState,
} from "react";
import { graphql } from "react-relay";
import { ModerateSearchBarContainer_story as ModerationQueuesData } from "coral-... |
<reponame>InternationalBlockchainMonetaryReserve/mese-wallet<gh_stars>0
import { FunctionalComponent } from 'preact';
import { html } from 'htm/preact';
import { useEffect, useState, useContext } from 'preact/hooks';
import { JsonRpcMethod } from '@mese/common/messaging/types';
import { StoreContext } from 'services/S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.