src
stringlengths
721
1.04M
import os import time import logging import pyrax from pyrax.utils import wait_for_build from paramiko import RSAKey from serverondemand import get_resource from serverondemand.xen import instance_id, instance_name from serverondemand.executor import Executor logger = logging.getLogger(__name__) def servers_api(cred...
#!/usr/bin/python """ This is a module for dealing with MongoDB via PyMongo. Use this module to manage databases and collections in MongoDB using the Python driver, PyMongo. The API operation commands have slight differences between `mongo` shell and `pymongo` in Python scripts. MongoDB manual (https://docs.mongodb.c...
# -*- coding: utf-8 -*- # # pymemcache documentation build configuration file, created by # sphinx-quickstart on Wed Aug 3 11:15:43 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # ...
""" Django settings for mysite project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) imp...
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import argparse import torch import torch.nn as nn from visdom import Visdom import pyro import pyro.distributions as dist from pyro.contrib.examples.util import print_and_log from pyro.infer import SVI, JitTrace_ELBO, JitTraceEn...
""" Vector3 is a three dimensional vector class. Below are examples of Vector3 use. >>> from vector3 import Vector3 >>> origin = Vector3() >>> origin 0.0, 0.0, 0.0 >>> pythagoras = Vector3( 3, 4, 0 ) >>> pythagoras 3.0, 4.0, 0.0 >>> pythagoras.magnitude() 5.0 >>> pythagoras.magnitudeSquared() 25 >>> triplePythagoras ...
#!/usr/bin/python import os import sys import operator from collections import defaultdict import parser_SQL_struct #./filler.py query "Solanum lycopersicu" #./filler.py query "Solanum lycopersicum" #./filler.py list #./filler.py fill classes.csv col_names = "species|species subgroup|species group|subgenus|genus|s...
#!/usr/bin/python # -*- coding: utf-8 -*- import os.path import sys # Nœud de l'arbre contenant une lettre class Noeud(object): """ Constructeur lettre : lettre stockée dans le nœud mot : True si le chemin représente un mot du dictionnaire, False sinon fd : lettre située au même niveau et après dans l'ordre ...
# -*- coding: utf-8 -*- # Copyright 2009 Martin Borho <martin@borho.net> # GPL - see License.txt for details from urllib import urlencode, quote_plus from baas.core.plugins import Plugin from baas.core.helpers import strip_tags, xmlify, htmlentities_decode, load_url try: # appengine from django.utils import si...
#!/usr/bin/env python from distutils.core import setup if __name__ == '__main__': import sys execfile("groupdocs/version.py") setup( name = __pkgname__, version = __version__, author = "GroupDocs Team", author_email = "support@groupdocs.com", description = "A Python interface to the GroupDocs API", ...
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
import urlparse import urllib from django import template register = template.Library() def unfuck_percent_encoded_utf8(fucked_unicode_str): # OK So... *dramatic pause* # (((Some))) browsers insist on transforming unicode characters outside of # the ASCII range to their UTF-8 encoding, and then url encod...
# # 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, software # ...
#!/usr/bin/python3 import csv import getopt import json import os import sys import traceback import copy from datetime import datetime, timedelta from os.path import join as pjoin from curwmysqladapter import MySQLAdapter import Constants from LIBFLO2DWATERLEVELGRID import getWaterLevelOfChannels from Util.LibForec...
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2016-10-24 12:20 from __future__ import unicode_literals from decimal import Decimal from django.db import migrations, models import django.db.models.deletion import django.db.models.manager import django_countries.fields import shuup.core.fields class Migratio...
# misc.py # Copyright (C) 2012-2014 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is distributed in the hope th...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models def migrate_invoiced(apps, schema_editor): """Migrate `invoiced` bool field into `invoice_status` text field.""" Event = apps.get_model('workshops', 'Event') # null → 'unknown' Event.objects.filt...
# -*- coding: utf-8 -*- import sys import re reload(sys) sys.setdefaultencoding('utf-8') from common import public class qyxx_hzp_pro_prod_cert(): """中标""" need_check_ziduan = [ u'bbd_dotime', u'company_name', u'location', u'produce_address', u'issue_date', ...
# # This file is part of m.css. # # Copyright © 2017, 2018, 2019, 2020 Vladimír Vondruš <mosra@centrum.cz> # # 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, inc...
#!/usr/bin/env python # -*- coding: UTF-8 -*- from utilities import * from image_database import saveFiguesWithData from sys import argv, exit from numpy import load import argparse import seaborn as sns from os import path as pathtools parser = argparse.ArgumentParser(description='process data from cluster') parser...
#!/usr/bin/env python3 import math import numpy as np import random import pickle from scipy.special import expit class NN: def __init__(self, layer_dims, learning_rate): self.learning_rate = learning_rate self.layer_dims = layer_dims self.layers = [] for i in range(len(layer_dims...
from paddle import fluid from paddle.fluid import layers from pytracking.libs import TensorList from pytracking.libs.paddle_utils import floordiv, n2p, broadcast_op import numpy as np class FeatureBase: """Base feature class. args: fparams: Feature specific parameters. pool_stride...
#!/usr/bin/env python3 """ Handle zeromq socket. """ import zmq import json class ServerConnection: """ Class responsible for creating zeromq socket (server) and receiving messages from connected clients. The message should be text with format <ID>,<MESSAGE>, where text <MESSAGE> will be sent to webs...
############################################################################## # # Copyright (c) 2001, 2002 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # T...
import play import behavior import robocup import skills.line_kick import tactics.defense import main import constants import enum import role_assignment class OffensivePivotKick(play.Play): def __init__(self): super().__init__(continuous=False) self.add_transition(behavior.Behavior.State.start, ...
#!/usr/bin/env python #coding: utf-8 import smtplib import email import mimetypes import json from email.MIMEMultipart import MIMEMultipart from email.mime.text import MIMEText mail_host = "" mail_user = "" mail_pwd = "" mail_postfix = "" def sendmail(to_list,subject,content): # translation me...
from models.models import ArtmModel, Topic import json import numpy as np # Number of assessment for each topic. ASSESS_RATIO = 5 def initialize_problem(problem): if problem.model: topics = dict() for topic in problem.model.get_topics(layer=problem.layer): topics[str(topic.index_id)] ...
""" Tests relating to Horvath-Kawazoe model validation. All functions in /calculations/models_hk.py are tested here. The purposes are: - testing that the "function getter" is performing as expected. """ import pytest import pygaps.characterisation.models_hk as hk import pygaps.utilities.exceptions as pgEx @p...
# Copyright 2015, Telles Nobrega # # 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 writin...
import unittest, gzip, imp, subprocess, tempfile, shutil, os, os.path, time import glob, urllib from apt import apt_pkg if os.environ.get('APPORT_TEST_LOCAL'): impl = imp.load_source('', 'backends/packaging-apt-dpkg.py').impl else: from apport.packaging_impl import impl def _has_internet(): '''Return if ...
#!/usr/bin/env python # Copyright 2014-2021 The PySCF Developers. 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 # # U...
# -*- coding: utf-8 -*- import json from sys import argv from re import compile from collections import defaultdict import inflect p = inflect.engine() stop_words = '''a, about, above, after, again, against, all, am, an, and, any, are, aren't, as, at, be, because, been, before, being, below, between, both, but, by, c...
import json import time import logging import signal import redis import re from celery.result import AsyncResult from celery.utils.log import get_task_logger from redash import redis_connection, models, statsd_client, settings, utils from redash.utils import gen_query_hash from redash.worker import celery from redash....
import json from django.http import Http404, HttpResponse, HttpResponseRedirect, HttpResponseForbidden from django.shortcuts import render, redirect, get_object_or_404 from django.template import RequestContext from django.template.loader import render_to_string from django.views.decorators.http import require_POST fr...
import unittest import winnow from winnow.exceptions import OptionsExceptionFailedValidation class TestReferenceValidation(unittest.TestCase): def test_basic_set(self): # empty doc = { u"schema": u"https://opendesk.cc/schemata/options.json", u"type": u"option", ...
import sys sys.path.insert(0, '../spymanager') sys.path.insert(0, '../') from tests import create_database_collection from src.subscriptions import SubscriptionsManager # Database settings DATABASE_NAME = 'spies_database' COLLECTION_NAME = 'subscriptions' subscriptions_collection = create_database_collection(DATABAS...
# Copyright 2013 OpenStack Foundation # 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 requ...
# -*- coding: utf-8 -*- # Copyright 2020-2021 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. """Extractors for https://bcy.net/""" from .common import Extractor, Me...
### # Copyright 2008-2011 Diamond Light Source Ltd. # This file is part of Diffcalc. # # Diffcalc is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any late...
#encoding: utf-8 from irc import IRCBot from google.googleSearch import GoogleSearch from music.musicStatus import MusicStatus from urlshortener.shortener import Shortener from wolfram.wolfram import Wolfram from ConfigParser import SafeConfigParser import random import codecs config_name_g = u'config' class QueryBot...
# @MUNTJAC_COPYRIGHT@ # @MUNTJAC_LICENSE@ """Defines a layout that will give one of it's components as much space as possible, while still showing the other components in the layout.""" from warnings import warn from muntjac.ui.ordered_layout import OrderedLayout class ExpandLayout(OrderedLayout): """A layout ...
from __future__ import absolute_import, division, print_function import calendar import datetime import logging import socket import time from threading import RLock import requests from requests.adapters import DEFAULT_POOLBLOCK, HTTPAdapter from trakt.core.configuration import DEFAULT_HTTP_RETRY, DEFAULT_HTTP_MAX_R...
import json import operator from functools import reduce from django import views from django.conf import settings from django.contrib.auth import mixins from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.db.models import Q as DjQ, IntegerField from django.db.models.functions import ...
#!/usr/bin/env python # -*- coding: utf-8 -*- this_module="forth_words.py" definitions="""\ \ vim:ft=forth \ \ Forth core language definitions. \ \ Thanks to Richard W.M. Jones <rich@annexia.org> http://annexia.org/forth \ Most parts of this file are based on his jonesforth, which is licensed as \ public domain. : 2...
import tempfile import unittest import axelrod as axl import axelrod_dojo as axl_dojo class TestPopulationSizes(unittest.TestCase): def test_basic_pop_size(self): # Set up Tmp file temp_file = tempfile.NamedTemporaryFile() # we will set the objective to be cycler_objective = axl_...
class Circle(): def __init__(self, r): self.r = r def area(self): return (self.r ** 2) * 3.14 def perimeter(self): return self.r * 6.28 def __str__(self): return "Circle has a radius of %.2f, an area of %.2f, and a perimeter of %.2f." % (self.r, self.area, self.perimet...
# This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus # # MAUS is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version...
from sympy.physics.secondquant import ( Dagger, Bd, VarBosonicBasis, BBra, B, BKet, FixedBosonicBasis, matrix_rep, apply_operators, InnerProduct, Commutator, KroneckerDelta, AnnihilateBoson, CreateBoson, BosonicOperator, F, Fd, FKet, BosonState, CreateFermion, AnnihilateFermion, evaluate_deltas, Ant...
import numpy def alu( op1, op2, alu_op, c_in): if alu_op == "0000": # mov result = op2 elif alu_op == "0001": # add result = op1 + op2 elif alu_op == "0010": # sub result = op1 - op2 elif alu_op == "0011": # cmp result = op1 elif alu_op == "0100": # and result = numpy.bitwise_and(op1, op2) elif...
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-16 16:35 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Creat...
from itertools import chain from random import shuffle import numpy as np from jax import numpy as jnp, test_util as jtu from jax.util import safe_map, safe_zip from jax.tree_util import tree_multimap, tree_flatten, tree_map from fastar import lazy_eval, lazy_eval_fixed_point, LazyArray map = safe_map zip = safe_zip ...
# 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. import logging import os import subprocess import threading from telemetry.core.platform import profiler from telemetry.core import util from telemetry.inte...
# Copyright: (c) 2018, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ast import literal_eval from itertools import islice, chain i...
import collections import datetime from unittest import mock from django.contrib.auth import get_user_model from django.utils import timezone from rest_framework import status, test from rest_framework.reverse import reverse from waldur_core.core.tests.helpers import override_waldur_core_settings from waldur_core.str...
# -*- coding: utf-8 -*- from django.http import HttpResponse #from django.shortcuts import render_to_response from django.shortcuts import render, redirect from django.template import RequestContext from django.http import HttpResponseRedirect, HttpRequest, HttpResponseNotFound from django.conf import settings from p...
def deg2HMS(ra='', dec='', round=False): import string RA, DEC= '', '' if dec: if string.count(str(dec),':')==2: dec00=string.split(dec,':') dec0,dec1,dec2=float(dec00[0]),float(dec00[1]),float(dec00[2]) if '-' in str(dec0): DEC=(-1)*((dec2/60....
""" Copyright (c) 2017 James Patrick Dill, reshanie 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, modify, merge, ...
from django.db import models from django.core.exceptions import ImproperlyConfigured from django.utils.translation import ugettext_lazy as _ from django.conf import settings from mezzanine.pages.models import Page from widgy.models import links URLCONF_INCLUDE_CHOICES = getattr(settings, 'URLCONF_INCLUDE_CHOICES', N...
import sys import os import tty import termios import shutil import time import signal import math width = 80 height = 20 terminalConfig = None cd = os.getcwd() display = [] columnLength = 20 selected = 0 keypressCache = [] def inputMode(): global terminalConfig terminalConfig = termios.tcgetattr(sys.stdin) tty...
# HYCUD # Copyright (C) 2014 Klama, Nina Alexandra and Rezaei-Ghaleh, Nasrollah # # This file is part of HYCUD. # # HYCUD is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (...
# coding=utf-8 """ Application terminology For any given application, there are a number of different documents. The primary application document is an instance of Application. This document id is what you'll see in the URL on most app manager pages. Primary application documents should have `copy_of == None` and `i...
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This module is not automatically loaded by the `cros` helper. The filename # would need a "cros_" prefix to make that happen. It lives here so tha...
#!/usr/bin/env python # -*- coding: ISO-8859-1 -*- ##This file is part of pySylic ############################################################################# ############################################################################# ## ## ## ...
# -*- coding: utf-8 -*- # Copyright (C) 2015 ZetaOps Inc. # # This file is licensed under the GNU General Public License v3 # (GPLv3). See LICENSE.txt for details. from ulakbus.models import User from zengine.lib.test_utils import BaseTestCase from ulakbus.lib.common import ParolaSifirlama from .test_profil_islemler...
import ConfigParser, os def load_config(self): config = ConfigParser.ConfigParser() #test for config file if os.path.exists('config.cfg'): config.read('config.cfg') print "Reading config file..." self.User_root = config.get('Directory', 'User_root', 0) self.Confocal_out = co...
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2007, 2008, 2009, 2010, 2011 CERN. ## ## Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## Licens...
# # Copyright (C) 2015 Martin Owens <doctormo@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # T...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import tempfile import base64 from fuel.datasets import IndexableDataset from fuel.streams import DataStream from dictlearn.data import ( LanguageModellingData, ExtractiveQAData, RandomSpanSchem...
import cv2 import numpy import Tool class HueEqualiser(Tool.Tool): def on_init(self): self.id = "hueequaliser" self.name = "Hue Equaliser" self.icon_path = "ui/PF2_Icons/HueEqualiser.png" self.properties = [ Tool.Property("header", "Hue Equaliser", "Header", None, has_t...
# 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 (t...
from ludicrous.SimpleInterface import SimpleInterface __copying__=""" Written by Thomas Hori This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.""" class ScrollingInte...
#!/usr/bin/env python # # This file is protected by Copyright. Please refer to the COPYRIGHT file # distributed with this source distribution. # # This file is part of GNUHAWK. # # GNUHAWK is free software: you can redistribute it and/or modify is under the # terms of the GNU General Public License as published by ...
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from fairseq.models import register_model, register_model_architecture from fairseq.models.nat import NATransformerModel, base_architecture f...
import math from base64 import b64encode, b64decode from collections import OrderedDict from collections.abc import Sequence, Mapping from datetime import date, datetime from typing import List, Dict, Any from xml.sax.saxutils import escape from asphalt.core.utils import qualified_name from lxml.etree import Element ...
# Copyright (C) 2010 Google Inc. 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 conditions and the ...
"""Script to convert the data model in a Markdown file.""" import json import pathlib import re import sys TYPE_DESCRIPTION = dict( url="URL", string="String", multiple_choice="Multiple choice", password="Password", integer="Integer", date="Date", single_choice="Single choice", multipl...
''' maroon models - simplified object-relational mapper for Python and MongoDB by Jeremy Kelley <jeremy@33ad.org> and Jeff McGee <JeffAMcGee@gmail.com> ''' import calendar from datetime import datetime as _dt from collections import defaultdict from copy import copy import re import pprint SLUG_REGEX = re.compile('[...
# Artshow Keeper: A support tool for keeping an Artshow running. # Copyright (C) 2014 Ivo Hanak # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your...
#!/usr/bin/env python3 # The MIT License (MIT) # Copyright (c) 2016 Michael Sasser <Michael.Sasser@Real-Instruments.de> # # 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 restrictio...
# Volatility # Copyright (c) 2008-2015 Volatility Foundation # # This file is part of Volatility. # # Volatility is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License Version 2 as # published by the Free Software Foundation. You may not use, modify or # distribu...
"""Check the log N log F slope for future surveys.""" import numpy as np import matplotlib.pyplot as plt from copy import copy from frbpoppy import CosmicPopulation, Survey, LargePopulation, SurveyPopulation, hist from frbpoppy import unpickle, pprint import frbpoppy.direction_dists as did import frbpoppy.galacticops ...
import math import torch from .Module import Module from .Sequential import Sequential from .SpatialZeroPadding import SpatialZeroPadding from .SpatialConvolution import SpatialConvolution from .SpatialConvolutionMap import SpatialConvolutionMap from .Replicate import Replicate from .CSubTable import CSubTable from .CD...
""" 正規表現のサンプルです。 アトミックグループ (Atomic Groups) について REFERENCES:: http://bit.ly/2O3jVNn http://bit.ly/2NXqocl http://bit.ly/2NVGi71 http://bit.ly/2NXEg6m """ import re import regex from trypython.common.commoncls import SampleBase from trypython.common.commonfunc import stopwatch, ...
import csv from decimal import Decimal, ROUND_DOWN from datetime import datetime from django.http import HttpResponse from django.contrib.auth.decorators import login_required from django.views.generic import TemplateView from django.db.models import Q from clients.models import Settings as AdaptSettings from clients...
# ========================================================================= # Copyright 2012-present Yunify, Inc. # ------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this work except in compliance with the Licens...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack 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/LICEN...
#!/usr/bin/python # -*- coding: utf-8 -*- from PyQt4.QtCore import QVariant, QAbstractTableModel, Qt from PyQt4.Qt import QPixmap, QIcon, QMimeData, QByteArray, QDataStream, QIODevice import os from utilities import GeneralUtilities class ProjectWizardPossibleTargetsTable(QAbstractTableModel): def __init__(self, ...
""" Django settings for TRANSrisk_fcm_project project. Generated by 'django-admin startproject' using Django 1.9. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ ...
#-*- coding:utf-8 -*- # Copyright (c) 2013 OpenStack 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 applic...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import numpy as np import matplotlib.pyplot as plt import pywt ecg = np.load(os.path.join('data', 'ecg.npy')) data1 = np.concatenate((np.arange(1, 400), np.arange(398, 600), np.arange(601, 1024))) x = np.linspa...
# Copyright 2016 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 required by applicable law or a...
# Copyright (c) 2008,2015,2018 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Collection of generally useful utility code from the cookbook.""" import os import numpy as np import pooch from . import __version__ try: string_type = basestri...
#################################################################################################### # # PySpice - A Spice Package for Python # Copyright (C) 2014 Fabrice Salvaire # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published...
# Copyright (c) 2012 OpenStack 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 ...
import inspect import os import platform import numpy as np import pandas as pd from pkg_resources import parse_version import pytest import pvlib pvlib_base_version = \ parse_version(parse_version(pvlib.__version__).base_version) # decorator takes one argument: the base version for which it should fail # for ...
# 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, software # d...
''' Created on 18-Apr-2016 @author: Asawari.Vaidya ''' from PythonNetBanxSDK.CardPayments.Card import Card from PythonNetBanxSDK.common.DomainObject import DomainObject from PythonNetBanxSDK.common.Error import Error from PythonNetBanxSDK.common.Link import Link class EnrollmentChecks(DomainObject): def __i...
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import mat...
from django.test import TestCase from django.test.client import Client from hq.models import ExtUser, Domain, Organization, ReporterProfile from hq.tests.util import create_user_and_domain from reporters.models import Reporter class ViewsTestCase(TestCase): def setUp(self): user, domain = create_user_and_d...
# Copyright (c) 2012 NetApp, Inc. All rights reserved. # Copyright (c) 2014 Ben Swartzlander. All rights reserved. # Copyright (c) 2014 Navneet Singh. All rights reserved. # Copyright (c) 2014 Clinton Knight. All rights reserved. # Copyright (c) 2014 Alex Meade. All rights reserved. # Copyright (c) 2014 Bob Callaw...