text stringlengths 9.82k 47.8k |
|---|
<filename>test/unit/statevars.spec.ts
import expect from "expect";
import { ASTNode, Expression, pp } from "solc-typed-ast";
import {
findAliasedStateVars,
findStateVarUpdates,
getAssignments,
LHS,
RHS,
ScribbleFactory,
StateVarUpdateDesc
} from "../../src/instrumenter";
import { Logger } fr... |
// Component imports
import GenericTable, { GenericTableOps, GenericTableColProps } from "../../components/GenericTable";
// Util imports
import { CbbColors } from "../CbbColors";
// Lodash:
import _ from "lodash";
const lineSep = <hr style={{
border: "none",
height: "1px",
padding: 0,
marginTop: "2px",
m... |
import {
Animation,
BoundingBox,
Collision,
CollisionContact,
CollisionSystem,
GameObject,
SpriteAlignment,
SpritePainter,
State,
Subject,
SweptBoxCollider,
Timer,
Vector,
} from '../core';
import { GameState, GameUpdateArgs, Rotation, Tag } from '../game';
import {
TankAnimationFrame,
Tan... |
<gh_stars>0
import Formatter from '../core/Formatter';
import Tokenizer from '../core/Tokenizer';
import { isToken, Token, TokenType } from '../core/token';
import type { StringPatternType } from '../core/regexFactory';
import { dedupe } from '../utils';
/**
* Priority 5 (last)
* Full list of reserved functions
* d... |
<filename>src/smo/midi/midiToSmo.ts
// [Smoosic](https://github.com/AaronDavidNewman/Smoosic)
// Copyright (c) <NAME> 2021.
/**
* Convert midi to Smo object model. Midi parsing code from:
* @module /smo/midi/midiToSmo
*/
import { SmoToMidi } from "../../../release/smoosic";
import { Clef, Pitch } from "../data/comm... |
<gh_stars>0
import { getRangeIndexes, NumberFormatType } from '../common/index';
import { CellModel, SheetModel, getCell, getSheet, setCell, getSheetIndex, Workbook } from '../base/index';
import { Internationalization, getNumberDependable, getNumericObject, isNullOrUndefined } from '@syncfusion/ej2-base';
import { isN... |
import {
CalculateLengthCallback,
CellComponentProps,
CellSpanFunctionProps,
CellSpanFunctionResult,
Column,
dataItemToValueDefaultImplementation,
Sheet,
SheetRef
} from "./Sheet";
import React, {
createContext,
FC,
MouseEvent as ReactMouseEvent,
MutableRefObject,
Rea... |
import {
OID_TYPE_CODE,
// OID_TYPE_NAME,
PARAMETER_FORMAT_CODE
} from './constants.ts'
import {
// BufferReader,
// BufferWriter,
decode,
// encode
} from './buffer.ts'
//
// interface
//
// https://www.postgresql.org/docs/13/datatype-geometric.html#id-1.5.7.16.8
export interface Box ... |
import * as path from 'path';
import crypto from 'crypto';
import * as fse from 'fs-extra';
import * as gltf from './schema';
import { isUndefined, isNullOrUndefined } from 'util';
import { ImagePlaceholder } from '../common/image-placeholders';
import * as IMF from '../common/intermediate-format';
const MaxBufferSiz... |
import BluebirdPromise from 'bluebird';
import { createDirectStore } from 'direct-vuex';
import Vue from 'vue';
import Vuex from 'vuex';
import vtkProxyManager from 'vtk.js/Sources/Proxy/Core/ProxyManager';
import { InterpolationType } from 'vtk.js/Sources/Rendering/Core/ImageProperty/Constants';
import _ from 'lodash'... |
import * as React from 'react';
import Table from '../model/Table';
import SharedViewProps from './SharedViewProps';
import { HotTable } from '@handsontable/react';
import { GridSettings } from 'handsontable';
import { VariantType } from '../model/Variant';
import UnionValue from '../model/UnionValue';
import NamedValu... |
import * as _ from 'underscore'
import {
DeviceWithState,
CommandWithContext,
DeviceStatus,
StatusCode,
literal
} from './device'
import {
CasparCG,
Command as CommandNS,
AMCPUtil,
AMCP,
CasparCGSocketStatusEvent
} from 'casparcg-connection'
import {
DeviceType,
DeviceOptions,
Mapping,
TimelineContentType... |
<gh_stars>10-100
import type { TVec3, TVec4, TVec8 } from '@oito/types';
class DualQuat extends Float32Array{
//#region STATIC VALUES
static BYTESIZE = 8 * Float32Array.BYTES_PER_ELEMENT;
//#endregion ////////////////////////////////////////////////////////
//#region CONSTRUCTORS
constructor()
... |
import React, {
useCallback,
useEffect,
useImperativeHandle,
useRef,
useState,
} from 'react';
import {
Image,
Platform,
StyleSheet,
useWindowDimensions,
View,
ViewStyle,
} from 'react-native';
import Animated, {
useAnimatedGestureHandler,
useAnimatedStyle,
useDerivedValue,
useSharedValue,... |
<filename>src/clipper.ts<gh_stars>1-10
import {popButtonMouseUp, groupBindEvent, groupUnBindEvent} from './handle';
import {hideCropBox, optionContainPopMouseUp, drawStyle, setDrawParams, getDrawParams} from './menu';
import {isCanvasBlank, canvasClear, dataURLToCanvas} from './util'
import {gaussBlur} from './mosaic... |
import { parse } from 'acorn';
import { Program } from 'estree';
import { Context } from './context';
import {
FExpression,
FLiteral,
FMemberExpression,
FNewExpression,
FSimpleCallExpression,
} from './fExpression';
import { FStatement, FVariableDeclaration, fStatement } from './fStatement';
import ... |
<filename>types/uinput/index.d.ts<gh_stars>10-100
// Type definitions for uinput 1.1
// Project: https://github.com/santigimeno/node-uinput#readme
// Definitions by: <NAME> <https://github.com/Fidge123>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import * as fs fr... |
<reponame>M3kH/kafkaSaur
//deno-lint-ignore-file no-explicit-any require-await
/** @format */
import flatten from '../utils/flatten.ts';
import sleep from '../utils/sleep.ts';
import BufferedAsyncIterator from '../utils/bufferedAsyncIterator.ts';
import websiteUrl from '../utils/websiteUrl.ts';
import arrayDiff from '... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import viewModelBase = require("viewmodels/viewModelBase");
import index = require("models/database/index/index");
import appUrl = require("common/appUrl");
import saveIndexLockModeCommand = require("commands/database/index/saveIndexLockModeCommand");
import app = require("durandal/app");
import deleteIndexesConfi... |
<reponame>SteveLau-GameDeveloper/engine
/****************************************************************************
Copyright (c) 2021-2022 <NAME> Software Co., Ltd.
http://www.cocos.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source co... |
import EventEmitter from 'eventemitter3';
import Collection from '@discordjs/collection';
import HTTPS from 'https';
import { formatAllowedMentions, FormattedAllowedMentions, MessageAllowedMentions, oneLine, verifyKey } from './util';
import {
ImageFormat,
InteractionType,
AnyRequestData,
RawRequest,
RequireA... |
<reponame>monofuel/badMars
// -----------------------------------
// author: Monofuel
// website: badmars.net
// Licensed under included modified BSD license
import * as _ from 'lodash';
// const grpc = require('grpc');
const Alea = require('alea');
import logger, { WrappedError } from '../logger';
imp... |
import util from "util"
import events from "events"
import { NextFunction, Request, Response } from "express"
import { join, basename } from "path"
import { rm } from "fs/promises"
import { createWriteStream } ... |
"use strict";
import {XMPPService} from "../XMPPService";
import {XMPPUTils, xu} from "../../common/XMPPUtils";
import {ConversationEventHandler} from "./conversationEventHandler";
export {};
const moment = require("moment");
const prettydata = require("../pretty-data").pd;
// @ts-ignore
global.window... |
/*!
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import * as path from 'path'
import * as vscode from 'vscode'
import { mkdirSync, writeFile, writeFileSync } from 'fs-extra'
import { schema } from 'yaml-cfn'
import * as yaml from 'js-yaml'
import... |
<filename>ts2panda/src/statement/classStatement.ts
/*
* Copyright (c) 2021 Huawei Device Co., 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/L... |
/*
Copyright 2016-2017 Resin.io
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
di... |
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* Th... |
<reponame>ModDota/dota-tutorial
import * as tut from "../../Tutorial/Core"
import * as tg from "../../TutorialGraph/index"
import * as dg from "../../Dialog"
import { RequiredState } from "../../Tutorial/RequiredState"
import { GoalTracker } from "../../Goals"
import { centerCameraOnHero, createPathParticle, displayDot... |
<filename>src/data/answers.sv.tsx<gh_stars>0
const answers = [
'säger',
'också',
'eller',
'under',
'efter',
'andra',
'finns',
'sedan',
'många',
'måste',
'något',
'detta',
'honom',
'skall',
'någon',
'några',
'varit',
'genom',
'kunde',
'stora',
'ingen',
'själv',
'bland',
'annat',
'redan',
'henne',
'kunna',
'samma',
'denn... |
import { setProperties } from '@ember/object';
import moment from 'moment';
import { IdLogicalType, PurgePolicy } from 'wherehows-web/constants/index';
import {
IComplianceEntity,
IComplianceInfo,
ISuggestedFieldClassification
} from 'wherehows-web/typings/api/datasets/compliance';
import { IComplianceDataType } ... |
import { GroundPlayer } from "../groundPlayer";
import { Hose } from "../hose";
import { hideParticle, HosePlayer } from "../hosePlayer";
import { Fire } from "../fire";
import { ElVictimo } from "../elVictimo";
import { Player } from "../player";
import { TeleportManager } from "../teleportManager";
import { parseAllP... |
<filename>src/defaultThemes.ts
const keys: Array<UpKey> = ['xs', 'sm', 'md', 'lg', 'xl'];
type UpKey = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
interface Breakpoints {
keys: Array<UpKey>;
values: {
xs: number;
sm: number;
md: number;
lg: number;
xl: number;
};
up: (key: UpKey) => string;
down: ... |
// Copyright 2020 H2O.ai, 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... |
declare var katex: any;
declare var algebra: any;
declare var underscore: any;
import { GameEngineBase } from './game.engine.base';
/**
* A class represents actor common class to all the guys(good/bad)
*/
class Actor {
id: string;
name: string;
uiElement: any;
type: number;
value: num... |
<reponame>treeandgrass/animationjs
import { ITransform } from './types'
export const length = (v: number[]) => {
return Math.sqrt(v[0] * v[0] + v[1] * v[1] + v[2] * v[2])
}
export const determinant = (m: number[][]) => {
return m[0][0] * m[1][1] * m[2][2] +
m[1][0] * m[2][1] * m[0][2] +
m[2][0] * m[0][1] ... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import {
Dropdown, FontIcon, IconButton, IDropdownOption,
ITooltipHostStyles,
PrimaryButton,
Spinner, SpinnerSize, TooltipHost
} from "@fluentui/react";
import _ from "lodash";
import {Feature} from "ol";
import Polygon from "ol... |
import * as PIXI from "pixi.js-legacy";
import { TimeGraphAnnotationComponent, TimeGraphAnnotationComponentOptions, TimeGraphAnnotationStyle } from "../components/time-graph-annotation";
import { TimeGraphComponent, TimeGraphRect, TimeGraphStyledRect } from "../components/time-graph-component";
import { TimeGraphRectan... |
<reponame>mdmower/ip2ldb-reader
import {parseIp} from './ip-utils';
import fs, {FSWatcher} from 'fs';
import {Ip2lData, Ip2lOptions} from './interfaces';
// prettier-ignore
const Position: {
[key: string]: number[];
} = {
country: [0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],
re... |
/**
* @module botbuilder-dialogs-adaptive
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import {
TurnContext, BotTelemetryClient, NullTelemetryClient, ActivityTypes,
Activity, RecognizerResult, getTopScoringIntent
} from 'botbuilder-core';
import { ... |
import ts from 'typescript';
import { ChainManager } from './utils/loopFinder/ChainManager';
import { typeOf, equal, and, or, isArray, every, isTypeOfObject, isNull } from './utils/operators/boolOperators';
import {
constVar,
_if,
not,
consoleWarn,
arrowFunc,
call,
propAccess,
func,
identifier,
str,... |
<reponame>uhlibraries-digital/cdm-bridge-carp<gh_stars>1-10
import { ContentDm, CdmServer } from './contentdm'
import {
IExportProgress,
IExportError,
IField,
ICrosswalkFieldHash
} from './app-state'
import { csvString } from './csv'
import {
writeFile,
createWriteStream,
WriteStream,
readdirSync,
acc... |
<reponame>shellyln/open-soql<gh_stars>10-100
// Copyright (c) 2020 Shellyl_N and Authors
// license: ISC
// https://github.com/shellyln
import { PreparedQuery,
PreparedResolver,
PreparedFnCall,
PreparedSubQuery,
PreparedFieldListItem,
PreparedCondition,
PreparedPa... |
import os from 'os';
import { gzip } from 'zlib';
import retry from 'async-retry';
import { defaultUsageReportingSignature } from 'apollo-graphql';
import {
Report,
ReportHeader,
Trace,
TracesAndStats,
} from 'apollo-reporting-protobuf';
import { Response, fetch, Headers } from 'apollo-server-env';
import {
G... |
import { addKorok, getMissingKoroks, hasKorok, KorokData, newData } from "./korok";
// import { instructionLikeToInstructionPacket, stringToText, textLikeToTextBlock } from "./convert";
// import { EngineError, EngineErrorStrings } from "./error";
// import { txt, lcn, npc} from "./strings";
// import { InstructionData... |
<gh_stars>1-10
/*
Mapper for a quantum circuit to a 2D square grid.
Input: Quantum circuit with 1 and 2 qubit gates on n qubits. Gates are assumed
to be applied in parallel if they act on disjoint qubit(s) and any pair
of qubits can perform a 2 qubit gate (all-to-all connectivity)
Output: Quantum circuit in which ... |
<filename>src/Pages/Tasks/tasksUtils.tsx
// Swal Notifications
import { DropResult } from "react-beautiful-dnd";
import Swal from "sweetalert2";
import withReactContent from "sweetalert2-react-content";
import { db } from "../../config/firebase";
import {
columnsShape,
Departments,
selectOption,
taskShape,
us... |
/** @jsx jsx */
import {BaseWidget, React, classNames, FormattedMessage, defaultMessages as jimuCoreDefaultMessage, IMDataSourceInfo, DataSource, DataSourceComponent} from 'jimu-core';
import {AllWidgetProps, css, jsx, styled} from 'jimu-core';
import {IMConfig} from '../config';
import {Collapse, Icon,Table} from 'jim... |
import {
ExportSearchCommand,
actionDisplay,
standardExports,
} from "./action.js";
import { ActionFilter, createSearch } from "./actionfilters.js";
import {
AlertFilter,
PrometheusAlert,
ServerAlertFilter,
alertNavigator,
prometheusAlertHeader,
prometheusAlertLocation,
} from "./alert.js";
import { h... |
<filename>src/language/HTMLInstrumentation.ts
/*
* Copyright (c) 2013 - 2017 Adobe Systems Incorporated. All rights reserved.
* Copyright (c) 2018 - present The quadre code authors. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associat... |
/**
* To match accessibility requirement, we always provide an input in the component.
* Other element will not set `tabIndex` to avoid `onBlur` sequence problem.
* For focused select, we set `aria-live="polite"` to update the accessibility content.
*
* ref:
* - keyboard: https://developer.mozilla.org/en-US/docs/... |
<filename>src/chordsymbol.ts
// [VexFlow](http://vexflow.com) - Copyright (c) <NAME> 2010.
//
// Author: @AaronDavidNewman
//
// This implements chord symbols as modifiers that can be attached to notes.
// Chord symbols can contain multiple 'blocks' which can contain
// text or glyphs with various positioning options.
... |
<filename>src/app/CONSTANTS.ts
import { IndividualConfig } from "ngx-toastr/toastr/toastr-config";
import npm from "../../package.json";
import {
PublicRoutes,
PublicRoutesList,
TypeInstructionsData,
TypeDataRegister,
TypeLang,
TypeFloatingPointStageConfiguration,
TypeRegister,
TypeRegisterToEdit,
Typ... |
import $ from 'jquery';
import { isNull, isUndefined } from 'util';
import { Component, OnInit, ViewEncapsulation, EventEmitter, Output } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { NgbRatingConfig } from '@ng-bootstrap/ng-bootstrap';
import { Title } from '@angular/platform... |
// SPDX-License-Identifier: Apache-2.0
import { useState, useRef, ChangeEventHandler, FC, useCallback, ReactNode, useContext, useMemo, ElementRef } from "react";
import { getRoles, registerConsumer, unregisterConsumer, registerIndustry, registerDealer, unregisterDealer, unregisterIndustry } from "../services/contract-... |
import { InteractionState, EnrichedState, Population, WellScore, WellLocation } from '../model';
import { PlacedSnippet, List, Label, Line, Polygon } from '../core/graphics/snippet';
import { ViewMouseEvent, ViewContext } from '../core/graphics/view';
import { ConfigurationOptions } from './configuration';
import { Str... |
<filename>src/client/vr.ts
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls";
import * as THREE from "three";
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader";
import LoadingBar from "./utils/LoadingBar";
import { XRControllerModelFactory } from "three/examples/jsm/webxr/XRCont... |
import { Mk2Connection } from "./mk2Connection";
import { led, Mk2Model } from "./mk2Model";
// eslint-disable-next-line @typescript-eslint/no-var-requires
const bp = require("bufferpack");
export interface IscaleEntry {
scale: number
offset: number
}
export class Calc {
umains_calc: IscaleEntry | undefined
imain... |
/* Converted from JavaScript to TypeScript by
* nmtigor (https://github.com/nmtigor) @2022
*/
/* Copyright 2014 Mozilla Foundation
*
* 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
*
*... |
<filename>contracts/ts/__tests__/Maci.test.ts
require('module-alias/register')
jest.setTimeout(1200000)
import * as fs from 'fs'
import * as path from 'path'
import * as ethers from 'ethers'
import * as etherlime from 'etherlime-lib'
import { genAccounts, genTestAccounts } from '../accounts'
import { timeTravel } fr... |
/**
* Created by priya on 10/07/18.
*/
import { NgModule,Component, OnInit,Injectable,Directive, ElementRef, HostListener, Input,ViewChild} from '@angular/core';
import { Router } from '@angular/router';
import {FormGroup, FormsModule,AbstractControl, FormBuilder, Validators,ReactiveFormsModule} from '@angular/forms... |
/// <reference types="@types/googlemaps" />
import { ElementRef, NgZone, OnInit, ViewChild, Component } from '@angular/core';
import { routerTransition } from '../../router.animations';
import { FormControl } from '@angular/forms';
// import { } from 'googlemaps';
// import { MapsAPILoader, MouseEvent } from '@agm/core... |
/**
* This component ensures that the Leaflet map state reflects the redux application state, and dispatches map-related
* events via redux.
*/
import React from 'react'
import ReactDOM from 'react-dom'
import { connect, ConnectedProps } from 'react-redux'
import L, { LeafletMouseEvent, Popup } from 'leaflet'
impor... |
<reponame>OpenMicroStep/Aspects<gh_stars>1-10
import {
Aspect, Identifier, ControlCenterContext,
VersionedObject, VersionedObjectManager, VersionedObjectSnapshot,
DataSourceInternal,
} from '@openmicrostep/aspects';
import ObjectSet = DataSourceInternal.ObjectSet;
import ConstraintType = DataSourceInternal.Constr... |
import { RiscoBaseSocket } from './RiscoBaseSocket'
import { RiscoDirectTCPSocket } from './RiscoDirectSocket'
import { PanelType, RiscoError, TimeZoneStr } from './constants'
import { Output, OutputList } from './Devices/Outputs'
import { Zone, ZoneList } from './Devices/Zones'
import { Partition, PartitionList } from... |
import { readFileSync } from 'node:fs';
import Redis, { RedisOptions } from 'ioredis';
import Redlock from 'redlock';
import * as jsonpatch from 'fast-json-patch';
import { RedisPubSub } from 'graphql-redis-subscriptions';
import * as R from 'ramda';
import type { ChainableCommander } from 'ioredis/built/utils/RedisCom... |
<reponame>sulcata/Sulcata-Damage-Calculator<filename>src/Pokemon.ts
import { clamp } from "lodash";
import Ability, { AbilityOptions } from "./Ability";
import Field from "./Field";
import {
baseStats,
hasEvolution,
hasPreEvolution,
isMega,
moveId,
moveName,
natureId,
natureMultiplier,
natureName,
n... |
<reponame>nataliemisasi/grist-core
import { TreeItem, TreeModel, TreeNode, walkTree } from "app/client/models/TreeModel";
import { mouseDrag, MouseDragHandler, MouseDragStart } from "app/client/ui/mouseDrag";
import * as css from 'app/client/ui/TreeViewComponentCss';
import { Computed, dom, DomArg, Holder } from "grain... |
import {
filter,
startWith,
mergeMap,
shareReplay
} from 'rxjs/operators';
import {
ucfirst,
nextTick,
flatClone,
promiseSeries,
pluginMissing,
ensureNotFalsy,
getFromMapOrThrow,
clone,
PROMISE_RESOLVE_FALSE,
PROMISE_RESOLVE_VOID,
RXJS_SHARE_REPLAY_DEFAULTS
}... |
import devalue from 'devalue'
import { getErrorPageId, getPageIds, route, isErrorPage, loadPageRoutes, getFilesystemRoute } from './route.shared'
import { renderHtmlTemplate, isHtmlTemplate } from './html.node'
import { getViteManifest, ViteManifest } from './getViteManifest.node'
import { getPageFile, getPageFiles } f... |
import { PDFDocument } from 'pdfjs-dist/lib/core/document';
// import { Jbig2Stream } from 'pdfjs-dist/lib/core/jbig2_stream';
// import { JpegStream } from 'pdfjs-dist/lib/core/jpeg_stream';
// import { Lexer, Parser } from 'pdfjs-dist/lib/core/parser';
import { PDFManager, LocalPdfManager } from 'pdfjs-dist/lib/core/... |
<reponame>staeke/node-mongodb-native
import Denque = require('denque');
import type { Readable } from 'stream';
import type { Document, Timestamp } from './bson';
import { Collection } from './collection';
import {
AbstractCursor,
AbstractCursorEvents,
AbstractCursorOptions,
CursorStreamOptions
} from './curso... |
import { AbortController } from "abort-controller";
import { Gaxios, GaxiosOptions, GaxiosPromise, GaxiosResponse } from "gaxios";
import {
cloudbilling_v1,
cloudfunctions_v1,
google,
GoogleApis,
pubsub_v1
} from "googleapis";
import * as util from "util";
import { caches } from "../cache";
import {... |
<reponame>zacky131/thingsboard<filename>ui-ngx/src/app/core/api/entity-data-subscription.ts
///
/// Copyright © 2020 <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
///
/// ... |
'use strict';
import * as paths from 'path';
import {
commands,
Disposable,
ExtensionContext,
GitTimelineItem,
SourceControlResourceGroup,
SourceControlResourceState,
TextDocumentShowOptions,
TextEditor,
TextEditorEdit,
TimelineItem,
Uri,
ViewColumn,
window,
workspace,
} from 'vscode';
import { Action, Ac... |
/*!
* Daylight - is a tiny JavaScript library for basic sun/moon position/times/phase calculations.
* https://github.com/modern-dev/daylight
*
* Copyright (c) 2020 <NAME>
* Licensed under the MIT license.
*/
const { sin, cos, tan, asin, acos, atan2, PI, round, floor, sqrt, abs } = Math;
const rad = PI / 180;
con... |
const words: string[] = [
"like",
"just",
"love",
"know",
"never",
"want",
"time",
"out",
"there",
"make",
"look",
"eye",
"down",
"only",
"think",
"heart",
"back",
"then",
"into",
"about",
"more",
"away",
"still",
"them",
... |
<filename>src/classes/Listings.ts
import callbackQueue from 'callback-queue';
import pluralize from 'pluralize';
import request from 'request-retry-dayjs';
import async from 'async';
import dayjs from 'dayjs';
import Currencies from '@tf2autobot/tf2-currencies';
import sleepasync from 'sleep-async';
import Bot from './... |
import * as React from "react";
import classNames from "clsx";
import { useForm, Controller } from "react-hook-form";
import useSWR from "swr";
import BigNumber from "bignumber.js";
import { DEFAULT_FEE, WalletOperation } from "@taquito/taquito";
import type { Estimate } from "@taquito/taquito/dist/types/contract/estim... |
<reponame>lasfrancisco/cover-pizza
import { wmEditable, wmParent, wmNodeType, wmIndentType, wmSizeLevel, wmAlignType, wmTextStyle } from './editable-types';
import { EditableFactory, EditableTypes } from './editable-factory';
export type EditablePosition = number[];
export abstract class EditableContent<T extend... |
import { EventEmitter } from 'events';
const assert = require('assert');
import { ErrorCode } from '../error_code';
import { LoggerInstance } from '../lib/logger_util';
import { BufferWriter } from '../lib/writer';
import {NodeConnection, PackageStreamWriter, Package, Block, BlockHeader} from '../chain';
import { SYNC... |
/**
* @license
* Copyright 2017 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 ... |
<reponame>ParadoxARG/Recognizers-Text<filename>JavaScript/packages/recognizers-date-time/src/dateTime/baseMerged.ts
import { IExtractor, ExtractResult } from "@microsoft/recognizers-text";
import { Constants, TimeTypeConstants } from "./constants";
import { RegExpUtility, StringUtility, BaseNumberExtractor } from "@mic... |
<reponame>rumbalipar/standard-apps
export declare class ClientJob {
_type: string;
protected _generateDataAsync(): Promise<Blob | string>;
protected onUpdate(data: any, last: any): void;
protected onError(data: any, critical: any): void;
sendToClient(): Promise<unknown>;
}
import { ClientJob } from... |
/* eslint-disable sort-keys */
import { BackgroundKey, BackgroundData } from "./backgrounds"
import { CharacterAnimationKey, CharacterData, CharacterKey, SpriteData } from "./characters"
import { MonsterKey, MonsterData } from "./monsters"
import { CategoryData, CategoryKey, Word, Wordlist } from "./wordlists"
declare... |
import {Dictionary, List, StringBuilder} from "./VDFExtras";
import {VDFLoadOptions} from "./VDFLoader";
export enum VDFTokenType {
//WiderMetadataEndMarker,
//MetadataBaseValue,
//LiteralStartMarker, // this is taken care of within the TokenParser class, so we don't need a passable-to-the-outside enum-value for it... |
<filename>core/native.ts
import Parser from './parser';
import { createSheet, createRules } from './styles';
import { $RxElement, Component } from './components';
import Router from './router';
import {NativeEventData, NativeEventType, ConfigType, RxElement} from './types';
class Native {
router: Router;
componen... |
<reponame>eacaps/dxf-parser-writer
/* eslint-disable */
// TODO: fix lint
import {
dxfHeader,
dxfJson,
dxfHeaderKeys,
numberTriplet,
numberPair,
xyzTriplet,
xyPair,
dxfTables,
dxfBlock,
dxfViewportContainer,
dxfViewport,
dxfLineTypeContainer,
lineTypeObject,
dxfLayerContainer,
layerObject,... |
<gh_stars>10-100
import {Uint8, Uint16, Numbers} from './numbers';
import {Device} from './interfaces';
import {Cartridge} from './cartridge';
import {PPU_PALETTE} from './ppu-palette';
import {MirroringMode} from './mirroring-mode';
import {Constants} from './constants';
import {LoopyRegister} from './loopy-register';... |
<gh_stars>1-10
//@ts-ignore
import picoModal from 'picomodal';
import { textToMarker } from './leaflet/markers';
import { MapInterface } from './MapInterface';
declare var L: any;
declare var ol: any;
declare var Plotly: any;
export interface QueryObject {
[key: string]: Array<string> | string | Array<QueryObject> ... |
<reponame>davidyu/Robinson
// Implementation heavily based on josephg's noisejs, which is based on <NAME>'s implementation.
// Source:
// https://github.com/josephg/noisejs/blob/master/perlin.js
interface PackedTextureData {
data: Uint8Array;
size: number;
}
interface Packed3ChannelTextureData {
r: PackedTextu... |
import { Chars, isDigit, isLetter } from './chars'
import { SyntaxKind } from './syntax'
import { ParserOptions } from './ast'
import { FeatureFlags } from './features'
import { binarySearch } from './utils'
// stash some additional stuff inside the token
// for later tools
export enum TokenFlags {
None =... |
<gh_stars>0
// ==LICENSE-BEGIN==
// Copyright 2017 European Digital Reading Lab. All rights reserved.
// Licensed to the Readium Foundation under one or more contributor license agreements.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file exposed on Github (readium)... |
<filename>aws/api.ts
// Copyright 2016-2018, Pulumi Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'
import { animate, state, style, transition, trigger } from '@angular/animations'
import { ActivatedRoute } from '@angular/router'
import { BsModalService } from 'ngx-bootstrap/modal'
import { ToastrService } from 'ngx-toastr'
import { BehaviorSubj... |
<gh_stars>0
import * as p5 from 'p5'
import * as Tone from 'tone'
import { engine3d, Avatar, BlackHoleObj, Ground, Vec } from 'engine3d'
import { KEYCODE_ESC } from './constants'
import WSClient, { DONT_REOPEN } from './serverApi/WSClient'
import { ClockOpts, NOTE_METRONOME_BPM_CHANGED, NOTE_METRONOME_DOWN } from './se... |
<gh_stars>10-100
import { SalesInvoiceModel } from './sales.invoice.model';
import { SalesInvoiceSaveArgsModel } from './sales.invoice.save.args.model';
import { EntityManager, Repository } from 'typeorm';
import {
BankAccountService,
BankAccountServiceKey,
} from './bank.account.service';
import { CustomerService,... |
import { Action, MagicVariable } from "./OutputData";
import { getVariable } from "./HelpfulActions";
import { ConvertingContext } from "./Converter";
import { AsAble } from "./ParserData";
import { ArgParser } from "./ArgParser";
import actionList from "./Data/Actions";
import { ShortcutsActionSpec } from "./Data/A... |
<gh_stars>0
import {
DebugSession, InitializedEvent, TerminatedEvent, StoppedEvent, OutputEvent,
Thread, StackFrame, Source, Breakpoint, Variable
} from 'vscode-debugadapter';
import { DebugProtocol } from 'vscode-debugprotocol';
import * as path from 'path';
import * as fsExtra from 'fs-extra';
import * as eol from ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.