text stringlengths 9.82k 47.8k |
|---|
import * as path from "path";
import * as vscode from "vscode";
import { AtelierAPI } from "../../api";
import { Directory } from "./Directory";
import { File } from "./File";
import { fireOtherStudioAction, OtherStudioAction } from "../../commands/studio";
import { projectContentsFromUri, studioOpenDialogFromURI } fro... |
import {
Component, OnInit, OnDestroy, trigger, state, animate,
transition, style, ViewChild, AfterViewInit
} from '@angular/core';
import { Router } from '@angular/router';
import { DatePipe, CurrencyPipe } from '@angular/common';
import { Observable, BehaviorSubject } from 'rxjs';
import { LocalStorage, SessionSt... |
/*****************************************************************************\
* Ɗanƙ Ɗomaiƞ: the return of Hack & Slash *
* DOOR authored by: <NAME> <<EMAIL>> *
\*****************************************************************************/
import chokidar = requi... |
import { isArray } from 'lodash';
import isNull from 'lodash/isNull';
import isUndefined from 'lodash/isUndefined';
import map from 'lodash/map';
import moment from 'moment';
import React, { useCallback, useEffect, useState } from 'react';
import { AiOutlineStop } from 'react-icons/ai';
import { FiPlus } from 'react-ic... |
import {
parse as parseMessageDefinition,
md5 as rosMsgMd5sum,
stringify as rosMsgDefinitionText,
RosMsgDefinition,
} from "@foxglove/rosmsg";
import { MessageWriter } from "@foxglove/rosmsg-serialization";
import { HttpServer, XmlRpcFault, XmlRpcValue } from "@foxglove/xmlrpc";
import { EventEmitter } from "ev... |
import { mediaType } from 'next/dist/compiled/@hapi/accept'
import { createHash } from 'crypto'
import { promises } from 'fs'
import { getOrientation, Orientation } from 'next/dist/compiled/get-orientation'
import imageSizeOf from 'next/dist/compiled/image-size'
import { IncomingMessage, ServerResponse } from 'http'
//... |
<gh_stars>1-10
// GX constants. Mostly taken from libogc.
export const enum TexFormat {
I4 = 0x0,
I8 = 0x1,
IA4 = 0x2,
IA8 = 0x3,
RGB565 = 0x4,
RGB5A3 = 0x5,
RGBA8 = 0x6,
C4 = 0x8,
C8 = 0x9,
C14X2 = 0xA,
CMPR = 0xE, /*!< Compressed */
}
export const enum TexPalette {
I... |
/* eslint-disable react-hooks/exhaustive-deps */
/* eslint-disable no-console */
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses ... |
<reponame>j1mie/carbon-charts<filename>packages/core/src/services/scales-cartesian.ts
// Internal Imports
import * as Configuration from '../configuration';
import { Service } from './service';
import {
AxisPositions,
CartesianOrientations,
ScaleTypes,
ThresholdOptions,
} from '../interfaces';
import { Tools } from... |
// TODO: write a test that ensures that Quagga.decodeSingle returns a Promise when it should
// TODO: write a test that tests the multiple: true decoding option, allowing for multiple barcodes in
// a single image to be returned.
// TODO: write a test that allows for locate: false and locator configs to be tested.
imp... |
<reponame>kinndudi-Isra/CloneServer
/*
* Copyright 2019 gRPC authors.
*
* 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 re... |
import { remote, SaveDialogOptions } from 'electron';
import { info } from 'electron-log';
import { join } from 'path';
import { push } from 'connected-react-router';
import { Action, action, Computed, computed, Thunk, thunk } from 'easy-peasy';
import {
BitcoinNode,
CommonNode,
LightningNode,
NodeImplementatio... |
import { BlazorDotnetObject, extend, isNullOrUndefined, print } from '@syncfusion/ej2-base';
import { EventHandler, MouseEventArgs, KeyboardEventArgs, KeyboardEvents, closest } from '@syncfusion/ej2-base';
import { Scroll } from './scroll';
import { Freeze } from './freeze';
import { BlazorGridElement, IGridOptions, Co... |
import { FastPotential, combinationToIndex, indexToCombination } from './FastPotential'
import { product, uniq, sum, max } from 'ramda'
import { evaluateMarginalPure } from './evaluation'
import { ICptWithParents, ICptWithoutParents } from '../types'
import { commaSep } from './util'
/** A Distribution represents a jo... |
<reponame>Tryweirder/opensource-portal<filename>routes/org/repos.ts
//
// Copyright (c) Microsoft.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
import _ from 'lodash';
import asyncHandler from 'express-async-handler';
import express from 'express';
import mom... |
import protooClient, { Peer } from "protoo-client";
import * as mediasoupClient from "mediasoup-client";
import { types as mediasoupClientTypes } from "mediasoup-client";
import React, { useState, useEffect } from "react";
import { Logger } from "./Logger";
import deviceInfo from "./deviceInfo";
import * as e2e from ".... |
<filename>core/backend/src/perftest/Changeset.test.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------... |
type ByteCode = [BC, any];
export enum BC {
LoadConstant,
FunctionLookup,
FunctionCall,
NameLookup,
JumpIfNot,
Jump,
Pop, // arg always null
BuildFunction, // arg is null for lambda, name otherwise
Push,
StoreNew, // arg is variable name, saves TOS
Store, ... |
import {ChangeType, ChildGroup, GetChildLayout_Final, GetNodeChildrenL3, GetNodeForm, GetParentNodeL3, GetParentPath, IsMultiPremiseArgument, IsNodeL2, IsNodeL3, IsPremiseOfSinglePremiseArgument, IsRootNode, IsSinglePremiseArgument, Map, MapNodeL3, MapNodeType, MapNodeType_Info, ShouldChildGroupBoxBeVisible} from "dm_c... |
<gh_stars>0
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------... |
<reponame>spcl/dace-webclient<gh_stars>0
// Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved.
import { Edge, EntryNode, SDFGElement, SDFGNode } from './renderer_elements';
import { lerpMatrix } from '../utils/lerp_matrix';
import { updateEdgeBoundingBox } from '../utils/bounding_box';
import {
... |
<reponame>serviejs/popsicle-transport-http<filename>src/index.ts
import { URL } from "url";
import { request as httpRequest, IncomingMessage } from "http";
import { request as httpsRequest, RequestOptions } from "https";
import { BaseError } from "make-error-cause";
import {
connect as netConnect,
Socket,
Address... |
/** @jsx jsx */
import { darken } from "@theme-ui/color";
import React, { useCallback, useEffect, useRef, useState } from "react";
import { FileDrop } from "react-file-drop";
import { connect } from "react-redux";
import { Link, Redirect } from "react-router-dom";
import {
Box,
Button,
Card,
Flex,
Heading,
... |
<reponame>rupakgoyal/Bloomber-Bqplot
/* Copyright 2015 Bloomberg Finance L.P.
*
* 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
*
* Un... |
<reponame>nbuilding/N-lang
import colours from 'colors/safe'
import { generateNames } from '../../../test/unit/utils/generate-names'
import { Base, BasePosition } from '../../ast/index'
import {
ParseError,
ParseUnexpectedInputError,
ParseUnexpectedEOFError,
ParseNearleyError,
ParseAmbiguityError,
} from '../... |
import { VideoInfo } from './interfaces';
//@ts-ignore
import { opus } from 'prism-media';
import { GuildMember, TextChannel, Message, Guild, MessageReaction, MessageEmbed, ColorResolvable } from 'discord.js';
import { random } from 'lodash';
import { getStream } from './yt-core-discord';
//@ts-ignore
import ytdl = req... |
import { chunk, some, sortBy, toInteger, truncate, uniq } from "lodash";
import React, {
FC,
memo,
useCallback,
useContext,
useEffect,
useMemo,
useRef,
useState,
Component,
} from "react";
import { FaChevronLeft, FaChevronRight, FaListOl } from "react-icons/fa";
import { useUpdateEffect } from "react-... |
import React, { useEffect } from "react";
import PagedModal from "../Modal/PagedModal";
import Page from "../Modal/Page";
import { useState } from "react";
import { useSearch } from "../../services/search";
import useUser from "../../hooks/useUser";
import { useForm } from "react-hook-form";
import { useAuth } from "..... |
import accountgrpcv4 from "@kinecosystem/agora-api/node/account/v4/account_service_grpc_pb";
import airdropgrpcv4 from "@kinecosystem/agora-api/node/airdrop/v4/airdrop_service_grpc_pb";
import commonpb from "@kinecosystem/agora-api/node/common/v3/model_pb";
import transactiongrpcv4 from "@kinecosystem/agora-api/node/tr... |
import { Injectable } from '@angular/core';
import { first } from 'rxjs/operators';
import { IgxForOfDirective } from '../directives/for-of/for_of.directive';
import { GridType } from './common/grid.interface';
import { NAVIGATION_KEYS, ROW_COLLAPSE_KEYS, ROW_EXPAND_KEYS, SUPPORTED_KEYS, HORIZONTAL_NAV_KEYS, HEADER_KEY... |
<filename>src/telegram2discord/middlewares.ts
import R from "ramda";
import { Bridge } from "../bridgestuff/Bridge";
import mime from "mime/lite";
import { handleEntities } from "./handleEntities";
import Discord, { Client } from "discord.js";
import { sleepOneMinute } from "../sleep";
import { fetchDiscordChannel } fr... |
import fs from "fs";
import noUiSlider from "nouislider";
import * as path from "path";
import PropTypes from "prop-types";
import React from "react";
import { connect } from "react-redux";
import { loadAllCertificates, removeAllCertificates } from "../../AC";
import {
ALG_GOST12_256, ALG_GOST12_512, ALG_GOST2001, DE... |
<reponame>adamweeks/momentum-ui
import * as angular from 'angular';
import * as _ from 'lodash';
const popupTemplate = `
<ul
cs-dropdown-menu
class="dropdown-menu cui-list"
ng-show="isOpen() && !moveInProgress"
ng-style="{top: position().top+'px', left: position().left+'px'}"
style="display: bloc... |
<filename>src/component/visualMap/ContinuousView.ts
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apach... |
// Copyright <NAME> 2012-2015.
/** This is an implementation of fully linked nary-trees. Each non-leaf node has an array
of its children `children`, a reference to its left sibling `ls`, a reference to its right
sibling `rs` and a reference to its parent `parent`.
The Tree object is a collection of methods to handle t... |
<gh_stars>100-1000
import { Component, EventEmitter, Input, OnChanges, Output, OnInit, OnDestroy, ElementRef, SimpleChanges, NgZone, Injector } from '@angular/core';
import { DOCUMENT } from '@angular/common';
import { Subscription, timer } from 'rxjs';
export interface CircleProgressOptionsInterface {
class?: str... |
import type * as Dto from "./typings/service.js"
import { Observable } from "./common/observable.js"
import "./common/array.js" // NOTE: We need the side effect from this import
import type { Application } from "./application.js"
import type { IClientOperation } from "./client-operations.js"
import { Language } from ".... |
<reponame>profezzional/iCUE-wallpaper-engine<gh_stars>1-10
const FETCH_TIMEOUT_MS: number = 250;
const PORT: number = 9013;
const SERVER_URL: string = 'http://localhost:' + PORT;
const NUM_COLOR_VALUES: number = 3;
const HTML_COLORS: { [colorName: string]: rgbValue } = {
aliceblue: { r: 240, g: 248, b: 255 },
... |
import * as RDF from "@rdfjs/types";
// tslint:disable-next-line:no-var-requires
const Parser = require('jsonparse');
import {ERROR_CODES, ErrorCoded, IDocumentLoader, JsonLdContext, Util as ContextUtil} from "jsonld-context-parser";
import {PassThrough, Transform, TransformCallback} from "stream";
import {EntryHandler... |
<reponame>dmceachernmsft/communication-ui-library<filename>packages/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.ts<gh_stars>0
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/* eslint-disable @typescript-eslint/no-unused-vars */ // REMO... |
<gh_stars>0
// -*- mode: typescript; typescript-indent-level: 2; -*-
import { Stmt, Expr, Parameter, Pos, Type, NoneT, BoolT, IntT, StrT } from "./ast";
import { parse } from "./parser";
import * as err from "./error";
import { typecheck, tc_expr, EnvType } from "./tc";
import { getClassHeapSize, getClassTableSize, g... |
import type { earthPeriodicValue } from './earth-periodic';
import {
earthPeriodicL0,
earthPeriodicL1,
earthPeriodicL2,
earthPeriodicL3,
earthPeriodicL4,
earthPeriodicL5,
earthPeriodicB0,
earthPeriodicB1,
earthPeriodicR0,
earthPeriodicR1,
earthPeriodicR2,
earthPeriodicR3,
earthPeriodicR4,
} from './earth-p... |
import { Box } from './Box';
import { MineBox, Handlers } from './MineBox';
import { Confetti } from './Confetti';
import './index.scss';
// Add Font Awesome
const script = document.createElement('script');
script.src = 'https://kit.fontawesome.com/a927215a8a.js';
script.crossOrigin = 'anonymous';
document.head.appen... |
/**
* [[include:src/codecs/ipynb/README.md]]
*
* @module codecs/ipynb
*/
/**
* Hello contributor 👋! If you are working on this file, please
* endeavor to remove the need for the following `eslint-disable` line 🙏.
* Remove the line and run `npx eslint path/to/this/file.ts` to
* see which code needs some linti... |
import { LambdaFriends } from "./lambda-friends";
import { ReductionNode } from "./graph";
declare let cytoscape: any;
declare let MicroModal: any;
let cy = cytoscape({
container: document.getElementById("graph"),
boxSelectionEnabled: false,
autounselectify: true,
style: [
{
selector: "node",
... |
import React, { useEffect, useMemo, useRef, useState } from "react";
import getRoamUrl from "roamjs-components/dom/getRoamUrl";
import openBlockInSidebar from "roamjs-components/writes/openBlockInSidebar";
import {
Button,
Icon,
Tooltip,
HTMLTable,
InputGroup,
Intent,
Popover,
Menu,
MenuItem,
Switch... |
<reponame>weblate/vimium-c
import {
browserTabs, runtimeError_, selectTab, safeUpdate, selectWnd, browserSessions
} from "./browser"
import {
set_cPort, set_cRepeat, set_cOptions, needIcon, set_cKey, cKey, get_cOptions, set_reqH_, reqH_, executeCommand
} from "./store"
import {
findCPort, isNotVomnibarPage, frame... |
/*!
Copyright 2021 <NAME>
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
distrib... |
<reponame>barjin/apify-ts
import { addTimeoutToPromise, tryCancel } from '@apify/timeout';
import {
EnqueueLinksOptions,
CrawlerHandleFailedRequestInput,
CrawlingContext,
enqueueLinks,
EVENT_SESSION_RETIRED,
handleRequestTimeout,
ProxyConfiguration,
ProxyInfo,
RequestQueue,
Sessi... |
<reponame>xmindltd/xmind-model<gh_stars>1-10
import StyleComponent from './style-component'
import { COMPONENT_TYPE, TOPIC_TYPE, EXTENSION_PROVIDER } from '../common/constants'
import { isEqualPoint, isPointLike, Point, isUndefined, isNull, isEmpty, deepClone } from '../common/utils'
import Boundary, { BoundaryData } f... |
<gh_stars>1-10
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { EventEmitter } from "events";
import { IDisposable, IEvent, IEventProvider, ITelemetryLogger } from "@fluidframework/common-definitions";
import {
Deferred,
PromiseTimer,
Timer,
... |
<filename>packages/engine/src/ot/range-coloring.ts
import tinycolor2 from 'tinycolor2';
import { removeUnit, escape } from '../utils';
import { TinyCanvas } from '../utils';
import { Tooltip } from '../toolbar';
import { EngineInterface } from '../types/engine';
import { RangeInterface, isRangeInterface } from '../type... |
<filename>apps/client/src/app/pages/allagan-reports/allagan-report-details/allagan-report-details.component.ts
import { ChangeDetectionStrategy, ChangeDetectorRef, Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { debounceTime, filter, first, map, pluck, shareReplay, startWith... |
<reponame>RandomityGuy/MarbleBlast
import { Level, PHYSICS_TICK_RATE } from "./level";
import { PathedInterior } from "./pathed_interior";
import OIMO from "./declarations/oimo";
import { Util } from "./util";
import { Interior } from "./interior";
import { Shape } from "./shape";
import { Trigger } from "./triggers/tr... |
<reponame>lbueker/ag-grid
import { Autowired, Bean, PostConstruct } from "../context/context";
import { PostProcessPopupParams } from "../entities/gridOptions";
import { RowNode } from "../entities/rowNode";
import { Column } from "../entities/column";
import { Environment } from "../environment";
import { Events } fro... |
<reponame>StoneT2000/Dimensions
import { DeepPartial } from '../utils/DeepPartial';
import { deepMerge } from '../utils/DeepMerge';
import { MatchEngine } from '../MatchEngine';
import { Agent } from '../Agent';
import { Logger } from '../Logger';
import { Design } from '../Design';
import {
FatalError,
MatchDestro... |
<filename>src/app/editor-common/app-editor-base/app-editor-base.ts<gh_stars>0
import {AfterViewInit, Injector, Input, OnInit, TemplateRef, ViewChild, ViewContainerRef} from "@angular/core";
import {FormControl} from "@angular/forms";
import {CommandLineToolModel, WorkflowModel} from "cwlts/models";
import * as Yaml fr... |
<filename>VCL/VXButton.ts<gh_stars>10-100
import V = require("./VCL");
import VXC = require("./VXComponent");
import VXO = require("./VXObject");
import VXM = require("./VXMenu");
import VXU = require("./VXUtils");
import VXB = require("./VXInputBase");
export class TButton extends VXC.TPopupmenuComponent implements ... |
import { basename, dirname, join } from 'path';
import { execSync } from 'child_process';
import { readFileSync, writeFileSync, unlinkSync, existsSync, renameSync } from 'fs';
import md5 = require('md5');
import JSONbig = require('json-bigint');
import {
path2uri, isArrayType, ContractDescription, toLiteralArrayType,... |
import { ISheet, Charts, DriveUtils, SpreadsheetApp, ISpreadsheet, SheetUtils, Logging, ISheetRange, SpreadsheetAppUtils } from './utils-google'
import { KeyValueMap, parseFloatOrAny, parseFloatOrDefault, removeObjectKeys, toObject } from './utils'
import { Aggregation, AggregationDefinition, AggregationPresets } from ... |
import { Injectable } from "@angular/core";
import { HttpClient } from "@angular/common/http";
import { DatePipe } from "@angular/common";
import { Observable } from "rxjs";
import { MatBottomSheet } from "@angular/material/bottom-sheet";
import { MatSnackBar } from "@angular/material/snack-bar";
import { MatDialog } f... |
<gh_stars>1-10
/*
This file contains code to compute digital audio filter coefficients based on
the desired type, cutoff frequency, and other parameters. You can use these
coefficients to apply the filter to audio samples. It also contains code to
analyze these filters, which is useful for graphically displaying their ... |
<reponame>udevbe/canvaskit-oc
// Type definitions based on canvaskit-wasm 0.9
// Project: https://github.com/google/skia/tree/master/modules/canvaskit
// Definitions by: <NAME> <https://github.com/ashlanderr>, <NAME> <https://github.com/Zubnix>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export ... |
import { Neovim } from '@chemzqm/neovim'
import path from 'path'
import { CancellationTokenSource } from 'vscode-jsonrpc'
import { Position, Range, TextEdit } from 'vscode-languageserver-types'
import { URI } from 'vscode-uri'
import { LinesTextDocument } from '../../model/textdocument'
import { addPythonTryCatch, conv... |
import {AfterViewChecked, AfterViewInit, Component, OnChanges, OnInit} from '@angular/core';
import {FormBuilder, FormControl, FormGroup, Validators} from '@angular/forms';
import {select, Store} from '@ngrx/store';
import {Router} from '@angular/router';
import ObjectID from 'bson-objectid';
import {findSetting} from ... |
// Copyright 2018 <NAME> (<EMAIL>)
//
// 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 t... |
<reponame>fsam4/AM4-Bot<filename>client/discord/commands/routes.ts
import { MessageEmbed, Permissions, MessageAttachment, MessageActionRow, MessageButton, Formatters, Constants, type ApplicationCommandOptionChoice } from 'discord.js';
import { activity as defaultActivity } from '../../../src/settings.json';
import Disc... |
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of ThingTalk
//
// Copyright 2017-2020 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 wit... |
<filename>lib/sftp-client.ts
import packet = require("./sftp-packet");
import misc = require("./sftp-misc");
import enums = require("./sftp-enums");
import api = require("./fs-api");
import plus = require("./fs-plus");
import fsmisc = require("./fs-misc");
import channel = require("./channel");
import util = req... |
<reponame>xmeow/jacdac<filename>spectool/jdspectool.ts
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable @typescript-eslint/triple-slash-reference */
/// <reference path="jdspec.d.ts" />
import {
camelize,
capitalize,
converters,
dashify,
humanify,
normalizeDeviceSpecifi... |
import events = require('events');
import uuidv4 = require('uuid/v4');
import fs = require('fs');
import mkdirp = require('mkdirp');
import util = require('util');
import isStream = require('is-stream');
import path = require("path");
import stream = require('stream')
import dir = require('node-dir');
import md5 = requ... |
<reponame>schwartzadev/snack
// Maintain JavaScript modules forming the runtime state of the user's Snack application. This
// includes modules generated by 'local' files and assets, pre-loaded modules such as 'react' and
// 'expo', and modules generated by references to npm packages.
//
// This is implemented using Sy... |
<gh_stars>1-10
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import * as child_process from 'child_process';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import { JsonF... |
import eventManager from '../eventManager';
import shim from '../shim';
import { _ } from '../locale';
const BaseService = require('./BaseService').default;
const keysRegExp = /^([0-9A-Z)!@#$%^&*(:+<_>?~{|}";=,\-./`[\\\]']|F1*[1-9]|F10|F2[0-4]|Plus|Space|Tab|Backspace|Delete|Insert|Return|Enter|Up|Down|Left|Right|Hom... |
<gh_stars>1-10
import { D2ManifestDefinitions } from 'app/destiny2/d2-definitions';
import { interruptFarming, resumeFarming } from 'app/farming/basic-actions';
import { t } from 'app/i18next-t';
import { canInsertPlug, insertPlug } from 'app/inventory/advanced-write-actions';
import { updateCharacters } from 'app/inve... |
<gh_stars>10-100
// Copyright 2012-2016, 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 ... |
<filename>src/translators/svg.ts
import { QemmetGateInfo, QemmetParserOutput } from '../types'
interface SvgOptions {
X_MARGIN: number
Y_MARGIN: number
KET_MARGIN: number
LINE_TRAIL_LEFT: number
LINE_TRAIL_RIGHT: number
LINE_SPACE: number
SVG_MARGIN: number
BACKGROUND_COLOR: string
LINE_COLOR: string
FONT_CO... |
<reponame>ShiftLimits/wled-client
import { WLEDNightlightMode, WLEDLiveDataOverride, WLEDClockOverlay, WLEDAPOpenBehavior, WLEDAutoWhiteMode, WLEDBusType, WLEDBusColorOrder, WLEDButtonType, WLEDIRRemoteType, WLEDPaletteBlendingMode, WLEDDMXMode } from './constants';
import { RGBColor, RGBWColor, IPV4 } from './types';
... |
import { FSComponent, DisplayComponent, VNode, NodeReference, Subject, Fragment } from 'msfssdk';
import { XMLCircularGaugeCursor, XMLCircularGaugeProps, XMLCircularGaugeValuePos, XMLGaugeColorLine, XMLGaugeColorZone, XMLHostedLogicGauge, XMLGaugeReferenceBug } from 'msfssdk/components/XMLGauges';
import { BaseGauge } ... |
declare global {
namespace NodeJS {
interface ProcessEnv {
IG_LIVE_API_KEY: string
IG_LIVE_USERNAME: string
IG_LIVE_PASSWORD: string
IG_DEMO_API_KEY: string
IG_DEMO_USERNAME: string
IG_DEMO_PASSWORD: string
}
}
}
... |
/*
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import stringify = require('json-stringify');
import { ConsoleUtils } from './consoleUtils'... |
import {Observable, BehaviorSubject, Subscription, ReplaySubject} from 'rxjs';
import {map} from 'rxjs/operators';
import {
Component,
ChangeDetectionStrategy,
OnInit,
AfterViewInit,
Input,
OnDestroy,
ChangeDetectorRef,
ViewChild,
ElementRef,
} from '@angular/core';
import {FormGrou... |
<gh_stars>0
import {Rule, RuleJSONConfig, RuleOptions, RuleResult} from "./index";
import {Listing, SearchOptions} from "snoowrap";
import Submission from "snoowrap/dist/objects/Submission";
import Comment from "snoowrap/dist/objects/Comment";
import {
compareDurationValue,
comparisonTextOp,
FAIL, formatNum... |
import { MessageUpdateSpec, message_updater } from '../../message';
import { narrative_fsa_builder } from '../../narrative_fsa';
import { Parser, ParserThread, gate, ConsumeSpec } from '../../parser';
import { make_puffer_world_spec, Puffer } from '../../puffer';
import { update, Updater, entries, cond } from '../../ut... |
import {Command, flags} from '@oclif/command'
import { readFileSync, writeFileSync, existsSync } from 'fs';
import { TilePathParams, TileType, TilePathGroup } from '../index'
import { TileIndex } from '../index'
import { Graph, PathCandidate, GraphMode, ReferenceSideOfStreet} from '../index';
import * as turfHelpers ... |
<filename>lib/agile_keychain.ts
import assert = require('assert');
import Path = require('path');
import underscore = require('underscore');
import { atob, btoa } from './base/stringutil';
import agile_keychain_crypto = require('./agile_keychain_crypto');
import asyncutil = require('./base/asyncutil');
import agile_ke... |
import traverse, { Binding, NodePath } from 'babel-traverse'
import generate from 'babel-generator'
import { prettyPrint } from 'html'
import { transform as parse } from 'babel-core'
import * as ts from 'typescript'
import { Transformer } from './class'
import {
setting,
findFirstIdentifierFromMemberExpression,
i... |
<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------... |
/*
* Copyright 2020-2022 <NAME>
*
* 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 ... |
<reponame>forex24/1421
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*----------------------------------------... |
/**
* RootView.tsx
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT license.
*
* The top-most view (rendered into window.body) that's used for proper
* layering or modals, etc. in the web implementation of the ReactXP
* cross-platform library.
*/
import _ = require('./utils/lodas... |
<gh_stars>1-10
import {
ESTA_EXPERIMENTAL, FOS_HOLD,
INDICATOR_NORMAL,
OP_OUTPUT,
OP_POLL,
OP_POLL_REPLY, OP_SYNC,
PAPA_UNUSED,
PROTOCOL_DMX512, STYLE_NODE
} from './opcodes';
const header = Buffer.from([65, 114, 116, 45, 78, 101, 116, 0]);
// https://artisticlicence.com/WebSiteMaster/User... |
<filename>ui/raidboss/data/05-shb/trial/wol.ts
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } fr... |
/**
* ApplicationInsights.ts
* @copyright Microsoft 2018
*/
import {
IConfig, Util, PageViewPerformance, IAppInsights, PageView, RemoteDependencyData, Event as EventTelemetry, IEventTelemetry,
TelemetryItemCreator, Metric, Exception, SeverityLevel, Trace, IDependencyTelemetry,
IExceptionTelemetry, ITrac... |
import React, { useState, useEffect, useRef } from 'react'
import { Progressing, showError, Select, useThrottledEffect, RadioGroup, not, Info, CustomInput, Checkbox, CHECKBOX_VALUE, isVersionLessThanOrEqualToTarget } from '../common'
import { useParams } from 'react-router'
import { updateConfig, deleteConfig } from '.... |
import React, { useState, useEffect, useRef, useContext, useCallback } from "react";
import { KeyboardAvoidingView, View, FlatList, TouchableOpacity, Text, TextInput, Alert, ActivityIndicator, Platform, Image, TouchableWithoutFeedback, Keyboard, BackHandler } from "react-native";
import { DARK_GREEN_COLOR, globalstyles... |
<reponame>luizcarlospassamani/KnowledgePortal-master
import { Component, ElementRef, AfterViewInit, ViewChild, OnDestroy } from '@angular/core';
import * as go from "gojs";
import { VersionService, ModelService } from '../../_services/index.service';
import swal from 'sweetalert2';
export var myDiagram: go.Diagram;
imp... |
/**
* @license
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
<gh_stars>1-10
import * as sqliteModels from '../../shared/models/sqlite'
import * as lsif from 'lsif-protocol'
import { Correlator, ResultSetData, ResultSetId } from './correlator'
import { createSqliteConnection } from '../../shared/database/sqlite'
import { databaseInsertionDurationHistogram, databaseInsertionErrors... |
<gh_stars>1-10
import Axios from 'axios';
import { Channel, Socket } from 'phoenix';
import Vue from 'vue';
import { arrayRemove, numberSort } from '../../../utils/array';
import { sleep } from '../../../utils/utils';
import { getCookie } from '../../../_common/cookie/cookie.service';
import { Environment } from '../..... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.