text
stringlengths
9.82k
47.8k
<filename>apps/rush-lib/src/logic/base/BaseInstallManager.ts // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. import colors from 'colors/safe'; import * as fetch from 'node-fetch'; import * as fs from 'fs'; im...
import { readdirSync } from 'fs'; import { eqci, getFileContents } from './common'; import { AtlasLocation } from './atlas-location'; import { decode } from 'html-entities'; import { MapClass } from './map-class'; import { logWarning } from './atlas_database'; import { acos, cos_deg, PI, sin_deg } from '@tubular/math';...
import { Attribute as Attr, AttributeValueChoice, AttributeValueChoiceOption, AttributeValueSet, AttributeValueSetItem, Element, POSITION_UNKNOWN, SourceLocation, Tagname, ValueAbsent, ValueConstant, attrValues, isConstant, } from "@opticss/element-analysis"; import { MultiMap, ObjectDicti...
<gh_stars>1-10 export { default as x } from "./0x"; export { default as inch } from "./1inch"; export { default as keyNetwork } from "./2key-network"; export { default as mph } from "./88mph"; export { default as Aave } from "./aave"; export { default as AbbcCoin } from "./abbc-coin"; export { default as Achain } from ...
import { Component, OnInit, ViewChild, ElementRef, TemplateRef, } from '@angular/core'; import { FormControl, FormGroupDirective, NgForm, FormBuilder, FormGroup, Validators, } from '@angular/forms'; import { Router, ActivatedRoute } from '@angular/router'; import { ToastrService } from 'ngx-toastr...
<reponame>getrix/DouyuHTML5Player import flvjs, * as FlvJs from 'flv.js' import {requestFullScreen, exitFullscreen, LocalStorage, Timer, CountByTime} from './utils' import {TypeState} from 'typestate' const storage = new LocalStorage('h5plr') function findInParent (node: HTMLElement, toFind: HTMLElement) { whi...
<gh_stars>0 import { GridCoord, GridVertex } from '../../data/coord'; import { ITokenGeometry } from '../../data/tokenGeometry'; import { ITokenDrawing } from '../../data/tokens'; import { MapColouring } from '../colouring'; import { FeatureColour } from '../featureColour'; import { IGridGeometry } from '../gridGeometr...
<gh_stars>0 /* globals jQuery */ /** * Recalculate. * @module recalculate * @license MIT */ import jQueryPluginSVG from '../common/jQuery.attr'; // Needed for SVG attribute setting and array form with `attr` import {NS} from '../common/namespaces'; import {convertToNum} from '../common/units'; import {isWebkit} fr...
/* * Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * BK-BASE 蓝鲸基础平台 is licensed under the MIT License. * * License for BK-BASE 蓝鲸基础平台: * ----------------------------------------------------...
import { LambdaClient, GetFunctionConfigurationCommand, UpdateFunctionConfigurationCommand, UpdateFunctionConfigurationCommandInput, InvokeCommand, InvokeCommandInput, } from "@aws-sdk/client-lambda"; import { XRayClient, GetTraceSummariesCommand, GetTraceSummariesCommandInput, BatchGetTracesCommand...
<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *-----------------------------------------------...
import * as yaml from "js-yaml"; import {PostInfo} from "./posts.model"; import * as marked from 'marked'; import * as moment from 'moment'; // Actual Library import { Moment } from "moment"; import * as fs from "fs"; import {DataController} from "./data.controller"; // TypeScript Type import * as Prism from "prismjs";...
import * as fs from 'fs'; import * as path from 'path'; import { ITopicsMetadata } from './declarations/kafka-node-ext'; import { KafkaClient, Producer, Consumer, Offset, Message, OffsetFetchRequest, ProduceRequest, Topic, } from 'kafka-node'; import { EventEmitter } from 'events'; import { IInitialized...
<filename>packages/web-layer/three/three-web-layer.ts<gh_stars>0 import * as _THREE from 'three' if (self.THREE) { var THREE = self.THREE } else { var THREE = _THREE } import { WebLayer} from '../WebLayer' import { WebRenderer, WebLayerOptions } from '../WebRenderer' import {Bounds, Edges, getBounds, getViewport...
<filename>public/device-api.ts export const kInt32sPerTimePoint = 2; //Each TimePoint is a little endian 64 bit integer export type TInt64 = Int32Array; //Of length 2 (Little endian) export class TimePoint { localPreTimeTick: TInt64; remoteTimeTick: TInt64; localPostTimeTick: TInt64; constructor(other?: ...
<gh_stars>0 /* * Copyright 2019 GridGain Systems, Inc. and Contributors. * * Licensed under the GridGain Community Edition License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.gridgain.com/products/software/commu...
<reponame>matthew-macgregor/eamon<filename>client/adventures/princes-tavern/event-handlers.ts import Game from "../../core/models/game"; import {Artifact} from "../../core/models/artifact"; import {Monster} from "../../core/models/monster"; import {RoomExit} from "../../core/models/room"; import {Room} from "../../core...
<filename>lib/ci-helper.ts import * as fs from "fs"; import * as util from "util"; import addressparser = require("nodemailer/lib/addressparser"); import { ILintError, LintCommit } from "./commit-lint"; import { commitExists, git, emptyTreeName } from "./git"; import { GitNotes } from "./git-notes"; import { GitGitGadg...
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import Denque from 'denque'; import { assert, fail, noop } from './Common'; import { EditLog, SequencedOrderedEditId } from './EditLog'; import { EditId } from './Identifiers'; import { Revision, Re...
import * as React from 'react'; import { IRenderFunction, anchorProperties, assign, buttonProperties, getId, getNativeProps, KeyCodes, css, mergeAriaAttributeValues, portalContainsElement, memoizeFunction, nullRender, warnConditionallyRequiredProps, warnDeprecations, EventGroup, initiali...
<reponame>andrea-e-c/cypress // @ts-nocheck import Bluebird from 'bluebird' import check from 'check-more-types' import Debug from 'debug' import EE from 'events' import _ from 'lodash' import path from 'path' import commitInfo from '@cypress/commit-info' import browsers from './browsers' import pkg from '@packages/r...
<gh_stars>1-10 /** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import { Adt, Arr, Fun, Optional, Type } from '@ephox/...
<reponame>davinkevin/kpt-functions-catalog<filename>functions/ts/src/gen/io.k8s.api.policy.v1beta1.ts import { KubernetesObject } from 'kpt-functions'; import * as apiCoreV1 from './io.k8s.api.core.v1'; import * as apisMetaV1 from './io.k8s.apimachinery.pkg.apis.meta.v1'; import * as pkgUtilIntstr from './io.k8s.apimac...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------------------...
<gh_stars>10-100 import { type, ipairs, pairs, wipe, truthy, LuaArray, LuaObj, } from "@wowts/lua"; import { find } from "@wowts/string"; import { isNumber, oneTimeMessage } from "../tools/tools"; import { HasteType } from "../states/PaperDoll"; import { PowerType } from "../states/Power"; i...
<reponame>codyborn/celo-monorepo // tslint:disable-next-line: no-reference (Required to make this work w/ ts-node) /// <reference path="../../../contractkit/types/web3.d.ts" /> import { CeloContract, CeloToken, ContractKit, newKit, newKitFromWeb3 } from '@celo/contractkit' import { TransactionResult } from '@celo/cont...
<filename>experimental/PropertyDDS/packages/property-dds/src/propertyTree.ts /*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ /* eslint-disable import/no-internal-modules */ import isEmpty from "lodash/isEmpty"; import findIndex from "lodash/findI...
<reponame>liulinboyi/engine import { MathUtil, Vector3 } from "@oasis-engine/math"; import { BufferGeometry, GeometryRenderer } from "../geometry"; import { Buffer } from "../graphic/Buffer"; import { BufferBindFlag } from "../graphic/enums/BufferBindFlag"; import { BufferUsage } from "../graphic/enums/BufferUsage"; im...
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable no-async-promise-executor */ import FormData from 'form-data'; import fetch from 'node-fetch'; import moment from 'moment'; import axios from 'axios'; import striptags from 'striptags'; import ytdl from 'ytdl-core'; import brain from 'bra...
/* * Copyright (c) 2020, 2021, Oracle and/or its affiliates. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2.0, * as published by the Free Software Foundation. * * This program is also distributed with certain software (in...
<filename>src/router.ts<gh_stars>100-1000 import { Component, IBobrilCtx, IBobrilComponent, IBobrilChildren, invalidate, addEvent, IBobrilCacheNode, IBobrilNode, assign, init, IBobrilStyles, postEnhance, IDataWithChildren, getCurrentCtx, getDomNode, } from "./...
<reponame>Priemar/pri-ng-scrollbar import { AfterViewChecked, AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, HostBinding, Inject, Input, NgZone, OnDestroy, PLATFORM_ID, Renderer2, ViewChild } from '@angular/core'; import {CdkScrollable} from '@angular/cdk/o...
import { canvas, SFFont, lightTheme, darkTheme, SFHeavyFont, } from './../utils/default-ui-components' import { ImageData, Dialog, ButtonStyles } from '../utils/types' import resources, { setSection, buttonIconPos } from '../utils/resources' import { UIDelay } from '../utils/timerComponents' export enum Conf...
<reponame>purecloudlabs/purecloud-streaming-client<gh_stars>1-10 import { EventEmitter } from 'events'; import { ExternalService, ExternalServiceList, ReceivedMessage } from 'stanza/protocol'; import { toBare } from 'stanza/JID'; import LRU from 'lru-cache'; import { JingleAction } from 'stanza/Constants'; import { Ses...
<gh_stars>10-100 import * as dockerode from 'dockerode'; import * as sinon from 'sinon'; // Recursively convert properties of an object as optional type DeepPartial<T> = { [P in keyof T]?: T[P] extends Array<infer U> ? Array<DeepPartial<U>> : T[P] extends object ? DeepPartial<T[P]> : T[P]; }; // Partial cont...
<reponame>TrissieTheHusky/pigallery // @ts-nocheck /* eslint-disable max-classes-per-file */ // Based on iv-viewer - 2.0.1 Author : <NAME> git+https://github.com/s-yadav/iv-viewer.git const imageViewHtml = ` <div class="iv-loader"></div> <div class="iv-snap-view"> <div class="iv-snap-image-wrap"> <div c...
import { customElement, FASTElement, html, ref, attr, observable } from "@microsoft/fast-element"; import { CURRENCY_BY_IMPARTER, NETWORKS_BY_IMPARTER, Currency, IOverhideLogin, Imparter, Social, IOverhideAppsell, IOverhideHub, IOverhidePendingTransactionEvent, IOverhideSkuAuthorization...
<filename>src/sql/parts/query/execution/queryRunner.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *--------...
import { DependencyGraph } from "./graph"; import { PCNode, PCSourceTagNames, getPCNode, extendsComponent, PCOverride, PCVariantOverride, PCComponentInstanceElement, PCComponent, getOverrides, PCVariant, isVisibleNode, isComponent, isSlot, PCModule, getComponentSlots, PCSlot, PCOverrid...
/* Main file of the warehouse microservice. This allow the user to add some job into a couchDB database. Some options must be specified into the command line to run this microservice (see options parts). */ // Required packages import { exec, spawn } from "child_process"; import program = require ("commander"); imp...
<filename>src/utils/statusCodes.ts /** * The HTTP `100 Continue` informational status response code indicates that * everything so far is OK and that the client should continue with the request * or ignore it if it is already finished. */ export const CONTINUE = 100; /** * The HTTP `101 Switching Protocols` respon...
<reponame>jakewilliami/GorillaSCExperiment /*--------------------------------------*/ // This is the main programme file that // runs when the programme is started. /*--------------------------------------*/ // API imports import gorilla = require('gorilla/gorilla'); import stateMachine = require("gorilla/state_machin...
import axios from "axios"; import urlSearchParams from "@ungap/url-search-params"; import {APIErrors} from "./resources/APIErrors"; import {APITasks, IAPITaskDef} from "./resources/APITasks"; import {APIAbortController} from "./APIAbortController"; import {ClientSummaryInfo} from "./ClientSummaryInfo" import {FSIServe...
import a796 from "../assets/audios/a796.mp3"; import a797 from "../assets/audios/a797.mp3"; import a798 from "../assets/audios/a798.mp3"; import a799 from "../assets/audios/a799.mp3"; import a800 from "../assets/audios/a800.mp3"; import a801 from "../assets/audios/a801.mp3"; import a802 from "../assets/audios/a802.mp3"...
<reponame>Zaphodious/Pokit3<gh_stars>0 "use strict"; let _programs: IProgram[] = []; let _gl: WebGL2RenderingContext = null; let _textures: Map<string,ITexture> = null; let _cameras: Map<string, ICamera> = null; let _actors: Map<string, IActor> = null; let _actor_dirty_flag: boolean = true; interface IProgram { ...
import { Component, OnInit, ViewChild, Inject, ViewEncapsulation, AfterContentInit, OnDestroy } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { FolderModelService, FolderInfo, FolderLists }from '../../shared/services/index.service'; import {BehaviorSubject, Observab...
<reponame>ryceg/terrain 'use strict'; import type { Selection } from 'd3'; import * as d3 from 'd3'; import { BinaryHeapStrategy as PriorityQueue } from 'js-priority-queue'; import random from 'random'; import type { City } from './city'; import { defaultExtent } from './defaultExtent'; import * as Geometry from "./ge...
import * as Vector3 from './vector3'; import * as Quaternion from './quaternion'; import * as Angle from './angle'; /** * A type alias representing a 4x4 column-major matrix. * * The common use-case for 4x4 matrices in 3D computer graphics are for * [transformation * matrices](https://en.wikipedia.org/wiki/Transf...
<filename>lib/translators/InfoTranslator.ts import { HexBuffer } from '../HexBuffer'; import { W3Buffer } from '../W3Buffer'; import { WarResult, JsonResult } from '../CommonInterfaces' interface Map { name: string; author: string; description: string; recommendedPlayers: string; playableArea: Play...
<reponame>doersino/urpflanze<gh_stars>1-10 import { glMatrix, mat4, vec2, vec3 } from 'gl-matrix' import { TStreamCallback } from '@core/types/scene' import { IShapeBaseSettings, IShapeBounding, TVertexCallback } from '@core/types/shape-base' import { ERepetitionType, IRepetition, IBaseRepetition, ISceneChildPropA...
<reponame>sam-peach/daa-displays /** * @module Compass * @version 2018.12.01 * @description <div style="display:flex;"><div style="width:50%;"> * <b>Compass Widget.</b> * <p>This widget presents the heading of the ownship with respect to the * magnetic north. The ownship is ...
import * as FileMulti from 'front-end/lib/components/form-field-multi/file'; import * as FormFieldMulti from 'front-end/lib/components/form-field-multi/lib/index'; import * as SelectMulti from 'front-end/lib/components/form-field-multi/select'; import { Component, ComponentView, Dispatch, Immutable, immutable, Init, ma...
<reponame>mcheshkov/icfpc2020 import { inc, dec, add, mul, div, eq, pwr2, lt, t, f, mod, dem, c, b, s, neg, i, cons, car, cdr, nil, isnil, vec, convertToPicture, checkerboard, multipledraw } from "./symbols"; import {ListCons} from "./list"; import { Lam, assertNum, assertNumNum, NumCons, NewMod...
import { Component, Input, ViewChild, OnChanges, ElementRef } from '@angular/core'; import { Board, ResourceType, Hex, Corner, Coordinate, Beach, Port, getNumDots } from '../../board/board'; import * as paper from 'paper'; import { assert } from '../../util/assert'; import * as bezier from 'bezier-easing'; import { fin...
<filename>src/index.ts /** * # API Reference * * This package based on this paper: [Gorski (2005)](http://iopscience.iop.org/article/10.1086/427976/pdf). * * The key things to understand the implementation are: * - Spherical coordinates in different representations such as `(alpha, delta)` * or `(theta, phi)`...
<reponame>linsvensson/animal-crossing export interface Item { sourceSheet: Category; name: string; image?: string; variation?: null; bodyTitle?: null | string; pattern?: null; patternTitle?: null; diy?: ...
<reponame>saby/saby-ui<filename>UIInferno/UICore/_vdom/Synchronizer/resources/VdomMarkup.ts /// <amd-module name="UICore/_vdom/Synchronizer/resources/VdomMarkup" /> import { ArrayUtils } from 'UICommon/Utils'; import { coreDebug, constants } from 'Env/Env'; import { ListMonad } from '../../Utils/Monad'; import { setC...
import {NgModule,Component,ViewChild,ElementRef,AfterViewChecked,AfterContentInit,OnDestroy,Input,Output,EventEmitter,ContentChildren,QueryList,TemplateRef,Renderer2,forwardRef,ChangeDetectorRef,IterableDiffers,ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core'; import {CommonModule} from '@angular/common...
import * as React from 'react'; import { useState, useEffect, useRef, forwardRef, useCallback, useImperativeHandle, useMemo } from 'react'; // eslint-disable-next-line no-unused-vars import { EditorCommand, NoteBodyEditorProps } from '../../utils/types'; import { commandAttachFileToBody, handlePasteEvent } from '../.....
import React, { useCallback, useEffect, useState } from "react"; import { FacilitySelect } from "../Common/FacilitySelect"; import { SelectField, MultiSelectField, TextInputField, AutoCompleteAsyncField, } from "../Common/HelperInputFields"; import { PATIENT_FILTER_ORDER, GENDER_TYPES, FACILITY_TYPES, D...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------------------...
import { basename } from 'path' import dedent from 'dedent' import * as R from 'ramda' import * as React from 'react' import * as RRDom from 'react-router-dom' import * as urql from 'urql' import type { ResultOf } from '@graphql-typed-document-node/core' import * as M from '@material-ui/core' import * as Lab from '@ma...
import React from 'react' import styled from 'styled-components' import { useTranslation } from 'react-i18next' import { Button, Input, message, Progress } from 'antd' import axios from 'axios' import { RightOutlined } from '@ant-design/icons' import Column from '../../components/Column/index' import { BrowserView, MD...
<gh_stars>0 import * as $ from "jquery"; import * as SVG from "svg.js"; import { Line, Point, Rect } from "../geometrytypes"; import { VizStep } from "../VizStep"; import { linePoint1, linePoint2, svgLineLength } from "../utils"; import { SymmetricalVizAction } from "../SymmetricalVizAction"; import { EntryOnlyVizActio...
<reponame>VeryBigThings/g.frame import { LinearFilter, Mesh, MeshBasicMaterial, PlaneBufferGeometry, PlaneGeometry, RGBFormat, Vector2, VideoTexture } from 'three'; import { BACKGROUND_BLACK_COLOR, BOTTOM_BUTTON_SPACE, BOTTOM_SPACE, MULTIPLY_SCALAR, PROGRESS_BAR_WIDTH...
import { WeavessTypes } from '@gms/weavess'; import * as Immutable from 'immutable'; import * as lodash from 'lodash'; import { determineDetectionColor, filterSignalDetectionsByStationId, getSignalDetectionChannelSegments, isPeakTroughInWarning } from '~analyst-ui/common/utils/signal-detection-util'; import {...
<filename>rangeset/src/rangeset.ts import {ChangeSet, ChangedRange, MapMode} from "@codemirror/next/state" /// Each range is associated with a value, which must inherit from /// this class. export abstract class RangeValue { /// Compare this value with another value. The default /// implementation compares by iden...
//#region import import { ArrayManager } from "./ArrayManager"; import { iQuestionQQuestion, PlayerRole, PlayerState, iQuestionQTip, iQuestionQTipFeedback, iGeneralQuestion, iGeneralPlayerInputError, MessageType, iQuestionQHostArguments, iQuestionQPlayerData, Gamemode, iQuestionQGameData, iQue...
/** * 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...
import { FormModel, WorldModel } from "./model"; import { ObjectReference, Game, Actor, MotionType, settings, printConsole, ActorBase, once, on, Utility, worldPointToScreenPoint, Form, storage, NetImmerse, } from "skyrimPlatform"; import * as sp from "skyrimPlatform"; import { applyMovement...
// oauth2.controller import * as oauth2orize from 'oauth2orize'; import passport from 'passport'; import { Response, Request, NextFunction } from 'express'; import { authCodeValueGenerator, refreshTokenValueGenerator, } from '../utils/valueGenerator'; import { OAuth2Utils } from './oauth2.utils'; import { ensureAu...
<reponame>mikezimm/TrackMyTime2<gh_stars>1-10 import { Web } from "@pnp/sp/presets/all"; import { sp, Views, IViews } from "@pnp/sp/presets/all"; import { IMyFieldTypes, IBaseField , ITextField , IMultiLineTextField , INumberField , IXMLField , IBooleanField , ICalculatedField , IDateTimeField , ICurrencyField ,...
<gh_stars>0 import { EventEmitter } from 'events'; import { MongoMemoryServer, AutomaticAuth, MongoMemoryServerOpts } from './MongoMemoryServer'; import { assertion, authDefault, Cleanup, ensureAsync, generateDbName, getHost, isNullOrUndefined, ManagerAdvanced, statPath, uriTemplate, } from './util/...
<filename>p5-server/src/server/proxyCache.ts import express = require('express'); import * as cacache from 'cacache'; import * as csstree from 'css-tree'; import { parse as parseCss } from 'css-tree'; import fetch from 'node-fetch'; import { parse as parseHtml } from 'node-html-parser'; import stream, { Readable } from...
import { ReseauMutable, AssembleurReseau, ReseauMutableParTableDeNoeuds, AssembleurReseauEnAnneau, Reseau, FormatReseau, } from "../../bibliotheque/reseau/reseaux"; import { NoeudMutable } from "../../bibliotheque/reseau/noeuds"; import { Identification, creerIdentificationParCompteur, Identifiant } ...
import {AbstractBatch, AbstractIterator, AbstractIteratorOptions} from 'abstract-leveldown'; import {Quiz, QuizGraph, QuizKind, textToGraph} from 'curtiz-parse-markdown'; import {KeyToEbisu, whichToQuiz, WhichToQuizOpts} from 'curtiz-quiz-planner'; import {enumerate, kata2hira, mapRight, partitionBy} from 'curtiz-utils...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ import Button from '@material-ui/core/Button' import Card from '@...
<reponame>limberest/limberest-js import * as flowbee from 'flowbee/dist/nostyles'; import { Options } from './options'; import { Templates } from './templates'; import { FlowSplitter, ToolboxSplitter } from './splitter'; import { DrawingTools, OptionToggleEvent, FlowActions, FlowActionEvent, ZoomCha...
import { FilterQuery, ObjectID } from 'mongodb'; import { Counter } from '@hydrooj/utils/lib/utils'; import { ContestAlreadyAttendedError, ContestNotAttendedError, ContestNotFoundError, ContestScoreboardHiddenError, ValidationError, } from '../error'; import { ContestRule, ContestRules, ProblemDict, Sco...
import { Injectable, NgZone } from '@angular/core'; // websocket import { webSocket, WebSocketSubject } from 'rxjs/webSocket'; import { Subject, Subscription } from 'rxjs'; // Services import { ToastService } from './toast.service'; import { SettingsService } from './settings.service'; import { StructureService } fr...
<filename>frontend/src/app/components/node-navigation/node-navigation.renderer.ts import { ContinuousInterpolator, AnimationPeriod, LinearInterpolator, BezierInterpolator } from '../../util/animate'; import { Vector, rotatePoint } from '../../util/vector'; import { NavigationNode, NavigationNodeType, Navigation...
import {INITIAL_ALLOWED_SLIPPAGE} from './constants' import {MarketBuySwapQuote, MarketSellSwapQuote} from '@0x/asset-swapper'; import {BigNumber} from '@0x/utils'; import React, {useCallback, useContext, useEffect, useMemo, useState} from 'react'; import {connect, useDispatch, useSelector} from 'react-redux'; import {...
<gh_stars>0 /* * Copyright 2018-19 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 la...
// borrowed from https://github.com/richtr/guessLanguage.js/blob/master/lib/guessLanguage.js // adapted for typescript // below is the original copyright info /* Guess the natural language of a text * Copyright (c) 2012-2014, <NAME> * http://github.com/richtr/guessLanguage.js/ * * Original Python package: ...
import styles from './ReviewSection.module.css' import classNames from 'classnames/bind' import { IUserState, selectUser } from '@redux/features/userSlice' import { useAppSelector } from '@redux/hooks' import React, { useEffect, useState } from 'react' import Axios from 'axios' import { IOption } from '@models/User' im...
<filename>src/machine-estimate.ts import { ExnDomain, ExnPrecision, Printer } from "./defs"; import { current_kernel, IKernel } from "./kernels/kernel"; import { EstimateIvl } from "./estimate-ivl"; // Import some macros //! import './macros/debug.jsmacro'; //! import './macros/jsreal.jsmacro'; // MachineEstimate - ...
<reponame>sz1521/space2021 /* * MIT License * * Copyright (c) 2021 <NAME>, <NAME> * * 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 th...
import { ddescribe, describe, it, iit, xit, expect, beforeEach, afterEach } from '@angular/core/testing/testing_internal'; import {BaseException} from '../../src/facade/exceptions'; import { ParsedCssResult, CssParser, BlockType, CssSelectorRuleAST, CssKeyframeRuleAST, CssKeyframeDefinitio...
/** * @file Select * @description * @author fex * @date 2017-11-07 */ import {uncontrollable} from 'uncontrollable'; import React from 'react'; import VirtualList from './virtual-list'; import Overlay from './Overlay'; import PopOver from './PopOver'; import Downshift, {ControllerStateAndHelpers} from 'downshift'...
<reponame>Robin-Hoodie/nodejs-firestore /*! * Copyright 2017 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/LI...
<reponame>velleicvelleity/noclip.website import * as F3DEX from '../BanjoKazooie/f3dex'; import * as RDP from '../Common/N64/RDP'; import ArrayBufferSlice from "../ArrayBufferSlice"; import { nArray, assert, assertExists, hexzero } from "../util"; import { ImageFormat } from "../Common/N64/Image"; import { vec4 } fro...
<reponame>eduardoarj/moodleMobile<filename>src/addons/calendar/services/calendar-helper.ts // (C) Copyright 2015 Moodle Pty 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 // // ...
<filename>packages/tantd/src/grid/gridManager/index.ts import type { RowDataTransaction, GridApi, RowNode, ColDef, ColGroupDef, ColumnApi } from '@ag-grid-community/core'; import type { Rules } from 'async-validator'; import Schema from 'async-validator'; import { get, isEmpty, findIndex, cloneDeep, set, uniqBy, groupB...
<reponame>urbanfly/covid-projections import _ from 'lodash'; import moment from 'moment'; import { ActualsTimeseries } from 'api'; import { PredictionTimeseriesRow, ActualsTimeseriesRow, RegionSummaryWithTimeseries, Timeseries, MetricsTimeseriesRow, Metricstimeseries, Metrics, } from 'api/schema/RegionSu...
/* * << * Davinci * == * Copyright (C) 2016 - 2017 EDP * == * 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 b...
import * as _ from 'lodash'; import { promises as fs } from 'fs'; import * as path from 'path'; import Network from './network'; import Volume from './volume'; import Service from './service'; import * as imageManager from './images'; import type { Image } from './images'; import * as applicationManager from './appli...
<reponame>ibizan/ibizan-integration<filename>app/models/punch.ts import * as moment from 'moment-timezone'; const weekend = require('moment-weekend'); import * as uuid from 'node-uuid'; import { Mode } from '../shared/common'; import { MODES, REGEX, TIMEZONE } from '../shared/constants'; import { holidayForMoment } fr...
import express = require('express'); import mongoose = require('mongoose'); import gridfs = require('gridfs-stream'); import fs = require('fs'); import HttpStatus = require('http-status-codes'); import { EMSession } from '../emSession/emSession'; import { EMEntityController } from '../emEntityController/emEntityC...
import { CompletionItem, CompletionItemKind, TextDocumentPositionParams, TextDocument, Position, InsertTextFormat, Hover, Definition, Location, } from 'vscode-languageserver'; import { DEFAULT_WHITESPACES, STOP_CHARS, varType, kwdNum, SkipComment, intersNum, OLC, MLC_O, ...
/** * Copyright 2018 <NAME> & Informatica * * 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 agre...