text stringlengths 3 1.05M |
|---|
import React from 'react';
import PropTypes from 'prop-types';
import DateSelector from './date-selector';
export default function DateRangeSelector (props) {
const {
startDate, endDate, setDateRange, minDate, maxDate, subDailyMode, idSuffix,
} = props;
const setStartDate = (newStart) => {
setDateRange(... |
from django.shortcuts import render
from django.shortcuts import redirect
from django.core.urlresolvers import reverse
from django.http import HttpResponse
from rango.models import Category, Page
from rango.forms import CategoryForm, PageForm
from datetime import datetime
from rango.bing_search import run_query
from d... |
# 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, Version 2.0 (the
# "License"); you may not u... |
'use strict';
/* App Module */
var app = angular.module('NNF', [
'angular',
'ngRoute',
'ui-bootstrap',
'NNF.ctrl.test',
'NNF.services.test'
]);
app.config(
['$routeProvider',
function($routeProvider) {
$routeProvider
.when('/test/:testId', {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var StyledIconBase_1 = require("../../StyledIconBase");
exports.AlignLeft = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "current... |
import React, { Component } from 'react';
import resume from '../assets/resume.pdf'
class About extends Component {
render() {
if(this.props.data){
var name = this.props.data.name;
var profilepic= "images/"+this.props.data.image;
var street = this.props.data.address.street;
var city = th... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import _ from 'lodash';
import { i18n } from '@kbn/i... |
import React from "react";
// A jumbotron indicates a big box for calling extra attention to some special content or information
function Jumbotron({ children }) {
return(
<div style={{ height: 300, clear: "both", paddingTop: 120, textAlign: "center" }}
className="jumbotron">
{children}
</div>
... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'oc', {
label: 'Estils',
panelTitle: 'Estils de mesa en pagina',
panelTitle1: 'Estils de blòt',
panelTitle2: 'Es... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.9 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.1-.9-2-2-2H8.3l7.43-3c.46-.19.68-.71.49-1.17-.19-.46-.71-.68-1.17-.49L3.24 6.15zM7... |
window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
window.Popper = require('popper.js').default;
... |
// @ts-check
import { GitRefManager } from '../managers/GitRefManager.js'
import { FileSystem } from '../models/FileSystem.js'
import { GitAnnotatedTag } from '../models/GitAnnotatedTag'
import { E, GitError } from '../models/GitError.js'
import { readObject } from '../storage/readObject.js'
import { writeObject } from... |
import { combineReducers, createStore, applyMiddleware } from 'redux';
import logger from 'redux-logger';
import thunk from 'redux-thunk';
import messagesReducer from './messages/messages';
const reducers = combineReducers({ messagesReducer });
const store = createStore(reducers, applyMiddleware(thunk, logger));
expo... |
var ProviderManager = function() {
var DEFAULT = 'localStorage';
return {
init: function(cache) {
this.localStorageProvider = new LocalStorageProvider(cache);
this.arrayProvider = new ArrayProvider(cache);
},
use: function(provider) {
DEFAULT = pro... |
/*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("easyimage","en-au",{commands:{fullImage:"Full Size Image",sideImage:"Side Image",altText:"Change image alternative text",upload:... |
# 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, Version 2.0 (the
# "License"); you may not u... |
/* load this bitch
document.onreadystatechange = function () {
var state = document.readyState
if (state == 'interactive') {
document.getElementById('contents').style.visibility="hidden";
} else if (state == 'complete') {
setTimeout(function(){
document.getElementById('interactive');
... |
import { register } from '../../components/register'
register({
'regular/question-circle': {
width: 512,
height: 512,
paths: [
{
d: 'M256 8c137 0 248 111.1 248 248 0 137-111 248-248 248s-248-111-248-248c0-136.9 111-248 248-248zM256 456c110.6 0 200-89.5 200-200 0-110.5-89.5-200-200-200-110.5... |
import React, { Component } from 'react'
import { getAllCategories } from '../../graphql/queries/categories'
import Drawer from 'material-ui/Drawer'
import Divider from 'material-ui/Divider'
import IconButton from 'material-ui/IconButton'
import ChevronLeftIcon from 'material-ui-icons/ChevronLeft'
import ListSubh... |
/* The getProxyClass returns the constructor for an object based on
* the XMLHTTP class initially developed by Alex Serebryakov (#0.9.1)
* from www.ajaxextended.com (dead) and now extended at
* https://github.com/coolaj86/ajax-extended/
*/
(function( jQuery ) {
// Default proxy settings
jQuery.ajaxSetup({
prox... |
from deoxys.keras import backend as K
from deoxys.model import load_model, Model
import numpy as np
import matplotlib.pyplot as plt
import h5py
from PIL import Image
if __name__ == '__main__':
# load model
deo = load_model(
'../../hn_perf/exps/model.014.h5')
# get data reader
dr = deo.data_r... |
#! /usr/bin/env python
import requests
import time
import logging
logging.basicConfig(level='INFO')
class UpdateSensor:
url = "https://api.mediatek.com/mcs/v2/devices/D4ciQz0u/datapoints.csv"
payload = ""
headers = {
'devicekey': "ndKCKveZlAAxD42a",
'cache-control': "no-cache",
'co... |
# qubit number=4
# total number=46
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2
import numpy as np
import networkx as nx
def bitwise_... |
import glob
import logging
import os
import subprocess
from plugins import BasePreprocessor
from yapsy.IPlugin import IPlugin
from assembly import get_qual_encoding
class FilterByLengthPreprocessor(BasePreprocessor, IPlugin):
def run(self):
"""
Build the command and run.
"""
proce... |
Clazz.declarePackage ("J.jvxl.readers");
Clazz.load (["J.jvxl.readers.VolumeFileReader"], "J.jvxl.readers.CubeReader", ["J.util.Logger", "$.Parser", "$.SB"], function () {
c$ = Clazz.declareType (J.jvxl.readers, "CubeReader", J.jvxl.readers.VolumeFileReader);
Clazz.makeConstructor (c$,
function () {
Clazz.superCo... |
#source: https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/
import re
def natsort(l):
convert=lambda text: int(text) if text.isdigit() else text.lower()
alphanum_key=lambda key: [convert(c) for c in re.split('([0-9]+)', key)]
return sorted(l,key=alphanum_key) |
/**
* @module fgt-dsu-wizard.commands
*/
/**
* Defines how to create the keyssi for a {@link Product} dsu
* @param {object} data necessary properties:
* <ul>
* <li>gtin - the gtin of the product</li>
* <li>(optional) {@link openDSU#constants#BRICKS_DOMAIN_KEY} - the subDomain to store the bricks in. Wil... |
import time
import os
DEVELOPMENT_MODE = os.getenv("DEVELOPMENT_MODE", True)
if DEVELOPMENT_MODE:
# Import package multirunnable
import pathlib
import sys
package_path = str(pathlib.Path(__file__).absolute().parent.parent.parent)
sys.path.append(package_path)
# multirunnable package
from multirun... |
/**
* DEVELOPMENT WEBPACK CONFIGURATION
*/
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CircularDependencyPlugin = require('circular-dependency-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = re... |
import * as THREE from "../three.module.js";
import * as VERTX from "../behaviours.js";
import {float3, plane, quaternion, sphere} from "../spacialMaths.js";
import {TAU} from "../behaviours.js";
class AxisHandle {
static circle_geometry;
static getCircleGeometry() {
if (AxisHandle.circle_geometry == null) {
c... |
/*
YUI 3.6.0pr3 (build 1)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('widget-skin', function(Y) {
/**
* Provides skin related utlility methods.
*
* @module widget
* @submodule widget-skin
*/
var BOUNDING_BOX = "boundingBox",
CONTE... |
// Icon: Linear.Diamonds
import React from 'react';
import defaultProps from 'components/common-ui/Icon/defaultProps';
export default props => (
<svg {...defaultProps} {...props}>
<g>
<path d="M486.4 1024c-7.901 0-15.357-3.646-20.208-9.883l-358.4-460.8c-7.19-9.245-7.19-22.189 0-31.434l358.4-46... |
#
# Copyright (c) 2017-2020, Dell Inc. or its subsidiaries.
# All rights reserved.
# See file LICENSE for licensing information.
#
# Module Name:
#
# invalid_tree.py
#
# Abstract:
#
# SMB2 requests with invalid tree id
#
# Authors: Rafal Szczesniak (rafal.szczesniak@isilon.com)
#
import pike.model
import... |
import Icon from '../../components/Icon'
Icon.register({
'brands/facebook-messenger': {
width: 447,
height: 512,
paths: [
{
d: 'M224 32c122.5 0 221.8 92.8 221.7 207.3 0 138.8-143.2 238.5-285.4 198.7l-75.7 42v-79.4c-162.1-122.6-68.7-368.6 139.4-368.6zM247.4 310.1l121.1-128.5-110.4 61.1-57.4-... |
/**
* Validação de formulário
* @author José de Assis
* 27/04/2017
*/
function validar(){
//capturar o conteúdo das caixas de texto (input)
//para capturar textos não é necessário converter a variável
var nome = formulario_contato.nome.value;
var email = formulario_contato.email.value;
//validaçã... |
var _ = require('lodash');
var expect = require('chai').expect;
var fs = require('fs');
var rl = require('../index');
describe('MEDLINE parser - test #1', function() {
var resErr;
var data = {};
before(function(next) {
this.timeout(60 * 1000);
rl.parse(fs.readFileSync(__dirname + '/data/cancer.nbib', 'utf-8'))... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.0-rc.5-master-2ddeb91
*/
function MdProgressLinearDirective(e,a,r){function n(e,a,r){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),t}function t(r,n,t){function c(){t.$observe("value... |
import { Link } from "react-router-dom";
import logo_mint from "../assets/logo_mint.png";
import './style.css';
function Header({ isPortfolio, isAbout, isContact }) {
let linkClasses = "nav-item nav-link";
let portfolioClasses = linkClasses;
let aboutClasses = linkClasses;
let contactClasses = linkCla... |
import string
import httplib
import sys
import myparser
import re
import time
class search_google_labs:
def __init__(self, list):
self.results = ""
self.totalresults = ""
self.server = "labs.google.com"
self.hostname = "labs.google.com"
self.userAgent = "(Mozilla/5.0 (Wind... |
import { activityBarViews, viewerTypes } from '../constants';
export default () => ({
currentProjectId: '',
currentBranchId: '',
currentMergeRequestId: '',
changedFiles: [],
stagedFiles: [],
endpoints: {},
lastCommitMsg: '',
lastCommitPath: '',
loading: false,
openFiles: [],
parentTreeUrl: '',
... |
import React from 'react'
import Box from './Box'
export const Message = React.forwardRef((props, ref) => (
<Box
ref={ref}
{...props}
__themeKey="messages"
__css={{
padding: 3,
paddingLeft: t => t.space[3] - t.space[1],
borderLeftWidth: t => t.space[1],
borderLeftStyle: 'solid... |
deepmacDetailCallback("002032000000/24",[{"d":"1998-04-22","t":"add","a":"4, MING SHENG STREET TU-CHENG\nINDUSTRIAL DISTRICT\nTAIPEI HSIEH\n","c":"TAIWAN ROC","o":"ALCATEL TAISEL"},{"d":"2001-10-24","t":"change","a":"4, MING SHENG STREET TU-CHENG\nINDUSTRIAL DISTRICT TAIPEI HSIEH\n\n","c":"TAIWAN ROC","o":"ALCATEL TAIS... |
'use strict';
const chai = require('chai');
const expect = chai.expect;
// const http = require('http');
// const request = require('request');
const Aftership = require('./../../index');
let api_key = 'SOME_API_KEY';
let default_endpoint = 'https://api.aftership.com/v4';
let default_proxy = null;
let default_retry =... |
/*
regexp
- es5 regexp shell
*/"use strict"
var shell = require("../util/shell")
var proto = RegExp.prototype
var regexp = shell({test: proto.test, exec: proto.exec})
module.exports = regexp
|
import React from 'react';
import Viz from 'viz.js';
const { Module, render } = require('viz.js/full.render.js');
export class VizWrapper extends React.Component{
constructor() {
super();
this.state = {element: null};
this.wrapperRef = React.createRef();
}
componentDidMount() {
this.render... |
const osc = require("osc");
function sendOSCMessage() {
let args = [];
args.push({ type: "s", value: "çao" })
args.push({ type: "s", value: "" })
udpPort.send(
{
address: "/data",
args,
},
"127.0.0.1",
57120
);
}
// OSC
const serverPort =... |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-12-21 13:46
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('goods', '0023_auto_20171220_1419'),
]
operations =... |
require('./bootstrap');
// Import modules...
import Vue from 'vue';
import { App as InertiaApp, plugin as InertiaPlugin } from '@inertiajs/inertia-vue';
import PortalVue from 'portal-vue';
window.prop = (keys, defaultProp = null) => {
const prop = keys.split('.').reduce((object, key) => (object || {})[key], vueAp... |
var React = require('react');
var $ = require('jquery');
var emojione = require('emojione');
var Ticker = React.createClass({
getInitialState: function() {
return { items: [] };
},
tick: function() {
this.setState({
item: this.state.items[Math.floor(Math.random() * this.state.it... |
import math
from datetime import datetime, timedelta
from functools import partial
from scipy import stats
import typing
import portfolio_management.portfolio_simulator as simulator
import pandas as pd
import numpy as np
import fundamental_analysis.accounting_ratios as ratios
from historical_data_collection import da... |
//Basic math Functions
var add = function(a,b){
return a+b;
}
//Particle Equations
function ParticleMovement(config){
this.dx = 0;
this.dy = 0;
this.stepRange = 100;
this.divisions = 100;
this.step = 0+Math.random()*100;
this.norm = 1/10;
this.norm2 = -3+Math.random()*3;
this.diff=1+Math.random()*4;
this.update=fu... |
deepmacDetailCallback("70b3d555a000/36",[{"a":"Four Elms Road Edenbridge GB TN86AB","o":"Sontay Ltd.","d":"2016-05-07","t":"add","s":"ieee","c":"GB"}]);
|
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PerlEncodeLocale(PerlPackage):
"""Determine the locale encoding"""
homepage = "https:... |
const Joi = require('joi')
const ValidatorError = require('./ValidationError')
const { MultiValidationError } = require('../utils/errors')
/**
* Class representing a base validator.
*/
class BaseValidator {
/**
* Create a base validator.Base
* @param {Object} logger The logger instance.
* @throws {Ty... |
var axios = require("axios");
function getRepos(username){
return axios.get('https://api.github.com/users/'+username+'/repos');
}
function getUserInfo(username){
return axios.get('https://api.github.com/users/'+username);
}
var helpers = {
getGithubInfo: function(username){
return axios.all([getRepos(usern... |
const toObjection = require('./services/objection')
const Model = require('./models/Word.js')
const { connect } = require('./database/setup.js')
module.exports = {
toObjection,
Model,
connect,
}
|
console.log(`🧩 [T=${+Date.now()}] Hello from hello-world-browser-extension (content-scripts/end)`)
|
// Copyright (c) 2021, summayya and contributors
// For license information, please see license.txt
frappe.ui.form.on("Payment Entry", {
// returns the company's accounts in account field
payment_type: function (frm) {
if (frm.doc.payment_type == "Pay") {
frm.set_query("pay_to_account", function (frm) {
if ... |
/**
* simplePagination.js v1.6
* A simple jQuery pagination plugin.
* http://flaviusmatis.github.com/simplePagination.js/
*
* Copyright 2012, Flavius Matis
* Released under the MIT license.
* http://flaviusmatis.github.com/license.html
*/
(function($){
var methods = {
init: function(options) {
var o = $.extend(... |
from __future__ import annotations
from typing import Any
import os
MAX_WORKER_THREADS = 4
MAX_STATIC_THREADS = 4
MAX_RUNTIME_THREADS = 6
# routing
ROUTING_TABLE = 'lona.default_routes.routes'
ROUTING_RESOLVE_CACHE_MAX_SIZE = 1000
ROUTING_REVERSE_CACHE_MAX_SIZE = 1000
# templating
CORE_TEMPLATE_DIRS = [
os.path... |
const Employee = require("./Employee");
class Manager extends Employee {
constructor(name, id, email, officeNumber) {
super(name, id, email);
this.officeNumber = officeNumber;
}
getRole() {
return "Manager";
}
}
module.exports = Manager;
|
import React, { Component } from 'react'
import styles from './NumberStepper.scss'
type Props = {
value?: number,
min?: number,
max?: number,
onChange?: value => void
};
export default class NumberStepper extends Component<Props> {
static defaultProps = {
value: 1,
min: 1,
max: -1,
onChange:... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
// 1. We define the styles.
const styles = theme => ({
root: {
color: 'inherit',
textDecoration: 'i... |
define('code-corps-ember/components/power-select/search-message', ['exports', 'ember-power-select/components/power-select/search-message'], function (exports, _searchMessage) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, 'default', {
enume... |
// Copyright (c) Alicon.
// Licensed under the MIT License.
// <uiInitSnippet>
const Views = {
authenticatedNav(user, view) {
const authenticatedNav = Aim('authenticated-nav').text('');
if (user) {
authenticatedNav.append(
Aim('li').class('nav-item').append(
Aim('button')
.c... |
const createUF = require('./createUF');
describe('count', () => {
it('should has two component', () => {
const uf = createUF.createQuickUnionUF();
expect(uf.count()).toBe(2);
})
})
|
var Orders = function () {
var init = function () {
handleReport();
handleChangeResturant();
};
var handleChangeResturant = function () {
$('#resturant').on('change', function () {
var resturant = $(this).val();
$('#branch').html("");
$('#branc... |
"use strict";
//This module handles everything related to the scrubber and audio controls in the center of the screen
app.scrubber = (function() {
let a = app;
//Shorthand for the scrubber state
let s,
sa,
ss,
sc,
sp,
scs;
//Boolean toggles for UI animation
... |
#THIS IS A CRAWLER FOR GETTING WEATHER FORECASTS FOR CITIES AROUND THE WORLD USING DARKSKY API AND STORING THEM TO WEATHER.DB
#ALSO, THIS PROGRAM USES THE ALGORITHMS FOR CITYRANK (ranking the cities from best to worst destinations to fly)
#COPYRIGHT IOANNIS GEORGAS, 27-03-2018.
import csv
import sqlite3
#import re... |
import React, { Component } from 'react';
import Images from './components/Images';
import './App.css';
class App extends Component {
render() {
return (
<div id='root'>
<div className='hero is-fullheight is-bold is-info'>
<div className='hero-body'>
<div className='container'... |
require('@nativescript/core/globals');
import { TNSXMLHttpRequest, FileReader, Blob } from './vendor/http-async';
import Document from './DOM/Document';
import './window';
import './resize';
import './process';
import {
requestAnimationFrame,
cancelAnimationFrame,
} from './raf/animation-frame';
import { TNSTextDe... |
from .utils import seParams
from .config import config
from .login import Login
from .config import Config as _Config
from .report import Report as _Report
from .apply import Apply as _Apply
from .lessontable import LessonTable as _LessonTable
from . import submodules
|
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function i(e){try{l(r.next(e))}catch(t){o(t)}}function u(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):a(e.value).then(i,u)}l((r=r.app... |
class ExtendedClock extends Clock {
constructor(options) {
super(options);
let { precision = 1000 } = options;
this.precision = precision;
}
start() {
this.render();
this.timer = setInterval(() => this.render(), this.precision);
}
};
|
version = 0.19 |
module.exports = {
addUserAction: '/marketing/user_actions/add',
addUserActionSet: '/marketing/user_action_sets/add',
getUserActionSetReports: '/marketing/user_action_set_reports/get',
getUserActionSets: '/marketing/user_action_sets/get'
};
|
module['exports'] = ['ახალი', 'ძველი', 'ზემო', 'ქვემო'];
|
// Object.assign({}) doesn't work on all versions of android
// Need to include polyfill
import 'babel-polyfill'
import {
SET_ADDRESS,
SET_PRIVATE_KEY,
SET_ADDRESS_VALUE,
SET_QR_SCANNING,
SET_BZC_IN_BTC_VALUE,
SET_BZC_IN_CURRENCY_VALUE,
SET_HAS_INPUT_PIN
} from '../actions/Context'
const initialContext ... |
/*!
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/
!function(global,factory){"object"==t... |
var dropdownSelectors = $('.dropdown, .dropup');
// Custom function to read dropdown data
// =========================
function dropdownEffectData(target) {
// @todo - page level global?
var effectInDefault = null,
effectOutDefault = null;
var dropdown = $(target),
dropdownMenu = $('.dropdown-menu', ... |
module.exports = require('./lib/hyper-config');
|
# Copyright 2014 Mellanox Technologies, Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... |
import pandas as pd
import smartplots3_setup
def createSetup(name,expansion_factor,percapita_factor,plot_size,settings):
plt_setup_smart={
'name': name,
'expansion_factor':expansion_factor,
'percapita_factor':percapita_factor,
'scenarios_itr': [],
'scenarios_id':[],
... |
//const mongoose = require('mongoose');
//const anData = require('../models/AnalysisData');
//Mongoose database setup
/*
const mongooseConnect = mongoose.connect('mongodb://localhost/ibmmab', {useUnifiedTopology: true, useNewUrlParser: true});
const db = mongoose.connection;
db.on('error', console.error.bind(console... |
import Handstand from './main.js';
global.Handstand = Handstand;
|
import Icon from '../components/Icon.vue'
Icon.register({"filter_drama":{"width":24,"height":24,"paths":[{"d":"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.04 2.35 8.36 0 10.9 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4h2c0-2.... |
from __future__ import absolute_import
__all__ = ['ParseResult', 'SplitResult', 'parse_qs', 'parse_qsl', 'urldefrag',
'urljoin', 'urlparse', 'urlsplit', 'urlunparse', 'urlunsplit',
'quote', 'quote_plus', 'unquote', 'unquote_plus',
'unquote_to_bytes', 'urlencode', 'splitquery', 'splittag... |
"""Support for AVM Fritz!Box functions"""
import asyncio
import logging
import time
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant import config_entries
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
CONF_DEVICES,
CONF_H... |
'use strict'
const agent = require('./agent')
const plugin = require('../../src/plugins/mysql')
wrapIt()
describe('Plugin', () => {
let mysql
let tracer
describe('mysql', () => {
withVersions(plugin, 'mysql', version => {
beforeEach(() => {
tracer = require('../..')
})
describe(... |
(function(){var root=(typeof exports=='undefined'?window:exports);var config={check_mime_type:true};root.Retina=Retina;function Retina(){}
Retina.configure=function(options){if(options==null)options={};for(var prop in options)config[prop]=options[prop];};Retina.init=function(context){if(context==null)context=root;var e... |
"""
GTSAM Copyright 2010-2020, Georgia Tech Research Corporation,
Atlanta, Georgia 30332-0415
All Rights Reserved
See LICENSE for the license information
Classes and rules to parse a namespace.
Author: Duy Nguyen Ta, Fan Jiang, Matthew Sklar, Varun Agrawal, and Frank Dellaert
"""
# pylint: disable=unnecessary-lambd... |
import firebase from '@firebase/app';
export { default } from '@firebase/app';
import '@firebase/auth';
import '@firebase/database';
import '@firebase/firestore';
import '@firebase/firestore/bundle';
import '@firebase/functions';
import '@firebase/messaging';
import '@firebase/storage';
import '@firebase/performance';
... |
/* ************************************************************************************************
* *
* Plese read the following tutorial before implementing tasks: *
* https://developer... |
# Generated by Django 2.2.20 on 2021-05-11 06:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("ada", "0011_redirecturl_url")]
operations = [
migrations.RenameField(
model_name="redirecturlsentry", old_name="url", new_name="symptom_chec... |
class baseModel {
constructor(data) {
this.data = data;
}
}
class SuccessModel extends baseModel {
constructor(data) {
super(data)
this.code = 0;
}
}
class FailModel extends baseModel {
constructor(data) {
super(data);
this.code = -1;
}
}
module.exports... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = [
`<p>The <code><meta http-equiv="refresh"></code> tag causes a web page to refresh automatically
after a specified amount of time.
Users generally don't expect automatic refreshes,
so they can be disorienting.
Refr... |
import textwrap
import pytest
from tests.utils import QuiltTestCase
from quilt3 import workflows
from quilt3.backends import get_package_registry
from quilt3.data_transfer import put_bytes
from quilt3.util import PhysicalKey, QuiltException
def get_v1_conf_data(conf_data):
conf_data = textwrap.dedent(conf_data)... |
import React from "react";
import Enzyme, { shallow } from "enzyme";
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
import App from "../App";
import Navigation from "../components/common/Navigation";
import Home from "../components/Home/Home";
import DeleteConfirmation from "../components/common/DeleteConfi... |
import { createStore, combineReducers, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import { composeWithDevTools } from 'redux-devtools-extension'
import noteReducer from './reducers/noteReducer'
import filterReducer from './reducers/noteFilterReducer'
const reducer = combineReducers({
notes: no... |