text stringlengths 3.07k 16k |
|---|
const Mutation = require('../mutation')
function AVROperator() {}
AVROperator.prototype.ID = 'AVR'
AVROperator.prototype.name = 'address-value-replacement'
AVROperator.prototype.getMutations = function(file, source, visit) {
const mutations = []
var prevRange;
var literalAddress = [] //Unique literal addresses... |
class UserManagement {
constructor() {
this.init();
}
async init() {
let self = this;
self.router = new Router();
self.setupProgress = await self.router.init();
if(self.setupProgress){
self.loadResources();
self.initializeEvents();
}else{
Utilities.hideLoader();
... |
import React, { Component } from 'react';
// bootstrap imports
import Accordion from 'react-bootstrap/Accordion';
import Card from 'react-bootstrap/Card';
import Button from 'react-bootstrap/Button';
import ButtonGroup from 'react-bootstrap/ButtonGroup';
import ProgressBar from 'react-bootstrap/ProgressBar';
import Spi... |
$(document).ready(function(){
// AddTask Event
$('#add-task-form').on('submit', function(e){
addTask(e);
});
// Edit Event
$('#edit-task-form').on('submit', function(e){
updateTask(e);
});
// Remove Event
$('#task-table').on('click', '#remove-task', function(){
id = $(this).data('id');
removeTask(id);... |
const util = require('util')
const async = require('async')
const _ = require('lodash')
const io = require('socket.io-client')
const debug = require('debug')('botium-GridContainer')
const Commands = require('../Commands')
const Events = require('../Events')
const Capabilities = require('../Capabilities')
const BaseCon... |
/* eslint no-loop-func: 0*/
/* eslint no-console:0 */
export function generateData(x = 3, y = 2, z = 1, gData = []) {
// x:每一级下的节点总数。y:每级节点里有y个节点、存在子节点。z:树的level层级数(0表示一级)
function _loop(_level, _preKey, _tns) {
const preKey = _preKey || '0';
const tns = _tns || gData;
const children = [];
for (le... |
import { makeStyles, List } from '@material-ui/core';
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
const useStyles = makeStyles(() => ({
list: {
overflowX: 'hidden',
},
listItem: {},
}));
const generateKey = (item) => {
if (typeof item === typeof '') {
return item;
}... |
/**
* handling rest server with request and response. This is a complete state less
* process. Does not has cookie, session at all.
*/
var httpUtil = require('http_util'),
fs = require('fs'),
log = require('log').init("restServer","info"),
util = require('util');
var RestServer = function() {
this.su... |
import React, { Component } from 'react';
import { PropTypes as T } from 'prop-types';
import styled from 'styled-components';
import { connect } from 'react-redux';
import get from 'lodash.get';
import { tint } from 'polished';
import { registerHit } from '../../../redux/sessions';
import { getTarget } from '../../..... |
// test ConstantNode
var assert = require('assert');
var approx = require('../../../tools/approx');
var math = require('../../../index');
var bigmath = require('../../../index').create({number: 'BigNumber'});
var Node = math.expression.node.Node;
var ConstantNode = math.expression.node.ConstantNode;
var SymbolNode = ma... |
'use strict';
exports.__esModule = true;
var _AccountBox = require('@material-ui/icons/AccountBox');
var _AccountBox2 = _interopRequireDefault(_AccountBox);
var _Brightness = require('@material-ui/icons/Brightness2');
var _Brightness2 = _interopRequireDefault(_Brightness);
var _Brightness3 = require('@material-ui... |
/* eslint-disable react/no-unused-prop-types */
/* eslint-disable react/require-default-props */
/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import styled from 'styled-components/native';
import {
View,
Text,
ScrollView,
Dimensions,
Platform,
} from 'react-native';
import... |
//Exercício 01
class Usuario
{
constructor(email, senha)
{
this.email = email;
this.senha = senha;
this.admin = false;
}
isAdmin()
{
return this.admin;
}
}
class Admin extends Usuario
{
constructor(email, senha)
{
//Chama o construtor da classe pai
super(email, senha);
thi... |
var torque = require('../../lib/torque');
QUnit.module('renderer/point');
var DEFAULT_CARTOCSS = [
'Map {',
' -torque-resolution: 1;',
'}',
'#layer {',
' marker-fill: #662506;',
' marker-width: 4;',
' [value > 1] { marker-fill: #FEE391; }',
' [value > 2] { marker-fill: #FEC44F; }',
' [value > 3... |
/**
* MIT License
*
* Copyright (c) 2017-present, Elasticsearch BV
*
* 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 ... |
/*
* Copyright (C) 2021 Inria
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Versi... |
function geraCabecalho(nomeVariavel) {
// processo de geração de cabeçalho da tabela :
let cabecalho = `<table class="table-responsive table table-striped table-hover mx-auto w-auto" border='1'>
<tr class='linhaCabec'>
<th>${nomeVariavel}</th>
... |
import template from './sw-tabs.html.twig';
import './sw-tabs.scss';
const { Component, Feature } = Shopware;
const util = Shopware.Utils;
const dom = Shopware.Utils.dom;
/**
* @public
* @description Renders tabs. Each item references a route or emits a custom event.
* @status ready
* @example-type static
* @com... |
'use strict';
require('es6-promise').polyfill();
const gulp = require('gulp');
const tslint = require('gulp-tslint');
const changed = require('gulp-changed');
const minifyHtml = require('gulp-minify-html');
const concat = require('gulp-concat');
const uglify = require('gulp-uglify');
const autoprefix = require('gulp-a... |
// Simple convolution benchmark (parallel version)
// 2014-03-05 / <EMAIL>
//
// For testing, run like this:
//
// js cat-convolve-mapPar.js | ./unhex > out.pgm
//
// For benchmarking, set 'benchmark' to true and run like this:
//
// js cat-convolve-mapPar.js
if (!getBuildConfiguration().parallelJS || !this.TypedObj... |
importPackage(java.lang);
importPackage(java.sql);
importPackage(java.util);
importPackage(java.io);
importPackage(Packages.javax.xml);
importPackage(Packages.javax.xml.parsers);
importPackage(Packages.javax.xml.transform);
importPackage(Packages.javax.xml.transform.dom);
importPackage(Packages.javax.xml.transform.stre... |
/* eslint-disable camelcase */
const selectn = require('selectn');
const EventsNode = require('./EventsNode');
const RenderTemplate = require('../helpers/mustache-context');
const { HA_CLIENT_READY } = require('../const');
const domainsNeedingArrays = [
'homeassistant',
'input_datetime',
'input_number',
]... |
/* eslint-disable camelcase */
const {
statTemplate, pets, petData, petItems, petSkins, rarityColors,
} = require('../constants');
const util = require('../util');
const {
capitalizeFirstLetter, titleCase, removeZeroes, modifyStats, round, getPetLevel,
} = util;
const petRarity = [
'common',
'uncommon',
'ra... |
'use strict';
const Promise = require('bluebird');
const path = require('path');
const Config = require('../../../config');
const mailgun = require('mailgun-js')({apiKey: Config.get('/mailgun/apiKey'), domain: Config.get('/mailgun/domain')});
const mailcomposer = require('mailcomposer');
const pug = require('pug');
co... |
export const BACKGROUNDS = [
['Test subject', 'Spell: Magic missile', 'Lead coat (heavy armour)'],
['Kitchen forager', 'Shield & jerkin (light armour)', 'Cookpots'],
['Cage dweller', 'Spell: Be understood', 'Bottle of milk'],
['Hedge witch', 'Spell: Heal', 'Incense stick'],
['Leatherworker', 'Shiel... |
//utiles
//document.getElementsByClassName('class_name')[whole_number].value
// document.querySelector('selector').value
//document.getElementById('check1').checked
// name.options[select.selectedIndex].value
/*function sendForm() {
var valido = false; //DEBERIAS REALIZAR LAS VALIDACIONES
alert("EN... |
/*!
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* Copyright (C) 2021 Nokia
*
* 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... |
const { SlashCommandBuilder } = require('@discordjs/builders');
const {Aki} = require("aki-api");
const Discord = require("discord.js")
async function askQuestion(message, aki) {
setTimeout(async ()=>{
let bot = message.client;
let btn1 = new Discord.MessageButton()
.setCustomId("0"... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.writeJson = exports.getBlockInfo = void 0;
var generate_config_1 = require("../generate_config");
var fs = require("fs-extra");
var path = require("path");
var color_log_1 = require("../color_log");
var VersionList = [];
var GroupList ... |
// p5 code goes here
// include this for to use autofill in vscode
// see https://stackoverflow.com/questions/30136319/what-is-reference-path-in-vscode
/// <reference path="../shared/p5.d/p5.d.ts" />
/// <reference path="../shared/p5.d/p5.global-mode.d.ts" />
// variable to hold all poses
let allPoses = [];
// Confi... |
var Util = require('../../util/index');
var Event = require('../../event');
var EVENTS = ['mousedown', 'mouseup', 'dblclick', 'mouseenter', 'mouseout', 'mouseover', 'mousemove', 'mouseleave']; // 获取当前时间
var getNowTime = function getNowTime() {
var now = new Date();
return now.getTime();
};
var CLICK_OFFSET = 40... |
import React from 'react';
import autoBind from 'react-autobind';
import { List } from './List.js';
const reset = (props) => {
if (!props.value) {
console.log("DoubleListBox props 'value' field is missing.");
}
if (!props.choices) {
console.log("DoubleListBox props 'choices' field is mi... |
var util = require('util'),
Base = require('mocha').reporters.Base;
function AppVeyorReporter(runner, options) {
Base.call(this, runner);
this.options = (options && options.reporterOptions) || {};
// Default options
this.options.appveyorApiUrl = process.env.APPVEYOR_API_URL || this.options.appveyorApiUrl... |
/**
* @author mrdoob / http://mrdoob.com/
*/
import { Cache } from "./Cache.js";
import { Loader } from "./Loader.js";
const loading = {};
function FileLoader(manager) {
Loader.call(this, manager);
}
FileLoader.prototype = Object.assign(Object.create(Loader.prototype), {
constructor: FileLoader,
load: functio... |
var request = require('request');
var parseString = require('xml2js').parseString;
var Service, Characteristic;
module.exports = function(homebridge) {
Service = homebridge.hap.Service;
Characteristic = homebridge.hap.Characteristic;
homebridge.registerAccessory("homebridge-marantz-volume", "marantz-volum... |
import dagre from 'dagre';
import { isNode } from 'react-flow-renderer';
export const setupDag = (elements, nodeWidth, nodeHeight) => {
const dagreGraph = new dagre.graphlib.Graph();
dagreGraph.setDefaultEdgeLabel(() => ({}));
dagreGraph.setGraph({ rankdir: 'TB' });
elements.forEach((el) => {
if (isNode(e... |
import * as legacyProxy from "./es5"
import * as modernProxy from "./proxy"
import {applyPatches, generatePatches} from "./patches"
import {
assign,
each,
has,
is,
isDraft,
isDraftable,
isEnumerable,
shallowCopy,
DRAFT_STATE,
NOTHING
} from "./common"
function verifyMinified() {... |
import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
import {
checkIfRelativeUrlPath,
checkOnMedia,
generateSources,
generateUrl,
getAdaptiveSize,
getImgSrc,
getParentWidth,
getSizeAccordingToPixelRatio
} from './utils';
import LazyLoad from 'react-lazyload';
class Backgr... |
/**
* 宽带在线用户查看
* @class
* @extends Ext.grid.GridPanel
*/
var BandOnlinUserForm = Ext.extend(Ext.form.FormPanel, {
grid:null,
constructor: function(grid){
this.grid = grid;
BandOnlinUserForm.superclass.constructor.call(this, {
layout:'column',
region:'north',
height:70,
bodyStyle:'padd... |
// Copyright 2017 The Chromium Authors. All
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview using private properties isn't a Closure violation in tests.
* @suppress {accessControls}
*/
let id = 0;
function nextId(prefix) {
return (prefi... |
import React, { Component } from "react";
import { ListView } from "antd-mobile";
function MyBody(props) {
return (
<div className="am-list-body my-body">
<span style={{ display: 'none' }}>you can custom body wrap element</span>
{props.children}
</div>
);
}
const data = [
{
img: 'https:/... |
const config = require('./config');
const express = require('express'),
ioServer = require('socket.io'),
http = require('http'),
router = require('./js/modules/router'),
coronaApi = require('./js/modules/corona-api'),
twitterApi = require('./js/modules/twitter-api'),
app = express(),
server... |
class Data {
constructor(opts) {
this.type = opts.type;
this.n = opts.n; // Must be even
if (this.type == 'gaussian') {
this.data = this.generate_data_gaussian();
this.extent = {x:[-3,3],y:[-3,3]}
}
}
// Data creation functions
generate_... |
import {run} from './integration/lib/expression.js';
import {createPropertyExpression} from '../src/style-spec/expression/index.js';
import {isFunction} from '../src/style-spec/function/index.js';
import convertFunction from '../src/style-spec/function/convert.js';
import {toString} from '../src/style-spec/expression/t... |
const $ = require('jquery');
const _ = require('underscore');
const React = require('react');
const URI = require('urijs');
const Filters = require('./Filters');
const SearchResults = require('./SearchResults');
const Pagination = require('./Pagination');
const Tags = require('./Tags');
class LegalSearch extends React... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/he... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use stric... |
import React, {Fragment, Component} from "react";
import {Button} from "helpers/reactstrap";
import {
FaBan,
FaFolderOpen,
FaFolder,
FaUpload,
FaShare,
FaRegFileVideo,
FaRegFileAudio,
} from "react-icons/fa";
import ObjPreview from "../TacticalMap/3dObjPreview";
import Measure from "react-measure";
import... |
const dotenvExtended = require('dotenv-extended');
const dotenvParseVariables = require('dotenv-parse-variables');
const algoliasearch = require('algoliasearch');
const ALGOLIA_APP_ID = process.env.ALGOLIA_APP_ID;
const ALGOLIA_API_KEY = process.env.ALGOLIA_SEARCH_API_KEY;
const ALGOLIA_INDEX_NAME = process.env.ALGOLIA... |
if (process.env.NODE_ENV !== 'production') {
require('babel-register');
}
// Only do the minimal amount of work before forking just in case of a dyno restart
var cluster = require("cluster");
var _ = require('lodash');
var nconf = require('nconf');
var utils = require('./libs/utils');
utils.setupConfig();
var logging... |
import React, { Component } from 'react'
import { throttle } from 'lodash-es'
const registerObserver = (el, callback) => {
const observer = new IntersectionObserver(
(entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
callback()
... |
/**
* @file Adds rulers to the canvas.
* @author awilkey
*/
import paper from 'paper';
import {formatColor} from '../Utilities';
/**
*
* @param backbone
* @param config
* @param view
*/
export default function layoutRulers(backbone, config, view) {
// Establish layers and core groups
let baseLayer = pape... |
'use strict';
const fs = require('fs');
const pify = require('util').promisify;
const Emitter = require('events');
const {
join,
dirname,
relative,
sep,
} = require('path');
const mkdirp = pify(require('mkdirp'));
const rmrf = pify(require('rimraf'));
const Controller = require('./controller');
const { link ... |
/**
* Copyright 2019 The AMP HTML 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 require... |
module.exports = Traffic;
var inherits = require('inherits');
var EventEmitter = require('events').EventEmitter;
var sqrt = Math.sqrt
, POSITIONX = 0
, POSITIONY = 1
, SPEEDX = 2
, SPEEDY = 3
, ACCELERATIONX = 4
, ACCELERATIONY = 5;
function Traffic(opts, callback) {
if (!(this instanceof Traffic)) ret... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
console.log("in single_device_delegator.js");
var dict = require('dict');
var q = require('q');
var constants = require('../common/constants');
var io_endpoint_key = constants.io_manager_endpoint_key;
var process_manager = require('process_manager');
var slave_process = process_manager.slave_process();
var single_d... |
String.prototype.trim = function () {
return this.replace(/(^\s+)|(\s+$)/g, '')
}
// 显示消息
function showMessage(msg) {
var w = window.parent;
while (w.parent != w) {
w = w.parent;
}
var data = {
msgtype: "msg",
msg: msg
}
w.postMessage(data, "*");
}
... |
import { Mongo } from 'meteor/mongo';
import SimpleSchema from 'simpl-schema';
class cpusCollection extends Mongo.Collection {
insert(component, callback) {
return super.insert(component, callback);
}
}
export const cpus = new cpusCollection('cpus');
// Deny all client-side updates since we will be using met... |
// We will define "Likeness" as the global variable used to access the API.
var Likeness = {};
// Global variables used by Likeness.
Likeness.TEMPLATE_MAP = {};
Likeness.OBSERVABLE_GENERATOR_MAP = {};
// ObservableValue is the lowest-level binding element and it actually contains data.
// This means that it needs to... |
//导入工具包 require('node_modules里对应模块') -- 配置插件
var gulp = require('gulp'),
minfycss = require('gulp-minify-css'), //-css压缩
uglify = require('gulp-uglify'), //-js压缩
minifyHTML = require("gulp-htmlmin"); //html压缩
imagemin = require('gulp-imagemin'), // 图片压缩
pngquant = require('imagemin-pngquant'), // 深... |
const HTTP = {
URL_SEPARATOR: '/',
REQUEST: {
METHOD: {
GET: 'GET',
POST: 'POST',
PUT: 'PUT',
DELETE: 'DELETE',
UPDATE: 'UPDATE'
}
},
RESPONSE: {
STATUS: {
NO_RESPONSE: {code: 0, message: 'No response'},
OK: {code: 200, message: 'Ok'},
NOT_MODIFIED: {c... |
'use strict';
var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; desc = parent = getter = undefined; _again = false; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getProtot... |
import React from 'react'
import List from '@material-ui/core/List'
import ListItem from '@material-ui/core/ListItem'
import ListItemText from '@material-ui/core/ListItemText'
import Toolbar from '@material-ui/core/Toolbar'
import Typography from '@material-ui/core/Typography'
import Icon from '@mdi/react'
import IconB... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const chalk = require("chalk");
const cli_utils_1 = require("@ionic/cli-utils");
const command_1 = require("@ionic/cli-utils/lib/command");
const errors_1 = require("@ionic/cli-utils/lib/errors");
const CHOICE... |
// Variables
const marca = document.querySelector('#marca');
const year = document.querySelector('#year');
const minimo = document.querySelector('#minimo');
const maximo = document.querySelector('#maximo');
const puertas = document.querySelector('#puertas');
const transmision = document.querySelector('#transmision');
c... |
const canvas = document.getElementById( "testSurface" );
const ctx = canvas.getContext( '2d' );
const BASE_COLOR_WHITE = [255,255,255,255];
const BASE_COLOR_BLACK = [0,0,0,255];
const BASE_COLOR_RED = [255,0,0,255];
const BASE_COLOR_BLUE = [0,0,255,255];
const BASE_COLOR_GREEN = [0,255,0,255];
function ColorAverage... |
const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
const base64 = require('js-base64').Base64;
const popCore = require('@alicloud/pop-core');
const inquirer = require('inquirer');
const shell = require('shelljs');
const child_process = require('child_process');
var PublishError = nu... |
const tier1 = 1.25;
const tier2 = 1;
const tier3 = 0.75;
const reduction1 = 0.25;
const reduction2 = 0.5;
const reduction3 = 0.75;
const reduction4 = 1;
const bonus1 = 0.25;
const bonus2 = 0.5;
const bonus3 = 0.75;
const bonus4 = 1;
const triggers = [
//TIER1
[/(r' R r )|(R' B R )|(B' b B )|(b' r b )/g, /(r' R... |
/**
* Sample for list-view in splitter
*/
var commonData = [];
var dataSource = {};
var listObj;
var liElement;
this.default = function () {
var splitterObj = new ej.layouts.Splitter({
height: '292px',
paneSettings: [
{ size: '35%', min: '25%' },
{ size: '65%', min: '45%' ... |
//Utility Functions
function formatDateString(date,month,year){
var formattedResult = "";
var monthShortNames=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
var yearElements = void 0;
var shortYear = void 0;
date = ""+date;
if(date.length === 1){
date = "0"+d... |
const process = require('process')
const fs = require('fs')
const path = require('path')
const fse = require('fs-extra')
const replaceInFiles = require('replace-in-files')
const thisRepoRootDir = path.resolve(__dirname, '..')
const embedRepoPackagesDir = path.resolve(
__dirname,
'..',
'..',
'embed',
'packag... |
'use strict';
var $ = require('jquery');
var L = require('leaflet');
var defined = require('./defined');
var roofMaterials = [
'roof_tiles',
'slate',
'metal',
'copper',
'concrete',
'glass',
'tar_paper',
'eternit',
'gravel',
'grass',
'plants',
'stone',
'thatch'
];
v... |
import { expect } from 'chai';
import proxyquire from 'proxyquire';
import sinon from 'sinon';
const DEFAULT_PRIORITY = 3;
let MinutesSchema = {
minutes: [],
find: function() {
return this.minutes;
},
update: sinon.stub(),
insert: function(minute) {
this.minutes.push(minute);
... |
'use strict';
var _ = require('lodash');
var moment = require('moment-timezone');
var beans = require('simple-configure').get('beans');
var misc = beans.get('misc');
var dashboardService = beans.get('dashboardService');
var groupsAndMembersService = beans.get('groupsAndMembersService');
var wikiService = beans.get('wi... |
const Discord = require('discord.js');
const evallog = new Discord.WebhookClient({ id: global.bot.config.webhooks['eval-log'][0], token: global.bot.config.webhooks['eval-log'][1] });
const fs = require('fs');
const clean = text => {
if (typeof (text) === "string")
return text.replace(/`/g, "`" + String.fro... |
import React, { useEffect, useState, createRef } from 'react'
import {
CCol, CBadge,
CCard,
CCardBody,
CCardHeader,
CDataTable,
CButton,
CRow,
CSelect,
CInputCheckbox,
CLabel,
CFormGroup
} from '@coreui/react'
//import usersData from '../users/UsersData'
import APIService from '../../services/API... |
import React from 'react';
import PropTypes from 'prop-types';
import { get } from 'lodash';
import compose from 'compose-function';
import { stripesConnect } from '@folio/stripes/core';
import { withTags } from '@folio/stripes/smart-components';
import { Tags } from '@folio/stripes-erm-components';
import View from ... |
import React, {Fragment, useEffect, useState} from 'react';
import ProfileGameList from './ProfileGameList';
import {connect} from 'react-redux';
import {loadUser, userUpdate, userDelete, logout} from '../../actions/loginActions';
import { getUserGames, createTheGame, deleteGame } from '../../actions/gameActions';
impo... |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
'use strict';
const uuid = require('uuid');
const axios = require('axios');
const AWS = require('aws-sdk');
const DynamoDB = require('aws-sdk/clients/dynamodb');
const ddb = new AWS.DynamoDB();
const documentC... |
// Node Modules
import React, { Fragment, useContext, useEffect } from 'react';
import PropTypes from 'prop-types';
import { Box, Typography, Button } from '@material-ui/core';
import { Close as CloseIcon, ArrowBack as ArrowBackIcon } from '@material-ui/icons';
import { makeStyles } from '@material-ui/core/styles';
// ... |
'use strict'
const fs = require('fs');
const rp = require('request-promise');
const path = require('path');
const re = new RegExp('^_');
let host = "http://www.hl7.org/fhir/STU3/";
let BASE_DIR = path.join(__dirname, 'fhir', 'schema')
const getResourceName = (resource) => {
let id = resource.id.split('/')
re... |
"use strict";
var PgPool = require('pg').Pool;
function PersPg(dbConfig) {
this.name = "postgres";
this.connection = null; //actually a pg pool.
this.config = dbConfig;
}
function execOrQuery (adapter, type, query, values) {
if (values == undefined) values = [];
if (!Array.isArray(values)) values = [values]... |
/**
* Created by <NAME> <<EMAIL>>
*
* Brute force scan of the network looking for ONVIF devices
* Displays the time and date of each device
* the make and model
* the default RTSP address
* This DOES NOT use ONVIF Discovery. This softweare tries each IP address in
* turn which allows it to wor... |
import React from 'react';
import PropTypes from 'prop-types';
import ComplianceReportingStatusHistory from './ComplianceReportingStatusHistory';
import { formatNumeric } from '../../utils/functions';
const ScheduleAssessmentPage = props => (
<div className="schedule-assessment">
<ComplianceReportingStatusHisto... |
const assert = require('assert');
const { getWeightFromPackage } = require('../utils/package-weight');
const { CIRCLE_NODE_INDEX, CIRCLE_NODE_TOTAL } = process.env;
/**
* Asserts that the `split` and `partition` values are valid.
*
* @param {number} split The total number of chunks.
* @param {number} partition T... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require("fs-extra");
const filenameUtils = require("./filename-utils");
const constants = require("../.constants");
const ariaTools = require("./aria-tools.js");
const msgTools = require("../bot_utils/msg-tools.js");
const dlm = req... |
let seeds, valNodeId, valIPv4, valPort, sentry1Id, sentry1Ipv4, sentry1Ipv6, sentry1Port, sentry2Id, sentry2Ipv4, sentry2Ipv6, sentry2Port, sentry3Id, sentry3Ipv4, sentry3Ipv6, sentry3Port, sentry4Id, sentry4Ipv4, sentry4Ipv6, sentry4Port, sentry5Id, sentry5Ipv4, sentry5Ipv6, sentry5Port = ""
let valPrivate = true
fun... |
import * as THREE from 'three'
import React, { useRef } from 'react'
import { Canvas, useFrame, useThree, useLoader } from '@react-three/fiber'
import { useIntersect, Image, ScrollControls, Scroll } from '@react-three/drei'
import { Text } from '@react-three/drei'
import diagram from '../images/svg/diagram-v2.svg'
impo... |
import { jsonParse } from '@/utils'
import { KeyAll, KeyStar, Method, defaultMockForm, tabPaneObj } from '@/utils/enum'
import { getMockValue } from '~/common/mock'
import ApiProject from '@/api/project'
import ApiCategory from '@/api/category'
import ApiMock from '@/api/mock'
const treeFlat = (data, dataList) => {
... |
require('dotenv').config()
const mysql = require('mysql2');
const inquirer = require('inquirer');
const question = require('./lib/question');
const db = mysql.createConnection({
host: process.env.DB_HOST,
user: process.env.DB_USER,
password: process.env.DB_PASS,
database: 'employees_db... |
/** Copyright (c) 2018 Uber Technologies, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
/* eslint-env node */
/* global __webpack_public_path__ */
import {
createPlugin,
escape,
consumeSanitizedHTML,
Critica... |
import React, { Component } from "react";
import { injectIntl } from "react-intl";
import { connect } from "react-redux";
import { closePanel } from "./actions";
import { addEnterpriseProvider, connectProvider } from "../store/providers/actions";
import CancelButton from "./CancelButton";
import Button from "./Button";... |
var util = require('../util');
var Model = require('./Model');
var Query = require('./Query');
var CollectionCounter = require('./CollectionCounter');
Model.INITS.push(function(model, options) {
model.root.fetchOnly = options.fetchOnly;
// Track the total number of active fetches per doc
model.root._fetchedDocs... |
import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { Link, Redirect } from 'react-router-dom'
import axios from 'axios'
import { updateUserProfileData, addUserStories } from '../actions'
import { getUserProfileFromLocal } from '../actions/localstorage'
cl... |
// global constants
// const clueHoldTime = 300;//how long to hold each clue's light/sound
const cluePauseTime = 300; //how long to pause in between clues
const nextClueWaitTime = 900; //how long to wait before starting playback of the clue sequence
//Global Variables
var pattern = [1, 2, 5, 1, 2, 5, 6, 7, 6, 7, 6, 4,... |
import * as THREE from '../node_modules/three/build/three.module.js'
import Stats from '../node_modules/three/examples/jsm/libs/stats.module.js'
import { GUI, color } from '../node_modules/three/examples/jsm/libs/dat.gui.module.js'
import { OrbitControls } from '../node_modules/three/examples/jsm/controls/OrbitControls... |
var _ = require('underscore');
var validator = require('validator');
var async = require('async');
var tagUtils = require('./tag');
module.exports = {
/**
* Fetch usersettings
*
* @param userId
* @param done call back, returns settings as an object ( settings.key=obj )
* this way properti... |
#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("source-map-support/register");
const Debug = require("debug");
const pathLib = require("path");
// assert supported node runtime version
const runtime = require("./runtime");
// require analytics as soon as possibl... |
/**
* 提供常用辅助函数
* @module $ui/utils/util
*/
const _isEqual = require('lodash/isEqual')
const _get = require('lodash/get')
const _set = require('lodash/set')
const _cloneDeep = require('lodash/cloneDeep')
// requestAnimationFrame 适配函数
const raFrame = window.requestAnimationFrame || window.webkitRequestAnimationFram... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.