text stringlengths 3.3k 33k |
|---|
import fs from 'fs-extra';
import path from 'path';
import yaml from 'js-yaml';
import { max, sum } from 'lodash';
import readYamlCases, { convertIniConfig } from '@hydrooj/utils/lib/cases';
import { changeErrorType } from '@hydrooj/utils/lib/utils';
import { FormatError, SystemError } from './error';
import { parseTim... |
import { useMachine } from "@xstate/react";
import { useCallback } from "react";
import { assign, createMachine, send } from "xstate";
import type {
AZ,
CreateKafkaInitializationData,
CreateKafkaInstanceError,
InstanceAvailability,
MakeCreateKafkaInstanceMachine,
Provider,
Providers,
Region,
} from "./t... |
<reponame>azonys/imodeljs<gh_stars>100-1000
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------... |
import {ConcludingState} from "../concluding/states";
import {SharedData} from "../../state";
import {ProtocolAction} from "../../actions";
import {
sendConcludeInstigated,
getTwoPlayerIndex,
showWallet,
sendConcludeSuccess,
sendConcludeFailure,
hideWallet,
getFundingChannelId,
sendOpponentConcluded,
... |
import {
createContext,
createRef,
forwardRef,
Suspense,
useContext,
useEffect,
useRef,
useState,
} from 'react'
import { Canvas, useFrame } from '@react-three/fiber'
import { Physics, useBox, useHingeConstraint, useLockConstraint, usePlane } from '@react-three/cannon'
import { OrbitControls, Perspectiv... |
/**
* @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 * as ts from 'typescript';
import {isFunctionLikeDeclaration, unwrapExpression} from '../../../../utils/types... |
<gh_stars>10-100
import { concatArrayBuffers } from "../utils/download";
import { TagWriter } from "./tagWriter";
interface Atom {
length: number;
name?: string;
offset?: number;
children?: Atom[];
data?: ArrayBuffer;
}
interface AtomLevel {
parent: Atom;
offset: number;
childIndex: number;
}
// leng... |
export interface IPcbLayoutBakedBaseNodeRules {
unit: string;
rotationUnit: string;
parentRootLayoutUid?: string;
parentRootFootprintUid?: string;
}
export interface IPcbLayoutBakedBasePositionNodeRules {
position: IVector3;
}
export interface IPcbLayoutBakedBaseStartPositionNodeRules {
startP... |
/**
* Copyright 2018 Twitter, Inc.
* Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
import { SqrlInstance } from "../function/Instance";
import SqrlAst from "./SqrlAst";
import invariant from "../jslib/invariant";
import sqrlErrorWrap from "../compile/sqrlErrorWrap";... |
<reponame>julianklumpers/griddie
import { breakpoints } from "../constants";
import { IBreakpointProps } from "../types";
import type { ScreenBreakpoints } from "../types";
import type { BreakpointList, Gutter, UseScreenBreakpoints } from "../types";
/**
* Checks if the argument is a valid js Object
*
* @example
... |
<filename>src/index.ts
import * as deepmerge from 'deepmerge';
import { isBoolean, isEmpty, isFunction, isNumber, isPlainObject, isString, orderBy } from 'lodash';
import * as io from 'socket.io-client';
import { parse } from 'url';
import { default as wretcher } from 'wretch';
export interface IObjStrToAnyOrT<T = any... |
<filename>packages/treact/src/app/store/mtproto.ts
type TMtpVectorSubType = 'User' | 'Message' | 'Chat' | 'Dialog'
type TMtpVector = 'Vector'
type TMtpMessagesSlice = 'messages.MessagesSlice'
type TMtpDialogsSlice = 'messages.DialogsSlice'
type TMtpMessage = 'Message'
type TMtpUser = 'User'
type TMtpChat = 'Chat'
type... |
import {
AuthorizationType,
EndpointType,
Integration,
IntegrationType,
JsonSchemaVersion,
JsonSchemaType,
PassthroughBehavior,
RestApi,
} from '@aws-cdk/aws-apigateway';
import * as iam from '@aws-cdk/aws-iam';
import * as sfn from '@aws-cdk/aws-stepfunctions';
import * as tasks from '@aws-cdk/aws-step... |
// Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.
import UserJSON from 'interfaces/user-json';
import { route } from 'laroute';
import * as moment from 'moment';
import * as React from 'react';
import... |
<gh_stars>10-100
export interface ILangProfiles {
uniques: { [id: string]: string }
multiples: { [gram: string]: { [country: string]: number } }
}
export interface ILangCompressedProfiles {
uniques: { [id: string]: string | number }
multiples: { [gram: string]: string }
}
// different config profiles
const co... |
/// <reference path="gamejam.d.ts"/>
const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
let info: JamInfo;
let startDate: number;
let endDate: number;
function initTelemetry() {
// Watch on mixer button
document.getElementById("stream")?.addEventListener("cli... |
<gh_stars>1-10
import { ResolvedPos, Fragment, Slice, NodeType } from 'prosemirror-model';
import { Transaction, NodeSelection } from 'prosemirror-state';
import { ReplaceAroundStep } from 'prosemirror-transform';
import { EditorView } from 'prosemirror-view';
import * as baseCommand from 'prosemirror-commands';
import... |
<filename>src/interfaces/query.interfaces.ts
export interface GenericQuery {
/** Query term, q=search_term */
query?: string
/** Page of result set, starting at 1, p=1 */
page?: number
/** Size of page between 10 and 100, defaulted to s=20 */
pageSize?: number
/** Sort order A (ascending) or D (descending), so=A... |
import React, { useEffect, useState } from "react";
import { useSelector } from "react-redux";
import cls from "classnames";
import { Box, Button, InputAdornment, InputLabel, OutlinedInput, Typography } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";
import ExpandMoreIcon from "@materia... |
/* eslint-disable @typescript-eslint/naming-convention */
import * as vscode from 'vscode';
import { ExtensionHelper } from '../extension_helper';
import { commandManager } from './command';
import { configManager } from './config';
import { CommandOptions, OptionsHelper, ScmResource } from './options';
import { Comman... |
/**
* This file defines the built-in `jaspr.primitive` module.
*
* `jaspr.primitive` is a module that comes bundled with every Jaspr
* implementation. Unlike the standard library (`jaspr`), `jaspr.primitive` is
* defined in the Jaspr implementation's host language, and the functions it
* exports may exhibit undef... |
<reponame>rhulkb27/genie-toolkit<filename>lib/dialogue-agent/assistant_dispatcher.ts
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Genie
//
// Copyright 2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Versio... |
import React, { ReactElement } from 'react';
import {
CatmullRomCurve3, Color, DoubleSide, Font, FontLoader, Group, LineSegments,
Mesh, MeshBasicMaterial, PerspectiveCamera, PlaneGeometry, Scene,
ShaderMaterial, ShapeBufferGeometry, Vector3, WebGLRenderer, WireframeGeometry,
} from 'three';
import { SVGLoader } f... |
import { Component, OnDestroy } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { ActivatedRoute } from '@angular/router';
import { Observable, Subscription } from 'rxjs';
import { filter, first, map, pairwise } from 'rxjs/operators';
import { EndpointsService } from '... |
import React, { useState, useContext, useEffect } from 'react';
import { View, StyleSheet, Text } from 'react-native';
import RtcConfigure from '../../agora-rn-uikit/src/RTCConfigure';
import { PropsProvider } from '../../agora-rn-uikit/src/PropsContext';
import Navbar from '../components/Navbar';
import Precall from '... |
import { Iterable, Map as ImmutableMap } from 'immutable';
import { FormException } from './form-exception';
export interface Operations<T> {
/// Shallow clone the object
clone(): T;
/// Clone and merge
merge(key: number | string | null, value: T): any;
/// Clone the object and update a specific key insid... |
import fs = require('fs');
import os = require('os');
import Q = require('q');
import path = require('path');
import process = require('process');
import child = require('child_process');
import * as tl from 'azure-pipelines-task-lib/task';
import * as trm from 'azure-pipelines-task-lib/toolrunner';
import { SecureFi... |
<reponame>Wolven531/sw_merger
'use strict';
import * as fs from 'file-system';
import * as moment from 'moment';
import * as path from 'path';
import { SummMon } from '../../models/monster';
export default class MonsterManager {
private static compName = '[MonsterManager]';
private internalMap: any = {};
... |
<filename>src/api/projects/projects.service.ts
import { Injectable, HttpException, HttpStatus } from '@nestjs/common';
import { IProject } from './interfaces/projects.interface'
import { InjectRepository } from '@nestjs/typeorm';
import { ProjectEntity } from './projects.entity';
import { Repository, TreeRepository } f... |
import { SKPosition } from '@aldis/strongly-signalk';
import { Button, ButtonGroup, Intent, ProgressBar } from '@blueprintjs/core';
import queryString from 'query-string';
import * as React from 'react';
import ReactGA from 'react-ga';
import ReactMapGL from 'react-map-gl';
import WebMercatorViewport from 'viewport-mer... |
<gh_stars>0
/*
*/
import { getResponseForTarget } from "./utils";
import { getClientsWithFilter } from "./client_filters";
/**
* [convertClientsToDataPoints description]
* @param {[type]} response [description]
* @return {[type]} [description]
*/
function convertClientsToDataPoints(aTarget, responses)... |
<filename>src/activity.ts
/* eslint-disable prefer-destructuring */
import { diagnosticManager, Disposable, Document, extensions, workspace } from 'coc.nvim';
import type { Presence } from 'discord-rpc';
import { basename } from 'path';
import type { TextDocument } from 'vscode-languageserver-textdocument';
import type... |
// Copyright 2015-2021 Swim 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 agreed to ... |
// @name: BZX Channel
// @version: 1.0
// @recent_changes: Created Logic
import moment from 'moment';
import { Service, Inject } from 'typedi';
import { logger } from 'ethers';
import config from '../../config';
import showrunnersHelper from '../../helpers/showrunnersHelper';
import epnsHelper, { InfuraSettings, NetWo... |
import axios from 'axios';
import * as React from 'react';
import { Alert } from 'react-bootstrap';
import { RouteComponentProps } from 'react-router-dom';
import { DynamicMix } from '../../models/DynamicMix';
import { SongData } from '../../models/SongData';
import { StaticMix } from '../../models/StaticMix';
import H... |
<filename>src/app/pages/equipment-board/equipment-coupling-path/equipment-coupling-path.component.ts
import { Component, OnInit, ViewChild } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { LayoutService } from '../../../@core/utils/layout.service';
import { colors, rgb_del_red,list_jion... |
import JsBarcode from 'jsbarcode'
// import QRCodeImpl from 'qr.js/lib/QRCode'
// import ErrorCorrectLevel from 'qr.js/lib/ErrorCorrectLevel'
import axios from 'axios'
const QRCodeImpl = require('qr.js/lib/QRCode')
const ErrorCorrectLevel = require('qr.js/lib/ErrorCorrectLevel')
const head = "<html xmlns='http://www.w3... |
import { NetworkId } from "src/constants";
import { ExternalPool } from "src/lib/ExternalPool";
export const tj_gohm_wavax = new ExternalPool({
poolName: "gOHM-AVAX",
icons: ["wsOHM", "AVAX"],
stakeOn: "<NAME>",
pairGecko: "avalanche-2",
rewardGecko: "joe",
href: "https://traderjoexyz.com/farm/0xB674f93952... |
<gh_stars>10-100
import JassPlayerColor from './types/playercolor';
import JassRace from './types/race';
import JassPlayerGameResult from './types/playergameresult';
import JassAllianceType from './types/alliancetype';
import JassVersion from './types/version';
import JassAttackType from './types/attacktype';
import Ja... |
<reponame>bigboxs/alipay-libs
/**
* 2021-10-10
*/
import * as urllib from 'urllib'
import {
isProd,
AlipayOption,
MethodType,
GateWay,
GateWayDefault,
AlipayPrivKey,
AlipayTradeSettleArgs,
AlipayBillQueryArgs,
AlipayPublicArgs,
AlipayPublicResponse,
AlipayToaccountTransferArgs,
AlipayTradeRefu... |
import {
Source,
Manga,
Chapter,
ChapterDetails,
HomeSection,
SearchRequest,
PagedResults,
SourceInfo,
TagType,
TagSection,
ContentRating,
RequestHeaders,
MangaTile,
Tag,
LanguageCode,
} from "paperback-extensions-common"
import { parseSearch, isLastPage, pars... |
<gh_stars>0
import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { Logger } from 'ngx-base';
import { IMyOptions, IMyDateModel } from 'mydatepicker';
import { TypeaheadDropdown, TypeaheadDropdownValue } from '../typeahead-dropdown/typeahea... |
<filename>frontend/src/app/viewer/task-viewer.component.ts
import { AfterViewInit, Component, ElementRef, Input, OnDestroy, ViewChild } from '@angular/core';
import { CompetitionRunService, ContentElement, RunState, TaskInfo, TaskTarget } from '../../../openapi';
import { BehaviorSubject, combineLatest, interval, merge... |
<gh_stars>10-100
import { Rectangle, rectToBounds, Size } from "types/rectangle";
import VideoLayout, { VideoSourceType } from "types/video_layout";
interface PackSection {
size: Size;
resizable: boolean;
priority: number; // 1 is max, higher is less priority
type: VideoSourceType;
id: string;
}
interface V... |
<reponame>mkalil/jupyter-extensions
/**
* 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 req... |
<reponame>ccontour/text-based
// There really needs to be a minimum function complexity on this...
// Really don't care if a simple map function is duplicated
/* eslint-disable radar/no-identical-functions */
import {
forwardRef,
Inject,
Injectable,
NotImplementedException,
} from '@nestjs/common';
import { Ca... |
import type { Oas3Definition, Oas3ExternalDocs, Oas3Info, Oas3Contact, Oas3Components, Oas3License, Oas3Schema, Oas3Header, Oas3Parameter, Oas3Operation, Oas3PathItem, Oas3ServerVariable, Oas3Server, Oas3MediaType, Oas3Response, Oas3Example, Oas3RequestBody, Oas3Tag, OasRef, Oas3SecurityScheme, Oas3SecurityRequirement,... |
<filename>frontend/src/ui/elements/design-system/user-avatar.element.ts<gh_stars>1-10
import {defineCreatorNftElement} from '@frontend/src/ui/define-element/define-creator-nft-element';
import {
applyThemeColors,
monospaceFontVar,
overlayActiveOpacityVar,
overlayHoverOpacityVar,
themeBackgroundColor... |
/*
* Copyright 2018 Teralytics
*
* 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 wr... |
<reponame>ag-sbogd/mono-changelog
import last from 'lodash/last';
import { createSelector } from 'reselect';
import { pipe } from 'rxjs';
import {
EGEStatus,
getBetMapSel,
getCurrentBetAmountMapSel,
getTableRoundStatusSel,
getWinningAmountSel,
isEmpty,
roundStatusIsNewGameAction,
selectIsWaitForNextRou... |
import React, { useCallback, useRef } from 'react'
import { Token, Transaction } from '@pooltogether/hooks'
import { Modal, SquareButton, SquareButtonTheme } from '@pooltogether/react-components'
import { DrawResults, PrizeDistributor, PrizePool } from '@pooltogether/v4-js-client'
import { useTranslation } from 'react-... |
<reponame>bcdasilv/mongodb-memory-server<filename>packages/mongodb-memory-server-core/src/util/DryMongoBinary.ts
import debug from 'debug';
import { DEFAULT_VERSION, envToBool, resolveConfig, ResolveConfigVariables } from './resolveConfig';
import { assertion, checkBinaryPermissions, isNullOrUndefined, pathExists } fro... |
<gh_stars>0
/// <reference types="fabric" />
const fabricjs: typeof fabric =
typeof fabric === "undefined" ? require("fabric").fabric : fabric;
import PSPoint from "./PSPoint";
export interface PSStrokeIface extends fabric.Object {
type: "PSStroke";
strokePoints: PSPoint[];
}
const min = fabricjs.ut... |
<gh_stars>1-10
import { ErrorCode, log, LogLevel } from "de-loggingsystem";
import { AnimatedSpriteComponent, AnimatedSpriteComponentData } from "../components/animatedspritecomponent";
import { CollisionComponent } from "../components/collisioncomponent";
import { IMessageHandler } from "../core/messagesystem/imessage... |
<gh_stars>0
import { Component, OnInit, ViewChild, Output, EventEmitter, Inject, Input, Injector } from '@angular/core';
import { MatPaginator, MatSort, MatTableDataSource } from '@angular/material';
import { Usuario } from '../../modelos/usuario';
import { GenericServices } from '../../servicios/genericServices.servic... |
<reponame>rashfael/vue-eslint-parser<gh_stars>0
import type {
OffsetRange,
Token,
VDocumentFragment,
VElement,
VExpressionContainer,
VStyleElement,
VText,
} from "../ast"
import { ParseError } from "../ast"
import { getLang, getOwnerDocument } from "../common/ast-utils"
import { debug } from... |
<filename>src/app/formulary/formulary-table/formulary-table.component.ts
/*
* MIT License
*
* Copyright (c) 2021 PHAST
*
* 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 restric... |
/*
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 agreed to in writing, software
dis... |
<gh_stars>0
// Mapbox Vector Tiles decoder.
//
// See https://github.com/mapbox/vector-tile-spec.
import { BinaryReader, PbLong, PbULong } from '@protobuf-ts/runtime';
export type LongType = "number" | "string" | "bigint";
export type PropValues = string | number | boolean | bigint | null;
export class Point {
con... |
<gh_stars>0
import { EventEmitter } from 'events'
import * as path from 'path'
import * as chokidar from 'chokidar'
import { noTryAsync } from 'no-try'
import { MonitorSettingsWatcher, MediaObject, LocalFolderStorage, FileShareStorage } from '../api'
import { LoggerInstance } from 'winston'
import { Stats, stat } from ... |
<reponame>Achilles1515/components
/**
* @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 {
Directive,
ElementRef,
EventEmitter,
Inject,
Injector,
Input,
... |
<filename>web/src/utils/table.ts<gh_stars>10-100
import _ from 'lodash'
import { DateTime } from 'luxon'
import {
PRECIP_VALUES_DECIMAL,
RH_VALUES_DECIMAL,
TEMPERATURE_VALUES_DECIMAL,
WIND_SPEED_VALUES_DECIMAL
} from 'utils/constants'
import { ModelValue } from 'api/modelAPI'
import { ObservedValue } from 'api/... |
<reponame>udevbe/retransmit.js
export interface EventLike {
target: any
type: 'open' | 'close' | 'error' | 'message'
}
export interface ErrorEventLike extends EventLike {
error: Error
message: string
type: 'error'
}
export interface CloseEventLike extends EventLike {
type: 'close'
code: number
reason:... |
import { prefillDefaultOptions } from '..';
import { isEmpty, isObject } from '../validation';
const TAB = '\t',
ENDLINE = '\n',
SEMICOLON = ';',
COMMA = ',',
WHITESPACE = ' ',
EMPTY_STRING = '';
const ARRAY_BRACKETS = '[]',
LEFT_BRACE = '{',
RIGHT_BRACE = '}';
const COMMENT_BLOCK_START = `/**`,
COMMENT_BLOC... |
<filename>src/theme/createColorPalette.ts
import ColorManipulator from "color";
import {
CommonColors,
common,
grey,
Color,
red,
orange,
blue,
green,
indigo,
pink
} from "../colors";
import { RecursivePartial } from "../utils";
import deepmerge from "deepmerge";
export interface PaletteBackground {... |
<reponame>kaymccormick/docutils-typescript
import StateWS from "../../../states/StateWS";
import NestedStateMachine from "../NestedStateMachine";
import * as nodes from "../../../nodes";
import { EOFError, InvalidArgumentsError, InvalidStateError } from "../../../Exceptions";
import {
Document,
ElementInterface... |
<gh_stars>1-10
import {
ConfigType,
CustomizeAppFn,
CustomRouterFn,
DangerZone,
DepsType,
InjectedHandler,
Middleware,
RegistryType,
Route,
ScopedDepsType,
ScopeDepsFn,
WebContext,
WebPlugin,
Webserver
} from './model/Webserver';
import { BaseConfig } from '@service-t/core/dist/config/BaseCo... |
<filename>src/adapter.ts
import * as vscode from 'vscode';
import * as fs from 'fs';
import { TestSuiteInfo, TestInfo, TestAdapter, TestLoadStartedEvent, TestLoadFinishedEvent, TestRunStartedEvent, TestRunFinishedEvent, TestSuiteEvent, TestEvent, RetireEvent } from 'vscode-test-adapter-api';
import { Log } from 'vscode... |
<reponame>metropolregion-rhein-neckar/tivigi
/*
* Copyright (C) 2019 HERE Europe B.V.
* Licensed under MIT, see full license in LICENSE
* SPDX-License-Identifier: MIT
* License-Filename: LICENSE
*
* This file is based on
*
* https://raw.githubusercontent.com/heremaps/flexible-polyline/master/javascript/index... |
/* eslint-disable no-undef */
'use strict';
declare var self: ServiceWorkerGlobalScope;
/*
* `build` is an array of URL strings representing the files generated by Vite, suitable for caching with cache.addAll(build)
* `files` is an array of URL strings representing the files in your static directory, or whatever
* ... |
<gh_stars>0
import * as fs from 'fs';
/**
* Authentication with Google's APIs.
*/
import * as http from 'http';
import { AddressInfo } from 'net';
import * as url from 'url';
import { OAuth2Client } from 'google-auth-library';
import { google } from 'googleapis';
import { Discovery } from 'googleapis/build/src/apis/d... |
import * as React from 'react';
import * as classNames from 'classnames';
import { connect } from 'react-redux';
import * as _ from 'lodash';
import { sortable } from '@patternfly/react-table';
import { getName, getUID, getNodeAddresses } from '@console/shared';
import { getNodeRole } from '@console/shared/src/selector... |
import { existsSync } from "node:fs";
import { Construct } from "constructs";
import {
Distribution,
ViewerProtocolPolicy,
DistributionProps,
SecurityPolicyProtocol,
ResponseHeadersPolicy,
FunctionEventType,
Function,
FunctionCode,
} from "aws-cdk-lib/aws-cloudfront";
import { S3Origin } from "aws-cdk-l... |
/*
* @Author: Bin
* @Date: 2021-11-15
* @FilePath: /so.jszkk.com/src/components/AppHead.tsx
*/
import React, { useState, useRef, useEffect } from 'react';
import {
Drawer,
Form,
ButtonToolbar,
Button,
Whisper,
Tooltip,
InputGroup,
Input,
toaster,
Message,
Avatar,
Popover,
Dropdown,
} from 'rsuite';
imp... |
import * as path from 'path'
import {ParseOptions, TestParser} from '../../test-parser'
import {Event, OutputEvent, ResultTestEvent, PackageEvent, Group, isPackageEvent, isTestEvent, isResultTestEvent, isOutputTestEvent} from './golang-json-types'
import {getBasePath, normalizeFilePath} from '../../utils/path-utils'
... |
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import 'typeface-nunito';
import ava1 from './img/ava1.png';
import ava2 from './img/ava2.png';
import ava3 from './img/ava3.png';
import ava4 from './img/ava4.png';
import { Container, Grid } from '@material-ui/core';
import { useStyles } f... |
<reponame>theogonic/zeus
export interface RawTscaUsecase {
methods?: Record<string, RawTscaMethod>;
rules?: TscaUsecaseRule[];
gen?: TscaUsecaseGen;
}
export interface TscaUsecaseRule {
pattern?: string;
method: RawTscaMethod;
}
interface RawTsImport {
from?: string;
names?: string[];
}
export interfac... |
<filename>src/game.ts
import {
Scene,
SpriteManager,
Mesh,
StandardMaterial,
Color3,
CubeTexture,
Sound,
Sprite,
} from "babylonjs";
import fighterPNG from "./assets/images/fighter.png";
import fireWAV from "./assets/sounds/fire.wav";
import entryMP3 from "./assets/sounds/entry.mp3";
import * as GUI fro... |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
import type { FormFieldValue } from "./sharedDataModel/FormFieldValue";
import { formFieldsValueToObject } from "./sharedDataModel/FormFieldValue";
import { allEquals } from "evt/tools/reducers/allEquals";
import { same } from "evt/tools/inDepth/same";
import { assert } from "tsafe/assert";
import { createSlice } from ... |
import { getIntrinsicModelName, getPropertyType } from "../lib/decorators.js";
import { DecoratorContext } from "./index.js";
import { createDiagnostic, reportDiagnostic } from "./messages.js";
import { Program } from "./program.js";
import {
Diagnostic,
DiagnosticTarget,
IntrinsicModelName,
ModelType,
ModelT... |
<gh_stars>10-100
import {
CircleGeometry,
Color,
DoubleSide,
Euler,
LineBasicMaterial,
Mesh,
MeshBasicMaterial,
Object3D,
OrthographicCamera,
PlaneGeometry,
Quaternion,
Vector3,
} from 'three';
import { FlCubeUtil } from '../../utils/fl-cube-util';
import { ControlKey, ControlType } from '../../... |
// Theme specification for the Design-System.
const colors = {
red: {
original: '#ff0000',
primary: '#e53935',
hover: 'rgba(229, 57, 53, 0.4)',
light: '#f7e9e9',
},
green: {
original: '#008000',
primary: '#69cb43',
hover: 'rgba(123, 179, 66, 0.4)',
light: '#f0f8e7',
},
blue: {... |
<reponame>looker-open-source/sdk_codegen
/*
MIT License
Copyright (c) 2021 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without ... |
// @ts-nocheck
import React, { Component } from "react";
import cx from "classnames";
import matchSorter from "match-sorter";
import uniqBy from "lodash/uniqBy";
import { sortByProp } from "@boomerang-io/utils";
import {
Accordion,
AccordionItem,
Checkbox,
CheckboxList,
OverflowMenu,
Search,
} from "@boomer... |
<reponame>pipedrive/CodeshiftCommunity<filename>packages/cli/src/main.ts
import semver from 'semver';
import chalk from 'chalk';
import path from 'path';
import { PluginManager } from 'live-plugin-manager';
import merge from 'lodash/merge';
// @ts-ignore Run transform(s) on path https://github.com/facebook/jscodeshift/... |
import { Aircraft } from "./Aircraft";
import { AircraftState } from "./AircraftState";
import { DeckPosition } from "./DeckPosition";
import { GameTime } from "./GameTime";
import { DEBUG } from "./Global";
import { Graphic } from "./Graphic";
import { IDrawable } from "./IDrawable";
import { IGameObject } from "./IGa... |
<reponame>rempl/host-chromium-extension
import {
createSandbox,
EventTransportChannelId,
EventTransportMessagePayload,
Sandbox
} from 'rempl';
import { createIndicator, genUID } from './helpers';
import {
BgToPluginMessage,
MessageListenerMap,
PageToPluginMessage,
PluginToPageMessage,
... |
/**
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
import type { MDXJsxFlowElement } from 'hast-util-to-estree'
import type { EditorComponentOptions } from 'netlify-cms-core'
import { remark } from 'remark'
import withFootnotes from 'remark-footnotes'
import withGitHubMarkdown from 'remark-gfm'
import type { Node } from 'unist'
import { visit } from 'unist-util-visit'
... |
<gh_stars>1-10
'use strict';
import * as vscode from 'vscode';
import * as net from 'net';
import * as os from 'os';
import { spawnSync } from 'child_process';
import { setTimeout } from 'timers';
import { env } from 'process';
import opn = require('opn');
import { xtmIndent, xtmTopLevelSexpr, xtmGetBlock } from './s... |
<filename>src/wooting.ts
const vendorIdList = [0x03eb, 0x31e3] // Wooting vendor ID
const filters = vendorIdList.map(e => ({vendorId: e}));
const usagePage = 0xff54 // This is the usage page value reported bt the HID device we want, rather than the controller, or regular keyboard, etc...
// Copied from https://githu... |
<reponame>LulumiProject/lulumi-predator
import { app, BrowserWindow, ipcMain, nativeImage, webContents } from 'electron';
import { Buffer } from 'buffer';
import localshortcut from 'electron-localshortcut';
import * as fs from 'fs';
import * as path from 'path';
import generate from 'nanoid/generate';
import * as url f... |
import i18n from 'i18next';
import * as React from 'react';
import DocumentTitle from 'react-document-title';
import { Trans } from 'react-i18next';
import { connect, ConnectedProps } from 'react-redux';
import { RouteComponentProps, withRouter } from 'react-router';
import { Link } from 'react-router-dom';
import Bac... |
import React, { createRef, useCallback, useMemo, useState } from 'react';
import axios, { AxiosResponse } from 'axios';
import Container from 'react-bootstrap/Container';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
import Box from '@material-ui/core/Box';
import TextField from '@mat... |
<reponame>Pandinosaurus/dive
/**
* VIAME process manager for linux platform
*/
import os from 'os';
import npath from 'path';
import { spawn } from 'child_process';
import fs from 'fs-extra';
import { xml2json } from 'xml-js';
import {
Settings, SettingsCurrentVersion,
DesktopJob, RunPipeline,
NvidiaSmiReply,
... |
import { ResourcesAPIBase, ServiceBase, } from '@restorecommerce/resource-base-interface';
import { DatabaseProvider } from '@restorecommerce/chassis-srv';
import { Topic } from '@restorecommerce/kafka-client';
import * as _ from 'lodash';
import * as grpcClient from '@restorecommerce/grpc-client';
import { Fulfillment... |
<gh_stars>0
/* eslint-disable max-classes-per-file */
import defaultsDeep from 'lodash-es/defaultsDeep';
/**
* It's shortcut of default handleEvent in EventListenerObject
*/
// eslint-disable-next-line func-style
function handleEvent(event: Event) {
const [theFirstLetterOfEventType] = event.type;
const theRestLe... |
import React from "react";
import { settings } from "carbon-components";
import { useAppContext } from "Hooks";
import {
Button,
DataTableSkeleton,
DataTable,
Pagination,
TooltipHover,
} from "@boomerang-io/carbon-addons-boomerang-react";
import cx from "classnames";
import queryString from "query-string";
im... |
import React, { Fragment, useRef, useState } from "react";
import { View, Text, StyleSheet, TouchableOpacity, Image } from "react-native";
import { useNavigation, useRoute } from "@react-navigation/native";
import { FontAwesome5, Ionicons } from "@expo/vector-icons";
import ScreenComponent from "../../containers/Screen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.