text stringlengths 9.82k 47.8k |
|---|
<gh_stars>1-10
import errorService from "../services/error.service"
import socketService from "../services/socket.service"
import h from "../helper/helper"
import * as Bluebird from "bluebird"
const initService = require("services/initService")
import State from "../asset/state"
const keyStoreService = require("crypt... |
<filename>src/entmoot.ts
import chalk from "chalk";
import fs from "fs";
import marked from "marked";
import peg from "pegjs";
import seedrandom from "seedrandom";
if (typeof document === "undefined") {
const { JSDOM } = require("jsdom");
globalThis.document = new JSDOM().window.document;
}
require("./raw-loader.... |
import * as quat from 'toybox/math/quat'
import * as mat4 from 'toybox/math/mat4'
import * as vec2 from 'toybox/math/vec2'
import * as vec3 from 'toybox/math/vec3'
import * as audio from 'audio'
import {State} from 'state'
import {Stream} from 'toybox/util/stream'
let tmp = mat4.newZero();
export class AnimCommand {... |
import * as path from "path"
import { CommandExample, ExampleParam } from "./CodeModelAz";
import { deepCopy, isDict, ToCamelCase, changeCamelToDash } from "../../utils/helper"
import { Example } from "@azure-tools/codemodel";
import { EnglishPluralizationService } from "@azure-tools/codegen";
function MethodToOrder... |
<gh_stars>0
/// <reference path="sandbox-defs.ts" />
"use strict";
interface RequestFailCallback {
( error : any, userData : any ) : void;
}
interface RequestAlwaysCallback {
( userData : any ) : void;
}
interface ResponseHandler {
done : Function; // Actual type is specific to particular response kind.
fail : R... |
<filename>types/webgl2.d.ts<gh_stars>1-10
/*
Copyright 2017 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
... |
import React, { useEffect, useState, useMemo } from 'react';
import BigNumber from 'bignumber.js';
import { Helmet } from 'react-helmet-async';
import { useTranslation } from 'react-i18next';
import { translations } from 'locales/i18n';
import styled from 'styled-components/macro';
import { media } from 'styles/media';... |
<filename>packages/OligoBatchCalculator/src/package.ts
import * as grok from 'datagrok-api/grok';
import * as ui from 'datagrok-api/ui';
import * as DG from 'datagrok-api/dg';
import $ from 'cash-dom';
import {weightsObj, individualBases, nearestNeighbour, SYNTHESIZERS} from './map';
import {validate} from './validatio... |
import { HSD_TObj, HSD_MObj, HSD_DObj, HSD_JObj, HSD_JObjRoot, HSD_PEFlags, HSD__TexImageData, HSD_JObjFlags, HSD_TObjFlags, HSD_AnimJointRoot, HSD_MatAnimJointRoot, HSD_ShapeAnimJointRoot, HSD_AnimJoint, HSD_MatAnimJoint, HSD_ShapeAnimJoint, HSD_AObj, HSD_FObj, HSD_FObj__JointTrackType, HSD_AObjFlags } from "./SYSDOL... |
'use strict';
//import Chart from "chart.js/auto";
import "chartjs-chart-error-bars";
import Handsontable from "handsontable";
import { initHTML, disableDropdown } from "./chart-transient-utils/chart-transient-html";
import { TransientChart } from "./chart-transient-utils/chart-transient-chart";
import { readCSVData,... |
import {
BaseMessageComponent,
Collection,
CollectorFilter,
EmojiIdentifierResolvable,
Guild,
GuildMember,
MessageButton,
MessageComponentInteraction,
MessageSelectMenu,
Role,
TextChannel
} from "discord.js";
import {
IAfkCheckReaction,
IDungeonInfo,
IDungeonModif... |
import * as React from "react";
import "react-app-polyfill/ie11";
import styles from "../main.module.scss"
import {
CONTAINER,
EDITOR_BACK,
EDITOR_ITEM,
EDITOR_NEW_BLOCK_ACRONYM,
EDITOR_NEW_BLOCK_FORMULA,
EDITOR_NEW_BLOCK_NAME,
EDITOR_NEW_BLOCK_SMILES,
EDITOR_SMILES,
ELEMENT_LARGE_SM... |
enum ENGINE_TEXT {
SINGLE,
PUSHER,
PULLER,
};
class Cards {
private dash_canvas: HTMLCanvasElement;
private dash_image: HTMLImageElement;
private weap_canvas: HTMLCanvasElement;
private weap_image: HTMLImageElement;
private eng_canvas: HTMLCanvasElement;
private eng_image: HTMLImageE... |
<gh_stars>0
import Realm, { ObjectSchema } from 'realm';
import { dataRealmConfig } from "./dataRealmConfig";
import { VariableEntity, VariableEntitySchema } from './VariableEntity';
import { appConfig } from '../app/appConfig';
import { VocabulariesAndTermsResponse, TermChildren, BasicPagesResponse } from './apiStore'... |
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import Outputs from '../../../../../resources/outputs';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { Raidbos... |
<reponame>ClintH/ixfx
/* eslint-disable */
import {minIndex} from '~/collections/NumericArrays.js';
import {PointCalculableShape} from '~/geometry/Point.js';
import {Arrays} from '../collections/index.js';
import { Points, Rects} from '../geometry/index.js';
import {clamp, flip, getFieldByPath, getFieldPaths, ifNaN, ro... |
<filename>ui/jobs/buff_tracker.ts
import EffectId from '../../resources/effect_id';
import arrowImage from '../../resources/ffxiv/status/arrow.png';
import astralImage from '../../resources/ffxiv/status/astral.png';
import balanceImage from '../../resources/ffxiv/status/balance.png';
import battleLitanyImage from '... |
import { IRPC } from './message/rpc'
import { PeerScoreThresholds } from './score/peer-score-thresholds'
import {
MessageAcceptance,
MessageStatus,
PeerIdStr,
RejectReason,
RejectReasonObj,
TopicStr,
ValidateError
} from './types'
/** Topic label as provided in `topicStrToLabel` */
export type TopicLabel... |
// Type definitions for Nella JSX
// The document is adapted version of Nella type definitions for Nella
export function createElement(tagName: string, props, ...children): JSX.Element;
export function Fragment(): JSX.Element[];
declare namespace __Nella {
type numberProp = number | (() => number);
type stri... |
<reponame>jeffersoncpf/moodleapp-ionic5_AVAIFPE
// (C) Copyright 2015 Moodle Pty Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
... |
<filename>src/vs/editor/common/modes/monarch/monarchCompile.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*... |
import { GatewayOptions } from './GatewayOptions';
import { GatewayShard, GatewayShardState } from './GatewayShard';
import { Cache } from '../cache/Cache';
import { DiscordConstants } from '../constants/DiscordConstants';
import { DistypeError, DistypeErrorType } from '../errors/DistypeError';
import { Rest } from '.... |
<reponame>SeanPMiller/opentsdb-horizon<gh_stars>1-10
/**
* This file is part of OpenTSDB.
* Copyright (C) 2021 Yahoo.
*
* 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... |
import Button from '@salesforce/design-system-react/components/button';
import PageHeaderControl from '@salesforce/design-system-react/components/page-header/control';
import i18n from 'i18next';
import { pick } from 'lodash';
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import DocumentTitl... |
<gh_stars>1-10
import { Commands, Container, Contracts, Services } from "@swipechain/core-cli";
import { Crypto, Identities, Interfaces, Transactions, Utils, Managers, Blocks } from "@swipechain/crypto";
import Joi from "joi";
import { generateMnemonic } from "bip39";
import envPaths from "env-paths";
import { ensureDi... |
<gh_stars>1-10
import { Buffer, Neovim } from '@chemzqm/neovim'
import fastDiff from 'fast-diff'
import path from 'path'
import { Disposable } from 'vscode-languageserver-protocol'
import { Location, Range, TextDocument, TextDocumentEdit, TextEdit, WorkspaceEdit } from 'vscode-languageserver-types'
import { URI } from ... |
/**
* @license
* Copyright (C) 2015 The Android Open Source Project
*
* 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 require... |
import { ElementaryStreamTypes } from '../loader/fragment';
import { logger } from '../utils/logger';
let USER_DATA_REGISTERED_ITU_T_T35 = 4,
RBSP_TRAILING_BITS = 128;
const UINT32_MAX = Math.pow(2, 32) - 1;
export function bin2str (buffer): string {
return String.fromCharCode.apply(null, buffer);
}
export funct... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// @ts-ignore
import * as polyline from '@mapbox/polyline'
import { circle } from '@turf/turf'
import 'url-search-params-polyfill'
type KeyValue = { [id: string]: string }
const fallbackPinColor = 'FF0000'
export type ConvertOutput = string
export interface ConvertOpts {
accountId: string
mapboxToken: string
st... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<reponame>center-for-threat-informed-defense/attack-workbench-frontend
import { Component, OnInit, Input, ViewEncapsulation, ViewChild, AfterViewInit, ElementRef, EventEmitter, Output, OnDestroy } from '@angular/core';
import { StixObject } from 'src/app/classes/stix/stix-object';
import {animate, style, transition, tr... |
<reponame>RedMickey/vscode-js-debug
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import * as nls from 'vscode-nls';
import { URL } from 'url';
import { InlineScriptOffset, ISourcePat... |
<gh_stars>1-10
/// <reference path="webcl.d.ts" />
/// <reference path="../jquery/jquery.d.ts" />
class CLHException {
constructor(
public message: string
) { }
}
class PlatformInfo {
EXTENTION: string;
NAME: string;
PROFILE: string;
VENDOR: string;
VERSION: string;
constr... |
<reponame>zfy0701/javascript-typescript-langserver-new
import { walkMostAST } from './ast'
import { LocalFileSystem } from './fs';
import { LanguageClient } from './lang-handler'
import { extractNodeModulesPackageName } from './packages'
import { ProjectConfiguration } from './project-manager'
import {
InitializePa... |
<gh_stars>10-100
import get from 'lodash/get'
import set from 'lodash/set'
import keys from 'lodash/keys'
import castArray from 'lodash/castArray'
import curry from 'lodash/curry'
import reduce from 'lodash/reduce'
import isArray from 'lodash/isArray'
import cloneDeep from 'lodash/cloneDeep'
import isPlainObject from '... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
import os from 'os';
import path from 'path';
import crypto from 'crypto';
import pMap from 'p-map';
import pPipe from 'p-pipe';
import semver from 'semver';
import { VersionCommand } from '@lerna-lite/version';
import {
collectUpdates,
Command,
CommandType,
Conf,
createRunner,
describeRef,
getOneTimePas... |
<reponame>toddfoster/venite
import { Injectable } from "@angular/core";
import { AngularFirestore } from "@angular/fire/firestore";
import { Observable, from, of, combineLatest, merge, concat } from "rxjs";
import {
catchError,
filter,
map,
startWith,
switchMap,
first,
} from "rxjs/operators";
import {
... |
<gh_stars>1-10
import * as hlib from '../../hlib/hlib' // this will be commented out in the shipping bundle
let params:any = decodeURIComponent(hlib.gup('params'))
params = JSON.parse(params)
const widget = hlib.getById('widget') as HTMLElement
const controlsContainer = hlib.getById('controlsContainer') as HTMLElemen... |
<gh_stars>1-10
import * as UI from "../ui";
import * as Viewer from "../viewer";
import * as rw from "librw";
// @ts-ignore
import { readFileSync } from "fs";
import { TextureMapping, TextureBase } from "../TextureHolder";
import { GfxDevice, GfxFormat, GfxBufferUsage, GfxBuffer, GfxVertexAttributeDescriptor, GfxVerte... |
/*
* MIT License
*
* Copyright (c) 2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... |
<reponame>ComradePotat0/limbo<filename>scripts/testnet/deploymentFunctions.ts<gh_stars>1-10
import { ethers } from "hardhat";
import { parseEther } from "ethers/lib/utils";
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/dist/src/signers";
import { BigNumber, Contract, ContractFactory } from "ethers";
impo... |
<gh_stars>10-100
export const enum Icons {
'ABORT' = 'abort',
'ACTIONSPERSESSION' = 'actionspersession',
'ADDCOLUMNLEFT' = 'addcolumnleft',
'ADDCOLUMNRIGHT' = 'addcolumnright',
'ADDROWONBOTTOM' = 'addrowonbottom',
'ADDROWONTOP' = 'addrowontop',
'AIRPLANE' = 'airplane',
'ALARM-OFF' = 'alarm-off',
'ALAR... |
<gh_stars>1-10
export type ProverbKey = keyof typeof PROVERBS
export const PROVERBS = {
jisho: [
'Ababwiriza benshi barashisha mu jisho',
'Igiti cagukoze mu jisho cama gihiritse',
],
imbwa: [
'Abahigi benshi bayobeza imbwa',
'Ico imbwa yanse ushira aho iraba',
'Imbwa ibura se ntibura shebuja'... |
<reponame>vegertar/chickut<gh_stars>0
// Text engine pruning from markdown-it
import merge from "lodash.merge";
import sortedIndex from "lodash.sortedindex";
import {
expandTab,
isMdAsciiPunct,
isPunctChar,
isSpace,
isWhiteSpace,
} from "./utils";
export class NoParserError extends Error {}
export interfa... |
import axios from 'axios'
import _ from 'lodash'
import { ApolloClient, MutationOptions } from 'apollo-client'
import { InMemoryCache } from 'apollo-cache-inmemory'
import { createHttpLink } from 'apollo-link-http'
import fetch from 'node-fetch'
import pEachSeries from 'p-each-series'
import readUsers from '../client/s... |
<gh_stars>10-100
import fs from "fs";
import tinycolor from "tinycolor2";
// WCAG AA minimum contrast values
// https://webaim.org/resources/contrastchecker/
const Contrast = {
text: 4.5,
ui: 3,
decoration: 1.5,
} as const;
function sortedObject<T>(obj: Record<string, T>) {
const ret: Record<string, T> = {};
... |
#!/usr/bin/env node
/** vim: set syntax=typescript tabstop=2 softtabstop=2 shiftwidth=2 expandtab smarttab : */
/**
* A command-line interface as a replacement for, or supplement to, the AWS CLI
* that is not only faster than the AWS CLI, but also allows the execution of operations
* in multiple AWS Accounts and Re... |
<filename>src/main.ts
/*
Copyright 2014 darkf
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writi... |
<filename>packages/_server/src/config/documentSettings.ts
import type {
CSpellSettingsWithSourceTrace,
DictionaryDefinition,
DictionaryDefinitionCustom,
FileSource,
Glob,
GlobDef,
Pattern,
RegExpPatternDefinition,
} from '@cspell/cspell-types';
import { AutoLoadCache, createAutoLoadCache... |
<reponame>salgum1114/mapbox-gl-threelayer
import {
Color,
LineBasicMaterial,
BufferGeometry,
BufferAttribute,
Line,
Vector3,
Group,
Box3Helper,
Box3,
Matrix4,
} from 'three';
import { CSS2DObject } from 'three/examples/jsm/renderers/CSS2DRenderer';
import Threebox, { ThreeboxObject } from '../Threebox';
exp... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* -------------------------------------------------------------... |
export function earcut(data: number[], hole_indices?: number[], dim?: number) {
dim = dim || 2;
var hasHoles = hole_indices && hole_indices.length,
outerLen = hasHoles ? hole_indices[0] * dim : data.length,
outerNode = linkedList(data, 0, outerLen, dim, true);
/** @type {number[]} */
le... |
<filename>polynote-frontend/polynote/ui/component/plot_editor.ts<gh_stars>0
'use strict';
import {div, button, iconButton, h4, TagElement, icon} from '../util/tags'
import {
BoolType,
ByteType, DataType,
DateType, DoubleType,
FloatType,
IntType,
LongType,
OptionalType,
ShortType,
S... |
<gh_stars>0
import { Decimal, RoundingModeType } from '../src';
import { DivMod } from '../src/math';
const parse = (s: string) => new Decimal(s);
const precision = (u: string) => parse(u).precision();
const scale = (u: string) => parse(u).scale();
const trailZeros = (u: string) => parse(u).trailingZeros();
const shr ... |
<gh_stars>0
import {
Component,
OnInit,
Input,
ViewChild,
forwardRef,
Output,
EventEmitter
} from '@angular/core';
import {
AlExposureNotificationsClient,
AssetFilter,
Subscription
} from '@al/exposure-notifications';
import {
AlBottomSheetComponent,
AlBottomSheetHeader... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
/**
* @license
* Copyright 2018-2022 Streamlit Inc.
*
* 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 applicab... |
/*
* <<
* Davinci
* ==
* Copyright (C) 2016 - 2017 EDP
* ==
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... |
<reponame>alizahid/bigglesworth-api
import { Expansions, Quests, Skills, Zones } from '../types'
export const expansions: Expansions = {
1: {
icon: 'bc',
name: 'The Burning Crusade'
},
2: {
icon: 'wotlk',
name: 'Wrath of the Lich King'
},
3: {
icon: 'cata',
name: 'Cataclysm'
},
4:... |
<filename>src/atn/LexerATNSimulator.ts<gh_stars>0
/*!
* Copyright 2016 The ANTLR Project. All rights reserved.
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
*/
// ConvertTo-TS run at 2016-10-04T11:26:29.1083066-07:00
import { AcceptStateInfo } from "../dfa... |
import * as types from '@nativescript/core/utils/types';
import { File, knownFolders, path } from '@nativescript/core/file-system';
import { FileManager } from '../file/file';
import {
fileNameFromPath,
Headers,
HttpDownloadRequestOptions,
HttpError,
HttpRequestOptions,
isImageUrl,
SaveImage... |
/* Copyright(c) 2015 3NSoft Inc.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* This contains implementation of SHA512.
* Implementation note 1:
* All C ... |
import {
EOFToken,
NodeBase,
ParserCoreImplementation,
ParserCoreOverrides,
ParserCoreTokenizeState,
ParserCoreTypes,
ParserUnexpectedOptions,
Position,
SOFToken,
SourceLocation,
TokenBase,
TokenValues,
} from "./types";
import {
DIAGNOSTIC_CATEGORIES,
Diagnostic,
DiagnosticCategory,
DiagnosticDescripti... |
<reponame>KRTirtho/licode
/**
* Typescript port, created by <NAME> <<EMAIL>> © 2021
*/
import { EventDispatcher, StreamEvent } from './Events';
import { ConnectionHelpers, CommonMediaTrackConstraints } from './utils/ConnectionHelpers';
import Random from './utils/Random';
import VideoPlayer, { VideoPlayerElement, V... |
<gh_stars>0
// Copyright 2022 <NAME>. All rights reserved. MIT License.
// This module is browser-compatible.
// This module is heavily inspired by https://github.com/blitz-js/superjson.
// REVIEW: Automatically escape strings for XSS, see
// https://github.com/yahoo/serialize-javascript ?
// REVIEW: Support for f... |
<filename>src/panels/aistts/ha-panel-aistts.ts
import "../../layouts/ha-app-layout";
import "@polymer/app-layout/app-header/app-header";
import "@polymer/app-layout/app-toolbar/app-toolbar";
import "@polymer/paper-checkbox/paper-checkbox";
import "../../components/ha-icon-button";
import "@polymer/paper-item/paper-icon... |
/*-
* ========================LICENSE_START=================================
* TeamApps
* ---
* Copyright (C) 2014 - 2021 TeamApps.org
* ---
* 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... |
import { ComponentRegistrationInfo, TypeInfo } from '@vuedx/analyze'
import {
camelCase,
concat,
first,
getComponentNameAliases,
getRelativeFileName,
isNotNull,
isPascalCase,
kebabCase,
last,
pascalCase,
uncapitalize,
} from '@vuedx/shared'
import {
AttributeNode,
DirectiveNode,
ElementNode,... |
import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/app-route/app-route.js';
import '@polymer/iron-icon/iron-icon.js';
import '@polymer/paper-button/paper-button.js';
import '@polymer/paper-listbox/paper-listbox.js';
import '@polymer/paper-menu-button/paper-menu-button.js';
import CONSTANTS from '..... |
import * as XLSX from 'xlsx'
import { orderBy } from 'lodash'
import {
SAVINGS_OUTPUT_PATH,
SCHEDULE_ORDER_PATH,
MAX_VEHICLE_WEIGHT,
SAVINGS_COST_PATH,
DEPOT_ID,
TOTAL_NODES,
} from './config'
import * as fs from 'fs'
import * as path from 'path'
interface COST_MATRIX_DATA {
OriginID: number,
Destinati... |
// TODO: Web assembly is more advantageous for large inputs. Creating a web
// assembly version.
//
// benchmark with 4B input, 300000 iterations:
// xsalsa20: 98.654ms
// wasm: 139.835ms
//
// benchmark with 4096B input, 30000 iterations:
// xsalsa20: 804.314ms
// wasm: 325.942ms
//
// benchmark with 41943040B... |
<reponame>vilyLei/voxweb3d<gh_stars>1-10
/***************************************************************************/
/* */
/* Copyright 2018-2022 by */
/* Vily(<EMAIL>) ... |
import StatusCodes from './StatusCodes';
import clamp from 'lodash/clamp';
import {formatQueryParams} from './Utils';
// Support for webworker context's 'self' and IE11 compatibility (no globalThis)
const global =
typeof self !== 'undefined'
? self
: typeof window !== 'undefined'
? window
: typeof gl... |
<filename>lib/test-utils.ts
import type {
Contract,
LinkContract,
SessionContract,
} from '@balena/jellyfish-types/build/core';
import { ExecuteContract } from '@balena/jellyfish-types/build/queue';
import { strict as assert } from 'assert';
import { testUtils as autumndbTestUtils } from 'autumndb';
import permutati... |
<reponame>staylorwr/radixdlt-javascript
import {
AmountOrUnsafeInput,
AmountT,
uint256Max,
Network,
} from '@radixdlt/primitives'
import {
AccountAddress,
AccountAddressT,
ResourceIdentifier,
ResourceIdentifierT,
ValidatorAddress,
ValidatorAddressT,
} from '@radixdlt/account'
import { Observable, of } from 'r... |
<gh_stars>0
import { Store } from "./Store";
import { Logger } from "./Logger";
import { Memo } from "./store/Memo";
import { Relationship } from "./store/Relationship";
import { Index } from "./store/Table";
import {
AddTable,
MoveTable,
RemoveTable,
SelectTable,
SelectOnlyTable,
ChangeTableValue,
DragSe... |
import * as config from 'config';
import * as model from './model';
import { gatewayLogger as logger } from '../log/gateway-logger';
import { HttpClientWrapper } from '../util/http-wrapper';
import { cloneDeep, filter, find } from 'lodash';
import { TimeRange, CreationInfo,
CreatorType, AssociationChange,
... |
<reponame>agilevich1/nexus-mod-service
import {JiraConnection, JiraTicket} from "@nexus-switchboard/nexus-conn-jira";
import {SlackConnection, SlackPayload} from "@nexus-switchboard/nexus-conn-slack";
import {getNestedVal, ModuleConfig} from "@nexus-switchboard/nexus-core";
import {KnownBlock, Block, PlainTextElement,... |
<gh_stars>0
// import Popper from 'popper.js';
import {MIN_LABEL_WIDTH} from '../config';
import {equalArrays} from '../internal';
import {dragAble, dropAble, hasDnDType, IDropResult} from '../internal/dnd';
import {
createImpositionBoxPlotDesc, createImpositionDesc, createImpositionsDesc, createNestedDesc, createRed... |
<gh_stars>0
/* eslint-disable @typescript-eslint/no-explicit-any */
import {
getAll as getAllByTweenjs,
Interpolation,
Tween as TweenByTweenjs,
update as updateByTweenjs,
} from "@tweenjs/tween.js";
import { adjustCSS, css, cssNumber, each, extend, Kijs } from "kijs";
import genFx from "../helpers/genFx";
impo... |
import React, { useEffect } from 'react';
import * as actions from '../store';
import { useGlobal, useState } from 'reactn';
import { connect } from 'react-redux';
import {
IState,
IIntegrationStrings,
Project,
Passage,
ISharedStrings,
} from '../model';
/* eslint-disable-next-line @typescript-eslint/no-unuse... |
// Courtesy of JohnstonCode https://github.com/JohnstonCode/scm-scm/blob/master/src/scmFinder.ts
import * as cp from 'child_process';
import * as semver from 'semver';
import * as iconv from 'iconv-lite-umd';
import * as proc from 'process';
import { Readable } from 'stream';
import { CancellationToken, Progress, Prog... |
<reponame>PartyPlanner64/PartyPlanner64<gh_stars>100-1000
import { BoardType, Space, SpaceSubtype, EventExecutionType, GameVersion, EventCodeLanguage, EditorEventActivationType, CostumeType } from "./types";
import { copyObject } from "./utils/obj";
import { ICustomEvent } from "./events/customevents";
import { getEven... |
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { isInvalidDate, isTypedArray, TypedArray } from "./util.ts";
import { cliTable } from "./console_table.ts";
import { exposeForTest } from "../internals.ts";
import { PromiseState } from "./promise.ts";
type ConsoleContext = Set<unknown>... |
import * as acorn from 'acorn';
import injectDynamicImportPlugin from 'acorn-dynamic-import';
import injectImportMeta from 'acorn-import-meta';
import * as ESTree from 'estree';
import GlobalScope from './ast/scopes/GlobalScope';
import { EntityPathTracker } from './ast/utils/EntityPathTracker';
import Chunk from './Ch... |
import {Term, TermSet, Rule, cmpSet, Conflicts, union} from "./grammar.ts"
import {hash, hashString} from "./hash.ts"
import {GenError} from "./error.ts"
import {timing} from "./log.ts"
export class Pos {
hash: number = 0
constructor(readonly rule: Rule,
readonly pos: number,
// NOTE `... |
import * as React from 'react';
import {
getClient,
IExtensionDataManager,
IGlobalMessagesService,
IProjectInfo,
MessageBannerLevel,
} from 'azure-devops-extension-api';
import {
GitBranchStats,
GitRef,
GitRefUpdate,
GitRefUpdateResult,
GitRefUpdateStatus,
GitRepository,
... |
<reponame>matteopolak/mineflayer
import { EventEmitter } from 'events'
import TypedEmitter from 'typed-emitter'
import { Client, ClientOptions } from 'minecraft-protocol'
import { Vec3 } from 'vec3'
import { Item } from 'prismarine-item'
import { Window } from 'prismarine-windows'
import { Recipe } from 'prismarine-rec... |
<reponame>rangle/radius-tracker
import { CallExpression, Node, SpreadElement } from "ts-morph";
import { ValueExport } from "../resolveDependencies/identifyExports";
import { getImportNode, Import } from "../resolveDependencies/identifyImports";
import { ResolveDependencies } from "../resolveDependencies/resolveDepende... |
import React, { PureComponent, ReactElement, PropsWithChildren, CSSProperties } from 'react';
import { findDOMNode } from 'react-dom';
import { CSSTransition } from 'react-transition-group';
import ResizeObserverPolyfill from 'resize-observer-polyfill';
import { on, off, contains } from '../_util/dom';
import { isFunct... |
<reponame>RistiCore/tslint-config
import * as Lint from 'tslint';
import * as utils from 'tsutils';
import * as ts from 'typescript';
// tslint:disable:no-bitwise
const enum Format {
Pascal = 'PascalCase',
StrictPascal = 'StrictPascalCase',
Camel = 'camelCase',
StrictCamel = 'strictCamelCase',
Upp... |
<filename>src/three-web-layer.ts
import * as THREE from 'three'
import ResizeObserver from 'resize-observer-polyfill'
import { NodeParser } from '@speigg/html2canvas/dist/npm/NodeParser'
import Logger from '@speigg/html2canvas/dist/npm/Logger'
import CanvasRenderer from '@speigg/html2canvas/dist/npm/renderer/CanvasRen... |
import { throwError, ConnectableObservable, Observable, Subscription, from, of as just } from 'rxjs'
import { concatMap, map, tap } from 'rxjs/operators'
import * as lf from 'lovefield'
import * as Exception from '../exception'
import * as typeDefinition from './helper/definition'
import Version from '../version'
impor... |
/// <reference path="../../typings/jqueryui/jqueryui.d.ts" />
import "jquery-ui/jquery-ui-1.10.3.custom.min.js";
import "../../lib/jquery.i18n.custom";
import "../../lib/jquery.onSafe";
import axios from "axios";
export const isLongPressEvaluating: string = "isLongPressEvaluating";
/**
* The html code for a check m... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React, { Fragment, useContext, useEffect, useState } from 'react';
imp... |
// (C) 2007-2018 GoodData Corporation
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import * as classNames from 'classnames';
import { injectIntl } from 'react-intl';
import { debounce, isEqual, noop, pick, uniqueId } from 'lodash';
import { Cell, CellProps, Column, Table } from 'fixed-data-tab... |
<reponame>SUSE/open-build-service-connector<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 lim... |
<reponame>drgrice1/dvi2html
import { Machine } from "./machine";
enum Opcode {
set_char = 0,
set1 = 128,
set2 = 129,
set3 = 130,
set4 = 131,
set_rule = 132,
put_char = 133,
put2 = 134,
put3 = 135,
put4 = 136,
put_rule = 137,
nop = 138,
bop = 139,
eop = 140,
push = 141,
pop = 142,
righ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.