text
stringlengths
3
1.05M
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import sys from example.hello.greet.greet import greet if __name__ == '__main__': greetees = sys.argv[1:] or ['world'] for greetee in greetees: print(greet(greetee))
// // GADAdDelegate.h // Google Mobile Ads SDK // // Copyright 2015 Google Inc. All rights reserved. // #import "GoogleMobileAdsDefines.h" GAD_ASSUME_NONNULL_BEGIN #pragma mark - Audio Control Notifications /// Delegate methods common to multiple ad types. @protocol GADAdDelegate<NSObject> @optional #pragma ma...
Tinytest.add('hello world test', function (test) { test.equal(Breadcrumb.hello(), 'hello'); test.equal(Breadcrumb.getAllParents(), []); });
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "GPUImageTwoInputFilter.h" @interface GPUImageTwoInputHighPassFilter : GPUImageTwoInputFilter { } - (id)init; - (void)renderToTextureWithVertices:(const float *)arg1 textu...
// TODO: Write code to define and export the Engineer class. HINT: This class should inherit from Employee. const Employee = require("./Employee"); class Engineer extends Employee { constructor(name, email, id, github) { super(name, id, email); this.github = github; } getRole() { return "En...
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2009-01-05 Bernard the first version * 2010-06-29 lgnq the first version * * For : NEC V850E * Toolchain : IAR Embedded Workbench ...
/* eslint-env node, mocha */ /* eslint-disable global-require */ const odbc = require('../'); const TABLE_EXISTS_STATE = '42S01'; describe('odbc', () => { before(async () => { let connection; try { connection = await odbc.connect(`${process.env.CONNECTION_STRING}`); await connection.query(`CREA...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re from bs4 import BeautifulSoup, CData from requests import get, codes from random import choice from pytz import timezone from datetime import datetime, timedelta from googletrans import Translator USER_AGENTS = ('Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:...
var searchData= [ ['lockflag',['lockflag',['../class_unlock.html#a4a22eeb48e9bd68d09b970f96cd3011b',1,'Unlock']]] ];
class Solution: def fib(self, n: int) -> int: # solution one: ้€’ๅฝ’ if n == 0: return 0 if n == 1: return 1 return self.fib(n - 1) + self.fib(n - 2) # solution two: ๅŠจๆ€่ง„ๅˆ’ dp_0, dp_1 = 0, 1 for _ in range(n): dp_0, dp_1 ...
from html import escape from onegov.form import errors from onegov.form.core import FieldDependency from onegov.form.core import Form from onegov.form.fields import MultiCheckboxField, DateTimeLocalField from onegov.form.fields import UploadField from onegov.form.parser.core import parse_formcode from onegov.form.utils...
export function calendarVisible() { return { type: "CALENDAR_TOGGLE" }; }
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
function diadeHoy(){ var now = new Date(); var day = ("0" + now.getDate()).slice(-2); var month = ("0" + (now.getMonth() + 1)).slice(-2); var today =now.getFullYear() +"-"+(month)+"-"+ day ; return today; } $(document).ready(function() { ///BOTON CERRAR LlenarGrilla(); LLenarComboSoci...
import torch from torch.nn.modules.loss import _WeightedLoss class LabelSmoothCrossEntropyLoss(_WeightedLoss): """Constructor for cross-entropy loss with label smoothing Parameters: ---------- smoothing: float The label smoothing factor. it should be between 0 and 1. weight: torch.Tensor ...
const Mock = require('mockjs') module.exports = [{ url: '/sys/listResources', type: 'post', response: config => { return { ...Mock.mock({ version: 0, errorCode: 0, message: 'success', data: { total: 1000, 'resourceDetails|10': [{ ...
from sympy.abc import t, w, x, y, z, n, k, m, p, i from sympy.assumptions import (ask, AssumptionsContext, Q, register_handler, remove_handler) from sympy.assumptions.assume import global_assumptions from sympy.assumptions.ask import compute_known_facts, single_fact_lookup from sympy.assumptions.handlers import...
from flask import Flask, url_for from flask_restplus import Resource, Api, fields from collections import Counter import string app = Flask(__name__) class WrappedAPI(Api): """This class wraps the flask_restplus API class in order to change the behavior of the specs_url method. When _external=True, it tries...
export { default } from './SerialCoverage';
# Copyright 2019 Axis Communications AB. # # For a full list of individual contributors, please see the commit history. # # 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.apac...
/* Mocks for the wallet library unit tests. */ 'use strict' const utxos = [ { txid: '5e74ef15bc2a1a04b958a816caa08be6fade1e1f93c046dfafcfcb43f38876ff', vout: 0, value: '60000', height: 1371612, confirmations: 407, satoshis: 60000 }, { txid: 'b7b9dc934920f4cd3ac89c926c170d6048c45045...
import sys import progressbar from tensorforce.environments import Environment from logger import * import numpy as np from production.envs.initialize_env import * from production.envs.resources import * from production.envs.time_calc import Time_calc from datetime import datetime class ProductionEnv(Environ...
from netfields.managers import NetManager from netfields.fields import (InetAddressField, CidrAddressField, MACAddressField) default_app_config = 'netfields.apps.NetfieldsConfig'
__CLASS__('MenuScreen', Screen, { nav1Screen: null, nav2Screen: null, OnLoad: function() { this.nav1Screen = this.SetScreen('#page1', Nav1Screen); this.nav2Screen = this.SetScreen('#page2', Nav2Screen); this.Click(this.clickGoBlank, '#goblank'); this.Click(...
#!/Users/drewnicolette/python_code/roobet/roobet/bin/python3 # $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML. """ try: import locale...
const express = require('express'); const app = express(); // url encoded olarak gelen veriyi almak iรงin app.use(express.urlencoded({ extended: true })); // json olarak gelen body data'sฤฑnฤฑ almak iรงin app.use(express.json()); // Statik Dosyalarฤฑ paylaลŸmak iรงin app.use(express.static('public')) // Birden fazla tanฤฑml...
export const defaultProps = {}; export const displayName = 'App/Routes/Interview'; export const propTypes = {};
# -*- coding: utf-8 -*- # Copyright (c) 2018, faztp12 and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class VehicleEntry(Document): pass
const express = require('express'); const cors = require('cors'); const mongoose = require(โ€˜mongooseโ€™); require('dotenv').config(); const app= express(); const port = process.env.PORT || 5000; app.use(cors()); app.use(express.json()); const uri = process.env.ATLAS_URI; mongoose.connect(uri, { useNewUrlParser: true,...
#!/usr/bin/python # Copyright 2014 BitPay, Inc. # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import os import bctest import buildenv if __name__ == '__main__': bctest.bctester(os.environ["srcdir"] + "/test/data", "tripcoin...
class RestModal { constructor(address, borough, cuisine, grades, name, restaurant_id) { this.address = address; this.borough = borough; this.cuisine = cuisine; this.grades = grades; this.name = name; this.restaurant_id = restaurant_id; } } module.exports = RestModal; ...
"""Test binary search tree module.""" import pytest def test_node_object_has_value_and_left_right_are_none(): """Test node constructure creates node with left and right children.""" from bst import Node n = Node(5) assert n.value == 5 assert n.left is None assert n.right is None def test_no...
import React, { Component } from 'react'; import QuestionBox from "./QuestionBox"; import {Card, ListGroup, ListGroupItem} from "react-bootstrap"; class Asymptomatic extends Component { constructor(props) { super(props); this.getAsymptomaticQuestions = this.getAsymptomaticQuestions.bind(this); ...
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_NATIVE_IO_NATIVE_IO_FILE_HOST_H_ #define CONTENT_BROWSER_NATIVE_IO_NATIVE_IO_FILE_HOST_H_ #include <string> #include "base/seque...
/** * Kendo UI v2016.2.909 (http://www.telerik.com/kendo-ui) * Copyright 2016 Telerik AD. All rights reserved. ...
// @flow import * as React from 'react'; import { View } from 'react-native'; import { StyleSheet } from '@kiwicom/universal-components'; import { Text, Duration } from '@kiwicom/margarita-components'; import { defaultTokens } from '@kiwicom/orbit-design-tokens'; import * as DateFNS from 'date-fns'; type Props = {| ...
# (C) Datadog, Inc. 2018 # (C) Justin Slattery <Justin.Slattery@fzysqr.com> 2013 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from __future__ import division import re import time from collections import defaultdict import requests from six import string_types from datadog_check...
// // SUPersonalCenterViewController.h // StartUniversity // // Created by ่‹ๅผบ on 2018/6/13. // Copyright ยฉ 2018ๅนด ่‹ๅผบ. All rights reserved. // #import "SUBasicViewController.h" @interface SUPersonalCenterViewController : SUBasicViewController @end
# Lint as: python3 # Copyright 2018 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 ...
var classarm__compute_1_1test_1_1datasets_1_1_large_shapes_broadcast = [ [ "LargeShapesBroadcast", "classarm__compute_1_1test_1_1datasets_1_1_large_shapes_broadcast.xhtml#a36423f389d3779c338041d95532dcdb2", null ] ];
var searchData= [ ['test_5faccumulate_995',['test_accumulate',['../namespaceutility_1_1test.html#ab3119b39975103a9eb91adc193296f50',1,'utility::test']]], ['test_5fadd_5fedge_996',['test_add_edge',['../namespacegraph__theory_1_1test.html#afca7670537e2da47c79f8e3602e96c2c',1,'graph_theory::test']]], ['test_5far_997...
from neuraxle.base import BaseStep, TruncableSteps, MetaStep, BaseTransformer from neuraxle.hyperparams.distributions import LogUniform, Quantized, RandInt, Boolean from neuraxle.hyperparams.space import HyperparameterSpace, HyperparameterSamples HYPERPARAMETERS_SPACE = HyperparameterSpace({ 'learning_rate': LogUn...
import os import shutil from unittest import TestCase from shutil import rmtree from dot import dot_prep_orig, DotPrep, DotPrepArgs, Nucmer # fasta_ref = 'tests/fna/FAM19036.fna' # gbk_ref = 'tests/gbk/FAM19036.gbk' # fasta_qry = 'tests/fna/FAM14217.fna' # gbk_qry = 'tests/gbk/FAM14217.gbk' fasta_ref = 'tests/fna/FAM...
# Copyright 2017 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
# coding: utf-8 """ Speech Services API v2.0 Speech Services API v2.0. # noqa: E501 OpenAPI spec version: v2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class Test(object): """NOTE: This class is auto generated...
import unittest import subprocess ANONYMOUS_FTP_SERVERS = [ '80.237.136.138', # ftp.hosteurope.de '129.215.17.244', # ftp.ed.ac.uk '134.109.228.1' # ftp.tu-chemnitz.de ] NO_FTP_SERVERS = [ '93.184.216.34', '157.240.20.35' ] class TestScan(unittest.TestCase): def test_anonymous_ftp_...
from numba import njit, gdb import numpy as np @njit(parallel={'offload':True}) def f1(a, b): c = a + b return c N = 10 print("N", N) a = np.ones((N,N,N,N), dtype=np.float32) b = np.ones((N,N,N,N), dtype=np.float32) print("a:", a, hex(a.ctypes.data)) print("b:", b, hex(b.ctypes.data)) c = f1(a,b) print("BIG...
#!/usr/bin/env python3 import sys import json def main(): with open(sys.argv[1]) as f: data = json.load(f) for register in data['c8y_Registers']: if 'number' not in register: print(register, "missing field 'number'") if 'input' not in register: ...
from django.conf import settings from django.contrib.sites.models import Site from django.forms import ModelForm, ValidationError from akismet import Akismet from camper.brainstorm.models import Idea class IdeaForm(ModelForm): class Meta: model = Idea fields = ('title', 'name', 'email', 'descript...
arr = [] for _ in range(6): tmp = [int(x) for x in str(input()).split(" ")] arr.append(tmp) maximum = -9 * 7 for i in range(6): for j in range(6): if j + 2 < 6 and i + 2 < 6: result = arr[i][j] + arr[i][j + 1] + arr[i][j + 2] + arr[i + ...
from torch import autograd import torch from torch import nn from torch.nn import functional as F from torch.optim import Adam from torch.optim.lr_scheduler import MultiStepLR from mlutils import Trainer from networks.gan import dcgan class DCGANTrainer(Trainer): def __init__(self, opt): super().__init__(...
/* PubSubClient.h - A simple client for MQTT. Nick O'Leary http://knolleary.net */ #ifndef PubSubClient_h #define PubSubClient_h #include <Arduino.h> #include "IPAddress.h" #include "Client.h" #include "Stream.h" #define MQTT_VERSION_3_1 3 #define MQTT_VERSION_3_1_1 4 // MQTT_VERSION : Pick the version...
# # Test suite for the textwrap module. # # Original tests written by Greg Ward <gward@python.net>. # Converted to PyUnit by Peter Hansen <peter@engcorp.com>. # Currently maintained by Greg Ward. # # $Id: test_textwrap.py 86637 2010-11-21 13:34:58Z ezio.melotti $ # import unittest from test import test_supp...
# Helper functions for caching build output for future runs. import hashlib import os import re import shutil import sys import time import angel.util.checksum def devops_build_cache_create(name, checksum, input_dir): ''' Given a build system (dojo, virtualenv, css), a unique checksum, and an input dir, ...
# # 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...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var my = require("./library/hello"); my.hello("Hello World!");
#-*-coding:utf-8-*- #!/usr/bin/python import pyaudio import wave import sys import time FORMAT = pyaudio.paInt16 CHANNELS = 1 RATE = 44100 CHUNK = 2**11 audio = pyaudio.PyAudio() def callback(in_data, frame_count, time_info, status): return(in_data, pyaudio.paContinue) stream = audio.open( format...
# -*- coding: utf-8 -*- import sys from PyQt4 import QtCore, QtGui def main(argv): app = QtGui.QApplication(argv) mainwindow = MainWindow() mainwindow.show() sys.exit(app.exec_()) class MainWindow(QtGui.QMainWindow): def __init__(self, *args): QtGui.QMainWindow.__init__(self, *args) ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Example of the domestic hot water (DHW) class. """ from __future__ import division import numpy as np import matplotlib.pyplot as plt import pycity_base.classes.demand.domestic_hot_water as dhw import pycity_base.classes.timer import pycity_base.classes.weather impo...
// Generated by CoffeeScript 1.6.2 (function() { var LONG_FLAG, MULTI_FLAG, OPTIONAL, OptionParser, SHORT_FLAG, buildRule, buildRules, normalizeArguments; exports.OptionParser = OptionParser = (function() { function OptionParser(rules, banner) { this.banner = banner; this.rules = buildRules(rules);...
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'minni_34174.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Im...
import { configureStore } from '@reduxjs/toolkit'; import reducer from './rootReducer'; import api from './middleware/api'; export default function configureAppStore() { return configureStore({ reducer, middleware: [ api, ], }); }
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Copyright (c) 2019-2021 Xenios SEZC # https://www.veriblock.org # Distributed under the MIT software license, see the accompanying # file LICENSE or http://www.opensource.org/licenses/mit-license.php. """ Start 3 nodes. Node0 has no -txinde...
'use strict'; const fs = require('fs'); const isWsl = require('is-wsl'); const path = require('path'); const webpack = require('webpack'); const resolve = require('resolve'); const PnpWebpackPlugin = require('pnp-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CaseSensitivePa...
import test from 'ava' import execa from 'execa' test('webdict --help', async t => { const helpStdout = await execa('./webdict.js', ['--help']) // console.log(help_stdout); t.true(helpStdout.stdout.length > 0) })
#ifndef BITCOIN_CHAINPARAMSSEEDS_H #define BITCOIN_CHAINPARAMSSEEDS_H /** * List of fixed seed nodes for the bitcoin network * AUTOGENERATED by contrib/seeds/generate-seeds.py * * Each line contains a 16-byte IPv6 address and a port. * IPv4 as well as onion addresses are wrapped inside a IPv6 address accordingly. ...
# Copyright (C) 2021 Intel Corporation # # 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...
exports['uriBinder() Bind ["file:///a.mcdoc","minecraft/foo.mcdoc","minecraft/bar.mcdoc","minecraft/qux.mcfunction"] 1'] = ` CATEGORY mcdoc + SYMBOL ::minecraft::foo {mcdoc (module)} [Public] + + implementation: + + + {"uri":"file:///root/minecraft/foo.mcdoc","range":{"start":0,"end":0},"posRange":{"start":{"line":0,"c...
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2018-03-22 10:31 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import fluent_contents.extensions class Migration(migrations.Migration): dependencies = [ ('fluent_contents', '0001_i...
''' Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, two is written as II in Roman numeral, just two one's added together. Twelve is ...
import requests import pdb from database import connectToDatabase, getAllUrlsToBeScraped, addUrlsToBeScraped, markUrlAsScraped conn = connectToDatabase("../db.sqlite3") blockedList = ['https://github.com/all-contributors/app',] toBeDeleted = [] for blockedUrl in blockedList: query = f'SELECT id FROM core_pin WHE...
#!/usr/bin/env python3 from setuptools import setup version = '0.0.0' author = 'Joha Park' description = ''' polya: Codes to reproduce some key results from the LARP1-poly(A) study. ''' requirements = list(map(str.strip, open('requirements.txt').readlines())) setup( name="polya", version=version, au...
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0.0035,"18":0.01051,"19":0,"20":0,"21":0,"22":0,"23":0.00701,"24":0,"25":0.0035,"26":0.01051,"27":0.0035,"28":0.0035,"29":0.00701,"30":0.0035,"31":0.0035,"32":0.0035,"33":0.01752,"34":0.04554,"35":0....
const router = require("express").Router(); const Workout = require("../models/workout"); //Add field for total duration and send to index.html to display most recent router.get("/api/workouts", (req, res) => { Workout.aggregate([{ $addFields: { totalDuration: { $sum: "$exercises.duration"} ...
from typing import Dict from rest_framework.decorators import api_view from rest_framework.request import Request from rest_framework.response import Response from dj_rest_auth.registration.views import RegisterView from dj_rest_auth.views import LoginView from .. import models, serializers, interfaces class Custom...
# # PySNMP MIB module DKSF-253-6-X-A-X (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DKSF-253-6-X-A-X # Produced by pysmi-0.3.4 at Mon Apr 29 18:32:23 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
''' geodesic2d_fast_marching_pytorch(torch::Tensor I, /*img float* */ torch::Tensor S, /* seeds uint8* */ torch::Tensor chann /* int value */ ) geodesic3d_fast_marching_pytorch(torch::Tensor I, /*img float* */ torch::Tensor S, /* seeds uint8* */ torch::Tensor spacing, /* float vec */ t...
const {WebcController} = WebCardinal.controllers; export default class ResearchStudyController extends WebcController { constructor(...props) { super(...props); this.model = {}; this._attachHandlerCreateResearchStudy(); this._attachHandlerResearchStudyList(); this._attachH...
import { ETIME } from "constants"; export function uuid() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); return v.toString(16); }); } /**************************************ๆ—ถ้—ดๆ ผๅผๅŒ–ๅค„็†**************...
# # Copyright (c) 2020 it-eXperts IT-Dienstleistungs GmbH. # # This file is part of tagger # (see https://github.com/IT-EXPERTS-AT/tagger). # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional informatio...
class Solution: def solve(self, nums): nums_set = set(nums) return [x for x in range(1,len(nums)+1) if x not in nums_set]
from datetime import date from sphinx_gallery.sorting import ExplicitOrder, FileNameSortKey import sphinx_rtd_theme from warnings import filterwarnings filterwarnings( "ignore", message="Matplotlib is currently using agg", category=UserWarning ) # General configuration # --------------------- # Add any Sphinx ex...
// // NYTPhotoViewerSinglePhotoDataSource.h // NYTPhotoViewer // // Created by Chris Dzombak on 1/27/17. // Copyright ยฉ 2017 The New York Times Company. All rights reserved. // @import Foundation; #import "NYTPhotoViewerDataSource.h" NS_ASSUME_NONNULL_BEGIN /** * A simple concrete implementation of `NYTPhotoV...
import hashlib import os from base64 import b64encode as encode from email.utils import parseaddr import config import ldap import errors from flask_restful import Resource, reqparse from requests import get, post, put import json import logging from flask import request from decorators import private_api, admin_api im...
import React from 'react' import * as components from 'idyll-components' import IdyllDocument from 'idyll-document' import { resolveScopedStyles } from './utils'; import styles from './styles/idyll'; const scopedStyles = resolveScopedStyles( <scope> <style jsx>{styles}</style> </scope> ) class Renderer extend...
# -*- coding: utf-8 -*- """ Script to execute example sparse covarying MMGP regression forecasting model with freely parameterized (sparse) cross function covariance Krhh. Inputs: Data training and test sets (dictionary pickle) Data for example: - normalised solar data for 25 sites for 15 minute forecast - N_train =...
#ifndef IRODINRESOURCEUSER_H #define IRODINRESOURCEUSER_H class HashedString; class IRodinResourceUser { public: virtual ~IRodinResourceUser() {} // Return true if this user should remain on the stack and false otherwise. virtual bool OnResourceStolen( const HashedString& Resource ) { Unused( Resource ); return f...
#pragma once #include <rpos/system/io/i_stream.h> #include <rpos/system/io/file_stream.h> #include <boost/make_shared.hpp> #include <map> namespace rpos { namespace system { namespace io { class RPOS_CORE_API SegmentedLoopFilesStreamBase : public IStream { public: struct Options ...
def search_in_1(lst:list, filters:list): results = [] for filt in filters: for element in lst: if filt in element: if element not in results: results.append(element) return results def search_in_2(lst:list, filters:list): filter_func = lambda key...
/**! * @ignore * attribute management * @author yiminghe@gmail.com, lifesinger@gmail.com */ KISSY.add(function (S, require, exports, module) { var RE_DASH = /(?:^|-)([a-z])/ig; var CustomEvent = require('event/custom'); module.exports = Attribute; var bind = S.bind; function replaceToUpper() {...
import sys sys.path.insert(1, "../../../") import h2o def czechboardRF(ip,port): # Connect to h2o h2o.init(ip,port) # Training set has checkerboard pattern #Log.info("Importing czechboard_300x300.csv data...\n") board = h2o.import_frame(path=h2o.locate("smalldata/gbm_test/czechboard_300x300.csv")...
'use strict'; define(function(require, exports) { var navTemplate = require("./templates/nav.html"); angular.module('ecgNav', []) .controller('NavController', function ($scope) { $scope.nav = {}; $scope.nav.getRoles = function() { return $scope.session.user.roles; }; ...
# Generated by Django 3.0.3 on 2020-05-21 15:13 import analyses.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('organisms', '0001_initial'), ('genes', '0001_initial'), ] operat...
/* * grunt-connect * https://github.com/iammerrick/grunt-connect * * Copyright (c) 2012 Merrick Christensen * Licensed under the MIT license. */ /*jshint es5:true*/ var connect = require('connect'); var path = require('path'); module.exports = function(grunt) { // Please see the grunt documentation for more ...
"use strict"; /* * Copyright 2009 ZXing 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 a...
from selenium import webdriver from PIL import Image import cv2 import pytesseract from PIL import Image import urllib.request driver = webdriver.Chrome("/Users/jalend15/opt/miniconda3/lib/python3.8/site-packages/selenium/webdriver/chrome/chromedriver") driver.get('https://ceoaperolls.ap.gov.in/AP_Eroll/Popuppage?...
import React from 'react' class SecondsTimer extends React.Component { state = { runSeconds: 0 } _mounted = false timer = () => { if (this._mounted) { var now = new Date() this.setState({ runSeconds: ((now - this.props.startTime) / 1000).toFixed(0) }) setTimeout(this.t...
import React from "react"; import PropTypes from "prop-types"; import { View, TouchableOpacity, TouchableNativeFeedback, ViewPropTypes, } from "react-native"; import { IS_ANDROID, IS_LT_LOLLIPOP, noop } from "./utils"; const Touchable = ({ onPress, style, disable, children }) => { if (IS_ANDROID && !IS_LT_LO...
import os,sys,shutil,time import argparse def find_files(top, extensions=('.c', '.cpp', '.h'), exclude=('ult', 'googletest', 'classtrace', '.git')): res = [] for root, dirs, files in os.walk(top): dirs[:] = [d for d in dirs if d not in exclude] #hard code to exclude mos_ file and _utils ...
/** Test script. The date-picker elements is cleared when each test has finished. Based on QUnit: http://api.qunitjs.com/category/assert/ **/ $(function() { /* Basic test Picker is inline and standalone mode (That not append with an input-field). */ test('Basic', function(){ var $picker = $('#inline_date_...