text
stringlengths
3
1.05M
""" Test many basic expression commands and SBFrame.EvaluateExpression() API. Test cases: o test_many_expr_commands: Test many basic expression commands. o test_evaluate_expression_python: Use Python APIs (SBFrame.EvaluateExpression()) to evaluate expressions. o test_expr_commands_can_handle_quotes: Throw some ...
def index(): redirect(MAIN)
from pyaedt.generic.general_methods import aedt_exception_handler from pyaedt.modeler.Circuit import ModelerSimplorer from pyaedt.modules.SolveSetup import SetupCircuit from pyaedt.application.Analysis import Analysis from pyaedt.application.Design import solutions_settings from pyaedt.modules.PostProcessor import Circ...
# Generated by Django 3.0.dev20190119123115 on 2019-01-19 17:31 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Question', ...
// // SYInviteModel.h // MicroShop // // Created by siyue on 15/4/23. // Copyright (c) 2015年 App. All rights reserved. // #import "BaseModel.h" @interface SYInviteModel : BaseModel @property (strong,nonatomic)NSString *imgURL; @property (strong,nonatomic)NSString *userName; @property (strong,nonatomic)NSString *...
from django.apps import AppConfig class TemplatesConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'templates'
n1=input('primeiro numero ') n2=input('segundo numero ') soma=int(n1)+int(n2) print('A soma é' ,soma, '!')
# 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 u...
/* Copyright 2012 Mozilla Foundation * * 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...
/* * Copyright(c) 2019 Intel Corporation * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at https://www.aomedia.org/license/soft...
import * as React from "react"; import Layout from "../../components/Layout"; import BlogRoll from "../../components/BlogRoll"; export default class BlogIndexPage extends React.Component { render() { return ( <Layout> <div> {/* <FullWidthImage img={heroImage} title={title} subheading={subh...
/*! \file usbh_transc.h \brief USB host mode transactions header file \version 2020-08-01, V3.0.0, firmware for GD32F4xx */ /* Copyright (c) 2020, GigaDevice Semiconductor Inc. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the fo...
import React from 'react'; import ReactDOM from 'react-dom'; import { Button } from '@material-ui/core'; //Buttonをインポート function Example() { return ( <div className="container"> <div className="row justify-content-center"> <div className="col-md-8"> <div clas...
import React from 'react'; import { connect } from 'react-redux'; import { actionChangeLanguage } from '../../system/systemAction'; import './ChangeLanguage.scss'; const ChangeLanguage = props => { const handleClick = lang => () => { props.actionChangeLanguage(lang); }; return ( <div className="change-l...
# -*- coding: utf-8 -*- # 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/licenses/LICENSE-2.0 # # Unless require...
# db = loxia_database.db() # logging.info("allTags: ") # logging.info(json) # db.saveAnnotation("FOO") # return { # "status": "ok" # }, 200
# 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 u...
"""Test the Hive config flow.""" from unittest.mock import patch from apyhiveapi.helper import hive_exceptions from homeassistant import config_entries, data_entry_flow from homeassistant.components.hive.const import CONF_CODE, DOMAIN from homeassistant.const import CONF_PASSWORD, CONF_SCAN_INTERVAL, CONF_USERNAME f...
from random import randint import json from django.utils.functional import cached_property from django.utils import six from decimal import Decimal from django.template import loader from rest_framework.compat import unicode_to_repr from dynamic_rest.utils import is_truthy from dynamic_rest import fields as dfields ...
import arg from 'arg'; import inquirer from 'inquirer'; import { createProject } from './main'; function parseArgumentsIntoOptions(rawArgs) { const args = arg( { '--yes': Boolean, '--npm': Boolean, '-y': '--yes', '-n': '--npm', }, { argv: rawArgs.slice(2), }, ); retu...
'use strict'; function main() { // Get A WebGL context /** @type {HTMLCanvasElement} */ const canvas = document.getElementById('canvas'); const gl = canvas.getContext('webgl'); if (!gl) { return; } const ext = gl.getExtension('ANGLE_instanced_arrays'); if (!ext) { retu...
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import compat_str from ..utils import ( int_or_none, parse_duration, parse_iso8601, ) class ComCarCoffIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?comediansincarsgettingcoffee\...
#include <stdlib.h> #include <stdio.h> int main(int argc, char *argv[]) { char code, which; long long int total; int aread, bread; char orient, chain; int alen, blen; int ab, ae, bb, be; int diffs; int len; unsigned char *tbuffer; (void) argv; // Process arguments if (argc ...
/* @generated */ // prettier-ignore if (Intl.DisplayNames && typeof Intl.DisplayNames.__addLocaleData === 'function') { Intl.DisplayNames.__addLocaleData({"data":{"types":{"language":{"long":{"af":"af","agq":"agq","ak":"Kiakan","am":"Kiamhari","ar":"Kiarabu","ar-001":"Kiarabu (001)","as":"as","asa":"asa","ast":"ast",...
#!/usr/bin/env python # ------------------------------------------------------------------------------------------------------% # Created by "Thieu Nguyen" at 14:45, 30/03/2020 % # ...
"""This example uses the slide switch to control the little red LED. When the switch is to the right it returns False, and when it's to the left, it returns True.""" from adafruit_circuitplayground import cp while True: cp.red_led = cp.switch
var searchData= [ ['l',['L',['../structarm__fir__interpolate__instance__q15.html#aee73cc056696e504430c53eaa9c58cf0',1,'arm_fir_interpolate_instance_q15::L()'],['../structarm__fir__interpolate__instance__q31.html#aee73cc056696e504430c53eaa9c58cf0',1,'arm_fir_interpolate_instance_q31::L()'],['../structarm__fir__interpo...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import ckeditor_uploader.fields from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Gathering', ...
#!/usr/bin/python3 import sys, os, os.path import requests import re import datetime ZUPANIJE = [ 'bjelovarsko-bilogorska', 'brodsko-posavska', 'dubrovacko-neretvanska', 'grad-zagreb', 'istarska', 'karlovacka', 'koprivnicko-krizevacka', 'krapinsko-zagorska-zupanija', 'licko-senjska'...
#pragma once #include "glm\glm.hpp" #include "boost\functional\hash.hpp" using Vector2 = glm::vec2; using Vector3 = glm::vec3; using IVector3 = glm::ivec3; static float SqrLength(Vector3 const& vec) { return glm::dot(vec, vec); } static float SqrLength(Vector2 const& vec) { return glm::dot(vec, vec); } struct IVe...
import sys import os import datetime from services import * from geopy.geocoders import Nominatim from terminaltables import AsciiTable sys.path.insert(0, os.path.abspath('..')) from clint.arguments import Args from clint.textui import puts, colored, indent, prompt, validators d_format ='%Y-%m-%d %H:%M:%S' class ...
const seneca = require('./seneca'); describe('seneca.isValidEmail()', () => { test('isValid returns true for simple myseneca address', () => { var simpleEmail = 'someone@myseneca.ca'; expect(seneca.isValidEmail(simpleEmail)).toBe(true); }); test('returns false for a non-myseneca address', () => { va...
"""Class to convert Pt100 data from resistance to temperature and the other way around""" from scipy import optimize import numpy as np #input and output should be a "reading" object. raise error if input isn't in Ohms class Pt100(): def __init__(self): self.__A = 3.9083 * 1e-3 self.__B = -5.775 ...
// Copyright 2021 The XLS Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
import unittest import steampi class TestCalendarMethods(unittest.TestCase): def test_get_release_date_as_str(self): app_id = '440' release_date = steampi.get_release_date_as_str(app_id) self.assertTrue(release_date == '10 Oct, 2007' or release_date == 'Oct 10, 2007') def test_get_r...
import React from 'react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Card, CardHeader, ListGroup, ListGroupItem, UncontrolledTooltip, Button } from 'reactstrap'; import CountUp from 'react-countup'; import PerfectScrollbar from 'react-perfect-scrollbar'; import { ArrowDow...
# Copyright (c) 2015-2020, Swiss Federal Institute of Technology (ETH Zurich) # 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...
function signout (req, res) { var keystone = req.keystone; // if (!keystone.security.csrf.validate(req)) { // return res.apiError(403, 'invalid csrf'); // } var user = req.user; keystone.callHook(user, 'pre:signout', function (err) { if (err) return res.status(500).json({ error: 'pre:signout error', detail: er...
import os produto1 = float(input('Digite o preço do produto 1: ')) produto2 = float(input('Digite o preço do produto 2: ')) produto3 = float(input('Digite o preço do produto 3: ')) produto = [produto1,produto2,produto3] print(f'Compre o produto com o preço R${min(produto)}') os.system('pause')
# Copyright (C) 2013 eNovance SAS <licensing@enovance.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 applicabl...
DEBUG=True TEMPLATES_AUTO_RELOAD=True DB_USERNAME='root' DB_PASSWORD="root" DB_HOST="127.0.0.1" DB_PORT="3306" DB_NAME="bbs" DB_URL="mysql+pymysql://%s:%s@%s:%s/%s?charset=utf8" % (DB_USERNAME,DB_PASSWORD,DB_HOST,DB_PORT,DB_NAME) SQLALCHEMY_DATABASE_URI=DB_URL SQLALCHEMY_COMMIT_ON_TEARDOWN=False # 设置是否在每次连接结束后自动提交数据库...
const fetch = require('node-fetch') const app = require('../../src/app') class TestClient { constructor(baseUrl) { this.baseUrl = baseUrl } async search(query, options = {}) { const url = new URL('/api/tasks', this.baseUrl) url.searchParams.set('q', query) options.headers = { ...
# -*- encoding: utf-8 -*- from __future__ import unicode_literals from datetime import datetime, timedelta from io import BytesIO from itertools import chain import time from unittest import skipIf from django.db import connection, connections from django.core import signals from django.core.exceptions import Suspici...
import cv2 import numpy as np from matplotlib import pyplot as plt import math UBIT = "rgupta24" # Importing the images pic1 = cv2.imread("data/NotreDame1.jpg") pic2 = cv2.imread("data/NotreDame2.jpg") # Converting images to gray-scale graypic1 = cv2.cvtColor(pic1, cv2.COLOR_BGR2GRAY) graypic2 = cv2.cvtColor(pic2,...
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # import sys from fabric.api import task, lcd, prefix, execute, local @task def setup_venv(build_top = "../../../../../build"): venv_base = "%s/debug/config/api-server" %(build_top) with lcd(venv_base): local("virtualenv ut-venv") ...
#!/usr/bin/env python from nose.tools import * from nose import SkipTest import networkx as nx from base_test import BaseTestAttributeMixing,BaseTestDegreeMixing from networkx.algorithms.assortativity.correlation import attribute_ac class TestDegreeMixingCorrelation(BaseTestDegreeMixing): @classmethod ...
var util = util || {}; util.toArray = function(list) { return Array.prototype.slice.call(list || [], 0); }; var Terminal = Terminal || function(cmdLineContainer, outputContainer) { window.URL = window.URL || window.webkitURL; window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem; ...
import { HEADER_SELECTORS } from "../../elements/header/header-selectors"; import { HOMEPAGE_SELECTORS } from "../../elements/homePage/homePage-selectors"; export function changeChannel(channelName) { cy.get(HEADER_SELECTORS.channelSelect) .click() .addAliasToGraphRequest("Home") .get(HEADER_SELECTORS.ch...
/* Highcharts JS v7.1.2 (2019-06-03) (c) 2009-2018 Torstein Honsi License: www.highcharts.com/license */ (function(O,J){"object"===typeof module&&module.exports?(J["default"]=J,module.exports=O.document?J(O):J):"function"===typeof define&&define.amd?define("highcharts/highcharts",function(){return J(O)}):(O.Highch...
import React from 'react'; import { connect } from 'react-redux'; import { View } from 'react-native'; class Container extends React.Component { render() { return ( <View> {this.props.children} {this.props.container.modal} {this.props.container.errModal} </View> ); } } ...
from flask_sqlalchemy import SQLAlchemy from grade_view import app, db from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from flask_marshmallow import Marshmallow from flask_login import UserMixin ma = Marshmallow(app) class User(db.Model,UserMixin): __tablen...
var path = require('path'); var os = require('os'); var fs = require('fs'); console.log("I'm glad you to select ccap, enjoy it!") console.log("") console.log("ccap is a cross plat form and portable nodejs simple captcha module, simple api and lightweight.") if(os.platform() == 'win32'){ var lib_name = 'libjpe...
import pytest from dbt.tests.util import read_file schema_yml = """ version: 2 models: - name: emails columns: - name: email tests: - not_null: severity: warn - name: users columns: - name: id tests: - unique - name: users_rollup columns: - name: gender ...
let string = ` Geen studieschuld 1000-5000 Geen studieschuld 10000-15000 Geen studieschuld Meer dan 25000 Geen studieschuld Geen studieschuld 1000-5000 Geen studieschuld Geen studieschuld Geen studieschuld 1000-5000 Geen studieschuld Geen studieschuld Geen studieschuld 15000-20000 Geen studieschuld 1000-5000 20000-2500...
/* Riot v5.1.0, @license MIT */ (function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t(require("fs"),require("path")):typeof define==="function"&&define.amd?define(["fs","path"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,e.riot=t())})(this,(function(){"use strict";function ...
# -*- coding: utf-8 -*- # Copyright (c) 2020 Nekokatt # Copyright (c) 2021 davfsa # # 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 right...
const axios = require('axios'); const utils = require('../utils'); const eventIterface = require('../event'); let currentAzureLabels = null; const AZURE_CHECK_HOST = process.env.AZURE_HOST || 'http://169.254.169.254'; const PATH = process.env.AZURE_PATH || '/metadata/instance?api-version=2019-06-01'; const URL = `${A...
const knex = require('../../../knex').appSchema module.exports = function (workloadStagingIdStart, workloadStagingIdEnd, workloadReportId) { return knex('adjustments') .join('workload', 'workload.workload_owner_id', 'adjustments.workload_owner_id') .select( 'adjustments.id AS id', 'adjustments.ef...
export const styles = (theme) => ({ container:{ width: '100%', height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center', backgroundColor: theme.palette.secondary.dark }, paperLogin: { padding: 30, borderRadius: 0, ...
import urllib from bs4 import BeautifulSoup from urlparse import urlparse from urlparse import urljoin class Crawler: # Initialize the crawler def __init__(self,index_file): self.index=index_file # Index a URL if it is not already indexed def add_to_url_list(self,url): if not self.is_in_url_list(url): o...
import numpy as np URDF_FILENAME = "a1/a1.urdf" REF_POS_SCALE = 0.825 INIT_POS = np.array([0, 0, 0.32]) INIT_ROT = np.array([0, 0, 0, 1.0]) SIM_TOE_JOINT_IDS = [ 5, # right hand 15, # right foot 10, # left hand 20, # left foot ] SIM_HIP_JOINT_IDS = [1, 11, 6, 16] SIM_ROOT_OFFSET = np.array([0, 0,...
a="this is as cat bro" b=a.split() for i,n in enumerate(b): if(i%2==0): print(n[::-1]) else: print(n)
@interface MPCPlayerChangeRequest + (void)performRequest:(id)request completion:(void (^)(NSError *error))completion; @end
/* * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the LICENSE * file in the root directory of this source tree. * */ #pragma once #define FBEXPORT __attribute__((visibility("default")))
/******************************************************************************* * File Name: cyfitter.h * * PSoC Creator 4.1 Update 1 * * Description: * * This file is automatically generated by PSoC Creator. * ******************************************************************************** * Copyright (c) 2007-201...
# Copyright 2016-2018, Pulumi Corporation. All rights reserved. import pulumi from pulumi import Output from pulumi_aws import elasticloadbalancingv2, get_availability_zones, ec2 vpc = ec2.Vpc('test', cidr_block="10.13.0.0/16", enable_dns_hostnames=True, enable_dns_support=True) internet_gateway = ec2....
from node import Node from pilha import Pilha class Fila: def __init__(self): self.inicio = None self.fim = None def consultar(self): """Mostra o item no inicio da fila""" if self.inicio: return self.inicio.dado else: return None def inseri...
# -*- coding: utf-8 -*- __author__ = """Andreas Schmid""" __email__ = 'ikeark@gmail.com' __version__ = '0.1.0'
#!/usr/bin/env python # # Copyright (c) 2016, The OpenThread 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: # 1. Redistributions of source code must retain the above copyright # ...
const fs = require("fs"); const path = require("path"); const assert = require("assert"); const DatePicker = require("../../../src/js/components/date-picker"); const EVENTS = require("./events"); const TEMPLATE = fs.readFileSync( path.join(__dirname, "/date-picker.template.html") ); describe("date picker component ...
import os if os.environ.get('RUN_ON_DORA'): import dorasl as DoraServerless dora = DoraServerless.Dora() number_of_replicas = 3 number_of_gpu = 1 number_of_cpu = '200m' dora.upload('./', 'home', 'pytest45') dora.sync('./', 'home', 'pytest45', True) # Setup the workload wk = DoraServerless.Workload('my.py...
define("dir/dep", function(){ return {}; });
string_with_ints = """37107287533902102798797998220837590246510135740250 46376937677490009712648124896970078050417018260538 74324986199524741059474233309513058123726617309629 91942213363574161572522430563301811072406154908250 23067588207539346171171980310421047513778063246676 8926167069662363382013637841838368417873436...
from manimlib.imports import * class MovingWave(GraphScene): CONFIG = { "graph_origin" : ORIGIN + 4*LEFT, "x_min" : -1, "x_max" : 8, "y_min" : -1.5, "y_max" : 1.5, "amp" : 1, "rate" : PI/128, "t_offset" : 0, "graph_args" : {"x_min":-5, "x_max":4, "color":RED} } def const...
# -*- coding: utf-8 -*- from h.config import configure def test_configure_generates_secret_key_if_missing(): config = configure(environ={}, settings={}) assert 'secret_key' in config.registry.settings def test_configure_doesnt_override_secret_key(): config = configure(environ={}, settings={'secret_key...
import { NotImplementedError } from '../extensions/index.js'; /** * Implement class DepthCalculator with method calculateDepth * that calculates deoth of nested array * * @example * * const depthCalc = new DepthCalculator(); * depthCalc.calculateDepth([1, 2, 3, 4, 5]) => 1 * depthCalc.calculateDepth([1, 2, 3...
# 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. #----------------------------------------------------------------------...
import React from "react"; import { DisabledInput, TextInput, DateInput, LongTextInput } from "react-admin"; import EditTemplate from "../../../core/common/ResourseTemplates/EditTemplate"; /** * This component returns block with edit form for Vaccinations * * @author Bogdan Shcherban <bsc@piogroup.net> * @param {...
#!/usr/bin/env python """ A pure python ping implementation using raw socket. Note that ICMP messages can only be sent from processes running as root. Derived from ping.c distributed in Linux's netkit. That code is copyright (c) 1989 by The Regents of the University of California. That code is ...
import React, { Component } from 'react'; import { graphql, compose } from 'react-apollo'; import gql from 'graphql-tag'; import { AUTH_TOKEN } from '../constants'; class Login extends Component { state = { login: true, // switch between Login and SignUp email: '', password: '', name: '', }; ren...
// ==UserScript== // @version 1.2.1 // @name de4js helper // @namespace https://baivong.github.io/de4js/ // ==/UserScript==
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
import argparse import logging import os import sys import time import tensorboardX class TrainerBase: def __init__(self, logdir, tag): self.log_path = TrainerBase.log_path(logdir, tag) os.makedirs(self.log_path, exist_ok=True) self.checkpoint_base_path = os.path.join(self.log_path, 'che...
#!/usr/bin/env python3 # Generate highway shields as SVG files in symbols/shields. from __future__ import print_function import copy, lxml.etree, math, os from generate_road_colours import load_settings, generate_colours def main(): settings = load_settings() colours = generate_colours(settings, 'shield') ...
/*! * PENTAHO CORPORATION PROPRIETARY AND CONFIDENTIAL * * Copyright 2017 Pentaho Corporation (Pentaho). All rights reserved. * * NOTICE: All information including source code contained herein is, and * remains the sole property of Pentaho and its licensors. The intellectual * and technical concepts contained he...
import inspect import os import re import string import sys import warnings from functools import partial, wraps def memoize(f, cache={}): @wraps(f) def g(*args, **kwargs): key = (f, tuple(args), frozenset(kwargs.items())) if key not in cache: cache[key] = f(*args, **kwargs) ...
import os import sys import numpy as np import pandas as pd TPS_DIR = './data' TP_file = os.path.join(TPS_DIR, 'train_triplets.txt') tp = pd.read_table(TP_file, header=None, names=['uid', 'sid', 'count']) MIN_USER_COUNT = 20 MIN_SONG_COUNT = 200 def split_train_test_proportion(data, test_pr...
/** * SEO component that queries for data with * Gatsby's useStaticQuery React hook * * See: https://www.gatsbyjs.org/docs/use-static-query/ */ import React from "react" import PropTypes from "prop-types" import { Helmet, // HelmetProvider } from "react-helmet-async" import { useStaticQuery, graphql } from ...
/*! * Bootstrap-select v1.13.9 (https://developer.snapappointments.com/bootstrap-select) * * Copyright 2012-2019 SnapAppointments, LLC * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) */ !function(e,t){void 0===e&&void 0!==window&&(e=window),"function"==typeof...
# -*- coding: utf-8 -*- # Copyright (c) 2015, Manqala and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest # test_records = frappe.get_test_records('Exchange Rate') class TestExchangeRate(unittest.TestCase): pass
import React from 'react' import { connect } from 'react-redux'; const Summary = (props) => { return props.cart.id ? ( <div className="summary-conatiner"> <h3>Summary</h3> {props.cart.products.map(product => ( <div key={product.id} className="summary-card"> <h4>{produc...
import os from pathlib import Path import dj_database_url # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.2/howto/deployment...
# coding: utf-8 """ vautoscaling Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class CommonCode(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. "...
import base64 import datetime import io import json import zipfile from functools import wraps import flask import urllib.parse import config from api import make_eps_api_metadata_request from app import app, fernet from auth import exchange_code_for_token, get_access_token, login, set_access_token_cookies, get_authori...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * 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 noti...
from django.shortcuts import render from .models import MusicSheet def index(request): music_library = MusicSheet.objects.all context = {'music_library': music_library} return render(request, 'app/basic.html', context)
var searchData= [ ['prod_5fid',['PROD_ID',['../i_cal_defs_8h.html#aaef4d7c950c5c5de50d264dc2e4bf536',1,'iCalDefs.h']]] ];
if __name__ == '__main__': n = int(input()) arr = list(map(int, input().split())) arr.sort() max1 = arr[-1] arr.sort(reverse=True) for x in arr: if x!=max1: max2 = x print(x) break # try yourself one more time
""" A new version TDEToolbox. Including Correlation measurement seperated from error measurement, a class generator making pixel objects """ import numpy as np import random import matplotlib.pyplot as plt import pylab Debugger=0 pi=np.pi def Measurer(pixelA,pixelB,numberOfRuns,Visualizer,blockSize,stepSize,stepNumber...
#!/usr/bin/env node require('../lib/cli/');