text stringlengths 9.82k 47.8k |
|---|
import { execSync } from 'child_process';
import * as fs from 'fs';
import * as path from 'path';
import chalk from 'chalk';
import { ethers } from 'ethers';
import { flatten, unflatten } from 'flat';
import {
createContext,
createParams,
createResult,
CreationStatus,
EnvVariable,
EnvVariables,
HardhatO... |
import * as d3 from "d3";
import "./AvailabilityChart.scss";
import { LineChart } from "../LineChart/LineChart";
import { DateTimePicker } from "../DateTimePicker/DateTimePicker";
import { Utils } from "./../../Utils";
import { Component } from "./../../Interfaces/Component";
import { ChartComponent } from "../../Inter... |
#!/usr/bin/env node
import fse from "fs-extra";
import { dirname, join, relative } from "path";
import {
assert,
ASTContext,
ASTNodeFactory,
ASTReader,
CompilationOutput,
CompileFailedError,
compileJson,
compileJsonData,
CompileResult,
compileSol,
compileSourceString,
Con... |
<gh_stars>10-100
/**
* 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... |
/* eslint-disable no-param-reassign */
/* eslint-disable no-underscore-dangle */
import * as d3 from 'd3'
import { IntlShape } from 'react-intl'
import _ from 'lodash'
import React from 'react'
import {
DEFAULT_MAX_DEPTH,
ANIMATION_DURATION,
Depth,
Margin,
} from '../constants/Tree'
import { Classes } from '../... |
/**
* @file main.ts
* @brief YFROBOT's GooBit makecode library.
* @n This is a MakeCode graphics programming extension
* for MicroBit motor drive expansion board.
*
* @copyright YFROBOT,2021
* @copyright MIT Lesser General Public License
*
* @author [email](<EMAIL>)
* @date 2021-06-11
*/
// mot... |
import { ig } from "../impact/impact";
import { WMConfig, wmConfig } from "./config";
import { wmModalDialog, wmModalDialogPathSelect } from "./modal-dialogs";
import { wmSelectFileDropdown } from "./select-file-dropdown";
import { wmEditEntities } from "./edit-entities";
import { wmUndo } from "./undo";
import { erase... |
// Type definitions for rot-js 0.6
// Project: https://github.com/ondras/rot.js
// Definitions by: <NAME> <https://github.com/atiaxi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Extensions (thanks, https://www.typescriptlang.org/docs/handbook/declaration-files/templates/global-modifying-modul... |
<gh_stars>1-10
import { isNumber } from './util';
/* Nimipäivät vuonna 2007 */
const nameDays: string[][][] = [];
for (let i = 0; i <= 12; i++) {
const m: string[][] = [];
for (let j = 0; j <= 31; j++) {
m.push([]);
}
nameDays.push(m);
}
nameDays[1][2] = ['Aapeli'];
nameDays[1][3] = ['Elmo', 'Elmeri', 'El... |
<reponame>chvndler/chvn.me
import { createStitches } from '@stitches/react';
// import type { PropertyValue, ScaleValue } from "@stitches/react";
import type * as Stitches from '@stitches/react';
import { mixins } from 'stitches-mixins';
import {
gray,
mauve,
slate,
sage,
olive,
sand,
tomato,
red,
cr... |
import { Component, OnInit, OnDestroy, ViewChild } from "@angular/core";
import { MatTableDataSource, MatSort } from "@angular/material";
import { DataSource } from "@angular/cdk/table";
import { KnalledgeNodeService } from "@colabo-knalledge/f-store_core/knalledge-node.service";
import { KNode } from "@colabo-knalledg... |
const badWords = [
"abbo",
"abo",
"abortion",
"abuse",
"addict",
"addicts",
"adult",
"africa",
"african",
"alla",
"allah",
"alligatorbait",
"amateur",
"american",
"anal",
"analannie",
"analsex",
"angie",
"angry",
"anus",
"arab",
"ar... |
<reponame>alvis/sher.log
import { LoggingWinston as stackdriver } from '@google-cloud/logging-winston';
import chalk from 'chalk';
import * as eyes from 'eyes';
import * as log from 'log-update';
import * as prettyjson from 'prettyjson-256';
import * as winston from 'winston';
import { Monitor } from './monitor';
impo... |
/* File Purpose:
* It keeps and computes all states at a single place.
* Every inner components of Selectic should comunicate with this file to
* change or to get states.
*/
import {Vue, Component, Prop, Watch} from 'vtyx';
/* {{{ Types definitions */
type voidCaller = () => void;
export type StrictOptionId = s... |
<gh_stars>100-1000
// @ts-nocheck
/**
* Prism: Lightweight, robust, elegant syntax highlighting
* MIT license http://www.opensource.org/licenses/mit-license.php/
* @author <NAME> http://lea.verou.me
*/
var Prism;
// Private helper vars
var lang = /\blang(?:uage)?-(\w+)\b/i;
var uniqueId = 0;
var _ = Prism = {
... |
import {
TILE_DECK_SIZE,
IDOL_LIST_LENGTH,
MAX_IDOL_COUNTS,
UnitInfo,
IDOL_LIST,
Int64,
INT64_ZERO,
SORA_INDEX,
IDOL_LIST_LENGTH2,
HANDS_SIZE,
nameToIndex,
} from 'constant';
import { UNIT_LIST } from 'unit_list';
// [0, n)の整数一様乱数を得る。参考:MDN
const getRandomInt = (n: number) => {
return Math.floo... |
<reponame>jeremiah-shaulov/office_spirit_mysql
import {debugAssert} from './debug_assert.ts';
import {Dsn} from './dsn.ts';
import {ServerDisconnectedError} from "./errors.ts";
import {MyConn, MyConnInternal, OnBeforeCommit} from './my_conn.ts';
import {MyProtocol, OnLoadFile, Logger} from './my_protocol.ts';
import {M... |
<filename>parser-orario-galilei/src/index.ts<gh_stars>1-10
import {
percorsoPrimario,
percorsoListaClassi,
percorsoListaAule,
percorsoListaProfessori,
lettereAlfabeto,
RigaDati,
giorni,
Orario,
etichetteOre,
numeroMinimoEtichette,
ElementoTabella,
Info,
RisultatoConfr... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*!
* Copyright po-to.org All Rights Reserved.
* https://github.com/po-to/
* Licensed under the MIT license
*/
export interface ITaskCounter{
/**
* 如果要实现异步请求计数,请设置实现该接口的TaskCounter´.
* @param promise 异步请求返回的Promise对象
* @param note 异步请求的注解
*/
addItem(promise:Promise<any>,note?:string):voi... |
import React, { useState, useEffect, useCallback, useMemo } from 'react';
import sumBy from 'lodash/sumBy'
import { registerComponent, Components, getFragment } from '../../lib/vulcan-lib';
import { useUpdate } from '../../lib/crud/withUpdate';
import { updateEachQueryResultOfType, handleUpdateMutation } from '../../li... |
const _ = require('lodash');
const axios = require('axios');
const fs = require('fs');
const path = require('path');
const pify = require('pify');
const pMap = require('p-map');
const moment = require('moment');
const writeCsv = require('./units/writeCsv').command;
import pTimes from 'p-times'
const dataFolderPath = ... |
import { EventEmitter } from 'events';
import * as mqttsn from 'mqttsn-packet';
import * as mqtt from 'mqtt';
import { log } from './Logger';
import { Forwarder, ForwarderMessage } from './Forwarder';
import { DBInterface } from './interfaces';
const parser = mqttsn.parser();
/*
Manages mqtt-sn messages and protoc... |
<filename>packages/compiler/test/render3/r3_view_compiler_spec.ts<gh_stars>1-10
/**
* @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 {AotCompilerHost, AotCompiler... |
<reponame>tuncb/imodeljs<filename>core/common/src/FeatureSymbology.ts<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyri... |
<gh_stars>0
export declare const ADD = "add";
export declare const ADD_COLUMN_LEFT = "add-column-left";
export declare const ADD_COLUMN_RIGHT = "add-column-right";
export declare const ADD_ROW_BOTTOM = "add-row-bottom";
export declare const ADD_ROW_TOP = "add-row-top";
export declare const ADD_TO_ARTIFACT = "add-to-art... |
import { EventEmitter } from 'events';
import { addHexPrefix, bufferToHex } from 'ethereumjs-util';
import { ethErrors } from 'eth-rpc-errors';
import BaseController, { BaseConfig, BaseState } from '../BaseController';
import NetworkController from '../network/NetworkController';
import {
BNToHex,
fractionBN,
he... |
import React from "react";
import moment from "moment";
import {reaction} from "mobx";
import ChartJS from "chart.js";
import {Theme} from "$constants/Theme";
import {autobind} from "core-decorators";
import {cloneDeep, get, uniq} from "lodash";
import {isEmpty, setStyle} from "$utils/Util";
import {UnitModelEnum} from... |
<filename>src/shapes/Text.ts<gh_stars>0
import { Util, Collection } from '../Util';
import { Factory } from '../Factory';
import { Shape, ShapeConfig } from '../Shape';
import { Konva } from '../Global';
import {
getNumberValidator,
getStringValidator,
getNumberOrAutoValidator,
getBooleanValidator,
} from '../V... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
<reponame>strautomator/core
// Strautomator Core: GearWear
import {GearWearDbState, GearWearConfig, GearWearComponent} from "./types"
import {StravaActivity, StravaGear} from "../strava/types"
import {UserData} from "../users/types"
import database from "../database"
import eventManager from "../eventmanager"
import m... |
import { PresentArray } from '@glimmer/interfaces';
import { assert, assign, isPresent } from '@glimmer/util';
import Printer from '../generation/printer';
import { PrecompileOptions, preprocess } from '../parser/tokenizer-event-handlers';
import { SourceLocation } from '../source/location';
import { SourceSlice } fro... |
<reponame>HamStudy/pdf-lib<filename>tests/core/parser/PDFObjectParser.spec.ts
import PDFPageLeaf from 'src/core/structures/PDFPageLeaf';
import {
mergeIntoTypedArray,
PDFArray,
PDFBool,
PDFCatalog,
PDFContext,
PDFDict,
PDFHexString,
PDFName,
PDFNull,
PDFNumber,
PDFObjectParser,
PDFPageTree,
PD... |
<reponame>gxchain/discv5
import { EventEmitter } from "events";
import debug from "debug";
import { Multiaddr } from "multiaddr";
import isIp = require("is-ip");
import PeerId from "peer-id";
import { UDPTransportService } from "../transport";
import { MAX_PACKET_SIZE } from "../packet";
import { SessionService } from... |
/*
Copyright 2022 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
<reponame>hyq2015/chart<gh_stars>0
import {
ChartOption,
DoublePoint,
Point, ProdChartOption,
ProdSerial,
SerialAndIndex,
XPoint
} from './chart.interface';
const defaultSerialConfig = {
showIndicate: true,
thickness: 40,
indicatorPercent: 0.5,
indicatorOffset: 0,
indicatorLength: 40,
indicatorO... |
import { Timers } from "../utils/Timers";
import { UIElement } from "./UIElement";
import { lastInput } from "../event/Event";
import { EventDispatcher } from "../event/EventDispatcher";
import { Vec2 } from "../math/Vec2";
import { TextField } from "./TextField";
import { InputTextField, isAnyEditing } from "./InputTe... |
<gh_stars>0
import {
ChannelHandler,
Choice,
PromptConfig,
PromptData,
} from "../types/core"
import {
GetAppData,
KeyData,
AppState,
AppMessage,
EditorOptions,
} from "../types/kitapp"
import {
filter,
Observable,
share,
switchMap,
take,
takeUntil,
tap,
Subject,
} from "@johnlindqui... |
/* eslint-disable */
/* tslint:disable */
// @ts-nocheck
import { Components, JSX } from '@revolist/revogrid';
interface RevoGridProps {
/** Excel like show rgRow indexe per rgRow */
rowHeaders?: Components.RevoGrid["rowHeaders"]
/** Defines how many rows/columns should be rendered outside visible area. *... |
<gh_stars>0
// gridstack-engine.ts 2.0.2-dev @preserve
/**
* https://gridstackjs.com/
* (c) 2014-2020 <NAME>, <NAME>, <NAME>
* gridstack.js may be freely distributed under the MIT license.
*/
import { Utils, obsolete } from './utils';
import { GridStackNode, GridStackWidget } from './types';
export typ... |
import { bindActionCreators, Dispatch } from 'redux'
import { Framebuffer } from './editor'
import * as Screens from './screens'
import { Toolbar as IToolbar, Transform, RootStateThunk, Coord2, Pixel, BrushRegion, Font, Brush, Tool, Angle360, FramebufUIState, DEFAULT_FB_WIDTH, DEFAULT_FB_HEIGHT } from './types'
impo... |
/* Based on Google's Material design color palette: https://material.io/guidelines/style/color.html */
export const colorWhite = 'rgb(255, 255, 255)'
export const colorBlack = 'rgb(0, 0, 0)'
export const colorRed50 = 'rgb(255, 235, 238)'
export const colorRed100 = 'rgb(255, 205, 210)'
export const colorRed200 = 'rgb(... |
<reponame>bmeverett/flagpole
import {
SuiteStatusEvent,
ScenarioStatusEvent,
ScenarioDisposition,
} from "./enums";
import { HttpResponse } from "../http-response";
import { FlagpoleExecution } from "../flagpole-execution";
import { Link } from "../link";
import { ServerOptions } from "https";
import { ValuePromi... |
/*
Copyright 2019-2021 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... |
<filename>server/app.ts<gh_stars>0
global.Promise = require("bluebird")
import express = require('express');
import fs = require('fs');
import http = require('http');
import https = require('https');
import stream = require('stream');
import RateLimit = require("express-rate-limit");
import request = require('request'... |
/// <reference types="webgl-strict-types" />
import * as chroma from "chroma.ts"
import { addOwnProperties, assert, DEG, int, M4, P3ZX, V, V3 } from "ts3dutils"
import posCoordVS from "../src/shaders/posCoordVS.glslx"
import sdfRenderFS from "../src/shaders/sdfRenderFS.glslx"
import { makeDebugContext, Mesh, Shader, T... |
import { Syntax, id, nullLoc } from './javascript';
import { FreeVar, Vars } from './logic';
import { MessageException } from './message';
import { getOptions } from './options';
import { SMTOutput } from './smt';
import { SExpr, matchSExpr, parseSExpr } from './util';
import { stringifyExpression } from './codegen';
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<reponame>vega-studio/deltav
import { Attribute, Geometry, Material, Model } from "../../../gl";
import { Instance, ObservableMonitoring } from "../../../instance-provider";
import {
IInstanceAttribute,
IInstanceAttributeInternal,
InstanceDiffType
} from "../../../types";
import { emitOnce, flushEmitOnce } from "... |
<filename>lib/utils/compose_ts.ts
/**
* @license
* Copyright 2018-2020 Balena Ltd.
*
* 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
*... |
import * as fs from "fs";
import * as path from "path";
import { CompletionItem, IConnection } from "vscode-languageserver";
import * as xml from "xml2js";
import { Log, LogLevel } from "./Log";
export class XmlStorage extends Log {
public schemas: {
[x: string]: IStorageSchema;
};
constructor(public schemastoreP... |
// tslint:disable:member-ordering
import { Component, OnInit, OnDestroy, ViewChild, ElementRef } from '@angular/core';
import { ApiService } from '~/app/data/api.service';
import { WorkspaceService, MasterDetailsStore } from '~/app/data/workspace.service';
import { DetailsBaseComponent } from '~/app/shared/details-base... |
import { PgType } from './types';
import { createBuffer32, createBuffer16 } from './utils';
export interface TypeDef {
type: Buffer;
oid: Buffer;
length: Buffer;
modifier: Buffer;
}
export class PgTypes {
static _types: Record<string, TypeDef> = {};
static getDef<T extends string>(name: PgType<T>) {
... |
/**
* AppStreamBuilder-1.0
*/
import type * as Gjs from './Gjs';
import type * as Gio from './Gio-2.0';
import type * as GObject from './GObject-2.0';
import type * as GLib from './GLib-2.0';
import type * as GdkPixbuf from './GdkPixbuf-2.0';
import type * as GModule from './GModule-2.0';
import type * as AppStreamG... |
import { Component, OnInit, Input, Output, EventEmitter, ElementRef, Renderer, ViewChild, HostListener } from '@angular/core';
import { JqgridEvent } from '../object/jqgrid-event'
import { ColModel } from '../object/col-model'
import { JqgridAction } from '../object/jqgrid-action'
import { JqgridCallback } from '../in... |
<filename>src.ts/document.ts
"use strict";
import fs from "fs";
import { basename, dirname, extname, join, resolve } from "path";
import type { Config } from "./config";
import type { Line, Script } from "./script";
import { CellAlign, CellNode, MarkdownStyle, Node, parseBlock, parseMarkdown, PropertyNode, StylesAll,... |
<filename>shared/index.ts<gh_stars>10-100
export const LOCK_DOWN = true;
export const APP_SCOPED_PREFIX_URL =
'https://www.facebook.com/app_scoped_user_id/';
export const MAX_REFERRALS = 1500;
export const MAX_NUM_UPLOADS = 1500;
export const MAX_URL_LENGTH = 300;
export const MAX_REASON_LENGTH = 300;
export const M... |
// Harvesting sheet
import { Assumptions, FrcsInputs, IntermediateVariables, MachineCosts } from '../../model';
function Harvesting(
assumption: Assumptions,
input: FrcsInputs,
intermediate: IntermediateVariables,
machineCost: MachineCosts
) {
// Harvesting Calculated Values
const HarvesterHourlyCost =
... |
//let Buffer = require("buffer").Buffer;
// Multibyte codec. In this scheme, a character is represented by 1 or more bytes.
// Our codec supports UTF-16 surrogates, extensions for GB18030 and unicode sequences.
// To save memory and loading time, we read table files only when requested.
import {concatBuf, bufToStr, f... |
import fs from "fs";
import child_process from "child_process";
import path from "path";
import archiver from "archiver";
import ts from "typescript";
import tool from "./tool";
import log from "./log";
import instance_base from "./instance_base";
module _compile {
/*---------enum_private */
/*---------enum_public *... |
/**[API]:license
* Something broke? Open a bug report. We may or may not fix it, as we are under no
* obligation to do so. We'll judge each submission individually and decide what is
* worthy of correction.
*
* If you want to get your hands dirty, feel free to change as you need. Open a
* pull request if you ... |
import { Component, OnInit, ElementRef, Input } from '@angular/core';
import * as d3 from 'd3';
import * as topojson from 'topojson-client';
import * as THREE from 'three';
// declare var THREE: any;
@Component({
selector: 'app-interactive-globe-abs',
templateUrl: './interactive-globe-abs.component.html',
style... |
<reponame>SebastienGllmt/js-chain-libs-node-pkg<gh_stars>0
/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function __wbg_bip32privatekey_free(a: number): void;
export function bip32privatekey_derive(a: number, b: number): number;
export function bip32privatekey_generate_ed2551... |
/** @jsx jsx */
import { React, jsx, AllWidgetProps, classNames, ThemeVariables, SerializedStyles, css, DataSourceComponent, QueriableDataSource, Immutable,
appActions, lodash, QueryParams, MessageManager, DataRecordsSelectionChangeMessage, ClauseValuePair, ReactResizeDetector, Global, DataSourceInfo,
IMDataSour... |
<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.
*-------------------------------------------------... |
<gh_stars>0
/*
* 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... |
<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.
*------------------------------------------------... |
<reponame>dcordonu/kowl
import { untracked } from "mobx";
import { Topic, Partition, Broker, ConfigEntry, BrokerConfig } from "../../../../state/restInterfaces";
import { clone, toJson } from "../../../../utils/jsonUtils";
// Requirements:
// 1. Each replica must be on a different broker (unless replicationFactor < br... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor
* license agreements; and to You under the Apache License, Version 2.0.
*/
/*
* written by Scopevisio AG 2021
*/
import { PublishCommand, SNSClient } from "@aws-sdk/client-sns";
import { SendEmailCommand, SendEmailCommandInput, SE... |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
<reponame>sillsdev/web-xforge<filename>src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/editor.component.ts
import { MdcDialog } from '@angular-mdc/web/dialog';
import { AfterViewInit, Component, ElementRef, Inject, OnDestroy, ViewChild } from '@angular/core';
import { MediaObserver } from '@angular/flex-lay... |
//#region Common worker types (used in both script and module workers)
export interface WorkerContextMethods {
/** Prevents requests from failing due to an unhandled exception thrown by the Worker, causing it instead to “fail open”.
*
* Instead of returning an error response, the runtime will proxy th... |
<reponame>lc8882972/cannon.js<filename>src/objects/RaycastVehicle.ts
import Body from "./Body";
import Vec3 from "../math/Vec3";
import Quaternion from "../math/Quaternion";
import RaycastResult from "../collision/RaycastResult";
import Ray from "../collision/Ray";
import WheelInfo, { WheelInfoOptions } from "../object... |
<gh_stars>0
type uint = number
type double = number
type float = number
type table = object
type int = number
declare namespace defines {
const prototypes: {
readonly [Type in string]?: {
readonly [Name in string]?: 0 & { _notFalsyBrand: any }
}
}
namespace difficulty_settings {
enum recipe_di... |
import {
ExchangeFillEvent,
GetOrdersResponse,
Stats,
ValidationResults,
} from '@0x/mesh-browser-lite';
import { OrderEvent, OrderInfo, WSClient } from '@0x/mesh-rpc-client';
import { Event } from '@augurproject/core/build/libraries/ContractInterfaces';
import {
MAX_FILLS_PER_TX,
MAX_GAS_LIMIT_FOR_TRADE,
... |
<gh_stars>10-100
import headless, {HeadlessOptions} from '@pnpm/headless'
import runLifecycleHooks, {runPostinstallHooks} from '@pnpm/lifecycle'
import logger, {
streamParser,
} from '@pnpm/logger'
import {write as writeModulesYaml} from '@pnpm/modules-yaml'
import {
DirectoryResolution,
Resolution,
} from '@pnpm... |
'use strict';
import vscode = require('vscode')
import { Uri, SymbolInformation, Position, Range, SymbolKind } from 'vscode'
import { LParse } from '../parser/LParse'
import { LFrag, LToken, LTT, LComment, LRange, LET, LError, LFT, LSymbol } from '../context/LEntity'
import { LCItem } from "../provider/LCItem"
import ... |
/*
* Copyright 2019 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
import { cancelTimeout, EffectTag, ExcutionContext, ExpirationTime, Mode, NoTimeout, ReactPriorityLevel, WorkTag } from "../common";
import { createWorkInProgress, Fiber } from "../Fiber/Fiber";
import { FiberRoot, isRootSuspendedAtTime, markRootFinishedAtTime, markRootUpdateAtTime } from "../Fiber/FiberRoot";
import {... |
<reponame>ericmigi/mx-puppet-bridge
/*
Copyright 2019, 2020 mx-puppet-bridge
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 applicab... |
<gh_stars>1-10
const EPSILON = 1e-14;
function clamp (val, lower, upper) : number {
return Math.max(Math.min(val, upper), lower);
}
interface RGBA {
r: number;
g: number;
b: number;
a: number;
}
export class Vec3 {
x: number;
y: number;
z: number;
constructor(x: number, y: number, z: number) {... |
<reponame>uiharness/platform
import { Subject } from 'rxjs';
import { debounceTime, filter, map, share, takeUntil } from 'rxjs/operators';
import { commands } from '../../commands';
import {
coord,
defaultValue,
MemoryCache,
R,
t,
toSelectionValues,
util,
value as valueUtil,
} from '../../common';
impo... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import * as Ip from "ip";
import debugMod from "debug";
import { SNMPSession } from "./snmp";
import { snmpReachable, macBufToString, delay } from "./utils";
import {
SNMPTable,
DeviceType,
SNMPSystemOID,
CiscoMib,
SNMPMibs,
} from "./snmpMibs";
import { extractType, getHostnameFromIp } from "./types";
import... |
import { Omit, MergeInOut } from './types';
export type Context<UserContext, State, Value> = Omit<UserContext, 'state' | 'value'> & { value: Value; state: State };
type EAsync = 'sync' | 'async';
type EType = '>->' | '>--' | '---' | '-->';
type InferAsync<Output> = [Output] extends [Promise<any>] ? 'async' : 'sync';... |
<filename>packages/sdk/src/sdk.ts
import Ajv from "ajv";
import addFormats from "ajv-formats";
import { constants, providers, Signer, utils } from "ethers";
import { Evt } from "evt";
import {
getRandomBytes32,
TIntegerString,
TAddress,
UserNxtpNatsMessagingService,
PrepareParams,
TransactionCancelledEvent,... |
/// <reference types="cookieclicker" />
interface StockAverage {
avgValue: number;
totalValue: number;
}
declare class SaveData {
version: string;
stockAverages: StockAverage[];
frozenWrinks: Game.Wrinkler[];
constructor();
save(): this;
load(obj: SaveData): void;
reset(): void;
... |
<filename>lib/generated/yandex/cloud/datasphere/v1/project_service.d.ts
/// <reference types="node" />
import { Empty } from '../../../../google/protobuf/empty';
import { FieldMask } from '../../../../google/protobuf/field_mask';
import { Struct } from '../../../../google/protobuf/struct';
import { Project_Settings, Pr... |
/**
* @File : GlTFExtensions.ts
* @Author : dtysky (<EMAIL>)
* @Date : 11/8/2018, 3:10:37 PM
* @Description:
*/
import Game from '../Core/Game';
import SName from '../Core/SName';
import Hilo3d from '../Core/Hilo3d';
import {
ISeinNodeExtension, INodeWithGlTFExtensions,
ISeinPhysicBodyExtension, ISeinBoxCo... |
<reponame>francinha02/towerGPSTracker
import { Socket } from 'net'
import { ReverseGeocoder } from 'open-street-map-reverse-geo-node-client'
import BaseProtocolDecoder from '../controllers/BaseProtocolDecoder'
import DeviceSession from '../controllers/DeviceSession'
import crc16 from '../functions/crc16'
import * as f... |
<reponame>346/pulumi-spotinst
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
export class MrScalar extends pu... |
import {
Context, createContext, FC, Fragment, ReactNode,
useContext, useEffect, useRef, useState
} from "react";
import "./App.css";
// -----------------------------------------------------------------------------
// Tunable parameters
// We might make some of these configurable by the user
const maxCorners = 10... |
import { Component, OnInit, Input, ViewChild, isDevMode, enableProdMode } from '@angular/core';
import { NameListService } from '../../shared/name-list/name-list.service';
import { AuthService } from '../../shared/auth-service/auth.service';
import { UserService } from '../../shared/user-service/user.service';
import {... |
import {Utils} from '../lib';
import {BasicEffect, toID} from './dex-data';
/**
* Describes the acceptable target(s) of a move.
* adjacentAlly - Only relevant to Doubles or Triples, the move only targets an ally of the user.
* adjacentAllyOrSelf - The move can target the user or its ally.
* adjacentFoe - The move ... |
<gh_stars>1-10
import {Annotation, AnnotationView} from "./annotation"
import {Title} from "./title"
import {CartesianFrame} from "../canvas/cartesian_frame"
import {Axis, LinearAxis, LogAxis, CategoricalAxis} from "../axes"
import {Ticker} from "../tickers/ticker"
import {BasicTicker, LogTicker, BinnedTicker, Categori... |
/*
* SPDX-License-Identifier: Apache-2.0
*/
import * as convertHex from 'convert-hex';
import fabprotos from 'fabric-protos';
import includes from 'lodash/includes';
import { helper } from '../../../common/helper';
import { ExplorerError } from '../../../common/ExplorerError';
import { explorerError } from '../../.... |
import { attempt, flatten, isError, uniq } from 'lodash';
import { List, Map, fromJS } from 'immutable';
import * as fuzzy from 'fuzzy';
import { resolveFormat } from './formats/formats';
import { selectUseWorkflow } from './reducers/config';
import { selectMediaFilePath, selectEntry } from './reducers/entries';
import... |
import {t} from '@lingui/macro'
import {Trans, Plural} from '@lingui/react'
import {ActionLink, StatusLink} from 'components/ui/DbLink'
import Rotation from 'components/ui/Rotation'
import {Action} from 'data/ACTIONS/type'
import {Status} from 'data/STATUSES/type'
import {Event, Events} from 'event'
import {Analyser} f... |
/*
* service.ts
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
* Author: <NAME>
*
* A persistent service that is able to analyze a collection of
* Python files.
*/
// import * as fs from 'fs';
import { CompletionList, SymbolInformation } from 'vscode-languageserver';
import { CommandLineOpti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.