text stringlengths 3.08k 15.5k |
|---|
import { useState } from 'react';
import {
ActionIcon,
Box,
Paper,
Title,
Tooltip,
TextInput,
Text,
} from '@mantine/core';
import { DragDropContext, Droppable, DropResult } from 'react-beautiful-dnd';
import { Client, Proposal, ProposalContent } from '@/core/types';
import { useRecoilState } from 'recoil... |
<filename>src/vs/workbench/browser/editor.ts<gh_stars>0
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-------... |
<filename>src/renderer/notification-handler.ts
import * as asyncMap from 'async.map';
import { app } from 'electron';
import * as electron from 'electron';
import { windowExists } from '../app/window-utils';
import { isLinux, isMac } from '../common/env';
interface ISettings {
startCorner: startCorner;
displa... |
<filename>src/compiler_next/config/load-config.ts
import { buildError, catchError, isString, normalizePath, hasError } from '@utils';
import { CompilerSystem, Config, Diagnostic, LoadConfigInit, LoadConfigResults } from '../../declarations';
import { createLogger } from '../sys/logger';
import { createSystem } from '..... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
import {
AddEventsBehaviour,
AlloyComponent,
AlloyEvents,
All... |
<filename>Source/Applications/openXDA/openXDA/wwwroot/SPCTools/Scripts/TSX/store/WizardVoltageOptionSlice.ts<gh_stars>10-100
//******************************************************************************************************
// WizardVoltageOptionSlice.ts - Gbtc
//
// Copyright © 2020, Grid Protection Alliance.... |
<reponame>Lykoi18/resolve
import stream from 'stream'
import { EOL } from 'os'
import {
BUFFER_SIZE,
PARTIAL_EVENT_FLAG,
MAINTENANCE_MODE_AUTO,
MAINTENANCE_MODE_MANUAL,
BATCH_SIZE,
} from './constants'
import { ResourceNotExistError } from './resource-errors'
import type {
AdapterBoundPool,
ImportOptio... |
/**
* @author <NAME>
* @license MIT
*/
import { XAttribute, XName, XNamespace } from '@openxmldev/linq-to-xml';
import {
NoNamespace,
A,
A14,
A15,
A16,
DS,
M,
O,
P,
P14,
P15,
R,
SL,
V,
W,
W10,
W14,
W15,
WP,
WPC,
WPG,
WPS,
X,
X14,
X15,
XML,
CP,
DC,
DCTERMS,
... |
import * as p5 from "p5";
import "p5/lib/addons/p5.sound";
import "p5/lib/addons/p5.dom";
document.body.style.overflow = "hidden";
interface Dot {
x: number;
y: number;
size: number;
sizeMax: number;
sizeMin: number;
}
interface DotGrid {
x: number;
y: number;
rows: number;
cols: number;
dots: Do... |
import { IsString } from 'class-validator';
import { CloudEvent } from 'cloudevents';
import { loggerMock } from './logger.mock';
import { FlowApplication, FlowEvent, FlowFunction, FlowModule, FlowResource, InputStream } from '../lib';
/* eslint-disable no-console */
describe('Flow Application', () => {
test('FLOW.... |
<gh_stars>10-100
import { formatUnits } from '@ethersproject/units';
import { BigNumber } from '@ethersproject/bignumber';
import { multicall } from '../../utils';
const BIG18 = BigNumber.from('1000000000000000000');
export const author = 'FraxFinance';
export const version = '0.0.2';
// 0.0.1: FXS Plus FXS in LPs
/... |
/* eslint global-require: off */
/**
* This module executes inside of electron's main process. You can start
* electron renderer process from here and communicate with the other processes
* through IPC.
*
* When running `npm run build` or `npm run build-main`, this file is compiled to
* `./app/main.prod.js` usin... |
<filename>packages/presence-client/src/presenceSync.ts
import { Presence, PresenceClient, PresenceMessage } from '@syncot/presence'
import { assert, EmitterInterface, noop, SyncOTEmitter } from '@syncot/util'
import { Duplex } from 'readable-stream'
/**
* The events emitted by `PresenceSync`.
*/
export interface Pre... |
<filename>src/services/DiscoveryService.ts
import Parser from 'rss-parser';
import fetch from 'cross-fetch';
import schedule from 'node-schedule';
import logger from "@log";
import Database from "@db";
import { Anime } from '@database/entities/Anime';
import { RateableEpisode } from '@database/entities/RateableEpisod... |
<reponame>nannadao/libman-mern-BE
import { Request, Response, NextFunction } from 'express'
import User, { UserType } from '../models/User'
import Book, { BookType } from '../models/Book'
import { BadRequestError, NotFoundError } from '../helpers/apiError'
import { error } from 'winston'
async function createBook(req... |
import React from "react";
import { Link, match } from "react-router-dom";
import Button from "@material-ui/core/Button";
import Switch from "@material-ui/core/Switch";
import SaveIcon from "@material-ui/icons/Save";
import Divider from "@material-ui/core/Divider";
import PageBase from "../components/PageBase";
import ... |
export const APP_FOLDER_NAME = "app";
export const APP_RESOURCES_FOLDER_NAME = "App_Resources";
export const PROJECT_FRAMEWORK_FOLDER_NAME = "framework";
export const NATIVESCRIPT_KEY_NAME = "nativescript";
export const NODE_MODULES_FOLDER_NAME = "node_modules";
export const TNS_MODULES_FOLDER_NAME = "tns_modules";
exp... |
import React, { useRef, useState } from "react";
import clsx from "clsx";
import {
Badge,
Box,
Button,
darken,
Divider,
Grid,
IconButton,
Popover,
Theme
} from "@mui/material";
import createStyles from "@mui/styles/createStyles";
import makeStyles from "@mui/styles/makeStyles";
impo... |
import DateFnsUtils from '@date-io/date-fns'
import {
Button,
Checkbox,
FormControl,
FormControlLabel,
FormGroup,
FormLabel,
Grid,
Paper,
Radio,
RadioGroup,
TextField,
Typography
} from '@material-ui/core'
import {
KeyboardTimePicker,
MuiPickersUtilsProvider
} from '@material-ui/pickers'
imp... |
/*
* ## INCEpTION ##
* Licensed to the Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file to you under the Apa... |
import { em, rem } from "polished";
import { colors } from "@karrotmarket/design-token";
import { createStitches } from "@stitches/react";
import { convertColorScheme } from "./colors";
export type MediaType = `@${"i" | "sm" | "md" | "lg" | "xl" | "xxl"}`;
export const MediaTypeList: MediaType[] = [
"@i",
"@sm",
... |
import React, { Component } from 'react';
import { Record } from 'immutable';
import { withStyles } from '@material-ui/core/styles';
import { getAppExtra } from '../utils/itemExtra';
import Loader from '../Loader';
import {
APP_ITEM_FRAME_BORDER,
APP_ITEM_WIDTH,
ITEM_MAX_HEIGHT,
} from '../constants';
import with... |
import { Button, Checkbox, StyledLink } from '@nextui-org/react'
import { motion } from 'framer-motion'
import { NextPage } from 'next'
import { signIn, useSession } from 'next-auth/react'
import Image from 'next/image'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useState } from 'react... |
<reponame>bpetetot/react-dnd<filename>packages/core/react-dnd/src/common/SourceConnector.ts<gh_stars>0
import * as React from 'react'
import wrapConnectorHooks from './wrapConnectorHooks'
import { Backend, Unsubscribe, Identifier } from 'dnd-core'
import { isRef } from '../utils/isRef'
import { DragSourceOptions, DragP... |
import * as path from "path";
import * as fs from "fs/promises";
import {
CloneSet,
DetectionResult,
Fragment,
Query,
QueryParameters
} from "types";
import { configTemplate } from "configTemplate";
import * as ChildProcess from "child_process";
const deckardRoot = "/Deckard";
const deckardSh = path.resolve(
dec... |
import {
ISocketMessage,
ITransportEvent,
INetworkMonitor,
ITransportLib,
ISocketTransportOptions,
} from "@exodus/walletconnect-types";
import {
getQueryString,
appendToQueryString,
} from "@exodus/walletconnect-utils";
import NetworkMonitor from "./network.js";
// @ts-ignore
const WS = typeof global.W... |
import { afterEach, describe, expect, it } from 'vitest';
import validator from 'validator';
import { faker } from '../dist/cjs';
// TODO @prisis 2022-01-31: Add multiple seed based expectations.
const seededRuns = [
{
seed: 42,
expectations: {
fileName: 'mobile_application.wad',
commonFileName: ... |
<filename>src/rendering/webgl/programs/edge.ts
/**
* Sigma.js WebGL Renderer Edge Program
* =====================================
*
* Program rendering edges as thick lines using four points translated
* orthogonally from the source & target's centers by half thickness.
*
* Rendering two triangles by using only ... |
import stringifyObject from 'stringify-object';
import safeEval from 'safe-eval';
import getStdin from 'get-stdin';
import commander from 'commander';
import chalk from 'chalk';
import _ from 'lodash';
import { from } from 'fromfrom';
import jsonMinify from 'jsonminify';
import csv from 'csvtojson';
import unescapeJs f... |
<reponame>bcameron1231/sp-dev-fx-webparts<filename>samples/react-staffdirectory/src/webparts/staffDirectory/StaffDirectoryWebPart.ts
import * as React from 'react';
import * as ReactDom from 'react-dom';
import { Version, DisplayMode } from '@microsoft/sp-core-library';
import {
IPropertyPaneConfiguration,
Property... |
<reponame>jwoodrow/pdf-lib
import { execSync } from 'child_process';
import fs from 'fs';
import os from 'os';
import readline from 'readline';
import test1 from './tests/test1';
import test10 from './tests/test10';
import test11 from './tests/test11';
import test12 from './tests/test12';
import test2 from './tests/te... |
<filename>lib/dialogue-agent/protocol/connection.ts
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Genie
//
// Copyright 2021 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may... |
<filename>src/sockets/crontab.ts
import cron from "node-cron";
import { log } from "../logger";
// const MINUTES = process.env.MINUTES || 5;
const HOURS = "*";
const DAY_OF_MONTH = "*";
const MONTH = "*";
const DAY_OF_WEEK = "*";
/**
* a Tricktionary scheduled-task
*
* @name - semantic name of this task; ie "pulse... |
import React, { useEffect, useMemo, useRef, useState } from 'react';
import get from 'lodash/get';
import { SortInfo, PrimaryTableCol, SortType, DataType, SortOptions, TableSort, TdPrimaryTableProps } from '../type';
import SorterButton, { SortTypeEnum } from './SorterButton';
import { InnerPrimaryTableProps } from './... |
export { default as Columns } from './grid/Columns';
export { default as Column } from './grid/Column';
export { default as Tile } from './grid/Tile';
export { default as Box } from './elements/Box';
export { default as Button } from './elements/Button';
export { default as Content } from './elements/Content';
export {... |
<filename>src/commons/sagas/RemoteExecutionSaga.ts<gh_stars>10-100
import { SlingClient } from '@sourceacademy/sling-client';
import { assemble, compile, Context } from 'js-slang';
import { ExceptionError } from 'js-slang/dist/errors/errors';
import { SagaIterator } from 'redux-saga';
import { call, put, race, select, ... |
<filename>src/Profiler/Profiler.ts
{
const g = global as any;
if (!g.__PROFILER_ENABLED__) { g.__PROFILER_ENABLED__ = false; }
}
/* tslint:disable:ban-types */
export function init(): Profiler {
const defaults = {
data: {},
total: 0,
};
if (!Memory.profiler) { Memory.profiler = defaults; }
const ... |
<reponame>duckisanidiot/boteline
import * as util from '../lib/util.js';
import * as Discord from 'discord.js';
import * as cs from '../lib/commandsystem';
import { createCanvas, loadImage } from 'canvas';
Discord;
class CanvasGradientApplyCommand extends cs.Command {
public gradient: string[];
public bottomstring:... |
/*
* Copyright 2020 EPAM Systems
*
* 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 ... |
<reponame>siefkenj/vscode-js-profile-visualizer<filename>packages/vscode-js-profile-flame/src/realtime/frameCanvas.ts
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import { Metric } f... |
import * as React from 'react'
import { isRight } from '../../../../../core/shared/either'
import {
useWrappedSubmitFactoryEmptyOrUnknownOnSubmitValue,
NumberInput,
InspectorSubsectionHeader,
FlexRow,
SquareButton,
Icn,
CheckboxInput,
} from '../../../../../uuiui'
import { betterReactMemo } from '../../..... |
<reponame>PeterPei233/scalabel<gh_stars>1-10
import { withStyles } from '@material-ui/core'
import * as fs from 'fs-extra'
import * as path from 'path'
import { ChangeEvent } from 'react'
import Session, { ConnectionStatus } from '../../js/common/session'
import { initFromJson } from '../../js/common/session_init'
impo... |
import * as certmgr from '@aws-cdk/aws-certificatemanager';
import { Vpc, IVpc } from '@aws-cdk/aws-ec2';
import { Cluster, ContainerImage, TaskDefinition, Compatibility } from '@aws-cdk/aws-ecs';
import { ApplicationLoadBalancedFargateService } from '@aws-cdk/aws-ecs-patterns';
import * as ga from '@aws-cdk/aws-global... |
// Copyright (c) <NAME> & <NAME>. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
import { OidcClientSettings, OidcClientSettingsStore } from "./OidcClientSettings";
import { RedirectNavigator, PopupNavigator, IFrameNavigator } from "./na... |
import resolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'
import sourceMaps from 'rollup-plugin-sourcemaps'
import typescript from 'rollup-plugin-typescript2'
import json from 'rollup-plugin-json'
import { uglify } from 'rollup-plugin-uglify'
import replace from 'rollup-plugin-repla... |
<filename>src/karma-proxy.ts
/**
* @license
* Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The co... |
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Genie
//
// Copyright 2019-2021 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with th... |
<filename>src/internal/device.ts<gh_stars>0
import { assert } from "../deps/std_testing_asserts.ts";
import type * as models from "../models/mod.ts";
import type { BasicObjectInit, Creator } from "./client.ts";
import { suppressAPIError } from "./api_error.ts";
import { customInspect } from "./custom_inspect.ts";
cons... |
<reponame>Jungzl/ant-design-mobile
import { ReactNode } from 'react'
import dayjs from 'dayjs'
import isoWeek from 'dayjs/plugin/isoWeek'
import isoWeeksInYear from 'dayjs/plugin/isoWeeksInYear'
import isLeapYear from 'dayjs/plugin/isLeapYear'
import { PickerColumn } from '../picker'
import type { DatePickerFilter } fr... |
<gh_stars>1-10
import { Image, Flavour, InstanceAccount } from '../domain';
import { APPLICATION_CONFIG } from '../../application-config';
import { IK8SRequestHelper } from './k8s-request-helper.model';
import { logger } from '../../utils';
export interface K8sDeploymentRequestConfig {
name: string,
image: Image,
... |
import React, { useEffect, useState } from "react";
import {
Button,
ButtonGroup,
IconButton,
Image,
Text,
useToast,
VStack,
Spinner,
Link,
} from "@chakra-ui/react";
import { ExternalLinkIcon, QuestionIcon } from "@chakra-ui/icons";
import {
LayoutContainer,
Footer,
ProgressBar,
CommitmentO... |
<filename>typescript/lib/controls.ts
import {
NoArgType,
NumericStepper,
ObservableValue,
ObservableValueImpl,
Option,
Options,
PrintMapping,
Terminable,
Terminator
} from "./common.js"
import {Checkbox, Editor, NumericInput, NumericStepperInput, SelectInput} from "./inputs.js"
clas... |
<reponame>ajesse11x/stencil<filename>src/core/render.ts
import * as d from '../declarations';
import { dashToPascalCase } from '../util/helpers';
import { getElementScopeId } from '../util/scope';
import { h } from '../renderer/vdom/h';
import { RUNTIME_ERROR } from '../util/constants';
export function render(plt: d.... |
// Type definitions for PEG.js v0.10.0
// Project: http://pegjs.org/
// Definitions by: vvakame <https://github.com/vvakame>, <NAME> <https://github.com/SrTobi>, <NAME> <https://github.com/siegebell>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace PEG {
function parse(input:str... |
import ts from 'typescript';
import minimatch from 'minimatch';
import * as path from 'path';
import * as Lint from 'tslint';
/** Arguments this rule supports. */
type RuleArguments = [
/** Glob that matches files which should be checked */
string[],
/** List of symbols that should be skipped for lightweight to... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { Dispatch } from "redux";
import {
add_education,
edit_education,
} from "../../store/educationDetails/educationDetailsActions";
import { IEducationDetails } from "../../store/educationDetails/models/educationDetails";
import {... |
import { AxiosStatic, AxiosError } from 'axios';
import { ICredentialsResolver } from '../security/jira-credentials-resolver'
import * as dayjs from 'dayjs';
export interface LogTimeProps {
issueKey: string;
seconds: number;
utc: Date;
}
export interface User {
self: string;
accountId: string;
accountType... |
import * as React from 'react';
import {
AnimatePresence,
} from 'framer-motion';
import {
ButtonProps
} from '../button/Button';
import {
Portal
} from '../portal/Portal';
import {
useTheme
} from '../../hooks';
import {
ModalRoot,
ModalMask,
ModalContainer,
ModalWrapper,
ModalSentinel,
ModalB... |
<gh_stars>1-10
/*
* Copyright ©️ 2018 Galt•Space Society Construction and Terraforming Company
* (Founded by [<NAME>](https://github.com/npopeka),
* [<NAME>](https://github.com/xhipster),
* [<NAME>](https://github.com/litvintech) by
* [Basic Agreement](http://cyb.ai/QmSAWEG5u5aSsUyMNYuX2A2Eaz4kEuoYWUkVBRdmu9qmc... |
<reponame>microsoftgraph/microsoft-graph-explorer-v2<gh_stars>10-100
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
const middlewares = [thunk];
const mockStore = configureMockStore(middlewares);
import {
addResourcePaths, fetchResourcesSuccess, fetchResourcesError,
fetchResour... |
<reponame>sperry94/kibana<filename>x-pack/legacy/plugins/canvas/canvas_plugin_src/strings/functions/function_help.ts
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in co... |
import { providers } from "ethers";
import { yveCRVJar } from "lib/special/vaults/yvecrv-jar";
import plimit from "p-limit";
import { Context, data, yearn } from "../lib";
import { CachedVault, FetchedVault } from "../lib/interfaces/vaults";
import { backscratcher } from "../lib/special/vaults/backscratcher";
import {... |
import { Decoration } from '../decoration'
import { LuaReturn, LuaState } from '../types'
import { decorateFunction } from './function'
import Global from '../global'
import MultiReturn from '../multireturn'
import RawResult from '../raw-result'
import Thread from '../thread'
import TypeExtension from '../type-extensio... |
import { Fragment, useState } from 'react'
import { Dialog, Transition } from '@headlessui/react'
import {ShoppingBagIcon, XIcon} from '@heroicons/react/outline'
const products = [
{
id: 1,
name: 'Throwback Hip Bag',
href: '#',
color: 'Salmon',
price: '$90.00',
quantity: 1,
imageSrc: 'htt... |
<filename>nodelibs/deno/process.ts
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { notImplemented } from 'https://deno.land/std@0.103.0/node/_utils.ts';
import { fileURLToPath } from 'https://deno.land/std@0.103.0/node/url.ts';
/** https://nodejs.org/api/process.html#process_process... |
<gh_stars>0
import { Day, DayProperty } from './Day';
import { FrequencyValueEvery, FrequencyValue } from './Frequency';
import { Schedule, ScheduleInput } from './Schedule';
/**
* Describes a [[Pattern]] given a [[Day]] to base it on.
*
* @param day The day to base the description on.
* @returns The description of... |
<filename>packages/core/schematics/migrations/abstract-control-parent/util.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 {normalize} from 'path';
import ... |
<reponame>Novaleaf/phantomjscloud-lite
/** max for a signed 8bit integer. (127) */
export declare let INT8_MAX: number;
/** min for a signed 8bit integer. (-128) */
export declare let INT8_MIN: number;
/** max for a signed 16bit integer. (32767) */
export declare let INT16_MAX: number;
export declare let INT16_MIN: num... |
<filename>src/modules/Entities/SelectedEntity/EntityExchange/EntityExchange.actions.ts
import { Dispatch } from 'redux'
import Axios from 'axios'
import {
ChangePortfolioAssetAction,
ChangeSelectedAccountAddressAction,
ChangeStakeCellEntityAction,
ChangeTradeMethodAction,
EntityExchangeActions,
// GetAPYAct... |
<filename>src/commands/base/BaseCommand.ts
import { IsArray, IsBoolean, IsInstance, IsLowercase, IsObject, IsOptional, IsString, validateSync } from 'class-validator';
import { Memoize } from 'typescript-memoize';
import { CommanderoManager } from '../../CommanderoManager';
import { Inhibitor, InhibitorManager } from '... |
<filename>src/Models/IoTContainerizedProject.ts<gh_stars>100-1000
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import * as fs from "fs-plus";
import * as path from "path";
import * as vscode from "vscode";
import { RemoteContainersCommands, VscodeCommands } fr... |
import semver from 'semver';
import parsePackageName from 'parse-package-name';
import defaultReporter from '@pnpm/default-reporter';
// import createClient from '@pnpm/client'
// import { createFetchFromRegistry } from '@pnpm/fetch';
import { streamParser } from '@pnpm/logger';
// import createStore, { ResolveFunction... |
import * as gesture from '@interactjs/actions/gesture/plugin';
import * as resize from '@interactjs/actions/resize/plugin';
import * as iEvent from '@interactjs/core/InteractEvent';
import _Interactable from '@interactjs/core/Interactable';
import * as interaction from '@interactjs/core/Interaction';
import * as defaul... |
import { Component, h } from 'preact';
import Countdown from '../Countdown';
import Button from '../Button';
import Spinner from '../Spinner';
import checkPaymentStatus from '../../../core/Services/payment-status';
import processResponse from '../../../core/ProcessResponse';
import { getImageUrl } from '../../../utils/... |
// 3rdparty libraries
import chalk from 'chalk';
import _ from 'lodash';
import Client from 'twitter';
import { isMainThread } from 'worker_threads';
// bot libraries
import { getOwner } from '../commons';
import Message from '../message';
import Integration from './_interface';
import { settings, ui } from '../decora... |
import Veda from 'vedajs';
import View from './view';
import { Rc, RcDiff } from './config';
import { Playable } from './playable';
import { Shader, OscData, Command, Query } from './constants';
import * as THREE from 'three';
function assertNever(x: never): never {
throw new Error('Unexpected object: ' + x);
}
e... |
import { onPublicServer, getAllBaseRooms, getCacheExpiration, minBy } from "utils/utils";
import HandOfNod, { SpawnRequest } from "mcv/handOfNod";
import Mem from "memory/memory";
import { log } from "console/log";
import { Pathing } from "movement/Pathing";
import { bodyCost } from "creeps/setups/CreepSetups";
import ... |
<reponame>BruceYuj/vue-echarts
/* eslint-disable @typescript-eslint/no-explicit-any */
import {
defineComponent,
unref,
shallowRef,
toRefs,
watch,
computed,
inject,
onMounted,
onUnmounted,
h,
nextTick,
PropType,
watchEffect,
Vue2
} from "vue-demi";
import { init as initChart } from "echarts5... |
/*
* collectionUtils.test.ts
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
*/
import * as assert from 'assert';
import * as utils from '../common/collectionUtils';
import { compareValues, isArray } from '../common/core';
test('UtilsContainsDefault', () => {
const data = [1, 2, 3, 4... |
import { v4 as uuid } from 'uuid';
import { Disposable, env, EventEmitter, StatusBarAlignment, StatusBarItem, Uri, UriHandler, window } from 'vscode';
import { fetch, Response } from '@env/fetch';
import { Container } from '../../container';
import { Logger } from '../../logger';
import { debug, log } from '../../syste... |
<filename>__tests__/createEpic.test.ts
import configureMockStore, { MockStore } from 'redux-mock-store';
import { createEpicMiddleware } from '../src/createEpicMiddleware';
import * as Rx from 'rxjs/operators';
import { of, throwError, concat, empty } from 'rxjs';
import { createActions } from '../src/createActions';
i... |
import {
CancellationToken,
ExtensionContext,
TextDocumentContentProvider,
Uri,
workspace,
} from 'vscode';
import { fileCache } from '../views/activityBar/changes/changeTreeView/file/fileCache';
import { PatchsetDescription } from '../views/activityBar/changes/changeTreeView';
import { GerritCommentSide } from '.... |
import IBaseBox from '../IBaseBox';
import * as fsExtra from 'fs-extra';
import * as path from 'path';
import * as cheerio from 'cheerio';
import * as mkdirp from 'mkdirp';
import * as util from 'util';
import Config from '../../../config';
import * as prettier from 'prettier';
import Base from '../Base';
import * as _... |
import React from "react";
import {Utils} from "../../service/utils";
import {Button, Tooltip} from "@material-ui/core";
import "./HUDEditor.scss";
import HelpIcon from '@material-ui/icons/Help';
import {gameApiService} from "../../service/game.api.service";
import {
CheckboxComponent,
ColorPickerComponent,
Inpu... |
import * as Auth0 from "auth0-web";
import { Component, OnDestroy, OnInit, ViewChild } from "@angular/core";
import { MatPaginator, MatSort, MatTableDataSource } from "@angular/material";
import { Subscription } from "rxjs/Subscription";
import { Opp } from "../listings/opp.model";
import { OppsApiService } from "../li... |
<filename>src/app/pages/content-management/terms-sub-headings/terms-sub-headings.component.ts
import { Component, OnInit, ViewChild } from '@angular/core';
import {MatPaginator} from '@angular/material/paginator';
import {MatSort} from '@angular/material/sort';
import {MatTableDataSource} from '@angular/material/table'... |
import { FC, useState } from 'react';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter, FormGroup, FormFeedback, Label, Input } from 'reactstrap';
import { useTranslation } from 'react-i18next';
import { useHistory } from 'react-router';
import { toast } from 'react-toastify';
import type { Moment } from 'mo... |
import React, { useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { push } from 'connected-react-router';
import { postData } from '../api';
import {
selectCurrentGroup,
selectCurrentGroupExcludedAssets,
selectCurrentGroupSettings,
} from '../selectors/groups';
import { Small... |
import React from 'react';
import { Modal, AsyncStorage, StyleSheet, Text, Linking, View, ScrollView, SafeAreaView, Platform, NetInfo, TouchableOpacity, Dimensions } from 'react-native';
import { observable } from 'mobx'
import { observer } from "mobx-react"
import Searchbar from "../components/home/searchbar"
import H... |
<reponame>aspiers/maci
import * as ethers from 'ethers'
import * as fs from 'fs'
import {
maciContractAbi,
formatProofForVerifierContract,
} from 'maci-contracts'
import {
genBatchUstProofAndPublicSignals,
verifyBatchUstProof,
getSignalByNameViaSym,
} from 'maci-circuits'
import {
PubKey,
... |
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you 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 appli... |
<reponame>relwiwa/DefinitelyTyped
import snmp, { VarBind, Packet } from 'snmp-native';
// snmp.defaultOptions
const v_host: string | undefined = snmp.defaultOptions.host;
const v_community: string | undefined = snmp.defaultOptions.community;
const v_family: 'udp4' | 'udp6' | undefined = snmp.defaultOptions.family;
co... |
import fs from 'fs'
import path from 'path'
import { createGzip } from 'zlib'
import PnpmError from '@pnpm/error'
import { types as allTypes, UniversalOptions, Config } from '@pnpm/config'
import { readProjectManifest } from '@pnpm/cli-utils'
import exportableManifest from '@pnpm/exportable-manifest'
import binify from... |
import React from "react"
import { observer } from "mobx-react"
import { Bounds, DEFAULT_BOUNDS } from "../../clientUtils/Bounds"
import { computed } from "mobx"
import {
ChartTypeName,
FacetAxisRange,
FacetStrategy,
SeriesStrategy,
} from "../core/GrapherConstants"
import {
ChartComponentClassMap,
... |
/* eslint no-console: "off" */
import React, { useState, useCallback, useEffect, useMemo } from 'react';
import { vsFile, dhTruck, vsListUnordered } from '@deephaven/icons';
import { IconProp } from '@fortawesome/fontawesome-svg-core';
import {
Stack as StackComponent,
MenuItem as MenuItemComponent,
MenuItemProps... |
<filename>packages/website/src/demos/common/box2d/systems.ts
import { makeSystem, makeEffect, changed, Game, compose } from '0g';
import {
b2Body,
b2BodyType,
b2CircleShape,
b2EdgeShape,
b2FixtureDef,
b2PolygonShape,
b2World,
} from '@flyover/box2d';
import { ContactListener, EntityContact } from './Conta... |
import { Queue } from "./Queue";
import workerTemplate from "../worker/entry.html";
import ImageFillData from "./IImageFillData";
import JobResult from "./IJobsResult";
import DitherOptions from "./IDitherOptions";
/**
* Gets the current User Selection(s)
* @returns readonly SceneNode[]
*/
export function getCurre... |
<filename>typescript/basic.ts
//Comentario
/*
Comentario
multi linea
*/
/* --- TIPOS DE DATOS --- */
console.log('--- Tipos de datos ---');
/*
- string -- puede llevar comillas simples ('') o comillas dobles ("")
*/
let nombre: string = 'Dario';
let apellido: string = "Herrera";
/*
- number -- almacena valores en... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utilities";
/**
* R... |
/**
* @author <NAME> http://drewnoakes.com
*/
/// <reference path="../libs/jquery.d.ts" />
import constants = require('constants');
declare class MozWebSocket
{
constructor(url: string, protocol: string);
}
// GLOBAL STATE
var elementContainer = document.querySelector('#connections .indicators');
var protoco... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.