code
stringlengths
1
199k
import hashlib import os from typing import Dict from loguru import logger DEFAULT_SALT = "DEFAULT_LANDMARKERIO_SALT" APP_SALT = os.getenv("LANDMARKERIO_SALT", DEFAULT_SALT) class _MISSING: pass MISSING = _MISSING() def hash_password(salt: str, password: str) -> str: salted = password + salt return hashlib....
from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Puzzle', fields=[ ('id',...
from __future__ import absolute_import import dateutil.parser import six from django.db import IntegrityError, transaction from django.utils import timezone from rest_framework.response import Response from sentry import analytics from sentry.api.serializers import serialize from sentry.constants import ObjectStatus fr...
ID_TYPES = ["sa_id", "passport", "none"] PASSPORT_ORIGINS = [ "na", "bw", "mz", "sz", "ls", "cu", "zw", "mw", "ng", "cd", "so", "other", ] LANGUAGES = [ "zul_ZA", # isiZulu "xho_ZA", # isiXhosa "afr_ZA", # Afrikaans "eng_ZA", # English "nso_ZA", #...
from eukalypse_brew import Github import unittest class MyGithubTest(unittest.TestCase): def setUp(self): self.github = Github("kinkerl", "eukalypse_now") def test_check_readme(self): self.github.check_readme()
VERSION = (0, 5, 0, "f", 0) # following PEP 386 DEV_N = 1 # for PyPi releases, set this to None def get_version(short=False): version = "%s.%s" % (VERSION[0], VERSION[1]) if short: return version if VERSION[2]: version = "%s.%s" % (version, VERSION[2]) if VERSION[3] != "f": versi...
from __future__ import unicode_literals from ..preprocess import ReplaceFSwithFIRST def test_ReplaceFSwithFIRST_inputs(): input_map = dict(args=dict(argstr='%s', ), environ=dict(nohash=True, usedefault=True, ), ignore_exception=dict(nohash=True, usedefault=True, ), in_config=dict(arg...
from __future__ import absolute_import import unittest from .estestcase import ESTestCase from pyes.es import json from pyes.query import * from pyes.filters import TermFilter, ANDFilter, ORFilter, RangeFilter, RawFilter, IdsFilter, MatchAllFilter, NotFilter from pyes.utils import ESRangeOp class QuerySearchTestCase(ES...
import sys contents = open(sys.argv[1], 'r').read() open(sys.argv[2], 'wb').write(contents) sys.exit(0)
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0009_user_email_notifications'), ] operations = [ migrations.AddField( model_name='user', name='display_email', ...
from __future__ import absolute_import, unicode_literals import datetime import pickle from django.conf import settings from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.core import management from django.db import connections, router, DEFAULT_DB_ALIAS fr...
import praw # simple interface to the reddit API, also handles rate limiting of requests import time import sqlite3 '''USER CONFIGURATION''' APP_ID = "" APP_SECRET = "" APP_URI = "" APP_REFRESH = "" USERAGENT = "" SUBREDDIT = "GoldTesting" RESPONSE = "I have detected some mobile links in your comment. Here are the non-...
from django.conf import settings import os import os.path def pytest_configure(config): if not settings.configured: os.environ['DJANGO_SETTINGS_MODULE'] = 'mailme.conf.test' test_db = os.environ.get('DB', 'sqlite') if test_db == 'mysql': settings.DATABASES['default'].update({ 'EN...
from django.conf.urls import url from pages.testproj.documents.views import document_view urlpatterns = [ url(r'^doc-(?P<document_id>[0-9]+)$', document_view, name='document_details'), url(r'^$', document_view, name='document_root'), ]
""" Plot class. $Id$ """ __version__='$Revision$' import copy import numpy from numpy.oldnumeric import zeros, ones, Float, divide from math import sin, cos import param from topo.base.sheetcoords import SheetCoordinateSystem,Slice from bitmap import HSVBitmap, RGBBitmap, Bitmap, DrawBitmap class Plot(param.Parameteriz...
'''Examples OLS Note: uncomment plt.show() to display graphs ''' import numpy as np import scikits.statsmodels as sm import matplotlib.pyplot as plt from scikits.statsmodels.sandbox.regression.predstd import wls_prediction_std np.random.seed(9876789) nsample = 50 sig = 0.5 x1 = np.linspace(0, 20, nsample) X = np.c_[x1,...
__author__ = 'Pabitra' from unittest import TestCase from hs_core.hydroshare import resource, get_resource_by_shortkey from hs_core.hydroshare import users from hs_core import hydroshare from hs_core.models import GenericResource from django.contrib.auth.models import User, Group import datetime as dt class TestUpdateR...
from __future__ import absolute_import from . import html5, recaptcha, files from .forms import Form
"""`Singleton` provider full resetting example.""" from dependency_injector import containers, providers class Database: ... class UserService: def __init__(self, db: Database): self.db = db class Container(containers.DeclarativeContainer): database = providers.Singleton(Database) user_service =...
''' Copyright 2011-2015 ramusus 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 dist...
"""Updates MappedEditingCommands enum in histograms.xml file with values read from EditorCommand.cpp. If the file was pretty-printed, the updated version is pretty-printed too. """ from __future__ import print_function import logging import os import re import sys from xml.dom import minidom sys.path.append(os.path.jo...
import nbformat import unittest from mock import call, patch from . import get_notebook_path from ..log import logger from ..engines import NotebookExecutionManager from ..clientwrap import PapermillNotebookClient class TestPapermillClientWrapper(unittest.TestCase): def setUp(self): self.nb = nbformat.read(...
from __future__ import absolute_import from stat159lambda.simulations import correlation_simulation from stat159lambda.config import REPO_HOME_PATH import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from numpy.testing import assert_array_equal import unittest import imp try: from mock import pa...
import string import traceback import sys def sysTrace(): if sys.exc_info()[0] != None: exc_type = str(sys.exc_info()[0]).split('.', 1)[1] return "%s%s: %s\n"%(' '.join(traceback.format_tb(sys.exc_info()[2])), exc_type, sys.exc_info()[1] ) else: return "None"...
from sys import argv from subprocess import call if len( argv ) != 2: print "Format: RunAnalyse.py {input.csv}" fname = argv[ 1 ].split( '.' ) fname, fext = fname[ 0 ], fname[ 1 ] fcsv = fname + ".csv" fjson = fname + ".json" ftri = fname + "Tri.json" fobj = fname + ".obj" if fext == ".csv": print "Running CSV ...
from django.conf import settings import lfs.core.signals from lfs.order.models import Order from lfs.order.settings import PAID, PAYMENT_FAILED, PAYMENT_FLAGGED from lfs.mail import utils as mail_utils from models import PayPalOrderTransaction import logging from paypal.standard.ipn.signals import payment_was_successfu...
from __future__ import unicode_literals from django.db.utils import DatabaseError from django.utils.encoding import python_2_unicode_compatible class AmbiguityError(Exception): """ Raised when more than one migration matches a name prefix. """ pass class BadMigrationError(Exception): """ Raised ...
"""Restricted Boltzmann Machine """ import time import numpy as np import scipy.sparse as sp from scipy.special import expit # logistic function from ..base import BaseEstimator from ..base import TransformerMixin from ..utils import check_array from ..utils import check_random_state from ..utils import gen_even_slice...
import numpy as np import numpy.testing as npt import pandas as pd from statsmodels.tsa.base.datetools import _freq_to_pandas from statsmodels.tsa.base.tsa_model import TimeSeriesModel from statsmodels.tools.testing import assert_equal, assert_raises def test_pandas_nodates_index(): data = [988, 819, 964] dates...
from bokeh.io import output_file, show from bokeh.models import ColumnDataSource from bokeh.plotting import figure from bokeh.sampledata.periodic_table import elements from bokeh.transform import dodge, factor_cmap output_file("periodic.html") periods = ["I", "II", "III", "IV", "V", "VI", "VII"] groups = [str(x) for x ...
from __future__ import absolute_import from traits.interface_checker import *
from rdfconverters import util import argparse import os from rdflib import Graph def main(): types = ['n3', 'xml', 'nt'] parser = argparse.ArgumentParser( description='Utility to merge all RDF graphs in a directory into one file') parser.add_argument('-f', '--format', choices=types, default='n3', h...
from bslint import constants as const from bslint.messages import handler as msg_handler from bslint.lexer import commands as commands from bslint.lexer.token import Token class StylingHandler: # pylint: disable=too-many-instance-attributes def __init__(self, lexer, characters): self._lexer = lexer ...
from datetime import datetime from pyvac.models import (create_engine, dispose_engine, DBSession, Group, User, Request, VacationType, Countries, Sudoer, ) from pyvac.bin.install import populate from .conf import settings def setUpModule(): ...
""" * ******************************************************* * Copyright (c) VMware, Inc. 2018. All Rights Reserved. * SPDX-License-Identifier: MIT * ******************************************************* * * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER O...
from swgpy.object import * def create(kernel): result = Ship() result.template = "object/ship/player/shared_player_yt1300_decorated_01.iff" result.attribute_template_id = -1 result.stfName("space_ship","player_yt1300") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return result
A, B, C = map(int, input().split()) ans = B ans += min(A + B + 1, C) print(ans)
''' Created on Feb 20, 2013 @author: Maribel Acosta @author: Andriy Rodchenko ''' class Sentence(object): ''' classdocs ''' def __init__(self): self.hash_value = '' # The hash value of the sentence. self.value = '' # The sentence (simple text). self.splitted = [] # L...
import sys import pickle from products import product_features MAXENT = 'products_maxent.pickle' BAYES = 'products_bayes.pickle' if __name__ == '__main__': product = product_features({ 'name': sys.argv[1], 'description': sys.argv[2], }) with open(MAXENT, 'r') as f: classifier = pick...
from datetime import datetime, timedelta import pytest from indico.modules.rb.models.reservations import RepeatFrequency pytest_plugins = 'indico.modules.rb.testing.fixtures' def test_bookings_are_split_on_time_changes(create_reservation): from indico.modules.rb.operations.bookings import should_split_booking s...
"""This module implements a string formatter based on the standard PEP 292 string.Template class extended with function calls. Variables, as with string.Template, are indicated with $ and functions are delimited with %. This module assumes that everything is Unicode: the template and the substitution values. Bytestring...
from dispel4py.core import GenericPE, NAME from dispel4py.seismo.seismo import * import os,sys,traceback from obspy.core import trace,stream from obspy.core import Trace,Stream import numpy import exceptions from lxml import etree from StringIO import StringIO class Specfem3d2Stream(IterativePE): def num(self,s): ...
import itertools class Solution: # @param num, a list of integer # @return a list of lists of integer def subsetsWithDup(self, S): all_subsets = list() for i in range(len(S) + 1): for sub in itertools.combinations(S, i): all_subsets.append(sorted(list(sub))) ...
from setuptools import setup, find_packages setup( # Project Details name='lifx-sdk', version='0.6', packages=['lifx'], # Dependencies install_requires=[ 'bitstruct==1.0.0', ], # Tests test_suite="nose.collector", tests_require = [ 'nose', ], # Metadata fo...
import os from nose.core import TestProgram os.chdir(os.path.abspath(os.path.dirname(__file__))) TestProgram()
from __future__ import unicode_literals from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [("content", "0026_contentnode_options")] operations = [ migrations.AddField( model_name="channelmetadata", name="tagline", ...
from django.contrib import admin from django.conf import settings from django.conf.urls import include from django.conf.urls.static import static from django.views import defaults as default_views from django.urls import path urlpatterns = [ # Django Admin path('admin/', admin.site.urls), # User Account ...
from cloudmanager import migrations def test_migrations(): assert migrations.path()
from PIL import Image from os.path import basename class Sprite(object): '''A reference of a sprite, with all the information needed for the packing algorithm, i.e. without any actual image data, just the size.''' def __init__(self, file_path): self.file_path = file_path self.image = Image.o...
import rospy import mongodb_store_msgs.srv as dc_srv import mongodb_store.util as dc_util from mongodb_store.message_store import MessageStoreProxy from strands_executive_msgs.msg import Task, TaskEvent from datetime import datetime from task_executor import task_routine, task_query from task_executor.utils import rost...
__author__ = 'Guido Krömer' __license__ = 'MIT' __version__ = '0.1' __email__ = 'mail 64 cacodaemon 46 de' from .AbstractHandler import AbstractHandler from .AbstractOnRequest import AbstractOnRequest from .Request import Request from .Response import Response from .HttpServer import HttpServer
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
from src.grammar import Grammar from src.LR0Parser import LR0Parser from src.util import Util FILE_PATH = "src/step1/" def test_sequences(): try: parser = LR0Parser(Grammar.from_lines(Util.get_lines_filename(FILE_PATH + "grLR0.txt"), False)) assert parser.parse('aaaacc') assert not parser.pa...
'''Test that spurious 'extra_labels' aren't created when initializing NER.''' import pytest from ... import blank @pytest.mark.xfail def test_issue2179(): nlp = blank('it') ner = nlp.create_pipe('ner') ner.add_label('CITIZENSHIP') nlp.add_pipe(ner) nlp.begin_training() nlp2 = blank('it') nlp...
from game import Game Game()
from django.conf import settings from django.contrib import admin from django.views.static import serve from django.urls import include, path urlpatterns = [ path(r'accounts/', include('allauth.urls')), path(r'', include('臺灣言語平臺.網址')), path(r'影音檔案/(<str:path>.*)', serve, { 'document_root': settings....
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import sys if sys.version_info.major == 2: from contextlib import nested else: from fabric.context_managers import nested
from swgpy.object import * def create(kernel): result = Weapon() result.template = "object/weapon/melee/polearm/crafted_saber/shared_sword_lightsaber_polearm_gen5.iff" result.attribute_template_id = 10 result.stfName("weapon_name","lance_lightsaber_gen5") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS ###...
from git import * from MainWindow import *
import zipfile import os import hashlib import json from os import path try: from urlparse import urlparse str_cls = unicode from cStringIO import StringIO as BytesIO package_control_dir = os.getcwd() except (ImportError) as e: from urllib.parse import urlparse str_cls = str from io import B...
class Parms(object): def checker_config(self): return {'sec_type':'test'} def group_config(self): return lambda name: [name] def get_group_access_rights(self): return self.queue_rights def queue_rights(self, groups, queue): #Simple access rights test. #Admin group automat...
"""Test normalization of input.""" import numpy as np import deepchem as dc from deepchem.metrics import to_one_hot from deepchem.metrics import from_one_hot from deepchem.metrics import threshold_predictions from deepchem.metrics import handle_classification_mode from deepchem.metrics import normalize_prediction_shape...
from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/mission/quest_item/shared_vordin_sildor_q3_needed.iff" result.attribute_template_id = -1 result.stfName("loot_rori_n","vordin_sildor_q3_needed") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return...
""" homeassistant.components.media_player.denon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Provides an interface to Samsung TV with a Laninterface. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/media_player.samsungtv/ """ import logging import socket fr...
import functools import operator import numpy import six import chainer from chainer.backends import cuda from chainer import function_node from chainer.functions.pooling import average_pooling_nd_kernel from chainer.functions.pooling import pooling_nd from chainer.utils import conv from chainer.utils import conv_nd im...
from datetime import date from flask import request from wtforms import (DateField, Form, SelectField, SubmitField, TextAreaField, validators) from backend.models import Course class RoundForm(Form): cancel = SubmitField('cancel') delete = SubmitField('delete') date = DateField('date', ...
import sys, os extensions = [] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' project = u'TwitalBundle' copyright = u'2014, Asmir Mustafic' version = '1.0' release = '1.0-alpha' exclude_patterns = [] pygments_style = 'sphinx' html_theme = "sphinx_rtd_theme" html_theme_path = ['_theme'] html...
from swgpy.object import * def create(kernel): result = Static() result.template = "object/static/item/shared_wp_mle_2h_sword_lightsaber_s01.iff" result.attribute_template_id = -1 result.stfName("obj_n","unknown_object") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return result
__author__ = 'cbin'
import os import glob import numpy as np import matplotlib.pyplot as plt from astropy.io import fits from matplotlib.ticker import FuncFormatter files = glob.glob('/home/prabhu/sunrise_holly/normalize_mu_output/*.fits') for el in files: res = fits.open(el) res = res[0].data ...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from alembic import op revision = 'b0f8a397edad' down_revision = u'7518ba857fea' branch_labels = None depends_on = None def upgrade(): op.create_primary_key('pfizer_pk...
from __future__ import absolute_import, print_function import textwrap class OptionDescriptor(object): @property def dataname(self): return "_" + self.name def __get__(self, instance, owner): if instance is None: return self return getattr(instance, self.dataname, self.de...
from contracts import ContractNotRespected from synthetic import DuplicateMemberNameError, \ NamingConventionCamelCase, NamingConventionUnderscore, \ synthesizeMember, synthesize_member, \ namingConvention, naming_convention import contracts import unitt...
""" Written by Daniel M. Aukes and CONTRIBUTORS Email: danaukes<at>asu.edu. Please see LICENSE for full license. """ import qt.QtCore as qc import qt.QtGui as qg from popupcad.filetypes.laminate import Laminate from popupcad.filetypes.operation2 import Operation2 from popupcad.widgets.listmanager import SketchListManag...
from __future__ import unicode_literals import os import re from bs4 import BeautifulSoup from django.core.files import File as DjangoFile from django.http import QueryDict from filer.models.foldermodels import Folder from filer.models.imagemodels import Image from cms.api import add_plugin from cms.utils.plugins impor...
from __future__ import unicode_literals, absolute_import from webtest import AppError, TestApp import django from django_webtest import WebTest from django.contrib.auth.models import User from django.core.urlresolvers import reverse class MethodsTest(WebTest): csrf_checks = False def assertMethodWorks(self, met...
from .base import * CONFIG_FILE_IN_USE = get_file_name_only(__file__) # Custom setting UWSGI_PORT = 9001 HTTP_PORT = 80 HTTPS_PORT = 443 HTTPS_ENABLED = True DEBUG = False SECRET_KEY_FILE = os.path.join(CONF_DIR, 'secret', 'secretkey.txt') try: with open(SECRET_KEY_FILE, 'r') as f: SECRET_KEY = f.read().strip() ...
from numpy import * from numpy.linalg import det from matplotlib.pyplot import * from matplotlib import gridspec import h5py as hdf import sys sys.path.insert(0, 'IMPORTANT/WaveBlocksND/src/WaveBlocksND') from Plot import stemcf F = hdf.File("harmonic_2D.hdf5", "r") dt = 0.01 T = 12 time = linspace(0, T, T/dt+1) f = la...
import argparse import os import glob import math import random import logging import setupam.corpus import setupam.speaker def setup_log(log_level): numeric_level = getattr(logging, log_level.upper(), None) if not isinstance(numeric_level, int): raise ValueError('Invalid log level: {}'.format(log_level...
import numpy as np from ase.atoms import Atoms from ase.calculators.singlepoint import SinglePointDFTCalculator from ase.calculators.singlepoint import SinglePointKPoint def read_gpaw_text(fileobj, index=-1): if isinstance(fileobj, str): fileobj = open(fileobj, 'rU') notfound = [] def index_startswi...
import os,subprocess, sys def test_bin_scripts(): (current_dir,_) = os.path.split(os.path.realpath(__file__)) bin_dir = os.path.join(current_dir, "../bin/") for file in os.listdir(bin_dir): yield check_for_help, os.path.join(bin_dir, file) def check_for_help(file): if hasattr(sys, 'real_prefix')...
import cadquery as cq from Helpers import show from cq_base_model import PartBase from cq_base_parameters import PinStyle, CaseType class dip_smd_switch_lowprofile (PartBase): default_model = "DIP-12_SMD" def __init__(self, params): PartBase.__init__(self, params) self.make_me = params.type == C...
""" EasyBuild support for installing MATLAB, implemented as an easyblock @author: Stijn De Weirdt (Ghent University) @author: Dries Verdegem (Ghent University) @author: Kenneth Hoste (Ghent University) @author: Pieter De Baets (Ghent University) @author: Jens Timmerman (Ghent University) @author: Fotis Georgatos (Uni.L...
''' Exodus Add-on Copyright (C) 2016 Exodus 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 later version. This pro...
__author__ = 'wachs' import sys from ctypes import * import networkx as nx from networkx.algorithms import * import community import matplotlib.pyplot as plt class Header(Structure): _fields_ = [('description', c_char * 200), ('num_nodes', c_uint), ('num_edges', c_uint)] class Node(S...
import mathutils vec = mathutils.Vector((0.0, 0.0, 1.0)) vec_a = vec.normalized() vec_b = mathutils.Vector((0.0, 1.0, 2.0)) vec2d = mathutils.Vector((1.0, 2.0)) vec3d = mathutils.Vector((1.0, 0.0, 0.0)) vec4d = vec_a.to_4d() quat = mathutils.Quaternion() matrix = mathutils.Matrix() vec_a == vec_b vec_a != vec_b vec_a >...
from fcntl import ioctl from struct import pack, unpack from Components.config import config from boxbranding import getBoxType, getBrandOEM def getFPVersion(): ret = None try: if getBrandOEM() == "blackbox": file = open("/proc/stb/info/micomver", "r") ret = file.readline().strip() file.close() elif getB...
from __future__ import division from __future__ import unicode_literals from builtins import str from builtins import range import numpy as np from itertools import product import zipfile def read_imagej_roi_zip(filename): """Reads an ImageJ ROI zip set and parses each ROI individually Parameters ----------...
class RegularExpressionException(Exception): def _get_message(self): return self._message def _set_message(self, message): self._message message = property(_get_message, _set_message) def __init__(self, InfoStr): self._message = InfoStr def __repr__(self): txt = "QuexException:\n" ...
from pyanaconda.i18n import _ import logging log = logging.getLogger("anaconda") from contextlib import contextmanager from pyanaconda.queuefactory import QueueFactory progressQ = QueueFactory("progress") progressQ.addMessage("init", 1) # num_steps progressQ.addMessage("step", 0) progressQ.addMessage("messa...
r"""plistlib.py -- a tool to generate and parse MacOSX .plist files. The property list (.plist) file format is a simple XML pickle supporting basic object types, like dictionaries, lists, numbers and strings. Usually the top level object is a dictionary. To write out a plist file, use the dump(value, file) function. 'v...
from .controller import site_lab_profiles from .lab_profile import LabProfile from .named_tuples import ProfileTuple, ProfileItemTuple
""" *************************************************************************** RAlgorithm.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com *****************************************************...
""" Copyright (C) 2014-2020 OSMC (KodeKarnage) This file is part of service.osmc.settings SPDX-License-Identifier: GPL-2.0-or-later See LICENSES/GPL-2.0-or-later for more information. """ import os import xbmcgui from osmcsettings import service_entry from osmccommon.osmc_logging import StandardLogger A...
import time import numpy import array import math import logging import threading from ctypes import sizeof from pyglet.gl import glPushMatrix, glPopMatrix, glTranslatef, \ glGenLists, glNewList, GL_COMPILE, glEndList, glCallList, \ GL_ELEMENT_ARRAY_BUFFER, GL_UNSIGNED_INT, GL_TRIANGLES, GL_LINE_LOOP, \ GL_...
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import sys import os sys.path.insert(0, os.path.join('ansible', 'lib')) sys.path.insert(0, os.path.abspath(os.path.join('..', '..', '..', 'lib'))) VERSION = 'devel' AUTHOR = 'Ansible, Inc' extensions = [ 'sphinx.ext.autodoc', ...
""" Copyright 2008, 2009, 2011 Free Software Foundation, Inc. This file is part of GNU Radio GNU Radio Companion is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option)...
""" SystemLoggingReportHandler allows a remote system to access the contest of the SystemLoggingDB The following methods are available in the Service interface getTopErrors() getGroups() getSites() getSystems() getSubSystems() getFixedTextStrings() getCountMessages() getGroupedMessag...
topics = { 'arn:aws:sns:us-east-1::dynamodb' : 'qa', 'arn:aws:sns:us-east-1::demo-dynamodb' : 'demo', 'arn:aws:sns:us-east-1::staging-dynamodb' : 'staging', 'arn:aws:sns:us-east-1::dynamodb-throttledRequests' : 'prod', 'arn:aws:sns:eu-west-1::dynamod...
class UploadException(Exception): def __init__(self, value): ''' Custom Constructor ''' self.parameter = value def __str__(self): ''' String message ''' return repr(self.parameter)