gt
stringclasses
1 value
context
stringlengths
2.49k
119k
#!/usr/bin/env python # -*- coding: utf-8 -*- from bson.objectid import ObjectId from pymongo import MongoClient from validate_email import validate_email from views.base import base import config import hashlib class rols(): @property def db(self): if config.debug == True: client = MongoClient('localhost', 27...
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB 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...
"""Tasks graph in the GUI.""" # ----------------------------------------------------------------------------- # Imports # ----------------------------------------------------------------------------- import numpy as np import pandas as pd from qtools import inthread, inprocess from qtools import QtGui, QtCore from k...
# Copyright 2012 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...
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from datetime import timedelta from operator import attrgetter f...
# Copyright 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 law or agreed to in...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This script helps modifying exif tags in photos. Copyright 2018 C Bhushan; Licensed under the Apache License v2.0. https://github.com/cbhushan/script-collection @author: C Bhushan """ import os import sys from PIL import Image from PIL.ExifTags import TAGS, GPSTAGS fr...
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2014-2016 Alex Forencich 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...
#!/usr/bin/python """nrvr.remote.ssh - Remote commands over ssh Classes provided by this module include * SshCommandException * SshParameters * SshCommand The main class provided by this module is SshCommand. On the downside, for now it * reports back indistinguishably the same way stdout and stderr, * doesn't repo...
# CUDA_VISIBLE_DEVICES=gpu-number python deepSimDEF_for_gene_expression.py arguments import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # or any {'0', '1', '2'} import sys import logging import random import numpy as np import pprint import argparse import tensorflow.keras import tensorflow as tf tf.compat.v1.logging...
"""Tests related to retraction of public registrations""" import datetime import httplib as http import mock from django.utils import timezone from django.db import DataError from nose.tools import * # noqa from framework.auth import Auth from framework.exceptions import PermissionsError from tests.base import fake...
# 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 ...
#=============================================================================== # Copyright 2007 Matt Chaput # # 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/l...
#!/usr/bin/env python # Copyright 2017, Institute for Systems Biology # # 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...
from __future__ import division, absolute_import, print_function import numpy as np from numpy.testing import ( run_module_suite, TestCase, assert_, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_raises ) from numpy.lib.index_tricks import ( mgrid, ndenumerate,...
from datetime import timedelta, date from subprocess import call from flask import (Blueprint, render_template, request, session, g, redirect, url_for, abort, flash, send_file, escape, current_app) from cfmi import cache, db from cfmi.billing.models import (User, Project, Session...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Nicira Networks, Inc. # # 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...
import os import ConfigParser import logging import exceptions from OpenSSL import crypto from keystoneclient import session from keystoneclient.auth.identity import v2 as v2_client from keystoneclient.auth.identity import v3 as v3_client from barbicanclient import client class BarbicanKeystoneSession(object): ...
# 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...
import calendar from datetime import datetime from datetime import timedelta from pandac.PandaModules import Vec3, Vec4, Point3, TextNode, VBase4 from otp.otpbase import OTPLocalizer from direct.gui.DirectGui import DirectFrame, DirectButton, DirectLabel, DirectScrolledList, DirectCheckButton from direct.gui import Dir...
# 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 # distribu...
# Copyright 2016 Huawei Technologies India Pvt. 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.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
# # BaseImage.py -- Abstraction of an generic data image. # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import math import numpy import logging from ginga.misc impo...
"""This source manages a VTK dataset given to it. When this source is pickled or persisted, it saves the data given to it in the form of a gzipped string. """ # Author: Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2005-2015, Enthought, Inc. # License: BSD Style. import sys import os import tempfile # ...
from Quartz import * import math def doEgg(context): p0 = CGPoint(0, 0) p1 = CGPoint(0, 200) c1 = CGPoint(140, 5) c2 = CGPoint(80, 198) CGContextTranslateCTM(context, 100, 5) CGContextBeginPath(context) CGContextMoveToPoint(context, p0.x, p0.y) # Create the Bezier path segment for the...
from .. import Availability, Class, Constant, Define, Method, Parameter, Type gx_class = Class('SURFACE', doc=""" The :class:`SURFACE` class allows you to create, read and alter Geosurface files (``*.geosoft_surface``). A Geosurface file can contain one or more surfac...
"""Facebook module.""" from __future__ import absolute_import from collections import OrderedDict import contextlib import itertools import datetime import urllib import urlparse import json import facebook import pytz from wrap2.core import SocialNetwork class Facebook(SocialNetwork): """Facebook social netwo...
# Copyright 2016 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...
from types import SimpleNamespace import attr from multidict import CIMultiDict from yarl import URL from .client_reqrep import ClientResponse from .signals import Signal __all__ = ( 'TraceConfig', 'TraceRequestStartParams', 'TraceRequestEndParams', 'TraceRequestExceptionParams', 'TraceConnectionQueuedStart...
"""Tests for Plex config flow.""" from unittest.mock import MagicMock, Mock, patch, PropertyMock import plexapi.exceptions import requests.exceptions from homeassistant.components.plex import config_flow from homeassistant.const import ( CONF_HOST, CONF_PORT, CONF_SSL, CONF_VERIFY_SSL, CONF_TOKEN, ...
import os from decimal import Decimal as D from django.utils.translation import ugettext_lazy as _ from oscar.apps.catalogue.categories import create_from_breadcrumbs from oscar.apps.dashboard.reports.csv_utils import CsvUnicodeReader from oscar.core.loading import get_class, get_classes try: from django.db.tran...
########################################################################## # # Copyright (c) 2014-2015, Image Engine Design 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: # # * Redi...
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import hashlib import os from django.conf import settings from django.core import urlresolvers from django.core.files.base import ContentFile from django.db import models from django.utils.translation import ugettext_lazy as _ from . i...
"Test the functionality of Python classes implementing operators." import unittest testmeths = [ # Binary operations "add", "radd", "sub", "rsub", "mul", "rmul", "matmul", "rmatmul", "truediv", "rtruediv", "floordiv", "rfloordiv", "mod", "rmod", "divmod", ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2012 New Dream Network, LLC (DreamHost) # # 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/li...
import random from datetime import date from decimal import Decimal from django.test import TestCase from dateutil import relativedelta from unittest.mock import Mock from dimagi.utils.dates import add_months_to_date from corehq.apps.accounting import tasks, utils from corehq.apps.accounting.invoicing import LineIt...
"""Weight updating functions.""" import math import pickle import logging import warnings import numpy from .ndarray import (NDArray, zeros, clip, sqrt, sign, array, maximum, abs as NDabs) from .ndarray import (sgd_update, sgd_mom_update, adam_update, rmsprop_update, rmspropalex_update, mp_sgd_upd...
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
#!/usr/bin/env python from contextlib import contextmanager import datetime import glob import logging import os from os import path import Queue import re import sys import time import ansi2html import sh import six LOG = logging.getLogger('bash') def execute(command_line, repeat=1, log_name=None): command_...
from __future__ import division, print_function, absolute_import import warnings import sys import numpy as np from numpy.testing import (assert_array_equal, assert_array_almost_equal, assert_allclose, assert_equal, assert_) from scipy._lib._numpy_compat import suppress_warnings import pyt...
import datetime import hashlib import json import logging import os import shutil import subprocess from django.conf import settings from django.contrib.auth.models import AnonymousUser from django.core.files.storage import default_storage as storage from django.core.urlresolvers import reverse from django.template im...
"""Stuff to parse AIFF-C and AIFF files. Unless explicitly stated otherwise, the description below is true both for AIFF-C files and AIFF files. An AIFF-C file has the following structure. +-----------------+ | FORM | +-----------------+ | <size> | +----+------------+ | | AIFC ...
# Copyright 2014 Huawei Technologies Co. 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.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
from __future__ import unicode_literals import base64 from django.contrib.auth.models import Group, Permission, User from django.core.urlresolvers import ResolverMatch from django.db import models from django.test import TestCase from django.utils import unittest from rest_framework import ( HTTP_HEADER_ENCODING...
import argparse import json import os import sys from concurrent.futures import as_completed from contextlib import contextmanager from pprint import pformat from typing import Tuple, Iterable, List, Callable from Tests.Marketplace.marketplace_constants import GCPConfig, PACKS_FOLDER, PACKS_FULL_PATH, IGNORED_FILES fr...
from importlib import import_module import os import sys from django.apps import apps from django.db.migrations.recorder import MigrationRecorder from django.db.migrations.graph import MigrationGraph from django.db.migrations.migration import Migration from django.db.migrations.state import ModelState from django.db.m...
# Copyright 2015 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...
__version__ = "0.0.9" __status__ = "Development" __license__ = "MIT" from pysphere import VIServer import time import sys import signal try: import argparse except: print("Update to version 2.7 or install argparse") sys.exit(1) import logging def signal_handler(signal, frame): logger.warn("Caught Ctrl...
''' Native support for Multitouch devices on Linux, using libmtdev. =============================================================== The Mtdev project is a part of the Ubuntu Maverick multitouch architecture. You can read more on http://wiki.ubuntu.com/Multitouch To configure MTDev, it's preferable to use probesysfs p...
# Copyright (c) 2003-2016 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Author: Alberto Solino (@agsolino) # # Description: # RFC 1964 Partial Implementation # RFC 4757 ...
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
""" Implementation of JSONDecoder """ import re import sys from simplejson.scanner import Scanner, pattern try: from simplejson import _speedups except: _speedups = None FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL def _floatconstants(): import struct import sys _BYTES = '7FF80000000000007FF0000...
######################################################################## # # License: BSD # Created: September 10, 2010 # Author: Francesc Alted - francesc@continuum.io # ######################################################################## """Top level functions and classes. """ import sys impo...
#!/usr/bin/env python # encoding=utf8 import os import sys import getopt import subprocess from shutil import rmtree, copy homeDir = os.getenv("HOME") + "/" bkpDir = homeDir + ".bashrc_bkp/" bashDir = homeDir + ".bashrc_include/" tmpDir = homeDir + ".bashrc_tmp/" repoUrl = "https://github.com/svilborg/dotfiles" fil...
""" ********** Edge Lists ********** Read and write NetworkX graphs as edge lists. The multi-line adjacency list format is useful for graphs with nodes that can be meaningfully represented as strings. With the edgelist format simple edge data can be stored but node or graph data is not. There is no way of representin...
# Copyright 2013 eBay Inc. # 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/LIC...
#!/usr/bin/python import sys import os sys.path.append("../../src/") sys.path.append("../util/") import commands import common CXXTAGS_QUERY = "../../bin/cxxtags_query" if len(sys.argv) != 2: print "usage: cmd db_file" exit(1) cur_dir = os.getcwd() db_dir = sys.argv[1] q_list = [ "decl "+db_dir+" "+cur_dir...
import os import stat import pytest from topaz.objects.fileobject import W_FileObject from topaz.system import IS_WINDOWS from ..base import BaseTopazTest class TestFile(BaseTopazTest): def test_access_flags(self, space): assert space.int_w(space.execute("return File::RDONLY")) == os.O_RDONLY a...
#!/usr/bin/env python """ (The MIT License) Copyright (c) 2011, Mihail Szabolcs 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 ...
from __future__ import division from __future__ import absolute_import from __future__ import print_function import hashlib import simplejson import random import shutil # import urllib import os from pprint import pprint import math import numpy as np import sys import psutil import requests from PIL import Image f...
# Unix SMB/CIFS implementation. # backend code for provisioning DNS for a Samba4 server # # Copyright (C) Kai Blin <kai@samba.org> 2011 # Copyright (C) Amitay Isaacs <amitay@gmail.com> 2011 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as...
#!/usr/bin/env python # Copyright 2011, The Board of Regents of Leland Stanford, Jr. University # All rights reserved. See LICENSE. # Author: Christine Williams <christine.bennett.williams@gmail.com> # Description: Pulls events from database and writes them to disc. from Cheetah.Template import Template from lxml imp...
# This module defines many standard colors that should be useful. # These colors should be exactly the same as the ones defined in # colors.tcl. # Whites antique_white = (0.9804, 0.9216, 0.8431) azure = (0.9412, 1.0000, 1.0000) bisque = (1.0000, 0.8941, 0.7686) blanched_almond = (1.0000, 0.9216, 0.8039) cornsilk = (1...
# Copyright 2015 IBM Corp. # # 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 agree...
# -*- coding: utf-8 -*- import pymel.core as pm from anima.rig.drawNode import DrawNode from shapes import Shape from curve import Curve # JOINT CLASS class Joint(object): def __init__(self, jointName_in, position): self._jointPos = self._getPosition(position) pm.select(cl=1) self._joint...
#coding: utf-8 from lxml import etree as ET import re from xylose.scielodocument import UnavailableMetadataException import plumber SUPPLBEG_REGEX = re.compile(r'^0 ') SUPPLEND_REGEX = re.compile(r' 0$') ISO6392T_TO_ISO6392B = { u'sqi': u'alb', u'hye': u'arm', u'eus': u'baq', u'mya': u'bur', u'zh...
# Requires python3 import re import sqlite3 import subprocess import shutil import os import codecs import datetime import sys class TskDbDiff(object): """Compares two TSK/Autospy SQLite databases. Attributes: gold_artifacts: autopsy_artifacts: gold_attributes: autopsy_attribu...
import json import logging import requests try: # python 2 from urlparse import urljoin except ImportError: # python3 from urllib.parse import urljoin try: from collections import OrderedDict except ImportError: # python 2.6 or earlier, use backport from ordereddict import OrderedDict fro...
from __future__ import unicode_literals from .... import ProResource class AccountDetailsFinancial(ProResource): full_endpoint = True attribute_names = [ 'id', # string Accounts ID 'last_update', # dateTime Date of last update 'date', # dateTime Accounting to d...
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2011 thomasv@gitorious # # 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 witho...
# 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 may ...
from __future__ import absolute_import, print_function import numpy as np import warnings def _bit_length_26(x): if x == 0: return 0 elif x == 1: return 1 else: return len(bin(x)) - 2 try: from scipy.lib._version import NumpyVersion except ImportError: import re stri...
#! /usr/bin/env python # encoding: utf-8 from xbrl import XBRLParser from xbrl import GAAP from xbrl import GAAPSerializer from xbrl import DEISerializer from xbrl import XBRLParserException import pytest import sys import os import six try: import __pypy__ except ImportError: __pypy__ = None try: from S...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ manage ~~~~~~ Map Kibera Schools management script Usage: build everything: ./manage.py build all build templates: ./manage.py build html build statics: ./manage.py build static [type] [--no-filters] ...
import os import sys import shutil import string import math import mahotas import PIL import PIL.Image import numpy as np import scipy import scipy.io import cv2 import h5py import lxml import lxml.etree import glob import sqlite3 import colorsys ## Open existing volume and create a series of subvolumes ## (with the ...
""" vmfmerge.py By DKY Version 0.1.2 BETA VMF Merge Tool """ __version__ = '0.1.2 BETA' import os import sys import copy import shutil from datetime import datetime from argparse import ArgumentParser from collections import OrderedDict from vmf import VMF, InvalidVMF, load_vmfs, get_parent, compare_vmfs from vm...
import os import re import mimetypes from types import ( IntType, LongType, ListType, StringType, UnicodeType, BooleanType, ) import calendar from datetime import ( date, datetime, timedelta, ) from random import choice from string import ( ascii_uppercase, ascii_...
from datetime import datetime, timedelta from django.conf import settings from django.contrib import messages from django.core.exceptions import ObjectDoesNotExist from django.core.urlresolvers import reverse from django.db.models import Q from django.forms.models import modelformset_factory from django.http import Ht...
# Copyright 2014 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. DEPS = [ 'depot_tools/bot_update', 'file', 'depot_tools/gclient', 'depot_tools/git', 'gsutil', 'recipe_engine/json', 'recipe_engine/path', 'r...
from __future__ import print_function, division, absolute_import import torch import torch.nn as nn from torch.autograd import Variable from functools import reduce class LambdaBase(nn.Sequential): def __init__(self, *args): super(LambdaBase, self).__init__(*args) def forward_prepare(self, input): ...
from a10sdk.common.A10BaseClass import A10BaseClass class Rt(A10BaseClass): """This class does not support CRUD Operations please use parent. :param value: {"type": "string", "description": "VPN extended community", "format": "string-rlx"} :param DeviceProxy: The device proxy for REST operations and...
import sys import os import json from collections import OrderedDict from PyQt5.QtWidgets import QDialog, QApplication, QGridLayout, QLabel, \ QSpinBox, QDoubleSpinBox, QCheckBox, QPushButton, QLineEdit, QSizePolicy, \ QMessageBox, QSpacerItem, QFileDialog, QComboBox from PyQt5.QtCore import Qt, pyqtSignal, p...
''' :mod:`em_graph` -- External memory graph implementation ======================================================= .. module: em_graph :platform: Unix, Windows :synopsis: External memory graph implementation .. moduleauthor:: huku <huku@grhack.net> About ----- A simple external memory graph implementation bui...
#!/usr/bin/python # # Copyright (C) 2013 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: # # 1. Redistributions of source code must retain the above copyright notice, # this list of...
from __future__ import print_function, division import matplotlib import logging from sys import stdout matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab! from neuralnilm import (Net, RealApplianceSource, BLSTMLayer, DimshuffleLayer, Bidirectio...
#!/usr/bin/env python -Es """ Script to set up a custom genome for bcbio-nextgen """ from argparse import ArgumentParser import os from Bio import SeqIO import toolz as tz from bcbio.utils import safe_makedir, file_exists, chdir from bcbio.distributed.transaction import file_transaction from bcbio.provenance import do...
"""Computational algebraic number field theory. """ from sympy import (S, Expr, I, Integer, Rational, Real, Symbol, Add, Mul, sympify, Q, ask, Dummy) from sympy.polys.polytools import Poly, sqf_norm, invert, factor_list, groebner from sympy.polys.polyutils import basic_from_dict from sympy.polys.polyclasses import...
# Tests specific to the dask class import os from numpy.core.shape_base import block import pytest import numpy as np from mock import patch from numpy.testing import assert_allclose from astropy.tests.helper import assert_quantity_allclose from astropy import units as u from astropy.utils import data try: from ...
# Copyright 2014 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 ag...
# testing/requirements.py # Copyright (C) 2005-2016 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Global database feature support policy. Provides decorators to mark test...
# Copyright (c) 2010-2012 OpenStack, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
############################################################################### ## ## Copyright (C) 2014-2015, New York University. ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## ...
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.web.template} """ from __future__ import division, absolute_import from zope.interface.verify import verifyObject from twisted.internet.defer import succeed, gatherResults from twisted.python.filepath import FilePath fro...
from __future__ import unicode_literals from future.utils import native_str from django.contrib import admin from django.contrib.auth import logout from django.contrib.messages import error from django.contrib.redirects.models import Redirect from django.core.exceptions import MiddlewareNotUsed from django.core.urlres...
# Copyright 2016 ZTE Corporation. # 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 ...
# Copyright 2017 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...
# Copyright 2015 Google Inc. # # 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, ...
import pytest import pytz from django import forms from django.db import models from timezone_field import TimeZoneField, TimeZoneFormField common_tz_names = tuple(tz for tz in pytz.common_timezones) @pytest.fixture def common_tz_objects(tz_func): yield tuple(tz_func(tz) for tz in pytz.common_timezones) class...
import nanosim import numpy as np from itertools import repeat, izip, chain import scipy.ndimage from scipy.interpolate import griddata from scipy.ndimage.interpolation import zoom from scipy.ndimage.filters import gaussian_filter from mpl_toolkits.axes_grid1 import make_axes_locatable from matplotlib.ticker import Mul...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2010 Citrix Systems, Inc. # # 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/LICE...