text
stringlengths
9.82k
47.8k
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ /* * Copyright 2020 Amaz...
<filename>public-ui/src/app/data-browser/services/tooltip.service.ts import { Injectable } from '@angular/core'; export interface Tooltip { title: string; texts: Array<string>; } // Const for tooltip component export const tooltips = { 'Search Across Data Types': { texts: ['Conduct a search acros...
import PromiseProvider = require('./promise_provider'); import os = require('os'); import crypto = require('crypto'); import { MongoError } from './error'; import WriteConcern = require('./write_concern'); const MAX_JS_INT = Number.MAX_SAFE_INTEGER + 1; // Set simple property function getSingleProperty(obj: any, name...
/* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the ""Software""), to deal * in the Software without restricti...
<reponame>safeonlineworld/-types-sow-web-ui<gh_stars>0 // @ts-check // Type definitions for sow-web-ui // Project: https://safeonline.world/ // Definitions by: <NAME> <https://github.com/rajibchy> /// <reference types="jquery"/> /// <reference types="node"/> import * as JQuery from 'jquery'; // import { Dct } ...
import fs = require("fs"); import http = require("http"); import os = require("os"); import path = require("path"); import zlib = require("zlib"); import child_process = require("child_process"); import AuthorizationHandler = require("./AuthorizationHandler"); import Logging = require("./Logging"); import Config = re...
<filename>extension/luaDebugSession.ts //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 ri...
import React, { CSSProperties } from 'react'; import moment, { Moment } from 'moment'; import classnames from 'classnames'; import { polyfill } from 'react-lifecycles-compat'; import KeyCode from 'rc-util/lib/KeyCode'; import CalendarPart from './range-calendar/CalendarPart'; import TodayButton from './calendar/TodayBu...
import * as d3 from 'd3' import {SimpleEventHandler} from "../etc/SimpleEventHandler"; import {WordLine, WordLineHoverEvent} from "../vis/WordLine" import {AttentionVis, AttentionVisData} from "../vis/AttentionVis"; import {WordProjector, WordProjectorClickedEvent} from "../vis/WordProjector"; import {S2SApi, TrainDat...
import React, { useState, useEffect, useRef } from 'react'; import cn from 'classnames/bind'; import { IDivision, IDivisionFilterPreference, IFilterParams, ILocation, IPhase, IProjectStatus, IProjectType, ISubDivisionSolution, ITag, IUserPreferenceRequest, IFilterPreferences, IUserPreference, ...
/******************************************************************************** * Copyright (C) 2018 Red Hat, Inc. 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/epl-2.0. *...
<reponame>websiddu/figma-scripter import { EventEmitter } from "./event" const print = console.log.bind(console) const _indexedDB = (typeof window != "undefined") ? ( window.indexedDB || window["mozIndexedDB"] || window["webkitIndexedDB"] || window["msIndexedDB"]) : null as unknown as IDBFactory export const sup...
<filename>packages/payments/src/channel-manager.ts import {Gauge} from 'prom-client'; import pMap from 'p-map'; import {Logger, Metrics, NetworkContracts} from '@graphprotocol/common-ts'; import {BN, makeDestination, Uint256} from '@statechannels/wallet-core'; import { DBAdmin, Outgoing, Wallet as ChannelWallet, ...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. /** * TODO: * * - Hook up as an abstract editor? Or at least as another default editor * - `monaco.languages.getLanguages()` contains all of the highlighting modes - * */ import { ILayoutRestorer, JupyterL...
<filename>app/src/ts/renderer/calculator.ts import modalMixin from './modal-mixin' import ProgressBar from '../../vue/component/ProgressBar.vue' import TabSmall from '../../vue/component/TabSmall.vue' import InputRadio from '../../vue/component/InputRadio.vue' import InputText from '../../vue/component/InputText.vue' i...
// Core Imports import React, { useEffect, useState, useRef } from "react" import { Typography, makeStyles, Box, Grid, IconButton, TextField, Button, FormControl, Container, AppBar, Toolbar, Icon, Dialog, DialogTitle, DialogContent, DialogActions, Link, List, ListItem, Menu, Li...
import React, { useEffect, useRef, useState } from 'react' import * as tf from '@tensorflow/tfjs' import { Button, Card, Col, Form, InputNumber, message, Row, Select, Slider, Switch, Tabs } from 'antd' import { layout, tailLayout } from '../../constant' import { ILayerSelectOption, logger, loggerError, STATUS } from '...
/** * The Async Problem */ import type { Cause } from "@effect-ts/system/Cause" import type { Effect, EffectURI, FFI, Instruction } from "@effect-ts/system/Effect" import { AtomicReference } from "@effect-ts/system/Support/AtomicReference" import { flow, identity, pipe, tuple as mkTuple } from "../../Function" impo...
import childProcess = require('child_process'); import fs = require('fs'); import https = require('https'); import path = require('path'); import util = require('util'); import { PRNG } from './prng'; import type { HexColor, IHexColor } from './types/tools'; import { User } from './users'; import { IParam } from './wo...
import { OctokitResponse } from "@octokit/types" import assert from "assert" import Permutator from "iterative-permutation" import YAML from "yaml" import { actionReviewTeamFiles, commitStateFailure, commitStateSuccess, configFilePath, maxGithubApiFilesPerPage, maxGithubApiReviewsPerPage, maxGithubApiTea...
<filename>src/THREE.MeshLine.ts import * as THREE from 'three' function memcpy (src: any, srcOffset: number, dst: any, dstOffset: number, length: number) { let i src = src.subarray || src.slice ? src : src.buffer dst = dst.subarray || dst.slice ? dst : dst.buffer src = srcOffset ? src.subarray ? src.subarray(sr...
<gh_stars>1-10 // Python Tutor: https://github.com/pgbovine/OnlinePythonTutor/ // Copyright (C) <NAME> (<EMAIL>) // LICENSE: https://github.com/pgbovine/OnlinePythonTutor/blob/master/LICENSE.txt // TODO: using myVisualizer here borrowed from opt-frontend-common.js is // very dicey and dangerous due to scoping issues! ...
import Grimoire from '@/shared/Grimoire'; import { Stat } from '@/lib/Character/Stat'; import { StatTypes, StatNormalTypes } from '@/lib/Character/Stat/enums'; import { EnchantCategory, EnchantItem } from './base'; import STATE from './state'; import { calcPotentialExtraRate } from './utils'; import { EnchantEquipmen...
type Filter = (n: DOMCursor) => any const quitSkip = ['quit', 'skip'] as any[] const positioner = document.createElement('DIV') positioner.setAttribute('style', 'display: inline-block') positioner.innerHTML = 'x' function differentLines(pos1: DOMRect, pos2: DOMRect) { return (pos1.bottom - 4 <= pos2.top) || (pos...
export const err = <D extends Record<string, unknown>>(msg: string, data: D) => { console.error(msg, data); return new Error(msg); } /** compiles a shader from source code and returns it if successful */ export const createShader = (gl: WebGLRenderingContext, type: number, source: string) => { const shader = gl....
<filename>src/utils/tools.ts // 邮箱 export const isEmail = (s: string) => /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/.test(s) // 手机号码 export const isMobile = (s: string) => /^1[0-9]{10}$/.test(s) // 电话号码 export const isPhone = (s: string) => /^([0-9]{3,4}-)?[0-9]{7,8}$/.test(s) // 是否URL地址 export...
// ____________________ ::IMPORT_SEPARATOR:: ____________________ // import {XeDatePipe} from "../components/pipes/date.pipe"; import {XeTimePipe} from "../components/pipes/time.pipe"; import {MoneyPipe} from "../components/pipes/money.pipe"; import {XePipe} from "../components/pipes/XePipe"; import {PhonePipe} from "....
<gh_stars>1-10 import { PLAYER, helpers } from "../../common"; import { idb } from "."; import cmp from "./cmp"; import { g, local, lock } from "../util"; import type { AllStars, DraftLotteryResult, DraftPick, DraftPickWithoutKey, EventBBGM, Game, GameAttribute, Message, MessageWithoutKey, MinimalPlayerRating...
import * as React from 'react'; import attachEventListeners from './logic/attachEventListeners'; import transformToNestObject from './logic/transformToNestObject'; import focusErrorField from './logic/focusErrorField'; import findRemovedFieldAndRemoveListener from './logic/findRemovedFieldAndRemoveListener'; import get...
import { compose, defaultTo, lensPath, pathOr, set } from 'ramda'; import * as React from 'react'; import { StyleRulesCallback, withStyles, WithStyles } from '@material-ui/core/styles'; import ActionsPanel from 'src/components/ActionsPanel'; import Button from 'src/components/Button'; import ExpansionPanel from 'src/...
<gh_stars>0 import * as path from 'path'; import * as Sarif from 'sarif'; import { DisposableObject } from './pure/disposable-object'; import * as vscode from 'vscode'; import { Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, languages, Uri, window as Window, env } from 'vscode'; import * as...
// Copyright 2020 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. /* * Copyright (C) 2009 Apple Inc. All rights reserved. * Copyright (C) 2009 <NAME> * Copyright (C) 2010 Google Inc. All rights reserved. * * Redist...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import {equalArray} from "@internal/typescript-helpers"; // Rather than having a generic `string` type, we use string literals so...
/** * 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, ...
interface PortalLandingPageConfig { portalUrl: string; group: string; } declare var arcgisPortalLandingPageConfig: PortalLandingPageConfig; if (!arcgisPortalLandingPageConfig) { arcgisPortalLandingPageConfig = {} as any; } const urlParams = new URLSearchParams(window.location.search); if (urlP...
import { config } from "../config"; import { Logger } from "../utils/logger"; import { db, privateDB } from "../databases/databases"; import { getMaxResThumbnail, YouTubeAPI } from "../utils/youtubeApi"; import { getSubmissionUUID } from "../utils/getSubmissionUUID"; import { getHash } from "../utils/getHash"; import {...
<reponame>FluidChains/Rutanio-Core import { app, BrowserWindow, ipcMain, Menu, nativeImage, screen, Tray, shell, dialog } from 'electron'; import { machineIdSync} from 'node-machine-id'; import * as path from 'path'; import * as url from 'url'; import * as os from 'os'; const log = require('electron-log'); const { aut...
import { deprecationLogger, progressLogger, skippedOptionalDependencyLogger, } from '@pnpm/core-loggers' import PnpmError from '@pnpm/error' import { Lockfile, PackageSnapshot, ResolvedDependencies, } from '@pnpm/lockfile-types' import { nameVerFromPkgSnapshot, packageIdFromSnapshot, pkgSnapshotToReso...
<filename>src/mpl_widget.ts import { throttle } from 'lodash'; import { DOMWidgetModel, DOMWidgetView, WidgetModel, ISerializers, unpack_models, } from '@jupyter-widgets/base'; import * as utils from './utils'; import { MODULE_VERSION } from './version'; import { ToolbarView } from './toolbar_wi...
<filename>src/iv/router.ts import { logger, decorator, API, defaultParam, IvElement, required } from '.'; import { Data, watch, unwatch } from '../trax'; export interface Router { currentRoute: Route; add(routeDict: { [routePattern: string]: NavControllerLoadFunction | NavController | NavControllerFactory | Ro...
// package: sparkmax // file: SPARK-MAX-Types.proto /* tslint:disable */ import * as jspb from "google-protobuf"; export enum motorType { BRUSHED = 0, BRUSHLESS = 1, } export enum sensorType { NOSENSOR = 0, HALLSENSOR = 1, ENCODER = 2, SENSORLESS = 3, } export enum controlType { DUTYCYC...
import generate from '@babel/generator'; import { parse } from '@babel/parser'; import { program } from '@babel/types'; import { css, cx } from '@emotion/css'; import u from 'immer'; import { isArray } from 'lodash-es'; import * as React from 'react'; import { IInScriptUpdate, ITranslationUpdate, LanguagesAPI, } ...
<filename>gramjs/network/MTProtoSender.ts /** * MTProto Mobile Protocol sender * (https://core.telegram.org/mtproto/description) * This class is responsible for wrapping requests into `TLMessage`'s, * sending them over the network and receiving them in a safe manner. * * Automatic reconnection due to temporary ne...
'use strict'; import * as WebSocket from 'ws'; import { EventEmitter } from 'events'; import * as chalk from 'chalk'; import * as dayjs from 'dayjs'; import { MessageContext, contextFactory } from './context'; import { Duration, isAsyncFn } from '../utils'; import { createChain } from '../../packages/chain-of-respons...
/** * IP Tools * Pokemon Showdown - http://pokemonshowdown.com/ * * IPTools file has various tools for IP parsing and IP-based blocking. * * These include DNSBLs: DNS-based blackhole lists, which list IPs known for * running proxies, spamming, or other abuse. * * We also maintain our own database of datacenter...
<gh_stars>1-10 // Copyright 2018 The Outline Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
<gh_stars>0 import * as assert from "assert"; import * as fs from "fs"; import * as _ from "lodash"; import { tmpdir } from "os"; import * as path from "path"; import * as semver from "semver"; import * as vs from "vscode"; import { AnalyzerCapabilities } from "../src/analysis/analyzer"; import { dartCodeExtensionIdent...
<gh_stars>10-100 /** * Uses a configuration object to find global jquery and jquery.sap functions. * Replaces these functions with the appropriate module such as: * @example * jQuery.sap.assert(true) * * will become * * @example * sap.ui.require(["sap/base/assert"], function(assert){assert(true);})" * * W...
<gh_stars>10-100 import { wrapped } from "../functions"; import { withPossibleRepresentations, FunctionMap, PossibleRepresentation, ProtocolConformance, ReifiedType } from "../reified"; import { addVariable, lookup, uniqueName, DeclarationFlags, Scope } from "../scope"; import { Function } from "../types"; import { con...
// SPDX-FileCopyrightText: 2014 SAP SE <NAME> <<EMAIL>> // // SPDX-License-Identifier: Apache-2.0 /* Search Help Types SH Search help (default) CH Check table CT Check table with text table FV Fixed values for domains DV Fixed values from flow logic # CA Calendar help # CL Time help SR Search help for data ele...
import { OsmTagToNameMapping } from './osmTagToNameMappingType'; export const osmTagToNameMapping: OsmTagToNameMapping = { aeroway: { aerodrome: 'Airport', }, aerialway: 'Aerial way, lift', amenity: { '*': '{}', animal_breeding: 'Animal breeding', animal_shelter: 'Animal shelter', arts_cent...
<gh_stars>1-10 import { Component, ElementRef, Input, OnDestroy, ViewChild, HostBinding, TemplateRef, OnChanges, SimpleChanges, OnInit, Output, EventEmitter } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { NgbDropdown, NgbModal } from '@ng-bootstrap/ng-bootstr...
import { mwn } from 'mwn'; import natsortGen from 'natsort'; import { Job } from '../decorators'; const natsort = natsortGen(); interface EventPage { printouts: { 展会角色: { fulltext: string }[]; 展会作品: { fulltext: string }[]; 展会地区: { fulltext: string }[]; }; fulltext: string; fullurl: string; namespace: numbe...
import * as THREE from 'three'; import {cloneDeep} from 'lodash'; import { loadModel, Model } from '../model'; import AnimState from '../model/anim/AnimState'; import { AnimType } from './data/animType'; import { angleToRad, angleTo, getDistanceLba, WORLD_SCALE, distance2D } from '../utils/lba'; import {createBounding...
/** * Provides tasks for Br.As.Build.exe * @packageDocumentation */ //TODO Better build / transfer experience // add some variables "lastBuiltConfiguration" and "lastBuiltTimeStamp" and add a literal "$lastBuiltConfiguration" // This will enable the automatic selection of the last built configuration and...
<gh_stars>100-1000 import _ from 'lodash'; import { MediaItemBase, mediaItemColumns, MediaItemItemsResponse, } from 'src/entity/mediaItem'; import { Database } from 'src/dbconfig'; import { Seen } from 'src/entity/seen'; import { UserRating, userRatingColumns } from 'src/entity/userRating'; import { GetItemsArgs...
import day from 'dayjs' import inquirer from 'inquirer' import { decode, encode } from 'js-base64' import shell from 'shelljs' import { authByToken } from './github-client' import { logger } from './logger' import { ITableRowData, ITableRowDataMap, parseTemplate } from './template' import { IConfigFile, TArrayType, TRe...
/* eslint-disable @typescript-eslint/no-unsafe-return */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/restrict-plus-operands */ /* * TLSH is provid...
<filename>javascript/libjoynr-js/src/main/js/joynr/dispatching/subscription/SubscriptionManager.ts /* * #%L * %% * Copyright (C) 2019 BMW Car IT GmbH * %% * 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 o...
import { Component, h } from 'preact'; import container from '../../../config/inversify.config'; import { IAction } from '../../libs/actions/IAction'; import { IActionable } from '../../libs/actions/IActionable'; import { BrowserEvent } from '../../libs/events/BrowserEvent'; import { EventHandler } from '../../libs/eve...
<gh_stars>0 /** * @license * Copyright 2018 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 r...
import { Node, GeomGraph, Rectangle, SugiyamaLayoutSettings, layoutGraphWithSugiayma, Point, GeomNode, CurveFactory, Graph, Edge, MdsLayoutSettings, layoutGraphWithMds, GeomEdge, BundlingSettings, } from '../../src' import {DrawingEdge, DrawingGraph, DrawingNode} from '../../src/drawing' imp...
import aceEvent, { AceEvent } from "@wowts/ace_event-3.0"; import { LuaArray, LuaObj, next, pairs, truthy, unpack } from "@wowts/lua"; import { find } from "@wowts/string"; import { AceModule } from "@wowts/tsaddon"; import { COMBATLOG_OBJECT_AFFILIATION_MINE, COMBATLOG_OBJECT_AFFILIATION_PARTY, COMBATLOG_O...
// Copyright 2015-2021 Swim.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 law or agreed to i...
<filename>src/datepicker.component.ts import { animate, Component, ElementRef, EventEmitter, Input, keyframes, OnChanges, OnInit, Output, Renderer, SimpleChange, state, style, transition, trigger, ChangeDetectorRef } from '@angular/core'; import { FormControl, Validators, AbstractControl } from '@angular/forms'; i...
// Type definitions for Chart.js 2.9 // Project: https://github.com/nnnick/Chart.js, https://www.chartjs.org // Definitions by: <NAME> <https://github.com/anuti> // <NAME> <https://github.com/FabienLavocat> // KentarouTakeda <https://github.com/KentarouTakeda> // <NAME> <...
<reponame>JacketZeng/ccbar import { C } from "./Constants"; import { Dialog } from "./Dialogs"; import { TypeStrings } from "./Enums"; import { Grammar } from "./Grammar"; import { Logger } from "./LoggerFactory"; import { NameAddrHeader } from "./NameAddrHeader"; import { ClientTransaction, ClientTransactionUser, ...
<gh_stars>0 import { Component, SimpleChanges, Input, Renderer2, ChangeDetectorRef, ViewChild, Output, EventEmitter, Inject, ElementRef } from '@angular/core'; import { DOCUMENT } from '@angular/common'; import { ServoyBaseComponent, BaseCustomObject, IValuelist, JSEvent, ServoyPublicService } from '@servoy/public'; im...
/* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable eqeqeq */ /* eslint-disable no-case-declarations */ /*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for lic...
<gh_stars>0 /// <reference path="../../built/pxtlib.d.ts" /> /// <reference path="../../built/pxteditor.d.ts" /> /// <reference path="../../built/pxtwinrt.d.ts" /> import * as db from "./db"; import * as core from "./core"; import * as data from "./data"; import * as cloudworkspace from "./browserworkspace" import * a...
import { useState, useEffect, useMemo, useCallback, ReactNode } from 'react'; import styled from 'styled-components'; import { ethers } from 'ethers'; import { useRecoilValue, useSetRecoilState } from 'recoil'; import get from 'lodash/get'; import produce from 'immer'; import { SOR } from '@balancer-labs/sor'; import {...
import type { IDestroyOptions } from '@pixi/display'; import { Rectangle } from '@pixi/math'; import type { Renderer } from '@pixi/core'; import { Sprite } from '@pixi/sprite'; declare interface IFontMetrics { ascent: number; descent: number; fontSize: number; } export declare interface ITextSt...
<reponame>strikerPro818/META_VISION<filename>src/human.ts /** * Human main module * @default Human Library * @summary <https://github.com/vladmandic/human> * @author <https://github.com/vladmandic> * @copyright <https://github.com/vladmandic> * @license MIT */ // module imports import { log, now, mergeDeep, val...
<filename>static/test/lib/samples/Grid/CustomCells/DynamicUpdates/angular/src/app.component.ts import 'bootstrap.css'; import '@grapecity/wijmo.styles/wijmo.css'; import './styles.css'; // import { Component, enableProdMode, NgModule, ViewChild } from '@angular/core'; import { platformBrowserDynamic } from '@angular/pl...
<filename>src/YagrCore/index.ts /* eslint-disable complexity */ import UPlot, { Options as UPlotOptions, AlignedData as UPlotData, Plugin, Series, DrawOrderKey, SyncPubSub, } from 'uplot'; import LegendPlugin from './plugins/legend/legend'; import tooltipPlugin, {TooltipPlugin} from './plugins...
import React, { useEffect, useMemo, useState, useCallback } from 'react' import { useParams } from 'react-router-dom' import styled from 'styled-components' import { useWallet } from 'use-wallet' import { provider } from 'web3-core' import Button from '../../components/Button' import Container from '../../components/Co...
import { Component, h, Prop, State, Listen, Event, EventEmitter, Element, VNode, Method, Watch, Host } from "@stencil/core"; import { filter } from "../../utils/filter"; import { getElementDir } from "../../utils/dom"; import { debounce } from "lodash-es"; import { getKey } from "../../utils/key...
import { PoolClient } from 'pg'; import { canonicalPredecessors } from "../fact/hash"; import { Query } from '../query/query'; import { Direction, ExistentialCondition, Join, PropertyCondition, Step } from "../query/steps"; import { FactEnvelope, FactPath, FactRecord, FactReference, factReferenceEquals, PredecessorColl...
import chroma from 'chroma-js' import { v4 as UUID } from 'uuid' import { PackageType } from '../core/shared/project-file-types' import { AnyJson, JsonMap } from '../missing-types/json' import { JsonSchema, PropSchema } from '../missing-types/json-schema' import { ControlStyles } from '../components/inspector/common/co...
<filename>app/atlas.ts import { Request, Response, Router } from 'express'; import { asyncHandler, MIN_EXTERNAL_SOURCE, notFoundForEverythingElse, processMillis, formatVariablePrecision } from './common'; import { doDataBaseSearch, hasSearchBeenDoneRecently, logMessage, logSearchResults, pool, updateAtlasDB } from './...
import { ComponentPath, HierarchyPath, isPropertyPath, TargetPath } from './target-path'; import { IValueProxyFactory } from './value-proxy'; import * as easing from './easing'; import { BezierControlPoints } from './bezier'; import { CompactValueTypeArray } from '../data/utils/compact-value-type-array'; import { seria...
<gh_stars>0 export interface Locale { code: string name: string } export const lang_available_locale = (): Locale[] => { return [ { code: 'en', name: 'English' }, { code: 'fr', name: 'Français' }, { code: 'de', name: 'Deutsch' }, { code: 'nl', name: 'Nederlands' }, { code: 'pt', name: 'Portug...
/* * Copyright 2021 MeshDynamics. * 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 writ...
<gh_stars>0 import { open } from "sqlite"; import sqlite3 from "sqlite3"; import { URL } from "url"; import { Draft, QueuePriority, RawRequest, SpiderDomain, SpiderQueueItem, SpiderQueueStatus, SpiderRequest, SpiderRequestWithError, SpiderRequestWithResponse, SpiderSession, } from "../../types"; imp...
<filename>lib/parse/ClassLoader.ts import * as Path from 'path'; import type { AST, TSESTreeOptions, TSESTree } from '@typescript-eslint/typescript-estree'; import { AST_NODE_TYPES } from '@typescript-eslint/typescript-estree'; import type { Logger } from 'winston'; import type { ResolutionContext } from '../resolution...
const DATA_SHEET_ID = "13t7mHiW9HZjbx9eFP2uTAO5tLyAelt5_iITqym2Ejn8"; // 3 calls const AIRPORT_GATE_SHEET = "null"; //1 call const TRANSIT_SHEET_ID = "1wzvmXHQZ7ee7roIvIrJhkP6oCegnB8-nefWpd8ckqps"; //1 call const TOWN_SHEET_ID = "1JSmJtYkYrEx6Am5drhSet17qwJzOKDI7tE7FxPx4YNI"; // 1 call const API_KEY = "<KEY>"; //1 call...
#!/usr/bin/env node import 'source-map-support/register'; import cxapi = require('@aws-cdk/cx-api'); import colors = require('colors/safe'); import fs = require('fs-extra'); import YAML = require('js-yaml'); import minimatch = require('minimatch'); import util = require('util'); import yargs = require('yargs'); import...
const nm1 = [ 'Abarat', 'Adamar', 'Adorellan', 'Adresin', 'Aelrindel', 'Aerendyl', 'Aeson', 'Afamrail', 'Agandaur', 'Agis', 'Aias', 'Aiduin', 'Aien', 'Ailas', 'Ailduin', 'Ailen', 'Ailluin', 'Ailmar', 'Ailmer', 'Ailmon', 'Ailre', 'Ailred', 'Ailuin', 'Ailwin', 'Aimar', ...
/* eslint-disable no-console, no-shadow */ import { mkdirSync, readFileSync, writeFileSync } from 'fs'; import path from 'path'; import * as babel from '@babel/core'; import traverse from '@babel/traverse'; import kebabCase from 'lodash/kebabCase'; import uniqBy from 'lodash/uniqBy'; import * as prettier from 'prettier...
import { ActionDeclaration, ActionsDeclaration, Expression, ExpressionDeclaration, grammar, GraphDeclaration, OuterConstDeclaration, OuterDeclaration, OuterFunctionDeclaration, ParserOutput, PointDeclaration, PolygonDeclaration, semantic, Statement, Template }...
<filename>vanilla/grafix.d.ts /// <reference types="node" /> declare class Unit<T = any> { static timeouts: Map<string, NodeJS.Timeout>; static intervals: Map<string, NodeJS.Timeout>; static percentage(obtained: number, total: number): number; static setTimeout(func: VoidFunction, delay: number, name?: ...
import { Menu, MenuItemConstructorOptions, remote } from 'electron'; import * as React from 'react'; import { AdditionalApplicationInfo } from '../../shared/game/AdditionalApplicationInfo'; import { IAdditionalApplicationInfo, IGameInfo } from '../../shared/game/interfaces'; import { LangContainer } from '../../shared/...
export const AreasList: string[] = [ "ABASTECIMIENTO", "ADMINISTRACIÓN", "COMERCIAL", "COMPRAS", "CONTABILIDAD", "DIRECCIÓN", "FINANZAS", "GERENCIA GENERAL", "LOGISTICA", "MARKETING", "OTRO", "PRODUCCIÓN", "RECURSOS HUMANOS", "SERVICIOS", "TI", "VENTAS" ];...
<filename>src/Actor.ts import {ActorParameterObject} from "./ActorParameterObject"; import {AlphaBlendMode} from "./AlphaBlendMode"; import {AnimationHandlerParam} from "./AnimationHandlerParams"; import {Animation} from "./AnimeParams"; import {Attachment} from "./Attachment"; import {AttrId} from "./AttrId"; import {...
/** * @module modules/debugger-page-sk * @description The main module of the wasm-based SKP and MSKP debugger. * Holds the loaded wasm module, pointer to the SkSurface in wasm, and SKP file state. * Handles all the interaction and control of the application that does not cleanly fit * within a submodule. * * ...
// (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 // // Unless required by applicable law or agree...
<reponame>dmoonfire/mfgames-culture-ts /// <reference path="../typings/es6-promise/es6-promise.d.ts"/> /// <reference path="../typings/big.js/big.js.d.ts"/> import { Promise } from "es6-promise"; import Big = require("big.js"); /** * Defines the JSON signature for cycle length calculations. This is used by * ...
<reponame>mattoni/DefinitelyTyped // Type definitions for Draft.js v0.10.0 // Project: https://facebook.github.io/draft-js/ // Definitions by: <NAME> <https://github.com/dmitryrogozhny> // <NAME> <https://github.com/eelco> // <NAME> <https://github.com/ghotiphud> // <NAME...
<reponame>ramya-rao-a/azure-service-bus-node<filename>lib/core/messageReceiver.ts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. import { translate, Constants, MessagingError, retry, RetryOperationType, Retr...
<filename>src/actions-util.ts import * as fs from "fs"; import * as path from "path"; import * as core from "@actions/core"; import * as toolrunner from "@actions/exec/lib/toolrunner"; import * as safeWhich from "@chrisgavin/safe-which"; import * as yaml from "js-yaml"; import * as api from "./api-client"; import * a...