text stringlengths 9.82k 47.8k |
|---|
<reponame>jmenestr/react-docgen-typescript<filename>src/parser.ts
import * as fs from 'fs';
import * as path from 'path';
import * as ts from 'typescript';
import { buildFilter } from './buildFilter';
// We'll use the currentDirectoryName to trim parent fileNames
const currentDirectoryPath = process.cwd();
const curr... |
import {YearWeek} from './calendarweek/calendarweek';
import * as cw from './calendarweek/calendarweek';
import * as wu from 'wu';
import {zilabImpfsimVerteilungszenarien} from './data-interfaces/raw-data.interfaces';
import {
ISimulationResults, IVaccinationWeek, VaccineNumbers,
WeeklyDeliveryData,
WeeklyV... |
/*
Copyright 2021 The Matrix.org Foundation C.I.C.
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 in ... |
import MnemonicX86 from '../../x86/MnemonicX86';
import MnemonicVariationsX86 from '../../x86/MnemonicVariationsX86';
import * as a from '../atoms';
const mnemonic_add_0 = new MnemonicX86;
mnemonic_add_0.mnemonic = "or";
mnemonic_add_0.operandSize = 8;
mnemonic_add_0.opcode ... |
<gh_stars>1-10
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
import { WasmRoot, WasmRootBuffer, mono_wasm_new_root } from "./roots";
import { MonoClass, MonoMethod, MonoObject, coerceNull, VoidPtrNull, MonoType } from "./types";... |
// @ts-nocheck
/* eslint-disable react/prop-types */
import React from 'react';
import { debounce, isEmpty, isNil } from 'lodash-es';
import { Button, Icon, Text } from 'components/kit';
import ControlPopover from 'components/ControlPopover/ControlPopover';
import IllustrationBlock from 'components/IllustrationBlock/... |
/// <reference path="_data.d.ts" />
import mapping = require("./mapping");
import stores = require("./stores");
import context = require("./context");
import dataview = require("./dataview");
import adapters = require("./adapters");
import query = require("./query");
import guid = require("./guid");
import underscore ... |
//@ts-ignore
import { readFileSync } from 'fs';
import * as Viewer from '../viewer';
import * as Tex from './tex';
import { GfxBufferUsage, GfxDevice, GfxBindingLayoutDescriptor, GfxBlendMode, GfxBlendFactor, GfxFormat, GfxBuffer, GfxInputLayout, GfxInputState, GfxVertexAttributeDescriptor, GfxVertexAttributeFrequency... |
<filename>src/voice/index.ts
import { spawn } from 'child_process';
import dbg from 'debug';
import { VoiceConnection } from 'detritus-client/lib/media/voiceconnection';
import {
ChannelGuildVoice,
ChannelTextType,
User,
} from 'detritus-client/lib/structures';
import { Markup } from 'detritus-client/lib/utils';
... |
import { Survey } from "../models/surveys";
import * as AWS from "aws-sdk";
import { Batch } from "../models/batches";
import { User } from "../models/users";
import { Chat } from "../models/chats";
require("dotenv").config({ path: "./.env" });
export const runningLive = process.env.MTURK_MODE === "prod";
AWS.config.a... |
import React, { FC, ReactNode, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { validateMnemonic } from 'bip39';
import classNames from 'clsx';
import { useForm, Controller } from 'react-hook-form';
import useSWR from 'swr';
import Alert from 'app/atoms/Alert';
import FileInput, { FileInputP... |
<reponame>solidonline/hms-cordova-plugin
/*
Copyright 2020-2021. Huawei Technologies Co., Ltd. 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
https://ww... |
import type { EvmAccountInfo, EvmContractInfo } from '@acala-network/types/interfaces';
import {
EventType,
FeeData,
Filter,
Listener,
Log,
Provider as AbstractProvider,
Provider,
TransactionReceipt,
TransactionRequest,
TransactionResponse
} from '@ethersproject/abstract-provider';
import { getAddre... |
// Copyright (c) <NAME>. All rights reserved.
// Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typings/node/node.d.ts'/>
import ts = require("typescript");
import harness = require("./harness");
import path = require("path"... |
<filename>packages/lit-virtualizer/src/Virtualizer.ts
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
import getResizeObserver from './polyfillLoaders/ResizeObserver.js';
import { ItemBox, Margins, Layout, Positions, LayoutConstructor, LayoutSpecifier } from './layouts/shared/... |
// package:
// file: types.proto
import * as jspb from "google-protobuf";
import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb";
import * as exchange_pb from "./exchange_pb";
export class HDNodeType extends jspb.Message {
hasDepth(): boolean;
clearDepth(): void;
getDept... |
import { Blueprint } from "../blueprint/Blueprint";
import { clamp, floatEqual, Position, Vec2 } from "@rewind/osu/math";
import { PathControlPoint } from "../hitobjects/slider/PathControlPoint";
import { PathType } from "../hitobjects/slider/PathType";
import { TimeSignatures } from "../beatmap/TimeSignatures";
import... |
<gh_stars>0
import PouchDB from 'pouchdb';
import PouchDBFind from 'pouchdb-find';
import {Logger, LoggingService} from "ionic-logging-service";
import {NamedObject, ObjectWithUUID, TypedObject} from "../../scheduling/base-types";
import 'reflect-metadata';
import {SWBSafeJSON} from "../../common/json/safe-stringify";
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*
* Copyright (c) 2020 <NAME>. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import Animated from 'core/components/Animated'
import MobileDrawer from 'core/components/MobileDrawer'
import Tooltip from 'core/co... |
import { format } from 'timeago.js'
import { convertArrayToCSV } from 'convert-array-to-csv'
import { executeGiraffeql } from '~/services/giraffeql'
import * as models from '~/models/base'
import { CrudInputObject, CrudRawFilterObject } from '~/types/misc'
type StringKeyObject = { [x: string]: any }
export function g... |
import { useRef, useCallback, useEffect, useState } from "react";
import {
BloqCategory,
ConnectorPinMode,
IBoard,
IBloqLine,
IBloqType,
IComponent,
IComponentInstance,
IHardware,
IExtraData,
getBoardDefinition
} from "@bitbloq/bloqs";
import { UploadError } from "@bitbloq/code/src/useCodeUpload";
i... |
<gh_stars>1-10
import { LandRequestQueue } from './Queue';
import { BitbucketClient } from '../bitbucket/BitbucketClient';
import { LandRequestHistory } from './History';
import { Logger } from './Logger';
import { RunnerState, Config, LandRequestOptions } from '../types';
import { withLock } from './utils/locker';
imp... |
<filename>src/index.ts
import * as utils from './utils'
export interface PrefixList {
'background'?: string
'border-all'?: string
'border-left'?: string
'border-right'?: string
'border-top'?: string
'border-bottom'?: string
'border-color'?: string
'border-top-color'?: string
'border-right-color'?: st... |
import os from "os";
import { exit } from "./process";
import {
authz,
getAppBlocksByComposite,
getAppRoleForUserOrInvitee,
getAppUserGrantsByComposite,
getEnvironmentName,
getSubEnvironmentsByParentEnvironmentId,
graphTypes,
} from "@core/lib/graph";
import chalk from "chalk";
import * as R from "ramda";... |
import { window, workspace, Uri, Position, QuickInputButton, QuickPickItem, TextEditorEdit } from 'vscode'
import { getWorkspaceRoot, winRootPathHandle, getRelativePath, open } from '../utils/util'
import * as path from 'path';
import * as fs from 'fs'
const camelCase = require('camelcase');
import NewPage from './new... |
import React, {RefObject} from 'react';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
import {faChevronRight, faChevronLeft, faStepBackward, faStepForward, faFilter, faPlusCircle, faEdit, faTrashAlt} from '@fortawesome/free-solid-svg-icons'
import './TableContent.css'
import TableType from '../TableTy... |
export const enum GL {
// None
NONE = 0x0000,
// ReadBuffer
BACK = 0x405,
// BlendEquation
FUNC_ADD = 0x8006,
FUNC_REVERSE_SUBTRACT = 0x800b,
FUNC_SUBTRACT = 0x800a,
MAX = 0x8008,
MIN = 0x8007,
// BlendFu... |
/* constant parameters */
const WSIZE = 32768; // Sliding Window size
const STORED_BLOCK = 0;
const STATIC_TREES = 1;
const DYN_TREES = 2;
/* for inflate */
const lbits = 9; // bits in base literal/length lookup table
const dbits = 6; // bits in base distance lookup table
/* variables (inflate) */
let slide: number[];
... |
import {
trigger,
state,
style,
transition,
animate,
} from '@angular/animations';
import { SelectionModel } from '@angular/cdk/collections';
import { Component, ElementRef, Input, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';... |
import RendererDevice from "../vox/render/RendererDevice";
import RendererParam from "../vox/scene/RendererParam";
import RendererState from "../vox/render/RendererState";
import RenderStatusDisplay from "../vox/scene/RenderStatusDisplay";
import Axis3DEntity from "../vox/entity/Axis3DEntity";
import Plane3DEntity fro... |
<reponame>097475/backend<filename>src/comparator.ts
import { Country, Crime, getData } from './loader'; // getData will return luxembourg's data so far
const ICCS: {
[key: string]: string;
} = {
'01': 'Acts leading to death or intending to cause death',
'0101': 'Intentional homicide',
'0102': 'Attempte... |
<gh_stars>0
import tcp from '../../../tcp'
import KairosInstance from '.'
// OK, Warning, Error, Unknown
type TCPStatus = 0 | 1 | 2 | null
interface TCPSockets {
main: tcp | null
}
export class TCP {
private readonly instance: KairosInstance
private sockets: TCPSockets = {
main: null,
}
private tcpHost: strin... |
import type { BBTagProps } from 'components/BBCode/BBTags';
import type { integer } from 'lib/types';
import type { ParseNodeOptions } from 'lib/client/parseBBCode/parseNode';
import BBTags from 'components/BBCode/BBTags';
import preventWhitespaceCollapse from 'lib/client/parseBBCode/preventWhitespaceCollapse';
import ... |
<gh_stars>0
import { promises as fsp } from 'fs'
import * as path from 'path'
/**
* Returns a random integer between `min` and `max`
* @param min Minimum possible output
* @param max Maximum possible output
*/
export function randomInt(min: number, max: number) { return Math.floor(Math.random() * (Math.floor(max +... |
<gh_stars>1-10
import * as path from "path";
import { TestStatus } from "../enums";
import { Event, EventEmitter } from "../events";
import { ErrorNotification, PrintNotification } from "../test_protocol";
import { flatMap, notUndefined, uniq } from "../utils";
import { sortBy } from "../utils/array";
import { fsPath }... |
<reponame>gearsns/vscode-textnovel
import * as vscode from 'vscode';
export type OriginEditor = vscode.TextEditor | "active" | undefined;
import { narou2html } from './narou';
import { aozoraText2Html } from './aozora';
import { HttpServer } from './httpServer';
import { WSServer } from './wsServer';
import * as jschar... |
import React from 'react'
import PropTypes from 'prop-types'
import LayoutDefault from './Layout'
import InputDefault from './Input'
import PreviewDefault from './Preview'
import SubmitButtonDefault from './SubmitButton'
import {
formatBytes,
formatDuration,
accepts,
resolveValue,
mergeStyles,
defaultClass... |
<gh_stars>0
import fs from 'fs-extra';
import * as path from 'path';
import glob from 'glob';
import { CloudFormation, Fn, Template } from 'cloudform-types';
import { DeploymentResources } from '../DeploymentResources';
import { GraphQLTransform, StackMapping } from '../GraphQLTransform';
import { ResourceConstants } f... |
import { Vector3, Quaternion, Matrix4 } from "three";
import HID from "node-hid";
enum JoyConHIDIdentifiers {
Left = 0x2006,
Right = 0x2007,
Pro = 0x2009
}
export enum DebugType {
NONE,
ALL,
COMMS,
THREADING,
IMU,
RUMBLE
}
enum SendType {
Subcommand = 0x01,
Rumble = 0x10
}
enum JoyConAttachmen... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { Kernel } from '@jupyterlab/services';
import * as fs from 'fs-extra';
import { inject, injectable } from 'inversify';
import * as os from 'os';
import * as path from 'path';
import { URL } from... |
/* eslint-disable @typescript-eslint/ban-types, @typescript-eslint/no-empty-interface, @typescript-eslint/no-namespace, import/export */
import { OptgroupProps } from './block-kit/composition/Optgroup'
import { OptionProps } from './block-kit/composition/Option'
import { ButtonProps } from './block-kit/elements/Button'... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import * as path from 'path';
import {
CancellationToken,
CancellationTokenSource,
Event,
EventEmitter,
Memento,
Uri,
ViewColumn,
WebviewPanel
} from 'vscode';
import '../../comm... |
/**
* @license
* Copyright 2017 Google Inc.
*
* 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... |
<reponame>dwiegreffe/mdsrv
/**
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
import { Color, ColorMap } from '../../../../mol-util/color';
import { SaccharideNames } from '../../model/types/saccharides';
... |
import i18next from "i18next";
import { computed } from "mobx";
import CesiumMath from "terriajs-cesium/Source/Core/Math";
import Rectangle from "terriajs-cesium/Source/Core/Rectangle";
import URI from "urijs";
import containsAny from "../../../Core/containsAny";
import createDiscreteTimesFromIsoSegments from "../../..... |
<reponame>talsi/ng2-electron
import * as _ from 'lodash';
import {
buildFormGroupTemplate, checkInlineType, copy, forEach, getControl,
getFromSchema, getInputType, hasOwn, inArray, isArray, isEmpty,
isInputRequired, isNumber, isObject, isDefined, isString, JsonPointer,
toTitleCase, updateInputOptions
} from '.... |
<gh_stars>0
import { EmbeddedViewRef, ElementRef, NgZone, TemplateRef, ViewContainerRef } from '@angular/core';
import { coerceBooleanProperty, coerceElement } from '@angular/cdk/coercion';
import { normalizePassiveListenerOptions } from '@angular/cdk/platform';
import { ViewportRuler } from '@angular/cdk/scrolling';
i... |
<filename>src/session.ts
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import cp = require("child_process");
import fs = require("fs");
import net = require("net");
import path = requ... |
// Copyright 2017-2019 @polkadot/app-staking authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { AccountFilter, RecentlyOfflineMap } from '../types';
import { AccountId, Exposure, StakingLedger, ValidatorPrefs,... |
<gh_stars>1-10
import { ENV } from 'back-end/config';
import { generateUuid } from 'back-end/lib';
import { Connection, Transaction, tryDb } from 'back-end/lib/db';
import { console as consoleAdapter } from 'back-end/lib/logger/adapters';
import { readOneFileById } from 'back-end/lib/db/file';
import { readOneCWUAwarde... |
<gh_stars>10-100
import { app, ipcMain } from 'electron';
import fs from 'fs';
import path from 'path';
import xl from 'excel4node';
import { imageSize } from 'image-size';
import * as musicMetadata from 'music-metadata';
import mime from 'mime-types';
import FileUtils, { ImageResizeSize } from './fileUtils';
import Co... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import _ from "lodash";
import React, { RefObject } from "react";
import { connect } from "react-redux";
import { RouteComponentProps } from "react-router-dom";
import SplitPane from "react-split-pane";
import { bindActionCreators } from "redux... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 - present Instructure, 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 ri... |
'use strict';
export interface IParam { name: string; description: string; }
export interface IEntry { description: string; signature: string; parameters?: IParam[]; }
export interface IEntries { [name: string]: IEntry; }
export interface ILibEntries { [name: string]: IEntries; }
const led = {
name: 'led',
de... |
import i18next from "i18next";
import { action, computed, observable, runInAction } from "mobx";
import { createTransformer, ITransformer } from "mobx-utils";
import DeveloperError from "terriajs-cesium/Source/Core/DeveloperError";
import JulianDate from "terriajs-cesium/Source/Core/JulianDate";
import CustomDataSource... |
import { Filter, OrderBy, shouldSelectSeparately, getUniqueFields, SelectOptions } from './database';
import { Record } from './record';
import {
FlatNode,
FunctionCallNode,
InfixNode,
Kind,
ListNode,
NameNode,
Node as AST,
PrefixNode,
rewrite,
rewriteFlat,
StarNode,
} from './parser/ast';
import ... |
import React, { useState, useMemo, useEffect, useRef, useCallback } from 'react';
import {
makeStyles,
createStyles,
LinearProgress,
TextField,
Button,
Icon,
Paper,
Switch,
FormControlLabel,
Checkbox
} from '@material-ui/core';
import { red, grey } from '@material-ui/core/colors';
... |
/**
* @license
* Copyright 2013 Palantir Technologies, Inc.
*
* 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... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import React from "react";
import { connect } from "react-redux";
import { RouteComponentProps } from "react-router-dom";
import { bindActionCreators } from "redux";
import { FontIcon, PrimaryButton, Spinner, SpinnerSize, IconButton, TextField,... |
/*
* Copyright (c) 2009, Mozilla Corp
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of con... |
import { EventDispatcher } from '../events/EventDispatcher';
import { ApplicationDomain } from '../system/ApplicationDomain';
import { IOErrorEvent } from '../events/IOErrorEvent';
import { ProgressEvent } from '../events/ProgressEvent';
import { Event } from '../events/Event';
import { ILoader } from '../ILoader';
imp... |
<filename>src/props.ts
import React from "react";
import { getRenderedJSON } from "./index";
import * as utilities from "./utils";
import {
getComponentFromMap,
getReactFunctionComponent,
getReactClassComponent,
makeFunctionComponent,
} from "./components";
// if (typeof window === 'undefined') {
// ... |
<reponame>ignatandrei/BlocklyAutomation
import * as FileSaver from "file-saver";
import { DockerData } from "projects/docker-extension/src/public-api";
declare var require: any;
const synthPiano = require('./js/audioTest.js');
// const vex = require('vex-js');
// vex.registerPlugin(require('vex-dialog'));
export clas... |
// Copyright 2016-2018, Pulumi 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... |
import { Alpha2Code, Alpha3Code } from './types';
export type CountryCodeIdentifier = readonly [
alpha2Code: Alpha2Code,
alpha3Code: Alpha3Code,
numeric: string,
invertedNumeric: string
];
export const COUNTRY_CODES: ReadonlyArray<CountryCodeIdentifier> = [
['AD', 'AND', '020', 'ISO 3166-2:AD'],
['AE', 'A... |
type ObjectMap<T> = Record<string, T>;
type AttrTypes = string | number | RegExp | null | boolean;
type PluginFn = (this: Component, ctor: typeof Component, pluginOptions?: ObjectMap<any>) => void;
interface AttrDefinition {
required?: boolean;
type: string | Function;
validator?(value: any): boolean;
default?... |
import { closeParenStyle, indentSpaces, longListFormatStyle, maximumLineChars } from '../format/fmtconfig';
import { isInternalAutoLispOp } from '../completion/autocompletionProvider';
import { Position } from 'vscode';
import { LispAtom } from './lispAtom';
// This AST Object is a legacy object almost entirely used f... |
<reponame>duxingyu/duxingyu.github.io
let sound: {[x: string]: Howl} = {};
type timers = {
/** 清理定时器 */
clear: () => void;
}
let chLevel = 0;
let bookNum = 1;
let Linkpre;
let bookSlideData = null;
let recorder = Recorder();
let recorderIndex = 0;
let handtipShow = false;
let timers = new Array() as Array<number> ... |
import { CstNode, IToken } from 'chevrotain';
import {
Condition,
ConditionWithValueQuery,
DateLiteral,
DateNLiteral,
Field,
FieldFunctionExpression,
FieldRelationship,
FieldRelationshipWithAlias,
FieldSubquery,
FieldType,
FieldTypeOf,
FieldTypeOfCondition,
FieldWithAlias,
FunctionExp,
Gro... |
const HEIGHT = 2560;
const WIDTH = 1440;
const PX = 60;
const DT = 0.02;
const DT_A = 3;
const DT_B = 5;
const IMOVE = 100;
const STR = "鼠标/手指在屏幕上滑动的方式控制小白上下左右移动,寻找食物,艰难求生。。。\n\n小青(丧尸)会被200范围内的食物吸引,范围内没食物则原地不动。。。" +
"\n\n饥饿会让生命减少,生命降至0则游戏结束。。。\n\n挑战你的生存极限。。。";
const {ccclass, property} = cc._decorator;
@ccclass
expor... |
/*
GlkOte windows
==============
Copyright (c) 2022 <NAME>
MIT licenced
https://github.com/curiousdannii/asyncglk
*/
import {debounce} from 'lodash-es'
import Blorb from '../../blorb/blorb.js'
import {NBSP} from '../../common/constants.js'
import * as protocol from '../../common/protocol.js'
import {TextInput} fr... |
import { RFPercentage } from 'react-native-responsive-fontsize';
import { Device } from './device';
import { Dimensions, StyleSheet } from 'react-native';
import { isIphoneX } from 'react-native-iphone-x-helper';
import { isIPhoneXMax } from 'react-native-status-bar-height';
const BASE_FONT_SIZE = 2;
function ReduceTe... |
import Button from "button";
import DragManager from "drag-manager";
import { Component, DOM, JSX } from "wapitis";
import WindowsManager from "windows-manager";
new WindowsManager().initEvents();
interface IWindowOpts {
[key: string]: any;
title?: string;
left?: number;
top?: number;
width?: numb... |
// You have to create a function called createthis.scene. This function must return a BABYLON.this.scene object
// You can reference the following variables: this.scene, canvas
// You must at least define a camera
// More info here: https://doc.babylonjs.com/generals/The_Playground_Tutorial
import { ElementRef, Injecta... |
import gearIcon from "../img/gearicon.svg";
import Slider from "rc-slider";
import "rc-slider/assets/index.css";
import Switch from "react-switch";
import Select from "react-select";
import Popup from "reactjs-popup";
import React, { useCallback, useEffect, useState } from "react";
import { Netspeak, NetspeakApiKind,... |
<filename>client/ts/ganclient.ts
import * as d3 from 'd3'
import {brush} from 'd3'
import "d3-selection-multi";
import '../css/ganclient.scss'
// import '../node_modules/font-awesome/css/font-awesome.min.css'
import "!file-loader?name=index.html!../index.html";
import {SimpleEventHandler} from "./etc/SimpleEven... |
<filename>src/index.ts
// Copyright (C) 2021 Toitware ApS. All rights reserved.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.
import { ESP32, Stub } from "./stubs";
import { sleep, toByteArray, toHex, Uint8Buffer, Uint8BufferSlipEncode } from "./util";
export... |
<reponame>rhysd/YourFukurou
import {fixture} from '../../helper';
import test from 'ava';
import {List} from 'immutable';
import TimelineState, {DefaultTimelineState, TimelineKind} from '../../../../renderer/states/timeline';
import Item from '../../../../renderer/item/item';
import Tweet from '../../../../renderer/ite... |
import { map, filter, includes, orderBy, compact } from 'lodash';
import * as _ from 'lodash';
import { shortid, pool, client } from './utils'
import bcrypt from 'bcrypt';
import { get_public_key } from './keys'
import * as keys from './keys'
import * as users from './users'
import * as error_code from '../error_codes'... |
import gql from 'graphql-tag'
import * as React from 'react'
import * as ApolloReactCommon from '@apollo/react-common'
import * as ApolloReactComponents from '@apollo/react-components'
import * as ApolloReactHoc from '@apollo/react-hoc'
import * as ApolloReactHooks from '@apollo/react-hooks'
export type Maybe<T> = T
ex... |
import * as URI from 'urijs';
import {View} from 'ui/core/view';
import {ScrollView} from 'ui/scroll-view'
import {Color} from 'color';
import {GridLayout, ItemSpec} from 'ui/layouts/grid-layout';
import {Label} from 'ui/label';
import {Button} from 'ui/button';
import {Progress} from 'ui/progress';
import {ArgonWebVie... |
<reponame>tth05/obsidian-completr
import {
getSuggestionDisplayName,
getSuggestionReplacement,
Suggestion,
SuggestionContext,
SuggestionProvider
} from "./provider";
import {CompletrSettings} from "../settings";
import {isInLatexBlock} from "../editor_helpers";
import {Notice, Vault} from "obsidian"... |
import * as UTILS from '../utils';
import * as COLOR from '../color';
import * as XY from '../xy';
import * as TWEEN from '../tween';
import * as EVENTS from './events';
import * as TIMERS from './timers';
import * as IO from '../app/io';
import { App } from './app';
// import * as CANVAS from '../canvas';
import { Tw... |
<filename>src/core/main_chain.ts
import storage from '../storage/storage';
import sqlstore from '../storage/sqlstore';
import * as _ from 'lodash';
import * as genesis from '../core/genesis';
import * as hcom from '../core/headers_commission';
import * as pcom from '../core/payload_commission';
import * as objectHash f... |
<reponame>HuangLuGuang/ghkjsdfsd
import { Component, OnInit, NgZone, ChangeDetectionStrategy } from "@angular/core";
import { LocalStorageService } from "../../../../services/local-storage/local-storage.service";
// my-echart
let second_level = require("../../../../../assets/pages/device-inline/js/second-level");
/... |
import { expectType, TypeOf } from 'ts-expect';
import chroma from 'chroma-js';
import { Listing } from '../components/Providers/FerryProvider';
// Phrases for search speed [50 character limit]
export const searchSpeed = {
fast: [
'fast',
'kinda fast',
'not too slow',
'you try loading this many cours... |
import resolveItems from './util/resolveItems';
const barrows = resolveItems([
"Ahrim's hood",
"Ahrim's robetop",
"Ahrim's robeskirt",
"Ahrim's staff",
"Ahrim's armour set",
"Dharok's helm",
"Dharok's platebody",
"Dharok's platelegs",
"Dharok's greataxe",
"Dharok's armour set",
"Guthan's helm",
"Guthan's p... |
<gh_stars>100-1000
/**
* Copyright (c) Cisco Systems, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
export const alertTypes = ["error", "info", "success", "warn", "default"];
export const messageType = [... |
/*
* Copyright (c) 2006-2009 <NAME> http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
... |
import {OnsInputElement, OnsSearchInputElement} from "onsenui";
import Log from "../../../../../../common/Log";
import {
AssignmentGrade,
AssignmentRubric,
QuestionGrade, SubQuestionGrade,
SubQuestionRubric
} from "../../../../../../common/types/CS340Types";
import {DeliverableTransport, RepositoryTrans... |
<reponame>ErwanDL/vscode-python
import { nbformat } from '@jupyterlab/coreutils';
import * as fastDeepEqual from 'fast-deep-equal';
import { inject, injectable, named } from 'inversify';
import * as path from 'path';
import * as uuid from 'uuid/v4';
import { CancellationToken, Event, EventEmitter, Memento, Uri } from '... |
/**
* Created by sam on 30.01.2015.
*/
import * as d3 from 'd3';
import * as $ from 'jquery';
import {randomId, mixin, bounds} from 'phovea_core/src/index';
import {IMultiForm, MultiForm, MultiFormGrid, create as createMultiform, createGrid, addIconVisChooser} from 'phovea_core/src/multiform';
import {wrap, rect} fro... |
<reponame>ix4/egjs-view360<filename>src/YawPitchControl/YawPitchControl.ts
import Component, { ComponentEvent } from "@egjs/component";
import Axes, { PinchInput, MoveKeyInput, WheelInput } from "@egjs/axes";
import { vec2, quat, glMatrix } from "gl-matrix";
import { SUPPORT_TOUCH, SUPPORT_DEVICEMOTION } from "../util... |
<filename>server/src/lib/session-helper.ts<gh_stars>0
import * as _ from 'underscore';
import * as actorHelper from './actor-helper';
import * as buildInfo from './build-info';
import * as configLoader from '../lib/config-loader';
import * as constants from '../lib/constants';
import * as dbManager from '../lib/db-mana... |
import React from "react";
import { useEffect } from "react";
import styled from "styled-components";
import { useDispatch, useSelector } from "react-redux";
import { closeAllPanels, setCurrentCodeError } from "@codestream/webview/store/context/actions";
import { useDidMount, usePrevious } from "@codestream/webview/uti... |
<filename>server/server.ts<gh_stars>1-10
/**
* Copyright © 2021 <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
*
* 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, in... |
import { Injectable, Renderer2, Inject, isDevMode, NgZone, Optional } from '@angular/core';
import { LY_THEME_NAME, ThemeVariables, LY_THEME, LY_THEME_GLOBAL_VARIABLES, ThemeConfig } from './theme-config';
import { CoreTheme } from './core-theme.service';
import { DataStyle } from '../theme.service';
import { DOCUMENT ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<gh_stars>1-10
import * as _ from 'underscore'
import { Random } from 'meteor/random'
import { PeripheralDevices, PeripheralDevice } from '../../lib/collections/PeripheralDevices'
import { PeripheralDeviceAPI } from '../../lib/api/peripheralDevice'
import { StatusCode } from '../../server/systemStatus/systemStatus'
imp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.