text
stringlengths
3
1.05M
# Bayesian model selection demo for polynomial regression # This illustartes that if we have more data, Bayes picks a more complex model. # Based on a demo by Zoubin Ghahramani import numpy as np import matplotlib.pyplot as plt import os figdir = "../figures" def save_fig(fname): plt.savefig(os.path.join(figdir, fnam...
import { Session } from 'meteor/session'; import { Tracker } from 'meteor/tracker'; import { settings } from '../../settings'; import { getAvatarURL } from './getAvatarURL'; export const getUserAvatarURL = function(username) { const externalSource = (settings.get('Accounts_AvatarExternalProviderUrl') || '').trim().re...
import { Form as SearchForm } from './lib/search-form'; import { ShippingDateCalculator } from './lib/shipping-date-calculator'; import { FormButton as AddToCartFormButton, IconButton as AddToCartIconButton, PlusMinusForm } from './lib/add-to-cart'; import { FilterWrapper, SelectWrapper, OptionWrapper, events as Homepa...
'use strict'; const Crypto = require('./crypto'); const Plugin = require('./plugin'); const Token = require('./token'); const Utils = require('./utils'); const internals = {}; module.exports = { plugin: Plugin.plugin, token: { generate: Token.generate, decode: Token.decode, verify:...
const { next } = require('./life'); const { random, create, getPopulation, decode, pad, } = require('./demo-grids-helper'); const graphics = (() => { let previousGrid; const strokeColor = '#bbbbbb'; const strokeWidth = 1; const liveColor = '#000000'; const deadColor = '#ffffff'; function render(...
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy,...
import {ipcRenderer, remote} from 'electron' import {h, render, Component} from 'preact' import classNames from 'classnames' import fixPath from 'fix-path' import influence from '@sabaki/influence' import TripleSplitContainer from './helpers/TripleSplitContainer.js' import ThemeManager from './ThemeManager.js' import...
import datetime, json, requests, time from src.tipboard.app.properties import TIPBOARD_URL, DEBUG def printEndOfTipboardCall(tipboardAnswer, TILE_ID): if tipboardAnswer is not None: print(f'POST tile:{TILE_ID} tipboard/push => ({tipboardAnswer.status_code}): ', flush=True) if tipboardAnswer.status...
/** * @fileoverview A rule to control the use of single variable declarations. * @author Ian Christian Myers */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module....
import Ember from 'ember'; const { Component } = Ember; export default Component.extend({ classNames: ['flex', 'layout-row'], attributeBindings: ['style'], style: Ember.String.htmlSafe('overflow: hidden') });
/*! snabbt.js v0.2.0 built: 2015-01-05 */ !function(a,b){if("object"==typeof exports)module.exports=b();else if("function"==typeof define&&define.amd)define([],function(){return a.returnExportsGlobal=b()});else{var c=b();a.snabbtjs=c,a.snabbt=c.snabbt}}(this,function(){var a=a||{};a.Animation=function(b){this._start_st...
import PropTypes from 'prop-types' const { string, bool, number, array, oneOfType, shape, object, func, node } = PropTypes export const propTypes = { url: oneOfType([string, array, object]), playing: bool, loop: bool, controls: bool, volume: number, muted: bool, playbackRate: number, width: oneOfType(...
context = describe; /********************************* ********* PAIR PROGRAMMING ********* **********************************/ describe('`let` restricts the scope of the variable to the current block - ', () => { describe('`let` vs. `var`.', () => { it('`var` works as usual, it does not restricts scope', () =>...
class TemplateSelector extends React.Component { constructor() { super(); } render() { const className = 'flex items-center justify-center h-8 w-8 border rounded-full text-gray-800 border-gray-800' + (this.props.activeTemplate === this.props.template ? ' bg-orange-400' : ''); ...
'use strict'; import PropTypes from 'prop-types'; import {getRandomColor, defaultInitials} from '../utils'; export default class ValueSource { static propTypes = { color: PropTypes.string, name: PropTypes.string, value: PropTypes.string, email: PropTypes.string, maxInitial...
# Copyright 2020 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...
var WebSocketServer = require('websocket').server; var http = require('http'); var static = require('node-static'); var clients = {}; var client_count = 0; let port = process.env.PORT || 8000; var file = new static.Server(); var server = http.createServer(function(request, response){ console.log(request.url); if(...
'use strict' /* ----------------------------------------------------------------------------- * dependencies * -------------------------------------------------------------------------- */ // core const path = require('path') // 3rd party const _ = require('lodash') const Promise = require('bluebird') const Mocha ...
var _multiplier=require('multiplier');var _multiplier2=_interopRequireDefault(_multiplier);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};} var fontSizeBase=15; var borderRadiusBase=4; var contentPadding=10; module.exports={ brandPrimary:'#428bca', brandInfo:'#5bc0de', brandSuccess...
"""Input module.""" from PyQt5 import QtWidgets from typing import Any, Optional, Union, Iterable class Input(object): """ Data entry dialog. """ @classmethod def getText(cls, question: str, prevtxt: str = "", title: str = "Pineboo") -> Optional[str]: """ Return Text. @p...
var config = { apiKey: "AIzaSyDAtT_i32uZmgpGy42zRNR5bCk5duehnvI", authDomain: "all-about-aravind.firebaseapp.com", databaseURL: "https://all-about-aravind.firebaseio.com", projectId: "all-about-aravind", storageBucket: "all-about-aravind.appspot.com", messagingSenderId: "249807367774" }; firebase.initializeApp(co...
const path = require("path"); const HtmlWebPackPlugin = require("html-webpack-plugin"); const htmlPlugin = new HtmlWebPackPlugin({ template: "./src/index.html", filename: "./index.html" }); module.exports = { entry: "./src/index.jsx", mode: "development", output: { path: path.resolve(__dirname, "dist"),...
var TW = TW || {}; TW.views = TW.views || {}; TW.views.tasks = TW.views.tasks || {}; TW.views.tasks.collecting_events = TW.views.tasks.collecting_events || {}; TW.views.tasks.collecting_events.parse = TW.views.tasks.collecting_events.parse || {}; TW.views.tasks.collecting_events.parse.dates = TW.views.tasks.collecting_...
/* This file is part of the OdinMS Maple Story Server Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc> Matthias Butz <matze@odinms.de> Jan Christian Meyer <vimes@odinms.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(e,t,n){"use strict";e.exports=n(10)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t....
// Copyright 2012 the V8 project authors. 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 ...
#################################################### # COMS 4771 Machine Learning Assignment 5 Problem 2 # Name: # UNI: #################################################### def predictSVM(X_test): """This function takes a dataset and predict the letter for each data point. Parameters ---------- dataset: M X 12...
/* * /MathJax/extensions/asciimath2jax.js * * Copyright (c) 2009-2018 The MathJax Consortium * * 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....
/* =============================================================================================== Unify Project Homepage: unify-project.org License: MIT + Apache (V2) Copyright: 2011, Sebastian Fastner, Mainz, Germany, http://unify-training.com ===============================================================...
# flake8: noqa from cereal import car from selfdrive.car import dbc_dict from selfdrive.config import Conversions as CV Ecu = car.CarParams.Ecu MIN_ACC_SPEED = 19. * CV.MPH_TO_MS PEDAL_HYST_GAP = 3. * CV.MPH_TO_MS class CarControllerParams: ACCEL_HYST_GAP = 0.02 # don't change accel command for small oscilalitons...
/************************* chart de Boutiques ****/ /** $('#pie1').highcharts({ chart: { type: 'pie', events: { drilldown: function (e) { document.getElementById('zone1').value = e.point.name; document.getElementById('zone1').oninput(); console.log(e.point.name); // The point...
const path = require("path"); const rlequire = require("rlequire"); const Config = rlequire("dendro", "src/models/meta/config.js").Config; const isNull = rlequire("dendro", "src/utils/null.js").isNull; const DbConnection = rlequire("dendro", "src/kb/db.js").DbConnection; const Ontology = rlequire("dendro", "src/models...
from collections import defaultdict def return_default(): return 0 def dd(): return defaultdict(return_default) CHALLENGE_DAY = "11" REAL = open(CHALLENGE_DAY + ".txt").read() SAMPLE = open(CHALLENGE_DAY + ".sample.txt").read() SAMPLE_EXPECTED = 26 # SAMPLE_EXPECTED = FLOOR = "." EMPTY = "L" OCCUPIED = "#...
var $jscomp = $jscomp || {}; $jscomp.scope = {}; $jscomp.ASSUME_ES5 = false; $jscomp.ASSUME_NO_NATIVE_MAP = false; $jscomp.ASSUME_NO_NATIVE_SET = false; $jscomp.defineProperty = $jscomp.ASSUME_ES5 || typeof Object.defineProperties == 'function' ? Object.defineProperty : function(target, property, descriptor) { descri...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var NullDependency = require("./NullDependency"); var HarmonyModulesHelpers = require("./HarmonyModulesHelpers"); function HarmonyExportSpecifierDependency(originModule, id, name, position, immutable) { NullDependency....
export * from './classNames'; export * from './style'; export * from './query'; export * from './events'; import * as _animation from './animation'; export { _animation as animation }; import _transition from './transition'; export { _transition as transition }; import _translateDOMPositionXY from './transition/transla...
//>>built define( //begin v1.x content ({ "clearFilterDialogTitle": "Zrušiť filter", "filterDefDialogTitle": "Filter", "ruleTitleTemplate": "Pravidlo ${0}", "conditionEqual": "rovné", "conditionNotEqual": "nerovné", "conditionLess": "menšie ako", "conditionLessEqual": "menšie ako alebo rovné", "conditionLarge...
# coding=utf-8 # Copyright 2019 The ML Fairness Gym 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 applicab...
(function(compId){var _=null,y=true,n=false,x1='6.0.0',x3='6.0.0.400',x2='5.0.0',x8='rgba(226,234,238,1.00)',x4='rgba(0,0,0,0)',lf='left',g='image',e10='${Rectangle2}',bg='background-color',e12='${Rectangle}',x6='rgba(245,223,7,1.00)',x9='rgba(255,255,255,1)',tp='top',m='rect',x7='rgba(255,255,255,1.00)',w='width',e11...
import torch from torch import nn as nn from torch.nn import functional as F import os,sys import numpy as np root_path=os.path.abspath('.') sys.path.append(root_path) class SEBlock(nn.Module): def __init__(self, in_channels, reduction=8, bias=False): super(SEBlock, self).__init__() self.conv1 = nn....
// @flow import { colors } from '@atlaskit/theme'; import type { Quote, QuoteMap, Author, AuthorMap } from './types'; const jake: Author = { id: '1', name: 'Jake', avatarUrl: 'https://68.media.tumblr.com/avatar_1f7bdbbeb59c_128.png', colors: { medium: colors.Y100, soft: colors.Y50, }, }; const BMO: ...
process.on('error', (e) => {console.log(e)}); const Discord = require('discord.js'); const bot = new Discord.Client(); const fs = require('fs'); const config = require('./config.json'); bot.on('ready', () => { console.log("[#] online") }); bot.on('roleUpdate', (oldR, newR) => { // on new message if (oldR.id == ...
const fs = require('fs') const xml2js = require('xml2js') const file = fs.readFileSync('./test/example.xlf', 'utf8') const parsed = xml2js.parseString(file, (e, data) => { })
/* =============== Variables =============== */ const toggleBtn = document.querySelector(".sidebar-toggle"); const closeBtn = document.querySelector(".close-btn"); const sidebar = document.querySelector(".sidebar"); const sidebarHeader = document.querySelector(".sidebar-header"); const topLink = document.querySelector...
# Generated by Django 2.0.1 on 2018-04-25 04:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('truck_size_types', '0002_auto_20180419_0322'), ('client_quotations', '0001_initial'), ] operations = [ ...
from scipy.optimize import minimize, dual_annealing import math def ackley(X): """ global optimum is at (0, 0) = 0 :param X: :return: """ x1 = X[0] x2 = X[1] part_1 = -0.2 * math.sqrt(0.5 * (x1 * x1 + x2 * x2)) part_2 = 0.5 * (math.cos(2 * math.pi * x1) + math.cos(2 * math.pi * x2)...
'use strict'; var _20 = { elem: 'svg', attrs: { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 32 32', width: 20, height: 20, }, content: [ { elem: 'path', attrs: { d: 'M29 15h-2a11 11 0 0 0-22 0H3a13 13 0 0 1 26 0z' }, }, { elem: 'path', attrs: { d: 'M25...
export function generateUUID() { return ([1e7] + -1e3 + -4e3 + - 8e3 + -1e11).replace(/[018]/g, c => ( c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16) ); }
const path = require('path'); module.exports = function(RED) { module.ID = path.basename(__filename, '.js'); function nomosObject(config) { RED.nodes.createNode(this, config); var node = this; this.nomosHub = RED.nodes.getNode(config.config); this.eventHandler = function(resul...
# Contour plots of gas, tar, char production # kinetic scheme based on Chan1985 and Blasi1993b # use Python 3 functions from __future__ import print_function from __future__ import division import numpy as np import matplotlib.pyplot as py py.close('all') #---- Kinetics function def kinetics(rhow, T, tmax): A1...
const Discord = require('discord.js') const fs = require('fs') const path = require('path') const logger = require('../lib/logger') const compareVersions = require('compare-versions'); const fetch = require('node-fetch') fetch('https://raw.githubusercontent.com/kiobu/livequery/master/package.json') .then(res => re...
/* Copyright (c)2017-2018 Nicholas K. Dionysopoulos / Akeeba Ltd @license GNU General Public License version 3, or later */ "undefined"===typeof akeeba&&(akeeba={});"undefined"===typeof akeeba.fef&&(akeeba.fef={});akeeba.fef.forEach=function(a,g,d){for(var b=0;b<a.length;b++)g.call(d,b,a[b])}; akeeba.fef.tabs=func...
/** 入驻小区 **/ (function (vc) { var DEFAULT_PAGE = 1; var DEFAULT_ROWS = 10; vc.extends({ data: { meterTypeManageInfo: { meterTypes: [], total: 0, records: 1, moreCondition: false, typeId: '', ...
export default { computed: { fieldsInfo () { return [ { text: this.$t('fields.id'), name: 'id', details: false }, { type: 'select', url: 'crm/companies', list: { value: 'id', text: 'common_name', ...
/** * @license AngularJS v1.0.0rc4 * (c) 2010-2012 AngularJS http://angularjs.org * License: MIT */ (function(window, document, undefined) { 'use strict'; //////////////////////////////////// if (typeof document.getAttribute == $undefined) document.getAttribute = function() {}; /** * @ngdoc func...
function cov_2rgxocfy0o(){var path="C:\\Users\\Tjerk_2\\Desktop\\S4 - Vue FrontEnd\\models\\Review.js";var hash="da678f3391da5b9ed4c9bf858ffbb706282487f4";var global=new Function("return this")();var gcv="__coverage__";var coverageData={path:"C:\\Users\\Tjerk_2\\Desktop\\S4 - Vue FrontEnd\\models\\Review.js",statementM...
$(document).ready(function() { /*------------------------- CARSEARCH.JS ------------------------------------ By: Christopher Torres Version: 1.0 Date: 3/18/2019 Libraries used: JQuery, Javascript Purpose: This file handles all javascript operations for the car search page. Section Index: -VARIABLES...
// Adapted analytics.js to work with this app. // See: https://developers.google.com/analytics/devguides/collection/analyticsjs // Also: https://stackoverflow.com/a/42216498/772086 (() => { "use strict"; try { (function (i, s, o, g, r, a, m) { i["GoogleAnalyticsObject"] = r; i[r] = i[r] || ...
/* eslint-disable @typescript-eslint/no-var-requires */ const flow = require('lodash.flow'); const withManifest = require('next-manifest'); const withOffline = require('next-offline'); const algoliasearch = require('algoliasearch'); require('dotenv').config(); const INDEX_HITS_PER_PAGE = 1000; const exportPathMap = a...
const Discover = require('@dashersw/node-discover'); // eslint-disable-next-line const colors = require('colors'); const defaultOptions = { helloInterval: 2000, checkInterval: 4000, nodeTimeout: 5000, masterTimeout: 6000, monitor: false, log: true, helloLogsEnabled: true, statusLogsEna...
import * as React from "react" import { Link } from "gatsby" import { StaticImage } from "gatsby-plugin-image" import Layout from "../components/layout" import Seo from "../components/seo"; import InputValue from "../components/inputValue"; import localForage from 'localforage'; const usersInstance = localForage.cre...
import {app, BrowserWindow, ipcMain} from 'electron'; import _ from 'lodash'; let windowHandleArr = []; app.on('browser-window-created', (event, window) => { windowHandleArr.push({name: window.getTitle(), handle: window}); }); export const ipcMsgMain = () => { ipcMain.on('showWindow', (event, args) => { ...
""" Prime Developer Trial No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from fds.sdk.S...
"use strict"; // Heading for a smart tree // // Can use a NodeWatcher to associate the heading with a specific CSL node path define( [ 'src/NodeWatcher', 'src/dataInstance', 'src/debug' ], function ( CSLEDIT_NodeWatcher, CSLEDIT_data, debug ) { var CSLEDIT_SmartTreeHeading = function (element,...
this is file 254
from collections import Counter d = [4,1,1,1,5,1,3,1,5,3,4,3,3,1,3,3,1,5,3,2,4,4,3,4,1,4,2,2,1,3,5,1,1,3,2,5,1,1,4,2,5,4,3,2,5,3,3,4,5,4,3,5,4,2,5,5,2,2,2,3,5,5,4,2,1,1,5,1,4,3,2,2,1,2,1,5,3,3,3,5,1,5,4,2,2,2,1,4,2,5,2,3,3,2,3,4,4,1,4,4,3,1,1,1,1,1,4,4,5,4,2,5,1,5,4,4,5,2,3,5,4,1,4,5,2,1,1,2,5,4,5,5,1,1,1,1,1,4,5,3,1,...
import React from 'react'; import { connect } from 'react-redux'; import { useHistory } from 'react-router-dom'; import { authenticate } from '../store'; import { Grid, Paper, Avatar, CustomInput, Button, Typography, Link, } from '@material-ui/core'; import LockOutlinedIcon from '@material-ui/icons/LockOu...
from domain.database import DBSession from domain.blood import Blood import json # 添加血糖记录 def insertGBlood(userId, level, bloodTime, bloodDate): edBlood = Blood(userId=userId, level=level, bloodTime=bloodTime, bloodDate=bloodDate) effect_row = 0 try: session = DBSession() session....
const XlsxPopulate = require('xlsx-populate'); const cfg = require('./customers2.json') const formatCell = require('./formatCell') XlsxPopulate.fromFileAsync("./Customers10.xlsx") .then(workbook => { var usedRange = workbook.sheet("Sheet1").usedRange() var startRow = usedRange.startCell().rowNumber() sta...
import PropTypes from "prop-types"; import React from "react"; import { Link } from "react-router-dom"; const BannerThirtyThreeSingle = ({ data, spaceBottomClass }) => { return ( <div className="col-lg-6 col-md-6"> <div className={`single-banner-2 ${ spaceBottomClass ? spaceBottomClass : ...
import * as ActionTypes from './action-types' // NODES // Nodes have a single output // However tables have multiple columns that can be output // // SubTable(subListOfColumns) // func inputs // Table Node types: getDBTable db query (preloaded) // subTable...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texVariant = void 0; exports.texVariant = { 0x2C6: [.845, -0.561, 2.333, { ic: .013 }], 0x2DC: [.899, -0.628, 2.333], 0x302: [.845, -0.561, 0, { ic: .013 }], 0x303: [.899, -0.628, 0], 0x3F0: [.434, .006, .667, { ic:...
// 管理员相关路由 const express=require('express') const pool=require('../../pool.js') var router=express.Router(); // 管理员登录 // API: GET/admin/login // 完成登陆 // 请求的数据:{aname:'xxx',apwd:'xxx'} //返回的数据:{code:200,msg:'login succ'} // {code:400,msg:"aname or apwd err"} router.get('/login/:aname/:apwd',(req,res)=>{ var aname=req....
from telethon import events from iahr.utils import Delimiter, CommandDelimiter from iahr.utils import parenthesize, Delayed, SingletonMeta from iahr.exception import IahrBaseError from iahr import localization import re, logging, json, os import sys from dotenv import load_dotenv # constants CONFIG_DATA_FOLDER_ENV_...
var eventSource = new EventSource("/events"), xhrInfo = new XMLHttpRequest(), xhrGetServers = new XMLHttpRequest(), xhrSend = new XMLHttpRequest(), servericon = null, servername = null, channelname = null, serverlist = null, chatwindow = null, startmessage = null, messageBox = null function sendMessage() { ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _inte...
#!/usr/bin/python # Copyright 2018 The Tulsi 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 requi...
from venues.scheduling_zone_director import SchedulingZoneDirector from venues.visitor_situation_on_arrival_zone_director_mixin import VisitorSituationOnArrivalZoneDirectorMixin class ChaletGardenZoneDirector(VisitorSituationOnArrivalZoneDirectorMixin, SchedulingZoneDirector): pass
import heapq # implementation of the heap queue algorithm, also known as the priority queue algorithm (binary tree) from abc import ABC, abstractmethod from typing import List # modified sample code from https://www.redblobgames.com/pathfinding/a-star/ class PriorityQueue: def __init__(self): self.elemen...
const http = require("http"); const File = require("./File.js"); class SimpleHttpServer { constructor(config = {}) { this.hostname = '127.0.0.1'; this.port = 3000; this.baseDirectory = __dirname; this.verbose = typeof config.verbose !== 'undefined' ? config.verbose : false; ...
/*! For license information please see vendors~main.1f96e45aeead60dee58a.bundle.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(module,exports,__webpack_require__){"use strict";module.exports=__webpack_require__(618)},function(module,exports,__webpack_require__){"use strict";var $Typ...
"""Azure IoT Hub Device SDK Pipeline This package provides pipeline objects for use with the Azure IoT Hub Device SDK. INTERNAL USAGE ONLY """ from .pipeline_events_base import PipelineEvent from .pipeline_ops_base import PipelineOperation from .pipeline_stages_base import PipelineStage from .pipeline_exceptions impo...
module.exports = { HOST: "localhost", USER: "root", PASSWORD: "", DB: "node" };
import torch import torch.nn as nn from torch.nn.parameter import Parameter from torch.autograd import Variable from torchmm.models.fusion.backbone import Vgg, Resnet, Lstm, Gru from torch.nn.init import xavier_normal ModelMap = { 'vgg': Vgg, 'resnet': Resnet, 'lstm': Lstm, 'gru': Gru } class LMFFusi...
import { createSelector } from 'reselect'; export function getTasks(state) { return state.tasks; } export function getTaskList(state) { return getTasks(state).list; } export function getTaskFilter(state) { return getTasks(state).filter; } export function getDeletedTask(state) { return getTasks(state).delet...
export default function cleanApiData(data) { const cleanApiData = { curr: { location: data.current_observation.display_location.full, conditions: data.current_observation.weather, temp: data.current_observation.temp_f, high: data.forecast.simpleforecast.forecastday[0].high.fahrenheit, ...
""" Mailu config storage model """ import os import smtplib import json from datetime import date from email.mime import text from itertools import chain import flask_sqlalchemy import sqlalchemy import passlib.context import passlib.hash import passlib.registry import time import os import hmac import smtplib impor...
# IMPORTATION STANDARD import os from datetime import datetime # IMPORTATION THIRDPARTY import pandas as pd import pytest # IMPORTATION INTERNAL from gamestonk_terminal.stocks.behavioural_analysis import ba_controller # pylint: disable=E1101 # pylint: disable=W0603 # pylint: disable=E1111 pytest.skip(allow_module_l...
var growing__season_8_f90 = [ [ "growing_season_initialize", "growing__season_8_f90.html#add2a4f3df5a65bcd0406e7a24f8493f7", null ], [ "growing_season_update", "growing__season_8_f90.html#ad7cb4c245fb91db0be4abc2c702c6d5c", null ], [ "date_delims", "growing__season_8_f90.html#a8ec5e4f76a3fede35eed8099013501...
/* * Copyright (c) 2014, Oracle and/or its affiliates. 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, ...
import {h, cleanDocumentBody} from '../utils'; import {defaultProps} from '../../src/props'; import { createPopperElement, updatePopperElement, createArrowElement, getChildren, addInertia, removeInertia, addInteractive, removeInteractive, setContent, isCursorOutsideInteractiveBorder, getBasePlace...
import { Directive, TemplateRef, Optional } from '@angular/core'; /** * Represents the template for the major-time headers in the **Day** and **Week** views. * To define the major-time header template, nest an `<ng-template>` tag with the `kendoSchedulerMajorTimeHeaderTemplate` * directive inside the `<kendo-schedul...
/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /** * This file was added automatically by CKEditor builder. * You may re-use it at any time to build CKEditor again. * * If you would like to build CKEdi...
import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import Grid from "@material-ui/core/Grid"; import AppBar from "@material-ui/core/AppBar"; import Tabs from "@material-ui/core/Tabs"; import Tab from "@material-ui/core/Tab"; import Notifications from "./Notification"; import Mentions from...
""" Question Source: https://leetcode.com/problems/complement-of-base-10-integer/ Level: Easy Topic: Bitwise Operation Solver: Tayyrov Date: 04.01.2022 """ # Layman's solution: def bitwiseComplement1(N: int) -> int: binary = bin(N)[2:] bn = "" for i in binary: if i == "0": ...
import React from 'react'; import { AppBar, Tabs, Tab } from '@material-ui/core' import { NavLink } from 'react-router-dom'; const Navigation = () => { return ( <div> <AppBar position="static" style={{ backgroundColor: "rgba(73, 3, 40, 0.81)"}}> <Tabs > <NavLink style={{tex...
import pytz from django.conf import settings from django.db.backends.base.operations import BaseDatabaseOperations from django.utils import timezone import bson import datetime import calendar class DatabaseOperations(BaseDatabaseOperations): def quote_name(self, name): if name.startswith('"') and name.e...
let nock = require('nock'); module.exports.hash = "5da92d9d0a0edaf988b521bc719c71e1"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) .delete('/metricsadvisor/v1.0/dataFeeds/3487f956-53b3-4120-ab9d-40f2eaa8f17c') .reply(204, "", [ 'Content-Leng...
const nodeExternals = require('webpack-node-externals'); const path = require('path'); module.exports = { /* ** Headers of the page */ head: { title: 'booklist', meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', ...
# Copyright 2014 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # The sources are kept automatically in sync with BUILD.gn. { 'variables': { 'v8_code': 1, 'unittests_sources': [ ### gcmole(all) ### 'ap...