text
stringlengths
9.82k
47.8k
<gh_stars>10-100 import AsyncMachine from './asyncmachine' import { TransitionException, MutationTypes, IQueueRow, QueueRowFields, TransitionStepTypes, IStateStruct, ITransitionStep, StateRelations, TransitionStepFields, StateStructFields, IBind, IEmit } from './types' // @ts-ignore import * as ...
<filename>src/ReflowState.ts // Copyright (c) 2016-2021, The Khronos Group Inc. // Copyright 2021 Collabora, Ltd // // SPDX-License-Identifier: Apache-2.0 import { Logger } from "tslog"; import ReflowOptions from "./ReflowOptions"; import REFLOW_REGEXES from "./Regexes"; const log: Logger = new Logger({ name: "Reflow...
import React from 'react' export const Dots = () => { return ( <svg xmlns="http://www.w3.org/2000/svg" width="434" height="490" fill="none" viewBox="0 0 434 490" > <g opacity="0.6"> <mask id="frontpage-slide-dots-mask0" width="434" hei...
<filename>src/mb.ts import { ArticleInfo, MBComment, MBGroup, MBLink, MBMeta, MBRelease } from 'interfaces' import { ContentSource, MBContentSource, InfinityScroller } from 'scroller' class MBExtractor { private debug: boolean; private readonly WRAPPER_CLASS_NAME = 'eintrag2'; private currentGroup: MBGr...
import { URL } from 'react-native-url-polyfill' import type { QoS } from '../lib/mod' import { encode, decode, AnyPacket, AnyPacketWithLength, ConnackPacket, PublishPacket, PubackPacket, PubrecPacket, PubrelPacket, PubcompPacket, SubscribePacket, SubackPacket, UnsubscribePacket, UnsubackPac...
import * as ds from './utils/debugScopes' import * as m from './utils/misc' import * as rest from './utils/rest' import * as pgUtils from './utils/postgres' import * as config from './config.json' import * as fs from 'fs' const log = ds.getLog('service') interface UniTxn { timestamp: number, srcAddr: string src...
<reponame>ANONYLULZ/badger-mobile import BigNumber from "bignumber.js"; import { UTXO } from "../data/utxos/reducer"; import { ECPair } from "../data/accounts/reducer"; import { TokenData } from "../data/tokens/reducer"; import { SLP } from "./slp-sdk-utils"; const slpjs = require("slpjs"); const SLPJS = new slpjs....
<reponame>CoffeeChaton/vscode-ahk-outline /* eslint-disable max-lines */ /* eslint-disable no-template-curly-in-string */ /* eslint-disable max-len */ /* cSpell:disable */ import * as vscode from 'vscode'; export const CommandList = [ 'AUTOTRIM', 'BLOCKINPUT', 'CLIPWAIT', 'CONTROL', 'CON...
<filename>src/renderer/renderScene.ts import { RoughCanvas } from "roughjs/bin/canvas"; import { RoughSVG } from "roughjs/bin/svg"; import oc from "open-color"; import { AppState, Zoom } from "../types"; import { ExcalidrawElement, NonDeletedExcalidrawElement, ExcalidrawLinearElement, NonDeleted, GroupId, ...
<filename>src/vs/workbench/contrib/webview/browser/webviewElement.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license informati...
<reponame>radiosterne/fork-ts-checker-webpack-plugin import * as path from 'path'; import * as process from 'process'; import * as childProcess from 'child_process'; import chalk, { Chalk } from 'chalk'; import * as micromatch from 'micromatch'; import * as os from 'os'; import * as webpack from 'webpack'; import { Can...
<filename>src/dbf-file.ts import * as assert from 'assert'; import * as iconv from 'iconv-lite'; import {extname} from 'path'; import {FieldDescriptor, validateFieldDescriptor} from './field-descriptor'; import {isValidFileVersion} from './file-version'; import {CreateOptions, Encoding, normaliseCreateOptions, normalis...
import {Ebisu} from './ebisu'; import * as jdepp from './jdepp'; import {kata2hira} from './kana'; import {goodMorphemePredicate, invokeMecab, maybeMorphemesToMorphemes, Morpheme, parseMecab} from './mecabUnidic'; import partitionBy from './partitionBy'; import {argmin, enumerate, filterRight, flatten, hasKanji} from '...
import * as React from 'react'; import { ActionGroup, Alert, Button, Checkbox } from '@patternfly/react-core'; import * as _ from 'lodash'; import { Helmet } from 'react-helmet'; import { Trans, useTranslation } from 'react-i18next'; import { match } from 'react-router'; import { RadioGroup, RadioInput } from '@console...
<gh_stars>1-10 /* eslint-disable class-methods-use-this */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ /* eslint-disable @typescript-eslint/ban-types */ /* eslint-disable complexity */ /* eslint-disable sonarjs/cognitive-complexity */ /* eslint-disable @typescript-eslint/no-this-alias */ /* e...
import { Component, enableProdMode, Injectable, Inject, Input, Output, EventEmitter, OnInit, ElementRef } from 'angular2/core'; import { bootstrap } from 'angular2/platform/browser'; import { Http, Headers, HTTP_PROVIDERS } from 'angular2/http'; import 'rxjs/add/operator/map'; var d3: any = window.d3, m...
<filename>src/ical-upcoming.ts import { Red, Node } from 'node-red'; import { CronJob } from 'cron'; import { Config } from './ical-config'; import * as moment from 'moment'; import { getICal, CalEvent } from './helper'; var parser = require('cron-parser'); var RRule = require('rrule').RRule; var ce = require('clonee...
/* * Copyright 2017 Next Century Corporation * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
<reponame>microsoft/pxt-mkc import * as fs from "fs" import * as path from "path" import * as util from "util" import * as mkc from "./mkc" import * as files from "./files" import * as bump from "./bump" import * as downloader from "./downloader" import * as service from "./service" import { program as commander, Comm...
import SuperCommand from '../SuperCommand' import { getResourceFilePath, searchContest, getStatus, formatTime, changeTime, getRanklist } from '@/utils/api' import * as vscode from 'vscode' import md from '@/utils/markdown' import { UserStatus, contestStyle, contestType, contestVisibility, contestVisibilityStyle, contes...
import { Box, Breadcrumbs, Button, Divider, Grid, Typography } from '@material-ui/core'; import { createStyles, makeStyles, Theme } from '@material-ui/core/styles'; import browserHistory from 'browserHistory'; import clsx from 'clsx'; import ChildNavigation from 'components/ChildNavigation'; import MapDialog from ...
<reponame>pkmn/engine<filename>src/pkg/gen1.ts import { BoostID, BoostsTable, Generation, ID, toID, PokemonSet, SideID, StatID, StatsTable, StatusName, TypeName, } from '@pkmn/data'; import {Gen1, Slot, BattleOptions, CreateOptions, RestoreOptions} from './index'; import {LAYOUT, LE, Lookup} from...
// tslint:disable export type DefaultTranslations = { [key: string]: string | DefaultTranslations } export const translations: DefaultTranslations = { ar: { translation: { now: 'الآن', second_ago: 'منذ __count__ ثانية', second_ago_plural: 'منذ __count__ ثواني', second_in: 'في __count__ ...
<filename>front/src/uisys/layers/main.ts<gh_stars>0 import { Effector, RenderResult, EffectionCountDown, EffectionImage, Effection, Point, Size, Rect, EffectionText, EffectionImageWithAni, EffectionRectangle, EffectionStyles, EffectionGif } from '../effector'; import { AnimationFunction, AnimationFunctions } from '../a...
import * as fs from 'fs-extra'; import * as schema from './api-schema'; import { ApiDefinitions, asArray, ExtendedApi, getTitle, readJsonDefs, hasChangeEvent } from './common'; import { join, parse, relative, sep } from 'path'; type TypeLinks = {[type: string]: string}; type NamedEvents = Array<schema.Event & {name: s...
<reponame>LeastAuthority/Benchmark-Pendle-Smart-Contracts<gh_stars>0 import { assert, expect } from "chai"; import { createFixtureLoader } from "ethereum-waffle"; import { BigNumber as BN, Contract, Wallet } from "ethers"; import { advanceTime, amountToWei, approxBigNumber, consts, evm_revert, evm_snapshot,...
import * as React from 'react'; import {AlertIOS, AsyncStorage, Dimensions, Image, ImageResizeMode, ImageStyle, Modal, Platform, ProgressViewIOS, StyleSheet, Text, TextInput, TouchableOpacity, View} from 'react-native'; import {AudioRecorder, AudioUtils} from 'react-native-audio'; import Button from 'react-native-butto...
import RG from './rg'; export const Template: any = {}; Template.$DEBUG = 0; const genRegex = /[A-Z]/; const paramSplitRegex = /\s*=\s*/; const propSplitRegex = /\s*:\s*/; const debug = msg => { if (Template.$DEBUG) { console.log('[DEBUG ' + msg); } }; export interface ElemTemplate { setProps: ...
<reponame>rdbartram/pulumi // 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 re...
<filename>breakout/breakout.ts import * as dom from "../shared/dom.js" import * as geo from "../shared/geo3d.js" import * as input from "../shared/input.js" import * as rand from "../shared/rand.js" import * as math from "../shared/math.js" import * as audio from "../shared/audio.js" import * as gfx from "./gfx.js" co...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------------------...
<reponame>TaraTodd123/UXAspects-2 import { LiveAnnouncer } from '@angular/cdk/a11y'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ElementRef, EventEmitter, Input, NgZone, OnDestroy, OnInit, Output, TemplateRef } from '@angular/core'; import { hierarchy, HierarchyRectangularNode, partiti...
import { BufferReader, BufferWriter, reverseBuffer } from './bufferutils'; import * as bcrypto from './crypto'; import { Issuance } from './issuance'; import * as bscript from './script'; import { OPS as opcodes } from './script'; import * as types from './types'; const typeforce = require('typeforce'); const varuint ...
/** * @author <NAME> <https://github.com/ota-meshi> * See LICENSE file in root directory for full license. */ import type { ScopeManager, Scope } from "eslint-scope" import type { ESLintBlockStatement, ESLintExportSpecifier, ESLintExtendedProgram, ESLintIdentifier, ESLintModuleDeclaration, ES...
<gh_stars>1-10 import { monoidAdditive } from '../Additive/instances'; import { makeMonoidAlternate } from '../Alternate/instances'; import { monoidConj } from '../Conj/instances'; import { monoidDisj } from '../Disj/instances'; import { makeMonoidDual } from '../Dual/instances'; import { monoidEndo } from '../Endo/ins...
export declare const ADD = ""; export declare const ADD_COLUMN_LEFT = ""; export declare const ADD_COLUMN_RIGHT = ""; export declare const ADD_ROW_BOTTOM = ""; export declare const ADD_ROW_TOP = ""; export declare const ADD_TO_ARTIFACT = ""; export declare const ADD_TO_FOLDER = ""; export declare const AIRPLANE ...
import ModuleDAO from '../../../../shared/modules/DAO/ModuleDAO'; import ModuleDAOServer from '../../../../server/modules/DAO/ModuleDAOServer'; import IImportedData from '../../../../shared/modules/DataImport/interfaces/IImportedData'; import ModuleDataImport from '../../../../shared/modules/DataImport/ModuleDataImpo...
import './index.css'; import LZString from 'lz-string'; import * as React from 'react'; import Clipboard from 'react-clipboard.js'; import { Book, Code, Copy, ExternalLink, FileText, GitHub, Grid, Image, Link, Map, Play, Share2, Trash2, X, } from 'react-feather'; import { Portal, PortalWith...
<gh_stars>1-10 import { clientId } from "./main"; import { autoRender } from "./autoRender"; import { webAppTags, webAppClasses, webAppRegex } from "../common/tags"; import { scrollDownLeft, scrollDown, scrollLeft, baselinePosition, getCaret, setCaret, setCaretAtEndMaybe, attachElement, locateRowColu...
import React from 'react'; import styled from 'styled-components'; import { screen, color, font } from 'lib/config'; import { Config } from 'components/UnflexibleProvider'; interface EachSizes { xl: string; l: string; m: string; s: string; xs: string; } interface ConfigProps { baseSize: EachSizes; h1Siz...
import React, {useCallback, useEffect, useRef, useState} from 'react'; import {useDispatch, useSelector} from "react-redux"; import * as RS from "reactstrap"; import {TitleAndBreadcrumb} from "../elements/TitleAndBreadcrumb"; import {Link, withRouter} from "react-router-dom"; import tags from '../../services/tags'; imp...
/* --- start Graph --- */ // 133 Clone Graph ★★ 138 queue + hashtable // 200 Number of Islands ★★ 547 695 733 827 1162 import {Coordinate, runAlgorithm} from '../helpers'; import { DirectedEdge, DirectedGraph, DirectedVertex, TopologicalStatus, UndirectedEdge, UndirectedGraph, Undirected...
<reponame>yamachig/Lawtext-core import * as xpath from "xpath"; import * as util from "../util"; import { JsonEL } from "../node/el" import { compare, EditTable } from "./edit_table"; export enum TagType { // eslint-disable-next-line no-unused-vars Open = "Open", // eslint-disable-next-line no-unused-vars ...
import { DEFAULT_OBSERVABLE_CONSTANTS_TO_IMPORT } from '../../reactive-html/constants/observables/default-observable-constants-to-import.constant'; import { DEFAULT_CONSTANTS_TO_IMPORT } from '../../reactive-html/constants/default-constants-to-import.constant'; import { Component } from '../../component/component/compo...
<filename>cocos/assets/sprite-frame.ts /**************************************************************************** Copyright (c) 2008-2010 <NAME> Copyright (c) 2011-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. http://www.cocos2d-x.or...
/* * -------------------------------------------------------------------------------- * <copyright company="Aspose" file="paragraphFormatBase.ts"> * Copyright (c) 2021 Aspose.Words for Cloud * </copyright> * <summary> * Permission is hereby granted, free of charge, to any person obtaining a copy * of this s...
import queryString from "query-string"; import type { Role } from "sora-js-sdk"; import { AUDIO_BIT_RATES, AUDIO_CODEC_TYPES, AUDIO_CONTENT_HINTS, AUTO_GAIN_CONTROLS, DATA_CHANNEL_SIGNALING, DEBUG_TYPES, DISPLAY_RESOLUTIONS, ECHO_CANCELLATION_TYPES, ECHO_CANCELLATIONS, FRAME_RATES, IGNORE_DISCONN...
<gh_stars>0 interface IJSVHReg { workers: object; pNTouchGesturesHelperFunc: Function; appsRef: object; mainAppRef: object; } interface IJSVHData { reg: IJSVHReg; flags: object; } export interface IJSVanillaHelper_Extension { version: number; extensionName: string; helperExtensionName?: string; pa...
<gh_stars>0 /* This code is based heavily on Xem's WebGL guide. https://xem.github.io/articles/webgl-guide.html Thanks Xem! */ ///// // Compile a WebGL program from a vertex shader and a fragment shader function compile(gl, vshader, fshader) { let vs = gl.createShader(gl.VERTEX_SHADER); ...
<gh_stars>1-10 /* * Copyright (c) 2012 - 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 associated documentation files (the "So...
import tty = require('tty'); import util = require('util'); import { InspectOptions } from 'util'; // export interface Log { // (namespace?: string, enable?: boolean): Logger; // get(namespace?: string, enable?: boolean): Logger; // enable: (namespaces?: string) => void; // disable: () => void; // enabled: (...
import { createEffect } from 'solid-js' import g from './glyphs' import { is_rest, note_pitch, note_octave, note_duration, note_accidental } from './music/types' import { time_nb_note_value, time_note_value } from './music/types' import { white_index, black_index, is_black } from './music/piano' import { composer_she...
import 'improved-map'; import { Bits_Sizes, Uint_Sizes, Int_Sizes, Float_Sizes, Size, Serializer, Deserializer, uint_pack, int_pack, float_pack, uint_parse, int_parse, float_parse, utf8_pack, utf8_parse, hex_buffer } from './serialization'; export type P...
<reponame>Smilo-platform/Smilo-Wallet import { Component, ViewChild } from "@angular/core"; import { IonicPage, NavController, LoadingController, Loading, Alert, Platform } from "ionic-angular"; import { Chart } from "chart.js"; import { WalletService } from "../../services/wallet-service/wallet-service"; import { Aler...
/*------------------------------------------------------------------------------ About : <Write about the file here> Created on : Mon May 21 2018 Author : <NAME> Copyright (c) 2018 Mubble Networks Private Limited. All rights reserved. --------------------------------------------------------...
import { Integer } from './types/uint8'; import { EnumUnitKeys, SubType, Unpacked, StringKeys } from './types/UtilityTypes'; import { EnumUnitEnum } from './types/graphql'; import { ColumnProps } from 'antd/lib/table'; import { LabeledValue } from 'antd/lib/select'; import { KeyboardEvent } from 'react'; import { Keybo...
import { ChangeDetectorRef, Component, EventEmitter, Input, NgZone, OnChanges, OnInit, Output } from '@angular/core'; import { MatDialog, MatDialogConfig } from '@angular/material/dialog'; import { ActivatedRoute, Router } from '@angular/router'; import { AccessLevel, Tale, User } from '@api/models'; import { Collectio...
import React, { useState, useEffect } from 'react' import api from '../../services/api' import * as Yup from "yup"; import { Formik, Form } from "formik"; import FormikField from "../../components/FormikField"; import Ajax from '../../services/ajax' import { useAuth } from '../../contexts/auth' import { useHistory } fr...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. import cm = require('./common'); import ctxm = require('./context'); import agentifm = require('vso-node-api/interfaces/TaskAgentInterfaces'); import buildifm = require...
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0, (the "License"); you ma...
<reponame>benbtx/project<gh_stars>0 import BaseWidget = require('core/BaseWidget.class'); import Functions = require('core/Functions.module'); import GraphicsLayer = require("esri/layers/GraphicsLayer"); import Point = require("esri/geometry/Point"); import Map = require("esri/map"); import Graphic = require("esri/gra...
<reponame>wspecs/web-color /** Auto generate color file */ import { Color } from './utils'; export declare const ALICEBLUE: Color; export declare const ANTIQUEWHITE: Color; export declare const ANTIQUEWHITE_1: Color; export declare const ANTIQUEWHITE_2: Color; export declare const ANTIQUEWHITE_3: Color; export declare ...
import { MtmControlEnum } from "./controls/constants"; import { MtmControl } from "./controls/control"; import { MtmValue } from "./controls/value"; import MtmDataService, { MtmPaths } from "./data.service"; import Dom from "./utils/dom"; import Rect from "./utils/rect"; export default class MtmConfigurator { elemen...
import { Position, Range, Selection } from '@sourcegraph/extension-api-types' import { WorkspaceRootWithMetadata } from '../api/extension/extensionHostApi' import { SearchPatternType } from '../graphql-operations' import { discreteValueAliases } from '../search/query/filters' import { appendContextFilter } from '../se...
/** * Mappings from AssemblyScript types to WebAssembly types. * @module types *//***/ import { Class, FunctionTarget, Program, DecoratorFlags } from "./program"; import { NativeType, ExpressionRef, Module } from "./module"; /** Indicates the kind of a type. */ export const enum TypeKind { // sig...
export declare function FinishArrayPrototypeSetup(a): any export declare function SpecialArrayFunctions(): any export declare function TransitionElementsKind(a, b): any export declare function PushIfAbsent(a, b): any export declare function ArrayConcat(a): any export declare function RemoveArrayHoles(a, b): any export ...
import { NextApiRequest, NextApiResponse } from 'next' import hummus from 'hummus' import streams from 'memory-streams' import { TaxForm } from '../../types/TaxForm' import { TaxFormUserInput } from '../../types/TaxFormUserInput' import { setDate } from '../../lib/utils' import { calculate } from '../../lib/calculation...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * 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 { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, forwardRef, Input, Output, OnChanges, OnInit } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser'; import * as _ from ...
<filename>js/opt-frontend.ts<gh_stars>10-100 // Python Tutor: https://github.com/pgbovine/OnlinePythonTutor/ // Copyright (C) <NAME> (<EMAIL>) // LICENSE: https://github.com/pgbovine/OnlinePythonTutor/blob/master/LICENSE.txt /* TODO: - parse Java viz_options in users' java code: https://github.com/daveagp/java_visu...
<filename>src/psd.ts export type BlendMode = 'pass through' | 'normal' | 'dissolve' | 'darken' | 'multiply' | 'color burn' | 'linear burn' | 'darker color' | 'lighten' | 'screen' | 'color dodge' | 'linear dodge' | 'lighter color' | 'overlay' | 'soft light' | 'hard light' | 'vivid light' | 'linear light' | 'pin light...
<reponame>Clay-Ferguson/Quantizr<gh_stars>0 import highlightjs from "highlight.js"; import "highlight.js/styles/github.css"; import marked from "marked"; import { toArray } from "react-emoji-render"; import { dispatch } from "./AppRedux"; import { AppState } from "./AppState"; import { Comp } from "./comp/base/Comp"; i...
/* * (C) Symbol Contributors 2021 * * 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 ...
<reponame>JonWallsten/ts-loader<gh_stars>0 import * as path from 'path'; import type * as typescript from 'typescript'; import * as webpack from 'webpack'; import { getParsedCommandLine } from './config'; import * as constants from './constants'; import { getOutputFileNames } from './instances'; import { CacheableHos...
import { axisBottom, axisLeft, axisRight, axisTop } from "d3-axis"; import { select } from "d3-selection"; import clone from "lodash/clone"; import each from "lodash/each"; import isEmpty from "lodash/isEmpty"; import isNil from "lodash/isNil"; import isUndefined from "lodash/isUndefined"; import uniq from "lodash/uniq...
import * as Cy from 'cytoscape'; import * as React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { ThunkDispatch } from 'redux-thunk'; import { RouteComponentProps } from 'react-router-dom'; import FlexView from 'react-flexview'; import { style } from 'typestyle...
class DropDownSelectCallbackDelegate { // callbacks needs to be implemented starSaveItemCallback: (info: CallbackInfo) => void; starSaveCategoryCallback: (info: CallbackInfo) => void; starDeleteItemCallback: (info: CallbackInfo) => void; starDeleteCategoryCallback: (info: CallbackInfo) => void; ...
<gh_stars>0 import "./style.scss"; import EventEmitter from "eventemitter3"; import styler from "stylefire"; import shallowequal from "shallowequal"; import { SideEffectManager } from "side-effect-manager"; import { createSideEffectBinder, Val, ValEnhancedResult, ValSideEffectBinder, withValueEnhan...
// SPDX-License-Identifier: Apache-2.0 import { ChangeEvent, FC, useMemo, useState } from "react"; import { Breadcrumb, Button, Col, Form, ListGroup, Row, Spinner } from "react-bootstrap"; import { Web3Provider } from "@ethersproject/providers"; import { RolesInfo } from "../components/static-data"; import { trpc } fro...
<filename>theme/src/defaults/defaults.theme.ts<gh_stars>1-10 import { XSLOW, SLOW, MEDIUM, FAST, TransitionInterface } from '../transition' import { ThemeInterface } from '../theme' import { BorderInterface, BORDER_NONE, BORDER_STYLE, BORDER_THICK_WIDTH, BORDER_THICK_COLOR, BORDER_THIN_WIDTH, BORDER_THIN_...
<gh_stars>10-100 class CompiledNLPatternRules extends NLPatternContainer { constructor(name:string, o:Ontology, sv:VariableTermAttribute, lv:VariableTermAttribute) { super(name, sv, lv); // if (o!=null) { // this.speakerVariable = new VariableTermAttribute(o.getSort("any"),"SPEAKER"); // this.listenerVariabl...
<reponame>Coffeekraken/coffeekraken import __SClass from '@coffeekraken/s-class'; import __SDocblock from '@coffeekraken/s-docblock'; import __SGlob from '@coffeekraken/s-glob'; import __SPromise from '@coffeekraken/s-promise'; import __deepMap from '@coffeekraken/sugar/shared/object/deepMap'; import __getFilename fro...
<gh_stars>0 declare var Promise:any; declare var require:any; declare var module:any; const DfltJobExpiration_ms = 1000 * 60 * 5; // 5-min default export enum JobState { New = 0, Processing = 1, Completed = 2, Archived = 3, Failed = 4, Terminated = 5, Expired = 6...
/* This is based on code in GMT, utilmeca.c. */ 'use strict'; import { Canvas } from './canvas'; import { Tensor } from './tensor'; const _D2R = Math.PI / 180; const _EPSILON = 1e-16; // threshold x and y pixel difference when polygons should be merged. // Pixels are in the range [-1, 1], so 0.02 represents a 1% dif...
import 'rxjs/add/operator/share'; import 'rxjs/add/operator/map'; import { Injectable } from '@angular/core'; import { Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { DataService } from '../core/data.service'; import { Localstorage } from ...
import * as CSS from 'csstype' import { style, themeGetter, compose } from '../style' import { getPx } from './units' import { transformNegative } from '../unit' import { ITheme, Theme, VariantsType, SystemProp } from '../types' // Getters export type SpaceGetter<T extends ITheme = Theme> = VariantsType<T['space']> ex...
import { Component, OnInit, EventEmitter, Output, ChangeDetectorRef } from '@angular/core'; import { Router, ActivatedRoute, NavigationEnd } from '@angular/router'; import { MatDialogConfig, MatDialog } from '@angular/material/dialog'; import { CompareDialogComponent } from 'app/dialogs/compare-dialog/compare-dialog.co...
<gh_stars>100-1000 import { AfterContentInit, AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, ElementRef, EventEmitter, forwardRef, HostListener, Input, NgZone, OnChanges, OnDestroy, OnInit, Output, QueryList, Renderer2, Templa...
export enum DAWG_FORMAT { INT = 'INT', WORDS = 'WORDS', PROBS = 'PROBS' } /** * DAWG */ export class DAWG { /** * Return new DAWG * @param {ArrayBuffer} data * @param {DAWG_FORMAT} format * @returns {DAWG} */ public static createDAWGfromArrayBuffer(data: ArrayBuffer, format: DAWG_FORMAT): DA...
// Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
<reponame>wilson-pc/nest-blog-app import { ClassType } from "type-graphql"; import * as crudResolvers from "./resolvers/crud/resolvers-crud.index"; import * as actionResolvers from "./resolvers/crud/resolvers-actions.index"; import * as relationResolvers from "./resolvers/relations/resolvers.index"; import * as models ...
import * as Assets from '../assets'; import Card from '../utils/card'; import CardEvalObject from '../utils/card'; let Ranker = require('handranker'); export enum OmahaHi { PLAYER = 0, OPPONENT = 1, } export enum STAGE { INITDEAL = 0, BET = 1, FLOP = 2, RIVER = 3, TURN = 4, EVAL = 5, ...
import './overview.scss'; import { Button, ButtonVariant, Popover, Tab, TabContent, Tabs, TabTitleText, Title, TitleSizes, } from '@patternfly/react-core'; import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons/dist/esm/icons/outlined-question-circle-icon'; import { Providers, ProviderTy...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { BuilderContext, BuilderOutput, createBuilder } from '@angular-devkit/architect'; import { EmittedFiles, Webp...
import * as path from 'path'; import { SourceNode } from 'source-map'; import { CompletionItem, CompletionItemKind, Hover, Position, Range } from 'vscode-languageserver'; import { Scope } from '../Scope'; import { diagnosticCodes, DiagnosticMessages } from '../DiagnosticMessages'; import { FunctionScope } from '../Fun...
<filename>src/scripts/battle/UnitObject.ts<gh_stars>1-10 import { Common } from "../CommonUtils"; import { LowResTransform } from "../LowResTransform"; import { Game } from "../.."; import { UnitClass, FactionColors, MoveType, ArmorType, Faction, AttackMethod } from "./EnumTypes"; import { Debug } from "../DebugUtils";...
import { useReducer } from 'react'; import { APP_STATUS_ACTIONS, DEFAULT_APP_STATUS, THEME, ODDS, TIME_FORMAT, IS_HELP_MENU_OPEN, IS_CONNECTION_TRAY_OPEN, IS_ODDS_MENU_OPEN, IS_ALERTS_MENU_OPEN, IS_MOBILE, Ox_ENABLED, GSN_ENABLED, ETH_TO_DAI_RATE, REP_TO_DAI_RATE, Ox_STATUS, WALLET_STATU...
<gh_stars>0 import { DocumentNode } from 'graphql'; import { invariant, InvariantError } from 'ts-invariant'; import { equal } from '@wry/equality'; import { ApolloLink, execute, FetchResult } from '../link/core'; import { Cache, ApolloCache } from '../cache'; import { getDefaultValues, getOperationDefinition, ...
<reponame>albzn540/Multify import SpotifyWebApi from 'spotify-web-api-js'; import oauth2 from 'client-oauth2'; import uuidv4 from 'uuid/v4'; declare class Firebase { db: firebase.firestore.Firestore; functions: firebase.functions.Functions; auth: firebase.auth.Auth; currentUser(): null | firebase.User;...