text stringlengths 9.82k 47.8k |
|---|
import { BaseWeaponKey, ConsumableData, ItemDataPF2e, Rarity, Size, WeaponGroupKey } from '@item/data-definitions';
import { StatisticModifier, CheckModifier, ModifierPF2e, DamageDicePF2e, MODIFIER_TYPE } from '../modifiers';
import { RollParameters } from '@system/rolls';
import { ConfigPF2e } from '@scripts/config';
... |
// Credit: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-sketchapp
type NumberProp = string | number;
type NumberArrayProp = [NumberProp] | NumberProp;
interface FillProps {
fill?: string;
fillOpacity?: NumberProp;
fillRule?: 'evenodd' | 'nonzero';
}
interface ClipProps {
clipRul... |
<filename>src/venn/layout.ts
/* eslint-disable @typescript-eslint/no-non-null-assertion */
/* eslint-disable @typescript-eslint/no-explicit-any */
// Code adapted from https://github.com/benfred/venn.js
import { zeros, zerosM, norm2, scale } from '../fmin/blas1';
import { bisect } from '../fmin/bisect';
import { conj... |
import React from 'react';
import isEqual from 'lodash/isEqual';
import debounce from 'lodash/debounce';
import range from 'lodash/range';
import {
DragDropContext,
Droppable,
Draggable,
DropResult,
ResponderProvided,
} from 'react-beautiful-dnd';
import Spinner from '../Spinner';
import EmptySearchResult fr... |
<filename>navigation/src/store/models.ts
/* eslint-disable camelcase */
import axios, { AxiosResponse } from 'axios'
import L, { GeoJSON, LatLng } from 'leaflet'
import Vue from 'vue'
import { ManagerStore } from './ManagerStoreModule'
declare global {
// eslint:disable-next-line
interface Window { GameSyncManager... |
<reponame>eliot-akira/vexflow<gh_stars>0
// [VexFlow](http://vexflow.com) - Copyright (c) <NAME> 2010.
//
// ## Description
//
// This file implements chord symbols as modifiers that can be attached to
// notes. Chord symbols can contain multiple 'blocks' which can contain
// text or glyphs with various positioning op... |
import * as Bluebird from 'bluebird';
import * as Docker from 'dockerode';
import { EventEmitter } from 'events';
import * as _ from 'lodash';
import StrictEventEmitter from 'strict-event-emitter-types';
import * as config from '../config';
import * as db from '../db';
import * as constants from '../lib/constants';
im... |
<reponame>jumpinjackie/mapguide-react-layout
import { RefreshMode, IExternalBaseLayer, Bounds, LayerTransparencySet, LayerProperty, MgBuiltInLayers, MgLayerType, MG_LAYER_TYPE_NAME, MG_BASE_LAYER_GROUP_NAME, ImageFormat, GenericEvent, ClientKind, Coordinate2D, Size, BLANK_SIZE, Dictionary, UnitOfMeasure } from './commo... |
import type {
TransformationContext,
SourceFile,
Node,
VisitResult,
Expression,
NodeArray,
ImportDeclaration,
ExportDeclaration,
ImportClause,
NamedExports,
Statement,
NamespaceImport,
Identifier,
NamedImportsOrExports,
Modifier,
ExportSpecifier,
Impor... |
import unitless from "@dash-ui/unitless";
import type {
HtmlAttributes as CSSHTMLAttributes,
PropertiesFallback as CSSProperties,
Pseudos as CSSPseudos,
SvgAttributes as CSSSvgAttributes,
} from "csstype";
import type { JsonValue } from "type-fest";
import { createDash } from "./create-dash";
import type { Dash... |
import React from "react";
import { Form, Input, Button, InputNumber, Checkbox, Switch } from 'antd'
import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons';
import {
FormInput,
FormNumber,
FormTag,
FormPhone,
FormTextArea,
FormSelect,
FormRadio,
FormCheckBox,
FormDate,... |
<gh_stars>1-10
import _ from "lodash";
import { priceSheet } from "src/market/localPriceSheet";
import { bodyPartArrayToProfile, BodyPartProfile } from "src/utility/creep";
import { Logger } from "src/utility/logger";
import { findNearestPath, findPathTo } from "src/utility/pathFinder";
import { enumSpecializedCreeps, ... |
import {
Alert,
Button,
H6,
InputGroup,
Intent,
Label,
Menu,
MenuItem,
Spinner,
SpinnerSize,
Tab,
Tabs,
} from "@blueprintjs/core";
import cytoscape, { NodeSingular } from "cytoscape";
import React, {
useCallback,
useEffect,
useMemo,
useRef,
useState,
} from "react";
import createBlock... |
<reponame>cibernox/ember-ast-helpers<gh_stars>10-100
import { appendToAttrContent, buildAttr, BuildAttrContent } from './html';
import { NodeVisitor, AST, Syntax } from '@glimmer/syntax';
function dashify(str: string): string {
str = str.replace(/([a-z])([A-Z])/g, '$1-$2');
str = str.replace(/[ \t\W]/g, '-');
st... |
<reponame>gamma-app/prosemirror-view
import {Node, Mark} from "prosemirror-model"
import {Mappable, Mapping} from "prosemirror-transform"
import {EditorView} from "./index"
import {DOMNode} from "./dom"
function compareObjs(a: {[prop: string]: any}, b: {[prop: string]: any}) {
if (a == b) return true
for (let p in... |
<gh_stars>10-100
/*
* Copyright (c) 2017 VMware Inc. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... |
<reponame>meeki-ai/penrose
import {
appendStmt,
applyBind,
applyConstructor,
applyFunction,
applyPredicate,
applyTypeDecl,
ArgExpr,
argMatches,
ArgStmtDecl,
autoLabelStmt,
cascadingDelete,
domainToSubType,
matchSignatures,
nullaryTypeCons,
} from "analysis/SubstanceAnalysis";
import { pretty... |
import * as fs from "fs-extra";
import * as mobx from "mobx";
import * as Path from "path";
import { Session } from "./Session/Session";
import { Folder, IFolderType, FolderGroup } from "../Folder/Folder";
import { Person } from "./Person/Person";
import { File, Contribution } from "../file/File";
import { Proje... |
<gh_stars>0
import { WordDocument } from './word-document';
import {
DomType, IDomTable, IDomNumbering,
IDomHyperlink, IDomImage, OpenXmlElement, IDomTableColumn, IDomTableCell, TextElement, SymbolElement, BreakElement, FootnoteReferenceElement
} from './document/dom';
import { Length, CommonProperties } from '... |
/*
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): WebGLProgram
{
let vs = gl.createShader(gl.VERTEX_SHADER);
gl.... |
import { Stat, EventType } from 'engine/enums';
import { Player, Location } from 'engine/models';
import _config from 'engine/config';
import _events from 'engine/events';
import _map from 'engine/map';
import { sendMessage, sendSpamMessage } from 'shared/chat';
import { getId } from 'shared/util';
import { addLocatio... |
import { Component, OnInit, ViewChild, Input, OnDestroy, Type, Inject } from '@angular/core';
import { ApiService } from '../../../core/utility/api-service';
import { CommonTools } from '../../../core/utility/common-tools';
import { NzModalService, NzMessageService } from 'ng-zorro-antd';
import { RelativeService, Rel... |
import React, {useEffect, useRef, useState} from 'react';
import {HotTable} from '@handsontable/react';
import Handsontable from 'handsontable';
import {dispatch, Event, registerRendererOnce} from '../events/events';
import {CheckbookEntry, CheckbookEntryStatus} from '../entities/checkbook/CheckbookEntry';
import {uuid... |
<filename>server/src/server.ts
import * as LSP from "vscode-languageserver/node";
import { BigQuery } from "@google-cloud/bigquery";
import { TextDocument } from "vscode-languageserver-textdocument";
import * as bq2cst from "@dr666m1/bq2cst";
import * as prettier from "prettier";
import * as util from "./util";
import ... |
/// <reference path="../../app/elements/elements.d.ts" />
/// <reference path="../../app/elements/fileIdMaps.d.ts" />
import { MonacoEditor } from "../../app/elements/options/editpages/monaco-editor/monaco-editor";
import { CodeEditBehaviorBase, CodeEditBehaviorStylesheetInstance, CodeEditBehaviorScriptInstance } from... |
import * as chokidar from 'chokidar'
import * as fs from 'fs'
import * as _ from 'underscore'
import * as path from 'path'
const clone = require('fast-clone')
import {
MosConnection,
IMOSDevice,
IMOSConnectionStatus,
IMOSRunningOrder,
IMOSROAck,
MosString128,
IMOSRunningOrderBase,
IMOSRunningOrderStatus,
IMOS... |
<gh_stars>100-1000
import {createRange, Log, Source, SourceRange} from "../../utils/log";
import {assert} from "../../utils/assert";
/**
* Author: <NAME>
*/
export enum TokenKind {
END_OF_FILE,
// Literals
CHARACTER,
IDENTIFIER,
INT32,
INT64,
FLOAT32,
FLOAT64,
STRING,
ARRAY... |
import { ServiceCenter } from '../lib'
// Compiled from https://www.samband.is/sveitarfelogin/ list and
// https://is.wikipedia.org/wiki/Íslensk_sveitarfélög_eftir_sveitarfélagsnúmerum
export const serviceCenters: ServiceCenter[] = [
{
name: 'Þjónustumiðstöð Vesturbæjar, <NAME>',
number: 0,
phone: '411-... |
import AddPersonModal from 'applications/SvarSed/PersonManager/AddPersonModal/AddPersonModal'
import Arbeidsforhold from 'applications/SvarSed/PersonManager/Arbeidsforhold/Arbeidsforhold'
import GrunnTilOpphør from 'applications/SvarSed/PersonManager/GrunnTilOpphør/GrunnTilOpphør'
import SisteAnsettelsesForhold from 'a... |
import * as React from 'react';
import * as moment from 'moment';
import { Component, CSSProperties } from 'react';
// Col, Row and Icon do not have their own less files for styling. They use
// rules declared in antd's global css. If these styles are imported directly
// from within antd, they'll include, for instance... |
<gh_stars>10-100
/**
* Copyright (c) 2020 SUSE LLC
*
* 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,... |
<gh_stars>0
import { VirtualWebSocketClient } from './virtual-websocket-client'
import { sleep } from '../utils/utils'
import { genRequestId } from './message'
import {
IDatabaseServiceContext,
IWatchOptions,
DBRealtimeListener
} from '../typings/index'
import {
IRequestMessage,
IResponseMessage,
IRequestMe... |
import { TextToSpeechOptions } from '../public/options';
import { Atom, isAtomArray } from '../core/atom';
import { atomsToMathML } from '../addons/math-ml';
import { LeftRightAtom } from '../core-atoms/leftright';
declare global {
interface Window {
sre: any;
}
}
// Markup
// Two common flavor of markups: ... |
import path, { dirname } from "path";
import newman from "newman";
import {
VariableScope,
Collection,
Header,
Item,
Request,
RequestBody,
RequestBodyDefinition,
Url,
UrlDefinition,
Event,
QueryParamDefinition,
VariableDefinition,
ItemDefinition,
} from "postman-collection";
import { inject, ... |
/**
* Utility constants and functions
*/
import { AnyVal, ArrayOrObject, Callback, RawArray, RawObject } from "./types";
/* backward-compatibility */
export {
AnyVal,
ArrayOrObject,
Callback,
Predicate,
RawArray,
RawObject,
} from "./types";
export const MAX_INT = 2147483647;
export const MIN_INT = -21... |
// Definitions.
import { View as ViewDefinition, Point, Size, Color, dip } from ".";
import { HorizontalAlignment, VerticalAlignment, Visibility, Length, PercentLength } from "../../styling/style-properties";
import {
ViewBase, Property, booleanConverter, EventData, layout,
getEventOrGestureName, traceEnabled,... |
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Genie
//
// Copyright 2019-2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with th... |
<gh_stars>0
import ArrayBufferSlice from "../../ArrayBufferSlice";
import { readFileSync, writeFileSync } from "fs";
import { assert, hexzero, nArray, hexdump } from "../../util";
import * as Pako from 'pako';
import * as BYML from "../../byml";
function fetchDataSync(path: string): ArrayBufferSlice {
const b: Bu... |
<reponame>France-ioi/codecast<gh_stars>10-100
import React from "react";
import {InputOutputVisualization} from "./InputOutputVisualization";
import {QuickAlgoLibrary} from "../quickalgo_librairies";
import {call, fork, put, race, select, take, takeEvery} from "redux-saga/effects";
import {AppStore} from "../../../stor... |
<filename>node_modules/chevrotain/src/scan/lexer_public.ts
import {
analyzeTokenTypes,
charCodeToOptimizedIndex,
cloneEmptyGroups,
DEFAULT_MODE,
LineTerminatorOptimizedTester,
performRuntimeChecks,
performWarningRuntimeChecks,
SUPPORT_STICKY,
validatePatterns
} from "./lexer"
import {
cloneArr,
cl... |
<filename>src/publisher/react-integration/devtools-hook-handlers.ts<gh_stars>0
import { separateDisplayNameAndHOCs } from "./utils/separateDisplayNameAndHOCs";
import {
ElementTypeClass,
ElementTypeForwardRef,
ElementTypeFunction,
ElementTypeMemo,
ElementTypeHostRoot,
} from "./utils/constants";
import type {... |
import {
Disposable,
removeKey,
StateHandler,
StateView, UpdateResult,
} from "../../../state";
import {
Content,
div,
h2,
h3,
h4,
icon,
iconButton,
para,
span,
table,
TableElement,
TableRowElement,
TagElement
} from "../../tags";
import {NotebookMessa... |
import { Simple, Node, Expression, Concatenation, visitAst, Element, Assertion, Alternation } from "../ast";
import { assertNever } from "../util";
import { CharSet, CharRange } from "../char-set";
import {
DIGIT,
WORD,
SPACE,
LINE_TERMINATOR,
withCaseVaryingCharacters,
WORD_IU,
UNICODE_MAXIMUM,
UTF16_MAXIMUM,
... |
import Displayable, { DEFAULT_COMMON_STYLE } from '../graphic/Displayable';
import PathProxy from '../core/PathProxy';
import { GradientObject } from '../graphic/Gradient';
import { PatternObject } from '../graphic/Pattern';
import { LinearGradientObject } from '../graphic/LinearGradient';
import { RadialGradientObject... |
import * as ts from "typescript";
import { Decorator, DecoratorKind } from "./Decorator";
export enum ContextType {
None,
Void,
NonVoid,
Mixed,
}
const defaultArrayCallMethodNames = new Set<string>([
"concat",
"push",
"reverse",
"shift",
"unshift",
"sort",
"pop",
"forEa... |
/* Copyright 2018 Mozilla Foundation
*
* 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... |
import React, { ReactElement, useEffect, useContext, useState } from 'react';
// import { useRouter } from 'next/router';
import { makeStyles } from '@material-ui/core';
import { useTheme } from '@material-ui/core/styles';
import useMediaQuery from '@material-ui/core/useMediaQuery';
import useScrollTrigger from '@mater... |
import {
AfterContentInit,
AfterViewInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChild,
ElementRef,
Input,
OnInit,
Renderer2,
ViewChild,
ViewEncapsulation,
ContentChildren,
QueryList,
NgZone,
Directive,
OnDestroy,
HostListener,
HostBinding,
Optional,
Self... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
<reponame>shrinktofit/engine
/*
Copyright (c) 2017-2018 <NAME> Software Co., Ltd.
http://www.cocos.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable, revocable a... |
<reponame>be5invis/spiro-js
import {
DefaultBezierContext,
IBezierContext,
KnotCallback,
IArcContext,
SimplyCollectArcContext,
} from "./context";
import { integrate_spiro, SpiroArc, SpiroK } from "./spiro-arc";
import { Point } from "./base";
export * from "./base";
export * from "./context";
export { SpiroArc, ... |
import React, { Component, FC, Fragment, ReactNode } from 'react'
import moment from 'moment'
import numeral from 'numeral'
import classNames from 'classnames'
import { Card, Col, DatePicker, Dropdown, Icon, Menu, Radio, Row, Table, Tabs, Tooltip } from 'antd'
import { Charts, NumberInfo, Trend } from 'ant-design-pro'
... |
import RouteRecognizer, { Delegate, MatchCallback, Params } from 'route-recognizer';
import { Promise } from 'rsvp';
import { Dict, Maybe } from './core';
import HandlerInfo, { IHandler } from './handler-info';
import { logAbort, Transition } from './transition';
import TransitionAbortedError from './transition-aborted... |
<reponame>francoiscourt/swf
/*
* Justified Photo Gallery class, part of the Simple Web Framework
*
* version: 1.4
* license: Apache 2.0
* author: <NAME>
* date: october 2021
*
*/
"use strict";
export {
_juga,
version
};
import * as utils from './swf-utils.js';
function version() {
return "swf juga v1.... |
/* (int) The current year */
import { Day, DayShort, DayMiniShort, OptionType } from '~types'
export const SECOND = 1000
export const MINUTE = 1000 * 60
export const HOUR = MINUTE * 60
export const DAY = HOUR * 24
export const WEEK = DAY * 7
export const MONTH = WEEK * 4
export const YEAR = MONTH * 12
export const THI... |
<filename>src/components/PhoneInput/constants.ts
// List originally from [jackocnr/intl-tel-input](https://github.com/jackocnr/intl-tel-input)
import { PhoneAreaCodeCountry } from './types/PhoneAreaCodeCountry';
const COUNTRIES: PhoneAreaCodeCountry[] = [
{ label: 'Afghanistan (افغانستان)', value: 'AF', dialCod... |
import { EventEmitter } from "events"
import Engine from ".."
import { Chunk, _createVoxelArray } from './chunk'
import { sortByReferenceArray, loopForTime, numberOfVoxelsInSphere } from './util'
import { makeProfileHook, makeThroughputHook } from './util'
var lookIndex = 0
const PROFILE = 0
const PROFILE_QUEUES = 0
... |
<gh_stars>1-10
import { getAirPower, MASTER_URL } from "./utils";
import { Lang } from "./lang";
import { Image, fetchImage } from "./canvas";
export type Theme = "dark" | "74lc" | "74mc" | "74sb";
export type Range = 0 | 1 | 2 | 3 | 4;
export type Speed = 0 | 5 | 10 | 15 | 20;
export type AirState = "AS+" | "AS" | "A... |
<gh_stars>0
import json from 'comment-json';
import fs from 'fs-extra';
import * as path from 'path';
import R from 'ramda';
import { BitId, BitIds } from '../../bit-id';
import { BitIdStr } from '../../bit-id/bit-id';
import { BIT_MAP, BIT_VERSION, COMPONENT_ORIGINS, DEFAULT_LANE, OLD_BIT_MAP, VERSION_DELIMITER } fro... |
<gh_stars>1-10
interface CAAction {
runActionForKeyObjectArguments(event: string, anObject: any, dict: NSDictionary<any, any>): void;
}
declare var CAAction: {
prototype: CAAction;
};
declare class CAAnimation extends NSObject implements CAAction, CAMediaTiming, NSCoding, NSCopying {
static alloc(): CAAnimation... |
import FeedFilter from 'common/models/FeedFilter'
import { ID, PlayableType } from 'common/models/Identifiers'
import { MonitorPayload, ServiceMonitorType } from 'common/models/Services'
import TimeRange from 'common/models/TimeRange'
import { WalletAddress } from 'common/models/Wallet'
const ANALYTICS_TRACK_EVENT = '... |
<filename>plugins/plugin-k8s/src/lib/controller/kubectl.ts
/*
* 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/LIC... |
/*
* 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 ... |
import { IExtractor, ExtractResult, StringUtility, Match, RegExpUtility, MetaData } from "@microsoft/recognizers-text";
import { ChineseIntegerExtractor, AgnosticNumberParserFactory, ChineseNumberParserConfiguration, AgnosticNumberParserType, BaseNumberParser, BaseNumberExtractor } from "@microsoft/recognizers-text-num... |
<gh_stars>10-100
/**
* @license
* Copyright 厦门乾元盛世科技有限公司 All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file.
*/
import {
Component, Input, Output, EventEmitter, ElementRef, Renderer2, ViewEncapsulation,
HostBinding, HostListener, ... |
import * as d3 from 'd3';
import * as _ from "lodash"
import * as R from 'ramda'
import * as tp from '../etc/types';
import '../etc/xd3'
import {BertAPI} from '../api/bertApi'
import {UIConfig} from '../uiConfig'
import {TextTokens, LeftTextToken, RightTextToken} from './TextToken'
import {AttentionHeadBox, getAttentio... |
/*
* Copyright 2018-present Samsung Electronics Co., Ltd. and other contributors
* Copyright JS Foundation and other contributors, http://js.foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
import * as PIXI from "pixi.js"
import * as WebFont from "webfontloader"
import TRIE = require("./trie");
const defaultWidth = 1400;
const defaultHeight = 850;
const app = new PIXI.Application({ width: defaultWidth, height: defaultHeight, transparent: true, antialias: true, });
const element: any = document.getElement... |
import { Modal, App, MarkdownRenderer, Notice, Platform, TFile, MarkdownView } from "obsidian";
import type SRPlugin from "src/main";
import { Card, schedule, textInterval, ReviewResponse } from "src/scheduling";
import { CardType } from "src/types";
import {
COLLAPSE_ICON,
MULTI_SCHEDULING_EXTRACTOR,
LEGA... |
<reponame>iljapostnovs/ui5plugin-parser
import { ICommentPositions, IXMLFile } from "./FileReader";
import { IUIMethod } from "../UI5Classes/UI5Parser/UIClass/AbstractUIClass";
import { UI5Parser } from "../../UI5Parser";
export interface ITag {
text: string;
positionBegin: number;
positionEnd: number;
attributes?... |
import {
computed,
defineComponent,
ref,
SetupContext,
toRefs,
watch,
nextTick,
getCurrentInstance,
onMounted,
onUpdated,
provide,
} from '@vue/composition-api';
import { CreateElement, VNode } from 'vue';
import isFunction from 'lodash/isFunction';
import debounce from 'lodash/debounce';
import g... |
'use strict';
import * as paths from 'path';
import { commands, Disposable, env, Terminal, TextDocumentShowOptions, Uri, window } from 'vscode';
import {
Commands,
DiffWithCommandArgs,
DiffWithCommandArgsRevision,
DiffWithPreviousCommandArgs,
DiffWithWorkingCommandArgs,
openEditor,
OpenFileI... |
<gh_stars>10-100
import { expect, assert } from 'chai';
import * as im from 'immutable';
import * as lexical from '../../../compiler/lexical-analysis/lexical';
import * as lexer from '../../../compiler/lexical-analysis/lexer';
interface lexTest {
name: string
input: string
tokens: lexer.Token[]
e... |
<reponame>uriegel/window-commander<gh_stars>0
import 'virtual-table-component'
import './copyconflicts'
import { TableItem, VirtualTable } from 'virtual-table-component'
import { compose } from '../functional'
import { ActionType, Column, ColumnsType, ConflictItem, EngineType, GetActionTextResult, GetFilePathResult, Ge... |
/*
* Copyright 2018-2019 Unbounded Systems, 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 l... |
<filename>packages/next-app/graph/loudverse-graph-types.ts<gh_stars>1-10
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubK... |
<reponame>navrotskyj/webitel_sdk
// tslint:disable-next-line: match-default-export-name
import Axios from 'axios'
import { EventEmitter } from 'ee-ts'
import { Log } from '../log'
import { CallSession, SipConfiguration } from '../sip'
import { SipPhone } from '../sip/webrtc'
import { Agent, AgentSession, AgentStatusEv... |
<gh_stars>0
import { Injectable } from '@nestjs/common';
import {
PlayerChampionStatsModel,
PlayerProfileLightModel,
PlayerProfileModel,
PlayerQuery,
PlayerStatsModel,
PlayerStatsQuery,
PlayerRole,
GameUploadPlayerInfoModel,
QueryResult,
GameTeamSide,
PlayerAnyGeneralStatsModelBase,
PlayerAnyGam... |
import { RGBAColor, Util } from "./util";
import { Level } from "./level";
import * as THREE from "three";
import { ResourceManager } from "./resources";
import { renderer } from "./rendering";
const PATHS = ['particles/bubble.png', 'particles/saturn.png', 'particles/smoke.png', 'particles/spark.png', 'particles/star.... |
import { Packet } from '../ogg/packet';
import { ilog, toInt, Bitstream } from './util';
import { TheoraError } from './errors';
/**
* Checks if the ogg packet is a theora header.
*
* @method isTheora
* @param {Ogg.Packet} packet
* @return {Boolean}
*/
export function isTheora(packet: Packet): boolean {
// B... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { CdkDragDrop, copyArrayItem, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
import { Component, OnInit,NgZone, ChangeDetectorRef, ViewChild, Input, Inject } from '@angular/core';
import { AbstractControl, FormArray, FormBuil... |
<filename>app/src/app/services/database.service.ts
import { Injectable } from '@angular/core';
import { Platform } from '@ionic/angular';
import { SQLiteObject } from '@ionic-native/sqlite/ngx';
import { AppVersion } from '@ionic-native/app-version/ngx';
import { HttpClient, HttpErrorResponse } from '@angular/common/ht... |
<filename>src/common/util.ts
import * as Cesium from '@smart/cesium';
import smart3d from 'smart3d';
import * as proj4 from 'proj4';
export const generateUUID = (): string => {
let d = new Date().getTime();
if (window.performance && typeof window.performance.now === 'function') {
d += performance.now(); // use... |
<reponame>XTStudio/framework-web
import { UISize, UISizeZero } from "./UISize";
import { UIRect, UIRectZero, UIRectUnion, UIRectIntersectsRect, UIRectIsEmpty } from "./UIRect";
import { UIEdgeInsets, UIEdgeInsetsZero } from "./UIEdgeInsets";
import { UICollectionViewLayout, ItemType, UICollectionElementKindCell, UIColl... |
var classNames = require('classnames');
const cx = classNames.bind(require('./deviceFields.scss'));
import "react-toggle/style.css"
import axios from 'axios';
import * as React from 'react';
import Toggle from 'react-toggle';
import { DeviceContext } from '../context/deviceContext';
import { AppContext } from '../cont... |
import * as dartStyle from 'dart-style';
import * as fs from 'fs';
import * as path from 'path';
import * as ts from 'typescript';
import * as base from './base';
import {ImportSummary, TranspilerBase} from './base';
import DeclarationTranspiler from './declaration';
import {FacadeConverter} from './facade_converter';... |
//import * as $ from 'jquery';
declare var dc_showErrorDialog: any;
declare var dc_showErrorDialogJs: any;
declare var dc_notify_error: any;
export interface VoidAction {
(WorkflowManager: Workflow, block: any, unblock: any): void;
}
export interface Action<T> {
(WorkflowManager: Workflow): T;
}
export in... |
<filename>service_worker.ts
// This API proposal depends on:
// DOM: http://www.w3.org/TR/domcore/
// URLs: http://url.spec.whatwg.org/
// Promises: https://github.com/slightlyoff/DOMPromise/
// Shared Workers:
// http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#shared-workers
//////////... |
interface WebGLContextAttributes {
alpha : boolean;
depth : boolean;
stencil : boolean;
antialias : boolean;
premultipliedAlpha : boolean;
}
interface WebGLObject {
$__dummyprop__WebGLObject : any;
}
interface WebGLBuffer extends WebGLObject {
$__dummyprop__WebGLBuffer : any;
}
interface WebGL... |
import {
assert,
gaussLegendre24Weights,
gaussLegendre24Xs,
gaussLegendreQuadrature24,
glqInSteps,
M4,
V,
V3,
} from 'ts3dutils'
import {
ConicSurface,
Edge,
EllipseCurve,
EllipsoidSurface,
HyperbolaCurve,
ImplicitCurve,
L3,
ParabolaCurve,
ParametricSurface,
PlaneSurface,
ProjectedCurveSurface,
Rota... |
import { TFunction } from 'react-i18next'
import { getRandomInt, rollD6, rollD66, rollD8 } from './dice.functions'
export const generateLegend = (
t: TFunction<('session' | 'common')[]>,
): string => {
const { description, age } = timeAgo()
const adjective = getText(ADJECTIVE)
const who_or_what = getText(WHO_O... |
<filename>src/client/math/core.ts
import {
Vector3,
Vector4,
Scene,
Matrix4,
Plane
} from 'three'
import { LineMaterial } from 'three/examples/jsm/lines/LineMaterial';
import { LineGeometry } from 'three/examples/jsm/lines/LineGeometry';
import { Line2 } from 'three/examples/jsm/lines/Line2';
func... |
/*
* Copyright 2010 ZXing authors
*
* 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 ... |
<gh_stars>0
import { GLB_BUFFER, NAME, PropertyType, VERSION } from '../constants';
import { Document } from '../document';
import { Link } from '../graph';
import { JSONDocument } from '../json-document';
import { Accessor, AnimationSampler, AttributeLink, Camera, IndexLink, Material, Property } from '../properties';
... |
import { merge, getID, is, hash, Try, castParam } from '@amaui/utils';
import AmauiSubscription from '@amaui/subscription';
import AmauiStyle from './amaui-style';
import AmauiStyleSheet from './amaui-style-sheet';
import AmauiStyleRuleProperty from './amaui-style-rule-property';
import classNamesMethod from './classN... |
<filename>src/parser/jobs/ast/modules/ArcanaTracking/ArcanaTracking.tsx
import {t} from '@lingui/macro'
import {getDataBy} from 'data'
import {ActionRoot} from 'data/ACTIONS/root'
import {BuffEvent, CastEvent, DeathEvent} from 'fflogs'
import {Event} from 'legacyEvent'
import _ from 'lodash'
import Module, {dependency}... |
<reponame>cmu-delphi/www-epivis
export interface LabelValue {
value: string;
label: string;
}
const HHS_REGIONS: LabelValue[] = [
{ value: 'hhs1', label: 'HHS Region 1' },
{ value: 'hhs2', label: 'HHS Region 2' },
{ value: 'hhs3', label: 'HHS Region 3' },
{ value: 'hhs4', label: 'HHS Region 4' },
{ value... |
<filename>src/extensibility/ExtensionManager.ts<gh_stars>1-10
/*
* Copyright (c) 2013 - 2017 Adobe Systems Incorporated. All rights reserved.
* Copyright (c) 2018 - present The quadre code authors. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this softw... |
<reponame>otya128/web-bml<gh_stars>100-1000
const { Interpreter }: { Interpreter: any } = require("../../JS-Interpreter/interpreter");
import * as BT from "../binary_table";
import { Interpreter } from "./interpreter";
import { Content } from "../content";
import { getTrace, getLog } from "../util/trace";
import { Reso... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.