text stringlengths 9.82k 47.8k |
|---|
/**
* Hashing.ts
* @author <NAME>
* @file Provides simple hashing implementations for basic JavaScript types
*
* This is a simple (randomised) algorithm that guarantees 2-universality.
* We strictly enable bitwise operators because we want to enforce that all
* values should be between -2^30 and 2^30-1 because t... |
import { Timeline, Tween } from "@akashic-extension/akashic-timeline";
import { OffsetGroup, OffsetGroupParameterObject } from "./OffsetGroup";
import { UserTouchState } from "../types/UserTouchState";
import { Food } from "./Food";
import { AnimationType } from "../types/MessageEventType";
import { localToGlobal } fro... |
// SPDX-FileCopyrightText: 2018-2021 The Manyverse Authors
//
// SPDX-License-Identifier: MPL-2.0
import xs, {Stream, MemoryStream, Listener} from 'xstream';
import {
Msg,
Content,
FeedId,
MsgId,
AboutContent,
BlobId,
About,
AliasContent,
PostContent,
} from 'ssb-typescript';
import backend from './s... |
<reponame>imengyu/imengyu
import { CanvasGameProvider } from "../CanvasGameProvider";
import Utils from "../../utils/Utils";
const DATA_LIGHT_TICK = 5;
const DATA_SLEET_TICK = 150;
export const SortMethodNames = [
"bobble",
"insertion",
"selection",
"quick",
"shell",
"merge",
"heap",
"radix",
];
expo... |
<reponame>grishgrigoryan/framework
declare const require,process;
const fs = require('fs');
const path = require('path');
import {Minimatch} from './minimatch';
export {glob,Glob,GlobAll,Minimatch};
class File {
stars = /((\/\*\*)?\/\*)?\.(\w+)$/;
pattern;
patternId;
path;
fileId;
include;
... |
<filename>src/jasmal/lib/math/special.ts<gh_stars>1-10
import { LOGE2 } from '../constant';
export class FactorialTable {
/**
* The max integer whose factorial is not Infinity in double format.
*/
public static readonly MAX_INTEGER = 170;
private static _table: number[] = new Array<number>(Fact... |
<reponame>oakdream/cubeai<gh_stars>1-10
import {Component, OnInit} from '@angular/core';
import {ConfirmService, SnackBarService} from '../../shared';
import {Principal, User} from '../../account';
import {SolutionService} from '../service/solution.service';
import {FormControl} from '@angular/forms';
import {select, ... |
// *** NPM ***
import React, { useState, SyntheticEvent, useRef, useEffect } from "react";
// *** OTHER ***
import {
ViewMode,
Task,
EventOption,
DisplayOption,
StylingOption,
} from "../../types/public-types";
import { IProps as GridProps } from "../../containers/Grid/Grid";
import { ganttDateRange, seedDates } ... |
/**
* @file Implements parsing and generation of queries.
*
* # Query Syntax
*
* The query string is split by spaces into predicates. The results of all
* predicates are combined.
*
* By default predicates are considered as plain sentences (see below for
* details).
*
* Advanced search predicates can be cons... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { default as AbortController } from "abort-controller";
import { ITelemetryLogger } from "@fluidframework/common-definitions";
import {
assert,
delay,
} from "@fluidframework/common-u... |
<reponame>Rix565/pokemon-showdown<gh_stars>0
/**
* Matchmaker
* Pokemon Showdown - http://pokemonshowdown.com/
*
* This keeps track of challenges to battle made between users, setting up
* matches between users looking for a battle, and starting new battles.
*
* @license MIT
*/
const LadderStore: typeof import... |
import { providers } from "ethers";
import {
createLoggingContext,
jsonifyError,
Logger,
RequestContext,
TransactionData,
VariantTransactionData,
} from "@connext/nxtp-utils";
import { GraphQLClient } from "graphql-request";
import { Evt } from "evt";
import { InvalidTxStatus } from "../error";
import {
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<gh_stars>100-1000
import 'colors';
import { ts } from '@ts-morph/common';
import cheerio = require('cheerio');
import fs = require('fs');
import glob = require('glob');
import request = require('request');
import { Project, Scope, SourceFile } from 'ts-morph';
import { Operator, ResourceTypes } from '../shared';
imp... |
import * as vscode from 'vscode';
import * as fs from 'fs';
import { inspect, promisify } from 'util';
import { XmlParser, XmlTag, XmlTagProcessor } from '../util/XmlParser';
import { SharedVarOfExec } from '../SharedVarOfExec';
import { AbstractExecutable, HandleProcessResult } from '../AbstractExecutable';
import { ... |
<reponame>g0t00/picrossSolver
// import RowColWorker = require('worker-loader!./rowColWorker');
// import {EventEmitter} from 'events';
import * as bluebird from 'bluebird';
// const delay = (time: number) => new Promise(resolve => window.setTimeout(resolve, time));
export class ContradictionError extends Error {
co... |
// Copyright 2020-2021 the .NET Foundation
// Licensed under the MIT License
import { D2H, R2D, R2H } from "@wwtelescope/astro";
import {
ImageSetType,
ScaleTypes,
} from "@wwtelescope/engine-types";
import {
EngineSetting,
Folder,
Imageset,
ImageSetLayer,
ImageSetLayerSetting,
InViewReturnMessage,
... |
import { subclass, property } from 'esri/core/accessorSupport/decorators';
import Widget from 'esri/widgets/Widget';
import Handles from 'esri/core/Handles';
import { tsx, messageBundle } from 'esri/widgets/support/widget';
import { getDistances } from '../utilites/geometryUtils';
import { resolve, eachAlways, reject ... |
<reponame>athal7/HAP-NodeJS
import assert from "assert";
import createDebug from "debug";
import { EventEmitter } from "events";
import { ServiceJsonObject } from "../internal-types";
import { CharacteristicValue, Nullable, WithUUID } from '../types';
import { CharacteristicWarning, CharacteristicWarningType } from "./... |
<reponame>rvennam/kui<filename>app/src/webapp/cli.ts
/*
* Copyright 2017-18 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... |
import fs from 'fs'
import path from 'path'
import { Plugin } from '../plugin'
import chalk from 'chalk'
import {
FS_PREFIX,
SPECIAL_QUERY_RE,
DEFAULT_EXTENSIONS,
DEFAULT_MAIN_FIELDS,
OPTIMIZABLE_ENTRY_RE
} from '../constants'
import {
isBuiltin,
bareImportRE,
createDebugger,
injectQuery,
isExternal... |
import { ethash_keccak256 } from './keccak'
import {
hashBranchNode,
RLPBranchNode,
RLPData,
decode,
encode,
hashExtension,
hashBranch,
encodeLeaf,
encodeAccount,
decodeAccount,
} from './rlp'
import {
parseU8,
padBuf,
cmpBuf,
stripBuf,
hash,
nibbleArrToUintArr,
addHexPrefix,
uintArr... |
<filename>packages/algob/src/internal/core/errors-list.ts<gh_stars>0
export const ERROR_PREFIX = "ABLDR";
export interface ErrorDescriptor {
number: number
// Message can use templates. See applyErrorMessageTemplate
message: string
// Title and description can be Markdown
title: string
description: string... |
/**
* @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 {StyleData} from '../../src/common/style_data';
import {Animation} from '../../src/dsl/animation';
import {AU... |
import * as nls from "vscode-nls";
import {
Symbol,
CodeCompletionCore,
ScopedSymbol
} from "antlr4-c3";
import {
ParseCancellationException
} from 'antlr4ts/misc';
import {
ParseTreeWalker,
TerminalNode,
ParseTreeListener,
ParseTree
} from 'antlr4ts/tree';
import {
CommonTokenSt... |
import { TaskFieldsModel } from './../models/task-fields-model.d';
import { PdfFontFamily } from '@syncfusion/ej2-pdf-export';
import { PdfStringFormat, PdfPageCountField, PdfPageNumberField } from '@syncfusion/ej2-pdf-export';
import { PdfPageTemplateElement, RectangleF, PdfCompositeField, PointF } from '@syncfusion/e... |
// Copyright (c) 2022 Uber Technologies, Inc.
//
// 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... |
<reponame>jsdelivrbot/cyberterminal
import css from "./css"
import GameInput from "./GameInput"
import Sys from "./Sys"
import ChipSound from "./ChipSound"
import MouseInput from "./MouseInput"
import TextInput from "./TextInput"
import Breaker from "./Breaker"
import { resolve } from "dns"
let scriptSrc: string
let d... |
import { mount, ReactWrapper } from "enzyme"
import { SnackbarProvider } from "notistack"
import React from "react"
import { MemoryRouter } from "react-router"
import { HeaderGroup } from "react-table"
import {
cleanupMockAnalyticsCalls,
mockAnalyticsCalls,
} from "./analytics_test_helpers"
import { ApiButton } fro... |
/* global getProperty, ui, CONST, ChatMessage, TokenHUD, BasePlaceableHUD */
import { PF2eConditionManager } from "../../module/conditions";
import { ConditionData } from '../../module/item/dataDefinitions'
declare let PF2e: any;
/**
* Class PF2eStatus which defines the data structure of a status effects
* Gets pop... |
import * as React from 'react'
import * as Immutable from 'immutable'
import {style} from 'typestyle'
import {
RichUtils,
Editor,
EditorState,
DraftInlineStyle,
ContentBlock,
EditorBlock,
genKey,
Modifier,
BlockMapBuilder,
CompositeDecorator,
ContentState,
DraftHandleValue
} from 'draft-js'
im... |
<reponame>sehilyi/polestar-scatterplot<gh_stars>1-10
import {DateTime} from "vega-lite/build/src/datetime";
import {filterHasField, filterIndexOf, ShelfFilter} from "./shelf";
import {OneOfFilter, RangeFilter} from "vega-lite/build/src/filter";
import {SPEC_FIELD_REMOVE, SPEC_FIELD_ADD, SPEC_FIELD_MOVE, FILTER_MODIFY_O... |
import { randomBytes, createCipheriv, createHash } from 'crypto';
import { pki, util, md } from 'node-forge';
import { Uint64LE } from 'int64-buffer';
import { Keystore } from '../types';
export const getSignPIN = (keystore: Keystore, pin?: any, iterator?: any) => {
const { session_id, private_key, pin_token, pin: _... |
import * as React from 'react';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { GetStaticProps } from 'next';
import { config } from '../../../config';
import { useTranslation } from 'next-i18next';
import Layout from '../../../components/Layout';
import Input from '../../../compo... |
<filename>src/render.ts
const { remote, dialog } = require('electron');
const { Menu, MenuItem } = remote;
const { createReadStream, writeFile } = require('fs');
const { crypto } = require('cryptojs')
const { parse } = require('fast-csv');
const sqlite3 = require('sqlite3').verbose();
var db: any = []
const dbinstance ... |
/**
* @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 * as chars from '../chars';
import {ParseError, ParseLocation, ParseSourceFile, ParseSourceSpan} from '../par... |
import {
Color, Vector2, Texture, Vector3, SplineCurve,
BufferGeometry, LineBasicMaterial, Line, LineLoop, CatmullRomCurve3,
LineDashedMaterial, BufferAttribute, VertexColors, Spherical
} from "three-component-ts";
export class MathUtils {
// returns random 0 or 1
static flipCoin(): number {
... |
<filename>mock/admin.ts
import { Request, Response } from 'express'
const waitTime = (time: number = 100) => {
return new Promise((resolve) => {
setTimeout(() => {
resolve(true)
}, time)
})
}
const getRandomNum = (min: number, max: number): number => {
let range = max - min
let rand = Math.rando... |
<reponame>ui-js/chromatic<gh_stars>10-100
import { throwErrorWithContext, ErrorCode, SyntaxError } from './errors';
import { terminal } from './terminal';
import { getSuggestion } from './utils';
import {
Value,
Frequency,
FrequencyUnit,
Time,
TimeUnit,
Length,
LengthUnit,
BaseLengthUnits,
MultiLength... |
import * as React from 'react';
import { useEffect, useState, useRef , useCallback } from 'react';
import { Suspense } from 'react';
import { ApplicationMode, IFlowrunnerConnector } from '../../interfaces/IFlowrunnerConnector';
import { getFormControl } from './form-controls';
import { Subject } from 'rxjs';
import ... |
'use strict';
/**
* New map file
*/
enum KMapErrors{
TEMPLATE_LOADING = "TEMPLATE_LOADING",
MAP_SAVING = "MAP_SAVING",
MAP_CREATE = "MAP_CREATE"
}
var Promise = require("bluebird");
var dbService = require('@colabo-knalledge/b-storage-mongo');
var fs = require('fs');
var mockup = { fb: { authentica... |
<reponame>chnqwe4880/console-proxy<filename>src/app.service.ts<gh_stars>1-10
import { Injectable, Logger } from '@nestjs/common';
import {
MessageBody,
OnGatewayConnection,
OnGatewayDisconnect,
OnGatewayInit,
SubscribeMessage,
WebSocketGateway,
} from '@nestjs/websockets';
import { promisify } from 'util';
... |
<reponame>QPC-database/jacdac-ts
import { VMProgram, VMHandler, VMCommand, VMRole } from "./ir"
import RoleManager from "../servers/rolemanager"
import {
VMEnvironment,
VMException,
VMExceptionCode,
GLOBAL_CHANGE,
REGISTER_CHANGE,
EXTERNAL_REQUEST,
ExternalRequest,
} from "./environment"
imp... |
export declare class MockAttributeMap {
caseInsensitive: boolean;
items: MockAttr[];
constructor(caseInsensitive?: boolean);
get length(): number;
item(index: number): MockAttr;
setNamedItem(attr: MockAttr): void;
setNamedItemNS(attr: MockAttr): void;
getNamedItem(attrName: string): Mock... |
<filename>ui/raidboss/data/05-shb/dungeon/mt_gulg.ts
import NetRegexes from '../../../../../resources/netregexes';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } from '../../../../../types/data';
import { TriggerSet } fr... |
import React, { useState, useEffect, useRef } from "react";
import { WebglPlot, ColorRGBA, WebglLine, WebglSquare } from "webgl-plot";
import type { ComplexDataType, RealDataType, ResultType } from "./sim/readOutput";
import { Box, Checkbox, color, Grid, GridItem, HStack, Tag } from "@chakra-ui/react";
import { Slider,... |
<reponame>ChrissiQ/bitburner
/**
* Functions for handling WorkerScripts, which are the underlying mechanism
* that allows for scripts to run
*/
import { killWorkerScript } from "./Netscript/killWorkerScript";
import { ScriptDeath } from "./Netscript/ScriptDeath";
import { WorkerScript } from "./Netscript/WorkerScrip... |
import React, { useEffect, useState } from "react";
import { useSelector, useDispatch, shallowEqual } from "react-redux";
import { PaneHeader, PaneBody, PaneState, PaneNode, PaneNodeName } from "../src/components/Pane";
import { WebviewPanels } from "../ipc/webview.protocol.common";
import { CodeStreamState } from "../... |
import { h, JSX, Component, createRef, ComponentType } from 'preact';
import b from 'bem-react-helper';
import { getHandleClickProps } from 'common/accessibility';
import { COMMENT_NODE_CLASSNAME_PREFIX } from 'common/constants';
import { StaticStore } from 'common/static-store';
import { debounce } from 'utils/debou... |
<reponame>sinequa/sba
import { Component, Input, Output, ElementRef, ViewChild, OnChanges, AfterViewInit, EventEmitter, SimpleChanges, OnDestroy, SimpleChange, ContentChild, TemplateRef, ChangeDetectorRef } from '@angular/core';
import { Subscription } from 'rxjs';
import * as d3 from 'd3';
import { IntlService } from... |
<filename>packages/pop/src/lib/population-service.ts
import { IBuildingFeatureCollection, ICensusFeatureCollection, ILocation } from '@popsim/common';
import { range, random, shuffle } from '@popsim/common';
import { IHousehold, HouseholdType, IBuildingProps, ICensusProps } from '@popsim/common';
import { IPerson, Gend... |
<reponame>programmingforthepuzzled/puzzled<gh_stars>1-10
export = svgjs;
export as namespace svgjs;
declare var svgjs: svgjs.Library;
// todo add SVG.FX
declare namespace svgjs {
export interface Library {
(id: string): Doc;
(domElement: HTMLElement): Doc;
ns: string;
xmlns: string... |
import React from 'react';
import { StyleSheet, View, PermissionsAndroid, ImageSourcePropType, ActivityIndicator, ToastAndroid,
Alert, Platform, Image, Dimensions, ImageProps } from 'react-native';
import { Button, Input, Text } from 'react-native-elements'
import CameraRoll from "@react-native-community/cameraroll";... |
import { _AbstractConstructor } from '@angular/material/core';
import { AfterContentInit } from '@angular/core';
import { AfterViewInit } from '@angular/core';
import { AnimationEvent as AnimationEvent_2 } from '@angular/animations';
import { AnimationTriggerMetadata } from '@angular/animations';
import { ApplicationRe... |
/* istanbul ignore file */
/* eslint-disable */
import * as TsType from '../../tstype';
import {DeviceType, LQINeighbor} from '../../tstype';
import * as Events from '../../events';
import Adapter from '../../adapter';
import {Direction, FrameType, ZclFrame} from '../../../zcl';
import {Waitress} from '../../../utils';... |
<gh_stars>1-10
import { isPaint, isIcon } from '@nextgis/paint';
import { isPropertyFilter, featureFilter } from '@nextgis/properties-filter';
import { getImage } from '../utils/imageIcons';
import { getCentroid } from '../utils/getCentroid';
import { makeHtmlFromString } from '../utils/makeHtmlFromString';
import { c... |
import { EventEmitter } from '@angular/core';
import { cloneArray, cloneValue, IBaseEventArgs, resolveNestedPath, yieldingLoop } from '../../core/utils';
import { GridColumnDataType, DataUtil } from '../../data-operations/data-util';
import { ExportUtilities } from './export-utilities';
import { IgxExporterOptionsBase ... |
import React from "react";
import { t } from "../i18next_wrapper";
import {
ActiveMiddleProps, SequenceHeaderProps, SequenceBtnGroupProps,
SequenceSettingProps, SequenceSettingsMenuProps, ActiveMiddleState,
SequenceShareMenuProps,
} from "./interfaces";
import {
editCurrentSequence, copySequence, pinSequenceTog... |
<gh_stars>1-10
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// Taken from 'https://github.com/sindresorhus/globals/blob/server/globals.json
export const builtin = [
"Array",
... |
import * as angular from 'angular';
export class $tooltip implements ng.IServiceProvider {
constructor() {}
// The default options tooltip and popover.
private defaultOptions = {
placement: 'top',
showcaret: false,
placementClassPrefix: '',
animation: true,
popupDelay: 0,
popupCloseDel... |
/**
* version:1.2.3
* Created by yyccmmkk on 2018/10/18.
* E-mail:<EMAIL>
* 画布拖动对齐参考线
*/
import {fromEvent, Unsubscribable} from 'rxjs';
import {auditTime} from 'rxjs/operators';
import {defaultsDeep, divide, add} from 'lodash-es';
let doc: Document = document;
type Grid = boolean | number | { width: number, he... |
import BSON, { ObjectId } from 'bson-ext'
import { compact, omit, pick, uniq } from 'lodash'
import mongoose, {
ClientSession,
Mongoose,
Query,
Schema,
SchemaOptions,
Types,
} from 'mongoose'
import validator from 'validator'
import {
ADMIN_FORM_META_FIELDS,
EMAIL_FORM_SETTINGS_FIELDS,
EMAIL_PUBLIC_F... |
import * as fs from 'fs';
import * as path from 'path';
import * as xml from 'xml2js';
import { assert } from 'chai';
import * as sch from './base';
// ===
// ===
function camelCase(s: string) {
return s.substr(0, 1).toLowerCase() + s.substr(1);
}
function transformEnum<T>(en: T) {
const cp: {[key: string]: ... |
export const enum NumberType {
i32 = 0x7F,
i64 = 0x7E,
f32 = 0x7D,
f64 = 0x7C,
}
export const enum VectorType {
v128 = 0x7B,
}
export const enum ReferenceType {
funcref = 0x70,
externref = 0x6F,
}
export type ValueType = NumberType | ReferenceType;
export type ResultType = ValueType[];
e... |
import { GameBase, IAPGameState, IClickResult, IIndividualState, IValidationResult } from "./_base";
import { APGamesInformation } from "../schemas/gameinfo";
import { APRenderRep } from "@abstractplay/renderer/src/schemas/schema";
import { APMoveResult } from "../schemas/moveresults";
import { RectGrid, reviver, UserF... |
import { Module } from "./module";
import { ShipDesign } from "./shipDesign";
import { ShipType } from "./ShipType";
import { SHIP_TYPES } from "../data/shipTypes";
import { modules } from "../data/modulesData";
import { JobManager } from "../job/jobManager";
import { Game } from "../game";
import { FLEET_NUMBER, FLEET... |
<filename>src/explode.ts<gh_stars>1-10
/*
Copyright (c) 1990-2007 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-04 or later
(the contents of which are also included in unzip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also ... |
<gh_stars>10-100
import {
Color,
ColorInput,
ColorInputWithoutCMYK,
RGBObjectGeneric,
HSLObjectGeneric,
CMYKObjectGeneric,
CMYKObject,
HSLObject,
RGBObject,
RYBObject,
RGYBObject,
HEXObject,
RGBOutput,
HSLOutput,
HEXOutput,
ColorOutput
} from '@types';
imp... |
import {
Component,
ElementRef,
Input,
Output,
ChangeDetectionStrategy,
ChangeDetectorRef,
ViewChild,
EventEmitter,
Renderer2,
HostListener,
OnDestroy,
NgZone
} from '@angular/core';
import { LyTheme2, mergeDeep, LY_COMMON_STYLES, ThemeVariables, lyl, ThemeRef, StyleCollection, LyClasses, StyleT... |
<reponame>Lucilor/cad-viewer
import {CoordinateXY, Element, G, SVG, Svg} from "@svgdotjs/svg.js";
import {calc, loadImage, ObjectOf, Point, SessionStorage} from "@utils";
import {EventEmitter} from "events";
import {cloneDeep} from "lodash";
import {CadData} from "./cad-data/cad-data";
import {CadEntities} from "./cad-... |
<reponame>teekkarispeksi/nappikauppa2<filename>backend/src/order.ts
'use strict';
var config = require('../config/config.js');
import db = require('./db');
import log = require('./log');
import mail = require('./mail');
import uuidv4 = require('uuid/v4');
import _ = require('underscore');
import ticket = require('./t... |
<gh_stars>100-1000
var browser: Browser = browser || chrome;
var hostname = typeof (location) != 'undefined' ? location.hostname : '';
if (hostname.startsWith('www.')) {
hostname = hostname.substring(4);
}
if (hostname == 'mobile.twitter.com') hostname = 'twitter.com';
if (hostname.endsWith('.reddit.com')) hostnam... |
import { CdkDragStart } from '@angular/cdk/drag-drop';
import {
AfterContentInit,
AfterViewChecked,
AfterViewInit,
ApplicationRef,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
HostListener,
Injector,
NgZone,
OnChanges,
OnDestroy,
OnInit,
... |
// TODO: Refactor
import { throttle, isFinite, isEqual } from 'lodash';
import { getColor, getColorNum } from 'src/lib/getColor';
import * as PIXI from 'src/lib/pixi';
import type { Settings } from 'src/types';
import type {
Nvim,
Transport,
UiEventsHandlers,
UiEventsArgs,
ModeInfo,
HighlightAttrs,
} fro... |
import vm from 'vm';
import { blankSocket, getTimer, merge, pick } from './Helpers';
import Blocker from './Blocker';
import { Arguments } from './Arguments';
import Environment from './Environment';
import TestsContent from './TestContent';
import { TestError } from './Error';
import { logDebug } from './Log';
import... |
<reponame>GeoscienceAustralia/GNSS-Site-Manager
import { Injectable } from '@angular/core';
import { SiteLogDataModel } from './data-model/site-log-data-model';
import { SiteLogViewModel } from '../../site-log/site-log-view-model';
import { ResponsiblePartyViewModel } from '../../responsible-party/responsible-party-vie... |
/*
* Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
import { GluegunCommand } from 'gluegun'
import { Toolbox } from 'gluegun/build/types/domain/toolbox'
import { GluegunPrint } from 'gluegun/build/types/toolbox/print-types'
import { getKeyAndCertForRemoteRequestbyUserName, fab... |
<gh_stars>0
import {Component, OnInit, ChangeDetectorRef, ViewEncapsulation} from '@angular/core';
import {FormBuilder, FormGroup} from '@angular/forms';
import * as D3 from 'd3';
import * as d3 from 'd3-selection';
import * as d3Scale from 'd3-scale';
import * as d3Shape from 'd3-shape';
import * as d3Axis from 'd3-a... |
<filename>src/constants/index.ts
import { ChainId, JSBI, Percent, Token, WETH } from '@sushiswap/sdk'
import { fortmatic, injected, lattice, portis, torus, walletconnect, walletlink } from '../connectors'
import { AbstractConnector } from '@web3-react/abstract-connector'
export const POOL_DENY = ['14', '29', '45', '3... |
<reponame>nidup/ldjam42
import {Street} from "../Street";
import {Citizen, TEXT_STYLE, TEXT_STYLE_BIG, TEXT_STYLE_MIDDLE} from "../../Character/Bot/Citizen";
import {BackBag} from "../../Character/Player/BackBag";
import {Config} from "../../Config";
import {LevelLoader} from "../LevelLoader";
import {KeyBoardControll... |
<filename>vue/outline/index.ts
export { default as AcademicCapIcon } from './academic-cap'
export { default as ActivityIcon } from './activity'
export { default as AdIcon } from './ad'
export { default as AdjustmentsIcon } from './adjustments'
export { default as AerialIcon } from './aerial'
export { default as Airplay... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<reponame>verybestjp/angular-moment-picker
declare var angular: any;
declare var moment: any;
import { getOffset } from './helpers';
import { IProviderOptions } from './provider';
import { ViewString, IView, IViewItem, IDirectiveScopeInternal, IModelController } from './definitions';
import { DecadeView, YearView, Mont... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* Converts modlogs between text and SQLite; also modernizes old-format modlogs
* @author Annika
* @author jetou
*/
// @ts-ignore Needed for FS
if (!global.Config) global.Config = {nofswriting: false};
import {FS} from '../../lib/fs';
import {ModlogEntry} from '../../server/modlog';
import {IPTools} from '../... |
/* Generated for keycloak/org/v1alpha1/mod.ts */
import { ObjectMeta } from "https://deno.land/x/deploykit@0.0.19/generated/k8s/v1.18.3/apimachinery/pkg/apis/meta/v1/mod.ts";
/** KeycloakRealm is the Schema for the keycloakrealms API */
export type KeycloakRealm = {
apiVersion?: string;
kind?: string;
metadata... |
import { debounce, enrichEventWithDetails, useI18nBundle, useIsRTL, useSyncRef } from '@ui5/webcomponents-react-base';
import {
ADAPT_FILTERS,
CLEAR,
FILTERS,
GO,
HIDE_FILTER_BAR,
RESTORE,
SHOW_FILTER_BAR
} from '@ui5/webcomponents-react/dist/assets/i18n/i18n-defaults';
import clsx from 'clsx';
import Rea... |
import {
AfterViewInit,
ChangeDetectorRef,
Component,
ElementRef,
NgZone,
OnDestroy,
OnInit,
ViewChild,
ViewContainerRef
} from "@angular/core";
import { RadSideDrawer, SlideInOnTopTransition, FadeTransition } from "nativescript-ui-sidedrawer";
// tslint:disable-next-line
import * as app from "tns-cor... |
import { faCalculator } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { CheckBox, CheckBoxOutlineBlank, Close } from '@mui/icons-material';
import { Alert, Box, Button, ButtonGroup, CardContent, Divider, Grid, Link, MenuItem, Skeleton, ToggleButton, T... |
<filename>src/handlers/dc-cli-content-item-handler.ts
import { Arguments, Argv } from 'yargs';
import { ConfigurationParameters } from '../common/dccli/configure';
import dynamicContentClientFactory from '../common/dccli/dynamic-content-client-factory';
import { FileLog } from '../common/dccli/file-log';
import { dirna... |
/**
* All the enums
*/
declare enum ConnectionState {
BINDING = 0,
BOUND = 1,
CONNECTED = 2,
DISPOSED = 3,
INVALID_SDK_VERSION = 4,
UNBINDING = 5,
UNBOUND = 6,
}
declare enum UserConsent {
GRANTED = 0,
DECLINED = 1,
UNSPECEFIED = 2,
}
declare enum MessageFlags {
SHOW_DIALOG... |
import { invariant } from '../../utilities/globals';
import { dep, OptimisticDependencyFunction } from 'optimism';
import { equal } from '@wry/equality';
import { Trie } from '@wry/trie';
import {
isReference,
StoreValue,
StoreObject,
Reference,
makeReference,
DeepMerger,
maybeDeepFreeze,
canUseWeakMap... |
import { EventEmitter } from 'betsy'
import isPlainObject from 'is-plain-obj'
import * as proxyStateTree from 'proxy-state-tree'
import { Derived, IS_DERIVED, IS_DERIVED_CONSTRUCTOR } from './derived'
import { Devtools, DevtoolsMessage } from './Devtools'
import * as internalTypes from './internalTypes'
import { proxif... |
<reponame>coatyio/connector.opc-ua.js
/*! Copyright (c) 2020 Siemens AG. Licensed under the MIT License. */
import { EventEmitter } from "events";
import {
AttributeIds,
BrowseDescription,
BrowseDescriptionOptions,
BrowsePath,
ClientSession,
ClientSubscription,
ClientSubscriptionOptions,
... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import {
styled,
produce,
Toolbar,
Select,
FlexColumn,
FlexRow,
ManagedTable,
Text,
Button,
Butt... |
import {TriggerType, ExternalCallInfo, CallType, CallInfo, SetVariableOpr, ParameterFromVariable} from "../entities/contractModel";
import {SetVariableOperation as PostOpr, SuperCall, SuperContract, JsCall, SuperContractVariable, CallFunc, CallFuncParam,
TransactionReceiptEvent, TransactionEventInfo, InputWhenRun,... |
<reponame>juancastillo0/tfjs
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
import ... |
import { Inject, Injectable, OnDestroy } from "@angular/core";
import { Store, select } from "@ngrx/store";
import { Observable, Subscription, of, forkJoin, combineLatest, from } from "rxjs";
import { viewerConfigSelectorUseMobileUi } from "src/services/state/viewerConfig.store.helper";
import { shareReplay, tap, scan,... |
<reponame>toriiico/openrec-chat-client
export const updateGiftList = async () => {
const res = await fetch("https://public.openrec.tv/external/api/v5/yell-products")
return res.json()
}
export const getMovieId = async (channelId: string) => {
const res = await fetch("https://public.openrec.tv/external/api/v5/mov... |
/*
* Power BI Visual CLI
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
* MIT License
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.