diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/source/awesome_tool/statemachine/states/container_state.py b/source/awesome_tool/statemachine/states/container_state.py
index <HASH>..<HASH> 100644
--- a/source/awesome_tool/statemachine/states/container_state.py
+++ b/source/awesome_tool/statemachine/states/container_state.py
@@ -1052,6 +1052,10 @@ class ... | Add additional validity check for data flows Do not allow data flow to connect the same child state. | py |
diff --git a/spinoff/actor/examples.py b/spinoff/actor/examples.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/examples.py
+++ b/spinoff/actor/examples.py
@@ -1,6 +1,4 @@
-from itertools import count
-
-from twisted.internet.defer import DeferredList, inlineCallbacks
+from twisted.internet.defer import inlineCallba... | Removed unused imports in actor.examples | py |
diff --git a/rejected/process.py b/rejected/process.py
index <HASH>..<HASH> 100644
--- a/rejected/process.py
+++ b/rejected/process.py
@@ -422,7 +422,13 @@ class Process(multiprocessing.Process, state.State):
self._channel = channel
self._channel.add_on_close_callback(self.on_channel_closed)
- ... | Fix a bug with the counter on_error and assign the channel to the consumer when the channel is created. | py |
diff --git a/coursera/credentials.py b/coursera/credentials.py
index <HASH>..<HASH> 100644
--- a/coursera/credentials.py
+++ b/coursera/credentials.py
@@ -17,6 +17,14 @@ class CredentialsError(BaseException):
pass
+def _getenv_or_empty(s):
+ """
+ Helper function that converts None gotten from the enviro... | coursera: credentials: Move lambda function to be a proper function. This helps us with the code being self explanatory (and, of course, with comments transformed into docstrings). | py |
diff --git a/anpy/dossier_from_opendata.py b/anpy/dossier_from_opendata.py
index <HASH>..<HASH> 100644
--- a/anpy/dossier_from_opendata.py
+++ b/anpy/dossier_from_opendata.py
@@ -235,7 +235,7 @@ def parse(url, verbose=True, logfile=sys.stderr, cached_opendata_an={}):
# find the right dosleg even if it's an o... | correct matching of text inside open data by url | py |
diff --git a/purl/template.py b/purl/template.py
index <HASH>..<HASH> 100644
--- a/purl/template.py
+++ b/purl/template.py
@@ -13,7 +13,7 @@ from . import url
__all__ = ['Template', 'expand']
-patterns = re.compile("{([^\}]+)}")
+patterns = re.compile(r"{([^\}]+)}")
class Template(object): | Fix deprecation warnings due to invalid escape sequences. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ twine upload --repository pypi dist/trender-x.x.x.tar.gz
"""
from distutils.core import setup
-VERSION = '1.0.9'
+VERSION = '1.0.10'
setup(
name='trender',
@@ -34,6 +34,10 @@ setup(
'Programmi... | Added supported python versions | py |
diff --git a/tools/browser_adhoc/browser_adhoc.py b/tools/browser_adhoc/browser_adhoc.py
index <HASH>..<HASH> 100755
--- a/tools/browser_adhoc/browser_adhoc.py
+++ b/tools/browser_adhoc/browser_adhoc.py
@@ -10,7 +10,7 @@ import socket
import traceback
# volt server IP address and port
-volt_server_ip = 'volt3a'
+vo... | Browser adhoc was pointing to volt3a by default, changing it back to localhost. | py |
diff --git a/tasks.py b/tasks.py
index <HASH>..<HASH> 100644
--- a/tasks.py
+++ b/tasks.py
@@ -3,7 +3,7 @@ Pyinvoke tasks.py file for automating releases and admin stuff.
Author: Shyue Ping Ong
"""
-
+import datetime
import glob
import json
import os
@@ -247,7 +247,7 @@ def post_discourse(ctx, version):
@ta... | Atuomated versioning again. | py |
diff --git a/pypot/vrep/io.py b/pypot/vrep/io.py
index <HASH>..<HASH> 100644
--- a/pypot/vrep/io.py
+++ b/pypot/vrep/io.py
@@ -264,7 +264,7 @@ class VrepIO(AbstractIO):
def _inject_lua_code(self, lua_code):
""" Sends raw lua code and evaluate it wihtout any checking! """
- msg = (ctypes.c_ubyte *... | update inject lua code for py3 compatibility | py |
diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py
index <HASH>..<HASH> 100644
--- a/ryu/base/app_manager.py
+++ b/ryu/base/app_manager.py
@@ -35,6 +35,8 @@ def lookup_service_brick(name):
def register_app(app):
+ assert isinstance(app, RyuApp)
+ assert not app.name in SERVICE_BRICKS
SERVICE... | app_manager: add some assertions and LOG.info | py |
diff --git a/src/pytesseract.py b/src/pytesseract.py
index <HASH>..<HASH> 100755
--- a/src/pytesseract.py
+++ b/src/pytesseract.py
@@ -13,10 +13,14 @@ except ImportError:
import os
import sys
import subprocess
+from pkgutil import find_loader
import tempfile
import shlex
from glob import iglob
+numpy_installed ... | Add initial support for numpy arrays/opencv images If we have numpy installed (dependency of opencv), then add conditional support for the ndarray objects. Also throw exception if the image object is not supported (current supported types: PIL Image and ndarray objects) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ def read(fname):
setup(
name='xapian-haystack',
- version='1.1.4alpha',
+ version='1.1.4beta',
description="A Xapian backend for Haystack",
long_description=read('README.rst'),
classif... | Updated release number in setup.py | py |
diff --git a/spyderlib/widgets/varexp/arrayeditor.py b/spyderlib/widgets/varexp/arrayeditor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/varexp/arrayeditor.py
+++ b/spyderlib/widgets/varexp/arrayeditor.py
@@ -444,6 +444,14 @@ class ArrayView(QTableView):
if not cell_range:
return
... | Improved copying when whole columns/rows are selected If a whole solumn or row is selected in the array editor then copy the whole of that from the array, even if the data isn't completely loaded into the array editor | py |
diff --git a/test_runipy.py b/test_runipy.py
index <HASH>..<HASH> 100644
--- a/test_runipy.py
+++ b/test_runipy.py
@@ -8,7 +8,12 @@ import sys
import warnings
with warnings.catch_warnings():
- warnings.filterwarnings('error')
+ try:
+ from IPython.utils.shimmodule import ShimWarning
+ warnings.f... | test_runipy.py: Only allow `ShimWarning`s, if this is iPython 4.x, to become errors that are handled. | py |
diff --git a/tcod/libtcod.py b/tcod/libtcod.py
index <HASH>..<HASH> 100644
--- a/tcod/libtcod.py
+++ b/tcod/libtcod.py
@@ -57,7 +57,7 @@ class _Mock(object):
FOV_RESTRICTIVE = 12
CData = () # This gets passed to an isinstance call.
-
+
def def_extern(self):
"""Pass def_extern call silently... | Remove color control special methods from Color. These were firing off at bad times. I'll look into a better solution later. | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -182,7 +182,7 @@ def _close_pools():
def chdir_tmp(tmp_path):
cwd = os.getcwd()
try:
- os.chdir(tmp_path)
+ os.chdir(str(tmp_path))
yield
finally:
... | tests: PosixPath to string in chdir_tmp fixture | py |
diff --git a/icekit/project/settings/_base.py b/icekit/project/settings/_base.py
index <HASH>..<HASH> 100644
--- a/icekit/project/settings/_base.py
+++ b/icekit/project/settings/_base.py
@@ -569,6 +569,11 @@ ICEKIT = {
os.path.join(ICEKIT_DIR, 'layouts/templates'),
'icekit/layouts',
)... | Load layout templates from project templates directory. This was previously in `icekit_settings.py`. | py |
diff --git a/spikeylab/gui/abstract_drag_view.py b/spikeylab/gui/abstract_drag_view.py
index <HASH>..<HASH> 100644
--- a/spikeylab/gui/abstract_drag_view.py
+++ b/spikeylab/gui/abstract_drag_view.py
@@ -171,6 +171,7 @@ class AbstractDragView(object):
selected = self.limbo_component
sel... | fixes bug for mouse tracking when item dropped off edge of view | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -10,7 +10,7 @@ import sys
import sphinx_rtd_theme
-sys.path.insert(0, path.join(getcwd(), "../preprocessing"))
+sys.path.insert(0, path.join(getcwd(), "../"))
#General configuration | modification to conf.py for readthedocs | py |
diff --git a/rollbar/__init__.py b/rollbar/__init__.py
index <HASH>..<HASH> 100644
--- a/rollbar/__init__.py
+++ b/rollbar/__init__.py
@@ -29,6 +29,11 @@ except ImportError:
DjangoHttpRequest = None
try:
+ from rest_framework.request import Request as RestFrameworkRequest
+except ImportError:
+ RestFramew... | Support request objects from Django REST framework | py |
diff --git a/schema.py b/schema.py
index <HASH>..<HASH> 100644
--- a/schema.py
+++ b/schema.py
@@ -30,8 +30,5 @@ class SchemaOverdo(Overdo):
def do(self, blob, **kwargs):
output = super(SchemaOverdo, self).do(blob, **kwargs)
- # FIXME Disabled until validation in invenio-records can be injected
-... | literaturesuggest: initial workflows for submission * Adds initial workflows support for literaturesuggest module. | py |
diff --git a/angles.py b/angles.py
index <HASH>..<HASH> 100644
--- a/angles.py
+++ b/angles.py
@@ -60,7 +60,7 @@ import warnings
import math
import re
-__version__ = "1.1"
+__version__ = "2.0.dev"
def r2d(r): | Changed version to <I>.dev. Should have done this several commits ago. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -712,7 +712,7 @@ EXTRAS_PROVIDERS_PACKAGES: Dict[str, Iterable[str]] = {
"microsoft.winrm": ["microsoft.winrm"],
'mongo': ["mongo"],
'mssql': ["microsoft.mssql"], # TODO: remove this in Airflow 2.1
- 'mysql'... | Fix setup.py to install the right provider for mysql (#<I>) | py |
diff --git a/db_rest_api/api.py b/db_rest_api/api.py
index <HASH>..<HASH> 100644
--- a/db_rest_api/api.py
+++ b/db_rest_api/api.py
@@ -216,7 +216,7 @@ def get_statements():
gen = batch_iter(resp_json_bts, 10000)
resp = Response(gen, mimetype='application/json')
else:
- resp = jsonify(resul... | Remove use of jsonify, which is slow. | py |
diff --git a/organizations/backends/defaults.py b/organizations/backends/defaults.py
index <HASH>..<HASH> 100644
--- a/organizations/backends/defaults.py
+++ b/organizations/backends/defaults.py
@@ -136,7 +136,7 @@ class RegistrationBackend(BaseBackend):
user = User.objects.get(email=email)
except... | Remove random passwords for new users These are better off left blank and set only upon registration completion. | py |
diff --git a/malaffinity/exceptions.py b/malaffinity/exceptions.py
index <HASH>..<HASH> 100644
--- a/malaffinity/exceptions.py
+++ b/malaffinity/exceptions.py
@@ -1,6 +1,14 @@
"""malaffinity exceptions."""
+class MALRateLimitExceededError: # noqa
+ """
+ Raised when MAL's blocking your request, because you'... | Don't make `MALRateLimitExceededError` a descandant of `MALAffintiyException` | py |
diff --git a/jsonschema/_types.py b/jsonschema/_types.py
index <HASH>..<HASH> 100644
--- a/jsonschema/_types.py
+++ b/jsonschema/_types.py
@@ -1,7 +1,7 @@
import numbers
+from pyrsistent import pmap
import attr
-import pyrsistent
from jsonschema.compat import str_types, int_types
from jsonschema.exceptions impo... | Might as well make the default be the right type. | py |
diff --git a/tests/test_contentsmanager.py b/tests/test_contentsmanager.py
index <HASH>..<HASH> 100644
--- a/tests/test_contentsmanager.py
+++ b/tests/test_contentsmanager.py
@@ -767,6 +767,7 @@ def test_global_pairing_allows_to_save_other_file_types(nb_file, tmpdir):
compare_notebooks(nb, nb2)
+@skip_if_dict_... | Skip test when dict is not ordered | py |
diff --git a/tornado_pyuv/__init__.py b/tornado_pyuv/__init__.py
index <HASH>..<HASH> 100644
--- a/tornado_pyuv/__init__.py
+++ b/tornado_pyuv/__init__.py
@@ -164,11 +164,11 @@ def install():
def add_callback(self, callback):
with self._callback_lock:
- empty = not self._callbacks... | Reworked logic to wakeup the event loop when adding a callback | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -106,10 +106,7 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-if version < 1.0:
- html_theme = 'default'
-else:
- ... | Use the new ReadTheDocs-Theme Nature and Sphinx's default theme are a bit outdated. The new theme is mobile-friendly and provides great readability. | py |
diff --git a/retask/queue.py b/retask/queue.py
index <HASH>..<HASH> 100644
--- a/retask/queue.py
+++ b/retask/queue.py
@@ -179,7 +179,7 @@ class Queue(object):
:arg task: ::class:`~retask.task.Task` object
- :return: Tuple with ``Boolean`` value and ``string`` message.
+ :return: :class:`~ret... | updated more docstrings and enqueue method | py |
diff --git a/biopandas/pdb/pandas_pdb.py b/biopandas/pdb/pandas_pdb.py
index <HASH>..<HASH> 100644
--- a/biopandas/pdb/pandas_pdb.py
+++ b/biopandas/pdb/pandas_pdb.py
@@ -623,6 +623,11 @@ class PandasPdb(object):
ends = other_records.loc[other_records["record_name"] == "ENDMDL"]
idxs.columns = ["recor... | handle indexing structures containing 1 model | py |
diff --git a/vivarium/config_tree.py b/vivarium/config_tree.py
index <HASH>..<HASH> 100644
--- a/vivarium/config_tree.py
+++ b/vivarium/config_tree.py
@@ -68,6 +68,9 @@ class ConfigNode:
return self._values[layer]
raise KeyError(layer)
+ def is_empty(self):
+ return not self._value... | Fixed error where empty ConfigNodes weren't being deleted. | py |
diff --git a/libraries/botframework-connector/microsoft/botframework/connector/auth/jwt_token_validation.py b/libraries/botframework-connector/microsoft/botframework/connector/auth/jwt_token_validation.py
index <HASH>..<HASH> 100644
--- a/libraries/botframework-connector/microsoft/botframework/connector/auth/jwt_token_... | Converted assertValidActivity method to static method | py |
diff --git a/test_tube/log.py b/test_tube/log.py
index <HASH>..<HASH> 100644
--- a/test_tube/log.py
+++ b/test_tube/log.py
@@ -148,7 +148,7 @@ class Experiment(SummaryWriter):
# set the tensorboardx log path to the /tf folder in the exp folder
logdir = self.get_tensorboardx_path(self.name, self.vers... | removed tensorboardx scalar writer | py |
diff --git a/gui/riabdock.py b/gui/riabdock.py
index <HASH>..<HASH> 100644
--- a/gui/riabdock.py
+++ b/gui/riabdock.py
@@ -353,14 +353,14 @@ class RiabDock(QtGui.QDockWidget):
Raises:
no
"""
- #settrace()
+ settrace()
self.ui.cboFunction.clear()
# get the ke... | Small bugfix in get available functions logic. | py |
diff --git a/pyblish_qml/models.py b/pyblish_qml/models.py
index <HASH>..<HASH> 100644
--- a/pyblish_qml/models.py
+++ b/pyblish_qml/models.py
@@ -139,7 +139,7 @@ class Model(QtCore.QAbstractListModel):
return type(item).__name__
if role in self.roles:
- return getattr(item, self.role... | Safeguarding Model in model.py against nonexisting property queries. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,9 +9,9 @@ from setuptools import setup
def read_file(filename, alt=None):
- '''
+ """
Read the contents of filename or give an alternative result instead.
- '''
+ """
lines = None
try:
... | setup.py: Fix warning from pep<I>. | py |
diff --git a/django_extensions/management/commands/runscript.py b/django_extensions/management/commands/runscript.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/runscript.py
+++ b/django_extensions/management/commands/runscript.py
@@ -89,8 +89,6 @@ class Command(EmailNotificationCommand):
... | removed excess calls of "check" and "check_migrations" methods (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ def get_version():
reqs = ['numpy>=1.10',
'scipy>=0.16',
- 'astropy>=1.0',
+ 'astropy>=2.0, <3',
'pprocess>=0.5',
'healpy >=1.10'] | restrict astropy to be v 2.x (for now) | py |
diff --git a/cobra/solvers/cplex_solver.py b/cobra/solvers/cplex_solver.py
index <HASH>..<HASH> 100644
--- a/cobra/solvers/cplex_solver.py
+++ b/cobra/solvers/cplex_solver.py
@@ -241,7 +241,7 @@ def set_quadratic_objective(lp, quadratic_objective):
raise Exception('quadratic component must have method todok')
... | Fixes a problem with cplex <I> | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -20,7 +20,7 @@ master_doc = 'index'
# General information about the project.
project = u'metric-learn'
-copyright = (u'2015-2019, CJ Carey, Yuan Tang, William de Vazelhes, Aurélien '
+copyright = (u'2015-2020, ... | Update <I> to <I> | py |
diff --git a/django_plotly_dash/dash_wrapper.py b/django_plotly_dash/dash_wrapper.py
index <HASH>..<HASH> 100644
--- a/django_plotly_dash/dash_wrapper.py
+++ b/django_plotly_dash/dash_wrapper.py
@@ -56,7 +56,10 @@ def get_local_stateless_by_name(name):
'''
name = slugify(name)
# TODO wrap this in raising... | Added error message when DjangoDash app not found | py |
diff --git a/skorch/tests/test_net.py b/skorch/tests/test_net.py
index <HASH>..<HASH> 100644
--- a/skorch/tests/test_net.py
+++ b/skorch/tests/test_net.py
@@ -1092,6 +1092,14 @@ class TestNeuralNet:
assert y_proba.min() >= 0
assert y_proba.max() <= 1
+ def test_set_params_with_unknown_key_raises(... | Fix failing test after sklearn update. sklearn <I> changed error message when calling set_params with wrong key. | py |
diff --git a/cwltool/process.py b/cwltool/process.py
index <HASH>..<HASH> 100644
--- a/cwltool/process.py
+++ b/cwltool/process.py
@@ -299,7 +299,8 @@ def relocateOutputs(outputObj, # type: Union[Dict[Text, Any],List[Di
if src == dst:
return
- if action == "move":
+ _ac... | fix: copy files if we couldn't move them | py |
diff --git a/wallace/command_line.py b/wallace/command_line.py
index <HASH>..<HASH> 100755
--- a/wallace/command_line.py
+++ b/wallace/command_line.py
@@ -125,15 +125,24 @@ def deploy():
# Set up postgres database and AWS/psiTurk environment variables.
cmds = [
"heroku addons:add heroku-postgresql:ho... | Set HOST environment variable when deploying | py |
diff --git a/ib_insync/decoder.py b/ib_insync/decoder.py
index <HASH>..<HASH> 100644
--- a/ib_insync/decoder.py
+++ b/ib_insync/decoder.py
@@ -1212,16 +1212,16 @@ class Decoder:
o.isOmsContainer = fields.pop(0)
(
- autoCancelDate,
- filledQuantity,
- refFuturesCo... | Finish decoder.completedOrder | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -284,6 +284,7 @@ if on_rtd:
'cvxpy',
'numexpr',
'numpy',
+ 'osqp',
'pandas',
'pandas.api.types',
'scipy',
@@ -314,6 +315,7 @@ if on_rtd:
'sklear... | DOC: Mock names starting with '_' as modules | py |
diff --git a/siphon/catalog.py b/siphon/catalog.py
index <HASH>..<HASH> 100644
--- a/siphon/catalog.py
+++ b/siphon/catalog.py
@@ -400,8 +400,7 @@ def _get_latest_cat(catalog_url):
"""
cat = TDSCatalog(catalog_url)
for service in cat.services:
- if (service.name.lower() == "latest" and
- ... | Remove restriction on resolver service name In TDS <I>, the latest service had a `name` of `Latest` and a `serviceType` of `Resolver`, at least on Unidata servers. In <I>, the name has changed to simply `Resolver`, as part of the new Standard Service feature. The name was always configurable by the server admin, so th... | py |
diff --git a/bedup/filesystem.py b/bedup/filesystem.py
index <HASH>..<HASH> 100644
--- a/bedup/filesystem.py
+++ b/bedup/filesystem.py
@@ -523,6 +523,10 @@ class WholeFS(object):
for volpath in volpaths:
vol = self._get_vol_by_path(volpath, desc=VolDesc(volpath, True))
if recurse:
+ ... | Warn when some subvolumes aren't included. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -268,8 +268,7 @@ setup(cmdclass=dict(build_ext=BuildExt), # this to allow compiler check above
'galpy/df':['data/*.sav'],
"": ["README.md","README.dev","LICENSE","AUTHORS.rst"]},
... | Remove future and setuptools from install_requires, becauuse future should no longer be required and setuptools hasn't been required for a while at least | py |
diff --git a/gpiozero/output_devices.py b/gpiozero/output_devices.py
index <HASH>..<HASH> 100644
--- a/gpiozero/output_devices.py
+++ b/gpiozero/output_devices.py
@@ -168,20 +168,6 @@ class LED(DigitalOutputDevice):
pass
-class Relay(DigitalOutputDevice):
- """
- A relay (electro-mechanical switching) co... | Remove relay class, re: #<I> | py |
diff --git a/cherrypy/lib/httpauth.py b/cherrypy/lib/httpauth.py
index <HASH>..<HASH> 100644
--- a/cherrypy/lib/httpauth.py
+++ b/cherrypy/lib/httpauth.py
@@ -319,10 +319,12 @@ def _checkDigestResponse(auth_map, password, method = "GET", A1 = None, **kwargs
def _checkBasicResponse (auth_map, password, method='GET', en... | do not attempt a call to None | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from distutils.core import setup
setup(
name='cutil',
packages=['cutil'],
- version='2.5.10',
+ version='2.5.11',
description='A collection of useful functions',
author='Eddy Hintze',
... | added psycopg2 to install_requires, version bump | py |
diff --git a/salt/fileserver/roots.py b/salt/fileserver/roots.py
index <HASH>..<HASH> 100644
--- a/salt/fileserver/roots.py
+++ b/salt/fileserver/roots.py
@@ -310,7 +310,7 @@ def _file_lists(load, form):
__opts__, form, list_cache, w_lock
)
if cache_match is not None:
- log.debug("Retu... | Add cache file name to list cache log | py |
diff --git a/ca/django_ca/subject.py b/ca/django_ca/subject.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/subject.py
+++ b/ca/django_ca/subject.py
@@ -22,6 +22,7 @@ from typing import Iterable
from typing import List
from typing import Mapping
from typing import Optional
+from typing import Sequence
from typing... | generalize a bit more with Mapping | py |
diff --git a/hwt/hdlObjects/types/struct.py b/hwt/hdlObjects/types/struct.py
index <HASH>..<HASH> 100644
--- a/hwt/hdlObjects/types/struct.py
+++ b/hwt/hdlObjects/types/struct.py
@@ -17,13 +17,14 @@ class HStruct(HdlType):
@param name: optional name used for debugging purposes
"""
self.fields... | HStruct fix name propagation | py |
diff --git a/scanpy/data_structs/data_graph.py b/scanpy/data_structs/data_graph.py
index <HASH>..<HASH> 100644
--- a/scanpy/data_structs/data_graph.py
+++ b/scanpy/data_structs/data_graph.py
@@ -172,7 +172,13 @@ class DataGraph(object):
if 'xroot' in adata.add: xroot = adata.add['xroot']
elif 'xroot' ... | raise warning when root cell does not match | py |
diff --git a/pyres/__init__.py b/pyres/__init__.py
index <HASH>..<HASH> 100644
--- a/pyres/__init__.py
+++ b/pyres/__init__.py
@@ -65,7 +65,7 @@ def setup_pidfile(path):
if not path:
return
dirname = os.path.dirname(path)
- if not os.path.exists(dirname):
+ if dirname and not os.path.exists(dir... | In setup_pidfuile, if path is relative to . (i.e. -p my.pid) then os.path.dirname results in an empty string with os.makedirs will choke on. | py |
diff --git a/isort/core.py b/isort/core.py
index <HASH>..<HASH> 100644
--- a/isort/core.py
+++ b/isort/core.py
@@ -7,7 +7,7 @@ import isort.literal
from isort.settings import DEFAULT_CONFIG, Config
from . import output, parse
-from .exceptions import FileSkipComment
+from .exceptions import ExistingSyntaxErrors, Fi... | Add check for missing parenthesis at EOF | py |
diff --git a/matrix_client/api.py b/matrix_client/api.py
index <HASH>..<HASH> 100644
--- a/matrix_client/api.py
+++ b/matrix_client/api.py
@@ -356,7 +356,7 @@ class MatrixHttpApi(object):
"/rooms/%s/state/m.room.member/%s" % (room_id, user_id)
)
- def set_membership(self, room_id, user_id, me... | reason then profile for backwards compat | py |
diff --git a/rejected/__init__.py b/rejected/__init__.py
index <HASH>..<HASH> 100644
--- a/rejected/__init__.py
+++ b/rejected/__init__.py
@@ -4,6 +4,6 @@ Rejected, a Python AMQP Consumer daemon
"""
__author__ = 'Gavin M. Roy <gmr@myyearbook.com>'
__since__ = "2009-09-10"
-__version__ = "2.0.4"
+__version__ = "2.... | Bugfix for the Consumer -> RejectedConsumer revision bump | py |
diff --git a/bibliopixel/animation/fill.py b/bibliopixel/animation/fill.py
index <HASH>..<HASH> 100644
--- a/bibliopixel/animation/fill.py
+++ b/bibliopixel/animation/fill.py
@@ -17,4 +17,4 @@ class Fill(Animation):
def step(self, amt=1):
n = len(self.color_list)
- self.color_list[:] = (self.pale... | Fix issue with animation.fill.Fill | py |
diff --git a/angr/procedures/linux_kernel/getrlimit.py b/angr/procedures/linux_kernel/getrlimit.py
index <HASH>..<HASH> 100644
--- a/angr/procedures/linux_kernel/getrlimit.py
+++ b/angr/procedures/linux_kernel/getrlimit.py
@@ -17,7 +17,7 @@ class getrlimit(angr.SimProcedure):
if self.state.se.eval(resource) ==... | Misplaced paren This is why type checking was invented, thanks python. | py |
diff --git a/rivescript/rivescript.py b/rivescript/rivescript.py
index <HASH>..<HASH> 100644
--- a/rivescript/rivescript.py
+++ b/rivescript/rivescript.py
@@ -182,12 +182,13 @@ class RiveScript(object):
self._warn("Error: " + directory + " is not a directory.")
return
- for item in os... | Added recursive loading to load_directory | py |
diff --git a/psamm/datasource/sbml.py b/psamm/datasource/sbml.py
index <HASH>..<HASH> 100644
--- a/psamm/datasource/sbml.py
+++ b/psamm/datasource/sbml.py
@@ -841,7 +841,7 @@ class SBMLReader(object):
class SBMLWriter(object):
- """Writer of SBML files"""
+ """Writer of SBML files."""
def __init__(sel... | sbml: Expand SBMLWriter docstrings | py |
diff --git a/tests/test_meta.py b/tests/test_meta.py
index <HASH>..<HASH> 100644
--- a/tests/test_meta.py
+++ b/tests/test_meta.py
@@ -13,7 +13,6 @@ pep517_needs_python_3 = pytest.mark.xfail(
)
-@pep517_needs_python_3
def test_meta_for_this_package():
dist = meta.load('.')
assert re.match(r'[\d.]+', dis... | un-xfail passing tests | py |
diff --git a/openpnm/topotools/plottools.py b/openpnm/topotools/plottools.py
index <HASH>..<HASH> 100644
--- a/openpnm/topotools/plottools.py
+++ b/openpnm/topotools/plottools.py
@@ -767,7 +767,7 @@ def _generate_voxel_image(network, pore_shape, throat_shape, max_dim=200):
# Distance bounding box from the network ... | removing an instance of net._spacing | py |
diff --git a/src/txacme/challenges/_libcloud.py b/src/txacme/challenges/_libcloud.py
index <HASH>..<HASH> 100644
--- a/src/txacme/challenges/_libcloud.py
+++ b/src/txacme/challenges/_libcloud.py
@@ -60,6 +60,10 @@ class LibcloudDNSResponder(object):
"""
A ``dns-01`` challenge responder using libcloud.
+ ... | Warn about broken libcloud backends. | py |
diff --git a/TodoParser.py b/TodoParser.py
index <HASH>..<HASH> 100644
--- a/TodoParser.py
+++ b/TodoParser.py
@@ -63,11 +63,11 @@ def parse_line(p_string):
rest = normal_head.group('rest')
for word in rest.split():
- project = re.match(r'\+(.*)', word)
+ project = re.match(r'\+(\S+)', wor... | Don't allow empty project or context names. A @ or + must be followed by at least one non-whitespace character to qualify. | py |
diff --git a/wallace/command_line.py b/wallace/command_line.py
index <HASH>..<HASH> 100755
--- a/wallace/command_line.py
+++ b/wallace/command_line.py
@@ -223,7 +223,19 @@ def deploy(verbose):
else:
OUT = open(os.devnull, 'w')
- (id, starting_branch) = setup(debug=False, verbose=verbose)
+ (id, st... | Fix deployment bug with tmp directories | py |
diff --git a/dipper/sources/OMIA.py b/dipper/sources/OMIA.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/OMIA.py
+++ b/dipper/sources/OMIA.py
@@ -54,7 +54,10 @@ class OMIA(Source):
files = {
'data': {
'file': 'omia.xml.gz',
- 'url': 'http://omia.angis.org.au/dumps/omia.xml.gz'... | file is there just via redirects, try skiping intermediate url | py |
diff --git a/src/pypom/splinter_driver.py b/src/pypom/splinter_driver.py
index <HASH>..<HASH> 100644
--- a/src/pypom/splinter_driver.py
+++ b/src/pypom/splinter_driver.py
@@ -5,7 +5,6 @@
from splinter.driver.webdriver.chrome import WebDriver as ChromeWebDriver
from splinter.driver.webdriver.firefox import WebDriver... | remove phantomjs in splinter_driver (dropped phantomjs support in splinter <I>) | py |
diff --git a/src/hamster/lib/__init__.py b/src/hamster/lib/__init__.py
index <HASH>..<HASH> 100644
--- a/src/hamster/lib/__init__.py
+++ b/src/hamster/lib/__init__.py
@@ -110,11 +110,11 @@ class Fact(object):
'activity': self.activity,
'category': self.category,
'description': sel... | more serialization fixes. does not affect any existing functionality | py |
diff --git a/buildbot/db/dbspec.py b/buildbot/db/dbspec.py
index <HASH>..<HASH> 100644
--- a/buildbot/db/dbspec.py
+++ b/buildbot/db/dbspec.py
@@ -224,4 +224,7 @@ class DBSpec(object):
return adbapi.ConnectionPool(self.dbapiName, *self.connargs, **connkw)
def get_maxidle(self):
- return self.... | max_idle default should be <I> for sync. MySQL connections | py |
diff --git a/pymc/utilities.py b/pymc/utilities.py
index <HASH>..<HASH> 100644
--- a/pymc/utilities.py
+++ b/pymc/utilities.py
@@ -2,6 +2,27 @@
import numpy as np
+def autocorr(x, lag=1):
+ """Sample autocorrelation at specified lag.
+ The autocorrelation is the correlation of x_i with x_{i+lag}.
+ """
+
... | Added autocorrelation and autocovariance functions to utilities. | py |
diff --git a/MySQLdb/MySQLdb/times.py b/MySQLdb/MySQLdb/times.py
index <HASH>..<HASH> 100644
--- a/MySQLdb/MySQLdb/times.py
+++ b/MySQLdb/MySQLdb/times.py
@@ -88,8 +88,8 @@ except ImportError:
"""Format a date as a date (does nothing, you don't have mx.DateTime)."""
return d
- format_TIME = forma... | Fix the case where there is no mx.DateTime. | py |
diff --git a/src/pybel/parser/parse_control.py b/src/pybel/parser/parse_control.py
index <HASH>..<HASH> 100644
--- a/src/pybel/parser/parse_control.py
+++ b/src/pybel/parser/parse_control.py
@@ -234,9 +234,9 @@ class ControlParser(BaseParser):
else:
if 3 == len(values):
- logger.w... | Change logging level [skip ci] | py |
diff --git a/nolearn/lasagne/base.py b/nolearn/lasagne/base.py
index <HASH>..<HASH> 100644
--- a/nolearn/lasagne/base.py
+++ b/nolearn/lasagne/base.py
@@ -748,6 +748,7 @@ class NeuralNet(BaseEstimator):
if self.custom_scores:
y_prob = self.apply_batch_func(self.predict_iter_, Xb)... | No longer send a list to custom scores if y_prob is single output | py |
diff --git a/src/discoursegraphs/readwrite/mmax2.py b/src/discoursegraphs/readwrite/mmax2.py
index <HASH>..<HASH> 100755
--- a/src/discoursegraphs/readwrite/mmax2.py
+++ b/src/discoursegraphs/readwrite/mmax2.py
@@ -447,6 +447,11 @@ def sort_sentences_by_token_order(sentence_root_nodes, token_nodes):
sentence_token... | mmax: added read_mmax2() pseudo-function | py |
diff --git a/tools/rw-heatmaps/plot_data.py b/tools/rw-heatmaps/plot_data.py
index <HASH>..<HASH> 100755
--- a/tools/rw-heatmaps/plot_data.py
+++ b/tools/rw-heatmaps/plot_data.py
@@ -23,9 +23,11 @@ def parse_args():
help='second input data files in csv format. (optional)')
parser.add_argum... | tools: fix small rw-heatmaps python plot script argument parsing bug (cherry picked from commit 5b6b3ffe0b9fca7c<I>edfc<I>e<I>d<I>) | py |
diff --git a/tarbell/cli.py b/tarbell/cli.py
index <HASH>..<HASH> 100644
--- a/tarbell/cli.py
+++ b/tarbell/cli.py
@@ -300,8 +300,11 @@ def tarbell_newproject(args):
_configure_remotes(repo)
puts("\nAll done! To preview your new project, type:\n")
- puts(" {0}".format(colored.green("cd %s"... | Cut down on typing in final new project instructions if projects path exists | py |
diff --git a/add_popover.py b/add_popover.py
index <HASH>..<HASH> 100644
--- a/add_popover.py
+++ b/add_popover.py
@@ -100,8 +100,17 @@ class Add_Popover(Gtk.Window):
self.addCategoryComboBoxText.append_text(self.data.expenseMenu[i][1])
def on_addSubmitButton_clicked(self, *args):
- ... | Building add entry string to be exported to database | py |
diff --git a/libvcs/git.py b/libvcs/git.py
index <HASH>..<HASH> 100644
--- a/libvcs/git.py
+++ b/libvcs/git.py
@@ -120,7 +120,13 @@ class GitRepo(BaseRepo):
return url, rev
def obtain(self):
- """Retrieve the repository, clone if doesn't exist."""
+ """Retrieve the repository, clone if doe... | GitRepo.obtain: Don't set remotes | py |
diff --git a/test/test_unit.py b/test/test_unit.py
index <HASH>..<HASH> 100755
--- a/test/test_unit.py
+++ b/test/test_unit.py
@@ -434,7 +434,7 @@ class TestFileSequence(TestBase):
self.assertEquals(len(seq), 5)
self.assertEquals(seq.padding(), '%04d')
- def ringSubclasses(self):
+ def testStr... | Fix misnamed unittest not running | py |
diff --git a/scenarios/kubernetes_e2e.py b/scenarios/kubernetes_e2e.py
index <HASH>..<HASH> 100755
--- a/scenarios/kubernetes_e2e.py
+++ b/scenarios/kubernetes_e2e.py
@@ -496,7 +496,7 @@ def create_parser():
parser.add_argument(
'--kubeadm', choices=['ci', 'periodic', 'pull'])
parser.add_argument(
- ... | Bump kubekins image to <I>-a<I> | py |
diff --git a/configlib/__init__.py b/configlib/__init__.py
index <HASH>..<HASH> 100644
--- a/configlib/__init__.py
+++ b/configlib/__init__.py
@@ -1,4 +1,4 @@
from .configlib import getConfig
from optparse import OptionParser
-__all__ = [getConfig, OptionParser]
+__all__ = ['getConfig', 'OptionParser'] | correct the __all__ | py |
diff --git a/lollygag/dependency_injection/inject.py b/lollygag/dependency_injection/inject.py
index <HASH>..<HASH> 100644
--- a/lollygag/dependency_injection/inject.py
+++ b/lollygag/dependency_injection/inject.py
@@ -1,3 +1,4 @@
+import json
DEFAULT_CONFIG = {
"return_factory": False,
"cache": True
@@ -52,... | Better cache features based on the request configurations | py |
diff --git a/cerberus/schema.py b/cerberus/schema.py
index <HASH>..<HASH> 100644
--- a/cerberus/schema.py
+++ b/cerberus/schema.py
@@ -193,6 +193,7 @@ class ValidatedSchema(MutableMapping):
:param schema: A definition-schema as ``dict``. Defaults to an empty
one.
"""
+ s... | Initializes ValidatedSchema.__repr__ content immediately on creation | py |
diff --git a/submissions/api.py b/submissions/api.py
index <HASH>..<HASH> 100644
--- a/submissions/api.py
+++ b/submissions/api.py
@@ -89,6 +89,7 @@ class SubmissionRequestError(SubmissionError):
if field_errors is not None
else {}
)
+ self.args += (self.field_errors,)
d... | Fix exception printing and log upon error. | py |
diff --git a/gcloud/storage/key.py b/gcloud/storage/key.py
index <HASH>..<HASH> 100644
--- a/gcloud/storage/key.py
+++ b/gcloud/storage/key.py
@@ -165,7 +165,9 @@ class Key(object):
:rtype: :class:`Key`
:returns: The key that was just deleted.
- :raises: :class:`gcloud.storage.exceptions.NotF... | Note source of exception. Incorporates feedback from @dhermes. | py |
diff --git a/salt/cli/__init__.py b/salt/cli/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/cli/__init__.py
+++ b/salt/cli/__init__.py
@@ -16,7 +16,7 @@ except:
# Import salt components
import salt.client
import salt.cli.key
-import salt.cli.ftp
+import salt.cli.cp
class SaltCMD(object):
'''
@@ -184,9 +1... | chaneg the startup chain from salt-ftp to salt-cp | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@ params = dict(
author = "Farzad Ghanei",
url = "http://github.com/farzadghanei/distutilazy/",
packages = setuptools and find_packages() or ["distutilazy", "tests"],
- version = distutilazy.vers... | Fixed bug in setup.py referencing version instead of __version__ | py |
diff --git a/publ/rendering.py b/publ/rendering.py
index <HASH>..<HASH> 100644
--- a/publ/rendering.py
+++ b/publ/rendering.py
@@ -402,15 +402,17 @@ def admin_dashboard(by=None): # pylint:disable=invalid-name
log, remain = user.auth_log(start=offset, count=count, days=days)
- return render_publ_template(tm... | Return the *correct* thing from render_admin_dashboard Somehow this was working in Flask's debug server but gunicorn had none of it | py |
diff --git a/mambustruct.py b/mambustruct.py
index <HASH>..<HASH> 100644
--- a/mambustruct.py
+++ b/mambustruct.py
@@ -63,6 +63,9 @@ class MambuStruct(object):
(jsresp[u'returnStatus'] == u'INVALID_LOAN_ACCOUNT_ID')):
raise PodemosError(ERROR_CODES["ACCOUNT_NOT_FOUND"])
+ ... | Add Comm Error exception when an invalid status for an account is requested | py |
diff --git a/prometheus_client/exposition.py b/prometheus_client/exposition.py
index <HASH>..<HASH> 100644
--- a/prometheus_client/exposition.py
+++ b/prometheus_client/exposition.py
@@ -11,7 +11,7 @@ from contextlib import closing
from wsgiref.simple_server import make_server, WSGIRequestHandler
from prometheus_cl... | Fix import of openmetrics, and make accept handling more general. (#<I>) | py |
diff --git a/jsonfield/fields.py b/jsonfield/fields.py
index <HASH>..<HASH> 100644
--- a/jsonfield/fields.py
+++ b/jsonfield/fields.py
@@ -2,7 +2,11 @@ import copy
from django.db import models
from django.core.serializers.json import DjangoJSONEncoder
from django.utils.translation import ugettext_lazy as _
-from dja... | Update fields.py try to import django.utils.six else fallback if present to six | py |
diff --git a/filer/__init__.py b/filer/__init__.py
index <HASH>..<HASH> 100644
--- a/filer/__init__.py
+++ b/filer/__init__.py
@@ -1,6 +1,6 @@
"""
django-filer - file and image management for django projects
"""
-VERSION = (0,6,2,'a3')
-__version__ = "0.6.2a3"
+VERSION = (0,6,2,'a4')
+__version__ = "0.6.2a4"
__auth... | forgot version bump to <I>a4 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -34,6 +34,7 @@ setup(
"Intended Audience :: Developers",
],
install_requires=open("requirements.txt").readlines(),
+ extras_require={"speedups": ["secp256k1>=0.13.2"]},
setup_requires=["pytest-runner... | Add secp<I>k1 as extras_require | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.