text
stringlengths
3.08k
15.5k
<filename>api/apps/geoprocessing/src/export/pieces-exporters/planning-area-gadm.piece-exporter.spec.ts import { ClonePiece, ExportJobInput } from '@marxan/cloning'; import { CloningFilesRepository, GetFileError, SaveFileError, storageNotReachable, } from '@marxan/cloning-files-repository'; import { ResourceKind...
import { action, observable, toJS } from 'mobx'; import { Status, SwipeDirection } from './../constants'; import { IImageData } from './../services'; interface IAuthor { name: string; url: string; } interface IImageProvider { get: () => Promise<IImageData>; } /** * PuzzleStore that contains the actual puzzle ...
/** * @license * Copyright 2020 Google 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>uncharted-aske/grafer<gh_stars>1-10 import {PicoGL} from 'picogl'; import {GraferContext} from './GraferContext'; import {vec2, vec4} from 'gl-matrix'; import {RenderMode, RenderUniforms} from './Renderable'; import {Camera, CameraOptions} from './Camera'; import {Graph} from '../graph/Graph'; import {MouseHa...
import { withDatabase } from '@nozbe/watermelondb/DatabaseProvider'; import withObservables from '@nozbe/with-observables'; import React, { useContext, useMemo, useState } from 'react'; import { ScrollView, StyleSheet } from 'react-native'; import { SwitchSelector } from '../../../components/SwitchSelector/SwitchSelect...
import { CommandIgmBulkSendMsg, CommandOpenSession, CommandPlayerInfo, CommandPoll, GameCommands, CommandGetServerInfoResponse, CommandGetServerInfo, CommandPlayerInfoResponse, PlayerNameDisplay, CommandCheckPlayerExist, PlayerNameId, } from '@cncta/clientlib'; import fetch f...
<reponame>maziac/binary-file-viewer import * as vscode from 'vscode'; import {readFileSync} from 'fs'; import * as path from 'path'; import {PackageInfo} from './packageinfo'; import {FunctionDocumentation} from './functiondocs'; const showdown = require('showdown'); // Showdown 1.9.1 has moderate vulnerabilit dependen...
import { Player } from './player' export enum UnitType { none, amphibian, archer, baby_dragon, battleship, boat, catapult, crab, defender, dragon_egg, fire_dragon, giant, knight, mind_bender, navalon, polytaur, rider, ship, swordsman, tridention, warrior } const unitNameMap =...
import React, { useState, useEffect, useCallback } from 'react'; import { Entry } from 'contentful'; import { useForm, Form, useCMS, WatchableFormValue, ActionButton } from 'tinacms'; import { createFieldConfigFromContentType, createContentfulOperationsForEntries, Operation } from 'tinacms-contentful'; import { useCont...
<reponame>pez-globo/pufferfish-software import { createSelector } from 'reselect'; import DECIMAL_RADIX from '../../modules/app/AppConstants'; import { // Alarm Limits Range, AlarmLimits, AlarmLimitsRequest, // Log Events LogEventCode, LogEvent, ExpectedLogEvent, // Alarm Muting AlarmMute, AlarmMu...
import { transformAndValidate } from "class-transformer-validator"; import config from "config"; import "dotenv/config"; import { GoogleSpreadsheetRow, GoogleSpreadsheetWorksheet } from "google-spreadsheet"; import moment from "moment"; import "reflect-metadata"; import { Logger } from "../common/logger"; import Utils ...
<filename>editor/src/components/navigator/external-resources/google-fonts-utils.ts import { NodeData } from 'react-vtree/dist/es/Tree' import { GOOGLE_WEB_FONTS_KEY } from '../../../common/env-vars' import { Either, left, right } from '../../../core/shared/either' import { CSSFontStyle, CSSFontWeight } from '../../insp...
<reponame>Toulouse-Exia-A4/AtlantisMobileApplication-Jest import { Injectable, Inject } from '@angular/core'; import { HttpClient, HttpErrorResponse } from '@angular/common/http'; import { LoadingController, DateTime } from 'ionic-angular'; import { Storage } from '@ionic/storage'; import { Observable } from 'rxjs/Obse...
<gh_stars>0 // APP TEXT export const APP_TITLE = 'Reveal'; export const FOOTER_TEXT = `${new Date().getFullYear()} Reveal`; export const UNEXPECTED_ERROR_STRING = 'Unexpected error has occured.'; // PAGES TITLE export const PAGE_TITLE_HOME = 'Home'; export const PAGE_TITLE_PLANS = 'Plans'; export const PAGE_TITLE_ASSI...
import { autoinject } from 'aurelia-framework'; import { HttpClient } from 'aurelia-http-client'; import { IApplicationSettings, ApplicationSettings } from 'core/Settings'; import * as Enums from 'core/Enums'; import { Utils } from 'core/helpers/Utils'; import { OAuthService, OpenIdService, DataProvider } from 'core/S...
<filename>bin-src/git/getCommitAndBranch.ts<gh_stars>0 import envCi from 'env-ci'; import forksUnsupported from '../ui/messages/errors/forksUnsupported'; import gitOneCommit from '../ui/messages/errors/gitOneCommit'; import missingGitHubInfo from '../ui/messages/errors/missingGitHubInfo'; import missingTravisInfo from...
<filename>mechanics/terrain_generation/test8/Sphere/CubeTexture.ts import { Vector2, Vector3 } from "babylonjs"; import { mapValue } from "../../test7/lib/Math"; import { v2String, v3String } from "../lib/VectorMath"; function normalToGrid(normal: Vector3): Vector2 { if (normal.x == 1) { return new Vector2(0, 1...
import type { LongLivingReactionCollector } from './external/LongLivingReactionCollector'; import { SapphireClient, SapphireClientOptions, LogLevel } from '@sapphire/framework'; import { Intents, PermissionResolvable, Guild, Message, User } from 'discord.js'; import type { LanguageHelpDisplayOptions } from './LanguageH...
<reponame>themafia98/diplom-services<gh_stars>0 import { Model, Document, Types, isValidObjectId } from 'mongoose'; import { ActionParams, Action, QueryParams, Parser } from '../../../Utils/Interfaces/Interfaces.global'; import { ParserData } from '../../../Utils/Types/types.global'; import { getModelByName } from '../...
<filename>packages/vuerd/src/core/generator/code/JPA.ts<gh_stars>100-1000 import { getData } from '@/core/helper'; import { PrimitiveTypeMap } from '@/core/sql/dataType'; import { primaryKey, primaryKeyColumns } from '@/core/sql/ddl/helper'; import { orderByNameASC } from '@/engine/store/helper/table.helper'; import { ...
#!/usr/bin/env node import program from 'commander' import mustache from 'mustache' import fs from 'fs' import path from 'path' import yaml from 'js-yaml' import MarkdownIt from 'markdown-it' import markdownItAttrs from 'markdown-it-attrs' import markdownItHighlight from 'markdown-it-highlightjs' import rmdir from ...
import React from 'react' import { RouteProp, useNavigation, useRoute } from '@react-navigation/native' import { useTranslation } from 'react-i18next' import { isString } from 'lodash' import { useHotspotBle, HotspotErrorCode, WalletLink, Location, useOnboarding, } from '@helium/react-native-sdk' import { Act...
<reponame>toldsoftware/platform // Vanilla Ajax Requests // From: http://stackoverflow.com/a/18078705/567524 export interface XHR { setRequestHeader(header: string, value: string): void; getResponseHeader(header: string): string; getAllResponseHeaders(): string; } export interface AjaxSettings { url: ...
import { Component, OnInit } from '@angular/core'; import { ApiService } from '../../apis.service'; import { Constants } from '../../constants'; import { Subject, Subscription } from 'rxjs'; import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; const moment = require('moment'); @Component({ selector: ...
<filename>src/tools/buildUnicode.ts import * as UnicodeProperty from '../UnicodeProperty'; import * as fs from 'fs'; import {Charset, CharRange, Maybe, flat, bsearch} from '../Kit'; export const DEFAULT_UNICODE_PKG = 'unicode-12.0.0'; if (require.main === module) { console.log('Build: src/Unicode.ts'); buildUnico...
/* assemblyscript cubehash implementation public domain. written in 2021 by parabirb */ /* you might think that it's a bad idea for me to just disable checking entirely. it probably is. HOWEVER, webstorm won't stop being a bitch so this gets it to shut up */ // @ts-nocheck // rotate left function ROTL(...
// Libraries import axios, { AxiosResponse } from 'axios'; import bodyParser from 'body-parser'; import express from 'express'; import faker from 'faker'; import { createServer } from 'http'; import { server as WebSocketServer } from 'websocket'; // Test Utils import { setupHubfulInstance, wait } from '../utils'; // ...
import { useCallback, useEffect, useState } from 'react'; import { Box, Button, makeStyles, Typography } from '@material-ui/core'; import { useTranslate, T } from '@tolgee/react'; import { FastField, FieldArray, FieldProps, useFormikContext } from 'formik'; import { components } from 'tg.service/apiSchema.generated'; ...
import { useState, useEffect } from "react"; import { compact, isEqualWith } from "lodash"; import { BigNumber } from "@ethersproject/bignumber"; import { Contract } from "@ethersproject/contracts"; import { Token, Price, CurrencyAmount } from "@uniswap/sdk-core"; import { Position, Pool, tickToPrice } from "@uniswap/v...
<reponame>intchous/AVA import { Solve } from 'javascript-lp-solver'; import { Action, Rule } from '../interfaces'; export interface OptimizedActions { updateActions: Action[][]; optimizeActions: Action[]; } /** # How the Solver Works Since there is not any js LP library that as powerful as pulp, we use the follo...
import React, { useEffect, useState } from 'react' import ReactDOM from 'react-dom' import { AppBar, FormControlLabel, ListItem, Menu, ListItemButton, MenuItem, Typography, TextField, Divider, Box, Toolbar, Link, Checkbox, ThemeProvider, createTheme, IconButton } from '@mui/material' import { makeStyles } from '@mui/st...
import * as db from './db' import type { EventRequest, SessionRequest } from './requests' import { MONTHLY_PLAN_ID, ANNUAL_PLAN_ID } from '../common/settings' import * as stripe from './stripe' import type { UserInfo } from '../common/types' import { absurl } from '../common/utils' export async function subscribeToPl...
import { AddExtrusionOptions, AddGeoJsonClusteredOptions, AddPolygonOptions, AddPolylineOptions, AddSourceOptions, AnimateCameraOptions, DeleteOfflineRegionOptions, DownloadOfflineRegionOptions, Feature, LatLng, ListOfflineRegionsOptions, MapboxApi, MapboxCommon, MapboxMarker, MapboxViewBase, MapStyle, OfflineRegion, Q...
<filename>src/ts/geometry.ts import * as M from 'gl-matrix'; import { vec3 } from 'gl-matrix'; //import { Mesh } from './mesh'; // PRIMITIVE GENERATORS // ==================== export function generate_cube_primitive():any { let cube_p:any = { vert_count: 24, elem_count: 36, vertices: [], indices: [], }; let...
<reponame>nu25/hoosky-bot import * as Discord from '../../Discord'; import Trigger from '../../Trigger'; import { authorAvatarUrl, messageLink } from '../../cdn'; import { transformAttachmentsToEmbeds } from '../MESSAGE_CREATE/_utils'; import { bold, EN_SPACE, hyperlink } from '../../format'; import { formatEmoji } fro...
// Copyright (c) 2021, NVIDIA CORPORATION. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
import MemberVariable from "../../../model/dataTypes/MemberVariable"; import Handlebars from "../registerPartials"; import DataType from "../../../model/dataTypes/DataType"; import EntityMetadata from "../../../model/dataTypes/EntityMetadata"; import EntityImports from "../../../model/dataTypes/EntityImports"; import P...
<gh_stars>10-100 import ts=require("./typesystem") import tsInterfaces=require("./typesystem-interfaces") import nt=require("./nominal-types") import parse=require("./parse") import restrictions = require("./restrictions"); import reg = require("./facetRegistry"); import metainfo = require("./metainfo"); import _ = req...
import { log } from '@guardian/libs'; import { setCurrentFramework } from './getCurrentFramework'; import { isGuardianDomain } from './lib/domain'; import { mark } from './lib/mark'; import type { Property } from './lib/property'; import { ACCOUNT_ID, ENDPOINT } from './lib/sourcepointConfig'; import { invokeCallbacks ...
<filename>src/core/useAsyncQuery.ts<gh_stars>100-1000 import type { Ref } from 'vue'; import { computed, inject, onUnmounted, reactive, ref, watch } from 'vue'; import { getGlobalOptions, GLOBAL_OPTIONS_PROVIDE_KEY } from './config'; import createQuery from './createQuery'; import type { BaseOptions, BaseResult, ...
<filename>src/cli/commands/oe-devices.ts import { Command } from "commander"; import { log } from "console"; import * as fs from "fs"; import { retry } from "../.."; import { DeviceManagementModels, MindSphereSdk } from "../../api/sdk"; import { throwError } from "../../api/utils"; import { adjustColor, errorLo...
/* * 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 { EuiButtonIcon, EuiFormRow, EuiSuperSelect, EuiSpacer, EuiF...
<gh_stars>0 import { Component, OnInit } from '@angular/core'; import { routerTransition } from '../../router.animations'; import { AngularFirestore, AngularFirestoreCollection, AngularFirestoreDocument, AngularFirestoreModule } from 'angularfire2/firestore'; import { Observable } from 'rxjs/Observable'; imp...
export enum BarcodeDirection { Forward = 1, Reverse = -1 }; export type BarcodeFormat = string; export type BarcodeReaderType = string; export type BarcodeReaderDeclaration = BarcodeReaderType | { format: BarcodeReaderType; config: BarcodeReaderConfig; }; export interface BarcodeReaderConfig { normalize...
<filename>schematics/ng-add/setup-project/theming.ts import { logging, normalize } from '@angular-devkit/core'; import { ProjectDefinition } from '@angular-devkit/core/src/workspace'; import { chain, noop, Rule, SchematicContext, SchematicsException, Tree } from '@angular-devkit/schematics'; import { getProjectFromWo...
<gh_stars>0 import type { Message } from 'esbuild'; import * as realFS from 'fs'; import { fs as memfs } from 'memfs'; import { dirname } from 'path'; import ts from 'typescript'; import { ufs } from 'unionfs'; import type { MessagePort } from 'worker_threads'; import { isMainThread, parentPort, workerData } from 'work...
import React, { useState } from "react"; import { useHistory } from "react-router-dom"; import { useIdentityGroupManagementContext } from "../../../common/context/IdentityGroupManagementContext"; import { createIdentityGroup } from "../../../services/backend"; import { IdentityGroupCreateResponse, SideEffectState } fro...
<gh_stars>10-100 import * as Promise from 'bluebird'; import * as R from 'ramda'; import * as Joi from 'joi'; import matrices from '../models/matrices/index'; import { newTemplate } from '../models/matrices/template'; import { INVALID_LEVEL_OR_CATEGORY, TEMPLATE_NOT_FOUND, INVALID_TEMPLATE_UPDATE, DUPLICATE_TE...
import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { Component, Input, Output, EventEmitter } from '@angular/core'; import { ActivatedRoute, Params } from '@angular/router'; import { Observable, Subscription } from 'rxjs'; import 'rxjs/add/observable/of'; import { FormsModule } from '@angu...
import { GluegunCommand } from 'gluegun'; import { ExtendedGluegunToolbox } from '../../interfaces/extended-gluegun-toolbox'; /** * Create a new server */ const NewCommand: GluegunCommand = { name: 'create', alias: ['c'], description: 'Creates a new angular (fullstack) workspace', hidden: false, run: async...
import {groupBy, isBlank} from '../utils'; // FIXME: point this to the correct type afterwards type ItemPlaceholder = any; type ActorPlaceholder = any; interface Coins { pp: number; gp: number; sp: number; cp: number; } interface SoldItemData { treasureIds: string[]; coins: Coins; } function...
import { handlize, escapeString } from './../string/'; import { getAssetUrl, getImageUrl } from './../url/'; export const SHOPIFY_VALID_IMG_SIZE_NAMES = <const>[ 'master', 'large', 'medium', 'small' ]; export type ShopifyImageSizes = ReturnType<typeof SHOPIFY_VALID_IMG_SIZE_NAMES.find>; export type ShopifyImageSize...
import * as React from "react"; export interface Props { timeout: number; onCompleted?: () => void; test: (testEnvironment: MarathonEnvironment) => void; children: (renderer: MarathonRenderer) => React.ReactNode; } export interface State { // The id of the current running test, incrementing every time a new...
<gh_stars>10-100 // MIT License // // Copyright (c) 2016-2018 GenesisKernel // // 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 right...
<reponame>concord-consortium/tectonic-explorer /* * Copyright (c) 2016 <NAME>. All Rights Reserved. * * 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 witho...
<reponame>Rumbleship/observability /** * THIS VERSION IS DEPRECATED. USE `RumbleshipBeeline` and its associated Factory instead! */ import { HoneycombSpan } from './honeycomb.interfaces'; export class HoneycombBeelineFactory { private static globalBeeline: any; private static ServiceRequestIdBeelineMap = new Ma...
<gh_stars>0 import { createHash } from 'crypto'; import { ensureDirSync, pathExists, readdir, rmdir } from 'fs-extra'; import type { LockOptions, UnlockOptions } from 'proper-lockfile'; import { lock, unlock } from 'proper-lockfile'; import type { ResourceIdentifier } from '../../http/representation/ResourceIdentifier'...
<reponame>hrueger/AGM-Tools import { Request, Response } from "express"; import { getRepository, getTreeRepository } from "typeorm"; import { File } from "../entity/File"; import { Project } from "../entity/Project"; const projectItemGuidStart = "f069b07a6ef440cf8254"; const normalItemGuidStart = "f069b07b6ef440cf8254...
<reponame>freshbooks/api-nodejs-sdk import axios from 'axios' import MockAdapter from 'axios-mock-adapter' import APIClient, { Options } from '../src/APIClient' import { Tasks } from '../src/models' import { SearchQueryBuilder } from '../src/models/builders/SearchQueryBuilder' import { joinQueries } from '../src/models...
#! /usr/bin/env node import * as fs from "fs" import * as path from "path" import * as ts from "typescript" type IGenduxModelConfig = { path: string singleton: boolean } type IGenduxActionConfig = { path: string } type IGenduxConfig = { models: { [K: string]: IGenduxModelConfig } actions: { [K: s...
import nodePath from 'path'; import fs from 'fs'; import {promisify} from 'util'; import SongHashData from './SongHashData'; import store from '../store/store'; import ISongLocal from '../lib/data/ISongLocal'; import IDifficulties from '../lib/data/IDifficulties'; import IMetadata from '../lib/data/IMetadata'; import S...
import * as d3 from 'd3'; import { readFileSync } from 'fs'; import * as fs from 'fs'; // Types of input time series. // Do not change already assigned numbers. export enum TimeSeriesKind { TEMPERATURE = 1, PRESSURE = 2, BUTTON = 3, GYROSCOPE = 4, ACCELEROMETER = 5, MAGNETOMETER = 6, VIDEO ...
<reponame>QPC-database/jacdac-ts import * as U from "./utils" import Packet from "./packet" import { REPORT_RECEIVE, SRV_MODEL_RUNNER } from "./constants" import { JDService } from "./service" import { ModelRunnerCmd, ModelRunnerReg } from "./constants" import { bufferToArray, NumberFormat } from "./buffer" import { Ou...
import React, { Fragment } from "react"; import { Link } from "react-router-dom"; import { Paper, Typography, Button, Grid, Divider, Chip } from "@material-ui/core"; import { ArrowLeft, ArrowRight, Done as DoneIcon, HowToVote as VoteIcon, NotInterested as DisapproveIcon } from "@material-ui/icons"...
import {PlayerInfo} from "./PlayerInfo" import {VehicleInfo} from "./VehicleInfo" type EntityType = "player" | "vehicle" | "object" | "pickup" | "blip"; interface Mp { players: PlayerMpPool; vehicles: VehicleMpPool; objects: ObjectMpPool; pickups: PickupMpPool; blips: BlipMpPool; eve...
import { ClassificationCriterion, RegressionCriterion, ImpurityMeasure } from './Criterion' import shuffle from 'lodash/shuffle' import { int } from '../randUtils' import { Serialize } from '../simpleSerializer' export interface Split { feature: int threshold: int pos: int impurityLeft: number impurity...
/* eslint-disable @typescript-eslint/no-non-null-asserted-optional-chain */ /* eslint-disable @typescript-eslint/no-non-null-assertion */ import React from 'react' import { BrowserQRCodeReader, Result } from '@zxing/library/esm' import { TFunction } from 'react-i18next' import styled from 'styled-components' import { H...
import React, { useRef, useEffect, useState } from 'react'; import './SignUp.css'; import JqxValidator from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxvalidator'; import JqxForm from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxform'; import { navigate } from 'hookrouter'; import { jqx } from 'jqwidgets-scripts/jqwidgets-r...
<filename>server/routes/consent.route.ts import {Router, Response} from "express"; import Person, {IPerson} from "../models/person.model"; import {ErrorChecker} from "../utils/errorchecker/errorchecker"; import {AuthenticationHelper} from "../utils/authentication/authenticationhelper"; import Consent, {IConsent} from "...
import { Button, ButtonGroup, Card, CircularProgress, Grid, InputAdornment, TextField, TextFieldProps, Typography, useTheme, } from '@material-ui/core'; import { DonationFormField, IDonationFormData, PaymentStatus } from '../common/types'; import { IAppState } from '../store/app'; import { SetDonati...
<reponame>powercord-org/powercord-backend /* * Copyright (c) 2018-2021 aetheryx & <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 limitati...
import Serie from './Serie'; import createSeries from './Serie/createSeries'; import { IteratorCallback, IteratorPosition, Sampler, Dictionary, } from './types'; function _preload(track: ClosedCircuitBuffer, data: any) { const sampleTime = track.sampler.getSampleTime(data[track.sampler.timeKey]); ...
/** * Copyright (c) 2019 <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, merge, publish, di...
import { useEffect, useRef } from 'react'; import type { FormEvent } from 'react'; import { useState } from 'react'; import Button from 'react-bootstrap/Button'; import Col from 'react-bootstrap/Col'; import Dropdown from 'react-bootstrap/Dropdown'; import FormGroup from 'react-bootstrap/FormGroup'; import FormLabel fr...
import { modelDir } from '@/config/index.ts'; import { BaseDepDataStruct, ApiStruct, DefinitionsItemStruct, RequestParamStruct, SchemaTypeStruct, SwaggerStruct, ResponseBodyStruct, } from '@/inner/swagger.ts'; import { createInterface, getStrTypeBySwaggerType, getTsTypeBySwaggerType } from '@/utils/astHelp...
import { assert } from "chai"; import { Option, Some, None, Result, Ok, Err, match, Fn, _, } from "../../../src"; export default function matchDocs() { it("Mapped", mappedMatchBasic); it("Nested Mapped", mappedMatchNested); it("Combined", combinedMatch); it("Chained Primitive", c...
<reponame>jware-solutions/gura-js-parser<filename>tests/exception-report/exception-report.test.ts import { GuraError } from '../../src/errors' import { DuplicatedImportError, DuplicatedKeyError, DuplicatedVariableError, InvalidIndentationError, ParseError, VariableNotDefinedError } from '../../src/index' import { getFi...
<reponame>Rijul5/TURN-LSP /******************************************************************************** * Copyright (C) 2018 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.o...
import * as assert from 'assert'; import * as path from 'path'; import * as http from 'http'; import * as fs from 'fs'; import { promisify } from 'util'; import { run as microRun, json, send } from 'micro'; import * as debugAPI from 'debug'; import * as serveStatic from 'serve-static'; import * as Joi from 'joi'; typ...
import React, { useState, useEffect, useCallback, useMemo, } from 'react'; import { useTranslation } from 'react-i18next'; import { Modal, ModalHeader, ModalBody, ModalFooter, } from 'reactstrap'; import { debounce } from 'throttle-debounce'; import { toastError } from '~/client/util/apiNotification'; import { ap...
<filename>src/extension.ts 'use strict'; import * as fs from 'fs'; import * as path from 'path'; import * as childProcess from 'child_process'; import * as vscode from 'vscode'; interface VSWhere { installationPath: string; displayName: string; catalog: { productDisplayVersion: string; pro...
<filename>src/classes/creep_manager.ts import * as Finder from "../utils/finder"; import * as Config from "../config"; import * as Utils from "../utils/utils"; // import * as Harvester from "./creeps/harvester"; import { ICreep, ACTION } from "./creeps/ICreep"; // import * as Upgrader from "./creeps/upgrader"; import ...
import { getPlatformId, getNativeAssetAddress } from "./utils"; import { NativeAssetAddress, Network, Token } from "./types"; import { BigNumber } from "bignumber.js"; import { COINGECKO_BASEURL, COINGECKO_MAX_TOKENS_PER_PAGE, COINGECKO_MAX_TPS } from "./constants"; import fetch from 'isomorphic-fetch'; const TOKEN_UP...
import { CliPrompterInterface } from "lib/cli"; import { Token, AnalyzeEnvSourceCode } from "lib/env/lexer"; import { ParsedEnvDocument, ParseEnvTokens, VariableDeclarationNode, RawLiteralNode, QuotedLiteralNode, NodeType, IdentifierNode, QuoteType, NewlineNode, } from "lib/env/parser"; import { Rende...
import React, { useEffect, useRef, useState } from 'react' import { useMutation, gql } from '@apollo/client' import { Box, Input, Text, ModalBase, Button, ToastContainer, toast, Stack, } from '@island.is/island-ui/core' import { useLocale } from '@island.is/localization' import EditForm from '../EditFo...
<filename>src/api.ts import type { Gallery, Galleries, Image, ImageName, ImageType, ImageSuffix } from './type' import type { Duplex } from 'stream' import { httpsOverHttp, httpOverHttp } from 'tunnel' import got from 'got' const debug = require('debug')('lgou2w:nhentai-api') const DEFAULT_UA = 'Mozilla/5.0 (Windows N...
/* types */ import _ws from "ws"; import _zlib from "mz/zlib"; import _erlpack from "erlpack"; /* end types */ import {EventEmitter} from "events"; import * as constants from "../constants"; import * as events from "./events"; import * as payloads from "./payloads"; import * as log from "../log"; import {requireOption...
<gh_stars>10-100 import { IMOSAck, MosConnection, MosDevice, IMOSROAck, IProfiles, MosTime } from '../' import { SocketMock } from '../__mocks__/socket' import { ServerMock } from '../__mocks__/server' // @ts-ignore imports are unused import { Socket, Server } from 'net' import * as iconv from 'iconv-lite' icon...
<filename>src/utils/touch/filter.ts import { Touches, TouchHistory, TOUCH_TYPE_END } from './TouchEventManager'; export function isSingleFinger(touches: Touches) { return touches.size === 1; } export function isTwoFingers(touches: Touches) { return touches.size === 2; } export function isMultipleFingers(touches:...
<reponame>abdo643-HULK/LA-MEDITERRANEE import { writable } from 'svelte/store'; // import type { Metatags, MicrosoftPWA } from './metatag'; const title = 'La-Mediterranee Shop'; const description = 'We are a volunteer global network of Svelte fans that strive to promote Svelte and its ecosystem. As a service to the ...
import { Component, Input, NgModule, OnInit } from '@angular/core'; // Components import { IonicModule } from '@ionic/angular'; import { IconModule } from '../../icon/icon.component'; import { FhemComponentModule } from '../fhem-component.module'; import { PickerComponentModule } from '../../picker/picker.component'; ...
import * as React from 'react'; import { useEffect, useState } from 'react'; import { Button, ButtonVariant, Divider, DividerVariant, Level, LevelItem, PageSection, PageSectionVariants, Spinner, Text, TextContent, TextList, TextListItem, TextListItemVariants, TextListVariants, TextVarian...
<filename>src/commands/docs/mdn.ts import { SlashCommandBuilder } from "@discordjs/builders"; import { deleteButton } from "../../utils/CommandUtils"; import { MessageActionRow, MessageEmbed, MessageSelectMenu } from "discord.js"; import { gunzipSync } from "zlib"; import { XMLParser } from "fast-xml-parser"; import { ...
<reponame>CriticalPathTraining/PBD365 import "core-js/stable"; import "./../style/visual.less"; import * as $ from 'jquery'; import powerbi from "powerbi-visuals-api"; import VisualConstructorOptions = powerbi.extensibility.visual.VisualConstructorOptions; import VisualUpdateOptions = powerbi.extensibility.vis...
import React, { useEffect, useState } from "react"; import RL, { Player, RawTeam, StatfeedEvent } from "./lhm-rl-module"; import Layout from "./HUD/Layout"; import api, { port, isDev } from "./api/api"; import { loadAvatarURL } from "./api/avatars"; import ActionManager, { ConfigManager } from "./api/actionManager"; im...
/* * rock3d.js: A 3D game engine for making retro FPS games * Copyright (C) 2018 <NAME> <<EMAIL>> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to a...
/* * Copyright 2020. F5 Networks, Inc. See End User License Agreement ("EULA") for * license terms. Notwithstanding anything to the contrary in the EULA, Licensee * may copy and modify this software product for its internal business purposes. * Further, Licensee may upload, publish and distribute the modified versi...
import * as chalk from 'chalk'; import { startCase } from 'lodash'; import CliTable3 = require('cli-table3'); import CheckupError from '../errors/checkup-error'; type Segment = { title: string; count: number; color?: chalk.Chalk }; export default abstract class BaseOutputWriter { abstract write(content: string): vo...
import { readFileSync } from 'fs'; import marked from 'marked'; import twemoji from 'twemoji'; import sanitizeHtml from './sanitizer'; import { ParsedRequest } from './types'; const twOptions = { folder: 'svg', ext: '.svg' }; const emojify = (text: string) => twemoji.parse(text, twOptions); const barlowVietnamese = r...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {useEffect, useState} from 'react'; import {useDispatch, useStore, useSelector} from 'react-redux'; import {getStandardAnalytics} from 'mattermost-redux/actions/admin'; import {getCloudSubscri...