text stringlengths 9.82k 47.8k |
|---|
<filename>imapClass.ts
/*!
* Copyright 2017 QTGate systems Inc. All Rights Reserved.
*
* QTGate systems 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.o... |
/**
* The run-time support library for WebGL programs. This includes both
* functions that the compiler emits calls to and utilities that the
* programmer can invoke themselves.
*
* In ideal world, this wouldn't be coupled with the dingus, which is really
* intended to be a UI. I'd like to refactor it into a sepa... |
<reponame>lambkin179294/cactbot<gh_stars>1-10
import NetRegexes from '../../../../../resources/netregexes';
import Outputs from '../../../../../resources/outputs';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } from '../... |
import * as yup from 'yup';
import {
FlatConvectorModel,
Controller,
ConvectorController,
Invokable,
Param
} from '@worldsibu/convector-core';
import * as fhirTypes from '../utils/fhirTypes';
import {
Claim, ClaimResponse, CodeableConcept, ClaimResponseItem,
InvoiceLineItemPriceComponent, P... |
import * as $ from "jquery";
import * as React from "react";
import "./Station.css";
import { StationApp } from "./components/StationApp";
import { IMusicPlayer, PlaybackState } from "./music_player";
import SpotifyMusicPlayer from "./spotify_music_player";
import { CircularArray, ListenerRole, median, wait } from "./... |
<filename>modules/client/src/testing/index.ts
import * as chai from 'chai'
import asPromised from 'chai-as-promised'
import subset from 'chai-subset'
import { ethers as eth } from 'ethers'
import { BN, capitalize } from '../lib'
import { StateGenerator } from '../StateGenerator'
import {
Address,
addSigToChannelSt... |
/*
* Planck.js
* The MIT License
* Copyright (c) 2021 <NAME>, <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* t... |
<reponame>Jfcurd/ts-api<filename>src/analyzer/symtab.ts
import * as ts from "typescript";
import { TypedId, PathDecomposition, DecoratedFunction, Controller, Router } from "./types";
const tsany = ts as any;
let symtab: any = {};
let schemaRefIds:any = {};
let numIntermediates = 0;
let checker;
function getSourceCon... |
<gh_stars>0
import {logger} from '../../Utils';
import {Backbone, BasicSemanticVersion, SemanticVersion} from '../../Backbone';
import {
ExtractDataFromCommunicationSetResponseType,
HMIPart,
ImporterPart,
InternalServiceType,
MTPPart,
ServicePartExtractInputDataType,
TextPart
} from './Impor... |
import {EventEmitter} from "events";
import {inRange, uniqueId} from "lodash";
import {
CC_BOARD_HEIGHT,
CC_BOARD_WIDTH,
getDownUntil,
getLeftUntil,
getRightUntil,
getUpUntil,
isPositionInPath,
switchPosition
} from "./chinese-chess-helper";
export type ChineseChessSideName = "red" | "b... |
<reponame>eloisetwaine/cypress
/**
* The "Project Lifecycle" is the centralized manager for the project,
* config, browser, and the number of possible states that can occur based
* on inputs that change these behaviors.
*
* See `guides/app-lifecycle.md` for documentation on the project & possible
* states that ex... |
<reponame>ferBonnin/accessibility-insights-web
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { GuidanceTag, guidanceTags } from 'common/guidance-links';
export interface GuidelineMetadata {
number: string;
axeTag: string;
name: string;
linkName: ... |
<filename>src/frontend/scenes/mainScene.ts<gh_stars>0
import { Scene, Tilemaps } from "phaser";
import io from 'socket.io-client'
import Square from '../objects/square'
import Ball from '../objects/ball'
import { Position } from "../../shared/classes/position";
import { Agent } from "../../shared/classes/agent";
impor... |
import * as vscode from 'vscode'
import * as path from 'path'
import * as fs from 'fs'
import * as fse from 'fs-extra'
import { spawn } from 'child_process'
import * as csv from 'csv-parser'
import { Readable } from 'stream'
import { Extension } from '../main'
import { promisify } from 'util'
const fsCopy = promisify... |
import V = require("./VCL");
import VXC = require("./VXComponent");
import VXT = require("./VXTextBase");
import VXU = require("./VXUtils");
import VXO = require("./VXObject");
import VXCO = require("./VXContainer");
import VXW = require("./VXWell");
import VXM = require("./VXMenu");
export class TWizardButtonsStep ex... |
<gh_stars>1-10
/*
* Copyright (c) 2020 Uncharted Software Inc.
* http://www.uncharted.software/
*
* 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 wi... |
<filename>app/scenes/skillsScene.ts
import { updatePlayerStats } from 'app/avatar';
import { drawFrame, drawEmbossedText, drawOutlinedText, drawSolidTintedImage } from 'app/draw';
import { triggerBackAction } from 'app/handleBackAction';
import { handleHudButtonClick, renderHudButtons } from 'app/hud';
import {
clo... |
<filename>src/main/index.electron.ts
import fs from "fs"
import { builtinModules } from "module"
import path from "path"
import timers from "timers"
import vm from "vm"
import { transformAsync } from "@babel/core"
// @ts-expect-error dts not found
import babelTransformModulesCommonjs from "@babel/plugin-transform-modul... |
<reponame>SpeckiJ/helgoland-toolbox<gh_stars>0
import {
AfterViewInit,
Component,
ElementRef,
EventEmitter,
Input,
IterableDiffers,
OnChanges,
Output,
SimpleChanges,
ViewChild,
ViewEncapsulation,
} from '@angular/core';
import {
DatasetApiInterface,
DatasetOptions,
... |
/**
* @license
* Copyright (C) 2016 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... |
<gh_stars>0
import { IEasyEDABoard } from './easyeda-types';
import { encodeObject, ISpectraList } from './spectra';
import { computeArc } from './svg-arc';
// doc: https://docs.easyeda.com/en/DocumentFormat/3-EasyEDA-PCB-File-Format/index.html#shapes
interface IConversionState {
nets: string[];
innerLayers: numb... |
/**
* esModuleInterop: true looks to work everywhere except
* on snack.expo for some reason. Will revisit this later.
*/
import * as React from 'react';
import {
Animated,
View,
Modal,
Easing,
LayoutChangeEvent,
BackHandler,
KeyboardAvoidingView,
Keyboard,
ScrollView,
FlatList,
SectionList,
P... |
<filename>src/app/modules/conversation/pages/actiontab-details/actiontab-details.component.ts
import { Component, OnInit, ElementRef } from '@angular/core';
import { DataCommunicationService, OnlineOfflineService, ErrorMessage, ActionHeaders, ActionAdvnNames } from '@app/core/services';
import { ConversationService, ac... |
<reponame>stan69b/homebridge-vieramatic
import crypto from 'crypto'
import { Logger } from 'homebridge'
import http from 'http'
import net from 'net'
import { URL } from 'url'
import axios, { AxiosInstance, AxiosRequestConfig } from 'axios'
import { decodeXML } from 'entities'
import parser from 'fast-xml-parser'
impo... |
/// <reference path="../content/base.d.ts" />
/// <reference path="../lib/keyboard_utils.ts" />
/// <reference path="../background/bg.d.ts" />
/// <reference path="../background/utils.ts" />
/// <reference path="../background/settings.ts" />
interface ImportBody {
(id: "shownImage"): HTMLImageElement;
(id: "shownTe... |
<reponame>samhiatt/node-ableton-push2
import easymidi = require('easymidi');
const push2keymap = require('./Push2Keymap');
const OS_PLATFORM = require('os').platform();
import {EventEmitter} from 'events';
import {TouchStripConfiguration} from './TouchStripConfiguration';
import {DeviceIdentity} from './DeviceIdentity'... |
// Use examples from https://developers.google.cn/publisher-tag/reference
// Load the GPT library by adding the following to the <head> of the HTML document.
// <script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
// <script>window.googletag = window.googletag || {cmd: []};</script>
(wind... |
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
interface Country {
abbr: string;
code: string;
icon: string;
name: string;
suggested?: boolean;
}
export const allCountries: Array<Country> = [
{ icon: '🇦🇫', name: 'Afghanistan', abbr: 'AF', code: '93' },
{ icon: '🇦🇽', name: 'All... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import * as nls from 'vscode-nls';
let localize = nls.loadMessageBundle();
import * as os from 'os';
import * as fs from 'fs';
import * ... |
<reponame>el-gringo/rx-player<filename>src/core/api/option_utils.ts
/**
* Copyright 2015 CANAL+ Group
*
* 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/lice... |
import { Subscription } from 'rxjs'
import { map, take, filter } from 'rxjs/operators'
import { ActivatedRoute, Router } from '@angular/router'
import { Component, OnInit, Output, EventEmitter, AfterViewInit, ElementRef, ViewChild } from '@angular/core'
import { Angulartics2 } from 'angulartics2'
// Project dependenci... |
<gh_stars>0
// Copyright 2020 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
//
// Unless required b... |
<gh_stars>1-10
/*********************************************************************
* Copyright (c) Intel Corporation 2018-2021
* SPDX-License-Identifier: Apache-2.0
**********************************************************************/
import { logger, messages } from '../logging'
import Common from '../utils/c... |
import { Howl, Howler } from "howler"
import Cookies from "js-cookie"
import MicroModal from "micromodal"
import Swal from "sweetalert2/dist/sweetalert2.all.js"
import io from "socket.io-client"
const isNative = window._zeiwNative !== undefined
const isDev = "development" === process.env.NODE_ENV
const $ = (selector... |
import {PMap, getValue, log} from "../core/util"
import {dim2, rect} from "../core/math"
import {dataEquals} from "../core/data"
import {Color} from "../core/color"
import {Subject} from "../core/react"
import {ResourceLoader} from "../asset/loader"
import {makeRoundRectPath, strokeLinePath, strokeRoundRectSide} from "... |
<filename>chrome/browser/resources/settings/languages_page/languages.ts
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview 'settings-languages' handles Chrome's language and input
* m... |
<gh_stars>1-10
export type IFPLId = string; // UALPHA{2}DIGIT{8}
export type FlightDataset = 'flight' | 'flightPlan';
export type FlightIdentificationInput = { id: IFPLId } | { keys: FlightKeys };
export interface FlightIdentificationOutput {
id?: IFPLId;
keys?: FlightKeys;
}
export type AircraftICAOId = string; //... |
<filename>src/typescript/boxes/box_geometry.ts<gh_stars>1-10
import {
Dangle,
Direction,
Edge,
EdgeOperation,
Face,
faces,
Partition,
} from './datatypes';
import {
array_fuck_contains,
FuckDict,
Matrix2,
make_matrix2,
Point2,
} from '../datatypes';
let face_vertices ... |
<reponame>byWulf/gcs-frontend-browser
/**
* @author mrdoob / http://mrdoob.com/
*/
import {DefaultLoadingManager, Object3D, LoadingManager, Material as ThreeMaterial, FileLoader, Group, BufferAttribute, BufferGeometry, FlatShading, SmoothShading, MeshPhongMaterial, LineBasicMaterial, LineSegments, Mesh, MultiMaterial... |
//given the igc data and task returns speed, distance flown
//Also calculates data on individual thermals
import * as IGCParser from "igc-parser"
import IGCFlight, { ThermalInfo } from "./IGCFlight";
import IGCUtilities, { DistanceBearing } from "./IGCUtilities";
import {TaskModel, emptyTaskPoint } from "../models/T... |
<filename>src/webgpu/shader/execution/builtin/builtin.ts
import {
TypedArrayBufferView,
TypedArrayBufferViewConstructor,
} from '../../../../common/util/util.js';
import { GPUTest } from '../../../gpu_test.js';
import { NumberType, NumberRepr } from '../../../util/conversion.js';
export type Case<T extends NumberT... |
import { Component, OnInit } from '@angular/core';
import { bind } from '@angular/core/src/render3';
import { AngularFireDatabase } from 'angularfire2/database';
import { CommonService } from '../../services/common/common.service';
@Component({
selector: 'app-dustbin-analysis',
templateUrl: './dustbin-analysis.com... |
import { Annotations } from './annotations'
import { JayData } from './dts'
var containsField = (obj, field, cb) => {
// if (field in (obj || {})) {
// cb(obj[field])
// }
if (obj && field in obj && typeof obj[field] !== "undefined") {
cb(obj[field])
}
}
var parsebool = (b, d) => {
... |
<gh_stars>1-10
// Copyright 2012-2016, Google, 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 applicable la... |
/**
* Copyright (c) 2020-2021 August
*
* 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, ... |
/**
* @license
* Copyright 2018 Google LLC. 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
*
* Unless required by a... |
<filename>src/app/model/enemy/enemy.ts
import {
Cell,
TO_DO_COLOR,
DONE_COLOR,
TO_DO_COLOR_DARK,
DONE_COLOR_DARK
} from "./cell";
import { ShipDesign } from "../shipyard/shipDesign";
import { SearchJob } from "./searchJob";
import { IShipData, FIRST_DRONE } from "../data/shipsData";
import { Game } from "../g... |
<reponame>wtsnjp/MioGatto
// the MioGatto client
'use strict';
// --------------------------
// Type declaration
// --------------------------
interface Identifier {
hex: string;
var: string;
concept?: number;
}
interface Concept {
args_type: string[];
arity: number;
description: string;
color?: string... |
<reponame>JuroUhlar/kypo-angular
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
// import { D3Service, D3, Selection } from 'd3-ng2-service'; // <-- import the D3 Service, the type alias for the d3 variable and the Selection interface
import * as d3 from 'd3';
import { HostListener } fr... |
import React, { useEffect } from 'react'
import { useHistory, useParams } from 'react-router'
import { check, duration, kana } from '../../lib-ts'
import { events } from '../api'
import { Entry } from '../api/client_dict'
import * as dict from '../api/client_dict'
import * as entries from '../api/entries'
import List ... |
<filename>src/components/home-page.ts
import m from 'mithril';
import L, { GeoJSONOptions } from 'leaflet';
import 'leaflet.markercluster';
import 'leaflet.control.layers.tree/L.Control.Layers.Tree.css';
import 'leaflet.control.layers.tree';
import 'leaflet/dist/leaflet.css';
import 'leaflet.markercluster/dist/MarkerCl... |
<reponame>rafaiovlabs/rif-relay-server
import chalk from 'chalk';
import log from 'loglevel';
import ow from 'ow';
import { EventData } from 'web3-eth-contract';
import { PrefixedHexString } from 'ethereumjs-tx';
import { toBN } from 'web3-utils';
import {
IRelayVerifierInstance,
IRelayHubInstance,
IDeployV... |
const iotype = require('./iotype');
const utils = require('./utils');
const model = require('./model.ts');
//顯示狀態對應圖片與名稱
const DISPLAY_TYPE: {[key: string]: any} = {
1 : {0 : 'ic_led_green.png'},
2 : {1 : 'ic_led_red.png'},
3 : {2 : 'ic_led_orange.png'},
4 : {3 : 'ic_led_yellow.png'},
5 : {4 : 'ic_led_b... |
<reponame>fearthecowboy/vcpkg-ce<gh_stars>10-100
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* @license node-stream-zip | (c) 2020 Antelle | https://github.com/antelle/node-stream-zip/blob/master/LICENSE
* Portions copyright https://github.com/cthackers/adm-zip | https://raw.github... |
<gh_stars>0
import fs, { readFile } from "fs/promises";
import path from "path";
import { compile, Component, ComponentFromConfig, EventConfig, execute, GlobalState, kotlin, kotlinBundle, MATCH, ProgrammingLanguage, WRAP } from "polygraphic";
import svg2vectordrawable from "svg2vectordrawable";
import { AndroidConfig }... |
import { ElementRef, NgZone, Renderer2, EmbeddedViewRef } from '@angular/core';
import { ViewportRuler } from '@angular/cdk/scrolling';
import { DragDropRegistryService } from './drag-drop-registry.service';
import { DraggableRef, DragHelperTemplate } from './draggable-ref';
import { Subscription, Subject } from 'rxjs'... |
<filename>backend/src/util/maker/index.ts
import { createAlchemyWeb3 } from '@alch/alchemy-web3'
import axios from 'axios'
import BigNumber from 'bignumber.js'
import dayjs from 'dayjs'
import { Repository } from 'typeorm'
import Web3 from 'web3'
import { isEthTokenAddress } from '..'
import { makerConfig } from '../..... |
<reponame>C-ArnulfoGR/gafette
export type IconPrefix = "fas" | "fab" | "far" | "fal";
export interface IconLookup {
prefix: IconPrefix;
// IconName is defined in the code that will be generated at build time and bundled with this file.
iconName: IconName;
}
export interface IconDefinition extends IconLookup {
... |
import * as _ from "lodash";
import * as clc from "cli-color";
import * as ora from "ora";
import * as semver from "semver";
import * as marked from "marked";
const TerminalRenderer = require("marked-terminal");
marked.setOptions({
renderer: new TerminalRenderer(),
});
import { storageOrigin } from "../api";
import... |
/// <reference lib="webworker" />
import { SignalKStreamWorker, Alarm } from 'signalk-worker-angular';
import { SKVessel, SKAtoN, SKAircraft } from './modules/skresources/resource-classes';
import { Convert } from './lib/convert';
import { GeoUtils, Extent } from './lib/geoutils';
type AisIds = Array<string>;
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// tslint:disable:no-var-requires no-require-imports no-any
import { ChildProcess } from 'child_process';
import * as path from 'path';
// @ts-ignore
import * as pidusage from 'pidusage';
import { CancellationToken, Cancell... |
import BaseWidget = require('core/BaseWidget.class');
// import TileLayer = require('esri/layers/TileLayer');
import FeatureLayer = require('esri/layers/FeatureLayer');
// import WatchUtils = require("esri/core/watchUtils");
import QueryTask = require('esri/tasks/QueryTask');
import Query = require('esri/tasks/query')... |
<filename>ui/raidboss/data/06-ew/trial/endsinger.ts
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import Outputs from '../../../../../resources/outputs';
import { callOverlayHandler } from '../../../../../resources/overlay_plugin_api';
im... |
<gh_stars>0
/**
* app.ts
* This is the main class for the client side code.
*/
declare const io: any;
const DEBUG = false;
const autoJoin = false;
import {
WinCondition,
Executive_Action,
Role,
GameState,
Setup,
Position
} from "./Enums";
import * as Rand from "./Rand";
import { Policy, Pol... |
<filename>boxslider.ts
/**
* Created by <NAME> on 15.12.2015.
*/
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// libraries
import d3 = require('d3');
import $ = require('jquery');
import C = require('../caleydo_core/main');
import vis = requ... |
import {
$,
File,
isAndroid,
isEngine,
NodeInterface,
Plugin,
random,
READY_CARD_KEY,
getExtensionName,
SchemaInterface,
PluginOptions,
CARD_VALUE_KEY,
decodeCardValue,
encodeCardValue,
removeUnit,
CardType,
} from '@aomao/engine';
import { ImageOptions } from '.';
import ImageComponent, { ImageValue } ... |
<filename>client/src/pv.ts
// Previewer in webviewPanel script
const SVGNS = 'http://www.w3.org/2000/svg';
const RULER_SIZE = 12;
let _toolbar : HTMLDivElement;
let _host : HTMLDivElement;
let _pixelGrid : HTMLDivElement;
let groupPrefix : HTMLDivElement;
let groupBackground : HTMLDivElement;
let groupMode : HTMLDiv... |
/*
* Utils, part of the Simple Web Framework
*
* version: 1.4
* license: Apache 2.0
* author: <NAME>
* date: october 2021
*
*/
"use strict";
export {
importsHTML,
triggerClickById,
triggerClickBySelector,
setWidthByClassName,
addEventListenerById,
eltBySelAppend,
eltBySelText,
eltBySelAttr,
getCS... |
<gh_stars>0
/// <reference path="../../external.ts" />
/**
* Translations table
*/
class Translations {
/**
* Spanish translations
*/
private readonly es = {
//////////////////////////////////////
// Action chart / object tables
//////////////////////////////////////
... |
export const CV_8U: number;
export const CV_8S: number;
export const CV_16U: number;
export const CV_16S: number;
export const CV_32S: number;
export const CV_32F: number;
export const CV_64F: number;
export const CV_8UC1: number;
export const CV_8UC2: number;
export const CV_8UC3: number;
export const CV_8UC4: number;... |
export const CV_8U: number;
export const CV_8S: number;
export const CV_16U: number;
export const CV_16S: number;
export const CV_32S: number;
export const CV_32F: number;
export const CV_64F: number;
export const CV_8UC1: number;
export const CV_8UC2: number;
export const CV_8UC3: number;
export const CV_8UC... |
import * as SPTypes from "../../@types/sptypes";
/**
* Base Permission Types
*/
export const BasePermissionTypes: SPTypes.IBasePermissionTypes = {
EmptyMask: 0,
ViewListItems: 1,
AddListItems: 2,
EditListItems: 3,
DeleteListItems: 4,
ApproveItems: 5,
OpenItems: 6,
ViewVersions: 7,
... |
<reponame>gauravl612/Insights
/*******************************************************************************
* Copyright 2019 Cognizant Technology Solutions
*
* 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... |
<gh_stars>0
import { KsAppNode, KsTypeNode, KsFormNode, KsDatasourceNode,KsListNode,
KsLiteralNode, KsLoadNode, KsFieldNode, KsStateNode, KsCaseNode,
KsCaseBodyNode, KsEventNode, KsCreateNode, KsStateFieldSetNode,
KsStoreNode, KsPrintNode, KsSituationNode, KsRemoveNode, KsShowNode } from "./n... |
<gh_stars>1-10
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/ep... |
import * as chokidar from "chokidar"
const chalk = require('chalk');
import { readFileSync, copyFile, existsSync, mkdirSync, createReadStream, rmdirSync, readdirSync, lstatSync, unlinkSync, unlink, rmdir, statSync } from "fs";
import Uploader from "./Uploader";
import { ConfigInterface } from "./Config";
import { CliIn... |
<filename>src/games/dipole.ts
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-var-requires */
import { GameBase, IAPGameState, IClickResult, IIndividualState, IValidationResult } from "./_base";
import { APGamesInformation } from "../schemas/gameinfo";
import { APRenderRep... |
/* eslint-disable */
/* tslint:disable */
let mapObj = function(obj, cb) {
let ret = {}
let keys = Object.keys(obj)
for (let i = 0; i < keys.length; i++) {
let key = keys[i]
let res = cb(key, obj[key], obj)
ret[res[0]] = res[1]
}
return ret
}
let immutable = extend
let hasOwnProperty = Object... |
// This file is part of BINANA, released under the Apache 2.0 License. See
// LICENSE.md or go to https://opensource.org/licenses/Apache-2.0 for full
// details. Copyright 2021 <NAME>.
import * as Utils from "../../Utils";
import * as BINANAInterface from "../../BINANAInterface";
import * as Store from "../../Vue/Stor... |
<gh_stars>10-100
/**
* Copyright 2017 Google 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 applicable... |
import _ from 'lodash';
import React, { ReactElement } from 'react';
import PropTypes from 'react-peek/prop-types';
import { lucidClassNames } from '../../util/style-helpers';
import {
filterTypes,
omitProps,
StandardProps,
Overwrite,
} from '../../util/component-types';
import ArrowIcon from '../Icon/ArrowIcon/Arr... |
<reponame>naveen5229/refFri<gh_stars>0
import { Component, OnInit, Input, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
import { ApiService } from '../../services/api.service';
import { CommonService } from '../../services/common.service';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
impo... |
import { IconName, IconPrefix } from '@fortawesome/fontawesome-svg-core'
import { MemoizedFunction } from 'lodash'
import find from 'lodash/find'
import memoize from 'lodash/memoize'
export type shimEntry = [string, IconPrefix | null, IconName | null]
/**
* shims from https://github.com/FortAwesome/Font-Awesome/blob... |
import { CMAKE_CHANNEL, CMakeInternalVariants, CurrentItem, ICMakeService } from 'vs/kendryte/vs/workbench/cmake/common/type';
import { IInstantiationService, ServicesAccessor } from 'vs/platform/instantiation/common/instantiation';
import { ILifecycleService, LifecyclePhase } from 'vs/platform/lifecycle/common/lifecyc... |
/**
* 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, merge, publish, ... |
<filename>src/visualization/UnfoldOBJ.ts
import { closeSync, readFileSync, writeSync } from 'fs';
import { FileLoader, Vector2, Vector3 } from 'three';
import { writeDataToBuffer } from '../common/io';
import MutableTypedArray from '../common/MutableTypedArray';
import { dataSizeForType, getRuntimeParams } from '../com... |
import PeerNetwork from "./network/peer_network";
import { TextLabel } from "./gui/textLabel";
import Arena from "./entities/arena";
import * as Const from "./constants";
import _ from "lodash";
import Player from "./entities/player";
import Spear from "./entities/spear";
import Monster from "./entities/monster";
impor... |
<filename>src/dev.pakl.ttvst/main/Twitch/APIHelix.ts
import got, { Method, Response } from 'got';
import url from 'url';
import * as T from './APIHelixTypes';
import IpcEventEmitter from '../Util/IpcEventEmitter';
import winston from 'winston';
declare var logger: winston.Logger;
export class UnauthroizedError extend... |
<reponame>joshpoll/penrose
import {
appendStmt,
applyBind,
applyConstructor,
applyFunction,
applyPredicate,
applyTypeDecl,
argMatches,
ArgStmtDecl,
autoLabelStmt,
domainToSubType,
matchSignatures,
nullaryTypeCons,
replaceStmt,
swapArgs,
} from "analysis/SubstanceAnalysis";
import { prettyStm... |
/* eslint-disable max-params */
/* eslint-disable no-case-declarations */
import {
Button,
Divider,
Dropdown,
Icon,
Menu,
Popconfirm,
Spin,
Switch,
Table,
Tag,
Tooltip,
} from 'antd'
import { TableProps } from 'antd/es/table'
import classnames from 'classnames'
import _, {
cloneDeep,
get,
is... |
<filename>bin/generator/typescript.ts
import { basename, dirname, join, relative } from 'path';
import * as ts from 'typescript';
import * as wordWrap from 'word-wrap';
import fsWrite from '@bin/fs/write';
import Generator from '@bin/Generator';
import IData from '@bin/IData';
import IDeclaration from '@bin/IDeclarat... |
import {ABILITIES_BY_ID} from './data/abilities';
import {ALIASES} from './data/aliases';
import {ITEMS_BY_ID} from './data/items';
import {MoveInfo, MOVES_BY_ID} from './data/moves';
import {NATURES, NATURES_BY_ID} from './data/natures';
import {Gender, POKEDEX_BY_ID} from './data/pokedex';
import {SETS} from './data/... |
import {remote, shell, webFrame} from 'electron';
import defaultMenu from "electron-default-menu";
import * as React from 'react';
import fs from "fs";
import fileURL from "file-url";
import {SL, ST, TOT} from "../../data/const";
import {getCachePath, getSourceType, urlToPath} from '../../data/utils';
import Config fr... |
<gh_stars>0
import { UserInputError, AuthenticationError } from 'apollo-server-express';
import { ObjectID } from 'mongodb';
import {
UserType,
ShirtSize,
LoginProvider,
ApplicationStatus,
UserDbInterface,
UserResolvers,
Resolvers,
HackerDbObject,
SponsorStatus,
SponsorDbObject,
TierDbObject,
CompanyDbObjec... |
<filename>frontend/src/app/modules/mips/components/detail-content/detail-content.component.ts<gh_stars>0
import {
AfterViewInit,
Component,
ElementRef,
Input,
OnChanges,
OnInit,
TemplateRef,
ViewChild,
ViewContainerRef,
EventEmitter,
Output,
ComponentFactoryResolver,
Injector,
} from '@angular... |
// IMPORTANT: this is a plugin which requires jQuery for initialisation and data manipulation
import { Component, OnInit, OnChanges, AfterViewInit, SimpleChanges } from "@angular/core";
import { FormControl, FormGroupDirective, NgForm, Validators, FormGroup } from "@angular/forms";
import { ErrorStateMatcher } from "@... |
<reponame>AliBasicCoder/convert-pro
type unitDef = [string, string, string, ...number[]];
type OptionsBase = {
base: number;
lowerCase: boolean;
shortcut: boolean;
accuracy: number;
};
type OptionsWithSt = OptionsBase & { stringify: true };
type OptionsWithoutSt = OptionsBase & { stringify?: false };
type Optio... |
<filename>shared/AppInsightsCore/src/JavaScriptSDK/BaseCore.ts
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
"use strict";
import { objCreateFn } from "@microsoft/applicationinsights-shims";
import dynamicProto from "@microsoft/dynamicproto-js";
import { IAppInsightsCo... |
<reponame>gisaia/ARLAS-web-contributors<filename>src/contributors/ResultListContributor.ts<gh_stars>1-10
/*
* Licensed to Gisaïa under one or more contributor
* license agreements. See the NOTICE.txt file distributed with
* this work for additional information regarding copyright
* ownership. Gisaïa licenses this f... |
import {Component, OnInit, ViewChild, OnDestroy,AfterViewInit} from '@angular/core';
import {FormGroup, FormBuilder} from "@angular/forms";
import swal from 'sweetalert';
import { Router, NavigationEnd } from '@angular/router';
import {CommonapiService} from '../../dashboard/_services/commonapi.service';
import { Commo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.