commit
stringlengths
40
40
subject
stringlengths
1
1.49k
old_file
stringlengths
4
311
new_file
stringlengths
4
311
new_contents
stringlengths
1
29.8k
old_contents
stringlengths
0
9.9k
lang
stringclasses
3 values
proba
float64
0
1
20e63fb5b5a02966acbe66f3cda19bc59ff89934
Set a default value for a default_roles
monasca_log_api/conf/role_middleware.py
monasca_log_api/conf/role_middleware.py
# Copyright 2017 FUJITSU LIMITED # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
# Copyright 2017 FUJITSU LIMITED # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
0.000915
dd725349e0613461bdbe75a0c32115b323e9ccc3
change settings import in wsgi for Travis CI
reflow/wsgi.py
reflow/wsgi.py
""" WSGI config for reflow project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`` s...
""" WSGI config for reflow project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`` s...
Python
0
6fb1b24a3cf1a4cdb3bd35c6f575d96cb2da9415
Add binding for DSA_size
cryptography/hazmat/bindings/openssl/dsa.py
cryptography/hazmat/bindings/openssl/dsa.py
# 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...
# 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...
Python
0
9bff4e9ed59d2c15b2da681476385274f5ef9059
Fix create_sample_event
src/sentry/management/commands/create_sample_event.py
src/sentry/management/commands/create_sample_event.py
""" sentry.management.commands.create_sample_event ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from django.core.management.base import BaseCommand, CommandError, make_option class Command(BaseC...
""" sentry.management.commands.create_sample_event ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from django.core.management.base import BaseCommand, CommandError, make_option class Command(BaseC...
Python
0.000026
893e05540c640c4598477a39688a773556bebad9
Update HDF5 to 1.8.16
var/spack/packages/hdf5/package.py
var/spack/packages/hdf5/package.py
from spack import * class Hdf5(Package): """HDF5 is a data model, library, and file format for storing and managing data. It supports an unlimited variety of datatypes, and is designed for flexible and efficient I/O and for high volume and complex data. """ homepage = "http://www.hdfgroup.or...
from spack import * class Hdf5(Package): """HDF5 is a data model, library, and file format for storing and managing data. It supports an unlimited variety of datatypes, and is designed for flexible and efficient I/O and for high volume and complex data. """ homepage = "http://www.hdfgroup.or...
Python
0
f28daad980dd95584dabe83a102ecdd0e1cac517
remove reference to unused summaries file
music_spectrogram_diffusion/__init__.py
music_spectrogram_diffusion/__init__.py
# Copyright 2022 The Music Spectrogram Diffusion Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
# Copyright 2022 The Music Spectrogram Diffusion 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 ...
Python
0
5eb85dcc98adde698001405c60c44732964ec04a
Fix user messages not being sent
txircd/modules/cmd_privmsg_notice.py
txircd/modules/cmd_privmsg_notice.py
from twisted.words.protocols import irc from txircd.modbase import Command class MessageCommand(object): def __init__(self, ircd): self.ircd = ircd def onUse(self, cmd, user, data): if ("targetchan" not in data or not data["targetchan"]) and ("targetuser" not in data or not data["targetuser"]): return if ...
from twisted.words.protocols import irc from txircd.modbase import Command class MessageCommand(object): def __init__(self, ircd): self.ircd = ircd def onUse(self, cmd, user, data): if ("targetchan" not in data or not data["targetchan"]) and ("targetuser" not in data or not data["targetuser"]): return if ...
Python
0.000188
376b8aa5b77066e06c17f41d65fe32a3c2bdef1f
Add a default value to the header limit
geo.py
geo.py
#! /usr/bin/python3 # -*- coding-utf-8 -*- """ This script transform a md into a plain html in the context of a documentation for Kit&Pack. """ import mmap import yaml print("---------------------------- geo --") print("-- by antoine.delhomme@espci.org --") print("-----------------------------------") doc_in = "./0...
#! /usr/bin/python3 # -*- coding-utf-8 -*- """ This script transform a md into a plain html in the context of a documentation for Kit&Pack. """ import mmap import yaml print("---------------------------- geo --") print("-- by antoine.delhomme@espci.org --") print("-----------------------------------") doc_in = "./0...
Python
0.000001
8f3ff0cfd70bfe4eaa9e017323971bad453c93f5
set edit as bot
trunk/toolserver/pui.py
trunk/toolserver/pui.py
#!usr/bin/python # -*- coding: utf-8 -* # # (C) Legoktm 2008-2009, MIT License # import re, sys, os sys.path.append(os.environ['HOME'] + '/pythonwikibot') #sys.path.append('/Users/kman/projects/pywikibot') import wiki wiki.setUser('Legobot') page = wiki.Page('Wikipedia:Possibly unfree images') try: wikitext = st...
#!usr/bin/python # -*- coding: utf-8 -* # # (C) Legoktm 2008-2009, MIT License # import re, sys, os sys.path.append(os.environ['HOME'] + '/pythonwikibot') #sys.path.append('/Users/kman/projects/pywikibot') import wiki wiki.setUser('Legobot') page = wiki.Page('Wikipedia:Possibly unfree images') try: wikitext = st...
Python
0.000002
050cc7a74e68b0515ceac1f53cbc20aa6e6cd498
Create a Session object.
octohat/connection.py
octohat/connection.py
# Copyright (c) 2013 Alon Swartz <alon@turnkeylinux.org> # # This file is part of OctoHub. # # OctoHub 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 l...
# Copyright (c) 2013 Alon Swartz <alon@turnkeylinux.org> # # This file is part of OctoHub. # # OctoHub 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 l...
Python
0
20cf699df5d81eec071254cdaac13ad7ad49909a
fix reducer dereference if replace_reducer is used
pydux/create_store.py
pydux/create_store.py
""" python + redux == pydux Redux: http://redux.js.org A somewhat literal translation of Redux. Closures in Python are over references, as opposed to names in JavaScript, so they are read-only. Single- element arrays are used to create read/write closures. """ class ActionTypes(object): INIT = '@@redux/INIT'...
""" python + redux == pydux Redux: http://redux.js.org A somewhat literal translation of Redux. Closures in Python are over references, as opposed to names in JavaScript, so they are read-only. Single- element arrays are used to create read/write closures. """ class ActionTypes(object): INIT = '@@redux/INIT'...
Python
0
fb51b056ce909028ee4b0cc3e790ae202d8711af
Update P06_factorialLog disable logging
books/AutomateTheBoringStuffWithPython/Chapter10/P06_factorialLog.py
books/AutomateTheBoringStuffWithPython/Chapter10/P06_factorialLog.py
# This program calculates factorial and logs debug messages import logging logging.basicConfig(level=logging.DEBUG, format=" %(asctime)s - %(levelname)s - %(message)s") logging.disable(logging.CRITICAL) # Stop logging, comment out to debug logging.debug("Start of program") def factorial(n): logging.debug("Start...
# This program calculates factorial and logs debug messages import logging logging.basicConfig(level=logging.DEBUG, format=" %(asctime)s - %(levelname)s - %(message)s") logging.debug("Start of program") def factorial(n): logging.debug("Start of factorial(%s%%)" % n) total = 1 for i in range(1, n + 1): ...
Python
0
acee3e41b45198af4b8a11f5a75bcd62e49864e2
fix path
tumblr/spiders/index.py
tumblr/spiders/index.py
# encoding:utf-8 import json import scrapy from lxml import etree from scrapy.http.request import Request stream_cursor = "eyJGb2xsb3dlZFNlYXJjaFBvc3QiOltdLCJiZWZvcmVfaWQiOiIxNjI2ODY4NDM3NDMifQ%3D%3D" with open("config.json", "r") as f: configData = json.loads(f.read(-1)) default_cookie = configData["cookies...
# encoding:utf-8 import json import requests import scrapy from lxml import etree from scrapy.http.request import Request stream_cursor = "eyJGb2xsb3dlZFNlYXJjaFBvc3QiOltdLCJiZWZvcmVfaWQiOiIxNjI2ODY4NDM3NDMifQ%3D%3D" with open("../../config.json", "r") as f: configData = json.loads(f.read(-1)) default_cookie...
Python
0.000017
b202b5faa2f378d3c2b771914c043255e8e66a61
Update venmo meta
modules/sfp_venmo.py
modules/sfp_venmo.py
#------------------------------------------------------------------------------- # Name: sfp_venmo # Purpose: Gather user information from Venmo API. # # Author: <bcoles@gmail.com> # # Created: 2019-07-16 # Copyright: (c) bcoles 2019 # Licence: GPL #--------------------------------------------...
#------------------------------------------------------------------------------- # Name: sfp_venmo # Purpose: Gather user information from Venmo API. # # Author: <bcoles@gmail.com> # # Created: 2019-07-16 # Copyright: (c) bcoles 2019 # Licence: GPL #--------------------------------------------...
Python
0.000001
78647441c861eb59d1d25bd6284a2814903a7783
Read real tab_size from settings instead of using constant value
plugin/formatting.py
plugin/formatting.py
import sublime_plugin from .core.protocol import Request, Range from .core.url import filename_to_uri from .core.clients import client_for_view from .core.configurations import is_supported_view class LspFormatDocumentCommand(sublime_plugin.TextCommand): def is_enabled(self): if is_supported_view(self.vi...
import sublime_plugin from .core.protocol import Request, Range from .core.url import filename_to_uri from .core.clients import client_for_view from .core.configurations import is_supported_view class LspFormatDocumentCommand(sublime_plugin.TextCommand): def is_enabled(self): if is_supported_view(self.vi...
Python
0
aad2232c2dadf309d83ad38978d26f80c2bb5782
Return more informative message when either path or filename is not found
pysteps/io/archive.py
pysteps/io/archive.py
"""Utilities for finding archived files that match the given criteria.""" from datetime import datetime, timedelta import fnmatch import os def find_by_date(date, root_path, path_fmt, fn_pattern, fn_ext, timestep, num_prev_files=0, num_next_files=0): """List input files whose timestamp matches th...
"""Utilities for finding archived files that match the given criteria.""" from datetime import datetime, timedelta import fnmatch import os def find_by_date(date, root_path, path_fmt, fn_pattern, fn_ext, timestep, num_prev_files=0, num_next_files=0): """List input files whose timestamp matches th...
Python
0.000005
6facb0f33a8cf53041d9fa1562376e43e6d6194f
add init for smiles2graph
ogb/utils/__init__.py
ogb/utils/__init__.py
try: from .mol import smiles2graph except ImportError: pass
Python
0.000003
fdae17a50223c2f9b8ba4a665fc24726e2c2ce14
Add auth header to the fixture loader
tests/lib/es_tools.py
tests/lib/es_tools.py
""" Commands for interacting with Elastic Search """ # pylint: disable=broad-except from os.path import join import requests from lib.tools import TEST_FOLDER def es_is_available(): """ Test if Elastic Search is running """ try: return ( requests.get("http://localhost:9200", auth=("ela...
""" Commands for interacting with Elastic Search """ # pylint: disable=broad-except from os.path import join import requests from lib.tools import TEST_FOLDER def es_is_available(): """ Test if Elastic Search is running """ try: return ( requests.get("http://localhost:9200").json()["ta...
Python
0
13f802e959013cf31148399321dd84cc4070bf28
Make input image update on change
qtgui/panels/panel.py
qtgui/panels/panel.py
import numpy as np from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QWidget, QComboBox from PyQt5.QtWidgets import QVBoxLayout, QHBoxLayout, QGroupBox, QSplitter from qtgui.widgets import QActivationView from qtgui.widgets import QInputSelector, QInputInfoBox, QImageView from qtgui.widgets import QNetworkView,...
import numpy as np from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QWidget, QComboBox from PyQt5.QtWidgets import QVBoxLayout, QHBoxLayout, QGroupBox, QSplitter from qtgui.widgets import QActivationView from qtgui.widgets import QInputSelector, QInputInfoBox, QImageView from qtgui.widgets import QNetworkView,...
Python
0.000004
19e347716b5efcbaaf857a2805bd5f7ed5d5ec04
Patch waagent unit to kill process instead of entire control group
VMEncryption/main/oscrypto/encryptstates/PrereqState.py
VMEncryption/main/oscrypto/encryptstates/PrereqState.py
#!/usr/bin/env python # # VM Backup extension # # Copyright 2015 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
#!/usr/bin/env python # # VM Backup extension # # Copyright 2015 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
Python
0
455874cae74a34e610650e5b5618b64fe808ea1c
fix docstring syntax error
ncharts/ncharts/templatetags/filters.py
ncharts/ncharts/templatetags/filters.py
from django import template from ncharts import models as nc_models register = template.Library() @register.filter def get_long_name(vs, v): """Get 'long_name' value of vs[v] """ try: return vs[v]['long_name'] except: return '' @register.filter def get_item(dictionary, key): return di...
from django import template from ncharts import models as nc_models register = template.Library() @register.filter def get_long_name(vs, v): """Get 'long_name' value of vs[v] """ try: return vs[v]['long_name'] except: return '' @register.filter def get_item(dictionary, key): return di...
Python
0.000001
f7d4be60dd246193fe269dc1caaf8208bd4dba22
improve output of compare_dfa.py.
src/trusted/validator_ragel/unreviewed/compare_dfa.py
src/trusted/validator_ragel/unreviewed/compare_dfa.py
#!/usr/bin/python # Copyright (c) 2013 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import dfa_parser visited_pairs = set() de...
#!/usr/bin/python # Copyright (c) 2013 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import dfa_parser visited_pairs = set() de...
Python
0.403608
a76915d31937f31e5d5fd7ed090198e311cffaa1
fix csvrecorder
pikos/recorders/csv_recorder.py
pikos/recorders/csv_recorder.py
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------ # Package: Pikos toolkit # File: recorders/csv_recorder.py # License: LICENSE.TXT # # Copyright (c) 2012, Enthought, Inc. # All rights reserved. #-----------------------------------------------------------------...
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------ # Package: Pikos toolkit # File: recorders/csv_recorder.py # License: LICENSE.TXT # # Copyright (c) 2012, Enthought, Inc. # All rights reserved. #-----------------------------------------------------------------...
Python
0.000013
7331fa69c6cd2f09b1711272278a9684af5cf9c1
fix attachfilename
intelmq/bots/collectors/mail/mail-attach.py
intelmq/bots/collectors/mail/mail-attach.py
import re import imbox import zipfile from intelmq.lib.bot import Bot, sys from intelmq.bots.collectors.mail.lib import Mail class MailAttachCollectorBot(Bot): def process(self): mailbox = imbox.Imbox(self.parameters.mail_host, self.parameters.mail_user, self.parameters.mail_password, self.parameters.mail...
import re import imbox import zipfile from intelmq.lib.bot import Bot, sys from intelmq.bots.collectors.mail.lib import Mail class MailAttachCollectorBot(Bot): def process(self): mailbox = imbox.Imbox(self.parameters.mail_host, self.parameters.mail_user, self.parameters.mail_password, self.parameters.mail...
Python
0.000003
b481426e52661b702fa014a86c68b015f46feb1f
remove deprecated test suite declarations
account_invoice_constraint_chronology/tests/__init__.py
account_invoice_constraint_chronology/tests/__init__.py
# -*- coding: utf-8 -*- # # # Authors: Adrien Peiffer # Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) # All Rights Reserved # # WARNING: This program as such is intended to be used by professional # programmers who take the whole responsibility of assessing all potential # consequences result...
# -*- coding: utf-8 -*- # # # Authors: Adrien Peiffer # Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) # All Rights Reserved # # WARNING: This program as such is intended to be used by professional # programmers who take the whole responsibility of assessing all potential # consequences result...
Python
0
7fef3fbd8f4a68a2cf584721930c276eb49b16ee
Fix issue in infer_android_package_name with tests in //javatests
build_extensions/infer_android_package_name.bzl
build_extensions/infer_android_package_name.bzl
"""A rule for inferring an android package name.""" def infer_android_package_name(): """Infer an android package name based on current path below 'javatests'""" path = native.package_name() javatests_index = path.rindex("javatests/") + len("javatests/") return path[javatests_index:].replace("/", ".")
"""A rule for inferring an android package name.""" def infer_android_package_name(): """Infer an android package name based on current path below 'javatests'""" path = native.package_name() javatests_index = path.rindex("/javatests/") + len("/javatests/") return path[javatests_index:].replace("/", "."...
Python
0.000021
c2f668b6b403bde09485595c2ac2852220739c93
Fix docstring.
morepath/toposort.py
morepath/toposort.py
from .error import TopologicalSortError def topological_sort(l, get_depends): result = [] marked = set() temporary_marked = set() def visit(n): if n in marked: return if n in temporary_marked: raise TopologicalSortError("Not a DAG") temporary_marked.add...
from .error import TopologicalSortError def topological_sort(l, get_depends): result = [] marked = set() temporary_marked = set() def visit(n): if n in marked: return if n in temporary_marked: raise TopologicalSortError("Not a DAG") temporary_marked.add...
Python
0.000001
da8b7471ee773c835edae6f333938caa34e17cbd
Update wrap.py
tesco-delivery-bot/wrap.py
tesco-delivery-bot/wrap.py
#!/usr/local/bin/python3.7 import subprocess import os import http.client, urllib PO_API_TOKEN = "" PO_USER_KEY = "" NODE_BIN = "/usr/local/bin/node" class cd: """Context manager for changing the current working directory""" def __init__(self, newPath): self.newPath = os.path.expanduser(newPath) ...
import subprocess import os import http.client, urllib PO_API_TOKEN = "" PO_USER_KEY = "" class cd: """Context manager for changing the current working directory""" def __init__(self, newPath): self.newPath = os.path.expanduser(newPath) def __enter__(self): self.savedPath = os.getcwd() ...
Python
0.000001
24bbdd828253e5a1df92dac31f271dde6739ef8d
Refactor and fix some things
vega/polestar.py
vega/polestar.py
import os import json import cgi import codecs from IPython import display JS = ['static/polestar/scripts/vendor-6292494709.js', 'static/polestar/scripts/app-ddc64cf3e9.js'] CSS = ['static/polestar/scripts/vendor-5779b264ab.css', 'static/polestar/styles/app-767140e98a.css'] TEAMPLATE = 'static/index.htm...
import os import json import cgi import codecs from IPython import display JS = ['polestar/scripts/vendor-13742e93f0.js', 'polestar/scripts/app-512c772610.js'] CSS = ['polestar/styles/app-a696a065c6.css', 'polestar/scripts/vendor-e4b58aff85.css'] TEAMPLATE = 'index.html' IFRAME_STYLE = 'border: none; width: 100%; m...
Python
0.000023
577a526284236cf9a31b3b339902bbeed4991b63
work on profile tests, part-baked
petl/test/test_profile.py
petl/test/test_profile.py
""" TODO doc me """ from petl.profile import * def test_profile(): """ TODO doc me """ table = [['foo', 'bar'], ['A', 1], ['B', 2], ['B', '3', True], ['D', 'xyz'], ['E']] profiler = Profiler(table) # profile the table with...
""" TODO doc me """ from petl.profile import * def test_profile(): """ TODO doc me """ table = [['foo', 'bar'], ['A', 1], ['B', 2], ['B', '3', True], ['D', 'xyz'], ['E']] profiler = Profiler(table) profile = profiler.profi...
Python
0
87244598ed08e790835818656ecba0178bb7ca89
Upgrade to a better version
fsplit/__init__.py
fsplit/__init__.py
#!/usr/bin/env python2 ## # fsplit # https://github.com/leosartaj/fsplit.git # # Copyright (c) 2014 Sartaj Singh # Licensed under the MIT license. ## from .info import __version__ # define __version__ variable from .info import __desc__ # define __desc__ variable for description
#!/usr/bin/env python2 ## # fsplit # https://github.com/leosartaj/fsplit.git # # Copyright (c) 2014 Sartaj Singh # Licensed under the MIT license. ## from info import __version__ # define __version__ variable from info import __desc__ # define __desc__ variable for description
Python
0
d879440cef6bc1985ab4e8bf8f81163b661beb1b
change locale and admin settings
censusreporter/config/base/settings.py
censusreporter/config/base/settings.py
# Django settings for censusreporter project. import os dirname = os.path.dirname PROJECT_ROOT = os.path.abspath(os.path.join(dirname(__file__),"..","..")) DEBUG = True TEMPLATE_DEBUG = DEBUG # should be set by each settings file # ROOT_URLCONF = 'config.dev.urls' DATABASES = { 'default': { 'ENGINE': 'dj...
# Django settings for censusreporter project. import os dirname = os.path.dirname PROJECT_ROOT = os.path.abspath(os.path.join(dirname(__file__),"..","..")) DEBUG = True TEMPLATE_DEBUG = DEBUG # should be set by each settings file # ROOT_URLCONF = 'config.dev.urls' DATABASES = { 'default': { 'ENGINE': 'dj...
Python
0
85124382cd3f90b439b27c8dd5a82f47925ddab7
fix settings print
mppsolar/__init__.py
mppsolar/__init__.py
# -*- coding: utf-8 -*- # !/usr/bin/python import logging from argparse import ArgumentParser # import mppcommands import mpputils logger = logging.getLogger() # if __name__ == '__main__': def main(): parser = ArgumentParser(description='MPP Solar Command Utility') parser.add_argument('-c', '--command', hel...
# -*- coding: utf-8 -*- # !/usr/bin/python import logging from argparse import ArgumentParser # import mppcommands import mpputils logger = logging.getLogger() # if __name__ == '__main__': def main(): parser = ArgumentParser(description='MPP Solar Command Utility') parser.add_argument('-c', '--command', hel...
Python
0.000001
bafdbd28e35d80d28bfb82c23532533cb2915066
Add docs for MissingInputFiles 'message' arg.
fuel/exceptions.py
fuel/exceptions.py
class AxisLabelsMismatchError(ValueError): """Raised when a pair of axis labels tuples do not match.""" class ConfigurationError(Exception): """Error raised when a configuration value is requested but not set.""" class MissingInputFiles(Exception): """Exception raised by a converter when input files are...
class AxisLabelsMismatchError(ValueError): """Raised when a pair of axis labels tuples do not match.""" class ConfigurationError(Exception): """Error raised when a configuration value is requested but not set.""" class MissingInputFiles(Exception): """Exception raised by a converter when input files are...
Python
0
d2eda42f9f5769d0d42ab38d6bfd912ccff53327
remove Q1 from status data (as doesnt work on all inverters and is undocumented)
mppsolar/mpputils.py
mppsolar/mpputils.py
""" MPP Solar Inverter Command Library library of utility and helpers for MPP Solar PIP-4048MS inverters mpputils.py """ import logging from .mppinverter import mppInverter from .mppinverter import NoDeviceError log = logging.getLogger('MPP-Solar') def getVal(_dict, key, ind=None): if key not in _dict: ...
""" MPP Solar Inverter Command Library library of utility and helpers for MPP Solar PIP-4048MS inverters mpputils.py """ import logging from .mppinverter import mppInverter from .mppinverter import NoDeviceError log = logging.getLogger('MPP-Solar') def getVal(_dict, key, ind=None): if key not in _dict: ...
Python
0
0da95bdfc184614edca41b41ac3409295352fff6
Update days_between.py
checkio/python/oreilly/days_between.py
checkio/python/oreilly/days_between.py
import datetime def days_diff(date1, date2): d1 = datetime.datetime(*date1) d2 = datetime.datetime(*date2) return abs((d2-d1).days) if __name__ == '__main__': #These "asserts" using only for self-checking and not necessary for auto-testing assert days_diff((1982, 4, 19), (1982, 4, 22)) ==...
Python
0.000003
e35649188f10e99381926318192c856e85245ef9
update apk version to support toast
uiautomator2/version.py
uiautomator2/version.py
# coding: utf-8 # __apk_version__ = '1.0.12' # 1.0.12 add toast support # 1.0.11 add auto install support # 1.0.10 fix service not started bug # 1.0.9 fix apk version code and version name # ERR: 1.0.8 bad version number. show ip on notification # ERR: 1.0.7 bad version number. new input method, some bug fix __atx_ag...
# coding: utf-8 # __apk_version__ = '1.0.11' # 1.0.11 add auto install support # 1.0.10 fix service not started bug # 1.0.9 fix apk version code and version name # ERR: 1.0.8 bad version number. show ip on notification # ERR: 1.0.7 bad version number. new input method, some bug fix __atx_agent_version__ = '0.2.1' # 0...
Python
0
f7034b2988d9ebcb3836b3e12b609f6098269f2c
remove unused shebang
potty_oh/waveform.py
potty_oh/waveform.py
# Copyright 2016 Curtis Sand # # 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 writi...
#!/usr/bin/env python # Copyright 2016 Curtis Sand # # 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...
Python
0.000002
927d762daf41a32be37bd056c889e170d6efbb93
Update foreign key references for django 2.0. This change was made in Django core 3 years ago.
watson/models.py
watson/models.py
"""Models used by django-watson.""" from __future__ import unicode_literals import uuid from django.db import models from django.contrib.contenttypes.models import ContentType from django.utils.encoding import python_2_unicode_compatible, force_text from django.utils.functional import cached_property try: from ...
"""Models used by django-watson.""" from __future__ import unicode_literals import uuid from django.db import models from django.contrib.contenttypes.models import ContentType from django.utils.encoding import python_2_unicode_compatible, force_text from django.utils.functional import cached_property try: from ...
Python
0
0c6c9de85161a6c15f84b19d473d992c90a31ea5
add per transaction coverage increase metrics
mythril/laser/ethereum/plugins/implementations/coverage.py
mythril/laser/ethereum/plugins/implementations/coverage.py
from mythril.laser.ethereum.svm import LaserEVM from mythril.laser.ethereum.plugins.plugin import LaserPlugin from mythril.laser.ethereum.state.global_state import GlobalState from typing import Dict, Tuple, List import logging log = logging.getLogger(__name__) class InstructionCoveragePlugin(LaserPlugin): """...
from mythril.laser.ethereum.svm import LaserEVM from mythril.laser.ethereum.plugins.plugin import LaserPlugin from mythril.laser.ethereum.state.global_state import GlobalState from typing import Dict, Tuple, List import logging log = logging.getLogger(__name__) class InstructionCoveragePlugin(LaserPlugin): """...
Python
0
3494ed60343760d3ee520b37b793afa49f225f35
Add function to check if loop is dummy or not
pitch/lib/logic/control_flow.py
pitch/lib/logic/control_flow.py
from __future__ import unicode_literals import itertools import yaml from ..common.utils import to_iterable from ..templating.structures import PitchTemplate, JinjaExpressionResolver class ControlFlowStatement(object): def __init__(self, statement_type): self.__statement_type = statement_type @proper...
from __future__ import unicode_literals import itertools import yaml from ..common.utils import to_iterable from ..templating.structures import PitchTemplate, JinjaExpressionResolver class ControlFlowStatement(object): def __init__(self, statement_type): self.__statement_type = statement_type @proper...
Python
0.000005
28c6e6747a6d0bd924f838ed4f846b01c247012b
Remove unused tempproject and tempscene
previz/testsutils.py
previz/testsutils.py
import functools from . import PrevizProject class Decorators(object): def __init__(self, api_token, api_root, new_project_prefix = 'cf-'): self.api_root = api_root self.api_token = api_token self.new_project_prefix = new_project_prefix def project(self, project_id): def decor...
import functools from . import PrevizProject class Decorators(object): def __init__(self, api_token, api_root, new_project_prefix = 'cf-'): self.api_root = api_root self.api_token = api_token self.new_project_prefix = new_project_prefix def project(self, project_id): def decor...
Python
0
2528f4ad76dad2915be1d51483cea7693ea453ce
fix test
tests/server4_test.py
tests/server4_test.py
# -*- coding: utf-8 -*- u"""Test background processes :copyright: Copyright (c) 2019 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern.pkcollections import PKDict import pytest def test_elega...
# -*- coding: utf-8 -*- u"""Test background processes :copyright: Copyright (c) 2019 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern.pkcollections import PKDict import pytest def test_elega...
Python
0.000002
1b16467c9d24c770578d5f94e9715d754885de98
correct output at switch on
printStatusChange.py
printStatusChange.py
import re def readStatus(): status = '' f = open('/proc/asound/card0/pcm0p/sub0/status', 'r') for line in f: matchObj = re.match(r'state.*', line) if matchObj: status = matchObj.group() break matchObj = re.match(r'closed', line) if matchObj: ...
import re def readStatus(): status = '' f = open('/proc/asound/card0/pcm0p/sub0/status', 'r') for line in f: matchObj = re.match(r'state.*', line) if matchObj: status = matchObj.group() break matchObj = re.match(r'closed', line) if matchObj: ...
Python
0.000011
f54802514b6d3ba66269c4e09640d2de7a7dade2
Fix regression in filesystem watcher
watcher/straight_watch_callback.py
watcher/straight_watch_callback.py
#!/usr/bin/env -S python3 -u import os import pathlib import sys WATCHEXEC_VAR_COMMON = "WATCHEXEC_COMMON_PATH" WATCHEXEC_VARS = [ "WATCHEXEC_CREATED_PATH", "WATCHEXEC_REMOVED_PATH", "WATCHEXEC_RENAMED_PATH", "WATCHEXEC_WRITTEN_PATH", "WATCHEXEC_META_CHANGED_PATH", ] def die(message): print...
#!/usr/bin/env python3 -u import os import pathlib import sys WATCHEXEC_VAR_COMMON = "WATCHEXEC_COMMON_PATH" WATCHEXEC_VARS = [ "WATCHEXEC_CREATED_PATH", "WATCHEXEC_REMOVED_PATH", "WATCHEXEC_RENAMED_PATH", "WATCHEXEC_WRITTEN_PATH", "WATCHEXEC_META_CHANGED_PATH", ] def die(message): print(me...
Python
0.000019
66e9e8a35831e603509d96ac8f1cab7bc8b9a3fc
enforce lot locking when using quick-create in web client
stock_lock_lot/models/stock_production_lot.py
stock_lock_lot/models/stock_production_lot.py
# -*- coding: utf-8 -*- # © 2015 Serv. Tec. Avanzados - Pedro M. Baeza (http://www.serviciosbaeza.com) # © 2015 AvanzOsc (http://www.avanzosc.es) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import models, fields, api, exceptions, _ class StockProductionLot(models.Model): _na...
# -*- coding: utf-8 -*- # © 2015 Serv. Tec. Avanzados - Pedro M. Baeza (http://www.serviciosbaeza.com) # © 2015 AvanzOsc (http://www.avanzosc.es) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import models, fields, api, exceptions, _ class StockProductionLot(models.Model): _na...
Python
0
707be52f21dae6682cd541d62941c0095869c98f
Update time util docstrings
mycroft/util/time.py
mycroft/util/time.py
# # Copyright 2018 Mycroft AI 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...
# # Copyright 2018 Mycroft AI 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...
Python
0.000001
ee1f59a8a61709bebc4f08adce520ab251576148
Use a single query to fetch the guardian and hub.
us_ignite/hubs/views.py
us_ignite/hubs/views.py
from django.db.models import Q from django.contrib import messages from django.contrib.auth.decorators import login_required from django.http import Http404 from django.template.response import TemplateResponse from django.shortcuts import get_object_or_404, redirect from us_ignite.hubs.models import Hub, HubRequest f...
from django.db.models import Q from django.contrib import messages from django.contrib.auth.decorators import login_required from django.http import Http404 from django.template.response import TemplateResponse from django.shortcuts import get_object_or_404, redirect from us_ignite.hubs.models import Hub, HubRequest f...
Python
0
abd2bbc081167c9306558d6376c691a965e0cf71
Improve onchage experience
l10n_es_location_nuts/models/res_partner.py
l10n_es_location_nuts/models/res_partner.py
# -*- coding: utf-8 -*- # Python source code encoding : https://www.python.org/dev/peps/pep-0263/ ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright : # (c) 2015 Antiun Ingenieria, SL (Madrid, Spain, http://www...
# -*- coding: utf-8 -*- # Python source code encoding : https://www.python.org/dev/peps/pep-0263/ ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright : # (c) 2015 Antiun Ingenieria, SL (Madrid, Spain, http://www...
Python
0.000001
0fdb93fb73142315fe404b9a161ef19af0d920cd
Add simple test for config builder
tests/test_bawlerd.py
tests/test_bawlerd.py
import io import os from textwrap import dedent from pg_bawler import bawlerd class TestBawlerdConfig: def test_build_config_location_list(self): assert not bawlerd.conf.build_config_location_list(locations=()) user_conf = os.path.join( os.path.expanduser('~'), bawlerd.c...
import io import os from textwrap import dedent from pg_bawler import bawlerd class TestBawlerdConfig: def test_build_config_location_list(self): assert not bawlerd.conf.build_config_location_list(locations=()) user_conf = os.path.join( os.path.expanduser('~'), bawlerd.c...
Python
0
e62b62107ef44fec414a3a932a3e3e7bad211f34
add django-extensions for easier local view debugging
coffeestats/coffeestats/settings/local.py
coffeestats/coffeestats/settings/local.py
# -*- python -*- # pymode:lint_ignore=W0401,E501 """Development settings and globals.""" from __future__ import absolute_import from .base import * # noqa # ######### DEBUG CONFIGURATION # See: https://docs.djangoproject.com/en/dev/ref/settings/#debug DEBUG = True # ######### END DEBUG CONFIGURATION # ######### ...
# -*- python -*- # pymode:lint_ignore=W0401,E501 """Development settings and globals.""" from __future__ import absolute_import from .base import * # noqa # ######### DEBUG CONFIGURATION # See: https://docs.djangoproject.com/en/dev/ref/settings/#debug DEBUG = True # ######### END DEBUG CONFIGURATION # ######### ...
Python
0
0589fe156e710a97fd08001142ec05dea4bc2b65
Use other key for exercise strings for react
wger/core/management/commands/extract-i18n.py
wger/core/management/commands/extract-i18n.py
# -*- coding: utf-8 *-* # This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
# -*- coding: utf-8 *-* # This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
Python
0.000001
bc75dbaecfac0b9afff324c54e6c022b35419f28
set debug to false
project/web/app/website/settings.py
project/web/app/website/settings.py
""" Django settings for website project. Generated by 'django-admin startproject' using Django 1.10.2. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os...
""" Django settings for website project. Generated by 'django-admin startproject' using Django 1.10.2. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os...
Python
0.99987
a835dbfbaa2c70329c08d4b8429d49315dc6d651
Remove dangerous safestring declaration
openstack_dashboard/dashboards/identity/mappings/tables.py
openstack_dashboard/dashboards/identity/mappings/tables.py
# Copyright (C) 2015 Yahoo! 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...
# Copyright (C) 2015 Yahoo! 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...
Python
0.000002
67bcec666fb1dc1ca48e531fd49bbbc75c09f041
fix the bug when the method it's call by the onchange (#140)
stock_voucher/models/stock_picking_voucher.py
stock_voucher/models/stock_picking_voucher.py
############################################################################## # For copyright and license notices, see __manifest__.py file in module root # directory ############################################################################## from odoo import fields, models, api, _ from odoo.exceptions import Valid...
############################################################################## # For copyright and license notices, see __manifest__.py file in module root # directory ############################################################################## from odoo import fields, models, api, _ from odoo.exceptions import Valid...
Python
0
4b0902e960f08f9ef99ce211b98e211b1685f68b
Update walletchangepass.py
contrib/wallettools/walletchangepass.py
contrib/wallettools/walletchangepass.py
from jsonrpc import ServiceProxy access = ServiceProxy("http://127.0.0.1:6647") pwd = raw_input("Enter old wallet passphrase: ") pwd2 = raw_input("Enter new wallet passphrase: ") access.walletpassphrasechange(pwd, pwd2)
from jsonrpc import ServiceProxy access = ServiceProxy("http://127.0.0.1:46393") pwd = raw_input("Enter old wallet passphrase: ") pwd2 = raw_input("Enter new wallet passphrase: ") access.walletpassphrasechange(pwd, pwd2)
Python
0.000001
af0a932e8097701179310501d75888d7d4617dac
verifica codice con Schema dello SdI per fatturapa
l10n_it_payment_reason/tests/test_reason.py
l10n_it_payment_reason/tests/test_reason.py
from odoo.exceptions import ValidationError from odoo.tests.common import TransactionCase from odoo.addons.l10n_it_account.tools.account_tools import fpa_schema_get_enum class TestReasons(TransactionCase): def setUp(self): super(TestReasons, self).setUp() self.reason_model = self.env["payment.rea...
from odoo.exceptions import ValidationError from odoo.tests.common import TransactionCase class TestReasons(TransactionCase): def setUp(self): super(TestReasons, self).setUp() self.reason_model = self.env["payment.reason"] self.reason_b = self.env.ref("l10n_it_payment_reason.b") def t...
Python
0
c59a2ce0a6b164e7af26d73a553349937642c370
write frozen graph instead of just the graph def
write_pb_file.py
write_pb_file.py
#!/usr/bin/env python3 from gnt_model import model, error_rate, IMAGE_HEIGHT, IMAGE_WIDTH, PIXEL_DEPTH import os import sys import tensorflow as tf from tensorflow.python.platform import gfile from tensorflow.python.framework import graph_util def main(): if len(sys.argv) != 3: print('Usage: {} checkpoi...
#!/usr/bin/env python3 from gnt_model import model, error_rate, IMAGE_HEIGHT, IMAGE_WIDTH, PIXEL_DEPTH import sys import tensorflow as tf def main(): if len(sys.argv) != 3: print('Usage: {} modelpath outputdir'.format(sys.argv[0])) sys.exit() _, model_path, output_dir = sys.argv node_im...
Python
0.000006
6ecccc9d5600f46e4810ab3fdf82d29268105abc
use watchdog instead of bare inotifyx for recursive file system monitoring
purkinje_pytest/testrunner.py
purkinje_pytest/testrunner.py
# -*- coding: utf-8 -*- """Automatic test execution""" from __future__ import print_function from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler import logging import time logger = logging.getLogger(__file__) #WATCH_MASK = inotify.IN_CLOSE_WRITE | inotify.IN_DELETE # Extensio...
# -*- coding: utf-8 -*- """Automatic test execution""" from __future__ import print_function from watchdog.observers import Observer from watchdog.events import LoggingEventHandler import logging import time logger = logging.getLogger(__file__) #WATCH_MASK = inotify.IN_CLOSE_WRITE | inotify.IN_DELETE # Extensions ...
Python
0
c052aaca11f8fdcd465ee986548db8141b27a197
bump to 0.7.2
hublib/__init__.py
hublib/__init__.py
from pint import UnitRegistry ureg = UnitRegistry() ureg.autoconvert_offset_to_baseunit = True Q_ = ureg.Quantity __version__ = "0.7.2"
from pint import UnitRegistry ureg = UnitRegistry() ureg.autoconvert_offset_to_baseunit = True Q_ = ureg.Quantity __version__ = "0.7.1"
Python
0.000013
8a0a00a688d2a7edb6b03a505d4ededf72730886
Remove useless import
zinnia/views/trackback.py
zinnia/views/trackback.py
"""Views for Zinnia trackback""" from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.http import HttpResponsePermanentRedirect from django.shortcuts import get_object_or_404 from django.utils.decorators import method_decorator from django.views.decorators....
"""Views for Zinnia trackback""" from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.http import HttpResponsePermanentRedirect from django.shortcuts import get_object_or_404 from django.utils import timezone from django.utils.decorators import method_decor...
Python
0.000004
8959801a293fa33cb7625b524c6e9226af7253b2
Use separate HITTypeIds for live vs. sandbox
recruiters.py
recruiters.py
"""Recruiters of judicious humans.""" import logging import os import boto3 # Set up logging. logger = logging.getLogger(__name__) handler = logging.StreamHandler() formatter = logging.Formatter( '%(asctime)s [recruiter.1]: %(message)s') handler.setFormatter(formatter) logger.addHandler(handler) logger.setLe...
"""Recruiters of judicious humans.""" import logging import os import boto3 # Set up logging. logger = logging.getLogger(__name__) handler = logging.StreamHandler() formatter = logging.Formatter( '%(asctime)s [recruiter.1]: %(message)s') handler.setFormatter(formatter) logger.addHandler(handler) logger.setLe...
Python
0.000001
3ca6affb630f0dea9b414f5405acae7a20f213d2
add request apis
crawler/spiders/movies_spider.py
crawler/spiders/movies_spider.py
# -*- coding: utf-8 -*- import scrapy import json from core.models import db, Movie from crawler.spiders.subjects_spider import save_subject_detail class MoviesSpider(scrapy.Spider): name = 'MoviesSpider' allowed_domains = ['douban.com'] start_urls = [ 'https://frodo.douban.com/jsonp/subject_coll...
# -*- coding: utf-8 -*- import scrapy import json from core.models import db, Movie from crawler.spiders.subjects_spider import save_subject_detail class MoviesSpider(scrapy.Spider): name = 'MoviesSpider' allowed_domains = ['douban.com'] start_urls = [ 'https://frodo.douban.com/jsonp/subject_coll...
Python
0
ac7090293c4686b071ca314c37304b2eeddec766
Fix isort problems
pretix_cartshare/migrations/0002_auto_20161008_1047.py
pretix_cartshare/migrations/0002_auto_20161008_1047.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-10-08 10:47 from __future__ import unicode_literals import pretix_cartshare.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pretix_cartshare', '0001_initial'), ] operations = [...
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-10-08 10:47 from __future__ import unicode_literals from django.db import migrations, models import pretix_cartshare.models class Migration(migrations.Migration): dependencies = [ ('pretix_cartshare', '0001_initial'), ] operations = [...
Python
0.000002
6b6de38e9d1c77f4cc6edcfb0982ff6162875f53
Update scraper tool
tools/va_scraper/feed.py
tools/va_scraper/feed.py
import urllib import sys import feedparser import os import errno import socket socket.setdefaulttimeout(10) if len(sys.argv) != 3: print('Feed parser and downloader v1.0') print('Usage: feed.py [base url] [relative start atom feed url]') quit() base_url = sys.argv[1] parse_url = base_url+sys.argv[2] li...
import urllib import sys import feedparser import os import errno import socket # set over all time out to 1 sec to prevent stalling socket.setdefaulttimeout(1) if len(sys.argv) != 3: print('Feed parser and downloader v1.0') print('Usage: feed.py [base url] [relative start atom feed url]') quit() base_ur...
Python
0
bbb9ecacd59186f07f0120d154e625fabd5a87af
Set name on vpc
touchdown/aws/vpc/vpc.py
touchdown/aws/vpc/vpc.py
# Copyright 2014 Isotoma Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
# Copyright 2014 Isotoma Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
Python
0.000001
1b7289dd8b72cb67fe5c369e99b60e5cd0e85958
Fix neovim support
ftplugin/markdown/follow_markdown_links.py
ftplugin/markdown/follow_markdown_links.py
import os import re try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse import vim DEFAULT_EXTENSION = 'md' MAX_LINE_LEN = 1024 def _extract_link_under_cursor(): _, col = vim.current.window.cursor line = vim.current.line # skip long lines to stop hogging CPU ...
import re try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse from vim import * DEFAULT_EXTENSION = 'md' MAX_LINE_LEN = 1024 def _extract_link_under_cursor(): _, col = current.window.cursor line = current.line # skip long lines to stop hogging CPU in vim ...
Python
0
44532322f4a183bd535de22374d149a6e2f8176a
Fix pep8 errors
RandoAmisSecours/views/reporting.py
RandoAmisSecours/views/reporting.py
# -*- coding: utf-8 -*- # vim: set ts=4 # Copyright 2014 Rémi Duraffort # This file is part of RandoAmisSecours. # # RandoAmisSecours is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of...
# -*- coding: utf-8 -*- # vim: set ts=4 # Copyright 2014 Rémi Duraffort # This file is part of RandoAmisSecours. # # RandoAmisSecours is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of...
Python
0.000217
b8e7b9d9316e84fec4c8524eab6839e82b8534c1
Fix typo in add_subset
glue_vispy_viewers/volume/volume_viewer.py
glue_vispy_viewers/volume/volume_viewer.py
from ..common.vispy_data_viewer import BaseVispyViewer from .layer_artist import VolumeLayerArtist from .layer_style_widget import VolumeLayerStyleWidget class VispyVolumeViewer(BaseVispyViewer): LABEL = "3D Volume Rendering" _layer_style_widget_cls = VolumeLayerStyleWidget def add_data(self, data): ...
from ..common.vispy_data_viewer import BaseVispyViewer from .layer_artist import VolumeLayerArtist from .layer_style_widget import VolumeLayerStyleWidget class VispyVolumeViewer(BaseVispyViewer): LABEL = "3D Volume Rendering" _layer_style_widget_cls = VolumeLayerStyleWidget def add_data(self, data): ...
Python
0.000093
dcffc99e64fa6f90b39dfa8bcb79e441e728831e
Updated the max length of a log message to be 1024 characters
google/cloud/forseti/common/util/logger.py
google/cloud/forseti/common/util/logger.py
# Copyright 2017 The Forseti Security 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 ap...
# Copyright 2017 The Forseti Security 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 ap...
Python
0.999991
872e008b3986b18a7c01cd47e91a7ef39e21006b
Remove unused parameter in test (#5423)
cirq-core/cirq/contrib/paulistring/pauli_string_dag_test.py
cirq-core/cirq/contrib/paulistring/pauli_string_dag_test.py
# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
Python
0
7917515dc5580bbd56b477435a46552d3a5353af
drop other pattern ops indexes
corehq/warehouse/migrations/0033_form_fact_user_id_index.py
corehq/warehouse/migrations/0033_form_fact_user_id_index.py
from django.db import migrations, models FORM_STAGING_USER_INDEX_NAME = 'warehouse_f_user_id_785d18_idx' COLUMNS = ['user_id'] CREATE_INDEX_SQL = "CREATE INDEX CONCURRENTLY IF NOT EXISTS {} ON {} ({})" DROP_INDEX_SQL = "DROP INDEX CONCURRENTLY IF EXISTS {}" class Migration(migrations.Migration): atomic = False...
from django.db import migrations, models FORM_STAGING_USER_INDEX_NAME = 'warehouse_f_user_id_785d18_idx' COLUMNS = ['user_id'] CREATE_INDEX_SQL = "CREATE INDEX CONCURRENTLY IF NOT EXISTS {} ON {} ({})" DROP_INDEX_SQL = "DROP INDEX CONCURRENTLY IF EXISTS {}" class Migration(migrations.Migration): atomic = False...
Python
0
d7a665a3947e04c4689db67f35827db2cc3a6842
Update randrect.pyde
sketches/randrect/randrect.pyde
sketches/randrect/randrect.pyde
from random import randint, choice a = 220 colors = [color(155, 46, 105, a), color(217, 55, 80, a), color(226, 114, 79, a), color(243, 220, 123, a), color(78, 147, 151, a)] def setup(): size(600, 600) rectMode(CENTER) strokeWeight(5) # noStroke() background(255) def draw(): for _ in...
from random import randint, choice a = 220 colors = [color(155, 46, 105, a), color(217, 55, 80, a), color(226, 114, 79, a), color(243, 220, 123, a), color(78, 147, 151, a)] def setup(): size(940, 300) rectMode(CENTER) strokeWeight(2) # noStroke() background(255) def draw(): for _ in...
Python
0.000001
06d281160d5ce60f9c8dea5c75d8234e70f63642
Fix loading script to actually save options for answers.
estudios_socioeconomicos/load.py
estudios_socioeconomicos/load.py
import pickle from estudios_socioeconomicos.models import Seccion, Subseccion, Pregunta, OpcionRespuesta def parse(name): """ utility script to parse the study. """ preguntas = {} while True: seccion = input('Ingrese el nombre de la seccion: ') if seccion == 'n': break ...
import pickle from estudios_socioeconomicos.models import Seccion, Subseccion, Pregunta, OpcionRespuesta def parse(name): """ utility script to parse the study. """ preguntas = {} while True: seccion = input('Ingrese el nombre de la seccion: ') if seccion == 'n': break ...
Python
0
4ff146a7e81fe4b065a551e29f42ef9b2a973823
document title edit
servee_document/views.py
servee_document/views.py
import json from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST from django.contrib.auth.decorators import login_required from .models import Document @csrf_exempt @require_POST @login_required def upload_documents(request)...
import json from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST from django.contrib.auth.decorators import login_required from .models import Document @csrf_exempt @require_POST @login_required def upload_documents(request)...
Python
0.000003
4aad6aa1b50f8b0c86c49867bc75081b03b03086
remove unused import
repository/shimclient.py
repository/shimclient.py
# # Copyright (c) 2005 rpath, Inc. # # This program is distributed under the terms of the Common Public License, # version 1.0. A copy of this license should have been distributed with this # source file in a file called LICENSE. If it is not present, the license # is always available at http://www.opensource.org/licen...
# # Copyright (c) 2005 rpath, Inc. # # This program is distributed under the terms of the Common Public License, # version 1.0. A copy of this license should have been distributed with this # source file in a file called LICENSE. If it is not present, the license # is always available at http://www.opensource.org/licen...
Python
0.000001
c36282a41c248ad3d2405a0461195c679ef5327c
disable socket timeout, set heartbeat to 10 from 30
hiispider/amqp/amqp.py
hiispider/amqp/amqp.py
import specs from twisted.internet.protocol import ClientCreator from twisted.internet import reactor from txamqp.client import TwistedDelegate from txamqp.protocol import AMQClient import txamqp.spec def createClient(amqp_host, amqp_vhost, amqp_port=5672): amqp_spec = txamqp.spec.loadString(specs.v0_8) amqp_...
import specs from twisted.internet.protocol import ClientCreator from twisted.internet import reactor from txamqp.client import TwistedDelegate from txamqp.protocol import AMQClient import txamqp.spec def createClient(amqp_host, amqp_vhost, amqp_port=5672): amqp_spec = txamqp.spec.loadString(specs.v0_8) amqp_d...
Python
0.000001
4ef2c3988616736800b4e4470b598449b06790cd
Refactor some score calculation to make using the competition scorer easier
svm.py
svm.py
import numpy as np from sklearn import svm, preprocessing from feature_generation import FeatureGenerator from FeatureData import FeatureData class SVMModel(object): def __init__(self): self._stance_map = {'unrelated': 0, 'discuss': 2, 'agree': 3, 'disagree': 4} self._use_features= [ # ...
import numpy as np from sklearn import svm, preprocessing from feature_generation import FeatureGenerator from FeatureData import FeatureData class SVMModel(object): def __init__(self): self._stance_map = {'unrelated': 0, 'discuss': 2, 'agree': 3, 'disagree': 4} self._use_features= [ # ...
Python
0.000015
1198d398fc8051142c700991c1360750b0857dc4
Update mp3test.py
home/Markus/mp3test.py
home/Markus/mp3test.py
# this is a test script from java.lang import String from org.myrobotlab.service import Speech from org.myrobotlab.service import Sphinx from org.myrobotlab.service import Runtime import random mouth = Runtime.createAndStart("mouth","Speech") music = 1 # add python as a listener of the "stopped" event from audioFi...
# this is a test script # i have a folder with the mp3 files named from music1 to music8. # it random choses the files . no problem # but i want to change the sleep(120) so the next starts when the previous is finished from java.lang import String from org.myrobotlab.service import Speech from org.myrobotlab.servi...
Python
0.000001
53b346ff3d816cc2e637dd19003ff06505023929
Test InvalidUCRData more explicitly
corehq/apps/userreports/tests/test_save_errors.py
corehq/apps/userreports/tests/test_save_errors.py
from __future__ import absolute_import from __future__ import unicode_literals import uuid from alembic.operations import Operations from alembic.runtime.migration import MigrationContext from django.test import TestCase, override_settings from corehq.apps.userreports.app_manager.helpers import clean_table_name from ...
from __future__ import absolute_import from __future__ import unicode_literals import uuid from alembic.operations import Operations from alembic.runtime.migration import MigrationContext from django.test import TestCase, override_settings from corehq.apps.userreports.app_manager.helpers import clean_table_name from ...
Python
0
7388de0439913a8a33ac47a3cec14546e2860737
Add code example with loggable quantities in _CustomAction
hoomd/custom_action.py
hoomd/custom_action.py
from abc import ABC, abstractmethod from hoomd.parameterdicts import ParameterDict from hoomd.operation import _HOOMDGetSetAttrBase class _CustomAction(ABC): """Base class for all Python ``Action``s. This class must be the parent class for all Python ``Action``s. This class requires all subclasses to imp...
from abc import ABC, abstractmethod from hoomd.parameterdicts import ParameterDict from hoomd.operation import _HOOMDGetSetAttrBase class _CustomAction(ABC): """Base class for all Python ``Action``s. This class must be the parent class for all Python ``Action``s. This class requires all subclasses to imp...
Python
0
94ecbdc67dd72c671862aea29fd5525ea92650d8
Update model.py
hurricane/model.py
hurricane/model.py
import sys import os import urllib2 import datetime import time import psycopg2 import pandas from subprocess import call, Popen # pull the 6 hr forecast track forecast from NHC #os.system("wget http://www.srh.noaa.gov/ridge2/Precip/qpehourlyshape/latest/last_1_hours.tar.gz -O last_1_hours.tar.gz") #os.system("mv l...
Python
0.000001
c78cb26ff07712027b3ae340d6209482e8708641
implement single-length tuple
vlermv/transformers/raw.py
vlermv/transformers/raw.py
import posixpath error_msg = '''The index must be a string.''' def to_path(key): if isinstance(key, tuple) and len(key) == 1: key = key[0] if hasattr(key, 'strip') and hasattr(key, 'split'): return tuple(key.strip('/').split('/')) else: raise TypeError('Key must be string-like or ...
import posixpath error_msg = '''The index must be a string.''' def to_path(key): return tuple(key.strip('/').split('/')) def from_path(path): return posixpath.join(*path)
Python
0.999999
8cc4816556d43fde3f51b75d985fbf2e15299302
Add version and a help text
subvenv/core.py
subvenv/core.py
#!/usr/bin/env python # coding=utf-8 import argparse import json import logging import os import sys import click from collections import namedtuple log = logging.getLogger(__name__) HELP_COMMANDS = dict(help_option_names=['-h', '--help']) class VirtualenvError(Exception): pass def get_virtualenv(): ...
#!/usr/bin/env python # coding=utf-8 import json import logging import os import sys import click from collections import namedtuple log = logging.getLogger(__name__) HELP_COMMANDS = dict(help_option_names=['-h', '--help']) class VirtualenvError(Exception): pass def get_virtualenv(): path = os.getenv...
Python
0.000001
edb6a027aae1656d07112c0dcb455d6891a44992
split around nan test is passing
test_data_processor.py
test_data_processor.py
import DataProcessor as dp import numpy as np def test_unsize_vector(): n = 3 a = np.ones(n) b = np.append(a, np.array([np.nan, np.nan])) c = dp.unsize_vector(a, n) assert (a == c).all() def test_time_vector(): numSamples = 100 sampleRate = 50 time = dp.time_vector(numSamples, sampleRa...
import DataProcessor as dp import numpy as np def test_unsize_vector(): n = 3 a = np.ones(n) b = np.append(a, np.array([np.nan, np.nan])) c = dp.unsize_vector(a, n) assert (a == c).all() def test_time_vector(): numSamples = 100 sampleRate = 50 time = dp.time_vector(numSamples, sampleRa...
Python
0.000296
e5c3ece6ebad2b7ab524e074fd982e7fc11497b1
set better filter
watcher/tweakerswatcher.py
watcher/tweakerswatcher.py
import requests import json import os.path from watcher.watcher import Watcher class TweakersWatcher(Watcher): watcher_name = 'Tweakers Pricewatch' filename = 'site_tweakers.txt' def parse_site(self): url = 'https://tweakers.net/xmlhttp/xmlHttp.php?application=tweakbase&type=filter&action=deals&d...
import requests import json import os.path from watcher.watcher import Watcher class TweakersWatcher(Watcher): watcher_name = 'Tweakers Pricewatch' filename = 'site_tweakers.txt' def parse_site(self): url = 'https://tweakers.net/xmlhttp/xmlHttp.php?application=tweakbase&type=filter&action=deals&f...
Python
0.000002
6f641efb983c88427b0ec7955792a48ecbc0e0ea
add checking to avoiding update status issue of event_cases
web/controller/strategy.py
web/controller/strategy.py
# -*- coding:utf-8 -*- __author__ = 'Ulric Qin' from web import app from flask import request, jsonify from web.model.strategy import Strategy from frame import config from fe_api import post2FeUpdateEventCase import logging log = logging.getLogger(__name__) @app.route('/strategy/update', methods=['POST']) def strateg...
# -*- coding:utf-8 -*- __author__ = 'Ulric Qin' from web import app from flask import request, jsonify from web.model.strategy import Strategy from frame import config from fe_api import post2FeUpdateEventCase import logging log = logging.getLogger(__name__) @app.route('/strategy/update', methods=['POST']) def strateg...
Python
0
2790a7c5f7f90eaafa543651a6cf273c9f40e6e1
tidy engine
team1/engine.py
team1/engine.py
#! /usr/bin/env python import os import sys import json import difflib #{ 'document': ['terms', 'terms'], # 'document2': ['1','2','3'], #} def simple_search_engine(index, query): return [doc_name for doc_name, terms in index.iteritems() if query in terms] def weighted_search_engine(index, query): results = {...
#! /usr/bin/env python import os import sys import json import difflib #{ 'document': ['terms', 'terms'], # 'document2': ['1','2','3'], #} def simple_search_engine(index, query): return [doc_name for doc_name, terms in index.iteritems() if query in terms] def weighted_search_engine(index, query): results = {...
Python
0.000001
c0566ab5f4dabdf0c366d6b6a32cbd8ca3fb4a75
use idle_add callback for animation
test/animate.py
test/animate.py
import matplotlib matplotlib.use('GTKAgg') import pygrib, time ,gobject import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.basemap import Basemap # animation example. grbs = pygrib.open('../sampledata/safrica.grib2') # grab all "brightness temp" grib messages. btemps = [grb for grb in grbs if grb['n...
import matplotlib matplotlib.use('GTKAgg') import pygrib import matplotlib.pyplot as plt import numpy as np import time from mpl_toolkits.basemap import Basemap # animation example. grbs = pygrib.open('../sampledata/safrica.grib2') # grab all "brightness temp" grib messages. btemps = [grb for grb in grbs if grb['name...
Python
0.000006
65f5695b90054f73d7119f0c50be51f61de777fa
Print the time of checking status at github.
tardis/tests/tests_slow/runner.py
tardis/tests/tests_slow/runner.py
import argparse import datetime import json import os import time import requests from tardis import __githash__ as tardis_githash parser = argparse.ArgumentParser(description="Run slow integration tests") parser.add_argument("--yaml", dest="yaml_filepath", help="Path to YAML config file for inte...
import argparse import json import os import time import requests from tardis import __githash__ as tardis_githash parser = argparse.ArgumentParser(description="Run slow integration tests") parser.add_argument("--yaml", dest="yaml_filepath", help="Path to YAML config file for integration tests.")...
Python
0.000022
3bc6ab85f4fc2e3dba0e7c9d16a28fa370558021
remove useless comment
tests/images.py
tests/images.py
# -*- coding: utf-8 -*- """\ This is a python port of "Goose" orignialy licensed to Gravity.com under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Python port was written by Xavier Grangier for Recrutae Gravity.co...
# -*- coding: utf-8 -*- """\ This is a python port of "Goose" orignialy licensed to Gravity.com under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Python port was written by Xavier Grangier for Recrutae Gravity.co...
Python
0
08a65747d608fcc530adf6291a95104d4348eae6
apply RatingTargetMixin to test model
tests/models.py
tests/models.py
from __future__ import unicode_literals from django.db import models from generic_ratings.model_mixins import RatingTargetMixin class TextSnippet(RatingTargetMixin, models.Model): text = models.TextField() user = models.ForeignKey('auth.User')
from __future__ import unicode_literals from django.db import models class TextSnippet(models.Model): text = models.TextField() user = models.ForeignKey('auth.User')
Python
0
bff7989e5ce0f5cde4176ee0652578100201c90b
Update about.py
tincan/about.py
tincan/about.py
# Copyright 2014 Rustici Software # # 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 agr...
# Copyright 2014 Rustici Software # # 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 agr...
Python
0
5935a9f0ec35774f95b32465134d88d3e087fd1b
Use newer sphinx if available.
tools/sphinx.py
tools/sphinx.py
# Simple Sphinx tool and builder. import os from SCons.Script import * # Build sphinx documentation: def _action_sphinx(target, source, env): sourcedir = os.path.dirname(source[0].path) outdir = os.path.dirname(target[0].path) app = "%s %s %s %s" % (env['SPHINX_BUILD'], env['SPHINX_OPTS'], ...
# Simple Sphinx tool and builder. import os from SCons.Script import * # Build sphinx documentation: def _action_sphinx(target, source, env): sourcedir = os.path.dirname(source[0].path) outdir = os.path.dirname(target[0].path) app = "%s %s %s %s" % (env['SPHINX_BUILD'], env['SPHINX_OPTS'], ...
Python
0
19c59d3d80b2cf64880d428d0e762d4e262385a5
Handle stale PostgreSQL (or others) more gracefully. Closes #3394. Thanks to flfr at stibo.com for the patch.
trac/db/pool.py
trac/db/pool.py
# -*- coding: utf-8 -*- # # Copyright (C) 2005 Edgewall Software # Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgew...
# -*- coding: utf-8 -*- # # Copyright (C) 2005 Edgewall Software # Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgew...
Python
0.000001
0f02210e4f57f0023a2be6b11059bc5754f4d467
Update version.py
ttim/version.py
ttim/version.py
__version__='0.4.1' #__build__='4.0.0.0'
__version__='0.4.0' #__build__='4.0.0.0'
Python
0
91a25c6933015dc09fdf63c6bca75dfaf6115c47
fix test
backend/src/tests/backend/plugins/misc/test_filter_validators.py
backend/src/tests/backend/plugins/misc/test_filter_validators.py
# This file is part of the GOsa framework. # # http://gosa-project.org # # Copyright: # (C) 2016 GONICUS GmbH, Germany, http://www.gonicus.de # # See the LICENSE file in the project's top-level directory for details. import unittest from gosa.backend.plugins.misc.filter_validators import * class FilterValidatorTest...
# This file is part of the GOsa framework. # # http://gosa-project.org # # Copyright: # (C) 2016 GONICUS GmbH, Germany, http://www.gonicus.de # # See the LICENSE file in the project's top-level directory for details. import unittest from gosa.backend.plugins.misc.filter_validators import * class FilterValidatorTest...
Python
0.000002
1df785d6f337fa2dc9e42c808fab79a5a2827258
remove line to run tests
hs_modflow_modelinstance/tests/__init__.py
hs_modflow_modelinstance/tests/__init__.py
from test_modflow_modelinstance_metadata import *
Python
0.000002
40a98808da485edeaa87bb30f0e0749401c500da
update documentation configuration
_doc/sphinxdoc/source/conf3/conf.py
_doc/sphinxdoc/source/conf3/conf.py
import sys import os import datetime import re import sphinx_bootstrap_theme source_path = os.path.normpath( os.path.join( os.path.abspath( os.path.split(__file__)[0]), "..")) try: from conf_base import * except ImportError: sys.path.append(source_path) from conf_base impo...
import sys import os import datetime import re import sphinx_bootstrap_theme source_path = os.path.normpath( os.path.join( os.path.abspath( os.path.split(__file__)[0]), "..")) try: from conf_base import * except ImportError: sys.path.append(source_path) from conf_base impo...
Python
0.000001
32f0270ee3049e1a624d86f7f0a68bb4ea55c5f1
Correct IrActionsActWindow.read overloading
smile_base/models/ir_actions.py
smile_base/models/ir_actions.py
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2010 Smile (<http://www.smile.fr>). All Rights Reserved # # This program is free software: you can redistribute it and/or modify # it under th...
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2010 Smile (<http://www.smile.fr>). All Rights Reserved # # This program is free software: you can redistribute it and/or modify # it under th...
Python
0