text
stringlengths
3
1.05M
/*! snabbt.js v0.5.0 built: 2015-03-29 (c)2015 Daniel Lundin @license MIT */ !function(a,b){var c=b();"object"==typeof exports?module.exports=c:"function"==typeof define&&define.amd?define([],function(){return a.returnExportsGlobal=c}):a.snabbt=c}(this,function(){var a=[],b=[],c=[],d="transform",e=window.getComputedSt...
'use strict'; angular.module('CentralDogmaAdmin') .factory('ApiV1Service', function ($rootScope, $http, $q, $window, StringUtil, NotificationUtil, CentralDogmaConstant) { function makeRequest(verb, uri, config, data) { var sessionId; ...
// TODO: [P3] Move to p-defer export default function createDeferred() { let reject, resolve; const promise = new Promise((promiseResolve, promiseReject) => { reject = promiseReject; resolve = promiseResolve; }); if (!reject || !resolve) { throw new Error('Promise is not a ES-compliant and do not ...
def leiaint(msg): while True: num = str(input(msg)).strip() if num.isnumeric(): num = int(num) return num else: print('\033[31;1mERRO! Digite um número inteiro válido!\033[m') n = leiaint('Digite um número: ') print(f'Você acabou de digitar o ...
import numpy import torch from allennlp.common.testing.test_case import AllenNlpTestCase from allennlp.data.fields import ArrayField, ListField class TestArrayField(AllenNlpTestCase): def test_get_padding_lengths_correctly_returns_ordered_shape(self): shape = [3, 4, 5, 6] array = numpy.zeros(shap...
""" Создать структуру файлов и папок, как написано в задании 2 (при помощи скрипта или «руками» в проводнике). Написать скрипт, который собирает все шаблоны в одну папку templates, например: |--my_project ... |--templates | |--mainapp | | |--base.html | | |--index.html | |--authapp | ...
"""Console script for project.""" import sys import click @click.command() def main(args=None): """Console script for project.""" click.echo("Replace this message by putting your code into " "project.cli.main") click.echo("See click documentation at https://click.palletsprojects.com/") ...
import { Utils } from '@wya/utils'; import DateUtil from '../utils/date'; const isShortMonth = (month) => { return [4, 6, 9, 11].indexOf(month) > -1; }; const isLeapYear = (year) => { return (year % 400 === 0) || (year % 100 !== 0 && year % 4 === 0); }; export const getMonthEndDay = (year, month) => { month = Nu...
function init() { var json = { questions: [ { "name": "autocomplete1", "title": "What car are you driving?", "type": "text", "choices": [ "None", "Ford", "Vauxhall", "Volkswagen", ...
console.log('[DevSoutinho] Flappy Bird'); console.log('Inscreva-se no canal :D https://www.youtube.com/channel/UCzR2u5RWXWjUh7CwLSvbitA'); let frames = 0; const som_HIT = new Audio(); som_HIT.src = './efeitos/hit.wav'; const sprites = new Image(); sprites.src = './sprites.png'; const canvas = document.querySelector(...
/* Dawnveil The 5 paths Mai Made by Daenerys */ var status = -1; var sel = -1; function start(mode, type, selection) { if (mode == 1) { status++; } else { if (status == 0) { qm.safeDispose(); return; } status--; } if (status == 0) { q...
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.utils.translation import gettext as _ from core import models class UserAdmin(BaseUserAdmin): ordering = ['id'] list_display = ['email', 'name'] fieldsets = ( (None, {'fields': ('email',...
import Base64 from './Base64'; export const CompileMode = { Auto: 0, Manual: 1, }; export const CompileModes = Object.keys(CompileMode); export const CompilerDescriptions = { 'AssemblyScript': { offline: true, loaded: false, github: 'https://github.com/AssemblyScript/assemblyscript', option...
$(function(){ //性别 $('#f-sex i').click(function(){ $('#f-sex i').removeClass('active'); $(this).addClass('active'); if($(this).next().text()=='男'){ $('#sex').val(1); }else{ $('#sex').val(2); } }); //选择形式 var way = []; $('.item i').c...
import { IS_DART, StringWrapper, isBlank, isPresent, isString, isArray } from 'angular2/src/facade/lang'; var CAMEL_CASE_REGEXP = /([A-Z])/g; var DASH_CASE_REGEXP = /-([a-z])/g; var SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g; var DOUBLE_QUOTE_ESCAPE_STRING_RE = /"|\\|\n|\r|\$/g; export var MODULE_SUFFIX = IS_DART...
/* * #%L * ACS AEM Commons Package * %% * Copyright (C) 2017 Adobe * %% * 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 * * Unles...
'use strict' const webcrypto = require('../webcrypto') const randomBytes = require('../random-bytes') exports.utils = require('./rsa-utils') exports.generateKey = async function (bits) { const pair = await webcrypto.get().subtle.generateKey( { name: 'RSASSA-PKCS1-v1_5', modulusLength: bits, p...
import React from 'react' import { formatUnits } from '@ethersproject/units' import { ethers, utils } from 'ethers' import { Contract } from '@ethersproject/contracts' // Storing the contract ABI & address in a separate file is optional const config = require('./config.json') const interface = new utils.Interface(conf...
import DataTransfer from 'ember-file-upload/system/data-transfer'; import { module, test } from 'qunit'; module('data-transfer', function(hooks) { hooks.beforeEach(function() { this.subject = DataTransfer.create(); }); hooks.afterEach(function() { this.subject = null; }); test('with no native d...
#!/usr/bin/env python __author__ = "Richard Clubb" __copyrights__ = "Copyright 2018, the python-uds project" __credits__ = ["Richard Clubb"] __license__ = "MIT" __maintainer__ = "Richard Clubb" __email__ = "richard.clubb@embeduk.com" __status__ = "Development" __name__ = "utilities"
import m from 'mithril'; const CdDvdLine = { view: ({ attrs }) => m("svg", Object.assign({ "version": 1.1, "width": 36, "height": 36, "viewBox": "0 0 36 36", "preserveAspectRatio": "xMidYMid meet", "xmlns": "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink" }, attrs), m("title", {}, "cd-dvd-lin...
$(document).ready(function () { $("#approval_status").bootstrapValidator({ fields: { approval_status_code: { validators: { notEmpty: { message: 'The status code is required' } }, }, ...
module.exports = (element, parser) => { const refs = {} element.queryAll('[n-ref]').concat(element.queryAll('[ref]')).forEach((nRef) => { const ref = nRef.props['n-ref'] || nRef.props.ref if (refs[ref]) { parser.warning(new Error(`n-ref ${ref} is already defined`)) return } refs[ref] = ...
function redirectToRegister() { const baseUrl = window.location.origin; window.location.href = baseUrl + "/register"; } function submitLoginData() { const username = $("input.username-input-field").val(); const password = $("input.password-input-field").val(); $.ajax({ type: "POST", ...
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Tests Raster Attribute Table support in the HFA driver and in particular, # changes related to RFC40. # Author: Sam Gillingham <g...
from django.contrib import messages from django.db import transaction from django.db.models import Prefetch from django.shortcuts import get_object_or_404, redirect, render from django.urls import reverse from django_tables2 import RequestConfig from nautobot.core.views import generic from nautobot.dcim.models import ...
function saveAnswer() { var code = $( "#code" ).val(); var answer = $( "#answer" ).val(); var qid = $( "#qid" ).val(); var route = '/ques/answer'; var test_url = '?qid='+qid+'&code='+code+'&answer='+answer; $.ajax({ url: route, data: {question_id: qid, code:...
// Routines // Runs every cycle // Function should be synchronous var auxils = require("../../../systems/auxils.js"); module.exports = function (player) { var config = player.game.config; // Nighttime actions var channel = player.getPrivateChannel(); player.game.sendPeriodPin(channel, ":cop: You may inter...
// ColorBox v1.3.19.3 - jQuery lightbox plugin // (c) 2011 Jack Moore - jacklmoore.com // License: http://www.opensource.org/licenses/mit-license.php (function(a,b,c){function Z(c,d,e){var g=b.createElement(c);return d&&(g.id=f+d),e&&(g.style.cssText=e),a(g)}function $(a){var b=y.length,c=(Q+a)%b;return c<0?b+c:c}fu...
/* -------------------- * @overlook/plugin-request module * Jest config * ------------------*/ 'use strict'; // Modules const parseNodeVersion = require('parse-node-version'); // Exports const supportsEsm = parseNodeVersion(process.version).major >= 13; module.exports = { testEnvironment: 'node', coverageDire...
define(['logic', '../util', 'module', 'require', 'exports', '../mailchew', '../syncbase', '../date', '../jobmixins', '../allback', './pop3'], function(logic, util, module, require, exports, mailchew, sync, date, jobmixins, allback, pop3) { var PASTWARDS = 1; /** * Manage the synchro...
import argparse from core.experiment.mrunners import MRunners from core.utils.parse_config import ConfigParser from core.utils.util import read_dir_files, read_json, set_seed from pathlib import Path if __name__ == "__main__": args = argparse.ArgumentParser(description="PyTorch Experiment Management") args.a...
import Colors from './Colors' import Fonts from './Fonts' export { Colors, Fonts }
/* Copyright 2014-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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
goog.declareModuleId('os.source.Vector'); import '../mixin/rbushmixin.js'; import EventType from '../action/eventtype.js'; import AlertEventSeverity from '../alert/alerteventseverity.js'; import AlertManager from '../alert/alertmanager.js'; import {registerClass} from '../classregistry.js'; import {toHexString} from ...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
# This file is part of khmer, https://github.com/dib-lab/khmer/, and is # Copyright (C) 2014-2015, Michigan State University. # Copyright (C) 2015-2016, The Regents of the University of California. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the fol...
import { combineReducers } from 'redux'; import configureStore from './CreateStore'; import rootSaga from 'App/Sagas'; import { reducer as AppStateReducer } from './AppState/Reducers'; import { reducer as AppRouteReducer } from './AppRoute/Reducers'; import { reducer as ExampleReducer } from './Example/Reducers'; exp...
n = int(input()) for i in range (n): for j in range (1,n+1-i): print(j, end='') for k in range (2*i+1): print('*' ,end='') for l in range (n-i,0,-1): print(l, end='') print() for m in range (2*n+1): print('*', end='')
# Copyright 2015 PerfKitBenchmarker 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 appli...
import Packaging from './Packaging'; class Box extends Packaging { constructor() { super(); this.setIsOpen(false); this.setToy(null); } } export default Box;
function roulette(population: Array<{ entity: any, fitness: number }>): any { const totalFitness = population.reduce( (sum, individual) => sum + individual.fitness, 0 ); let roll = Math.random() * totalFitness; for (let i = 0; i < population.length; i++) { if (roll <= population[i].fitness) { ...
module.exports = { theme: { fontFamily: { sans: ['"Titillium Web"'] }, extend: { colors: { orange: '#F05E7B', grey: '#A0AEC0' } } } }
import os import time import signal import platform import multiprocessing import pymysql import pytest from mycli.main import special PASSWORD = os.getenv('PYTEST_PASSWORD') USER = os.getenv('PYTEST_USER', 'root') HOST = os.getenv('PYTEST_HOST', 'localhost') PORT = os.getenv('PYTEST_PORT', 3306) CHARSET = os.getenv...
(function() { var define, requireModule; (function() { var registry = {}, seen = {}; define = function(name, deps, callback) { registry[name] = { deps: deps, callback: callback }; }; requireModule = function(name) { if (seen[name]) { return seen[name]; } seen[name] = {}; var mod, deps, callb...
import React, {Component} from 'react'; import { View, ActivityIndicator, StyleSheet } from 'react-native'; class ToggleActivityIndicator extends Component { constructor(props) { super(props); this.state = { animating: true }; } setToggleTimeout() { ...
fil = new Array(); fil["0"]= "_networking_services_neutron.html@@@Networking Services (Neutron) - MidoNet Quick Start Guide for RHEL 7 / Juno (OSP)  - 2015.06-rev1@@@null"; fil["1"]= "_zookeeper_installation.html@@@ZooKeeper Installation - MidoNet Quick Start Guide for RHEL 7 / Juno (OSP)  - 2015.06-rev1@@@null"; fil["...
const messages = { ru: { //Common common_date_format: 'DD/MM/YYYY', common_app_title: 'Обновление ПО', //Login view login_welcome: 'Для начала работы нужно войти в систему.', login_credentials_verifying: 'Данные проверяются. Подождите...', login_success_login:...
import altair as alt import numpy as np import pandas as pd import streamlit as st import pydeck as pdk from PIL import Image from epimodels.continuous.models import SEQIAHR import humanizer_portugues as hp import dashboard_models import dashboard_data from dashboard_models import seqiahr_model st.title('A Matemática...
var express=require("express"); var app=express(); var mongoose=require("mongoose"); var Contact=require("./models/contact") var bodyParser=require("body-parser"); mongoose.connect("mongodb://localhost/techminds",function(){ console.log("sucess"); }) var PORT=process.env.PORT || 3000 app.use(express.static(__dirname+...
import functools import uuid from datetime import datetime, date, time from decimal import Decimal from nanohttp import context, HTTPNotFound, HTTPBadRequest, validate from sqlalchemy import Column from sqlalchemy.ext.associationproxy import ASSOCIATION_PROXY from sqlalchemy.ext.hybrid import HYBRID_PROPERTY from sqla...
from django.contrib import admin from .models import Product, Account, Category # Register your models here. admin.site.register(Product) admin.site.register(Account) admin.site.register(Category)
import React from 'react' import { Router, Link, Route, Switch } from 'react-static' import styled, { injectGlobal } from 'styled-components' import { hot } from 'react-hot-loader' // import Home from 'containers/Home' import Geolocation from 'containers/Geolocation' import NotFound from 'containers/404' injectGlobal`...
'use strict'; describe('Controller: AuthCtrl', function () { // load the controller's module beforeEach(module('discussionToolApp')); var AuthCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); AuthCtrl = ...
var searchData= [ ['enable',['enable',['../group__group__board__libs.html#a9e03ec2dd02a0584a7eeaad4f90b0654',1,'mtb_e2271cs021_pins_t']]], ['e_2dink',['E-INK',['../group__group__board__libs.html',1,'']]] ];
// Copyright (c) 2014-2018, MyMonero.com // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of // cond...
import { mount } from 'enzyme'; import { createElement } from 'preact'; import { act } from 'preact/test-utils'; import ThreadList from '../thread-list'; import { $imports } from '../thread-list'; import { checkAccessibility } from '../../../test-util/accessibility'; import mockImportedComponents from '../../../test-...
import { debounce } from '@/utils' export default { data() { return { $_sidebarElm: null, $_resizeHandler: null } }, mounted() { this.$_resizeHandler = debounce(() => { if (this.chart) { this.chart.resize() } }, 100) this.$_initResizeEvent() this.$_initSide...
"use strict"; /* jshint camelcase: false */ var chai = require('chai') , sinon = require('sinon') , expect = chai.expect , Support = require(__dirname + '/support') , Sequelize = Support.Sequelize , Promise = Sequelize.Promise , cls = require('continuation-local-storage') , current ...
from enum import Enum class DeliveryStatus(Enum): ALL = 0 DELIVERED = 1 UNDELIVERED = 2
import Vue from 'vue' import VueRouter from 'vue-router' import Home from '../views/Home.vue' import Main from '../views/Main.vue' Vue.use(VueRouter) const routes = [ { path: '/', component: Main, children: [ { path: '/', name: 'home', component: Home }, { ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * When the [[Delete]] method of O is called with property name P, * and if O doesn't have a property with name P, return true * * @path ch08/8.12/8.12.7/S8.12.7_A2_T2.js * @descr...
export const ERROR_TYPE_UNKNOWN = 1; export const ERROR_TYPE_INPUT = 2; export const ERROR_TYPE_PARSE = 3; export const ERROR_VERIFY_SIGNATURE = 4; class SignPdfError extends Error { constructor(msg, type = ERROR_TYPE_UNKNOWN) { super(msg); this.type = type; } } // Shorthand SignPdfError.TYPE_...
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='right-sanpham-node']/h1", 'price' : "//div[@class='right-sanpham-node']/div[@class='price-group']/span[@class='price']",...
# Copyright (c) 2020 PaddlePaddle 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 app...
'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('yoProvisioning2App')); var MainCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller) { scope = {}; MainCtrl = $controller('MainCtrl', { ...
/** * A basic example of how to use event listeners to detect a change of online/offline status and * to give the user some sort of feedback, in this case by adding the `offline` class to the body * to allow styling. */ (function () { 'use strict'; let updateOnlineStatus = function () { let sta...
/** * Implement Gatsby's SSR (Server Side Rendering) APIs in this file. * * See: https://www.gatsbyjs.org/docs/ssr-apis/ */ // You can delete this file if you're not using it //redux export { default as wrapRootElement } from './static/redux/ReduxWrapper';
import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) /* Layout */ import Layout from '@/layout' /** * Note: sub-menu only appear when route children.length >= 1 * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html * * hidden: true ...
Vue.http.headers.common['X-CSRF-TOKEN'] = $("#token").attr("value"); new Vue({ el :'#pipe-top', data :{ pipes: [], offset: 4, formErrors:{}, formErrorsUpdate:{}, fillItem : {'price':'','availability':'','id':''} }, ready: function() { this.getVueItems(); }, methods: { getVueIte...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var base_1 = require("./base"); /** * 线性度量 * @class */ var Linear = /** @class */ (function (_super) { (0, tslib_1.__extends)(Linear, _super); function Linear() { var _this = _super !== null &...
import React from 'react' import * as classes from './Container.module.scss' const Container = ({children}) => { return ( <div className={classes.container}> {children} </div> ) } export default Container
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_components_tracings_Tabla_vue"],{ /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/shared/paginate.vue?vue&type=script&lang=js...
/* * Copyright 2003-2006, 2009, 2017, 2020 United States Government, as represented * by the Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The NASAWorldWind/WebWorldWind platform is licensed under the Apache License, * Version 2.0 (the "License"); you may not use t...
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """ Base class for handling bit masks. *License*: Copyright (c) 2015, SDSS-IV/MaNGA Pipeline Group Licensed under BSD 3-clause license - see LICENSE.rst *Class usage examples*: TODO *Revision history*: | **01 ...
import React from 'react' import PropTypes from 'prop-types' import { Link, graphql } from 'gatsby' import Layout from '../components/Layout' import Features from '../components/Features' import SectionRoll from '../components/SectionRoll' export const IndexPageTemplate = ({ image, title, heading, subheading,...
J$.iids = {"9":[1,1,1,19],"17":[1,34,1,38],"25":[1,71,1,75],"33":[1,111,1,115],"41":[1,127,1,128],"49":[1,95,1,129],"57":[1,143,1,147],"65":[1,180,1,190],"73":[1,191,1,200],"81":[1,201,1,208],"89":[1,209,1,216],"97":[1,217,1,223],"105":[1,179,1,224],"113":[1,254,1,265],"121":[1,247,1,266],"129":[1,236,1,267],"137":[1,1...
'''Ecuaciones del Apéndice B de ASCE - 8 - 02 ''' def B_1(FY, E0, offset, n, s): '''Modulo elasticidad secante segun Eq B-1 Parameters ---------- E0 : float Modulo elasticidad inicial FY : float Tension de fluencia con una deformacion permanente de offset offset : float ...
import mailgun from 'mailgun-js'; import Handlebars from 'handlebars'; import fs from 'fs'; import User from '../models/user.model'; import config from '../../config/config'; /** * Returns jwt token if valid username and password is provided * @param req * @param res * @param next * @returns {*} */ // function ...
import nodeResolve from '@rollup/plugin-node-resolve'; import typescript from '@rollup/plugin-typescript'; import strip from '@rollup/plugin-strip'; import filesize from 'rollup-plugin-filesize'; import { peerDependencies } from './package.json'; const external = [ 'vue', ...Object.keys(peerDependencies) ]; function...
# Databricks notebook source # MAGIC %md # MAGIC # Getting started with deep learning in Databricks: an end-to-end example using TensorFlow Keras, Hyperopt, and MLflow # MAGIC # MAGIC This tutorial uses a small dataset to show how to use TensorFlow Keras, Hyperopt, and MLflow to develop a deep learning model in Datab...
require('dotenv').config() const { HUBSPOT_API_KEY } = process.env; const hubspot = require('@hubspot/api-client'); const hubspotClient = new hubspot.Client({"apiKey": HUBSPOT_API_KEY}); // https://developers.hubspot.com/docs/api/crm/contacts exports.subscriberEntry = async function (data) { try{ // data forma...
tinyMCE.addI18n('lv.paste_dlg',{ text_title:"Izmantojiet CTRL+V uz j\u016Bsu tastat\u016Bras lai iekop\u0113t tekstu log\u0101.", text_linebreaks:"Sagl\u0101b\u0101t l\u012Bniju sadal\u012Bt\u0101jus", word_title:"Izmantojiet CTRL+V uz j\u016Bsu tastat\u016Bras lai iekop\u0113t tekstu log\u0101." });
// PLUGIN: Popup (function ( Popcorn ) { var sounds = {}, events = [], soundIndex = 0, MAX_AUDIO_TIME = 2, _pluginRoot = "/templates/assets/plugins/popup/", FILL_STYLE = "rgb(255, 255, 255)", innerDivTriangles = {}, DEFAULT_FONT = "Tangerine"; // Set up speech innerDiv t...
'use strict'; module.exports = { Contacts: require('./src/contacts.js') };
module.exports={viewBox:'0 0 448 512',d:'M.1 494.1c-1.1 9.5 6.3 17.8 15.9 17.8l32.3.1c8.1 0 14.9-5.9 16-13.9.7-4.9 1.8-11.1 3.4-18.1H380c1.6 6.9 2.9 13.2 3.5 18.1 1.1 8 7.9 14 16 13.9l32.3-.1c9.6 0 17.1-8.3 15.9-17.8-4.6-37.9-25.6-129-118.9-207.7-17.6 12.4-37.1 24.2-58.5 35.4 6.2 4.6 11.4 9.4 17 14.2H159.7c21.3-18.1 47...
import sys, os sys.path.insert(1, os.path.join("..","..","..")) import h2o from tests import pyunit_utils from h2o.estimators.deeplearning import H2ODeepLearningEstimator def checkpoint_new_category_in_response(): sv = h2o.upload_file(pyunit_utils.locate("smalldata/iris/setosa_versicolor.csv")) iris = h2o.upload...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ segmentation_utils.py """ import matplotlib import numpy as np from scipy.signal import correlate import random from sklearn.cluster import KMeans def GaussianKernel1D(sigma): '''Returns 1D Gaussian kernel sigma: standard deviation of normal distributio...
# -*- coding: utf-8 -*- import os import django.core.management from getenv import env def manage(path): _setup(path=path) utility = django.core.management.ManagementUtility(None) utility.execute() def wsgi(path): _setup(path=path) from django.core.wsgi import get_wsgi_application app = ge...
const localConfig = { web3ProviderUrl: 'https://rinkeby.infura.io/', watcherUrl: 'http://watcher.samrong.omg.network/', childchainUrl: 'http://samrong.omg.network/', plasmaContractAddress: '0x740ecec4c0ee99c285945de8b44e9f5bfb71eea7' } module.exports = localConfig
import { create as createTransaction, BITCOIN_WALLET_TRANSACTIONS_CREATE_REQUEST, BITCOIN_WALLET_TRANSACTIONS_CREATE_SUCCESS, BITCOIN_WALLET_TRANSACTIONS_CREATE_FAILURE } from '../../../../../../src/actions/bitcoin/wallet/transactions/create'; import { getEstimate as getFeeEstimate } from '../../../../../../sr...
{ "": { "domain": "ckan", "lang": "nl", "plural-forms": "nplurals=2; plural=(n != 1);" }, "Add Filter": [ null, "Filter toevoegen" ], "An Error Occurred": [ null, "Er is een fout opgetreden" ], "Are you sure you want to perform this action?": [ null, "Weet u zek...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['sr']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Претражи сервер","url":"УРЛ...
function loadEntities(callback) { Xms.Web.GetJson('/api/schema/entity', {}, function (data) { if (!data || data.content.length == 0) return; console.log(data.content) $(data.content).each(function (i, n) { if (n.businessflowenabled) { $('#EntitySel').append('<opti...
const Client = require('../../../src') const knex = require('knex')({ client: Client }) const testSql = require('../../utils/testSql') describe('Delete', () => { it('handles delete', () => { const query = knex .delete() .from('test') .where('x', 'y') testSql( query, 'delete from test where x = \...
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
import React, { useState, useEffect } from 'react'; import { Animated, View } from 'react-native'; import { Feather } from '@expo/vector-icons'; import styles from './styles'; export default function Loading({ isLoading }) { const [loading, set_loading] = useState(false); const spinValue = new Animated.Value(0); ...
import numpy x = int(input("Enter number x: ")) y = int(input("Enter number y: ")) print("x**y = ", x^y) print(f"log(x) = {numpy.log2([x])[0]:.0f}")
var assert = require("chai").assert; var stepParser = require("../src/step-parser"); describe("Parsing steps", function() { it("Should generalise a step.", function(done) { assert.equal("Say {} to {}", stepParser.generalise("Say <greeting> to <user>")); assert.equal("A step without any paramaeters", stepPar...
const puppeteer = require('puppeteer'); const CONFIG = require('./config.json'); async function timeout(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } (async () => { const browser = await puppeteer.launch({ headless: true }); const page = await browser.newPage(); await page.goto(CONFI...