gt
stringclasses
1 value
context
stringlengths
2.49k
119k
import os import warnings import numpy as np from pyrates.utility.genetic_algorithm import CGSGeneticAlgorithm from pandas import DataFrame, read_hdf from copy import deepcopy class CustomGOA(CGSGeneticAlgorithm): def eval_fitness(self, target: list, **kwargs): # define simulation conditions wor...
from __future__ import absolute_import import errno import fcntl import grp import logging import os import pwd import shutil import signal import stat import struct import sys import tempfile import time from greenhouse import compat, io, scheduler, util as gutil from . import util master_log = logging.getLogger(...
from datetime import timedelta import datetime from django.utils.translation import ugettext_noop from django.utils import html from casexml.apps.case.models import CommCareCase from django.core.urlresolvers import reverse, NoReverseMatch import pytz from django.utils.translation import ugettext as _ from corehq.apps.r...
# coding=utf-8 # Copyright (c) 2011-2013 University of Southern California / ISI # 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...
# Copyright 2013 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...
#!/usr/bin/env python ############################################################################## # # Normalize a Directory Tree Structure # ############################################################################## """ Normalize Tree This is used to clean up directories that are typically created either by ha...
import datetime import re import sys import warnings from contextlib import contextmanager from unittest import SkipTest, skipIf from xml.dom.minidom import parseString import pytz from django.contrib.auth.models import User from django.core import serializers from django.core.exceptions import ImproperlyConfigured f...
# 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...
""" The :mod:`scikitplot.metrics` module includes plots for machine learning evaluation metrics e.g. confusion matrix, silhouette scores, etc. """ from __future__ import absolute_import, division, print_function, \ unicode_literals import itertools import matplotlib.pyplot as plt import numpy as np from sklearn...
# # 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 # distributed under ...
# 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...
# -*- coding: utf-8 -* from __future__ import print_function #----------------------------------------------------------------------------- # Copyright (c) 2014, HFTools Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this ...
import enabler_connection import dynamics_model import threading import time import datetime import math class StateManager(object): def __init__(self): self.stopped = False self.connection = enabler_connection.EnablerConnection() self.dynamics_model = dynamics_model.DynamicsModel() ...
#!/usr/bin/python2.5 # # Copyright 2010 the Melange 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...
# Copyright 2016 Huawei, 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 appli...
"""Unit test for trace. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import json import os import shutil import tempfile import unittest import mock from treadmill import trace from treadmill.trace import eve...
from unittest import mock from freezegun import freeze_time from rest_framework import test from waldur_mastermind.invoices import models as invoices_models from waldur_mastermind.marketplace import callbacks from waldur_mastermind.marketplace import models as marketplace_models from waldur_mastermind.marketplace.sig...
#!/usr/bin/env python2.7 # Copyright 2017 gRPC 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 la...
# # Copyright (c) 2014 by Christian E. Hopps. # 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 appl...
"""External modules should access Norc data using these functions. The main benefit currently is to prevent the occurence of a try block everywhere data is needed, and to reduce the amount of code needed for retrievals using consistent attributes. Additionally, it prevents external modules from having to query core ...
import os import copy import inspyred import random import numpy import json from joblib import delayed, Parallel, Memory cachedir = '.cache' if not os.path.isdir(cachedir): os.mkdir(cachedir) mem = Memory(cachedir=cachedir, verbose=False) from numpy import log, exp, log10, loadtxt, array, linspace, pi, sin, cos prng ...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from unittest import TestCase from django.db import models from django.db.models.signals import pre_save from mock import Mock, patch from clean_fields.decorators impor...
"""AWS Adapter osid objects implementations.""" # pylint: disable=too-many-ancestors # number of ancestors defined in spec from ...abstract_osid.osid import objects as abc_osid_objects from ..osid import markers as osid_markers from .osid_errors import OperationFailed, IllegalState class OsidObject(abc_osid_obje...
# coding: utf-8 # imports import os, re, datetime from time import gmtime, strftime # django imports from django.conf import settings # filebrowser imports from filebrowser.settings import * from filebrowser.functions import get_file_type, url_join, is_selectable, get_version_path # PIL import if STRICT_PIL: fr...
""" Trains a Siamese MLP on pairs of digits from the CIFAR100 small dataset. """ from __future__ import absolute_import from __future__ import print_function import argparse import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from tqdm import tqdm DISTANCE_THRESHOLD = 0.50 NUM_CLASSES = 100 SEE...
"""Support for UV data from openuv.io.""" import asyncio import logging from pyopenuv import Client from pyopenuv.errors import OpenUvError from homeassistant.const import ( ATTR_ATTRIBUTION, CONF_API_KEY, CONF_BINARY_SENSORS, CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE, CONF_SENSORS, ) ...
#!/usr/bin/env python # # Copyright 2011-2013 The Rust Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution and at # http://rust-lang.org/COPYRIGHT. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT lice...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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...
# 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. DEPS = [ 'adb', 'amp', 'bisect_tester', 'depot_tools/bot_update', 'chromium', 'chromium_android', 'chromium_tests', 'commit_position', 'fil...
#!/usr/bin/env python """ m2g.stats.qa_skullstrip ~~~~~~~~~~~~~~~~~~~~~~ The top level m2g quality assurance for skull strip module. In this module, m2g: 1. Takes an original t1w nifti file and the skull-stripped nifti file as inputs 2. Shows the skull-stripped brain (green) overlaid on the original t1w (magenta) 3. S...
import shlex from django.contrib.auth.mixins import LoginRequiredMixin from django.db.models import Q,F,Count,Case,When,Sum,IntegerField,Min from django.http import HttpResponse from django.views.generic import DetailView,ListView,View from django.views.generic.edit import CreateView from django.shortcuts import get_...
# - # Copyright 2016 Max Fischer # - # # - # 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 appl...
""" Copyright 2021 Google 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
# -*- coding: utf-8 -*- import abc import mock from django.utils import timezone from framework.auth import Auth from framework.exceptions import HTTPError from nose.tools import * # noqa (PEP8 asserts) from osf_tests.factories import ProjectFactory, UserFactory from tests.utils import mock_auth from addons.base impo...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
from contextlib import contextmanager import logging import os import json import shutil import base64 import lockfile import cacheregistry import argparse import sys import glob import re import errno class FileCache(object): def __init__(self, cacheDir): self._cacheDir = cacheDir self._ensure_d...
"""Support for user- and CDC-based flu info sensors from Flu Near You.""" from datetime import timedelta import logging from pyflunearyou import Client from pyflunearyou.errors import FluNearYouError import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import (...
#!/usr/bin/env python # 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. """Helper script to repack paks for a list of locales. Gyp doesn't have any built-in looping capability, so this just provides a w...
# Licensed under a 3-clause BSD style license - see LICENSE.rst import pytest import numpy as np from ... import units as u from .. import (SphericalRepresentation, Longitude, Latitude, SphericalDifferential) class TestManipulation(): """Manipulation of Representation shapes. Checking that...
import json from functools import partial from itertools import tee from typing import Union import h5py import numpy as np import pyspark from pyspark import RDD from tensorflow.keras.models import load_model from tensorflow.keras.models import model_from_json from tensorflow.keras.optimizers import get as get_optimi...
''' Created on Feb 26, 2016 @author: Christopher Elliott ''' import random import numpy import pygame from numpy.ma.core import floor_divide from operator import attrgetter import sys if __name__ == '__main__': pass MAX_SEATS = 159 #maximum seats in the aircraft MAX_FIRST_CLASS = 12 #maximum first c...
#!/usr/bin/python # -*- coding: utf-8 -*- # This file is part of Ansible # # Ansible 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. # ...
# Copyright 2017 ETH Zurich # # 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, sof...
import os import os.path as op import sys import warnings import numpy as np from nose.tools import assert_true, assert_equal, assert_raises from numpy.testing import assert_allclose from mne import (read_dipole, read_forward_solution, convert_forward_solution, read_evokeds, read_cov, ...
import os from git.compat import ( string_types, defenc ) from git.objects import Object, Commit from git.util import ( join_path, join_path_native, to_native_path_linux, assure_directory_exists, hex_to_bin, LockedFD ) from gitdb.exc import ( BadObject, BadName ) import os.path...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Selectors module. This module allows high-level and efficient I/O multiplexing, built upon the `select` module primitives. """ from abc import ABCMeta, abstractmethod from collections import namedtuple, Mapping import math import select import sys # generic events,...
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'simplevizwidget.ui' ## ## Created by: Qt User Interface Compiler version 5.15.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ##########...
"""Estimate resources required for processing a set of tasks. Uses annotations provided in multitasks.py for each function to identify utilized programs, then extracts resource requirements from the input bcbio_system file. """ import copy import math import operator from bcbio.pipeline import config_utils from bcbio...
import json import logging import os import re import requests import six import six.moves.urllib.parse as urlparse import threading import time import gym from gym import scoreboard from gym.utils import reraise from universe import error, utils from universe.remotes import remote if six.PY2: import Queue as qu...
""" Get API information encoded in C files. See ``find_function`` for how functions should be formatted, and ``read_order`` for how the order of the functions should be specified. """ from numpy.distutils.conv_template import process_file as process_c_file import hashlib import io import os import re import sys impo...
# Copyright (c) 2016, Xilinx, 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 ...
#!/usr/bin/python # Copyright (c) 2015 nexB Inc. http://www.nexb.com/ - All rights reserved. """ This script a configuration helper to select pip requirement files to install and python and shell configuration scripts to execute based on provided config directories paths arguments and the operating system platform. T...
import contextlib import tempfile import unittest import numpy import chainer from chainer.backends import cuda from chainer import configuration from chainer import functions from chainer import testing from chainer.testing import attr class TestReporter(unittest.TestCase): def test_empty_reporter(self): ...
# Import statements import sys sys.path.append("/home/pi/Documents/Robots/slcypi/MA") ### ADD PATH sys.path.append("/home/pi/Documents/Robots/slcypi/HAT_Python3") ### ADD PATH import cv2 import numpy as np import matplotlib.pyplot as plt from Tank import Tank import picamera import picamera.array import time import pyg...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Nicira Networks, 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.apach...
""" Support for Cover devices. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/cover/ """ import asyncio from datetime import timedelta import functools as ft import logging import os import voluptuous as vol from homeassistant.config import load_yaml_c...
""" pin info: analog potentiometers are read via MCP3008 chip connected via SPI MCP3008 ADC chip #1 pin 21: SPI MISO pin 19: SPI MOSI pin 23: SPI Serial Clock pin 38: Chip Select MCP3008 ADC chip #2 pin 21: SPI MISO pin 19: SPI MOSI pin 23: SPI Serial Clock pin 40: Chip Select ...
from __future__ import unicode_literals import unittest import six from testfixtures import LogCapture, StringComparison from openid import message from openid.consumer import consumer, discover from openid.test.test_consumer import TestIdRes def const(result): """Return a function that ignores any arguments a...
import angr import nose import pyvex import claripy import archinfo import logging import os from angr import SimState, BP_AFTER, BP_BEFORE, SIM_PROCEDURES, concretization_strategies from angr.engines import SimEngineProcedure, SimEngineVEX def test_inspect(): class counts: #pylint:disable=no-init mem_rea...
# # 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 # ...
# coding: utf-8 import os import re from xml.dom import Node from django.db import models from django.db.models.signals import post_save from django.utils.encoding import smart_text from django.utils.six import text_type from guardian.shortcuts import assign_perm, get_perms_for_model from pyxform import SurveyElementB...
from __future__ import absolute_import from datetime import date, datetime from decimal import Decimal import os from django_google_adwords.models import ReportFile, Account, Campaign, AdGroup, \ DailyAccountMetrics, DailyCampaignMetrics, DailyAdGroupMetrics, Ad, \ DailyAdMetrics from django.test.testcases im...
# ------------------------------------------------------------------------------ # Copyright (c) 2010, Enthought, Inc # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistributed only # under the conditions describe...
"""SCons.Tool.mslink Tool-specific initialization for the Microsoft linker. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person o...
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Invoice.is_hidden' db.add_column(u'accounting_invoice', 'is_hidden', self.gf('django.db.mo...
"""Result manager client implementation. The result client interracts with the remote server and updates it of all the tests' events in real-time, so at the end of a run, the server's database could tell what and when tests and tests containers were run (including their hierarchial structure), what were their results ...
# Copyright 2012 Josh Durgin # Copyright 2013 Canonical Ltd. # 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/LICENS...
#!/usr/bin/env python # Copyright 2014-2019 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...
#!/usr/bin/env python3 # Copyright (c) 2014-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the fundrawtransaction RPC.""" from decimal import Decimal from itertools import product from ma...
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str import os import pickle from indra.preassembler.hierarchy_manager import hierarchies from indra.preassembler import Preassembler, render_stmt_graph,\ flatten_evidence from indra.preasse...
# Copyright 2015 Google 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 in writing, s...
import warnings from decimal import Decimal from django.contrib.gis.db.models.fields import BaseSpatialField, GeometryField from django.contrib.gis.db.models.sql import AreaField, DistanceField from django.contrib.gis.geos import GEOSGeometry from django.core.exceptions import FieldError from django.db.models import (...
import hashlib import json import os import uuid from django import forms from django.conf import settings from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ValidationError from django.core.paginator import Emp...
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
''' SQ-UKF implementations for Parameter Estimation w/ additive parameters & observation noises ''' import numpy as np from numpy import ma from ..SKLearn_utils import array1d, array2d, get_params, preprocess_arguments, check_random_state from ..KF_utils import _determine_dimensionality, _last_dims, _arg_or_default ...
# 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...
from google.protobuf import text_format from .caffe import get_caffe_resolver from .errors import KaffeError, print_stderr from .layers import LayerAdapter, LayerType, NodeKind, NodeDispatch from .shapes import TensorShape class Node(object): def __init__(self, name, kind, layer=None): self.name = name ...
"""Chris' function for running the SMC simulations """ from __future__ import division, print_function import numpy as np from model import HaarTestModel from dists import HaarDistribution, MUBDistribution, WeakMeasDistribution from qubit_dst.dst_povm_sampling import DSTDistribution from qinfer.smc import SMCUpdater ...
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
#!/usr/bin/env python2.7 from multiprocessing import Pool import sys import numpy as np from seizure_prediction.classifiers import make_svm, make_lr, make_simple_lr from seizure_prediction.cross_validation.kfold_strategy import KFoldStrategy from seizure_prediction.cross_validation.legacy_strategy import LegacyStrat...
# Copyright 2021 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
#!/usr/bin/env python # # Copyright 2012 Facebook # # 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 ReportLab Europe Ltd. 2000-2016 #see license.txt for license details # $URI:$ __version__='3.3.0' __doc__='''Gazillions of miscellaneous internal utility functions''' import os, sys, imp, time, types from base64 import decodestring as base64_decodestring, encodestring as base64_encodestring from reportlab i...
import sys import textwrap from nose.tools import ok_, raises from fudge import (Fake, patch_object, with_patched_object, patched_context, with_fakes) from fabric.context_managers import settings, hide, show from fabric.network import (HostConnectionCache, join_host_strings, normalize, ...
#!/usr/bin/env python """ Usage example employing Lasagne for digit recognition using the MNIST dataset. This example is deliberately structured as a long flat file, focusing on how to use Lasagne, instead of focusing on writing maximally modular and reusable code. It is used as the foundation for the introductory La...
#! /usr/bin/env python3 import os import sys import stat import math from mule_local.JobMule import * jg = JobGeneration() from mule_local.rexi.REXICoefficients import * from mule_local.rexi.trexi.TREXI import * from mule_local.rexi.cirexi.CIREXI import * from mule_local.rexi.brexi.BREXI import * # # Run simulati...
# Adapted from test_file.py by Daniel Stutzbach import sys import os import unittest from array import array from weakref import proxy from test.support import TESTFN, findfile, check_warnings, run_unittest from collections import UserList import _fileio class AutoFileTests(unittest.TestCase): # file tests for ...
# Copyright 2015 ARM Limited # # 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...
# -*- coding: utf-8 -*- # # Copyright (C) 2012 Chris Johnson <raugturi@gmail.com> # # 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 option) any lat...
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt # util __init__.py from __future__ import unicode_literals from werkzeug.test import Client import os, re, urllib, sys, json, md5, requests, traceback import bleach, bleach_whitelist from html5lib.sanitizer import HTML...
#!/usr/bin/env python # 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. """End to end tests for ChromeDriver.""" import base64 import json import math import optparse import os import socket import subproce...
########################################################################## #Copyright 2015 Rasmus Dall # # # #Licensed under the Apache License, Version 2.0 (the "License"); # #you may not use thi...
from __future__ import division, print_function, absolute_import from numpy.testing import assert_equal, assert_almost_equal, assert_array_equal, \ assert_array_almost_equal, assert_allclose, assert_, TestCase from numpy import array, diff, shape, asarray, pi, sin, cos, arange, dot, \ ravel, sqrt, inf, ro...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Terraform Parser. ----------------- Terraform is a tool developed by Hashicorp inc. It can be used to build, change and version infrastructure safely and efficiently. It has support for several popular cloud/service providers. Terraform reads user generated .tf config...
from __future__ import print_function import py2app from distutils.core import setup from distutils.sysconfig import get_python_lib import os import sys import subprocess import shutil import datetime import re from plistlib import readPlist, writePlist from fontTools.misc.py23 import PY3 from drawBot.drawBotSetting...
# -*- coding: utf-8 -*- """ This file is part of pyCMBS. (c) 2012- Alexander Loew For COPYING and LICENSE details, please refer to the LICENSE file """ class ANOVA(object): """ main class to perform an ANOVA analysis using C{Data} objects treatments are derived from data timeseries blocks are obt...
""" <Program Name> test_signerlib.py <Author> Konstantin Andrianov <Started> September 6, 2012 <Copyright> See LICENSE for licensing information. <Purpose> Test_signerlib.py provides collection of methods that tries to test all the units (methods) of the module under test. This unittest module requir...
""" :class:`.GoogleV3` is the Google Maps V3 geocoder. """ from warnings import warn import base64 import hashlib import hmac from geopy.compat import urlencode from geopy.geocoders.base import Geocoder, DEFAULT_TIMEOUT, DEFAULT_SCHEME from geopy.exc import ( GeocoderQueryError, GeocoderQuotaExceeded, Con...
__author__ = 'Bohdan Mushkevych' import collections from threading import Lock from datetime import datetime, timedelta from synergy.conf import settings from synergy.system.system_logger import get_logger from synergy.system.decorator import thread_safe from synergy.system.priority_queue import PriorityEntry, Priori...
import re from abc import ABCMeta, abstractmethod from errors import LasFormatException from errors import VersionBlockException from errors import WellBlockException from errors import CurveBlockException from errors import ParameterBlockException from errors import OtherBlockException from errors import DataBlockExc...