text stringlengths 3.08k 15.5k |
|---|
<reponame>agangdi/bscindex
import { MasterChefMeta, MasterChefPool, MasterChefUpdate } from "./types"; // Circular dependency.
import { convert, createMulticallDataParser } from "helpers";
import { createEntityAdapter, createSlice } from "@reduxjs/toolkit";
import { fetchMasterChefData } from "./requests";
import { fet... |
<filename>nova/src/nova_plugin/beam_plugin.ts
import { BeamWeaponData, WeaponData } from 'novadatainterface/WeaponData';
import { Entities, RunQueryFunction, UUID } from 'nova_ecs/arg_types';
import { Component } from 'nova_ecs/component';
import { Angle } from 'nova_ecs/datatypes/angle';
import { Position } from 'nova... |
/**
* @module navigation
* @type {Object}
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* @copyright Smartface 2021
*
* GPS navigation utility to cover the most popular navigating applications on both platforms.
* It will prompt a menu to choose apps from on iOS and works out of the box on Android.
* F... |
import {RequiredBy} from "../Utils/@Internal/Types.js";
import {debugModeEnabled, FlashQueue} from "./FlashQueue.js";
export class FinalizerEntry {
constructor(data: RequiredBy<Partial<FinalizerEntry>, "func">) {
Object.assign(this, data);
}
func: (opts: FlashOptions)=>any;
tags = [] as string[];
}
export class ... |
<gh_stars>0
export enum MudColorOutputFormats {
/// <summary>
/// Output will be starting with a # and include r,g and b but no alpha values. Example #ab2a3d
/// </summary>
Hex,
/// <summary>
/// Output will be starting with a # and include r,g and b and alpha values. Example #ab2a3dff
/// ... |
import * as React from "react";
import {
ReactSurveyElement,
SurveyQuestionElementBase
} from "./reactquestionelement";
import { QuestionMatrixModel } from "../question_matrix";
import { MatrixRowModel } from "../question_matrix";
import { ReactQuestionFactory } from "./reactquestionfactory";
import { ItemValue } f... |
import * as React from 'react';
import { BaseComponent, classNamesFunction } from '@uifabric/utilities';
import { IColorPickerProps, IColorPickerStyleProps, IColorPickerStyles, IColorPicker } from './ColorPicker.types';
import { TextField } from '../TextField';
import { ColorRectangle } from './ColorRectangle/ColorRect... |
import React from 'react';
import {getLastItem, valueFormatter, isSearchMatch, SEARCH_STRING_COLOR} from '@parca/functions';
import {useAppSelector, selectCompareMode, selectSearchNodeString} from '@parca/store';
import {
QueryResponse,
QueryServiceClient,
QueryRequest_ReportType,
TopNodeMeta,
} from '@parca/cl... |
import { CodeEditor } from '@jupyterlab/codeeditor';
import { CommandEntryPoint, ICommandContext } from './command_manager';
import { IEditorChange, IVirtualEditor } from './virtual/editor';
import { VirtualDocument } from './virtual/document';
import { LSPConnection } from './connection';
import { IRootPosition } from... |
class GridNeighborDetector {
private cells: string[][][];
private id2CellIndex: D3.Map<string>;
/*
This class exists to speedup neighbor detection for the flocking algorithm.
A naive method is best-case O(n^2) since for each flock, we need to test distance against
every other flock to find which ones are nea... |
import React, {
useState,
useEffect,
useRef,
useContext,
ReactElement,
} from 'react';
import { getBox } from 'css-box-model';
import type { Position, BoxModel } from 'css-box-model';
import styled from '@emotion/styled';
import { colors } from '@atlaskit/theme';
import { getQuotes } from '../data';
import ty... |
/// <reference path="../typings/hover.d.ts" />
import path = require('path');
import fs = require('fs');
import child_process = require('child_process');
export var debugLiquidUtils:any;
/*****************************************************************************/
/******** PUBLIC : Type defini... |
<reponame>jaydgruber/ember.js
import { get } from '@ember/-internals/metal';
import { assert, deprecate } from '@ember/debug';
import { EMBER_COMPONENT_IS_VISIBLE } from '@ember/deprecated-features';
import { dasherize } from '@ember/string';
import { DEBUG } from '@glimmer/env';
import { ElementOperations, Option } fr... |
<reponame>HumphreyHCB/SOMns-vscode<gh_stars>0
'use strict';
import { ChildProcess, spawn } from 'child_process';
import { Socket } from 'net';
import { workspace, ExtensionContext, window } from 'vscode';
import { LanguageClient, LanguageClientOptions, ServerOptions, StreamInfo } from 'vscode-languageclient/nod... |
/// <reference path="../typings/chrome-aws-lambda.d.ts" />
import { access, createWriteStream, existsSync, mkdirSync, readdirSync, symlink, unlinkSync } from 'fs';
import { IncomingMessage } from 'http';
import LambdaFS from 'lambdafs';
import { join } from 'path';
import { PuppeteerNode, Viewport } from 'puppeteer-co... |
<reponame>DIYgod/zan-proxy
import fs from 'fs-extra';
import koa from 'koa';
import koaBodyParser from 'koa-bodyparser';
import koaMount from 'koa-mount';
import Router from 'koa-router';
import { remove, uniqWith } from 'lodash';
import npm from 'npm';
import path from 'path';
import { Service } from 'typedi';
import ... |
import WSS from 'ws';
import { observable, runInAction, ObservableMap } from 'mobx';
import { put, call, take, takeLatest, all } from 'redux-saga/effects';
import { GankType } from '../constants';
import Debug from 'debug';
import {
GankDataCache,
JitDriverCache,
GankApiResponse,
GankDataItem,
IToken,
IDriv... |
<filename>modules/cf-core/src/methods/state-channel/deposit/operation.ts<gh_stars>0
import { DEPOSIT_STARTED_EVENT, DEPOSIT_FAILED_EVENT } from "@connext/types";
import { Contract } from "ethers";
import { Zero } from "ethers/constants";
import { BaseProvider, TransactionRequest, TransactionResponse } from "ethers/prov... |
//
// Copyright 2020-21 <NAME>
//
// 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... |
import {
computed,
defineComponent,
onBeforeMount,
onBeforeUnmount,
ref,
} from 'vue'
import { websock } from '../axios/socket'
import { ElMessage } from 'element-plus'
import DialogLogin from './login.vue'
import CryptoJS from 'crypto-js'
// 数据加解密方法
const key = CryptoJS.enc.Utf8.parse('<KEY>') //十六位十六进制数作为密... |
import React from "react";
import { get, set, observable, values, toJS } from "mobx";
import { observer } from "mobx-react-lite";
import ViewModel from "./viewModel";
import IViewProps from "../../../models/iViewProps";
import { useTranslation } from "react-i18next";
import TopRightFab from "../../common/topRightFab";
... |
import React, { useContext, useEffect, useState } from 'react'
import { useWindow } from '../../context/window'
import { useUser } from '../../context/user'
import { ThemeContext } from 'styled-components'
import example from '../../assets/example.jpg'
import BookOpenIcon from '../../assets/icons/book-open.svg'
imp... |
import {Mixdown, BankBuilder, Priority, StreamGenerationHandle} from "../dist/mixdown.module.js"
// todo pull this out
type Optional<T> = T | undefined;
let builder = new BankBuilder();
builder.createMixerDefinition("sfx", 1);
builder.createMixerDefinition("music", 1);
builder.createMixerDefinition("ambience", 1, "s... |
<reponame>lkesteloot/trs80-base<gh_stars>0
/**
* Tools for dealing with SYSTEM (machine language) programs.
*
* http://www.trs-80.com/wordpress/zaps-patches-pokes-tips/tape-and-file-formats-structures/
*/
import {ByteReader, EOF} from "teamten-ts-utils";
import {toHexByte, toHexWord} from "z80-base";
import {Progr... |
//import * as tf from '@tensorflow/tfjs-core';
import * as tf from '@tensorflow/tfjs';
import { extractWeightsFactory } from '../commons/extractWeightsFactory';
import { ConvParams, ExtractWeightsFunction, ParamMapping } from '../commons/types';
import { isFloat } from '../utils';
import { ConvLayerParams, NetParams, ... |
import { getEnvWithMeta, getPendingEnvWithMeta } from "./envs";
import { pick } from "../utils/pick";
import { Client } from "../../types";
import { applyPatch } from "rfc6902";
import memoize from "../utils/memoize";
import * as R from "ramda";
// import { log } from "../utils/logger";
export const getEnvWithMetaForV... |
<gh_stars>1-10
import {FindCodeStylesOptions} from "./find-code-styles-options";
import {existsSync as _existsSync} from "fs";
import {CodeStyleKind} from "../code-style-kind";
import {resolveConfig} from "prettier";
import {join} from "path";
import {ESLint, Linter} from "eslint";
import {listFormat} from "../../util/... |
<filename>types/components/notification.ts
/**
* @author [author]
* @version [version]
* @description module notification
*
*/
import Log from './log';
import Utils from './utils';
interface NotificationOption {
dir: string;
lang: string;
badge: string;
body: string;
tag: string;
icon: string;
image: stri... |
import {
namespace as namespaceOfCfx,
getActualNoncePromise,
// successedSendActionSetNonce,
maxGasForSend,
nonceLocalStoragePrefix,
} from '@/models/cfx'
import confluxWeb from '@/vendor/conflux-web'
import config from '@/config'
// const nonceLocalStoragePrefix = 'fc_address_'
const namespace = 'fc'
export ... |
/**
* Created by mail on 08.12.2016.
*/
import * as path from 'path';
import { parseModule, parseScript } from 'esprima';
import * as ESTree from 'estree';
import { readFileSync } from 'fs';
import { walk, Visitor } from '../../utils/estree-walker';
import { clone } from 'lodash';
import { NodeReference } fr... |
<filename>libs/forms/src/lib/fields-layout/form-field-host.directive.ts
import {
ApplicationRef,
ComponentFactoryResolver,
ComponentRef,
Directive,
EmbeddedViewRef,
Inject,
InjectionToken,
Injector,
Input,
OnDestroy,
OnInit,
Optional,
Renderer2,
Type... |
import * as _ from 'lodash';
import IMainConfig from '../typed/IMain';
import { ISeries } from '../typed/ISeries';
import * as EventUtils from '../utils/EventUtils';
import * as setCustomFormatter from './setCustomFormatter';
import * as setQuickType from './setQuickType';
function setSeriesGemo(chart: any, currSeries... |
import { QUALITIES, MAJOR, MINOR, AUG, DIM } from "./music";
export const IntervalDict: Record<
string,
{ _id: string; name: string; semitones: number; intervalStructure: string[] }
> = {
P1: {
_id: "interval-P1",
name: "Perfect Unison",
semitones: 0,
intervalStructure: ["P1", "P1"],
},
d2: {... |
<filename>src/vs/platform/telemetry/browser/telemetryService.ts<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license ... |
<gh_stars>0
import { Controller, Get, Post, Res, Body, Patch, Param, Delete, ParseIntPipe, UseInterceptors, UploadedFile, UploadedFiles} from '@nestjs/common';
import { FileInterceptor, FilesInterceptor ,FileFieldsInterceptor ,AnyFilesInterceptor } from "@nestjs/platform-express";
import { UsersService } from './users.... |
/** @jsx jsx */
import {
React, css, jsx, ActionSettingProps, SerializedStyles, ImmutableObject, DataSourceManager,
themeUtils, ThemeVariables, polished, getAppStore, Immutable, UseDataSource, IMUseDataSource
} from 'jimu-core'
import { SettingSection } from 'jimu-ui/advanced/setting-components'
import { ArcGISData... |
<gh_stars>0
import {NoUpdate, StateHandler, StateView} from "./state_handler";
import {Identity} from "../data/messages";
import {NotebookStateHandler} from "./notebook_state";
import {SocketSession} from "../messaging/comms";
import {NotebookMessageReceiver} from "../messaging/receiver";
import {
NotebookMessageDi... |
<reponame>B10532021/Web-based-mahjong-gossip-client
import * as Three from "three";
import { Signal } from "@robotlegsjs/signals";
import State from "./../State";
export default class LoadState extends State {
public loadQueue: Loadable[] = [];
public parallel: boolean = false;
public sep... |
<reponame>xtokenmarket/js<filename>src/blockchain/exchanges/uniswap.ts
import { BigNumber } from '@ethersproject/bignumber'
import { BaseProvider } from '@ethersproject/providers'
import {
ChainId,
Fetcher,
Percent,
Route,
Token,
TokenAmount,
Trade,
TradeType,
WETH,
} from '@uniswap/sdk'
import {
AD... |
import type * as d from '../declarations';
import type { ServerResponse } from 'http';
import { responseHeaders, getSsrStaticDataPath } from './dev-server-utils';
import { appendDevServerClientScript } from './serve-file';
import { catchError, isFunction, isString } from '@utils';
import path from 'path';
export async... |
import {
Commands, InputPayload, WorkerPayload,
WorkerPayloadCommand, InputPayloadCommand, PortName, KeyboardCommands,
queryCurrentTab, ContextCommands
} from './messages';
// key: tab.id, value: url string or null if not in summary mode
let tabsInSummaryMode: { [tabid: number]: string | undefined } = {};
... |
import React, { FC, useState } from 'react';
import { Box, IconButton, ListItemIcon, Menu, MenuItem } from '@mui/material';
import { useMRT } from '../useMRT';
import type { MRT_HeaderGroup } from '..';
import { MRT_FilterTypeMenu } from './MRT_FilterTypeMenu';
import { MRT_ShowHideColumnsMenu } from './MRT_ShowHideCol... |
import { createDisplay } from '../display';
// import gameInput from '../game-input';
// import global from 'shattered-game/global';
// import gameCommands from '../game-commands';
// import ROT from 'rot-js';
import Screen from './Screen';
// import inventoryScreen from './inventoryScreen';
// import {postal} from 'sh... |
import Avataar from "avataaars";
import React from "react";
import "./Avatar.scss";
import classNames from "classnames";
import {getColorClassName, getColorForIndex} from "../../constants/colors";
import {
AVATAR_ACCESSORIES_TYPES,
AVATAR_CLOTHE_COLORS,
AVATAR_CLOTHE_TYPES,
AVATAR_EYE_TYPES,
AVATAR_EYEBROW_TY... |
<gh_stars>0
import {fetchDB2} from '../../core/fetcher';
interface EncounterInfo {
id: number,
name: string,
bossIndex: number
}
interface WingInfo {
orderIndex: number,
instanceID: number,
wingName: string,
expansionLevel: number,
parent?: number,
level?: number,
soloID?: numb... |
import isNil from '@tinkoff/utils/is/nil';
import prop from '@tinkoff/utils/object/prop';
import { resolve } from 'path';
import type { ProjectType, BuildType } from '../typings/projectType';
import type { Env } from '../typings/Env';
import type { ConfigEntry, Experiments } from '../typings/configEntry/common';
import... |
import Taro from "@tarojs/taro";
const { useState, useRef, useMemo } = Taro /** api **/;
import "./index.less";
import { View, Block } from "@tarojs/components";
import { useMemoClassNames, isExternalClass, isNormalClass, useMemoAddUnit } from "../utils"
import VanLoading from "../Loading";
import VanPickerCol, { VanPi... |
<filename>components/apps/Terminal/functions.ts
import { commands as gitCommands } from "components/apps/Terminal/processGit";
import type { LocalEcho } from "components/apps/Terminal/types";
import processDirectory from "contexts/process/directory";
export const help = (
localEcho: LocalEcho,
commandList: R... |
import { Injectable } from '@angular/core';
import { ConfigModel } from 'src/app/models/config.model';
import { Endpoint } from 'src/app/models/endpoint.model';
import { Utils } from 'src/app/services/util/common.utils';
@Injectable({ providedIn: 'root' })
export class LoadConfigService {
errorMsg: ErrorMessage;
... |
import { useMemo } from "react"
import { useNavigate, useLocation, useParams } from "react-router-dom"
import { useTranslation } from "react-i18next"
import * as api from "../../api"
import { useMatomo } from "matomo"
import { CorrectionStatus, Lot, LotStatus } from "transactions/types"
import { useQuery, useMutation }... |
/**
* @module botbuilder-dialogs
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { CardAction } from 'botbuilder-core';
import { findValues, FindValuesOptions, FoundValue, SortedValue } from './findValues';
import { ModelResult } from './modelResult';... |
/**
* @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 {types as graphQLTypes} from 'typed-graphqlify';
import {Commit} from '../../commit-message/parse';
import {g... |
import { ExecutableProcess, ProcessStateUnavailable, Product, ProductTransformingProcess } from 'src/app/riesgos/riesgos.datatypes';
import { WizardableProcess } from 'src/app/components/config_wizard/wizardable_processes';
import { WmsLayerProduct } from 'src/app/riesgos/riesgos.datatypes.mappable';
import { Observabl... |
<reponame>sethmjackson/web
/**
* Override the type definitions of EventEmitter2
*
* `off` takes a string array in the same way that `on` does for namespaced events
* The type definition in `eventemitter2` v5.0.1 only allows for `string`
* We should be able to remove this if we upgrade to the latest version (6.x)
... |
<filename>src/commands/test.ts
import { Command, flags } from '@oclif/command';
import { commonFlags } from '../common';
import { createWithClientFromFlags, MessageGetResponse, WittyClient } from '../wit/client';
import { withErrorsAndOutput } from '../utils/output';
import { promises } from 'fs';
import { isEqual } fr... |
import {Injectable} from "@angular/core";
import {Ng2BalloonMsgService} from "@synerty/ng2-balloon-msg";
import {DeviceUpdateTuple} from "./tuples/DeviceUpdateTuple";
import * as http from "http";
import {DeviceServerService} from "./device-server.service";
import * as fs from "file-system";
// import * as fsa from "f... |
/**
* @author <NAME> <<EMAIL>>
*/
import { createState, DevTools, useState, none, Downgraded } from '@hookstate/core'
import { FeedActionType } from './FeedActions'
import { FeedShort, Feed } from '@xrengine/common/src/interfaces/Feed'
const state = createState({
feeds: {
feeds: [] as Array<Feed>,
feedsFe... |
import { isLeft } from 'fp-ts/lib/Either';
import * as io from 'io-ts';
import { ErrorLevel, ErrorType } from 'ErrorHandler';
import {
CheckpointStorageType, ExperimentSearcherName, HyperparameterType, LogLevel, RunState,
} from 'types';
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
export const... |
import { join, normalize, relative } from '../utils/path';
import { parse as parseToml, convert as convertToToml } from '../utils/toml';
import { pathExists, readFile, writeFile } from '../utils/fs';
import { manifestNotFound } from '../errors';
import { Version } from './version';
import { Source, parseSrc } from './s... |
/* eslint valid-jsdoc: "off", complexity: "off", no-unused-vars: "off", @typescript-eslint/naming-convention: "off" */
/** @ts-nocheck - Turn this on to ignore this file !*/
"use strict";
/** Import Application Placeholder from Egg:Modules !*/
import "egg";
/** Import ENUMS & CONSTANTS !*/
import {/*USER_STATUS*/} f... |
import { IPost, IArchiveFilter, IArchiveResponse, IArchiveRequest, IArchiveFilterRange, isFilterValid, IPostDayReference } from 'oftheday-shared';
import { SheetsService } from '../../services/google-sheets/sheets-service';
import { log, notNull } from '../../services/util';
import { MemoryCache } from '../../services/... |
<reponame>Roxolasu/noita-tools
export const createImage = (w, h) => {
const can = document.createElement('canvas');
can.width = w;
can.height = h;
const ctx = can.getContext('2d')!;
ctx.imageSmoothingEnabled = false;
return can;
};
export const copyImage = img => {
const image = createImage(img.width, img.heigh... |
import { Injectable } from '@angular/core';
import { JwtHelperService } from '@auth0/angular-jwt';
import { filter, } from 'rxjs/operators';
import { ActivatedRoute, Router } from '@angular/router';
import {Globals} from '../../../assets/data/globals'
export interface Tag {
color: string; // Background Color
value:... |
<gh_stars>0
import ActorCarRoy from './actor/entity';
export async function prepareMainClass(actor: any, itemData: any = null, cls: any = null) {
if (itemData === null) itemData = { name: null, data: { levels: 0 } };
let main = actor.itemTypes.class.reduce((a: null | any[] | any, b: { data: { data: { levels: numbe... |
<filename>node_modules/snyk-python-plugin/lib/dependencies/inspect-implementation.ts
import * as fs from 'fs';
import * as path from 'path';
import * as tmp from 'tmp';
import * as subProcess from './sub-process';
import { legacyCommon } from '@snyk/cli-interface';
import { FILENAMES } from '../types';
import { EmptyM... |
import { CalendarDate } from './calendar';
import { CalendarConstants } from './constants';
import { DateField } from './fields';
import { floorDiv } from './utils';
import { TimePeriod } from './interval';
import { CalendarDateFields } from './types';
/**
* Construct a date using the rules of the Persian calendar.
... |
<reponame>gearheartio/tui.chart
import Component from './component';
import { AxisData, ChartState, LabelAxisData, Options, Scale, Series } from '@t/store/store';
import { RectResponderModel, RectModel } from '@t/components/series';
import { isNull, range } from '@src/helpers/utils';
import { sortNumber } from '@src/he... |
import { LitElement, html, nothing } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { navigator } from '@addasoft/lit-element-router';
import './../app-link/app-link';
import musicdb from '../musicdb';
import container from '../../styles/container';
import headers from '../../styles/he... |
<gh_stars>0
import { componentUid, htmlEncode, Is } from './helper';
export interface ItemRenderEntry {
(val: string, index?: number, row?: any, srcName?: string): string;
}
export interface ItemRender {
[renderName: string]: ItemRenderEntry;
}
export interface ItemFilter {
(row: any, index: number): any;
}
expo... |
import { yupResolver } from '@hookform/resolvers/yup'
import {
FormHelperText,
InputLabel,
MenuItem,
Select,
TextField
} from '@material-ui/core'
import ArrowBackIcon from '@material-ui/icons/ArrowBack'
import Head from 'next/head'
import Link from 'next/link'
import React, { useCallback, useState } from 'rea... |
<filename>src/m365/file/commands/file-list.ts
import { Drive, DriveItem, Site } from '@microsoft/microsoft-graph-types';
import { AxiosRequestConfig } from 'axios';
import { Logger } from '../../../cli';
import {
CommandOption
} from '../../../Command';
import GlobalOptions from '../../../GlobalOptions';
import reque... |
<reponame>mkbabb/yajr
import { once } from "./utils";
type NestedAttribute = { [s: string]: string } | string;
interface Attributes {
[s: string]: NestedAttribute;
style?: { [s: string]: string };
html?: string;
}
interface DollarEventTarget<T> {
on: (name: string, func: (event: Event) => void) => T ... |
<filename>source/modules/CryptographicMessageSyntax/OtherKeyAttribute.ta.ts
/* eslint-disable */
import {
ASN1Element as _Element,
ASN1TagClass as _TagClass,
OBJECT_IDENTIFIER,
OPTIONAL,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
export { OTHER_KEY_ATTRIBUTE } from "../... |
<reponame>zaida04/Yoki<gh_stars>0
import { Argument } from "discord-akairo";
import { Command } from "discord-akairo";
import { Role } from "discord.js";
import { CategoryChannel } from "discord.js";
import { GuildChannel } from "discord.js";
import { TextChannel, VoiceChannel } from "discord.js";
import { Message } f... |
import { FC, useMemo } from "react";
import { SVGOverlay, Circle } from 'react-leaflet';
import rhumbDestination from '@turf/rhumb-destination';
import { point } from '@turf/helpers';
import { StyledTooltip as Tooltip } from './Tooltip';
import { LatLngTuple } from 'leaflet';
import { IDevice } from '../TableColumns/de... |
export enum Primary {
// SAS
L85A2 = "l85a2",
M590A1 = "m590a1",
AR33 = "ar33",
FMG_9 = "fmg-9",
MP5K = "mp5k",
// FBI
G36C = "g36c",
R4_C = "r4-c",
M1014 = "m1014",
_556XI = "556xi",
UMP45 = "ump45",
// GIGN
F2 = "f2",
_417 = "417",
SG_CQB = "sg-cqb",
... |
<reponame>snoopy-cat/ng-aquila<filename>projects/ng-aquila/src/switcher/switcher.component.ts
import {
Component,
EventEmitter,
Input,
Output,
ChangeDetectionStrategy,
ChangeDetectorRef,
Optional,
Self,
DoCheck,
ViewChild,
ElementRef
} from '@angular/core';
import { ControlValueAccessor, FormContr... |
/**
* External dependencies
*/
import { ValidatedTextInput } from '@woocommerce/base-components/text-input';
import {
BillingCountryInput,
ShippingCountryInput,
} from '@woocommerce/base-components/country-input';
import {
BillingStateInput,
ShippingStateInput,
} from '@woocommerce/base-components/state-input';
i... |
/**
* Copyright 2020 Inrupt 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, publish, d... |
import "./main.scss";
import { $, lazyload, AnchorJS, Prism, initCookieDisclaimer } from "../common/vendor";
import "./pipeline.ts";
import "./changelog.ts";
function resetIndent(str) {
const leadingWhitespace = str.match(/^\n?( +)/);
if (leadingWhitespace) {
return str.replace(new RegExp(" {" + leadin... |
/**
* Copyright 2020 Vercel 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 t... |
import { Inject, Injectable, Logger } from '@nestjs/common';
import * as format from 'string-format';
import {
I18N_OPTIONS,
I18N_TRANSLATIONS,
I18N_LANGUAGES,
I18N_LANGUAGES_SUBJECT,
I18N_TRANSLATIONS_SUBJECT,
} from '../i18n.constants';
import { I18nOptions } from '..';
import { I18nTranslation } from '../i... |
<reponame>ferencbeutel4711/opentelemetry-operations-js
// Copyright 2020 Google 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.0
/... |
import React from "react";
import { Segment, Dimmer, Loader, Form, Grid, Button, Modal, Table, Header } from "semantic-ui-react";
import { IDishModel } from "../Model/DishModel";
import dishesRespository, { IDishRepositoryResponse } from "../Repositories/DishesRepository";
import PedidoSelect from "./PedidoSelect";
imp... |
// need to load patch first to load patch to support import and require
require('./instrumentation/instrumentation-patch');
import {AwsLambdaInstrumentation} from "@opentelemetry/instrumentation-aws-lambda";
import {NodeTracerProvider} from '@opentelemetry/sdk-trace-node';
import {BatchSpanProcessor, InMemorySpanExpor... |
<gh_stars>1-10
// IMPORTS
// ================================================================================================
import { Query, FieldDescriptor, SaveOriginalMethod } from '@nova/pg-dao';
import { Model, symMutable, symCreated, symDeleted, getModelClass, isModelClass } from './Model';
import { SessionError... |
<reponame>shieldwallets/MultiCurrencyWallet
import Web3 from 'web3'
import config from 'app-config'
import TokenAbi from 'human-standard-token-abi'
import { BigNumber } from 'bignumber.js'
import DEFAULT_CURRENCY_PARAMETERS from 'common/helpers/constants/DEFAULT_CURRENCY_PARAMETERS'
import TOKEN_STANDARDS from 'helpers... |
<filename>src/core/WindowService.ts<gh_stars>0
import React from "react";
import { BehaviorSubject } from "rxjs";
import { omitBy, isNil } from "lodash-es";
import MouseShakeDetector from "@/utils/MouseShakeDetector";
import RelativePosition from "@/utils/RelativePosition";
import Point from "@/utils/Point";
import LR... |
import { EventEmitter } from "events";
import { ClientContext } from "./ClientContext";
import { C as SIPConstants } from "./Constants";
import { DigestAuthentication, IncomingRequestMessage, IncomingSubscribeRequest, Logger, LoggerFactory, Transport, URI, UserAgentCore, UserAgentCoreConfiguration } from "./core";
impo... |
<filename>Tasks/HelmDeployV0/src/helm.ts
"use strict";
import tl = require('azure-pipelines-task-lib/task');
import path = require('path');
import * as commonCommandOptions from "./commoncommandoption";
import * as helmutil from "./utils"
import { AKSCluster, AKSClusterAccessProfile, AzureEndpoint } from 'azure-arm-... |
import assert from 'assert'
import { Send } from './db/models/transaction'
import type { DocumentQuery } from 'mongoose'
import type { WithdrawRequest } from '../../interfaces/transaction'
import type { SendRequestDoc } from './db/models/transaction'
type PromiseExecutor<T> = {
resolve: (value: T | PromiseLike<T>) =>... |
<gh_stars>10-100
import { cloudResFolder, cloudResFile, role } from "ecoledirecte-api-types/v3";
import { Account } from "../accounts";
import { fetchFile, getCloudFolder } from "../util";
export class Cloud {
public _root: cloudResFolder;
public _owner: Account;
constructor(root: cloudResFolder, owner: Account) {
... |
import { DialogContent, DialogOverlay } from "@reach/dialog";
import { Popover } from "@headlessui/react";
import {
Fragment,
useState,
useRef,
useEffect,
ReactNode,
useMemo,
} from "react";
import { LCDClient, Coin } from "@terra-money/terra.js";
import BigNumber from 'bignumber.js'
import {
useWallet,
... |
/*
* Copyright 2017-2018 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://aws.amazon.com/apache2.0/
*
* or in the "lic... |
<reponame>ujjwalguptaofficial/godam<filename>src/store.ts
import { Mutation, Task, Expression, Room } from "./abstracts";
import { EventBus, initRoom } from "./helpers";
import { IGodamRoom } from "./interfaces";
import { getNameAndModule, Observer, clone } from "./utils";
export interface IStore {
state: any;
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// tslint:disable-next-line: no-require-imports
import performanceNow = require("performance-now");
import "mocha";
import * as path from "path";
import { DefaultLocale, Lexer, Parser, ParseSettings, Task } from "../..";
import { TaskUtils } ... |
<filename>std/math/src/geom/Recta.ts
import {Matrix2D} from "./Matrix2D";
import {Vec2} from "./Vec2";
const TEMP_VEC2 = new Vec2();
export class Recta {
static readonly EMPTY: Readonly<Recta> = new Recta(0.0, 0.0, 0.0, 0.0);
static readonly UNIT: Readonly<Recta> = new Recta(0.0, 0.0, 1.0, 1.0);
x = Numb... |
<filename>packages/hop-node/src/watchers/classes/BaseWatcher.ts
import L1Bridge from './L1Bridge'
import L2Bridge from './L2Bridge'
import Logger from 'src/logger'
import Metrics from './Metrics'
import SyncWatcher from 'src/watchers/SyncWatcher'
import wait from 'src/utils/wait'
import { Chain } from 'src/constants'
i... |
import {SVGRenderingContext2D} from "./svg"
import {BBox} from "./bbox"
import {div, canvas} from "../dom"
import {OutputBackend} from "../enums"
export type CanvasPatternRepetition = "repeat" | "repeat-x" | "repeat-y" | "no-repeat"
export type Context2d = {
createPattern(image: CanvasImageSource, repetition: Canva... |
/*
* Copyright 2014-2016 <NAME> <<EMAIL>>
*
* This source code is licensed under the MIT license which is detailed in the LICENSE.txt file.
*/
/**
* Convert a value to a boolean.
*
* @param {Object} value The value to parse and convert.
* @param {Boolean} defaultValue (Optional) The default value if the input... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.