text stringlengths 9.82k 47.8k |
|---|
/**
* Created by tijmen on 16-01-16.
*
* translation of concept 2 csafe.h to typescript version 9/16/08 10:51a
*/
export declare const EXT_FRAME_START_BYTE = 240;
export declare const FRAME_START_BYTE = 241;
export declare const FRAME_END_BYTE = 242;
export declare const FRAME_STUFF_BYTE = 243;
export declare cons... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import process from "process"
import util, { inspect } from "util"
import { filterInPlace } from "./Array"
import { delay, until } from "./Async"
import { BatchCluster } from "./BatchCluster"
import { BatchClusterOptions } from "./BatchClusterOptions"
import { map, orElse } from "./Object"
import { isWin } from "./Plat... |
import {
Select,
MenuItem,
InputLabel,
FormControl,
Typography,
Grid,
TextField,
Button,
Fade,
} from "@material-ui/core";
import React, { useEffect, useState } from "react";
import styled from "styled-components";
// import Style from "styled-jsx/style";
import SWAPModal from "../SWAPModal/SWAPModal... |
/**
* @license
* Copyright (c) 2019 Google Inc. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* Code distributed by Google as part of this project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io... |
<filename>packages/build-scripts/src/core/Context.ts
import { AggregatedResult } from '@jest/test-result';
import { GlobalConfig } from '@jest/types/build/Config';
import { Logger } from 'npmlog';
import { IHash, Json, JsonValue, MaybeArray, MaybePromise, JsonArray } from '../types';
import hijackWebpackResolve from '.... |
import atlas from 'azure-maps-control'
/** Options for the GeolocationControl. */
interface GeolocationControlOptions {
/**
* The style of the control. Can be; light, dark, auto, or any CSS3 color. When set to auto, the style will change based on the map style.
* Default `light'.
* @default light
*/
st... |
<reponame>kryptamine/DefinitelyTyped<filename>types/async/index.d.ts
// Type definitions for Async 3.2
// Project: https://github.com/caolan/async, https://caolan.github.io/async
// Definitions by: <NAME> <https://github.com/borisyankov>
// <NAME> <https://github.com/kern0>
// <NAME> <ht... |
/* tslint:disable:member-ordering */
import * as THREE from 'three';
import { getTexelDecodingFunction } from './getTexelDecodingFunction';
import vertexShader from './shaders/mtoon.vert';
import fragmentShader from './shaders/mtoon.frag';
const TAU = 2.0 * Math.PI;
export interface MToonParameters extends THREE.Sha... |
import {HasProps} from "../core/has_props"
import {Color, Arrayable} from "../core/types"
import {Class} from "../core/class"
import {Vector} from "../core/vectorization"
import {VectorSpec, ScalarSpec, ColorSpec, UnitsSpec, Property} from "../core/properties"
import {MarkerType, RenderLevel} from "../core/enums"
impor... |
import React, {
useState,
memo,
useEffect,
useMemo,
ButtonHTMLAttributes,
useRef,
useCallback
} from 'react'
import {
Editor,
Node as SlateNode,
Element as SlateElement,
createEditor,
Range,
Transforms,
Point
} from 'slate'
import {
useSlate,
Editable,
RenderElementProps,
Slate,
w... |
import { PlatForms, ShareListItem } from "@/config";
import { EnhancedEventEmitter } from "../event";
import logger from "../logger";
import rtc_server_conf from './rtc_server_conf.json';
// @ts-ignore
const { NERtcSDK, ipcRenderer, eleRemote, platform } = window;
const needPrivate = process.env.REACT_APP_SDK_R... |
/*
* Copyright 2021 Salto Labs 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
*
* Unless required by applicable ... |
<reponame>WyseNynja/weiroll.js
import { ContractInterface } from '@ethersproject/contracts';
import type { Contract as EthersContract } from '@ethersproject/contracts';
import { Interface, ParamType, defaultAbiCoder } from '@ethersproject/abi';
import type { FunctionFragment } from '@ethersproject/abi';
import { define... |
<gh_stars>1-10
import { mode, setDrawableMoving, tryDeleteComponentsWhere } from "../simulator"
import { asArray, Expand, FixedArray, FixedArraySize, FixedArraySizeNonZero, forceTypeOf, isArray, isNotNull, isNumber, isUndefined, Mode, RichStringEnum, toTriStateRepr, TriStateRepr, Unset } from "../utils"
import { Node, ... |
<reponame>pmasci/vscode-pvs
/**
* @module PvsProcessLegacy
* @author <NAME>
* @date 2019.02.07
* @copyright
* Copyright 2019 United States Government as represented by the Administrator
* of the National Aeronautics and Space Administration. All Rights Reserved.
*
* Disclaimers
*
* No Warranty: THE SUBJECT ... |
<reponame>krisavi/kos-language-server
import { empty, unWrap, unWrapMany } from '../../src/utilities/typeGuards';
import {
rangeEqual,
rangeOrder,
rangeBefore,
} from '../../src/utilities/positionUtils';
import { Range, DiagnosticSeverity, Position } from 'vscode-languageserver';
import { structureType } from '..... |
<gh_stars>10-100
'use strict'
// **Github:** https://github.com/fidm/quic
//
// **License:** MIT
import { debuglog } from 'util'
import { EventEmitter } from 'events'
import {
PingFrameDelay,
DefaultIdleTimeout,
MaxStreamWaitingTimeout,
DefaultMaxIncomingStreams,
ReceiveConnectionWindow,
DefaultMaxReceiveC... |
<filename>src/world/dungeon/Floor.ts
import ROT = require('rot-js');
import Constants from '@utilities/GameConstants'
import DungeonMap from '@world/dungeon/DungeonMap';
import TownData from '@maps/startingTown.json';
import { CreateTileData } from '@world/Tile';
const CLOSED_DOOR = CreateTileData('+', "door");
co... |
<filename>js/lib/options-page.ts<gh_stars>1-10
interface DOMStringMap {
reset: string;
manifest: string;
msg: string;
}
interface Window {
optionsPage: OptionsPage;
}
interface HTMLElement {
ownerDocument: Document;
}
class OptionsPage {
/* Static Properties */
/** elements to which storage code should be a... |
import {
TASK_COMPILE,
TASK_COMPILE_SOLIDITY_COMPILE_JOB,
TASK_COMPILE_SOLIDITY_GET_COMPILATION_JOB_FOR_FILE,
TASK_COMPILE_SOLIDITY_GET_DEPENDENCY_GRAPH,
} from "hardhat/builtin-tasks/task-names";
import { extendConfig, subtask, task, types } from "hardhat/config";
import { NomicLabsHardhatPluginError } from "h... |
<gh_stars>1-10
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved.
* See 'LICENSE' in the project root for license information.
* -----------------------------------------------------------------------------------... |
<filename>app/plugins/modules/editor/src/lib/cmds/edit-esm.ts<gh_stars>0
/*
* Copyright 2018 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/l... |
<filename>src/ctrl/SpeechInputController.ts
import { Observable, Subscription } from 'rxjs';
import { map } from 'rxjs/operators';
import { RecognitionEmma , RecognitionType , SpeechRecognitionResult } from '../typings/';
import { EmmaUtil } from '../util/EmmaUtil';
import { SubscriptionUtil } from '../util/S... |
<filename>src/renderers/webgl/WebGLTextures.ts
/**
* Converted from three.js/Box2.js, If you want to see the js code source file, please go to https://threejs.org/
* @author illegalDriver
*/
import { LinearFilter, NearestFilter, RGBFormat, RGBAFormat, DepthFormat, DepthStencilFormat, UnsignedShortType, UnsignedIntT... |
/*
* Copyright (c) 2018-2021 Yahweasel
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISC... |
<filename>src/lib/scene-internal.ts
/**
* @license
* 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
*
*... |
<filename>util/session.ts<gh_stars>1-10
import uuid from "uuid/v4";
import clone from "clone";
import { HLSRecorder, ISegments, PlaylistType, Segment } from "@eyevinn/hls-recorder";
import { promise as fastq } from "fastq";
import type { queueAsPromised } from "fastq";
import { GetOnlyNewestSegments, ReplaceSegmentURLs... |
import { Location } from '../Geo';
import { Suitability, Type } from '../Media';
import * as Media from '../Media/Media';
import {
Category,
Description,
Detail,
Level,
Place,
PlaceReview,
PlaceReviewFromYelp,
PlaceReviewFromYelpUser,
PlaceReviewsData,
PlaceReviewsFromYelpData,
Reference,
Tag
} from '../Pla... |
<reponame>beholdnec/noclip.website
import { NameObj, NameObjGroup } from "./NameObj";
import { EffectKeeper } from "./EffectSystem";
import { Spine } from "./Spine";
import { ActorLightCtrl } from "./LightData";
import { vec3, mat4 } from "gl-matrix";
import { SceneObjHolder, getObjectName, FPS, getDeltaTimeFrames, Re... |
import ArrayBufferSlice from "../ArrayBufferSlice";
import { assert, readString, align } from "../util";
import { AttributeFormat, IndexFormat, PrimitiveTopology, TextureAddressMode, FilterMode } from "./nngfx_enum";
import { AABB } from "../Geometry";
export interface FSKL_Bone {
name: string;
}
export interfac... |
<reponame>net-atlsecsrv-org/https-atlsecsrv-net.github.io-dev.azure.portal.dashboard-<gh_stars>10-100
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
/// <reference path="./typi... |
import * as _ from 'lodash';
import * as ng from 'angular';
import { WebServiceOperationConstants as apWebServiceOperationConstants } from '../constants/apWebServiceOperationConstants';
import { UtilityService } from './apUtilityService';
import { CacheService } from './apCacheService';
import { DecodeService } from '... |
import {
parse,
parseFromClause,
SelectStatement,
FromTableNode,
ColumnRefNode,
IncompleteSubqueryNode,
FromClauseParserResult,
DeleteStatement,
NodeRange
} from '@joe-re/sql-parser'
import log4js from 'log4js'
import { Schema, Table, DbFunction } from './database_libs/AbstractClient'
import { Complet... |
<gh_stars>0
import { IGame, IPlayer, IWorld, IWorldClass } from '../types/iquest';
import { Quest } from '../types/quest';
import { initCommands } from './command/util';
// This is where the world exist!
export const w: IWorld = {};
// @DOC
// ## World Functions
//
// These are functions for creating objects in the g... |
<gh_stars>10-100
/**
* Copyright 2022 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... |
import { createCanvas, loadImage } from 'canvas'
import fs from 'fs/promises'
import path from 'path'
import {
GlobalState,
Component,
EventConfig,
ProgrammingLanguage,
compile,
execute,
ComponentFromConfig,
MATCH,
Tag,
swiftBundle,
swift,
WRAP
} from "polygraphic"
import... |
<gh_stars>1-10
import * as mobx from 'mobx';
export const languages = {
en: 'English',
de: 'Deutsch',
fr: 'français',
ja: '日本語',
zh: '中文',
ko: '한국어',
};
const language = mobx.observable.box(localStorage.getItem('ffxiv-weather.language') ?? 'default');
mobx.reaction(() => language.get(), () => localStorage... |
/**
* Copyright (C) 2021 Alibaba Group Holding Limited
* All rights reserved.
*/
import { PolarisGSI, StandardLayer, StandardLayerProps } from '@polaris.gl/gsi'
import { Color, Vector2 } from '@gs.i/utils-math'
import { Track } from 'ani-timeline'
import { SimplifiedMarker } from './SimplifiedMarker'
import { Option... |
<reponame>Patbox/voxelsrv-server
import * as vec from 'gl-vec3';
import * as zlib from 'zlib';
import type { Entity } from '../world/entity';
import type { WorldManager, EntityManager } from '../world/manager';
import type { ItemStack } from '../registry';
import type { Server } from '../../server';
import * as fs fro... |
/* Copyright(C) 2019-2022, HJD (https://github.com/hjdhjd). All rights reserved.
*
* protect-camera.ts: Camera device class for UniFi Protect.
*/
import {
PROTECT_CONTACT_MOTION_SMARTDETECT,
PROTECT_SWITCH_DOORBELL_TRIGGER,
PROTECT_SWITCH_MOTION_SENSOR,
PROTECT_SWITCH_MOTION_TRIGGER,
ProtectAccessory
} fro... |
// Copyright 2017-2021 @polkadot/api authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DecoratedMeta } from '@polkadot/metadata/decorate/types';
import type { RpcInterface } from '@polkadot/rpc-core/types';
import type { Option, Raw, StorageKey, Text, u64 } from '@polkadot/types';
import type... |
// SPDX-License-Identifier: MIT
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the “Software”), to deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribut... |
// Copyright (c) 2015-2016 <NAME>
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/* eslint-disable max-lines */
import 'renderer/css/settings.css';
import React from 'react';
import {FormCheck, Col, FormGroup, FormText, Container, Row, Button, FormCont... |
import { Meteor } from 'meteor/meteor'
import * as React from 'react'
import * as _ from 'underscore'
import { Translated, translateWithTracker } from '../../lib/ReactMeteorData/react-meteor-data'
import { Rundowns, Rundown, RundownId } from '../../../lib/collections/Rundowns'
import { IAdLibListItem } from './AdLibLis... |
import { DeepPartial } from "@reduxjs/toolkit";
import React, {
useCallback,
useContext,
useEffect,
useRef,
useState,
} from "react";
import ReactDOM from "react-dom";
import { Socket } from "socket.io-client";
import { Opaque } from "type-fest";
import {
SOCKET_PATCH_STATE,
SOCKET_SET_PLAYER_ID,
SOCKET... |
import {
Song,
addMeasureHeader,
Beat,
BeatEffect,
BeatStatus,
BeatStroke,
BeatStrokeDirection,
BendEffect,
BendType,
Chord,
ChordAlteration,
ChordExtension,
ChordType,
Color,
Duration,
Fingering,
GraceEffect,
GraceEffectTransition,
GuitarString,
isPercussionChannel,
KeySignatu... |
<gh_stars>1-10
import { createElement, L10n, isNullOrUndefined, select } from '@syncfusion/ej2-base';
import { DocumentEditor } from '../../document-editor';
import { Toolbar } from '@syncfusion/ej2-navigations';
import { Revision } from './track-changes';
import { CommentReviewPane } from '../comments';
import { Butto... |
//###########################################################################################
import { Vector } from "@/entities";
//https://github.com/sketchpunk/FunWithWebGL2/tree/master/lesson_006
class Vector3 {
constructor(x: number, y: number, z: number) {
this.x = x || 0.0;
this.y = y || 0.... |
<filename>server/src/services/transpileService.ts
import { compile, LineMap } from 'coffeescript'
//@ts-ignore
import VolatileMap from 'volatile-map'
//@ts-ignore
import jshashes from 'jshashes'
import { Diagnostic, DiagnosticSeverity, Position, Range } from 'vscode-languageserver-types'
import { TextDocument } from 'v... |
import { readGrammar, generateFollow, generateFirst, logSponserObj, getNonT_T, getFirst, getFollow } from './initUtils';
import { EMPTY } from './constant'
import { SponserObject, TokenItem, TypeCode, SyntaxTreeNode, TerminalPosition } from '../../types/compiler'
interface DissatisfyItem {
nonName: string,//非终结符 名称
... |
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... |
import { makeEdge } from '../helpers';
import NodeConnectionId from '../../nodes/node-connection-id';
import NodeId from '../../nodes/node-id';
import Edge from '../edge';
const darkOverworldEdges: Edge[] = [
// Dark A1
makeEdge( NodeId.DARK_A1_NW, NodeId.DARK_SW_CONNECTOR_LEFT_ENTRANCE ),
makeEdge( NodeId.DARK... |
import minimatch from 'minimatch';
import { valid as validSemver } from 'semver';
import { parse as parsePath, extname } from 'path';
import { Route, Source } from '@vercel/routing-utils';
import frameworkList, { Framework } from '@vercel/frameworks';
import { PackageJson, Builder, Config, BuilderFunctions } from './ty... |
<gh_stars>100-1000
// DEBUG: import { b2Assert } from "../common/b2_settings.js";
import { b2_maxManifoldPoints } from "../common/b2_settings.js";
import { b2Min, b2Vec2, b2Rot, b2Transform } from "../common/b2_math.js";
import { b2ContactFeatureType, b2ContactID } from "./b2_collision.js";
import { b2Manifold, b2Manif... |
<filename>src/app/components/force-directed-graph/force-directed-graph.component.ts
import { Component, ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core';
import { D3Service, D3, Selection, ScaleOrdinal } from 'd3-ng2-service';
import { Http, Headers, Response, RequestOptions } from '@angular/http';
import {... |
/*
Copyright 2018-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... |
import {Tree, NodeProp} from "lezer-tree"
import {StyleSpec, StyleModule} from "style-mod"
import {EditorView, ViewPlugin, ViewUpdate, Decoration, DecorationSet} from "@codemirror/next/view"
import {Extension, precedence, Facet} from "@codemirror/next/state"
import {Language} from "@codemirror/next/language"
import {Ra... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {
NativeModules,
NativeEventEmitter,
EmitterSubscription,
} from 'react-native';
export type HKWorkoutTypeIdentifier = 'HKWorkoutTypeIdentifier';
export type HKAudiogramTypeIdentifier = 'HKAudiogramTypeIdentifier';
export type HKSampleTypeIdentifier =
| HKWorkoutTypeIdentifier
| HKQuantityTypeIdentif... |
<gh_stars>10-100
import Snoowrap, {Listing, RedditUser} from "snoowrap";
import Submission from "snoowrap/dist/objects/Submission";
import Comment from "snoowrap/dist/objects/Comment";
import {Duration, DurationUnitsObjectType} from "dayjs/plugin/duration";
import dayjs, {Dayjs} from "dayjs";
import Mustache from "must... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as React from 'react';
import { schemeOption, schemesJSX } from './scheme';
const p8 = `${100 / 8}%`;
const p9 = `${100 / 9}%`;
const p10 = `${100 / 10}%`;
const p12 = `${100 / 12}%`;
const p20 = `${100 / 20}%`;
s... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
// @ts-nocheck
/* eslint-disable prefer-rest-params */
import _ from 'lodash'
import Promise from 'bluebird'
import debugFn from 'debug'
import { registerFetch } from 'unfetch'
import $dom from '../dom'
import $utils from './utils'
import $errUtils from './error_utils'
import $stackUtils from './stack_utils'
import ... |
import {
compose, Either, joinLeftRight, left, mapRight, right
} from "./either";
type Writer<View> = (dv: View) => void;
type Read<State, View> = (idx: number, dv: View) => [State, number];
type Write<State, View> = (idx: number, state: State) => [number, Writer<View>];
type UnwrapAccessorTuple<T> = T extends [Data... |
<reponame>mvanbem/oot-explorer
import { vec3, mat4 } from 'gl-matrix'
import type * as wasm from '../pkg';
import { Container } from './container';
import { $t } from './dollar_t';
import { ExploreView } from './explore_view';
import { glInitProgram, glInitShader } from './gl_util';
import { Status } from './status';
... |
import he from 'he'
import { parseHTML } from './html-parser'
import { parseText } from './text-parser'
import { parseFilters } from './filter-parser'
import { genAssignmentCode } from '../directives/model'
import { extend, cached, no, camelize, hyphenate } from 'shared/util'
import { isIE, isEdge, isServerRendering } ... |
// NOTE: This definition file is auto generated - any changes you make will not be saved
// {generatedDate}
declare function runOnStartup(cb: (runtime: IRuntime) => void): void;
declare interface IRuntime {
objects: IRuntimeObjects;
addEventListener(eventName: 'tick' | 'beforeprojectstart' | 'afterprojectstar... |
import React, { useState, useEffect, useRef } from "react";
import Match, { MatchData, MatchResult } from "../../models/Match";
import { Map } from "../../models/Map";
import { HeroesByRole, Hero, HeroRoles, HeroRole } from "../../models/Hero";
import Season from "../../models/Season";
import Account from "../../models... |
/* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
<filename>src/index.ts
export type StrategyFunction = (value: Input, parent: Input, keyInParent: KeyInParent, existingEntity: Input, id: Key) => any
export type SchemaFunction = (value: Input, parent: Input, keyInParent: KeyInParent) => string
export type MergeFunction = (entityA: Input, entityB: Input) => any
export ... |
<gh_stars>1-10
import { ArgumentOutOfRangeException } from "./Exceptions/ArgumentException";
import moment = require('moment-timezone');
export enum DateTimeKind {
Unspecified = 0,
Utc = 1,
Local = 2,
}
/**
* DateTime - basic date time based on moment.js
*/
export class DateTime {
get Kind(): DateTi... |
import * as THREE from 'three';
import type { PerspectiveCamera } from 'three';
import { EphemPresets } from './EphemPresets';
import { Orbit } from './Orbit';
import { getFullTextureUrl } from './util';
import { rescaleArray, rescaleNumber } from './Scale';
import type { Coordinate3d } from './Coordinates';
import ... |
<gh_stars>0
import { ItemName, ItemInfo, MonsterName } from "./definitions/adventureland"
import { getInventory, getCooldownMS, isAvailable, findItem } from "./functions"
import FastPriorityQueue from "fastpriorityqueue"
import { PriorityEntity, InventoryItemInfo } from "./definitions/bots"
const TIMEOUT = 500
class ... |
/**
* @author <NAME>
* @email [<EMAIL>]
* @create date 2018-07-06 02:51:23
* @modify date 2018-07-06 02:53:23
* @revision date 2020-05-20 03:00:00 - v2
* @desc A date utility class to handle all sort of manipulation on a date
*/
// TODO: work out the ts-ignore
// test by pasting it into retrace magic date
enu... |
'use strict'
/* !
* FileStreamRotator
* Copyright(c) 2012-2017 Holiday Extras.
* Copyright(c) 2017 <NAME>.
* MIT Licensed
*/
/**
* Module dependencies.
*/
import fs from 'fs'
import path from 'path'
import moment from 'moment'
import crypto from 'crypto'
import util from 'util'
import { EventEmitter } from 'e... |
<reponame>paultbr/AndeanWeb
import { Respuesta } from './../perfil-usuario/respuesta';
import { Categoria } from './../menu/categoria';
import { CategoriaService } from './../categoria/categoria.service';
import { MarcaService } from './../marca/marca.service';
import { Marca } from './../marca/marca';
import { Articul... |
import * as nls from "vscode-nls";
import { cldListener } from './cldListener';
import { DiagnosticEntry, DiagnosticType, SymbolKind } from './Facade';
import { Token, ParserRuleContext, RuleContext } from "antlr4ts";
import { LogFunction, LogType } from "../common/main";
import { TerminalNode } from "antlr4ts/tree";
... |
<gh_stars>10-100
import * as THREE from 'three/src/Three';
import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader.js';
import blastUrl from './images/blast.png';
import apoapsisUrl from './images/apoapsis.png';
import periapsisUrl from './images/periapsis.png';
import { Settings } from './SettingsControl';
imp... |
import * as _ from 'underscore'
import { SaferEval } from 'safer-eval'
import * as objectPath from 'object-path'
import * as moment from 'moment'
import { Random } from 'meteor/random'
import { iterateDeeply, iterateDeeplyEnum } from '../../../lib/lib'
import {
IMOSROFullStory, IMOSRunningOrder,
} from 'mos-connection... |
import { EventEmitter } from "events"
import * as get from "get-value"
import * as io from "socket.io-client"
import { EventDispatcher, IEventHandler, ISimpleEventHandler, SimpleEventDispatcher } from "strongly-typed-events"
import Cache from "../cache"
import Log from "../log"
import NCredit from "./credit/ncredit"
im... |
export const testOptionsLarge = [
'ability','able','aboard','about','above','accept','accident','according',
'account','accurate','acres','across','act','action','active','activity',
'actual','actually','add','addition','additional','adjective','adult','adventure',
'advice','affect','afraid','after','afternoon'... |
<filename>src/service/server.ts
import * as lsp from 'vscode-languageserver';
import * as Types from '../compiler/types';
import * as util from 'util';
import * as path from 'path';
import * as fs from 'fs-extra';
import { findAncestor } from '../compiler/utils';
import { Store, createTextDocumentFromFs, createTextDocu... |
//export function NoteBlockUtil(system: IVanillaServerSystem)
import { events } from "bdsx/event";
import { ContainerId, ItemStack } from "bdsx/bds/inventory";
import { serverInstance } from "bdsx/bds/server";
import { system } from "../example_and_test/bedrockapi-system";
import { command } from "bdsx/command";
... |
import EventEmitter from "./EventEmitter"
import SpielInterface from "./../types/index"
import InvisibleClass from "./InvisibleClass"
import uniformFunction from "./uniformFunction"
import Contro from 'contro'
const isClass = (fn) =>{
try {
return /^\s*class/.test(fn.toString())
} catch (error) {
return fa... |
'use strict'
import tape from 'tape'
import { compile } from 'solc'
import * as stateDecoder from '../../src/solidity-decoder/stateDecoder'
import { MockStorageResolver } from './mockStorageResolver'
import { compilerInput } from '../helpers/compilerHelper'
var testMappingStorage = require('./stateTests/mapping')
tape... |
import { DatePipe } from '@angular/common';
import { Batch } from '../Batch/batch';
import { StockItem } from '../StockItem/stock-item';
import { ObjectID } from 'bson';
import { ɵgetLocaleCurrencyCode } from '@angular/core';
export class HEADER {
TALLYREQUEST: string;
}
export class STATICVARIA... |
<reponame>theoperatore/andrew-bot
export const corpus = {
template: '@adjective @race @dclass from @location who @backstory',
adjective: [
'bigoted',
'bitchy',
'blunt',
'boisterous',
'bossy',
'brave',
'callous',
'cautious',
'charming',
'cheerful',
'churlish',
'cold',
... |
/** @jsxRuntime classic */
/** @jsx jsx */
import React from 'react'
import { css, jsx } from '@emotion/react'
import { OptionsType } from 'react-select'
import { animated } from 'react-spring'
import {
ArrayControlDescription,
BaseControlDescription,
ControlDescription,
FolderControlDescription,
HigherLevelC... |
import * as _ from "lodash";
import * as path from "path";
import * as express from "express";
import * as clc from "cli-color";
import * as http from "http";
import * as jwt from "jsonwebtoken";
import * as api from "../api";
import * as logger from "../logger";
import * as track from "../track";
import { Constants }... |
<gh_stars>1-10
class Piece {
size: number;
coords: {x: number, y: number}[];
constructor(public id: number, coords: [number, number][]) {
this.size = coords.length;
this.coords = [];
for (let i = 0; i < coords.length; i++)
this.coords[i] = { x: coords[i][0], y: coords[i][1] };
}
}
class Rota... |
/**
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
<gh_stars>100-1000
// This can depend on the shared backend
import crypto from 'crypto';
import Timeout from 'await-timeout';
import { ethers } from 'ethers';
import {
CBR_Address,
bigNumberify,
} from './CBR';
import util from 'util';
import {
num,
hexlify,
AnyBackendTy,
checkedBigNumberify,
bytesEq,
} f... |
<filename>client/src/types.ts
import BN = require('bn.js')
import { BigNumber } from 'bignumber.js'
import Web3 = require('web3')
// define the common interfaces
export type Address = string
// alias functions
// @ts-ignore
export const isBN = Web3.utils.isBN
// @ts-ignore
export const isBigNum = Web3.utils.isBigNumb... |
import assert = require("assert");
import { EventEmitter } from "events";
import _ = require("lodash");
import assertExists from "./assert-exists";
import { BitStream } from "./ext/bitbuffer";
import consts = require("./consts");
import functional = require("./functional");
import net = require("./net");
import { De... |
/**
* A GENERAL COMMENT ON THIS MODULE
* ==
*
* During the lifecycle of a Rundown, it, along with all of it's Parts & PartInstances undergoes thousands of mutations
* on it's timing properties. Because of that, it's very difficult to accurately simulate what's going on in one for the
* purposes of automated testi... |
import {
is,
raf,
each,
isEqual,
toArray,
eachProp,
frameLoop,
flushCalls,
getFluidValue,
isAnimatedString,
FluidValue,
Globals as G,
callFluidObservers,
hasFluidValue,
addFluidObserver,
removeFluidObserver,
getFluidObservers,
} from '@react-spring/shared'
import {
Animated,
Animat... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import {Text} from "@codemirror/text"
import {EditorState, ChangeSet, ChangeDesc, SelectionRange} from "@codemirror/state"
import {RangeSet} from "@codemirror/rangeset"
import {Rect} from "./dom"
import {HeightMap, HeightOracle, BlockInfo, MeasuredHeights, QueryType, heightRelevantDecoChanges} from "./heightmap"
import... |
<reponame>shaba1567/Elastos.Essentials.App<filename>src/app/services/global.elastosapi.service.ts
import { Injectable } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { BehaviorSubject, Subscription } from 'rxjs';
import { Logger } from '../logger';
import { CRCouncilSearchResponse... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.