text
stringlengths
12
6.59M
import sys import os import shutil import unittest import tarfile from test import test_support # Check for our compression modules. try: import gzip except ImportError: gzip = None try: import bz2 except ImportError: bz2 = None def path(path): return test_support.findfile(path) testtar = path(...
''' Support for Apache ''' import re import salt.utils __outputter__ = { 'signal': 'txt', } def __virtual__(): ''' Only load the module if apache is installed ''' cmd = __detect_os() if salt.utils.which(cmd): return 'apache' return False def __detect_os(): ''' Apache co...
from django.db import transaction from django.conf import settings from django.contrib import admin from django.contrib.auth.models import User, Group from django.contrib.auth.admin import UserAdmin from django.utils.decorators import method_decorator from django.utils.translation import ugettext_lazy as _ from django....
# 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...
""" Map is a generic Map class from which all other Map classes inherit from. """ from __future__ import absolute_import #pylint: disable=E1101,E1121,W0404,W0613 __authors__ = ["Russell Hewett, Stuart Mumford, Keith Hughitt, Steven Christe"] __email__ = "stuart@mumford.me.uk" import os from copy import copy import wa...
# -*- coding: utf-8 -*- from contextlib import contextmanager from datetime import datetime, timedelta from functools import wraps from itertools import chain, imap, islice, izip from urlparse import urlparse from xml.sax import saxutils import base64 import cPickle as pickle import gettext import hashlib import hmac ...
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
# PYTHON_ARGCOMPLETE_OK import argparse import os import logging import ast import mpmath from sympy import (nsolve, symbols, Mul, Add, chebyshevt, exp, simplify, chebyshevt_root, Tuple, diff, N, solve, Poly, lambdify, sign, fraction, sympify, Float, srepr) from sympy.utilities.decorator import conserve_mpmat...
"""Unit tests for socket timeout feature.""" import unittest from test import test_support # This requires the 'network' resource as given on the regrtest command line. skip_expected = not test_support.is_resource_enabled('network') import time import socket class CreationTestCase(unittest.TestCase): """Test c...
# PYTHON_ARGCOMPLETE_OK import argparse import os import logging import ast import mpmath from sympy import (nsolve, symbols, Mul, Add, chebyshevt, exp, simplify, chebyshevt_root, Tuple, diff, N, solve, Poly, lambdify, sign, fraction, sympify, Float) from sympy.utilities.decorator import conserve_mpmath_dps ...
# 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...
""" Map is a generic Map class from which all other Map classes inherit from. """ from __future__ import absolute_import #pylint: disable=E1101,E1121,W0404,W0613 __authors__ = ["Russell Hewett, Stuart Mumford, Keith Hughitt, Steven Christe"] __email__ = "stuart@mumford.me.uk" import os from copy import deepcopy, copy...
from __future__ import absolute_import from __future__ import print_function # built-ins import os import json from os.path import split as split_path, join as join_path from fnmatch import filter as fnfilter import logging import itertools as it import subprocess import tempfile as tmp # libraries import h5py from si...
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
# -*- coding: utf-8 -*- ''' Support for APT (Advanced Packaging Tool) .. note:: For virtual package support, either the ``python-apt`` or ``dctrl-tools`` package must be installed. For repository management, the ``python-apt`` package must be installed. ''' from __future__ import absolute_import # Impor...
from winreg import hives, createKey, openKey, flags, deleteKey, regtypes import sys, traceback import time import array def testHives(): hivenames = ["HKEY_CLASSES_ROOT","HKEY_CURRENT_USER","HKEY_LOCAL_MACHINE", "HKEY_USERS","HKEY_CURRENT_CONFIG"] #, # for hivename in hivenames: hive =...
# 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...
""" .. module:: frames :synopsys: Define all the custom frames .. moduleauthor:: Benjamin Audren <benjamin.audren@gmail.com> """ from __future__ import unicode_literals import os from collections import OrderedDict as od import pypandoc as pa import six # Used to replace the od iteritems from py2 import io import...
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2015 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license import logging imp...
# -*- coding: utf-8 -*- # # Copyright (c) 2020 SUNET # 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 # noti...
#!/usr/bin/env python ####################################################################################### ## TODO: ## - add bulge components ## - use more realistic (COSMOS) distribution of intrinsic ellipticities? ## - add variations over galaxy size parameters (and others?) #######################################...
# Import smorgasbord from __future__ import print_function import pdb import sys import os import copy import dill import re import gc from difflib import SequenceMatcher import multiprocessing as mp import numpy as np import scipy.stats import scipy.interpolate import scipy.optimize import scipy.ndimage import pandas ...
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
# -*- coding: utf-8 -*- ''' Support for APT (Advanced Packaging Tool) .. note:: The ``python-apt`` package is required to be installed. ''' # Import python libs import copy import os import re import logging import urllib2 import json # Import third party libs import yaml # Import salt libs import salt.utils ...
# 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...
#!/usr/bin/env python import pprint import json import time try: import requests except ImportError, e: print "Missing requests module. Install with: sudo pip install requests" print "If you don't have pip, do this first: sudo easy_install pip" exit(2) class spinnaker(): def __init__(self, sp...
import os import random import sys from direct.showbase.ShowBase import ShowBase import panda3d.core as p3d import blenderpanda import nitrogen.bsp p3d.load_prc_file_data( '', 'framebuffer-srgb true\n' ) class Dungeon: def __init__(self, sizex, sizey): models = base.loader.load_model('dungeon.bam...
# -*- coding:utf-8 -*- # # Module to display live images from AVT cameras # # # External dependencies # import ctypes as ct import threading import cv2 import numpy as np import Vimba import Calibration # # Vimba camera viewer # class Viewer( object ) : # # Initialization # def __init__( self, camera ) : ...
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-TODAY OpenERP S.A. <http://www.openerp.com> # # This program is free software: you can redistribute it and/or modify # it under the terms o...
# -*- coding: utf-8 -*- ''' A module for shelling out. Keep in mind that this module is insecure, in that it can give whomever has access to the master root execution access to all salt minions. ''' from __future__ import absolute_import # Import python libs import functools import glob import json import logging imp...
# 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...
#!/usr/bin/env python # Copyright 2015 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 ...
#!/usr/bin/env python # -*- coding: iso-8859-1 -*- import pygame from pygame.locals import * from operator import add, sub, mul, div from math import hypot, atan2, degrees, ceil from time import sleep WIDTH, HEIGHT = 1280, 720 # damn projector SCALE = 32 speed = 60 collcmp = pygame.sprite.collide_mask _images = {} ...
from collections import OrderedDict from copy import deepcopy from numbers import Real, Integral import warnings from xml.etree import ElementTree as ET import sys from six import string_types import numpy as np import scipy.constants as sc from matplotlib import pyplot as plt import openmc import openmc.data import ...
# -*- coding: utf-8 -*- ''' A module for shelling out. Keep in mind that this module is insecure, in that it can give whomever has access to the master root execution access to all salt minions. ''' from __future__ import absolute_import, print_function, unicode_literals # Import python libs import functools import g...
# 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...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may #...
from flask import Flask, request, jsonify from ecgmeasure import ECGMeasure app = Flask(__name__) # probably not the most elegant way of doing this, but should work # more ideal to use something innate to the post to increment the counter request_counter = 0 @app.route("/api/requests") def requests(): return js...
""" Implementation of JSON-RPC via netstrings for Twisted. See http://json-rpc.org/ for specificiation Author: Henrik Thostrup Jensen <htj@nordu.net> Copyright: NORDUnet (2011) """ import json import uuid from zope.interface import implements from twisted.python import log from twisted.internet import reactor, pro...
""" A module for shelling out. Keep in mind that this module is insecure, in that it can give whomever has access to the master root execution access to all salt minions. """ import base64 import fnmatch import functools import glob import logging import os import re import shutil import subprocess import sys import ...
# Copyright (c) 2010-2011 OpenStack, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
# Copyright 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...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may #...
# -*- coding: utf-8 -*- import os import json import logging import pickle import gzip import numpy as np import networkx as nx import six from opensfm import io from opensfm import config from opensfm import context from opensfm import geo logger = logging.getLogger(__name__) class DataSet(object): """Acces...
''' Return config information ''' # Import python libs import re # Set up the default values for all systems DEFAULTS = {'mongo.db': 'salt', 'mongo.host': 'salt', 'mongo.password': '', 'mongo.port': 27017, 'mongo.user': '', 'redis.db': '0', 'redi...
# Copyright (c) 2010 OpenStack, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
# 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...
# vim: tabstop=6 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may #...
# -*- coding: utf-8 -*- ''' Module for handling openstack glance calls. :optdepends: - glanceclient Python adapter :configuration: This module is not usable until the following are specified either in a pillar or in the minion's config file:: keystone.user: admin keystone.password: verybadpass ...
# 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 t...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. """ Dtmf tools """ from collections import deque, OrderedDict from ..marks import event_callback from ..utils import get_...
# 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 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
# -*- coding: utf-8 -*- ''' Return/control aspects of the grains data ''' # Import python libs from __future__ import absolute_import, print_function import os import copy import math import random import logging import operator import collections from functools import reduce # Import 3rd-party libs from salt.utils.o...
# 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...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Main code for evaluating NN's. It can also be called via a parser by running this python module as follows: Usage: eval_nn.py FOLDER LIST CONFIG MODEL eval_nn.py (-h | --help) Arguments: FOLDER Path to the folder where everything gets saved to, e.g. the s...
#!/usr/bin/python -u # # generate python wrappers from the XML API description # functions = {} lxc_functions = {} qemu_functions = {} enums = {} # { enumType: { enumConstant: enumValue } } lxc_enums = {} # { enumType: { enumConstant: enumValue } } qemu_enums = {} # { enumType: { enumConstant: enumValue } } event_ids ...
__author__ = "MaitreyaBuddha" import abc from threading import Thread from PySide.QtCore import Signal, QObject class MAnimator(QObject): __metaclass__ = abc.ABCMeta # Various signals which will be emitted from inside the animate function # in the subclass start_signal = Signal() pause_signal = ...
# 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...
# -*- coding: utf-8 -*- """ Created on Mon Dec 1 14:22:20 2014 @author: micha Essentially a python wrapper for GeNN functionality. """ from string import Template import time import os from . import simulator from .templates import model class Network(object): """ Manage the network in python. """ p...
# 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...
# -*- coding: utf-8 -*- ''' On-demand logging ================= .. versionadded:: Nitrogen The sole purpose of this module is logging messages in the (proxy) minion. It comes very handy when debugging complex Jinja templates, for example: .. code-block:: jinja {%- for var in range(10) %} {%- do salt.log.i...
#!/usr/bin/env python # encoding: utf-8 # # Why is this called 66section.py? # Because "vi" is the roman number 6 and 6 is shorter. I also hope it's a nice tongue twister import os.path from os import listdir from adbhelper import ADB if __name__ == "__main__": adb = ADB() # Walk through filesystem modificat...
# 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...
""" Implementation of the trigsimp algorithm by Fu et al The idea behind the ``fu`` algorithm is to use a sequence of rules, applied in what is heuristically known to be a smart order, to select a simpler expression that is equivalent to the input. There are 15 transform rules (TR0 - TR10, TR10i, TR11 - TR13) in whic...
""" genrel package for GR calculations David Clark, Kai Smith Case Western Reserve University 2014 """ import numpy as np import sympy as sp #returns a rank 3 tensor that represents the symbols #first index corresponds to the upper index def christoffel_symbols(metric, metric_key): symbols = tensor(3) inverse...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
''' Extract the pillar data for this minion ''' # Import third party libs import yaml # Import salt libs import salt.pillar def data(key=''): ''' Returns the pillar derived from the configured pillar source. The pillar source is derived from the file_client option in the minion config CLI Example::...
#!flask/bin/python # Author: Jonathan Ridderstap # A* Pathfinding in Python (3.6) # Please give credit if used #https://vrcfpa5qvi.execute-api.eu-west-2.amazonaws.com/dev from flask import Flask, jsonify, abort, request, make_response, url_for import time import numpy import numpy as np import scipy.io import scipy.io ...
r""" This module contains :py:meth:`~sympy.solvers.ode.dsolve` and different helper functions that it uses. :py:meth:`~sympy.solvers.ode.dsolve` solves ordinary differential equations. See the docstring on the various functions for their uses. Note that partial differential equations support is in ``pde.py``. Note t...
from __future__ import absolute_import, unicode_literals from django import forms from django.core.exceptions import ValidationError from django.conf import settings from .models import Location, Country, Region, City, Street if 'modeltranslation' in settings.INSTALLED_APPS: from modeltranslation.translator impor...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2010 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
# -*- coding: utf-8 -*- ''' Support for YUM .. note:: This module makes heavy use of the **repoquery** utility, from the yum-utils_ package. This package will be installed as a dependency if salt is installed via EPEL. However, if salt has been installed using pip, or a host is being managed using salt...
"""This module implements a class that...""" from __future__ import print_function, unicode_literals import copy import logging from kivy.adapters.dictadapter import DictAdapter from kivy.app import App from kivy.graphics import Color, Line, Rectangle from kivy.properties import ObjectProperty, NumericProperty, Boole...
from __future__ import absolute_import import sys import numpy as np import scipy.interpolate as interpolate import datetime import dateutil import csv import copy from itertools import dropwhile from sunpy.net import hek from sunpy.time import parse_time from sunpy.sun import sun import sunpy.lightcurve __all__ = [...
from jedi import functions, evaluate el = functions.complete()[0] #? ['description'] el.description #? str() el.description scopes, path, dot, like = \ functions.prepare_goto(source, row, column, source_path, True) # has problems with that (sometimes) very deep nesting. #? set() el...
""" This module contains dsolve() and different helper functions that it uses. dsolve() solves ordinary differential equations. See the docstring on the various functions for their uses. Note that partial differential equations support is in pde.py. Note that ode_hint() functions have docstrings describing their vari...
# -*- coding: utf-8 -*- from __future__ import division, print_function __all__ = ["GP"] import warnings import numpy as np from scipy.linalg import LinAlgError from . import kernels from .solvers import TrivialSolver, BasicSolver from .modeling import ModelSet, ConstantModel from .utils import multivariate_gaussia...
# Copyright (c) 2014 by Ecreall under licence AGPL terms # avalaible on http://www.gnu.org/licenses/agpl.html # licence: AGPL # author: Amen Souissi import transaction from pyramid.events import subscriber, ApplicationCreated from pyramid.threadlocal import get_current_registry, get_current_request from pyramid.req...
''' Support for YUM :depends: - yum Python module - rpmUtils Python module ''' # Import python libs import yaml import os import logging # Import third party libs try: import yum import rpmUtils.arch HAS_YUMDEPS = True except (ImportError, AttributeError): HAS_YUMDEPS = False log = log...
from __future__ import absolute_import from __future__ import division import os.path import datetime import csv import copy import socket from itertools import dropwhile import numpy as np from scipy import interpolate from scipy.integrate import trapz from scipy.integrate import cumtrapz import astropy import astro...
#! /usr/bin/env python """\ bundlebuilder.py -- Tools to assemble MacOS X (application) bundles. This module contains two classes to build so called "bundles" for MacOS X. BundleBuilder is a general tool, AppBuilder is a subclass specialized in building application bundles. [Bundle|App]Builder objects are instantiat...
from hamcrest import * from nose.tools import nottest from test.features import BrowserTest class test_create_pages(BrowserTest): @nottest def test_about_page(self): self.browser.visit("http://0.0.0.0:8000/high-volume-services/by-transactions-per-year/descending") assert_that(self.browser.fi...
import time import types import calendar import datetime import functools import synapse.exc as s_exc import synapse.lib.cli as s_cli import synapse.lib.cmd as s_cmd import synapse.lib.time as s_time import synapse.lib.grammar as s_grammar StatHelp = ''' Gives detailed information about a single cron job. Syntax: ...
import argparse from mutagen import mp3,mp4 def get_file(filename): extension = filename[filename.rfind('.'):len(filename)] if extension == '.mp3': return mp3.MP3(filename), 'mp3' if extension == '.mp4' or extension == '.m4a': return mp4.MP4(filename), 'mp4' def get_album_title(file, type): if ...
# -*- coding: utf-8 -*- ''' Package support for openSUSE via the zypper package manager :depends: - ``rpm`` Python module. Install with ``zypper install rpm-python`` .. important:: If you feel that Salt should be using this module to manage packages on a minion, and it is using a different module (or gives a...
from __future__ import absolute_import from __future__ import division import os.path import datetime from warnings import warn import copy import csv import urllib import calendar import sqlite3 import numpy as np from astropy.io import fits import pandas from sunpy.time import parse_time from sunpy import config f...
import ConfigParser import os import netifaces as ni class MalcomSetup(dict): """Configuraiton loader""" def __init__(self): super(MalcomSetup, self).__init__() def save_config(): raise NotImplemented def load_config(self, args): self.parse_command_line(args) self.san...
#!/usr/bin/env python ''' -------------------------------------------------------------------------------- Author: Jesse A. Rogerson, jesserogerson.com, rogerson@yorku.ca Additional Credits: Catherine J. Grier Patrick B. Hall, Daniel E. Vandenberk This code calculates the BALnic...
version = '1.5.6' revision = ' beta' milestone = 'Yoitsu' release_number = '66' projectURL = 'https://syncplay.pl/'
#!/usr/bin/env python3 # Copyright (c) 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 addrman functionality""" import os import struct from test_framework.messages import ser_uint256, has...
# -*- coding: utf-8 -*- ''' Package support for openSUSE via the zypper package manager :depends: - ``rpm`` Python module. Install with ``zypper install rpm-python`` .. important:: If you feel that Salt should be using this module to manage packages on a minion, and it is using a different module (or gives a...
""" The ggame :class:`App` class encapsulates functionality required for initiating a graphics window in the browser, executing code using Javascript animate, routing browser UI events (e.g. mouse and keyboard input) to user Python code, and managing graphics elements (instances of :class:`Sprite`, for example). """ #...
from __future__ import absolute_import """ JPEG 2000 File Reader """ __author__ = "Keith Hughitt" __email__ = "keith.hughitt@nasa.gov" import os import subprocess import tempfile from matplotlib.image import imread from xml.dom.minidom import parseString def read(filepath): """Reads in the file at the specified l...
# coding:utf8 from syncplay import constants en = { "LANGUAGE" : "English", # Client notifications "config-cleared-notification" : "Settings cleared. Changes will be saved when you store a valid configuration.", "relative-config-notification" : u"Loaded relative configuration file(s): {...
#!/usr/bin/env python # coding=utf-8 # code by kbdancer@92ez.com import requests from hashlib import sha1 import random import time import json import sys import re reload(sys) sys.setdefaultencoding('utf8') def get_router_token(host): home_request = requests.get('http://' + host + '/cgi-bin/luci/web/home') ...
# -*- coding: utf-8 -*- ''' Package support for openSUSE via the zypper package manager :depends: - ``rpm`` Python module. Install with ``zypper install rpm-python`` .. important:: If you feel that Salt should be using this module to manage packages on a minion, and it is using a different module (or gives a...
#!/usr/bin/env python #--- selection of import based on the package --- ''' 1. with python3-serial''' import serial ''' 2. without python3-serial''' #from dummySerial import CDummySerial #serial = CDummySerial() #----------------- ''' v0.12 2016 Mar. 7 - impl proc_storage() to show storage usage v0.11 2016 Mar. 7 ...
#!/usr/bin/python # # Copyright (C) 2010 Google Inc. # # 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 2 of the License, or # (at your option) any later version. # # This program...
""" Active region object definition. This object holds all the important information about our synthesized active region. """ import os import sys import logging import datetime import pickle import glob import functools import numpy as np from scipy.interpolate import interp1d import matplotlib.pyplot as plt import s...