text
stringlengths
3
1.05M
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var util_1 = require("@antv/util"); var group_component_1 = require("../abstract/group-component"); var util_2 = require("../util/util"); var RegionFilterAnnotation = /** @class */ (function (_super) { tslib...
# Copyright 2021 The DDSP 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 agreed to in wri...
const purgecss = require('@fullhuman/postcss-purgecss')({ content: ['./src/**/*.svelte', './src/**/*.html'], whitelistPatterns: [/svelte-/], defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || [] }) module.exports = { plugins: [ require('tailwindcss'), ...(!process.env....
import DrawingBoard from "./DrawingBoard.js"; import ToolsMenu from "./ToolsMenu.js"; import ToolsFactory from "./ToolsFactory.js"; import ToolBoard from "./ToolBoard.js"; export { DrawingBoard, ToolsMenu, ToolsFactory, ToolBoard, }
""" Extract version information from the latest build. """ from jenkinsapi.jenkins import Jenkins def getSCMInfroFromLatestGoodBuild(url, jobName, username=None, password=None): J = Jenkins(url, username, password) job = J[jobName] lgb = job.get_last_good_build() return lgb.get_revision() if __name__...
import React, { useState } from 'react'; import { useNavigation } from 'react-navi'; import useForm from 'react-hook-form'; import * as yup from 'yup'; import api from '../api'; import utils from '../utils'; import validators from '../validators'; import Card from '../components/card'; import Field from '../components...
module.exports = { future: { purgeLayersByDefault: true, applyComplexClasses: true, }, purge: { content: [ './pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}', ], options: { safelist: { standard: ['outline-none'], }, }, }, theme: { ex...
const keystone = require( 'keystone' ), moment = require( 'moment' ), listService = require( '../components/lists/list.controllers' ), utilsService = require( '../components/reporting dashboard/utils.controllers' ); exports = module.exports = ( req, res ) => { 'use strict'; const view = new keystone.Vie...
import os import torch import numpy as np from PIL import Image import torch.nn as nn from torch.utils import data from network import * from dataset.zurich_night_dataset import zurich_night_DataSet from dataset.acdc_dataset import acdc_dataset from configs.test_config import get_arguments from tqdm import tqdm pal...
/** * Tmplify and render at once. * @memberof module:tmplconv/lib * @function transplant * @param {string} src - Name of destination directory. * @param {string} dest - Name of destination directory, which contains template files. * @param {object} options - Optional settings. * @param {string|object} options.ru...
import React, { Component } from 'react'; import './Directory.css'; import PropTypes from 'prop-types'; import StreamCell from './StreamCell'; import BottomLinks from './BottomLinks'; import NoStreams from './NoStreams'; import Loading from './Loading'; export default class Directory extends Component { componentDid...
import React from 'react'; const List = () => { return ( <> <li>이게 리스트다!</li> <input type="text" /> </> ); }; export default List;
var searchData= [ ['deletecuboids_190',['deleteCuboids',['../main_8cpp.html#a8141bb2a5037ea0cd75d1a65cb9e72c7',1,'main.cpp']]], ['dodajnazwepliku_191',['DodajNazwePliku',['../class_pz_g_1_1_lacze_do_g_n_u_plota.html#a34bd48f57c0fd69c12bf4127a1cacd8f',1,'PzG::LaczeDoGNUPlota']]], ['dopiszplikidopoleceniarysowania_...
/* * csnav v1.1.1 * * Fork: https://github.com/zhoufengjob/SuiNav * * Date: 2019-08-18 - 2021-03-12 * */ (function (window) { var csnav = function (se) { return new csnav.fn.init(se); }; csnav.fn = csnav.prototype = { init: function (se) { var that = this; this.ele =...
import math def secs_to_duration(secs, limit = 0): duration = [] time_in_secs = [31536000, 604800, 86400, 3600, 60] # years, weeks, days, hours, minutes for length_of_time in time_in_secs: if (limit and length_of_time > limit) or secs < length_of_time: duration.append(0) else: duration.append(int(math.f...
// intialize wave var wave = new Wave() var options = {type:"wave"} // Intialize Lyricer js var lrc = new Lyricer({"showLines": 8, "clickable": true}); /* When the bandcamp link is pressed, stop all propagation so AmplitudeJS doesn't play the song. */ let bandcampLinks = document.getElementsByClassName('bandcamp-link...
function menu() { var navegacao = document.getElementById("navegacao") navegacao.classList.toggle("active") } function url() { // Capturando valores e passando para variaveis var url = document.getElementById('url').value var urlEncurtada = document.getElementById('urlEncurtada') var urlEndere...
/** * Sample serial port objects for testing maker device detection. * See sample Adafruit board configurations at https://github.com/adafruit/Adafruit_Arduino_Boards/blob/master/boards.txt */ export const CIRCUIT_PLAYGROUND_PORTS = [ // Reported by a teacher's Win10 laptop { comName: 'COM5', manufactur...
import glob import logging import os import re import posixpath import warnings try: from pxr import Usd, UsdShade except ImportError: warnings.warn("Warning: module pxr not found", ImportWarning) from kaolin import io logger = logging.getLogger(__name__) __all__ = [ 'Timelapse', 'TimelapseParser' ]...
// core import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { withRouter } from 'react-router-dom' import { withStyles } from '@material-ui/core/styles' import { injectIntl } from 'react-intl' // component import Grid from '@material-ui/core/Grid' import Button fro...
const chai = require('chai'); const expect = chai.expect; const Utils = require('../../../utils'); const Database = require('../../../../src/database'); describe('Database -> Auth -> emailExists', function () { beforeEach(async function () { await Utils.scripts.truncateDB(); }); it('should return true if th...
'use strict'; /** * Queue (not amqp) element class. * @class QueueElement * @alias QueueElement * @alternateClassName QueueElement * @param {Function} value * @return {Queue} * @constructor */ function QueueElement (value){ this.value = value; this.next = null; } /** * @method getValue * Returns value ...
const alertTypes = Object.freeze({ WARNING: "warning", SUCCESS: "success", DANGER: "danger", }); function addTodo() { event.preventDefault(); const newTodo = $("#todo").val().trim(); if (newTodo == "") { showAlert(alertTypes.DANGER, "Enter a todo."); } else { addTodoToUi(newTodo); addTodoToS...
import { parse as parseUrl, addParam } from '@/utils/url'; import { MONITORING } from '@/config/types'; export function computeDashboardUrl(embedUrl, clusterId, params) { const url = parseUrl(embedUrl); const clusterPrefix = clusterId === 'local' ? '' : `/k8s/clusters/${ clusterId }`; let newUrl = `${ cl...
import random from django import template register = template.Library() @register.filter def shuffle(arg): tmp = list(arg)[:] random.shuffle(tmp) return tmp
function SvgVrpano(props) { return ( <svg xmlns='http://www.w3.org/2000/svg' height='1em' viewBox='0 0 24 24' width='1em' className='svg-icon' {...props}> <path fill='none' d='M0 0h24v24H0z' /> <path d='M20.69 4.05C18.66 4.73 15.86 5.5 12 5.5c-3.89 0-6.95-.84-8.69-1.43A.993.993 0 002 5.02V19c...
var data=[['20100331',24.703], ['20100401',24.857], ['20100402',24.053], ['20100406',24.323], ['20100407',26.350], ['20100408',24.850], ['20100409',25.453], ['20100412',25.777], ['20100413',24.780], ['20100414',23.117], ['20100415',21.337], ['20100416',20.980], ['20100419',20.453], ['20100420',20.380], ['20100421',20.8...
import React from 'react'; import PropTypes from 'prop-types'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import ListSubheader from '@material-ui/core/ListSubheader'; import Input from '@material-ui/core/Input'; import InputLabel from '@material-ui/core...
import sys from spark.utils import * from spark.spark_cnn import SparkCNN def run(size, iteration, batch): cnn = SparkCNN(iteration, batch) print('Training Spark CNN with %d iterations (%d batches) for %d images' % (iteration, batch, size)) cnn.train(size) if __name__ == '__main__': size = i...
# -*- encoding: utf-8 -*- import sys from pathlib import Path from typing import Callable, List, Optional, Type from PyQt5.QtCore import QDateTime, Qt from PyQt5.QtGui import QPixmap, QImage from PyQt5.QtWidgets import QLabel, QWidget, QVBoxLayout import mobase class BasicGameSaveGame(mobase.ISaveGame): def _...
import argsarray from 'argsarray'; import { nextTick } from 'pouchdb-utils'; var promisedCallback = function (promise, callback) { if (callback) { promise.then(function (res) { nextTick(function () { callback(null, res); }); }, function (reason) { nextTick(function () { call...
import { getModule, replaceCodeMemory, templateReplaceMemory, addEnvMemory, addNpmPackageMemory } from '../utils'; export default async function generateTwitterAuthenticationExpress(params) { if (params.jsFramework) { await replaceCodeMemory(params, 'server.js', 'TWITTER_ROUTES', await getModule('authentication/...
var bcjson = ["#ff9900", "#3dbeb6", "#a3eee9", "#f8cd8c"]; var cjson = ["#fff", "black"]; $(function () { $(".list1").children("li").each(function () { $(this).css({ "background-color": bcjson[Math.floor(Math.random() * 4)], "color": cjson[Math.floor(Math.random() * 2)] });...
/* global J$ */ 'use strict'; (function (sandbox) { function ObjectTraceIdMap() { const map = new WeakMap(); this.set = function (obj, traceId) { try { map.set(obj, traceId); } catch (error) { // Do nothing if obj is not an object } }; this.get = function (obj) { ...
var cpaas = require('@avaya/cpass'); var enums = cpaas.enums; var connector = new cpaas.Connector({ accountSid: '{AC777c3e3240bc618f926a4337ac0d7138}', authToken: '{cc2dddd07971460db6d900443021bc15}' }); var smsConnector = connector.sms; var conferencesConnector = connector.conferences function enviar() { ...
// via https://raw.githubusercontent.com/thisconnect/test-karma-rollup-tape/master/karma.config.js const buble = require('rollup-plugin-buble'); const nodeResolve = require ('rollup-plugin-node-resolve'); const tapSpec = require('tap-spec'); module.exports = (config) => { config.set({ autoWatch: true, // cli...
export default ` <svg width="24" height="22" viewBox="0 0 24 22" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M23.625 17H9V15.125C9 14.5156 8.48438 14 7.875 14H5.625C4.96875 14 4.5 14.5156 4.5 15.125V17H0.375C0.140625 17 0 17.1875 0 17.375V18.125C0 18.3594 0.140625 18.5 0.375 18.5H4.5V20.375C4.5 21.0312 4...
/** * Copyright 2012, Entwine GmbH, Switzerland * Licensed under the Educational Community 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.osedu.org/licenses/ECL-2.0 * * Unless required by app...
/* * 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 ...
import moeda #Usando módulos preco = float(input(' - Digite um preco \033[1;32mR$\033[m: ')) moeda.resumo(preco, 80, 35)
import datetime import functools from collections import namedtuple from base64 import urlsafe_b64encode, urlsafe_b64decode from validr import T, validator, SchemaError, Invalid, Compiler, builtin_validators from django.core.validators import URLValidator from django.core.exceptions import ValidationError from django....
$(document).ready(function () { $(".loading-bg").css('display', 'none'); });
import test from 'ava' import path from 'path' import async from 'async' const grpc = require('grpc') const caller = require('../') const PROTO_PATH = path.resolve(__dirname, './protos/helloworld.proto') const PROTO_ROOT = path.join(__dirname, 'protos') const PROTO_FILE = 'helloworld.proto' const helloproto = grpc.l...
let transactions = []; let myChart; fetch("/api/transaction") .then(response => { return response.json(); }) .then(data => { // save db data on global variable transactions = data; populateTotal(); populateTable(); populateChart(); }); function populateTotal() { // reduce transactio...
var setData = require('@progress/kendo-angular-intl').setData; setData({ name: "el-CY", likelySubtags: { el: "el-Grek-GR" }, identity: { language: "el", territory: "CY" }, territory: "CY", numbers: { currencies: { ADP: { displayName...
'use strict'; exports.__esModule = 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]; } } } return target; }; function _interopR...
$(window).on('load', function() { // makes sure the whole site is loaded $('#status').fadeOut(); // will first fade out the loading animation $('#preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website. $('body').delay(350).css({'overflow':'visible'}); }); ...
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import unittest import numpy as np from extensions.ops.correlation import CorrelationOp from mo.graph.graph import Node from mo.utils.unittest.graph import build_graph nodes_attributes = {'node_1': {'type': 'Identity', 'kind': 'op'}, ...
import { Component } from 'react' import { withRouter } from 'react-router-dom' class ScrollToTop extends Component { componentDidUpdate(prevProps) { if (this.props.location !== prevProps.location) { document.getElementById('scroll-container').scrollTop = 0; } } render() { return this.props.ch...
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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...
$('#dob').datepicker({ onSelect: function(value, ui) { var today = new Date(), age = today.getFullYear() - ui.selectedYear; $('#age').text(age); }, maxDate: '+0d', changeMonth: true, changeYear: true, defaultDate: '-18yr', });
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.addTemplates("default",{imagesPath:CKEDITOR.getUrl(CKEDITOR.plugins.getPath("templates")+"templates/images/"),templates:[{title:"Image and Title",...
import React,{Component} from 'react'; import {connect} from 'react-redux'; import {Link} from 'react-router-dom'; import {fetchPosts} from '../actions' import _ from 'lodash'; class PostIndex extends Component{ componentDidMount(){ this.props.fetchPosts(); } renderPosts(){ return _.map(this.prop...
// modules are defined as an array // [ module function, map of requireuires ] // // map of requireuires is short require name -> numeric require // // anything defined in a previous bundle is accessed via the // orig method which is the requireuire for previous bundles (function outer (modules, cache, entry) { //...
function frankenSplice(arr1, arr2, n) { //declarenew variable for returning let nvar=[]; for(let i=0;i<n;i++){ nvar.push(arr2[i]); //appending array2 to new variable } for(let j=0;j<arr1.length;j++){ nvar.push(arr1[j]);//appending second array at specified location } for...
'use strict'; var _ = require('lodash'); var express = require('express'); var http = require('http'); var moment = require('moment'); var twitter = require('twitter'); var config = require('./config.json'); var client = new twitter({ consumer_key: process.env.TWITTER_CONSUMER_KEY, consumer_secret: pro...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import ( setup, find_packages, ) setup( name='eth-tester', # *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility. version='0.1.0-beta.16', description="""Tools for testing Ethereum applications.""", ...
# Copyright 2004 by Thomas Hamelryck. # All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """KD tree data structure for searching N-dimensional vectors. The KD tree data structure ...
/** * Time-based Signer and Serializer classes + factories */ import Json from './_json'; import Time from './_time'; import { BaseSigner } from './signer'; import { BaseSerializer } from './serializer'; import { URLSafeBase64EncodeInt, URLSafeBase64DecodeInt } from './encoding'; import { BadTimeSignature, SignatureE...
const chai = require('chai'); const chaiAsPromised = require("chai-as-promised"); const assert = chai.assert; chai.use(chaiAsPromised); const path = require('path'); const fs = require('fs-extra'); const constants = require('./../constants.json'); const execute = require('../../aeproject-utils/utils/aeproject-utils....
// //Copyright (c) 2010 Human Engines Inc. All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are //met: // // * Redistributions of source code must retain the above copyright //notice, this list of ...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[395],{Xkv6:function(l,t,c){"use strict";c.r(t);var e=c("q1tI"),a={icon:function(l,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M435.7 558.7c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1...
import YAML from "js-yaml" import serializeError from "serialize-error" // Actions conform to FSA (flux-standard-actions) // {type: string,payload: Any|Error, meta: obj, error: bool} export const UPDATE_SPEC = "spec_update_spec" export const UPDATE_URL = "spec_update_url" export const UPDATE_JSON = "spec_update_json"...
macDetailCallback("00250d000000/24",[{"d":"2009-01-25","t":"add","a":"Mickiewicza 5/7\nGdansk pomorskie 80-425\n\n","c":"POLAND","o":"GZT Telkom-Telmor sp. z o.o.","s":"wireshark.org"},{"d":"2015-08-27","t":"change","a":"Mickiewicza 5/7 Gdansk pomorskie PL 80-425","c":"PL","o":"GZT Telkom-Telmor sp. z o.o."}]);
/*global define*/ define([ '../Core/BoundingRectangle', '../Core/Cartesian2', '../Core/Cartesian3', '../Core/Cartesian4', '../Core/Color', '../Core/defaultValue', '../Core/defined', '../Core/defineProperties', '../Core/DeveloperError', ...
from juriscraper.opinions.united_states.state import va class Site(va.Site): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.url = "http://www.courts.state.va.us/wpcau.htm" self.court_id = self.__module__ def _get_download_urls(self): path = "//p[./...
const withMDX = require('@next/mdx')({ extension: /\.(md|mdx)?$/, options: { rehypePlugins: [require('@mapbox/rehype-prism'), require('rehype-join-line')], }, }) const nextConfig = { target: 'serverless', // reactStrictMode: true, generateEtags: false, poweredByHeader: false, eslint: { igno...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Sep 10 14:39:56 2020 @author: ombretta """ import h5py import os temp_results = "temp_results/" for res_dir in [f for f in os.listdir(temp_results) if os.path.isdir(temp_results+f)]: print(res_dir) for epoch in os.listdir(temp_resul...
/** * Uruguayan spanish translation for bootstrap-wysihtml5 */ (function($){ $.fn.wysihtml5.locale["es-ES"] = { font_styles: { normal: "Texto normal", h1: "Título 1", h2: "Título 2", h3: "Título 3", h4: "Título 4", h5: "Tí...
Search.setIndex({docnames:["api","index","installation","license","modules/interfaces","modules/mpcemulation","modules/mshoot"],envversion:{"sphinx.domains.c":1,"sphinx.domains.changeset":1,"sphinx.domains.cpp":1,"sphinx.domains.javascript":1,"sphinx.domains.math":2,"sphinx.domains.python":1,"sphinx.domains.rst":1,"sph...
import { module, test } from 'qunit'; import SHA1 from 'cryptojs/sha1'; module('sha1 as an ES6 module', function() { test('it has been imported', function(assert) { assert.ok(SHA1); }); test('test hash function', function(assert) { let hash = SHA1("Test123").toString(); assert.equal(hash, '830865180...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const wrapIcon_1 = require("../utils/wrapIcon"); const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 ...
module.exports = async (interaction, params, config) => { interaction.reply({content: "This command is not ready yet :(", ephemeral: true}) }
function PirateCell(map) { this.map = map; } PirateCell.type = "G"; PirateCell.prototype.encounter = function(enemy, vector) { var targetX = this.x + vector.x; var targetY = this.y + vector.y; var topItem = enemy.stack[enemy.stack.length - 1]; var targetNumber = this.map.get(targetX, targetY).type...
import mongoose, { Schema } from "mongoose"; import { connection1 } from "../config/database"; /** * Mongoose Schema for Users in the 'test' MongoDB database */ const UserSchema = new Schema({ name: { type: String, required: true }, email: { type: String, required: true }, password: { ...
import os from os import PathLike from pathlib import Path import re DATA_DIRECTORY = Path(__file__).parent / 'data' INPUT_DIRECTORY = DATA_DIRECTORY / 'input' OUTPUT_DIRECTORY = DATA_DIRECTORY / 'output' REFERENCE_DIRECTORY = DATA_DIRECTORY / 'reference' def check_reference_directory( test_directory: PathLike, ...
var __defProp = Object.defineProperty; var __markAsModule = (target) => __defProp(target, "__esModule", {value: true}); var __export = (target, all) => { __markAsModule(target); for (var name in all) __defProp(target, name, {get: all[name], enumerable: true}); }; var __async = (__this, __arguments, generator) =...
import unittest from tranzact.util.lru_cache import LRUCache class TestLRUCache(unittest.TestCase): def test_lru_cache(self): cache = LRUCache(5) assert cache.get(b"0") is None assert len(cache.cache) == 0 cache.put(b"0", 1) assert len(cache.cache) == 1 assert ca...
/* * 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 React from 'react'; import { HashRouter, Switch, Route, Redirect } fro...
# Copyright 2016 The Bazel 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 required by applicable la...
(window.webpackJsonp=window.webpackJsonp||[]).push([[324],{3811:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return o}));r(6),r(7);var n=r(0);function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&...
// call the Riot API fetch(uri).then( (response) => { return response.json() });
# -*- coding: utf-8 -*- import googlemaps def dist_duration(origins, destinations, mode, key): gmaps = googlemaps.Client(key=key) distance_matrix_result = gmaps.distance_matrix(origins=origins, destinations=destinations, mode=mode, language='en-US', units='m...
### # Copyright (c) 2002-2004, Jeremiah Fincher # Copyright (c) 2008, James McCoy # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyr...
const apiAdapter = require('../../apiAdapter'); const { URL_SERVICE_COURSE } = process.env; const api = apiAdapter(URL_SERVICE_COURSE); module.exports = async (req, res) => { try { const lesson = await api.post('/api/lessons', req.body); return res.json(lesson.data); } catch (error) { if (error.cod...
import os import numpy as np from setuptools import find_packages, setup from setuptools.extension import Extension from Cython.Build import cythonize extensions = [ Extension('pulse2percept.fast_retina', ['pulse2percept/fast_retina.pyx'], include_dirs=[np.get_include()], extra_compile_...
module.exports = class UnauthorizedError extends Error { constructor (paramName) { super('UnauthorizedError') this.name = 'UnauthorizedError' } }
import React from 'react'; import BasePostMetadata from './base-post-metadata'; import ReadonlyMetadata from './readonly-metadata'; import LocationMetadata from './location-metadata'; /** * Helper to render a form for all of a post's metadata */ export default function MetadataForm({ cmsPost, onInputChange }) { re...
/* global describe, it, require */ 'use strict'; // MODULES // var // Expectation library: chai = require( 'chai' ), // Check whether an element is a finite number isFiniteNumber = require( 'validate.io-finite' ), // Module to be tested: cdf = require( './../lib/accessor.js' ); // VARIABLES // var expect = ...
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnP...
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { loadSettings, updateSettings, settingsResponsive, loadBackup, createBackup, loadSoftware // loadSupport } from '../../actions/actions'; import { ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jul 2 14:42:53 2019 @author: thv20 Import the file >>> import doc_processing.temperature as tmp >>> tmp.find_temperature('The Curie temperature of the material is 400 K.') OUT: [' 400 K.'] >>> tmp.get_number_from_list(tmp.find_temperature('MnSi orde...
const assert = require("assert"); const { mergeStreams, writeData } = require("../index"); const { createStream } = require("./testUtils"); describe("mergeStreams", () => { it("can merge multiple streams", (done) => { let result = ""; let source1 = createStream(["andré"]); let source2 = createStream(["br...
export function serialize(form) { var i=0, j, key, tmp, out={}; var rgx1 = /(radio|checkbox)/i; var rgx2 = /(file|reset|submit|button)/i; while (tmp = form.elements[i++]) { // Ignore unnamed, disabled, or (...rgx2) inputs if (!tmp.name || tmp.disabled || rgx2.test(tmp.type)) continue; key = tmp.name; // ...
/** * Created by leibo on 18/5/3. */ //import request from 'request' import {getNewStr} from '@/assets/js/public' import request from '@/utils/request' export default { //汽车 initCarRent({commit},data){ return new Promise((relove, reject) => { request.post(getNewStr+'/CRCar/Select',JSON.stringify(data)...
import Alert from '../../src/alert' import { getTransitionDurationFromElement } from '../../src/util/index' /** Test helpers */ import { getFixture, clearFixture, jQueryMock } from '../helpers/fixture' describe('Alert', () => { let fixtureEl beforeAll(() => { fixtureEl = getFixture() }) afterEach(() => ...
import React from 'react'; import Multiselect from 'react-widgets/lib/Multiselect'; import 'react-widgets/dist/css/react-widgets.css'; let ValueInput = ({ item }) => { if (item && item.name) { return ( <span> {item.name} </span> ); } return ( ...
;(function (cjs, an) { var p // shortcut to reference prototypes var lib = {} var ss = {} var img = {} lib.ssMetadata = [ { name: 'cover-1', frames: [ [0, 896, 1485, 894], [0, 0, 1485, 894], ], }, { name: 'cover-2', frames: [ [0, 494, 850, 492]...
/** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ import * as tslib_1 from "tslib"; import CalendarLocale from '../calendar/en_US'; import TimePickerLocale from '../time-picker/en_US'; // Merge into a locale object var /** @type {?} */ locale = { lang: tslib_1.__assign({ placeholder...
import { asyncRouterMap, constantRouterMap, padRouterMap, initRouterMap } from '@/router' import { browserEquipmentCheck } from '@/utils/commonu' /** * 通过meta.role判断是否与当前用户权限匹配 * @param roles * @param route */ function hasPermission(roles, route) { if (route.meta) { return roles.indexOf(route.name) >= 0 } ...