text stringlengths 3.3k 33k |
|---|
/// <reference path="../../_d.ts/phaser/phaser.d.ts"/>
"use strict";
import GameState = require("../states/GameState");
import MapSprite = require("../lib/MapSprite");
import joypad = require("../lib/joypad");
import LeadingCamera = require("../lib/LeadingCamera");
import Weapon = require("../sprites/Weapon");
impo... |
<gh_stars>0
import { RotSysData } from "./utils/data";
import { getStringKeys } from "./utils/enum";
import {
Gravity,
SoftDrop,
RotSys,
Size,
Soundbank,
NextType,
Voicebank,
Block,
Ghost,
Outline,
IRSMode,
IHSMode,
} from "./utils/enums";
abstract class Setting<T = number, U = T> {
name: string;
value:... |
import React, { useState, useEffect, useContext } from 'react';
import { View } from 'react-native';
import { Menu, TextMenu, ViewMenu } from '../../components/Menu/styles'
import { Container, ImageLogo, Title, Subtitle, PreButton, PosButton, TemperaturaMuitoAlta, TemperaturaNormal, TextButtonMenor, Scroll, ViewCenter ... |
import AdmZip from "adm-zip";
import axios, { AxiosError } from "axios";
import cheerio, { Cheerio } from "cheerio";
import { Element } from "domhandler";
import fs from "fs";
import {
ConjugationItem,
FrequencyItem,
Language,
MigakuDictionary,
MigakuDictionaryItem,
WordReferenceExample,
WordReferenceResu... |
import React from 'react'
import Typography from '@material-ui/core/Typography'
import Logo from './logo'
import Container from '@material-ui/core/Container'
import LinkText from './link-text'
import Link from '@material-ui/core/Link'
import ViewHeadlineIcon from '@material-ui/icons/ViewHeadline'
import { electionMinV... |
import React, { FC, useState, useEffect } from 'react';
import { useHistory, useLocation } from 'react-router-dom';
import { useSelector, useDispatch } from 'react-redux';
import { MenuClickEventHandler } from 'rc-menu/lib/interface';
import { RootState as AccountRootState, accountStoreState } from '@/store/accountInte... |
import { goog } from 'google-protobuf';
import * as sensorisMessagesImport from '../js/sensoris/protobuf/messages/data_pb';
import * as fs from 'fs';
import requestPromise = require('request-promise-native');
const sensorisMessages = sensorisMessagesImport as any;
export class SrtiEvent {
_id: string;
create... |
<reponame>vakhariaheet/color-convertor
/** Hex To RGBA Converter
* * Hex must be 9/7/5/4 characters long ( With '#' )
*
* @param hex hexadecimal color
* @param alpha(optional) opacity
* @returns rgba string
* @example
* ('#ffffff') => rgb(255,255,255);
* ('#000',0.1) => rgba(0,0,0,.1)
* ('#000C') => rgba(0,0,... |
import { Construct } from "constructs";
import { JsonFile, ManifestEntry, PDKIT_CONFIG_FILE } from "../../../../index";
import { Project, Bindings, Fields, LifeCycle, LifeCycleStage } from "../../../../L1";
import { PackageDependency, PackageDependencyType } from "../../constructs";
import { JestSupport } from "../Jest... |
<filename>converters/kml/imageUtilities.ts
import { BoundingBox, GeoPackage } from '@ngageoint/geopackage';
import { GeoSpatialUtilities } from './geoSpatialUtilities';
import Jimp from 'jimp';
import proj4 from 'proj4';
import path from 'path';
import { isNode, isBrowser } from 'browser-or-node';
export const TILE_SIZ... |
import { Component, OnInit, AfterViewInit } from '@angular/core';
import { Devices } from '../../shared/interfaces/common.interface';
import { UtilitiesService } from '../../shared/services/utilities.service';
import * as _ from 'lodash';
import { IndexService } from './index.service';
import { ResponseCode } from '../... |
<reponame>zardoy/vscode-text-power-tools
import * as vscode from "vscode";
import { NO_ACTIVE_EDITOR } from "../consts";
import { getExtensionSettings } from "../helpers/tptSettings";
import { getSelectionLines, getSelectionsOrFullDocument, replaceSelectionsWithLines } from "../helpers/vsCodeHelpers";
import { NumberAr... |
<reponame>twosigma/beakerx_plot
/*
* Copyright 2018 TWO SIGMA OPEN SOURCE, LLC
*
* 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.... |
<reponame>john-sonz/warships
import ShipSetter from './ShipSetter';
import { comment } from './decorators';
interface shipSetting {
x: number;
y: number;
direction: boolean;
size: number;
}
enum State {
Empty,
Taken,
Hit,
Miss
};
export enum Win {
Player,
Machine
}
export enum ... |
import React, { Fragment } from 'react'
import Conference from 'config/conference'
import { Session, Sponsor } from 'config/types'
import { ActionButton } from 'components/actionButton'
import { Agenda } from 'components/Agenda/Agenda'
import {
StyledAddress,
StyledAgendaRow,
StyledAgendaRowList,
StyledFeedback... |
<reponame>shalldon/ng-zorro-antd
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { DOCUMENT } from '@angular/common';
import { Component, Inject, OnInit } from '@angular/core';
impor... |
import React, { useState, useRef } from "react";
import styled from "styled-components";
import Router from "next/router";
import {
Flex,
Column,
Button,
Form,
FormGroup,
RadioChoice,
RadioChoiceLabel
} from "../../styles";
import Select from "../Select";
import jsonToFormData from "../../lib/jsonToFor... |
import cheerio = require('cheerio');
import fetch from 'node-fetch';
const sourceCharMap = {
all: '.',
nole: '~[\\r\\n\\u0085\\u2028\\u2029]',
noqs: '~["\'\\\\]',
noleqs: '~["\'\\r\\n\\u0085\\u2028\\u2029\\\\]',
};
const lexicals: { [key: string]: boolean } = {};
const addToLexicals: string[] = [];
const ru... |
import React, { useCallback, useRef, useState, useEffect } from 'react';
import styles from './index.scss';
import InputWithLabel from '~components/InputWithLabel';
import NextStepButton from '~components/NextStepButton';
import Warning from '~components/Warning';
import Header from '~components/Header';
import Skeleto... |
import * as React from 'react';
import { EditorState } from 'draft-js';
import 'draft-js/dist/Draft.css';
import { stateToHTML } from 'draft-js-export-html';
import MessageApi from '../../api/message/index';
import ICreatePostRequest from '../../interfaces/ICreatePostRequest';
import AttachmentList from './AttachmentLi... |
<gh_stars>0
import _ from 'lodash';
jest.mock('aws-sdk');
jest.unmock('../src/Queue');
const AWS = require('aws-sdk');
const Queue = require('../src/Queue').default;
const promiseFn = jest.fn();
const createQueueFn = jest.fn();
const deleteQueueFn = jest.fn();
const getQueueAttributesFn = jest.fn();
const sendMessag... |
import {State} from "../Q-Learner/State";
import {Action} from "../Q-Learner/Action";
import {QLearner} from "../Q-Learner/QLearner";
const ROW_ELEM = $('<div class="row"></div>');
const CELL_ELEM = $('<span class="cell"></span>');
const MOUSE_ELEM = $('<i class="mouse"></i>');
const ALPHABETH = "ABCDEFGHIJKLMNOPQR... |
import React, { useCallback, useMemo, useRef, useEffect } from 'react';
import AntUpload, { UploadChangeParam } from 'antd/lib/upload';
import MaskModal from '@material-ui/core/Modal';
import { UploadFile } from 'antd/lib/upload/interface';
import { message, Modal } from 'antd';
import { Circle } from '../Spin';
import... |
<reponame>oxorp/js-epub-maker
/**
* Created by user on 2017/12/16/016.
*/
import * as fs from 'fs-iconv';
import EpubMaker, { hashSum, slugify } from '..';
import * as Promise from 'bluebird';
import * as path from 'path';
import * as StrUtil from 'str-util';
import * as moment from 'moment';
import * as novelGlobby... |
import { Box, Container, Center, Text, Spacer, Flex, Link, HStack } from "@chakra-ui/layout";
import { Title } from "@components/title";
import { NextSeo } from 'next-seo';
import {ChevronDownIcon, InfoIcon} from "@chakra-ui/icons"
import { GetServerSideProps } from "next";
const { connect } = require("../src/services/... |
<filename>packages/now-cli/src/util/now.ts
import ms from 'ms';
import ua from './ua';
import fetch from 'node-fetch';
import { Org } from '../types';
import EventEmitter from 'events';
import stamp from './output/stamp';
import { BuildError } from './errors';
import { URLSearchParams } from 'url';
import { Dictionary ... |
import Serializer from './serialization/serializer'
import Deserializer from './serialization/deserializer'
import Dictionary, { IDictionary } from '../utils/dictionary'
import { V08, V16, V24, V32, V40, V48 } from '../utils/binValues'
import throwError from '../utils/throwError'
import isFloat32 from './isFloat32'
imp... |
/**
* @license
* Scale https://github.com/telekom/scale
*
* Copyright (c) 2021 <NAME> and contributors, Deutsche Telekom AG
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.... |
<filename>system/base-interfaces/structure.ts<gh_stars>0
/* eslint-disable unicorn/prefer-switch */
import {
isObject,
isNull,
compareToPattern,
waitForCondition,
safeHasOwnPropery,
isFunction,
isAsyncFunction,
isEmptyObject,
safeJSONstringify,
} from 'sat-utils';
import { PromodSystemCollection } fro... |
import fs = require("fs-extra");
import EventEmitter = require("events");
import { spawn, spawnSync } from "child_process";
import { FirefoxRemoteProtocol, Source, Tab, Thread } from "./firefox-protocol";
import {
Breakpoint,
Browser,
DebugSession,
Location,
NotRunningState,
Script,
Variable... |
<reponame>mxschmitt/Stacks-Editor
import MarkdownIt from "markdown-it/lib";
import StateBlock, {
ParentType,
} from "markdown-it/lib/rules_block/state_block";
import { isSpace } from "markdown-it/lib/common/utils";
type BlockquoteExtOptions = {
followingCharRegex: RegExp;
markup: string;
name: string;
... |
<filename>packages/client/src/client/client.ts
import { setOfSupportedSchemes, supportedSchemes } from 'common-utils/uriHelper.js';
import { WorkspaceConfigForDocument } from 'server/api';
import {
CodeAction,
CodeActionKind,
Command,
Diagnostic,
DiagnosticCollection,
DiagnosticSeverity,
Dis... |
import * as mc from 'mojang-minecraft';
const overworld = mc.world.getDimension('overworld');
export function createExplosion(log: (message: string, status?: number) => void, targetLocation: mc.Location) {
overworld.createExplosion(targetLocation, 10, new mc.ExplosionOptions());
}
export function createNoBlockEx... |
<filename>libs/media/src/lib/image/uploader/uploader.component.ts
import { Component, Input, ChangeDetectionStrategy, OnInit, HostListener, ElementRef, ViewChild, Output, EventEmitter, OnDestroy } from '@angular/core';
import { ImageCroppedEvent } from 'ngx-image-cropper';
import { BehaviorSubject, Subscription } from ... |
import { Injectable } from '@angular/core';
import { ImageToolService } from '../image-tool/image-tool.service';
import { StatusService } from '../status/status.service';
import { Annotation } from '../classes/annotation';
import { IPoint, Point, BoundingBox, Person, Frame, Video } from '../classes/storage';
import {... |
<gh_stars>1-10
import Redis from 'ioredis';
import { defaultExport, defaultMeals, defaultQuestions } from '@common/schemes';
import { SchemeTypes } from '@common/types/models';
import config from '@api/config';
import {
Locale as FoodsLocale,
NutrientType as FoodsNutrientType,
NutrientUnit as FoodsNutrientUnit,
}... |
<gh_stars>1-10
import _get from 'lodash/get'
import _throttle from 'lodash/throttle'
import { tns } from 'tiny-slider/src/tiny-slider'
import { getWindowWidth } from '@/core/utility/dom'
import { breakpoints, margins } from '@/core/utility/config'
import type {
CarouselElement,
CarouselConfiguration,
CarouselO... |
import React from "react";
import isFunction from "lodash/isFunction";
import classnames from "classnames";
import FormContext, { IFormContext } from "./FormContext";
import FormItemContext from "./FormItemContext";
import { FormProps } from "./Form";
import type {
FormValue,
TriggerType,
ValidateTrigger,
ValueCha... |
declare var require
declare namespace monaco {
export var KeyMod
export var KeyCode
export var Uri
export var languages
export namespace editor {
export interface ICommandHandler {
(...args: any[]): void;
}
export interface IDisposable {
dispose(): v... |
import * as YAML from '../src/'
import { AbstractVisitor } from './visitor'
import * as chai from 'chai'
import { YamlMap, YAMLMapping } from '../src/';
const assert = chai.assert
function structure(node) {
return new DuplicateStructureBuilder().accept(node);
}
suite('Loading a single document', () => {
test... |
import layer_1_01 from '../images/layer1/layer_1_01.png';
import layer_1_02 from '../images/layer1/layer_1_02.png';
import layer_1_03 from '../images/layer1/layer_1_03.png';
import layer_1_04 from '../images/layer1/layer_1_04.png';
import layer_1_05 from '../images/layer1/layer_1_05.png';
import layer_1_06 from '../ima... |
// Libraries
import React from 'react'
import type { Property } from 'csstype'
// Helpers
import { checkOverlapping } from '../helpers/overlapping'
import { trimUndefined } from '../helpers/trim'
// Types
import type { GridContainerProps } from '../index'
function GridContainer({
// 'display'
inline,
// 'grid... |
<filename>src/lib/api.ts
import axios, {AxiosError, Method} from 'axios';
import url from 'url';
// Headers:
// Accept: application/json
// Accept-Charset: utf-8
// Accept-Encoding : gzip-deflate
// Content-type: application/json
//how to limit this?
//maximum 5 requests per second
//maximum 30 requests per hour
//ap... |
/*
MIT License
Copyright (c) 2020 kmwebnet
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, distr... |
<gh_stars>10-100
import { Db } from 'mongodb'
import { inspect } from 'util'
import config from '../config'
import { YearCompletion, FacetCompletion, SurveyConfig, Entity } from '../types'
import { Filters, generateFiltersQuery } from '../filters'
import { Facet } from '../facets'
import { ratioToPercentage } from './c... |
// Copyright 2018-2021 Polyaxon, 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 agre... |
import chacha = require('chacha20');
import debugModule = require('debug');
import * as crypto from 'crypto';
import HopPayload from './hop_payload';
import SharedSecret, {KeyType} from './shared_secret';
const debug = debugModule('bolt04:sphinx');
export default class Sphinx {
static readonly HMAC_LENGTH = 32;
st... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<filename>src/meta/factions.ts
import { sortBy } from 'lodash'
// Supported Faction Types
type TBeastsOfChaos = 'BEASTS_OF_CHAOS'
type TBigWaaagh = 'BIG_WAAAGH'
type TBonesplitterz = 'BONESPLITTERZ'
type TChaosGrandAlliance = 'CHAOS_GRAND_ALLIANCE'
type TCitiesOfSigmar = 'CITIES_OF_SIGMAR'
type TDaughtersOfKhaine = 'D... |
<filename>packages/runtime-html/src/resources/custom-elements/compose.ts<gh_stars>0
import {
Constructable,
IContainer,
Key,
IRegistry,
nextId,
PLATFORM,
Registration,
} from '@aurelia/kernel';
import {
Bindable,
BindingMode,
BindingStrategy,
ContinuationTask,
CustomElementResource,
HooksDefin... |
/**
* Copyright (c) 2020-2021 WebMMB contributors, licensed under MIT, See LICENSE file for details.
*
* @author <NAME> (<EMAIL>)
* @author <NAME> (<EMAIL>)
* @author <NAME> (<EMAIL>)
*/
import * as React from 'react';
import { ErrorBox } from './common/error-box';
import { PushButton } from './common/push-butto... |
// Copyright 2022 Touca, Inc. Subject to Apache-2.0 License.
import { HttpErrorResponse } from '@angular/common/http';
import { Component, OnDestroy } from '@angular/core';
import { Router } from '@angular/router';
import { DialogService } from '@ngneat/dialog';
import { Subscription, timer } from 'rxjs';
import { Re... |
/*
* Copyright 2020 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the ... |
import { jsSHABase, TWO_PWR_32, H_full, H_trunc, K_sha2, sha_variant_error, parseInputOption } from "./common";
import {
packedValue,
FixedLengthOptionsEncodingType,
FixedLengthOptionsNoEncodingType,
FormatNoTextType,
} from "./custom_types";
import { getStrConverter } from "./converters";
import {
ch_32,
g... |
<reponame>SebasRod23/amplify-cli<filename>packages/amplify-graphql-auth-transformer/src/resolvers/mutation.delete.ts<gh_stars>0
import { FieldDefinitionNode } from 'graphql';
import {
Expression,
printBlock,
compoundExpression,
bool,
equals,
iff,
raw,
ref,
set,
str,
methodCall,
forEach,
list,
... |
import React, { useEffect, useState } from 'react'
import Grid from '@material-ui/core/Grid'
import Button from '@material-ui/core/Button'
import Checkbox from '@material-ui/core/Checkbox'
import Table from '@material-ui/core/Table'
import TableBody from '@material-ui/core/TableBody'
import TableContainer from '@materi... |
<reponame>AlexChrisF/udacity
/* Copyright 2016 The TensorFlow Authors. 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... |
<reponame>neoskop/pulumi-buddy<gh_stars>1-10
import { AsInputs } from '@pulumi-utils/sdk';
import { PipelineProps } from '../pipeline';
import { CustomResource, Input, Output, ID, CustomResourceOptions, Inputs, output } from '@pulumi/pulumi';
import { IntegrationRef, TriggerCondition, Variable } from '../common';
impor... |
import {
Card,
CardContent,
CardMedia,
Chip,
Collapse,
Divider,
Accordion,
AccordionDetails,
AccordionSummary,
Link,
Typography,
} from '@material-ui/core';
import { createStyles, makeStyles, Theme } from '@material-ui/core/styles';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
impor... |
<reponame>iDschepe/http-constants-ts
export declare class CSPD {
static BASE_URI: string;
static BLOCK_ALL_MIXED_CONTENT: string;
static CHILD_SRC: string;
static CONNECT_SRC: string;
static DEFAULT_SRC: string;
static FONT_SRC: string;
static FORM_ACTION: string;
static FRAME_ANCESTORS:... |
<filename>packages/dx-chart-core/src/utils/scale.test.ts
import {
isHorizontal, getWidth, getValueDomainName, fixOffset,
scaleLinear, scaleBand, makeScale, scaleBounds,
moveBounds, growBounds, invertBoundsRange,
} from './scale';
jest.mock('d3-scale', () => ({
scaleLinear: () => ({ tag: 'scale-linear' }),
sc... |
import { call, fork, put, select } from 'redux-saga/effects'
import {
createWatcher,
} from '../utils/utilities'
import {
switchUpgradeLoader,
INIT_LEVELS,
AUTO_UPLOAD_SECONDARY,
SET_CLOUD_FOR_LEVEL,
AUTO_UPLOAD_CONTACT,
UPDATE_AVAILABLE_KEEPER_DATA,
setAvailableKeeperData,
updateAvailableKeeperData,
... |
<reponame>flarum/cli
import { Command, Flags, Interfaces } from '@oclif/core';
import cli from 'cli-ux';
import { resolve } from 'node:path';
import globby from 'globby';
import { execSync } from 'node:child_process';
import { existsSync, readFileSync, unlinkSync } from 'node:fs';
import { IO, PromptsIO } from 'boilers... |
<reponame>liaspas/Bot-HandOff<gh_stars>0
// tslint:disable: interface-name
// tslint:disable: variable-name
import * as builder from "botbuilder";
import * as bluebird from "bluebird";
import * as request from "request";
import * as _ from "lodash";
import mongoose = require("mongoose");
mongoose.Promise = bluebird;
//... |
import _ from "lodash";
import { ObjectID } from "mongodb";
import { Request } from "express";
import { Record, Model, Params } from "../../types";
import { SqlError } from "../Error";
import { eventBus } from "../eventBus";
const replaceId = (datas: Record[] | Record) => {
const eject = (data: any) => {
if (data... |
import { cloneDeep } from 'lodash';
import { MonoTypeOperatorFunction, Observable, of, ReplaySubject, Unsubscribable } from 'rxjs';
import { map, mergeMap } from 'rxjs/operators';
import {
applyFieldOverrides,
compareArrayValues,
compareDataFrameStructures,
CoreApp,
DataConfigSource,
DataFrame,
DataQuery... |
// Copyright 2021 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) 2011 Google Inc. All rights reserved.
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2008 <NAME> <<EMA... |
<gh_stars>0
/*
* Copyright 2021 Salto Labs 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 b... |
/*
* Licensed to the Kassenärztliche Bundesvereinigung (KBV) (c) 2020 - 2021 under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The KBV licenses this file
* to you under the Apache License, Version 2.... |
// 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 applicable law or agre... |
import * as React from 'react'
import {
Animated,
Easing,
LayoutChangeEvent,
Platform,
StatusBar,
StyleProp,
StyleSheet,
View,
ViewStyle,
} from 'react-native'
import { BorderRadiusObject, IStep, Labels, ValueXY } from '../types'
import styles, { MARGIN } from './style'
import { SvgMask } from './SvgM... |
import * as ts from 'typescript';
import { join as joinPath } from 'path';
import { throwError, isUndefined, assertNever, curry, isRestParameter } from './utils';
import { error as logError, info as logInfo } from './log';
import { TextChange, Service, FileChangeType, FileChangeTypes, Decoration, Position, Configurati... |
import { ipcRenderer, remote } from "electron";
import { Dispatch, Middleware } from "@reduxjs/toolkit";
import Path from "path";
import rimraf from "rimraf";
import { promisify } from "util";
import getTmp from "lib/helpers/getTmp";
import { RootState } from "store/configureStore";
import copy from "lib/helpers/fsCopy... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/* eslint-disable no-bitwise */
import { IMatrixReader, IMatrixWriter } from "@tiny-calc/nano";
// Build a lookup table that maps a uint8 to the corresponding uint16 where 0s
// are interleaved between the origina... |
import itemID from '../util/itemID';
import resolveItems from '../util/resolveItems';
import {
gracefulCapes,
gracefulFeet,
gracefulHands,
gracefulHoods,
gracefulLegs,
gracefulTops
} from './gracefulVariants';
const scytheChargedSimilar = ['Holy scythe of vitur', 'Sanguine scythe of vitur'];
const scytheUncharge... |
<gh_stars>0
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
'use strict';
import _ from 'lodash';
import asyncHandler from 'express-async-handler';
import express from 'express';
import moment from 'moment';
... |
<reponame>marcusasplund/angular-webpack2-starter
/* tslint:disable: variable-name max-line-length */
/**
* Try to not make your own edits to this file, use the constants folder instead.
* If more constants should be added file an issue or create PR.
*/
import 'ts-helpers';
import {
DEV_PORT, PROD_PORT, UNIVERSAL_... |
/**
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* @format
*/
import * as yargs from 'yargs';
import * as fs from 'fs';
import * as semver from 'semver';
import {exec, execSync} from 'child_process';
import * as validUrl from 'valid-url';
import * as prompts from 'prompts';
import * ... |
<reponame>dudenamedjune/amplify-js<gh_stars>1-10
import * as Rekognition from 'aws-sdk/clients/rekognition';
import * as Textract from 'aws-sdk/clients/textract';
import {
IdentifyTextOutput,
Table,
KeyValue,
TableCell,
Content,
BoundingBox,
Polygon,
} from '../types';
import { makeCamelCaseArray, makeCamelCase ... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import path from "path";
import { IName } from "./interfaces/IName";
export class ProjectConstants {
public static readonly pluginShortName: string = "APIM";
public static readonly pluginName: string = "fx-resource-apim";
public static r... |
/** ____
*--------------/ \.------------------/
* / swrv \. / //
* / / /\. / //
* / _____/ / \. /
* / / ____/ . \. /
* / \ \_____ \. /
* / . \_____ \ \ / //
... |
import hre from "hardhat"
const {deployments, artifacts, web3} = hre
import {
expect,
BN,
advanceTime,
usdcVal,
erc20Transfer,
expectAction,
SECONDS_PER_DAY,
decodeLogs,
getFirstLog,
Numberish,
} from "./testHelpers"
import {expectEvent} from "@openzeppelin/test-helpers"
import {OWNER_ROLE, PAUSER_R... |
<gh_stars>100-1000
import BN from 'bignumber.js';
import { flattenDeep } from 'lodash';
import { encodeParams, Loggy, ZWeb3 } from '@openzeppelin/upgrades';
import { MethodArgType } from '../prompts/prompt';
import { zipWith } from 'lodash';
import { isAddress, isHex } from 'web3-utils';
// TODO: Deprecate in favor of... |
import { TimeSeries, toDataFrame } from '@grafana/data';
import { DataQueryRequest, DataQueryResponseData, DataSourceInstanceSettings } from '@grafana/ui';
import { BackendSrv } from 'app/core/services/backend_srv';
import { TemplateSrv } from 'app/features/templating/template_srv';
import _ from 'lodash';
import Time... |
<filename>packages/angular_devkit/core/src/virtual-fs/host/record.ts
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {
Observable,
concat,
from as obser... |
import * as d3 from 'd3';
import { DataProvider, Indi, Fam } from '../api';
import { ChildNodes, TreeNode, LinkType, otherSideLinkType } from './api';
import { HierarchyFilter } from './hierarchy-filter';
import { IdGenerator } from '../id-generator';
import { nonEmpty } from '../utils';
export class HierarchyCreator ... |
<filename>src/backends/webgpu/src/shader_preprocessor.ts
/**
* @license
* Copyright 2019 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.a... |
<reponame>skylark-integration/skylark-ember<gh_stars>1-10
import { privatize as P } from '@ember/-internals/container';
import { ENV } from '@ember/-internals/environment';
import { LookupOptions, Owner, setOwner } from '@ember/-internals/owner';
import { lookupComponent, lookupPartial, OwnedTemplateMeta } from '@ember... |
import { Collection } from "collection-data";
import type {
Collection as CollectionDjs,
ApplicationCommand,
ApplicationCommandData,
ApplicationCommandResolvable,
GuildResolvable,
ApplicationCommandPermissionData,
GuildApplicationCommandPermissionData,
ApplicationCommandType,
Snowflake,
} from "discor... |
/**
* Copyright 2017 Google Inc. All rights reserved.
* Modifications copyright (c) Microsoft 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.or... |
import {
AckNodesEvent,
ClientInfo,
ClientPresenceRef,
DiffNode,
ErrorCode,
GetRemoteFn,
LocalStore,
NodesEvent,
OnEventFn,
Remote,
RemoteStateEvent,
SyncEvent,
} from './types';
import { PromiseQueue } from './lib/PromiseQueue';
import { timeoutPromise } from './lib/timeoutPromise';
export typ... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {AST, TmplAstBoundAttribute, TmplAstBoundEvent, TmplAstElement, TmplAstNode, TmplAstTemplate, TmplAstTextAttri... |
<reponame>DominusVilicus/svelte
export default function fuzzymatch(name: string, names: string[]) {
const set = new FuzzySet(names);
const matches = set.get(name);
return matches && matches[0] && matches[0][0] > 0.7 ? matches[0][1] : null;
}
// adapted from https://github.com/Glench/fuzzyset.js/blob/master/lib/fuz... |
import * as React from 'react';
import { IChartControlState, IChartControlProps } from '.';
import styles from './ChartControl.module.scss';
import { css } from 'office-ui-fabric-react/lib/Utilities';
import { Chart, ChartSize } from 'chart.js';
import { PaletteGenerator } from './PaletteGenerator';
import { Accessible... |
import path from 'path'
import Mocha, { Runner } from 'mocha'
import { format } from 'util'
import logger from '@wdio/logger'
import { runTestInFiberContext, executeHooksWithArgs } from '@wdio/utils'
import type { Capabilities, Services } from '@wdio/types'
import { loadModule } from './utils'
import { INTERFACES, EV... |
<reponame>stark525/cumulus<filename>lambdas/data-migration2/src/granulesAndFiles.ts
import Knex from 'knex';
import { Writable } from 'stream';
import pMap from 'p-map';
import cloneDeep from 'lodash/cloneDeep';
import { parallelScan } from '@cumulus/aws-client/DynamoDb';
import DynamoDbSearchQueue from '@cumulus/aws-... |
// tslint:disable: no-console react-this-binding-issue
import * as React from "react";
import GatewayJS from "@renproject/gateway";
import { SendParams } from "@renproject/interfaces";
import { SelectMarket } from "@renproject/react-components";
import { stringToNetwork } from "@renproject/utils";
import BigNumber fr... |
import React from 'react'
import { Dropdown, Menu } from 'antd'
import { Tooltip } from 'lib/components/Tooltip'
import { BindLogic, useActions, useValues } from 'kea'
import { trendsLogic } from 'scenes/trends/trendsLogic'
import { PHCheckbox } from 'lib/components/PHCheckbox'
import { getChartColors } from 'lib/color... |
<reponame>SebastianWolf-SAP/spartacus-financial-services-accelerator
import { waitForCMSComponent, waitForPage } from './general-helpers';
export function getClaimIdFromLocalStorage() {
const localData = JSON.parse(localStorage.getItem('spartacus-local-data'));
if (
localData &&
localData.assets &&
loc... |
<gh_stars>0
import { FieldSchema } from '@ephox/boulder';
import { Arr, Fun, Optional } from '@ephox/katamari';
import { SugarElement } from '@ephox/sugar';
import * as Boxes from '../../alien/Boxes';
import * as ComponentStructure from '../../alien/ComponentStructure';
import { PlacementSpec } from '../../behaviour/p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.