gt
stringclasses
1 value
context
stringlengths
2.49k
119k
#!/usr/bin/env python3 from testUtils import Utils import signal import time from Cluster import Cluster from Cluster import NamedAccounts from core_symbol import CORE_SYMBOL from WalletMgr import WalletMgr from Node import Node from TestHelper import TestHelper from TestHelper import AppArgs import json ###########...
#!/usr/bin/env python # -*- encoding: utf-8 -*- # 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...
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, subprocess, sys, glob, string import zipfile from datetime import date cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) os.chdir(cwd) required_module_keys = ['architectures', 'name','version','moduleid','descripti...
from __future__ import unicode_literals from django.db import models from django.utils import timezone from django.core.urlresolvers import reverse from django.conf import settings from smart_selects.db_fields import ChainedForeignKey from datospersonalesapp.models import Paciente from django.contrib.auth.models import...
import os from typing import TYPE_CHECKING, Any, Dict, List, Optional from scripts.lib.zulip_tools import deport from .config import DEVELOPMENT, PRODUCTION, get_secret if TYPE_CHECKING: from django_auth_ldap.config import LDAPSearch from typing_extensions import TypedDict from zerver.lib.types import S...
# coding: utf-8 from __future__ import unicode_literals import os import uuid import time import datetime from PIL import Image import requests import feedparser from pyquery import PyQuery as pq from django.utils import timezone from django.conf import settings from django.core.mail import EmailMessage from django.u...
#!/usr/bin/env python # Software License Agreement (BSD License) # # Copyright (c) 2009, Willow Garage, 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...
""" A neural chatbot using sequence to sequence model with attentional decoder. This is based on Google Translate Tensorflow model https://github.com/tensorflow/models/blob/master/tutorials/rnn/translate/ This file contains the code to run the model. See readme.md for instruction on how to run the starter code. "...
# -*- coding: utf-8 -*- import time import datetime import mock from factory import SubFactory from factory.fuzzy import FuzzyDateTime, FuzzyAttribute, FuzzyChoice from mock import patch, Mock import factory import pytz import factory.django from factory.django import DjangoModelFactory from django.apps import apps f...
#!/usr/bin/env python import subprocess import praw import datetime import pyperclip from hashlib import sha1 from flask import Flask from flask import Response from flask import request from cStringIO import StringIO from base64 import b64encode from base64 import b64decode from ConfigParser import ConfigParser impor...
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, 2017 2018 Caleb Bell <[email protected]> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
import copy import datetime import json import os from typing import Dict, List, Optional import jinja2 import jsonschema import yaml from ray_release.anyscale_util import find_cloud_by_name from ray_release.exception import ReleaseTestConfigError from ray_release.logger import logger from ray_release.util import dee...
import math import paddle.v2 as paddle import reader __all__ = ["training_net", "inference_net", "feeding"] feeding = { reader.Q_IDS_STR: reader.Q_IDS, reader.E_IDS_STR: reader.E_IDS, reader.QE_COMM_STR: reader.QE_COMM, reader.EE_COMM_STR: reader.EE_COMM, reader.LABELS_STR: reader.LABELS } def ...
import pytest from pytest import approx from math import radians, nan, sqrt, isnan import pymap3d as pm lla0 = (42, -82, 200) rlla0 = (radians(lla0[0]), radians(lla0[1]), lla0[2]) xyz0 = (660675.2518247, -4700948.68316, 4245737.66222) ELL = pm.Ellipsoid() A = ELL.semimajor_axis B = ELL.semiminor_axis atol_dist = 1...
from __future__ import absolute_import, print_function import logging from types import LambdaType from sentry.models import Organization from sentry.web.frontend.base import BaseView from sentry.utils.session_store import RedisSessionStore from sentry.utils.hashlib import md5_text from sentry.web.helpers import ren...
#!/usr/bin/python # Copyright (c) 2010-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 appl...
from __future__ import absolute_import from .fixtures import * from blitzdb.tests.helpers.movie_data import Actor, Director, Movie def test_basic_delete(backend, small_test_data): backend.filter(Actor, {}).delete() backend.commit() assert len(backend.filter(Actor, {})) == 0 def test_basic_storage(ba...
# Copyright 2014-2016 Morgan Delahaye-Prat. All Rights Reserved. # # Licensed under the Simplified BSD License (the "License"); # you may not use this file except in compliance with the License. """Test basic CRUD operations of the CRUDProvider.""" import json import pytest from hypr.providers import CRUDProvider d...
# 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...
## # Copyright (c) 2012-2015 Apple 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 l...
"""The tests for the demo climate component.""" import unittest from homeassistant.util.unit_system import ( METRIC_SYSTEM ) from homeassistant.setup import setup_component from homeassistant.components import climate from tests.common import get_test_home_assistant ENTITY_CLIMATE = 'climate.hvac' ENTITY_ECOBEE...
#!/usr/bin/env python # -*- encoding: utf-8 -*- # # Copyright 2016 H2O.ai; Apache License Version 2.0 (see LICENSE for details) # """Shared utilities used by various classes, all placed here to avoid circular imports. This file INTENTIONALLY has NO module dependencies! """ from __future__ import absolute_import, divi...
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import os.path from copy import deepcopy from django.conf import settings from django.http import SimpleCookie from django.template import RequestContext, Template from django.urls import reverse from django.utils.encodin...
from itertools import chain import json import logging from django.contrib.auth.decorators import login_required from django.db.models import Q from django.http import HttpResponseRedirect, Http404, HttpResponse from django.views.decorators.csrf import csrf_protect from django.core.paginator import Paginator, EmptyPag...
import datetime from collections import Counter from unittest import mock from django.core.exceptions import ValidationError from django.forms import ( BaseForm, CharField, DateField, FileField, Form, IntegerField, SplitDateTimeField, formsets, ) from django.forms.formsets import BaseFormSet, all_valid, formse...
# 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...
import datetime import xml.etree.ElementTree as ET from .shared import SepaPaymentInitn from .utils import int_to_decimal_str, make_id class SepaTransfer(SepaPaymentInitn): """ This class creates a Sepa transfer XML File. """ root_el = "CstmrCdtTrfInitn" def __init__(self, config, schema="pain.0...
""" test_indexing tests the following Index methods: __getitem__ get_loc get_value __contains__ take where get_indexer get_indexer_for slice_locs asof_locs The corresponding tests.indexes.[index_type].test_indexing files contain tests for the corresponding methods specific to th...
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Ve...
''' Analyses the Oslo algorithm. ''' import numpy as np import matplotlib as m import matplotlib.pylab as plt import matplotlib.ticker as mtk import matplotlib.cm as cm import log_bin_CN_2016 as lb import oslo as o font = {'size' : 19} m.rc('font', **font) all_sizes = np.array([8, 16, 32, 64, 128, 256, 512, 1024, 2...
# Copyright 2011-present MongoDB, 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 wri...
#!/usr/bin/env python2.7 # 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 "Li...
from __future__ import unicode_literals import mimetypes import os import random import sys import time from email import (charset as Charset, encoders as Encoders, message_from_string, generator) from email.message import Message from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart ...
""" Contains the Mode and ModeTimers parent classes""" # modes.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf import logging from mpf.system.timing impor...
# Copyright 2014 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 agreed to in...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2007-2015, GoodData(R) Corporation. All rights reserved import ast import datetime from flask_restful import abort import json import os import re import socket def generate_unique_file(): return datetime.datetime.now().strftime('%Y-%m-%d_%H-%M-%S-%f'...
import base64 import fcntl import getpass import logging import os import re import socket import subprocess import uuid import paramiko as paramiko from Crypto.Cipher import AES from PyQt4.QtCore import QThread cipher = AES.new(uuid.uuid4().hex, AES.MODE_ECB) REGEX_UFW_ANYWHERE = re.compile(r'^(?P<any>Anywhere)') R...
# Copyright 2014 Google Inc. All Rights Reserved. """List printer for Cloud Platform resources.""" from googlecloudsdk.core.util import attrpath from googlecloudsdk.core.console import console_io def PrintResourceList(collection, items): """Print a list of cloud resources. Args: collection: str, The name ...
# Copyright (c) 2013-2014 Rackspace, 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 ...
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
# -*- coding: utf-8 -*- import datetime import os.path import zipfile from django.core import mail from django.core.files import temp from django.core.files.base import File as DjangoFile from django.urls import reverse from unittest import mock from pyquery import PyQuery as pq from olympia import amo from olympia...
'''tzinfo timezone information for US/Mountain.''' from pytz.tzinfo import DstTzInfo from pytz.tzinfo import memorized_datetime as d from pytz.tzinfo import memorized_ttinfo as i class Mountain(DstTzInfo): '''US/Mountain timezone definition. See datetime.tzinfo for details''' zone = 'US/Mountain' _utc_tr...
# 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 (c) 2008-2009 Aryeh Leib Taurog, http://www.aryehleib.com # All rights reserved. # # Modified from original contribution by Aryeh Leib Taurog, which was # released under the New BSD license. import unittest from django.contrib.gis.geos.mutable_list import ListMixin class UserListA(ListMixin): _mytype =...
#!/usr/bin/env python3 #****************************************************************************** # (C) 2019, Stefan Korner, Austria * # * # The Space Python Library is free software; you can redi...
# 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 2013 Cloudbase Solutions SRL # Copyright 2013 Pedro Navarro Perez # 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...
# 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 the...
# Copyright 2015 Tesora 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 a...
# Copyright (c) 2015 Mirantis 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 writ...
import json import queue import logging import traceback import multiprocessing from heapq import nsmallest from collections import Counter from collections import OrderedDict from collections import defaultdict from itertools import chain from itertools import zip_longest from itertools import cycle from operator impo...
# Distributed under the MIT software license, see the accompanying # file LICENSE or https://www.opensource.org/licenses/MIT. import os import re from collections import defaultdict from pathlib import Path import json from help_data import display_name, capitalize, uncapitalize from annotations import Annotations ...
# Copyright 2014-2017 Insight Software Consortium. # Copyright 2004-2009 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. # See http://www.boost.org/LICENSE_1_0.txt import os from . import class_declaration from . import type_traits from . import enumeration from . import calldef_members ...
# -*- coding: utf-8 -*- # Copyright 2022 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...
#! /usr/bin/env python3 # -*- coding: utf-8 -*- import sys import time import re import collections import math from PySide import QtCore, QtGui from . import _callinfo, _time COLOR_TEXT = QtGui.QColor(0, 0, 0) COLOR_DIVIDER = QtGui.QColor(150, 150, 150) COLOR_TIMESTAMP = QtGui.QColor(0, 0, 0) COLOR_BACKGROUND = Qt...
# basic library import os import shutil import math import time import menpo.io as mio import menpo3d.io as m3io import numpy as np import h5py import pandas as pd from menpo.shape import ColouredTriMesh, PointCloud from menpo.transform import Homogeneous from menpo3d.rasterize import rasterize_mesh from pathlib impor...
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals """ Customize Form is a Single DocType used to mask the Property Setter Thus providing a better UI from user perspective """ import frappe, json from frappe import _ from fra...
# 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...
from datetime import datetime from docker.models.containers import Container from pytest import mark from deck_chores.main import parse_iso_timestamp from deck_chores.parsers import ( parse_flags, parse_labels, CronTrigger, DateTrigger, IntervalTrigger, JobConfigValidator, ) @mark.parametriz...
from __future__ import absolute_import import logging import os from pip._vendor import pkg_resources from pip._vendor import requests from pip.download import (url_to_path, unpack_url) from pip.exceptions import (InstallationError, BestVersionAlreadyInstalled, DistributionNotFound, Previ...
from __future__ import absolute_import import logging from pip._vendor import pkg_resources from pip.basecommand import Command from pip.exceptions import DistributionNotFound from pip.index import FormatControl, fmt_ctl_formats, PackageFinder, Search from pip.req import InstallRequirement from pip.utils import get_...
# Copyright 2021 The Jax Influence Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # # # UVEServer # # Operational State Server for UVEs # import gevent import json import copy import xmltodict import redis import datetime import sys from opserver_util import OpServerUtils import re from gevent.coros import BoundedSemaphore from pys...
import os import re from datetime import datetime from flask import current_app as app, render_template, request, redirect, abort, jsonify, url_for, session, Blueprint, Response, send_file from jinja2.exceptions import TemplateNotFound from passlib.hash import bcrypt_sha256 from sqlalchemy import union_all from CTFd....
# -*- coding: utf-8 -*- """ twython.endpoints ~~~~~~~~~~~~~~~~~ This module provides a mixin for a :class:`Twython <Twython>` instance. Parameters that need to be embedded in the API url just need to be passed as a keyword argument. e.g. Twython.retweet(id=12345) Official documentation for Twitter API endpoints can...
import collections __version__ = "0.1.0" class StataVarVals(): """A class for intermediate values when calculating with data variables within a Dta object or in Stata. Variables themselves are referenced through an instance of StataVariable. This class is meant for internal use. Exam...
#!python # -*- coding: utf-8 -*- """ Core Haystack Session client object interface. This file defines an abstract interface for Project Haystack clients and is responsible for opening and maintaining a session with the server. """ import logging import hszinc import weakref from threading import Lock from six import ...
''' "network": [ { "index": 0, "ipv4_gateway": "", "name": "", "veth_pair": "", "mtu": "", "ipv6_gateway": "", "flags": "up", ...
'''Radiotap''' import dpkt # Ref: http://www.radiotap.org # Fields Ref: http://www.radiotap.org/defined-fields/all # Present flags _TSFT_MASK = 0x1000000 _FLAGS_MASK = 0x2000000 _RATE_MASK = 0x4000000 _CHANNEL_MASK = 0x8000000 _FHSS_MASK = 0x10000000 _ANT_SIG_MASK ...
import json import subprocess import hashlib import os.path import shlex import gevent from django.db import models from django_mysql.models import JSONField, Model from django.core.mail import send_mail from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.base_user import AbstractBaseUser f...
# # 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...
""" The :mod:`sklearn.feature_extraction.image` submodule gathers utilities to extract features from images. """ # Authors: Emmanuelle Gouillart <[email protected]> # Gael Varoquaux <[email protected]> # Olivier Grisel # Vlad Niculae # License: BSD from itertoo...
#!/usr/bin/env python ## Copyright 2012, En7788.com, Inc. All rights reserved. ## ## FormUI is a easy used GUI framwork for python, which is based on wxpython. ## FormUI is a free software: you can redistribute it and/or modify it under ## the terms of version 3 of the GNU Lesser General Public License as ## published ...
try: paraview.simple except: from paraview.simple import * def RequestDataDescription(datadescription): "Callback to populate the request for current timestep" if datadescription.GetForceOutput() == True: for i in range(datadescription.GetNumberOfInputDescriptions()): datadescription.GetIn...
""" Apple Quicktime Movie (file extension ".mov") parser. Documents: - Parsing and Writing QuickTime Files in Java (by Chris Adamson, 02/19/2003) http://www.onjava.com/pub/a/onjava/2003/02/19/qt_file_format.html - QuickTime File Format (official technical reference) http://developer.apple.com/documentation/QuickTi...
""" A generic comment-moderation system which allows configuration of moderation options on a per-model basis. To use, do two things: 1. Create or import a subclass of ``CommentModerator`` defining the options you want. 2. Import ``moderator`` from this module and register one or more models, passing the model...
#!/usr/bin/env python3 # # 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 "L...
from objc import selector from objc import python_method from Foundation import NSObject from AppKit import NSAlert, NSSavePanel, NSOpenPanel, NSAlertStyleCritical, NSAlertStyleInformational, NSAlertStyleWarning, NSAlertFirstButtonReturn, NSAlertSecondButtonReturn, NSAlertThirdButtonReturn, NSOKButton, NSURL, NSImage ...
# Copyright 2018 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 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. # pylint: disable=W0401,W0614 from telemetry.page.actions.all_page_actions import * from telemetry.page import page as page_module from telemetry.page import ...
import copy import importlib import json import logging import os from trellio.services import TCPService, HTTPService from ..utils.log_handlers import BufferingSMTPHandler logger = logging.getLogger(__name__) GLOBAL_CONFIG = { "RONIN": False, "HOST_NAME": "", "ADMIN_EMAILS": [], "SERVICE_NAME": "", ...
""" =============================== Module provider for ValueDomain =============================== Value-Domain API ================ Reference: https://www.value-domain.com/vdapi/ - Preparation 1. Get your auth token: https://www.value-domain.com/vdapi/ 2. export LEXICON_VALUEDOMAIN_AUTH_TOKEN="<Your Auth Token>"...
import sys import logging import html2text from django.utils.safestring import mark_safe from google_analytics_reporter.tracking import Event from squeezemail.renderer import renderer PY3 = sys.version_info > (3, 0) import re if PY3: from urllib.parse import urlparse, urlencode, urlunparse, parse_qsl else: f...
# # 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 n...
from jsonrpc import ServiceProxy import sys import string import getpass # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:51473") ...
""" Copyright (c) 2015 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from __future__ import unicode_literals, absolute_import import pytest import atomic_reactor.util import docker.errors from atomic_reactor.b...
#!/usr/bin/env python # # Execute with sudo python defendARP.py # # import time import sys import socket import os import re import time import logging import subprocess from optparse import OptionParser ############################################################### ##################### MAIN DEFENSE LOGIC ########...
# Copyright (c) 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...
# Copyright 2013 Hewlett-Packard Development Company, L.P. # 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...
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright 2013 Kitware 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 cop...
# Copyright 2015 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 law or agreed to in writing...
# Copyright (c) 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/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
''' Common functions used throughout this cookbook's codebase. ''' import ast import collections import logging import os import sys from datetime import datetime, timedelta from time import sleep import boto from boto.ec2.autoscale import Tag from boto.exception import BotoServerError verbose = False # keeping the ...
"""Representation of Z-Wave binary sensors.""" from __future__ import annotations from dataclasses import dataclass import logging from zwave_js_server.client import Client as ZwaveClient from zwave_js_server.const import CommandClass from zwave_js_server.const.command_class.lock import DOOR_STATUS_PROPERTY from zwav...
""" python-pcre Copyright (c) 2012-2015, Arkadiusz Wahlig 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 ...
import menusystem import unittest import os import sys import time from subprocess import check_output from subprocess import CalledProcessError import ClydeLog import ClydeUnitTest import TestRig RIG_PORT = ['/dev/ttyACM0', '/dev/ttyACM1'] testid = 0 # Handler functions def run_test_session(names, board): print...
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license # Copyright (C) 2001-2017 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permis...
from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import MetaData from sqlalchemy import String from sqlalchemy import testing from sqlalchemy.ext.orderinglist import ordering_list from sqlalchemy.orm import clear_mappers from sqlalchemy.orm import relationship from sqlalchemy.testing imp...
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. OpenAPI spec version: v2.1 Contact: [email protected] Generated by: https://github.com/swagger-api/swagger-codegen.git """ from p...
import pytest import numpy as np import scipy.sparse as sp import scipy.sparse.linalg as splin from numpy.testing import assert_allclose try: import sparse except ImportError: sparse = None pytestmark = pytest.mark.skipif(sparse is None, reason="pydata/sparse not installed") ...