text
stringlengths
3
1.05M
# !/usr/bin/env python # coding=utf-8
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'quizme.settings') try: from django.core.management import execute_from_command_line except Impor...
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <t...
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/wisdom/ConnectWisdomService_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/core/utils/memory/stl/AWSMap.h> #include <utility> namespace Aws { nam...
YUI.add("yuidoc-meta", function(Y) { Y.YUIDoc = { meta: { "classes": [ "Animal", null ], "modules": [], "allModules": [] } }; });
#pragma once #include "ProgressWidget.h" #include <QPen> #include <QBrush> #include <memory> namespace APD { class ProgressVelocityPlot : public ProgressWidget { Q_OBJECT public: explicit ProgressVelocityPlot(QWidget* parent = nullptr); explicit ProgressVelocityPlot(const QString& qu...
import React, { Component } from 'react' import { createStore, applyMiddleware, combineReduxers, compose } from 'redux' import { Provider } from 'react-redux' import thunkMiddleware from 'redux-thunk' import createLogger from 'redux-logger' import boosterApp from './reducers' import GoalBoosterContainer from './contai...
const Exception = require("../Exception/Exception"); class ExceptionFormatter { static formatApiException(exception) { if (exception instanceof Exception) { return { message: exception.message, internalCode: exception.internalCode, ...
# coding=utf-8 # -------------------------------------------------------------------------- # 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 ...
import styled from 'styled-components'; const Tag = styled.div` padding: 0.4em 1em; font-size: 0.625em; border-radius: 0.2em; background-color: #f4f4f7; margin-left: 4px; `; export default Tag;
function initMap() { // The location of kigali var kamonyi = {lat: -1.9800, lng: 29.8584}; var muhanga = {lat: -2.080, lng: 29.753}; var nyabugogo = {lat: -1.9367, lng: 30.0535}; // The map, centered at Uluru var map = new google.maps.Map(document.getElementById('map'), {zoom: 10, center: kamony...
__NUXT_JSONP__("/33/10", (function(a,b,c,d,e,f,g){return {data:[{metaTitle:b,metaDesc:c,verseId:10,surahId:33,currentSurah:{number:"33",name:"الاحزاب",name_latin:"Al-Ahzab",number_of_ayah:"73",text:{"1":"يٰٓاَيُّهَا النَّبِيُّ اتَّقِ اللّٰهَ وَلَا تُطِعِ الْكٰفِرِيْنَ وَالْمُنٰفِقِيْنَ ۗاِنَّ اللّٰهَ كَانَ عَلِيْمًا حَ...
import numpy as np from matplotlib import pyplot as plt import pandas as pd # from postproccer import UAEsim,Graph,UAEdata from UAEdata import UAEdata class Simulation(object): def __init__(my, path=None): if path is None: print("Specify path"); quit() else: my.path=path my.import...
import 'd2l-content-icons/d2l-open-one-drive-icon.js'; import '@brightspace-ui/core/components/button/button.js'; import { D2LSequencesContentLink } from './d2l-sequences-content-link.js'; import '../../mixins/d2l-sequences-automatic-completion-tracking-mixin.js'; import { html } from '@polymer/polymer/lib/utils/html-t...
from plot.canvas import create from plot.parameter import update import os def test(): here = os.path.dirname(os.path.realpath(__file__)) config_file = os.path.join(here, 'config', 'in1.yaml') answer = create(update(config_file)) assert (len(answer['canvas']['axes']) == answer['global']['...
/** * Author......: See docs/credits.txt * License.....: MIT */ #include "common.h" #include "types.h" #include "modules.h" #include "bitops.h" #include "convert.h" #include "shared.h" static const u32 ATTACK_EXEC = ATTACK_EXEC_INSIDE_KERNEL; static const u32 DGST_POS0 = 3; static const u32 DGST_POS1...
# Generated by Django 3.2 on 2021-05-10 16:23 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Author', fields=[ ...
const system = { state: { 'pid':'mm_25937486_694850010_109271550401', 'adzone_id':109271550401, 'pdd_GZH_pid':'1966721_105379678' }, } export default system
import numpy as np import pandas as pd import unittest from Eir.DTMC.spatialModel.randomMovement.randMoveSIRSDV import RandMoveSIRSDV import Eir.exceptions as e np.random.seed(31631973) class Test_RandMoveSIRSDV(unittest.TestCase): def __init__(self): self.test = RandMoveSIRSDV(999, 1, 0, 0, .25, .15, ....
'use strict' const { DateTime, Interval, Duration } = require('luxon') const issues = require('./issues') module.exports.createNextMeeting = async function (client, opts) { const meetingToCreate = await shouldCreateNextMeetingIssue(client, opts) if (!meetingToCreate) { return } return issues.create(client...
import store from "./store/index.js"; import Count from "./components/count.js"; import List from "./components/list.js"; import Status from "./components/status.js"; const formElement = document.querySelector(".js-form"); const inputElement = document.querySelector("#new-item-field"); formElement.addEventListener("...
from .encoders.numeric_encoder import * from .encoders.time_series_encoder import * __all__ = (encoders.numeric_encoder.__all__ + encoders.time_series_encoder.__all__)
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html const { join } = require('path'); const getBaseKarmaConfig = require('../../../../karma.conf'); module.exports = function (config) { const baseConfig = getBaseKarmaConfig(); config.s...
#!/usr/bin/python3 import logging import unittest import astropy.units as u import simtools.io_handler as io from simtools.simtel.simtel_events import SimtelEvents logger = logging.getLogger() logger.setLevel(logging.DEBUG) class TestSimtelEvents(unittest.TestCase): def setUp(self): self.testFiles = l...
!function(){function t(e,n,r){return(t=m()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&f(i,n.prototype),i}).apply(null,arguments)}function e(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))|...
import React from 'react'; import ReactDOM from 'react-dom'; import StateApi from 'state-api'; import App from 'components/App'; const store = new StateApi(window.initialData); ReactDOM.render( <App store={store} />, document.getElementById('root') );
import json import os import sys from dataclasses import asdict, dataclass, field, fields from multiprocessing import cpu_count import warnings from torch.utils.data import Dataset def get_default_process_count(): process_count = cpu_count() - 2 if cpu_count() > 2 else 1 if sys.platform == "win32": p...
import socket import json import time import requests from nose.plugins.skip import SkipTest from pylons import config from ckan.tests import TestController, CreateTestData import ckan.model as model from ckan.lib.helpers import url_for ELASTIC_SEARCH_HOST = config.get('elastic_search_host', '0.0.0.0:9200') class...
'''Crie um programa que leia o nome e o preço de vários produtos. O programa deverá perguntar se o usuário vai continuar. No final, mostre: A) Qual é o total gasto na compra. B) Quantos produtos custam mais de R$1000. C) Qual é o nome do produto mais barato.''' produto = preco = maisdemil = maisbarato = total = 0 prin...
#!/usr/bin/python import sys import pprint import os import six import httplib2 import googleapiclient.discovery import googleapiclient.http import googleapiclient.errors import oauth2client.client def get_drive_service(): OAUTH2_SCOPE = 'https://www.googleapis.com/auth/drive' CLIENT_SECRETS = 'client_secre...
describe('SimplePagination', function() { it('adds pagination elements to an empty container', function() { expect(pager).toBePaged(); }) describe('#destroy', function() { it('visually destroys the pager', function() { pager.pagination('destroy'); expect(pager).not...
require('babel-register') const path = require('path') require('module-alias').addAliases({ 'babel-plugin-emotion': path.join(__dirname, '../../src') }) module.exports = require('babel-plugin-macros')
''' email_template.py Copyright 2019 superman_ha_muerto@yahoo.com 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 ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const pip_services3_commons_node_1 = require("pip-services3-commons-node"); const pip_services3_rpc_node_1 = require("pip-services3-rpc-node"); class ObjectGroupsHttpClientV1 extends pip_services3_rpc_node_1.CommandableHttpClient { constru...
webpackJsonp([21],{"5uHC":function(t,i,s){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a={name:"index",data:function(){return{car_num:1,buy_num:1,logoimage:"",hb_val:"",title:"",price:"",depositprice:"",id:"",details:"",shou:!1,shous:!1,order_num:"",stock:"",cityd:"",endcity:"",start_shop:"",destin...
from setuptools import setup def exec_file(path): """Execute a python file and return the `globals` dictionary.""" with open(path, 'rb') as f: code = compile(f.read(), path, 'exec') namespace = {} try: exec(code, namespace, namespace) except ImportError: # ignore missing depend...
"""Reads vehicle status from BMW connected drive portal.""" import logging from homeassistant.components.binary_sensor import BinarySensorDevice from homeassistant.const import LENGTH_KILOMETERS from . import DOMAIN as BMW_DOMAIN DEPENDENCIES = ['bmw_connected_drive'] _LOGGER = logging.getLogger(__name__) SENSOR_T...
const numberWithCommas = x => { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); }; function convertWordArrayToUint8Array(wordArray) { let arrayOfWords = wordArray.hasOwnProperty("words") ? wordArray.words : []; let length = wordArray.hasOwnProperty("sigBytes") ? wordArray.sigBytes : arrayOfWords.lengt...
from abc import ABCMeta, abstractmethod import multiprocessing import os from time import sleep import hashlib from vmaf.core.asset import Asset from vmaf.tools.decorator import deprecated from vmaf.tools.misc import make_parent_dirs_if_nonexist, get_dir_without_last_slash, \ parallel_map, match_any_files, run_pro...
/* * GPIO.c * * Created on: Nov 2, 2021 * Author: Kunal */ #include "GPIO.h" void GPIO_Pin_Setup(char Port, uint8_t pin, uint8_t function, uint8_t alternate_function) { if(Port == 'A' || Port == 'a') { RCC -> AHB1ENR |= RCC_AHB1ENR_GPIOAEN; GPIOA -> MODER |= ((0xC0 & function...
#ifndef MPC_H #define MPC_H #include <vector> #include "Eigen-3.3/Eigen/Core" using namespace std; class MPC { public: vector<double> mpc_x_vals; vector<double> mpc_y_vals; double steer; double throttle; MPC(); virtual ~MPC(); // Solve the model given an initial state and polynomial coefficients. ...
import reducer from './modules/Projects' import getProjects from './modules/getProjects' import deleteProjects from './modules/deleteProjects' import ProjectsContainer from './containers/ProjectsContainer.js' export {reducer, ProjectsContainer } export const sagas = [ getProjects, deleteProjects ]
"""Main entry point for distributed next-gen sequencing pipelines. Handles running the full pipeline based on instructions """ from __future__ import print_function from collections import defaultdict import copy import os import sys import resource import tempfile import toolz as tz from bcbio import log, heterogen...
import React, { Component } from 'react'; import loginImg from "../../../static/assets/images/auth/login.jpg"; import Login from "../auth/login" export default class Auth extends Component { constructor(props) { super(props); this.handleSuccessfulAuth = this.handleSuccessfulAuth.bind(this) ...
// // Tweet.h // twitter // // Created by Hector Diaz on 7/2/18. // Copyright © 2018 Emerson Malca. All rights reserved. // #import <Foundation/Foundation.h> #import "User.h" @interface Tweet : NSObject // MARK: Properties @property (nonatomic, strong) NSString *idStr; // For favoriting, retweeting & replying @p...
import { DB, LITE, RATIO, RAW } from '@glossa/enum-data-scopes' import { CHS, ENG } from '@glossa/enum-fin' import { TYPE } from '@glossa/enum-general-fields' import { NUM, STR } from '@typen/enum-data-types' export const SchemaTable = { head: [TYPE, RAW, LITE, DB, RATIO, CHS,...
const { Request, Response } = require('minipass-fetch') const Minipass = require('minipass') const MinipassCollect = require('minipass-collect') const MinipassFlush = require('minipass-flush') const MinipassPipeline = require('minipass-pipeline') const cacache = require('cacache') const url = require('url') co...
#!/usr/bin/python -u # Copyright or Copr. INRIA/Scilab - Sylvestre LEDRU # # Sylvestre LEDRU - <sylvestre.ledru@scilab.org> <sylvestre@ledru.info> # # This software is a computer program whose purpose is to generate C++ wrapper # for Java objects/methods. # # This software is governed by the CeCILL license under Fr...
/* * Kendo UI Complete v2013.1.514 (http://kendoui.com) * Copyright 2013 Telerik AD. All rights reserved. * * Kendo UI Complete commercial licenses may be obtained at * https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx * If you do not own a commercial license, this file shall be...
''' Created on Apr 20, 2017 @author: simulant '''
from fifo import FIFO from lru import LRU from optimal import Optimal from second_chance import SecondChance if __name__ == "__main__": reference = input("Give page reference in order: \t").split() _frame = input("Give Memory Partition in order: \t").split() frame = [int(_) for _ in _frame] flag = in...
# -*- coding: utf-8 -*- # Import Python libs from __future__ import absolute_import # Import Salt Libs from salt.modules import win_powercfg as powercfg # Import Salt Testing Libs from salttesting import skipIf, TestCase from salttesting.helpers import ensure_in_syspath from salttesting.mock import ( NO_MOCK, ...
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-30 09:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("product", "0025_auto_20161219_0517")] operations = [ migrations.AddField( mo...
import pytest from principal import somar from principal import subtrair def test_somar(): assert somar(2,4)==6
from magcoilcalc.core import *
/* * This header is generated by classdump-dyld 1.0 * on Sunday, June 7, 2020 at 11:28:01 AM Mountain Standard Time * Operating System: Version 13.4.5 (Build 17L562) * Image Source: /System/Library/PrivateFrameworks/LimitAdTracking.framework/LimitAdTracking * classdump-dyld is licensed under GPLv3, Copyright © 2013-201...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === '...
/* Ourblox Website Made by 1002, lightbulblighter Contact: ozzt@shit.software, lightbulblighter@gmail.com MIT Licensed A copy of the MIT license is available in the "LICENSE" file. */ var express = require('express') var router = express.Router() var utils = require('../utils') router.get('/', funct...
from datetime import datetime, timedelta from functools import partial from importlib import import_module import pandas as pd import numpy as np from vnpy.event import EventEngine from vnpy.trader.vtObject import VtBarData from vnpy.trader.vtConstant import VN_SEPARATOR from vnpy.trader.utils.datetime import standar...
// Copyright (c) 2012 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. cr.exportPath('print_preview'); /** * @typedef {{selectSaveAsPdfDestination: boolean, * layoutSettings.portrait: boolean, * ...
(function () { 'use strict'; var module = angular.module('angular-bind-html-compile', []); module.directive('bindHtmlCompile', ['$compile', function ($compile) { return { restrict: 'A', link: function (scope, element, attrs) { scope.$watch(function () { ...
// @ts-check // Protractor configuration file, see link for more information // https://github.com/angular/protractor/blob/master/lib/config.ts const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter'); /** * @type { import("protractor").Config } */ exports.config = { allScriptsTimeout: 11000, ...
import { useState, useEffect } from "react"; const useCurrentLocation = (options = {}) => { // store location in state const [location, setLocation] = useState(); // store error message in state const [error, setError] = useState(); // Success handler for geolocation's `getCurrentPosition` method const ha...
from django.shortcuts import render from .forms import Contact, ContactForm # Create your views here. def index(request): return render(request, 'CodeApp/index.html') def gallery(request): # ROUTES TO GALLERY return render(request, 'CodeApp/gallery.html') def aboutus(request): # ROUTES TO ABOUT US ...
from __future__ import unicode_literals from core import entities from core.web.api.crud import CrudSearchApi, CrudApi from core.web.helpers import get_queryset class EntitySearch(CrudSearchApi): template = 'entity_api.html' objectmanager = entities.Entity def search(self, query): fltr = query.g...
import EventEmitter from './EventEmitter'; export default class Clock extends EventEmitter { constructor() { super(); this.started = performance.now(); this.current = this.started; this.elapsed = 0; this.delta = 16; // initial val of 0 causes bugs this.deltaSum = 0; this.tickCap = 1 / 60...
import functools import torch.nn.functional as F def reduce_loss(loss, reduction): """ Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are "none", "mean" and "sum" Return: Tensor: Reduced loss tensor """ reduction_enum...
import glyph as g font4x6list = [ g.Glyph('A', [(0, 0, 0, 5, 1, 6, 3, 6, 4, 5, 4, 0), (0, 3, 4, 3)], 5), g.Glyph('B', [(0, 3, 3, 3, 4, 4, ...
import axios from 'axios' const GET_ORDERS = 'GET_ORDERS' const POST_NEW_ORDER = 'POST_NEW_ORDER' export const getOrders = orders => ({ type: GET_ORDERS, orders }) export const postOrder = order => ({ type: POST_NEW_ORDER, order }) export const getAllOrders = () => async dispatch => { try { const {dat...
import React, { useEffect } from 'react' import { connect } from 'react-redux' import { Redirect } from '@reach/router' const AppDefault = props => { /** * Default: path = '/app' * Entry point for the web app portion of tryunearth.com * Solely responsible for navigating either to the login page (really the ...
//= require_self //= require stimulus //= require_tree . document.addEventListener('turbolinks:load', () => { window.stimulus_application = Stimulus.Application.start() console.log('controllers/index.js') })
from rivals_workshop_assistant.script_mod import Script from rivals_workshop_assistant.warning_handling.base import WarningType class RecursiveSetAttack(WarningType): warning_content = "Risk of crash. in `attack_set.gml` you can just write `attack = x` instead of `set_attack(x)`." def _should_apply_to_script...
from math import ceil from typing import List import cocotb import random from cocotb.clock import Clock from cocotb.result import TestSuccess, TestFailure from cocotb.triggers import RisingEdge from queue import Queue from poseidon_python import basic from cocotb_test import simulator from BasicElements import MDSC...
import json from chargebee_v2.model import Model from chargebee_v2 import request from chargebee_v2 import APIError class Export(Model): class Download(Model): fields = ["download_url", "valid_till"] pass fields = ["id", "operation_type", "mime_type", "status", "created_at", "download"] def wa...
# -*- coding:utf-8; python-indent:2; indent-tabs-mode:nil -*- # Copyright 2013 Google Inc. 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/...
#!/usr/bin/env python ############################################################################## # Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. ################################...
// Copyright 2013 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 UI_BASE_IME_CHROMEOS_INPUT_METHOD_DESCRIPTOR_H_ #define UI_BASE_IME_CHROMEOS_INPUT_METHOD_DESCRIPTOR_H_ #include <string> #include <vector> #inc...
/* Copyright 2020 The OneFlow 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 law or agre...
// ---------------------------------------------------------------------------- // Copyright 2016-2017 ARM Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache...
"""Cannon, hitting targets with projectiles. Exercises 1. Keep score by counting target hits. 2. Vary the effect of gravity. 3. Apply gravity to the targets. 4. Change the speed of the ball. """ from random import randrange from turtle import * from freegames import vector ball = vector(-200, -200) speed = vector(...
define('crm/Integrations/BOE/Views/QuoteLines/Detail', ['module', 'exports', 'dojo/_base/declare', 'dojo/_base/lang', 'dojo/_base/connect', 'crm/Format', 'argos/Detail', '../../Models/Names', 'argos/I18n', '../../Utility', '../../PricingAvailabilityService'], function (module, exports, _declare, _lang, _connect, _Forma...
const nunjucks = require('nunjucks'); const koa = require('koa'); const router = require('koa-router')(); const app = new koa(); function createEnv(path, opts) { let autoescape = opts.autoescape === undefined ? true : opts.autoescape; let noCache = opts.noCache || false; let watch = opts.watch || false; let th...
import Vue from 'vue'; import Select from '../components/form/fields/Select.vue'; import { MockI18n } from './utils'; describe('select-field',()=>{ Vue.use(MockI18n); beforeEach(()=>{ document.body.innerHTML = ` <div id="app"> <sharp-select :value="value" ...
import React, { useEffect, memo, useState } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import get from 'lodash/get'; import debounce from 'lodash/debounce'; import isEmpty from 'lodash/isE...
/********************************************************************************************************************** * DISCLAIMER * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No * other uses are authorized. This software is owned by Renesas Ele...
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
const commentIfDeactivated = (statement, data, isPartOfLine) => { if (data?.hasOwnProperty('isActivated') && !data.isActivated) { if (isPartOfLine) { return '/* ' + statement + ' */'; } else if (statement.includes('\n')) { return '/*\n' + statement + ' */\n'; } else { return '-- ' + statement; } } r...
/* eslint-disable react/no-unescaped-entities */ import React, { Component } from 'react'; class CounterRoute extends Component { render() { const { counter, onIncrementCounter } = this.props; return ( <div> <h3>Counter</h3> <p> <em> This is a small demo component ...
# pylint: disable=unused-argument,unused-variable,redefined-outer-name import gossip import pytest import slash import slash.hooks from .conftest import Checkpoint def test_interruption(interrupted_suite, interrupted_index): interrupted_suite.run(expect_interruption=True) def test_interruption_added_to_result...
import itertools import random import os from PIL import Image output_individual_sprites = True shuffle = True spritesheet_max_columns = 10 features = [ 'eyes', 'head', 'mouth' ] def list_image_files(path: str): """ Return list file names of all image files in a folder """ fi...
function Excuse() { var randomBodyParts = ['armpit', 'nose', 'hand', 'leg', 'hand', 'heart', 'liver', 'kidney', 'toes', 'fingers', 'butt', ]; var randomAdjectives = ['smells', 'ate', 'peer-reviewed', 'destroyed', 'deleted', 'erased', 'remixed', 'twitched', 'recycled', 'livetweeted', 'undermined', 'un...
sap.ui.controller("sales_dashboard.Products", { });
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
from sklearn import linear_model from sklearn.model_selection import KFold from sklearn.model_selection import cross_val_score from sklearn.metrics import f1_score, classification_report, confusion_matrix from sklearn.naive_bayes import GaussianNB from sklearn.ensemble import RandomForestClassifier from sklearn import ...
/** * SmoothScroll * This helper script created by DWUser.com. Copyright 2013 DWUser.com. * Dual-licensed under the GPL and MIT licenses. * All individual scripts remain property of their copyrighters. * Date: 10-Sep-2013 * Version: 1.0.1 */ if (!window['jQuery']) alert('The jQuery library must be included ...
/* Family Tree Consists of nodes Tree is the overarching data structure that manages nodes Nodes are the primary object in the tree, have direct child-parent relationships with other nodes. Nodes may only have one parent node */ var xist = {}; xist.tree = (function() { var _count = 0; var tree = func...
/*! * OpenUI5 * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(["./Shape"],function(t){"use strict";var i=t.extend();i.prototype.setPosition=function(t){var i=t.split(","),e={x:i[0],y:i[1],width:i[2]-i[0],height:i[3]-i...
from flask import render_template,redirect,url_for,flash,request from flask_login import login_user,logout_user,login_required from . import auth from ..models import User,Pitch from .forms import RegistrationForm,LoginForm from .. import db from ..email import mail_message @auth.route('/register',methods = ["GET","...
import pandas as pd import numpy as np import matplotlib.pyplot as plt import pprint from typing import Union, Optional, List, Dict, Callable, Any, Tuple from types import ModuleType from scipy.stats import norm from scipy.stats import uniform from scipy.optimize import minimize import visTools import cpy_q_lear...