code
stringlengths
1
199k
from citrination_client.views.descriptors.descriptor import MaterialDescriptor class OrganicDescriptor(MaterialDescriptor): def __init__(self, key): self.options = dict() super(OrganicDescriptor, self).__init__(key, "Organic")
sstr=''' 37107287533902102798797998220837590246510135740250 46376937677490009712648124896970078050417018260538 74324986199524741059474233309513058123726617309629 91942213363574161572522430563301811072406154908250 23067588207539346171171980310421047513778063246676 89261670696623633820136378418383684178734361726757 28112...
''' @author: sheng @license: ''' import unittest from meridian.channels import sanjiao class TestSanjiaoFunctions(unittest.TestCase): def setUp(self): pass def test_xxx(self): pass if __name__ == '__main__': unittest.main()
""" Created on Tue Mar 14 23:07:26 2017 @author: tm Main Goal: Parce a wikipedia page to get all words in it and their links to theirs page. After we need to go on each pages and get all the data possible """ import urllib.request opener = urllib.request.FancyURLopener({}) import sys prefix = "https://fr.wiktionary.org...
from django.conf.urls import include, url urlpatterns = [ url(r'^w3c/', include('p3p.urls', namespace='p3p')), ]
from django.core.management.base import BaseCommand,CommandError from django.contrib.auth.models import User from tester.models import Signup,Seller import random import string class Command(BaseCommand): def handle(self,n_signups=50,*args,**options): n_signups = int(n_signups) start_usn = "1pi13cs" names = ["pr...
"""Unit tests for SQLAlchemy and eventlet interaction.""" import logging import unittest from oslo_utils import importutils import sqlalchemy as sa from sqlalchemy import orm from oslo_db import exception as db_exc from oslo_db.sqlalchemy import models from oslo_db import tests from oslo_db.tests.sqlalchemy import base...
""" Converts any image to EPS, using ImageMagick as a backend. """ from waflib import Logs from waflib import TaskGen,Task from waflib import Utils from waflib.Configure import conf def configure(conf): conf.find_program('unoconv',var='UNOCONV') @conf def oo2pdf(bld, nodes): for source in nodes: outnode = sourc...
__version__ = '1.0.2' from server import * from plugins import * from HTTPerror import * from session import *
import numpy import torch def hermgauss(n, dtype=torch.float32): x, w = numpy.polynomial.hermite.hermgauss(n) x, w = torch.as_tensor(x, dtype=dtype), torch.as_tensor(w, dtype=dtype) return x, w def mvhermgauss(H, D, dtype=torch.float32): """ Return the evaluation locations 'xn', and weights 'wn' for...
from __future__ import unicode_literals import datetime import django.contrib.auth.models import django.core.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0007_alter_validators_add_error_m...
import tensorflow as tf g1 = tf.Graph() with g1.as_default(): v = tf.get_variable("v", [1], initializer=tf.zeros_initializer()) g2 = tf.Graph() with g2.as_default(): v = tf.get_variable("v", [1], initializer=tf.ones_initializer()) with tf.Session(graph=g1) as sess: tf.global_variables_initializer().run() ...
from abc import abstractmethod from django.contrib import admin from django.core.exceptions import PermissionDenied class ObjectLevelPermissionAdmin(admin.ModelAdmin): """ModelAdmin with object-level permission control. By default, anyone can create, and superusers can do whatever they want. Then, for norma...
""" XPath location path expressions. """ from amara.xpath import XPathError from amara.xpath.expressions import nodesets from amara.xpath.locationpaths import axisspecifiers, nodetests from amara.xpath.locationpaths import _paths #i.e. lib/xpath/src/paths.c class location_path(nodesets.nodeset_expression): """ ...
""" Leapp Models These packages provide an interface describing a message payload data structure in the form of Models. Together with the :py:mod:`leapp.models.fields`, package models are defined. Example:: class Boom(Model): topic = SomeTopic reason = fields.String() class Foobar(Model): ...
from django.conf.urls import patterns, url urlpatterns = patterns( '', url(r'dashboard/$', 'litmus.views.dashboard'), url(r'post/$', 'litmus.views.post'), url(r'get/$', 'litmus.views.get'), url(r'comment/$', 'litmus.views.comment'), )
import base64 import copy import httplib import netaddr import threading import time import eventlet eventlet.monkey_patch(thread=True) from neutron.api.v2 import attributes from neutron import context as ncontext from neutron.i18n import _LE, _LI, _LW from neutron.plugins.common import constants from oslo_config impor...
"""Python autoformatter for PEP257 docstring conventions. See https://github.com/myint/docformatter. """ from pants.backend.python.lint import python_fmt from pants.backend.python.lint.docformatter.rules import rules as docformatter_rules def rules(): return (*docformatter_rules(), *python_fmt.rules())
import proto # type: ignore from google.protobuf import timestamp_pb2 # type: ignore __protobuf__ = proto.module( package="google.cloud.aiplatform.v1", manifest={"FeatureStatsAnomaly",}, ) class FeatureStatsAnomaly(proto.Message): r"""Stats and Anomaly generated at specific timestamp for specific Feature....
from traceml.integrations.tensorflow import Callback PolyaxonCallback = Callback PolyaxonSessionRunHook = Callback
"""An example application that allows interactive classification training.""" import json import os import random import config import ee import jinja2 import webapp2 jinja_environment = jinja2.Environment( loader=jinja2.FileSystemLoader(os.path.dirname(__file__))) class MainPage(webapp2.RequestHandler): """Handl...
import sys import random import java.util.Map as Map import java.lang.Double import java.lang.Class import jython_utils from com.espertech.esper.client import EPServiceProviderManager from com.espertech.esper.client import Configuration from com.espertech.esper.client import EPServiceProvider from com.espertech.esper.c...
import pyglet import cocos import nwidget import model from nwidget.cocos2d import * class TestView(cocos.layer.Layer): """ Testing class """ def __init__(self, assets): super(TestView, self).__init__() self.assets = assets # Get events nwidget.events.clear(cocos.director.director.window) self.i...
import sys reload(sys) sys.setdefaultencoding('utf-8') from common import public import re class ddb_gzjfw_zhaobiao(): need_check_ziduan = [u'bbd_dotime', u'main', u'title', u'city', u'industry', ...
import mock from oslo_config import fixture as fixture_config from oslotest import base from oslotest import mockpatch from ceilometer.agent import manager from ceilometer.agent import plugin_base from ceilometer.network.services import discovery from ceilometer.network.services import fwaas class _BaseTestFWPollster(b...
DEVICE_OWNER_VIP_NUAGE = 'nuage:vip' DEVICE_OWNER_IRONIC = 'compute:ironic' DEVICE_OWNER_DHCP_NUAGE = "network:dhcp:nuage" DHCP_OPTION_NAME_TO_NUMBER = { 'netmask': 1, 'time-offset': 2, 'router': 3, 'time-server': 4, 'dns-server': 6, 'log-server': 7, 'lpr-server': 9, 'hostname': 12, ...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from future.standard_library import install_aliases install_aliases() from builtins import str from builtins import object, bytes import copy from collections import named...
import pyb class PowerController(object): def __init__(self, pin_active_high, pin_active_low): self.upcount = 0 if pin_active_low is not None: # Start with power down self.al = pyb.Pin(pin_active_low, mode = pyb.Pin.OUT_PP) self.al.high() else: se...
""" Build the internal node tree from source code. Does all the Python parsing and puts it into a tree structure for use in later stages of the compilation process. In the "nuitka.tree.Helpers" module, the dispatching is happening. One function deals with every node kind as found in the AST. The parsing is centered aro...
"""Configuration support for all drivers. from openstack/cyborg""" from oslo_config import cfg CONF = cfg.CONF SHARED_CONF_GROUP = 'backend_defaults' class DefaultGroupConfiguration(object): """Get config options from only DEFAULT.""" def __init__(self): # set the local conf so that __call__'s know what...
from __future__ import absolute_import from django.conf import settings from django.core.exceptions import ValidationError from django.http import HttpResponse from django.test import TestCase from zerver.forms import email_is_not_mit_mailing_list from zerver.lib.rate_limiter import ( add_ratelimit_rule, clear_...
import os from datetime import date from commands import getstatusoutput, getoutput from shutil import copy2 from PilotErrors import PilotErrors from pUtil import tolog, readpar, timeStamp, getBatchSystemJobID, getCPUmodel, PFCxml, updateMetadata, addSkippedToPFC, makeHTTPUpdate, tailPilotErrorDiag, isLogfileCopied, up...
import torch import torch.nn as nn from torch.autograd import Variable from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors class tofp16(nn.Module): """ Utility module that implements:: def forward(self, input): return input.half() """ def __init__(self): ...
from telnetlib import STATUS from _multiprocessing import flags from __builtin__ import True __authors__ = ['"keke wei" <keke.wei@cs2c.com.cn>'] __version__ = "V0.1" ''' ''' from Utils.PrintLog import LogPrint import xmltodict from BaseAPIs import BaseAPIs from NetworkAPIs import NetworkAPIs from Configs.GlobalConfig i...
DEBUG = False CYCLE_LENGTH = 600 INITIAL_POSITION = {} INITIAL_POSITION["cube_100"] = [0, 3.5, 2, 0, 1, 1, 0, 0] INITIAL_POSITION["cube_101"] = [0, 0, 0, 0, 1, 0, 0, 0] INITIAL_POSITION["cube_102"] = [0, 0, 0, .7, 1, 2, 2, 0.3]
"""SQLAlchemy storage backend.""" import collections import datetime from oslo.config import cfg from oslo.db import exception as db_exc from oslo.db.sqlalchemy import session as db_session from oslo.db.sqlalchemy import utils as db_utils from oslo.utils import timeutils from sqlalchemy.orm.exc import NoResultFound fro...
from functools import partial def resolve(source_str=None): try: return int(source_str) except ValueError: obj = c[source_str] #If we have not resolved it yet, call it now if hasattr(obj, '__call__'): c[source_str] = c[source_str]() return c[source_str] def lshift(left=None, right=None): return left() <...
from citrination_client.views.client import DataViewsClient from citrination_client.models import ModelsClient from citrination_client.search import SearchClient from citrination_client.data import DataClient from citrination_client.util.credentials import get_preferred_credentials class CitrinationClient(object): ...
from celery import task, current_task from celery.result import AsyncResult from time import sleep from testcele.cele import models NUM_OBJ_TO_CREATE = 1000 @task() def create_models(): for i in range(1, NUM_OBJ_TO_CREATE+1): fn = 'Fn %s' % i ln = 'Ln %s' % i my_model = models.MyModel(fn=fn,...
def match_ends(words): r = 0 for s in words: if len(s) >= 2 and s[0] == s[-1]: r += 1 return r def front_x(words): r1 = [] r2 = [] for s in words: if s[0] == 'x': r1.append(s) else: r2.append(s) return sorted(r1) + sorted(r2) def sort_last(tuples): def last_tuple_element(t)...
"""A utility function for importing TensorFlow graphs.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import contextlib from tensorflow.core.framework import graph_pb2 from tensorflow.python import pywrap_tensorflow as c_api from tensorflow.python import ...
""" 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 this ...
from rest_framework import renderers class BrowsableAPIRenderer(renderers.BrowsableAPIRenderer): ''' Customizations to the default browsable API renderer. ''' def get_rendered_html_form(self, view, method, request): ''' Never show auto-generated form (only raw form). ''' ...
"""Differentiable 3-D rendering of a triangle mesh.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf import camera_utils import rasterize_triangles def phong_shader(normals, alphas, pixel_positions, ...
import pytest import sys from .test_base_class import TestBaseClass aerospike = pytest.importorskip("aerospike") try: import aerospike except: print("Please install aerospike python client.") sys.exit(1) class TestCalcDigest(object): @pytest.mark.parametrize("ns, set, key", [ ("test", "demo", 1)...
""" Helper methods for operations related to the management of VM records and their attributes like VDIs, VIFs, as well as their lookup functions. """ import contextlib import os import time import urllib import uuid from xml.dom import minidom from xml.parsers import expat from eventlet import greenthread from oslo_co...
"""Tests for relative_position_biases_general. The parameter names and outputs should be identical to the original "dense" `RelativePositionBiases` when we use `full_att_rp_bucket()`. """ from absl.testing import absltest import jax from jax import random import jax.numpy as jnp from flaxformer.architectures.longt5 imp...
import os import redis from rq import Worker, Queue, Connection listen = ['high', 'default', 'low'] redis_url = os.getenv('REDISTOGO_URL', 'redis://localhost:6379') conn = redis.from_url(redis_url) if __name__ == '__main__': with Connection(conn): worker = Worker(map(Queue, listen)) worker.work()
''' @author: sheng @license: ''' SPELL=u'yīngǔ' CN=u'阴谷' NAME=u'yingu13' CHANNEL='kidney' CHANNEL_FULLNAME='KidneyChannelofFoot-Shaoyin' SEQ='KI10' if __name__ == '__main__': pass
from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import re from collections import namedtuple from pants.backend.python.targets.python_target import PythonTarget from pants.base.build_environment import get_buildroot ...
"""Test cases for the storj.cli package.""" import mock import os import unittest from click.testing import CliRunner from steenzout.sphinx import cli class GenerateTestCase(unittest.TestCase): """Test case for the generate command.""" runner = CliRunner() @mock.patch('steenzout.sphinx.cli.ResourceGenerator...
import inspect import logging import os import re try: # Prefer system installation of Mesos protos if available from mesos_pb2 import * from containerizer_pb2 import * except: from deimos.mesos_pb2 import * from deimos.containerizer_pb2 import * import deimos.cmd from deimos.logger imp...
import threading from collections import defaultdict from .constants import * from .errors import * from ._teradata import Cmd as _Cmd, RequestEnded, StatementEnded, StatementInfoEnded, TeradataError from .connection import Connection, Context from .encoders import check_input, null_handler, python_to_sql from .fmt imp...
from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('user', '0002_auto_20161215_0806'), ('post', '0001_initial'), ] operations = [ migra...
import collections from oslo_serialization import jsonutils import six from heat.common import exception from heat.common.i18n import _ from heat.engine import constraints as constr from heat.engine import function from heat.engine.hot import parameters as hot_param from heat.engine import parameters from heat.engine i...
import re import urllib2 from urlparse import urlparse from datetime import datetime from watcher import Watcher from easy_alert.entity import Alert, Level from easy_alert.i18n import * from easy_alert.setting.setting_error import SettingError from easy_alert.util import Matcher, get_server_id, apply_option, with_retry...
from __future__ import absolute_import, division, print_function __all__ = [ "__title__", "__summary__", "__uri__", "__version__", "__author__", "__email__", "__license__", "__copyright__", ] __title__ = "packaging" __summary__ = "Core utilities for Python packages" __uri__ = "https://github.com/pypa/packaging"...
""" Unit test module for the OVS Library """
import tensorflow as tf from util import logging as logutil from .seq import Network as BaseNetwork logger = logutil.Logger(loggee="networks/mlp") class Network(BaseNetwork): def __init__(self, widths, act=None, skip_at=None): super().__init__() depth = len(widths) if act is None: ...
import ast from yapf.pyparser import pyparser_utils as pyutils from yapf.yapflib import split_penalty from yapf.yapflib import style from yapf.yapflib import subtypes class SplitPenalty(ast.NodeVisitor): """Compute split penalties between tokens.""" def __init__(self, logical_lines): super(SplitPenalty, self)._...
import operator from functools import partial from typing import Any, Dict, Iterable, Tuple, Union, Optional import numpy as np from jax import core from jax._src import dtypes from jax._src.tree_util import ( PyTreeDef, tree_flatten, tree_unflatten, tree_multimap, tree_structure, treedef_children, treedef_is_l...
import os import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))) sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)),'external/pyworld/pyworld')) import unittest import n...
from nssrc.com.citrix.netscaler.nitro.resource.base.base_resource import base_resource from nssrc.com.citrix.netscaler.nitro.resource.base.base_resource import base_response from nssrc.com.citrix.netscaler.nitro.service.options import options from nssrc.com.citrix.netscaler.nitro.exception.nitro_exception import nitro_...
from time import time from traceback import format_exc from eventlet import Timeout from swift.common.swob import Request from swift.common.swob import HTTPBadRequest, HTTPForbidden, HTTPNotFound, \ HTTPSeeOther from swift.common.middleware.acl import clean_acl, parse_acl, referrer_allowed from swift.common.utils i...
def hostname(): # Import standard modules ... import socket # Get (potentially fully-qualified) hostname and return the first part ... return socket.gethostname().split(".")[0]
import json import logging import os from Exceptions.SampleSheetError import SampleSheetError from Exceptions.SequenceFileError import SequenceFileError from Exceptions.SampleError import SampleError from Validation.offlineValidation import validate_sample_sheet, validate_sample_list from Parsers.miseqParser import par...
from __future__ import absolute_import from flask import current_app import logging import uuid from hashlib import md5 from changes.artifacts.base import ArtifactParseError from changes.artifacts.collection_artifact import TestsJsonHandler from changes.backends.jenkins.buildstep import JenkinsGenericBuildStep from cha...
from __future__ import print_function import git from datetime import datetime import yaml import re import sys import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.mime.application import MIMEApplication configfile = sys.argv[1] runfilename = "runfile.yaml" def ...
from google.appengine.ext import ndb class BaseEntity(ndb.Model): create_date = ndb.DateTimeProperty(required=True, auto_now_add=True)
from django.utils.translation import ugettext_lazy as _ # noqa from openstack_dashboard.dashboards.project.instances import tables as i_tables class InstancesTable(i_tables.InstancesTable): class Meta: name = "instances" verbose_name = _("Instances") row_actions = (i_tables.TerminateInstanc...
import os import sys import pdb import girder_client def print_usage(): print("usage:") print("python %s serverName local_folder_path girder_folder_id"%sys.argv[0]) if __name__ == '__main__': keys = {'lemon':'', \ 'images': ''} urls = {'lemon':'http://lemon/api/v1', \ 'images': '...
import os # pragma: no cover import sys # pragma: no cover if __name__ == "__main__": # pragma: no cover os.environ.setdefault("DJANGO_SETTINGS_MODULE", "utf8field.tests.settings") from django.core.management import execute_from_command_line is_testing = 't...
import os import google.auth import list_training_phrases _, PROJECT_ID = google.auth.default() INTENT_ID = os.getenv("INTENT_ID") LOCATION = "global" AGENT_ID = os.getenv("AGENT_ID") def test_list_training_phrases(capsys): training_phrases = list_training_phrases.list_training_phrases( PROJECT_ID, AGENT_ID...
"""oslo.i18n integration module. See https://docs.openstack.org/oslo.i18n/latest/user/usage.html . """ import oslo_i18n DOMAIN = 'manila' _translators = oslo_i18n.TranslatorFactory(domain=DOMAIN) _ = _translators.primary def enable_lazy(): return oslo_i18n.enable_lazy() def translate(value, user_locale): return...
"""This script delete items in a Google Cloud Search datasource using the Cloud Search API. Prerequisites: - Google Cloud Search enable on the gSuite organization - Created a Google Cloud Third-party data sources ID - GCP project - Google Cloud Search API enabled in the project - GCS bucket (Publicly readable) - ...
import unittest import pytest from selenium.webdriver.common.by import By from selenium.common.exceptions import ( InvalidSelectorException, NoSuchElementException) class DriverElementFindingTests(unittest.TestCase): # By.id positive def test_Should_Be_Able_To_Find_ASingle_Element_By_Id(self): s...
import argparse import gin import os import misc.utility import numpy as np import shutil def main(config): """Test policy.""" logger = misc.utility.create_logger(name='test_solution', debug=True) task = misc.utility.create_task(logger=logger) task.seed(config.seed) solution = misc.utility.create_so...
"""Volume V2 Volume action implementations""" import copy import logging from cliff import command from cliff import lister from cliff import show import six from openstackclient.common import parseractions from openstackclient.common import utils from openstackclient.identity import common as identity_common class Cre...
from __future__ import unicode_literals from django.utils.text import slugify from cms.models import ( Container, Layout, Page, Section, ) from cms.tests.model_maker import ( make_container, make_layout, make_page, make_section, ) def init_container(section, order): """Create a foote...
import smartsheet import time import json import os import apiai from datetime import timedelta import sdk import spark import nlpApiai from flask import Flask from flask import request from flask import make_response app = Flask(__name__) ai = apiai.ApiAI(os.environ.get('APIAI_ACCESS_TOKEN', None)) smartsheet = smarts...
import sys import argparse import matplotlib.pyplot as plt from cyber_py.record import RecordReader from modules.control.proto import control_cmd_pb2 from modules.planning.proto import planning_pb2 from modules.canbus.proto import chassis_pb2 from modules.drivers.proto import pointcloud_pb2 from module_control_analyzer...
Hi = "This is a really good game!" Bye = "This is also a WIP!" print(Hi) print(Bye)
""" Created on 15 May 2020 @author: 302683 """ import csv import logging.handlers import multiprocessing import sys import time import json import docker import elasticsearch import elasticsearch.helpers import _thread import pika import queue import os import shutil import stat import tarfile from ....core.MessageQueu...
""" Scheduler base class that all Schedulers should inherit from """ import abc from nova import objects from nova.scheduler import host_manager from nova import servicegroup class Scheduler(metaclass=abc.ABCMeta): """The base class that all Scheduler classes should inherit from.""" # TODO(mriedem): We should r...
import numpy from numpy.testing import assert_allclose from flaky import flaky from deep_qa.models.reading_comprehension.bidirectional_attention import BidirectionalAttentionFlow from ...common.test_case import DeepQaTestCase class TestBidirectionalAttentionFlow(DeepQaTestCase): @flaky def test_trains_and_loads...
#!/usr/bin/env python '''Transform matrix methods compatable with Maya's transform A set of 3d transformation matrix methods developed for use in 3d graphics applications impliments many functions for easier use in composing and decomposing transform matrices. **********************************************************...
''' Created on 2009-08-28 @author: beaudoin ''' from App.Proxys import * data = RigidBody( name = "ground", locked = True, cdps = [ PlaneCDP( (0,1,0), (0,0,0) ) ], frictionCoeff = 2.5, restitutionCoeff = 0.35 )
import six from mdstudio.api.singleton import Singleton from mdstudio.cache.session_cache import SessionCacheWrapper from mdstudio.session import GlobalSession from mdstudio.util.exception import MDStudioException @six.add_metaclass(Singleton) class GlobalCache(object): def __init__(self): try: ...
import re import genutil import ildutil import codegen import opnds def is_target_op(agi, op, target_op): """ @param op: instruction_info_t.operands[i] - the binded operand by an NT row @param target_op: string - the name of the target operand @param agi: all_generator_info_t - the main generator's data...
""" WSGI config for talks project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ from __future__ import absolute_import import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "talk...
import sys print (sys.version) import uuid from pprint import pprint as pp from enum import Enum, auto class Color(Enum): RED = auto() BLUE = auto() GREEN = auto() pp (list(Color)) class AutoName(Enum): def _generate_next_value_(name, start, count, last_values): return uuid.uuid4().hex class Ord...
""" test_objects ---------------------------------- Tests for the sqlalchemy solum 'objects' implementation """ import datetime import uuid import testtools from testtools import matchers from solum.common import exception from solum import objects from solum.tests import base as tests from solum.tests import utils cla...
import testtools from tempest.api.compute import base from tempest.common.utils import data_utils from tempest.common import waiters from tempest import config from tempest.lib import exceptions from tempest import test CONF = config.CONF class MigrationsAdminTest(base.BaseV2ComputeAdminTest): @classmethod def ...
import unittest from maxixe.tests import suite unittest.TextTestRunner().run(suite)
from pyjamas import DOM from pyjamas.DeferredCommand import DeferredCommand from pyjamas.ui.Widget import Widget from pyjamas.ui.MenuItem import MenuItem from pyjamas.ui.MenuBarPopupPanel import MenuBarPopupPanel class MenuBar(Widget): def __init__(self, vertical=False, **kwargs): if not kwargs.has_key('Sty...
from decimal import Decimal from dateutil.parser import parse import pytz from amaascore.core.amaas_model import AMaaSModel class MTMResult(AMaaSModel): def __init__(self, asset_manager_id, book_id, business_date, asset_id, mtm_timestamp, mtm_value=None, mtm_status='Active', message=None, ...
from .web import *
"""emrcontainers base URL and path.""" from .responses import EMRContainersResponse url_bases = [ r"https?://emr-containers\.(.+)\.amazonaws\.com", ] url_paths = { "{0}/virtualclusters$": EMRContainersResponse.dispatch, "{0}/virtualclusters/(?P<virtualClusterId>[^/]+)$": EMRContainersResponse.dispatch, ...
"""Support for departure information for public transport in Munich.""" import logging from datetime import timedelta from copy import deepcopy import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.components.sensor import PLATFO...
import base64 import json import logging import random from kubernetes_disk import CephDisk from perfkitbenchmarker import flags from perfkitbenchmarker import virtual_machine, linux_virtual_machine from perfkitbenchmarker import vm_util from perfkitbenchmarker.vm_util import OUTPUT_STDOUT as STDOUT,\ OUTPUT_STDERR...