diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/src/ocrmypdf/__main__.py b/src/ocrmypdf/__main__.py
index <HASH>..<HASH> 100755
--- a/src/ocrmypdf/__main__.py
+++ b/src/ocrmypdf/__main__.py
@@ -787,8 +787,20 @@ def report_output_file_size(options, _log, input_file, output_file):
reasons = []
if not fitz:
reasons.append("The optional d... | Expand size growth reasons to other arguments that trigger transcoding | py |
diff --git a/mad/__init__.py b/mad/__init__.py
index <HASH>..<HASH> 100644
--- a/mad/__init__.py
+++ b/mad/__init__.py
@@ -17,7 +17,7 @@
# along with MAD. If not, see <http://www.gnu.org/licenses/>.
#
-__version__ = "0.2.1"
+__version__ = "0.2.2"
__copyright_years__ = "2015, 2016" | Preparing version <I> | py |
diff --git a/stackility/CloudStackUtility.py b/stackility/CloudStackUtility.py
index <HASH>..<HASH> 100644
--- a/stackility/CloudStackUtility.py
+++ b/stackility/CloudStackUtility.py
@@ -407,6 +407,15 @@ class CloudStackUtility:
stack_name = self._config.get('environment', {}).get('stack_name', None)
... | If state is ROLLBACK_COMPLETE delete and start fresh | py |
diff --git a/textx/__init__.py b/textx/__init__.py
index <HASH>..<HASH> 100644
--- a/textx/__init__.py
+++ b/textx/__init__.py
@@ -7,4 +7,4 @@ from textx.exceptions import TextXError, TextXSyntaxError, \
from textx.langapi import get_language, iter_languages
from textx.scoping.tools import textx_isinstance
-__versi... | Change version to <I>-dev | py |
diff --git a/pandas/tseries/tests/test_plotting.py b/pandas/tseries/tests/test_plotting.py
index <HASH>..<HASH> 100644
--- a/pandas/tseries/tests/test_plotting.py
+++ b/pandas/tseries/tests/test_plotting.py
@@ -948,7 +948,7 @@ class TestTSPlot(tm.TestCase):
left_after, right_after = ax.get_xlim()
se... | TST: fixes for <I> comparisons | py |
diff --git a/testing/test_functions.py b/testing/test_functions.py
index <HASH>..<HASH> 100644
--- a/testing/test_functions.py
+++ b/testing/test_functions.py
@@ -50,14 +50,14 @@ def test_format_version(version, monkeypatch, scheme, expected):
version,
version_scheme=vs,
local_scheme=ls) == e... | Last commit failed flake8 (crappy editor). Resolved. | py |
diff --git a/jax/lax_reference.py b/jax/lax_reference.py
index <HASH>..<HASH> 100644
--- a/jax/lax_reference.py
+++ b/jax/lax_reference.py
@@ -32,7 +32,7 @@ neg = onp.negative
sign = onp.sign
floor = onp.floor
ceil = onp.ceil
-round = onp.round
+round = lambda x: onp.trunc(x + onp.copysign(.5, x))
nextafter = onp.n... | Fix lax_reference implementation of round() to match lax. (#<I>) lax.round() is documented to round half away from zero, but np.round() rounds to nearest even. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ if USE_CYTHON:
else:
extensions = no_cythonize(extensions)
-with open('README.rst') as f:
+with open('README.rst', 'r') as f:
readme = f.read()
requires = ['numpy >=1.8.0, <2.0.0']
@@ -66,14 +66,... | Make classifiers a list, not a tuple, for PyPI, and fix missing comma | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -50,7 +50,7 @@ extensions = [
]
# Install splash
-VERSION = '0.1.33'
+VERSION = '0.1.34'
logo = """
═══════════ ╔═╗┬ | Release <I> solves deprecated GMM in scikit-learn>=<I> | py |
diff --git a/lib/python/vdm/server/HTTPListener.py b/lib/python/vdm/server/HTTPListener.py
index <HASH>..<HASH> 100644
--- a/lib/python/vdm/server/HTTPListener.py
+++ b/lib/python/vdm/server/HTTPListener.py
@@ -1906,7 +1906,10 @@ class StopDatabaseAPI(MethodView):
Returns:
Status string indicating... | VDM-<I>: Internal server error (<I>) on REST database stop resolved | py |
diff --git a/astropy_helpers/version_helpers.py b/astropy_helpers/version_helpers.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/version_helpers.py
+++ b/astropy_helpers/version_helpers.py
@@ -85,7 +85,7 @@ def _version_split(version):
# details. Note that the imports have to be absolute, since this is also used... | Adding timezone info to version timestamp | py |
diff --git a/fontbakery-check-ttf.py b/fontbakery-check-ttf.py
index <HASH>..<HASH> 100755
--- a/fontbakery-check-ttf.py
+++ b/fontbakery-check-ttf.py
@@ -548,7 +548,8 @@ def main():
if family.designer.lower() == 'unknown':
logging.error("Font designer field is '{}'.".format(family.designer))
else:
- ... | fix long line just reported by flake8 | py |
diff --git a/bot/multithreading/scheduler.py b/bot/multithreading/scheduler.py
index <HASH>..<HASH> 100644
--- a/bot/multithreading/scheduler.py
+++ b/bot/multithreading/scheduler.py
@@ -10,9 +10,9 @@ from bot.multithreading.worker.pool.workers.main import QueueWorkerPool
# Default max_seconds_idle value for tempo... | Lower DEFAULT_WORKER_POOL_MAX_SECONDS_IDLE to <I> to have some margin to avoid ending workers to get a closed connection and having to open a new one while sending the end notification event | py |
diff --git a/gsh/console.py b/gsh/console.py
index <HASH>..<HASH> 100644
--- a/gsh/console.py
+++ b/gsh/console.py
@@ -16,6 +16,7 @@
#
# Copyright (c) 2006, 2007 Guillaume Chazarain <guichaz@yahoo.fr>
+import errno
import fcntl
import signal
import struct
@@ -29,14 +30,25 @@ last_status = None
stdout_is_termi... | Don't propagate a EINTR when resizing the window | py |
diff --git a/abydos/stemmer.py b/abydos/stemmer.py
index <HASH>..<HASH> 100644
--- a/abydos/stemmer.py
+++ b/abydos/stemmer.py
@@ -1711,7 +1711,7 @@ def caumanns(word):
return word
-def uealite(word, max_word_length=20, max_acro_length=8, return_rule_no=False):
+def uealite(word, max_word_length=20, return_rul... | removed recursive call, removed max_acro_length (unused) | py |
diff --git a/src/fam/blud.py b/src/fam/blud.py
index <HASH>..<HASH> 100755
--- a/src/fam/blud.py
+++ b/src/fam/blud.py
@@ -525,7 +525,7 @@ class FamObject(six.with_metaclass(GenericMetaclass)):
if alias in self.fields.keys():
self._update_property(alias, value.key, field)
- elif name in s... | allowing extra update properties from firebase sync | py |
diff --git a/gns3converter/converter.py b/gns3converter/converter.py
index <HASH>..<HASH> 100644
--- a/gns3converter/converter.py
+++ b/gns3converter/converter.py
@@ -361,12 +361,12 @@ class Converter(object):
for node in nodes:
if node['type'] == 'Cloud':
for port in ... | Fix issue with clouds not connecting when more than one cloud is used in a topology Fixes #<I> | py |
diff --git a/smmap/buf.py b/smmap/buf.py
index <HASH>..<HASH> 100644
--- a/smmap/buf.py
+++ b/smmap/buf.py
@@ -61,22 +61,17 @@ class MappedMemoryBuffer(object):
else:
l = j-i # total length
ofs = i
- # keep tokens, and join afterwards. This is faster
- # as it can preallocate the total amoint of spac... | Optimized __getslice__ implementation a bit | py |
diff --git a/imagen/ndmapping.py b/imagen/ndmapping.py
index <HASH>..<HASH> 100644
--- a/imagen/ndmapping.py
+++ b/imagen/ndmapping.py
@@ -221,6 +221,15 @@ class NdIndexableMapping(param.Parameterized):
return self.__class__(initial_items=items, **settings)
+ def empty(self):
+ """
+ Retur... | Added empty method to NdMappings The empty method creates a new NdMapping with the same parameter values and metadata as the old mapping but without any of the data. | py |
diff --git a/pythonwhat/check_funcs.py b/pythonwhat/check_funcs.py
index <HASH>..<HASH> 100644
--- a/pythonwhat/check_funcs.py
+++ b/pythonwhat/check_funcs.py
@@ -286,7 +286,7 @@ def run_call(args, node, process, get_func, **kwargs):
return get_func(process = process, tree=func_expr, call = fmt_args, **kwargs)... | call feedback msg referred to sol_code where stu_code should be | py |
diff --git a/cwltool/draft2tool.py b/cwltool/draft2tool.py
index <HASH>..<HASH> 100644
--- a/cwltool/draft2tool.py
+++ b/cwltool/draft2tool.py
@@ -210,6 +210,8 @@ class CommandLineTool(Process):
try:
gb = builder.do_eval(gb)
globpatterns.append(gb)
... | Allow to force glob: ${ return [];} for output type: ["null", File] to be null; | py |
diff --git a/cellpy/readers/cellreader.py b/cellpy/readers/cellreader.py
index <HASH>..<HASH> 100644
--- a/cellpy/readers/cellreader.py
+++ b/cellpy/readers/cellreader.py
@@ -1248,7 +1248,7 @@ class CellpyData(object):
if not os.path.isfile(filename):
self.logger.info(f"File does not exist: {fil... | raise better error when trying to load missing cellpyfile | py |
diff --git a/src/foremast/awslambda/cloudwatch_log_event/cloudwatch_log_event.py b/src/foremast/awslambda/cloudwatch_log_event/cloudwatch_log_event.py
index <HASH>..<HASH> 100644
--- a/src/foremast/awslambda/cloudwatch_log_event/cloudwatch_log_event.py
+++ b/src/foremast/awslambda/cloudwatch_log_event/cloudwatch_log_ev... | ran isort, added docstrings | py |
diff --git a/zdesk/zdesk.py b/zdesk/zdesk.py
index <HASH>..<HASH> 100644
--- a/zdesk/zdesk.py
+++ b/zdesk/zdesk.py
@@ -468,7 +468,10 @@ class Zendesk(ZendeskAPI):
six.reraise(exc_t, exc_v, exc_tb)
if resp is not None:
- retry_after = resp.headers.get('Retry-After', 0)
- ... | pass float instead of str to time.sleep | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ setup(
packages=find_packages(exclude=('termsandconditions_demo', 'tests', 'devscripts')),
include_package_data=True,
zip_safe=False,
- install_requires=['django>=1.8.3', ],
+ install_requir... | Added missing dependecy on future package | py |
diff --git a/tests/unit/test_commands.py b/tests/unit/test_commands.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_commands.py
+++ b/tests/unit/test_commands.py
@@ -410,10 +410,12 @@ class TestCommands:
"""
res = commands.define(" IRC \t")
assert isinstance(res, str)
- assert res == (
+ assert res in ... | You can't trust wordnik for nuttin' | py |
diff --git a/tests/test_ND_laminate.py b/tests/test_ND_laminate.py
index <HASH>..<HASH> 100644
--- a/tests/test_ND_laminate.py
+++ b/tests/test_ND_laminate.py
@@ -34,5 +34,4 @@ def test_ABD():
assert np.allclose(lam.D66, lam_ref.D66)
if __name__ == '__main__':
- test_trace_normalized()
test_ABD() | DEV: n-double laminate | py |
diff --git a/pyrogram/client/types/messages_and_media/message.py b/pyrogram/client/types/messages_and_media/message.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/types/messages_and_media/message.py
+++ b/pyrogram/client/types/messages_and_media/message.py
@@ -18,6 +18,7 @@
from functools import partial
from ... | Send a warning instead throwing an exeption when message type is not compatible with as_copy | py |
diff --git a/ella/newman/options.py b/ella/newman/options.py
index <HASH>..<HASH> 100644
--- a/ella/newman/options.py
+++ b/ella/newman/options.py
@@ -86,7 +86,7 @@ def formfield_for_dbfield_factory(cls, db_field, **kwargs):
if isinstance(db_field, models.ForeignKey) and issubclass(db_field.rel.to, ContentType):
... | Added obj_id to feneric fks. | py |
diff --git a/src/SALib/sample/morris/__init__.py b/src/SALib/sample/morris/__init__.py
index <HASH>..<HASH> 100644
--- a/src/SALib/sample/morris/__init__.py
+++ b/src/SALib/sample/morris/__init__.py
@@ -2,4 +2,4 @@ from .local import LocalOptimisation
from .brute import BruteForce
from .strategy import SampleMorris
... | Small change to conform to PEP8 | py |
diff --git a/tests/test_core.py b/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -187,11 +187,14 @@ class TestCore(unittest.TestCase):
def test_changes(self):
Country = warlock.model_factory(fixture)
sweden = Country(name="Sweden", population=9... | Add tests for DeprecationWarnings issued by Model.changes | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -332,6 +332,7 @@ class TestURLAssembler(unittest.TestCase):
self.assertEqual(url, expected)
+@mock.patch('httplib.HTTPConnection.request')
class TestQuery(unittest.TestCase):
origin = """{
\"DefinitionSo... | Patch httplib.HTTPConnection.request | py |
diff --git a/anom/query.py b/anom/query.py
index <HASH>..<HASH> 100644
--- a/anom/query.py
+++ b/anom/query.py
@@ -395,7 +395,7 @@ class Query(namedtuple("Query", (
entities += len(list(page))
return entities
- def delete(self, *, page_size=300, **options):
+ def delete(self, *, page_size=... | fix: use DEAFULT_BATCH_SIZE in Query.delete | py |
diff --git a/tests/python/unittest/test_random.py b/tests/python/unittest/test_random.py
index <HASH>..<HASH> 100644
--- a/tests/python/unittest/test_random.py
+++ b/tests/python/unittest/test_random.py
@@ -560,12 +560,12 @@ def test_exponential_generator():
for scale in [0.1, 1.0]:
buckets, probs... | FIX: flaky test exponential generator (#<I>) * changing success_percentage test correctness of random exponential generator to <I>% to fix its flakiness * Re-Trigger build | py |
diff --git a/src/python/pants/backend/core/tasks/task.py b/src/python/pants/backend/core/tasks/task.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/core/tasks/task.py
+++ b/src/python/pants/backend/core/tasks/task.py
@@ -123,6 +123,11 @@ class TaskBase(AbstractClass):
@property
def workdir(self):
... | Add Task.workdir docs. Testing Done: CI went green here: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -37,10 +37,10 @@ setup(
author_email='guilherme@castelao.net',
url='https://github.com/castelao/pyWOA',
packages=[
- 'WOA',
+ 'pyWOA',
],
- package_dir={'WOA':
- 'WOA'},
+ ... | Forgot to update at setup.py | py |
diff --git a/ripe/atlas/sagan/base.py b/ripe/atlas/sagan/base.py
index <HASH>..<HASH> 100644
--- a/ripe/atlas/sagan/base.py
+++ b/ripe/atlas/sagan/base.py
@@ -51,9 +51,9 @@ class ValidationMixin(DictionaryLikeMixin):
classes.
"""
- PROTOCOL_ICMP = 1
- PROTOCOL_UDP = 2
- PROTOCOL_TCP = 3
+ PROT... | Integers just weren't intuitive | py |
diff --git a/broadlink/__init__.py b/broadlink/__init__.py
index <HASH>..<HASH> 100644
--- a/broadlink/__init__.py
+++ b/broadlink/__init__.py
@@ -44,7 +44,8 @@ def gendevice(devtype, host, mac):
0x27a6, # RM2 Pro PP
0x278f, # RM Mini Shate
0x27c2, # RM Mini 3
- ... | Fix new RM mini3 (#<I>) * Fix new RM mini3 Some little change * Fix new RM mini3 Some little change | py |
diff --git a/bugwarrior/services/gitlab.py b/bugwarrior/services/gitlab.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/services/gitlab.py
+++ b/bugwarrior/services/gitlab.py
@@ -229,7 +229,7 @@ class GitlabService(IssueService):
def _fetch(self, tmpl):
url = tmpl.format(host=self.auth[0])
header... | gitlab: verify SSL certs Leftover from debugging. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,10 +1,16 @@
from setuptools import setup
+from os import path
+here = path.abspath(path.dirname(__file__))
+with open(path.join(here, 'README.md'), encoding='utf-8') as f:
+ long_description = f.read()
setup(
nam... | Update setup.py to upload long_description | py |
diff --git a/classylss/cosmology.py b/classylss/cosmology.py
index <HASH>..<HASH> 100644
--- a/classylss/cosmology.py
+++ b/classylss/cosmology.py
@@ -450,7 +450,7 @@ def sanitize_class_params(cosmo, pars):
return args
# dict mapping input CLASS params to the Cosmology attribute name
-ALIASES = {'Omega_b': 'Ome... | T_cmb has alias too (T0_cmb) | py |
diff --git a/client/modules/Weather.py b/client/modules/Weather.py
index <HASH>..<HASH> 100644
--- a/client/modules/Weather.py
+++ b/client/modules/Weather.py
@@ -76,12 +76,18 @@ def handle(text, mic, profile):
for entry in forecast:
try:
date_desc = entry['title'].split()[0].strip().lower()
... | Weather module parses global forecasts correctly The weather module now checks to see if it is a global forecast, as the parsing needs to be slightly different if so | py |
diff --git a/fluo/admin/models.py b/fluo/admin/models.py
index <HASH>..<HASH> 100644
--- a/fluo/admin/models.py
+++ b/fluo/admin/models.py
@@ -46,6 +46,8 @@ __all__ = [
'TreeOrderedModelAdmin',
'CategoryModelAdmin',
'ReadOnlyMixin',
+ 'ReadOnlyModelAdmin',
+ 'ReadOnlyInlineMixin',
'ReadOnlySta... | admin: extract ReadOnlyInlineMixin from ReadOnlyMixin and added ReadOnlyModelAdmin | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
+import os
import re
import sys
from setuptools import setup, find_packages
@@ -13,6 +14,11 @@ TEST_REQUIRES = [
]
+if sys.argv[-1] == 'publish':
+ os.system('python setup.py ... | Adds publish option to setup.py. | py |
diff --git a/s3upload/settings.py b/s3upload/settings.py
index <HASH>..<HASH> 100644
--- a/s3upload/settings.py
+++ b/s3upload/settings.py
@@ -24,4 +24,4 @@ EXPIRATION_TIMEDELTA = getattr(
settings, 'S3UPLOAD_EXPIRATION_TIMEDELTA', timedelta(minutes=30))
-SET_CONTENT_TYPE = setattr(settings, 'S3UPLOAD_SET_CONT... | Corrected typo bug in settings, which was not returning SET_CONTENT_TYPE correctly. | py |
diff --git a/devassistant/command_runners.py b/devassistant/command_runners.py
index <HASH>..<HASH> 100644
--- a/devassistant/command_runners.py
+++ b/devassistant/command_runners.py
@@ -477,6 +477,7 @@ class GitHubCommandRunner(CommandRunner):
_required_yaml_args = {'default': ['login', 'reponame'],
... | Specify required YAML args for github.add_remote_origin The command would not run without it (and it didn't) | py |
diff --git a/src/transformers/models/auto/tokenization_auto.py b/src/transformers/models/auto/tokenization_auto.py
index <HASH>..<HASH> 100644
--- a/src/transformers/models/auto/tokenization_auto.py
+++ b/src/transformers/models/auto/tokenization_auto.py
@@ -223,6 +223,13 @@ else:
"CLIPTokenizerFas... | Adding `Perceiver` to `AutoTokenizer`. (#<I>) | py |
diff --git a/salt/modules/augeas_cfg.py b/salt/modules/augeas_cfg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/augeas_cfg.py
+++ b/salt/modules/augeas_cfg.py
@@ -141,7 +141,7 @@ def execute(context=None, lens=None, commands=()):
path = os.path.join(context.rstrip('/'), path.lstrip('/'))
... | Update augeas_cfg.py Corrects the order of parsed arguments to the augeas insert function - resolves #<I> | py |
diff --git a/salt/modules/win_useradd.py b/salt/modules/win_useradd.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_useradd.py
+++ b/salt/modules/win_useradd.py
@@ -341,7 +341,7 @@ def info(name):
ret['logonscript'] = items['script_path']
ret['profile'] = items['profile']
if not ret['pr... | Fixed win_useradd.py The real fix. Instead of getting vdata in the calling function, _get_userprofile_from_registry should return just the profile and not a dict full of a bunch of crap. This also fixes the debug log for the _get_userprofile_from_registry function. | py |
diff --git a/spikeextractors/extractors/nwbextractors/nwbextractors.py b/spikeextractors/extractors/nwbextractors/nwbextractors.py
index <HASH>..<HASH> 100644
--- a/spikeextractors/extractors/nwbextractors/nwbextractors.py
+++ b/spikeextractors/extractors/nwbextractors/nwbextractors.py
@@ -1113,7 +1113,8 @@ class NwbSo... | more informative err msg when acquisition data missing when loading sortingextractor from nwb file and no SF given | py |
diff --git a/dwave/cloud/upload.py b/dwave/cloud/upload.py
index <HASH>..<HASH> 100644
--- a/dwave/cloud/upload.py
+++ b/dwave/cloud/upload.py
@@ -91,6 +91,11 @@ class FileBuffer(RandomAccessIOBaseBuffer):
# store file size, assuming it won't change
self._size = fp.seek(0, os.SEEK_END)
+ if s... | Python 2 fix: file.seek does not return position | py |
diff --git a/cmsplugin_cascade/models_base.py b/cmsplugin_cascade/models_base.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/models_base.py
+++ b/cmsplugin_cascade/models_base.py
@@ -66,13 +66,14 @@ class CascadeModelBase(CMSPlugin):
This is done by starting from the root element down to the current el... | get_complete_glossary caches its result | py |
diff --git a/fireplace/cards/wog/paladin.py b/fireplace/cards/wog/paladin.py
index <HASH>..<HASH> 100644
--- a/fireplace/cards/wog/paladin.py
+++ b/fireplace/cards/wog/paladin.py
@@ -21,6 +21,16 @@ class OG_221:
##
# Spells
+class OG_223:
+ "Divine Strength"
+ play = Buff(TARGET, "OG_223e")
+
+OG_223e = buff(+1, +2... | Implement Divine Strength and Stand Against Darkness | py |
diff --git a/windows_service/datadog_checks/windows_service/windows_service.py b/windows_service/datadog_checks/windows_service/windows_service.py
index <HASH>..<HASH> 100644
--- a/windows_service/datadog_checks/windows_service/windows_service.py
+++ b/windows_service/datadog_checks/windows_service/windows_service.py
@... | Add debug line to compare service name, short name and pattern (#<I>) | py |
diff --git a/condoor/actions.py b/condoor/actions.py
index <HASH>..<HASH> 100644
--- a/condoor/actions.py
+++ b/condoor/actions.py
@@ -75,6 +75,7 @@ def a_unable_to_connect(ctx):
def a_standby_console(ctx):
"""Raise ConnectionError exception when connected to standby console."""
ctx.device.is_console = True
... | Disconnect added to a_standby_console | py |
diff --git a/datacache/db.py b/datacache/db.py
index <HASH>..<HASH> 100644
--- a/datacache/db.py
+++ b/datacache/db.py
@@ -44,7 +44,7 @@ def db_has_version(db):
def db_version(db):
query = "SELECT version FROM %s" % METADATA_COLUMN_NAME
cursor = db.execute(query)
- return int(cursor.fetchone()[0])
+ r... | small fix to db version check | py |
diff --git a/jax/interpreters/xla.py b/jax/interpreters/xla.py
index <HASH>..<HASH> 100644
--- a/jax/interpreters/xla.py
+++ b/jax/interpreters/xla.py
@@ -616,8 +616,11 @@ class DeviceArray(DeviceValue):
self._npy_value = None
def __repr__(self):
- s = onp.array2string(self._value, prefix='DeviceArray(', s... | Update DeviceArray.__repr__ so it works for subclasses. (#<I>) | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -5,6 +5,8 @@
# was previously created using Cython).
USE_CYTHON = True
+VERSION_STRING = '0.8.1'
+
import sys
@@ -37,7 +39,7 @@ else:
setup(
name='simplerandom',
- version='0.8.1... | Move version string to a config variable near the top of the file. | py |
diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/integration/__init__.py
+++ b/tests/integration/__init__.py
@@ -84,7 +84,7 @@ USE_CASS_EXTERNAL = bool(os.getenv('USE_CASS_EXTERNAL', False))
default_cassandra_version = '2.1.2'
-if USE_CASS_EXTERNAL ... | Don't require ccm for USE_CASS_EXTERNAL, for real | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -20,8 +20,9 @@ setup(name='fedex',
version=fedex.VERSION,
description='Fedex Web Services API wrapper.',
long_description=LONG_DESCRIPTION,
- author='Python Fedex Developers',
+ author='Greg ... | Re-adding myself as the original author in setup.py, setting Python Fedex Devs as the current maintainer. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ version = '0.0.7'
install_requires = (
'djangorestframework>=2.3.12,<3',
- 'incuna_mail>=0.1.1',
+ 'incuna_mail>=0.1.1,<0.2',
)
extras_require = { | Restrict incuna_mail due to change in kwargs. | py |
diff --git a/cumulusci/core/tests/test_salesforce.py b/cumulusci/core/tests/test_salesforce.py
index <HASH>..<HASH> 100644
--- a/cumulusci/core/tests/test_salesforce.py
+++ b/cumulusci/core/tests/test_salesforce.py
@@ -66,7 +66,7 @@ class TestKeyword_wait_until_salesforce_is_ready(unittest.TestCase):
#... | Attempt 3 at improving this test's stability. | py |
diff --git a/pycdlib/eltorito.py b/pycdlib/eltorito.py
index <HASH>..<HASH> 100644
--- a/pycdlib/eltorito.py
+++ b/pycdlib/eltorito.py
@@ -583,7 +583,7 @@ class EltoritoBootCatalog(object):
self.dirrecords = []
self._initialized = False
self.br = br
- self.initial_entry = None
+ ... | Unconditionally create an El Torito Initial Entry. The boot catalog has to have one anyway. | py |
diff --git a/bedup/syncfs.py b/bedup/syncfs.py
index <HASH>..<HASH> 100644
--- a/bedup/syncfs.py
+++ b/bedup/syncfs.py
@@ -26,7 +26,9 @@ ffi.cdef('''
''')
lib = ffi.verify('''
#include <unistd.h>
- ''', ext_package='bedup')
+ ''',
+ extra_compile_args=['-D_GNU_SOURCE'],
+ ext_package='bedup')
... | Fix a build-time warning. | py |
diff --git a/songpal/containers.py b/songpal/containers.py
index <HASH>..<HASH> 100644
--- a/songpal/containers.py
+++ b/songpal/containers.py
@@ -164,7 +164,7 @@ class Volume:
@attr.s
class Power:
- standbyDetail = attr.ib()
+ standbyDetail = attr.ib(default=None)
status = attr.ib(convert=lambda x: True... | make standbyDetail optional fixes the issue mentioned in #2 | py |
diff --git a/spyder/plugins/pylint/main_widget.py b/spyder/plugins/pylint/main_widget.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/pylint/main_widget.py
+++ b/spyder/plugins/pylint/main_widget.py
@@ -343,9 +343,6 @@ class PylintWidget(PluginMainWidget):
self.treewidget.sig_edit_goto_requested.connect(
... | Pylint: Fix a couple of minor linting issues | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@
from setuptools import setup
setup(name='virtualbmc',
- version='0.0.1',
+ version='0.0.2',
description=('Create virtual BMCs for controlling virtual instances '
'via IPM... | Bump the version of the project to <I> | py |
diff --git a/external/kinesis-asl/src/main/python/examples/streaming/kinesis_wordcount_asl.py b/external/kinesis-asl/src/main/python/examples/streaming/kinesis_wordcount_asl.py
index <HASH>..<HASH> 100644
--- a/external/kinesis-asl/src/main/python/examples/streaming/kinesis_wordcount_asl.py
+++ b/external/kinesis-asl/s... | Fix typo in Python docstring kinesis example ## What changes were proposed in this pull request? (Please fill in changes proposed in this fix) ## How was this patch tested? (Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests) (If this patch involves UI changes, please attach ... | py |
diff --git a/envy/application.py b/envy/application.py
index <HASH>..<HASH> 100644
--- a/envy/application.py
+++ b/envy/application.py
@@ -68,7 +68,8 @@ def edit(args):
full_package_path = get_venv_full_package_path(pkg_name_given_in_arg)
- file_path = args.path[0].split("/")[-1]
+ split_file_path = args... | Fix finding nested files in a package | py |
diff --git a/internetarchive/cli/ia_tasks.py b/internetarchive/cli/ia_tasks.py
index <HASH>..<HASH> 100644
--- a/internetarchive/cli/ia_tasks.py
+++ b/internetarchive/cli/ia_tasks.py
@@ -94,7 +94,8 @@ def main(argv, session):
data=data)
j = r.json()
if j.get('success')... | Fix overly complex f-string | py |
diff --git a/tests/modelling/test_modelling_algo.py b/tests/modelling/test_modelling_algo.py
index <HASH>..<HASH> 100644
--- a/tests/modelling/test_modelling_algo.py
+++ b/tests/modelling/test_modelling_algo.py
@@ -105,6 +105,7 @@ class FFCAlgorithmTestCase(TestCase):
@classmethod
def tearDownClass(cls):
... | TST: Fixes modelling test tearDown | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -85,7 +85,7 @@ setup(
description='Jupyter notebook integration with Spyder',
long_description="This package allows the Jupyter notebook "
"to run inside Spyder as a plugin.",
- packages=find... | Packaging: Remove unneeded argument of find_packages in setup.py | py |
diff --git a/carrot/backends/pyamqplib.py b/carrot/backends/pyamqplib.py
index <HASH>..<HASH> 100644
--- a/carrot/backends/pyamqplib.py
+++ b/carrot/backends/pyamqplib.py
@@ -6,6 +6,7 @@
"""
from amqplib import client_0_8 as amqp
+from amqplib.client_0_8 import transport
from amqplib.client_0_8.exceptions import A... | amqplib's handshake mistakenly identifies as protocol version <I>, this breaks in RabbitMQ tip, which no longer falls back to 0-8 for unknown ids. | py |
diff --git a/eventsourcingtests/test_readme.py b/eventsourcingtests/test_readme.py
index <HASH>..<HASH> 100644
--- a/eventsourcingtests/test_readme.py
+++ b/eventsourcingtests/test_readme.py
@@ -19,19 +19,20 @@ class TestUsage(unittest.TestCase):
lines = []
count_code_lines = 0
is_code = Fals... | open the readme file using a with stament and use context manager to close the file when the test fails | py |
diff --git a/atlasapi/settings.py b/atlasapi/settings.py
index <HASH>..<HASH> 100644
--- a/atlasapi/settings.py
+++ b/atlasapi/settings.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2019 Matthew G. Monteleone
+# Copyright (c) 2021 Matthew G. Monteleone
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you... | #<I> added ENV based setting for BASE_URL to allow the use of proxy. | py |
diff --git a/kvdbTest.py b/kvdbTest.py
index <HASH>..<HASH> 100644
--- a/kvdbTest.py
+++ b/kvdbTest.py
@@ -19,6 +19,7 @@ class TestCase(unittest.TestCase):
def testSonLibKVKyotoTycoon(self):
#Needs a ktserver process running on the local machine, we need to add a check for this condition to stop the... | Temporary patch to disable the kyoto tycoon test, as requires a server to be running to work, which must currently be done manually | py |
diff --git a/satpy/readers/yaml_reader.py b/satpy/readers/yaml_reader.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/yaml_reader.py
+++ b/satpy/readers/yaml_reader.py
@@ -519,7 +519,10 @@ class FileYAMLReader(AbstractYAMLReader):
continue
for ds_id, ds_info in list(self.ids.items()):... | Make update_ds_ids_from_file_handlers work with multiple file types | py |
diff --git a/bin/alert-ganglia.py b/bin/alert-ganglia.py
index <HASH>..<HASH> 100755
--- a/bin/alert-ganglia.py
+++ b/bin/alert-ganglia.py
@@ -21,7 +21,7 @@ import uuid
import re
__program__ = 'alert-ganglia'
-__version__ = '1.7.2'
+__version__ = '1.7.3'
BROKER_LIST = [('localhost', 61613)] # list of brokers fo... | Serialise thresholdInfo in alert payload | py |
diff --git a/cachalot/utils.py b/cachalot/utils.py
index <HASH>..<HASH> 100644
--- a/cachalot/utils.py
+++ b/cachalot/utils.py
@@ -65,6 +65,7 @@ def check_parameter_types(params):
elif cl is dict:
check_parameter_types(p.items())
else:
+ print(params, [text_type... | Prints again a debug line to understand why Travis CI is failing… -_- | py |
diff --git a/integration_test/arcci/arcci.py b/integration_test/arcci/arcci.py
index <HASH>..<HASH> 100644
--- a/integration_test/arcci/arcci.py
+++ b/integration_test/arcci/arcci.py
@@ -114,6 +114,7 @@ class ARC_API():
self.conf.num_conn_per_gw = c_int(connectionPerGateway)
self.conf.init_timeout_mil... | explicity set test default zk_reconnect_millis | py |
diff --git a/publish.py b/publish.py
index <HASH>..<HASH> 100755
--- a/publish.py
+++ b/publish.py
@@ -64,6 +64,7 @@ def updatechangelog(new_tag, latest_tag):
seen_title = True
elif seen_title and line.startswith('==='):
# add the new heading here
+ ... | publish.py: fix formatting of modified CHANGELOG | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ setup(
zip_safe = False,
include_package_data = True,
packages = find_packages(),
- install_requires=["sphinx-me >= 0.1.2",],
+ install_requires=["sphinx-me >= 0.1.2", "django"],
classi... | Add Django to deps. | py |
diff --git a/Adafruit_GPIO/Platform.py b/Adafruit_GPIO/Platform.py
index <HASH>..<HASH> 100644
--- a/Adafruit_GPIO/Platform.py
+++ b/Adafruit_GPIO/Platform.py
@@ -43,7 +43,7 @@ def platform_detect():
if plat.lower().find('armv6l-with-debian') > -1:
return RASPBERRY_PI
# Handle pidora distribution.
- if plat.lowe... | Fix bug with pidora detection. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,7 @@ setup(name='lime',
'numpy',
'scipy',
'tqdm',
+ 'pillow==5.4.1',
'scikit-learn>=0.18',
'scikit-image>=0.12',
], | fix pillow version to pass travis test | py |
diff --git a/trackhub/upload.py b/trackhub/upload.py
index <HASH>..<HASH> 100644
--- a/trackhub/upload.py
+++ b/trackhub/upload.py
@@ -89,4 +89,8 @@ def upload_track(host, user, track, port=22, rsync_options='-azvr --progress',
kwargs['remote_fn'] += '.bai'
results.extend(upload_file(**kwargs))
+ ... | if vcftabix, upload the .tbi as well | py |
diff --git a/hydpy/core/parametertools.py b/hydpy/core/parametertools.py
index <HASH>..<HASH> 100644
--- a/hydpy/core/parametertools.py
+++ b/hydpy/core/parametertools.py
@@ -919,14 +919,16 @@ class SeasonalParameter(MultiParameter):
if len(self) == 0:
self.values[:] = 0.
elif len(self) =... | Allow for a time dependence of the actual values of "SeasonalParameter" instances. The class `SeasonalParameter` did not use the method `applytimefactor` so far. This bug has now been fixed. But note that this bug has only been detected by a doctest of the base model llake. So a more rigorous testing of the `SeasonalP... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,8 +8,8 @@ import coreweb
# includes a twistd plugin (which are installed to twisted/plugins/),
# setuptools/distribute writes a Package.egg-info/top_level.txt that includes
# "twisted". If you later uninstall Package wi... | Mention that pip uninstall bug is now fixed | py |
diff --git a/salt/output/txt.py b/salt/output/txt.py
index <HASH>..<HASH> 100644
--- a/salt/output/txt.py
+++ b/salt/output/txt.py
@@ -1,5 +1,7 @@
'''
-The txt outputter
+The txt outputter has been developed to make the output from shell
+commands on minions appear as they do when the command is executed
+on the minio... | Add docs for the txt outputter | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from os import path
from distutils.version import LooseVersion
from setuptools import find_packages, setup
-VERSION = '1.22.2'
+VERSION = '1.23.0'
# Import README.md into long_description
pwd = path.abspat... | Bump package version to <I> | py |
diff --git a/charmhelpers/core/hookenv.py b/charmhelpers/core/hookenv.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/core/hookenv.py
+++ b/charmhelpers/core/hookenv.py
@@ -4,6 +4,7 @@
# Authors:
# Charm Helpers Developers <juju@lists.ubuntu.com>
+from functools import wraps
import os
import json
import yaml
... | Improve tracebacks when using the @cached decorator | py |
diff --git a/insane/core.py b/insane/core.py
index <HASH>..<HASH> 100755
--- a/insane/core.py
+++ b/insane/core.py
@@ -1134,7 +1134,7 @@ def write_pdb(outfile, title, atoms, box):
The periodic box as a 3x3 matrix.
"""
# Print the title
- print(title, outfile)
+ print(title, file=outfile)
... | Fix a print is write_pdb | py |
diff --git a/alerta/auth/decorators.py b/alerta/auth/decorators.py
index <HASH>..<HASH> 100644
--- a/alerta/auth/decorators.py
+++ b/alerta/auth/decorators.py
@@ -78,7 +78,7 @@ def permission(scope=None):
raise ApiError('Token has expired', 401)
except InvalidAudience:
... | Use JWT oid claim for user id if present | py |
diff --git a/angr/exploration_techniques/loop_seer.py b/angr/exploration_techniques/loop_seer.py
index <HASH>..<HASH> 100644
--- a/angr/exploration_techniques/loop_seer.py
+++ b/angr/exploration_techniques/loop_seer.py
@@ -126,10 +126,10 @@ class LoopSeer(ExplorationTechnique):
state.loop_data.curr... | Fixed when `bound_reached` callback is triggered (#<I>) bound_reached callback was being called before the specified bound argument is reached. My changes fixes that issues and calls provided bound_reached callback only when provided bound argument is reached by the loop. | py |
diff --git a/insights/parsr/query/__init__.py b/insights/parsr/query/__init__.py
index <HASH>..<HASH> 100644
--- a/insights/parsr/query/__init__.py
+++ b/insights/parsr/query/__init__.py
@@ -293,14 +293,33 @@ class Result(Entry):
return sorted(set(c.get_crumbs() for c in self.children))
@property
+ d... | Add line convenience method to parsr Result class (#<I>) * Add line convenience method to parsr Result class * There were already a couple of convenience functions in Result so this just adds another * This fixes #<I> | py |
diff --git a/monoseq/monoseq.py b/monoseq/monoseq.py
index <HASH>..<HASH> 100644
--- a/monoseq/monoseq.py
+++ b/monoseq/monoseq.py
@@ -43,7 +43,7 @@ AnsiFormat = Format([('\033[91m', '\033[0m'), # Red.
#: HTML output format.
HtmlFormat = Format([('<span class="monoseq-annotation-%i">' % i, '</span>')
- ... | Support <I> annotation levels in HtmlFormat | py |
diff --git a/astroid/node_classes.py b/astroid/node_classes.py
index <HASH>..<HASH> 100644
--- a/astroid/node_classes.py
+++ b/astroid/node_classes.py
@@ -4173,7 +4173,7 @@ class JoinedStr(NodeNG):
self.values = values
-class Unknown(NodeNG):
+class Unknown(mixins.AssignTypeMixin, NodeNG):
"""This nod... | Make Unknown a rhs assignable node This means we can put an Unknown node in RHS of an assignment operations, which will be useful for brain related transforms. | py |
diff --git a/airflow/providers/databricks/operators/databricks.py b/airflow/providers/databricks/operators/databricks.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/databricks/operators/databricks.py
+++ b/airflow/providers/databricks/operators/databricks.py
@@ -305,7 +305,7 @@ class DatabricksSubmitRunOperator... | fix: DatabricksSubmitRunOperator and DatabricksRunNowOperator cannot define .json as template_ext (#<I>) (#<I>) | py |
diff --git a/shap/explainers/tree.py b/shap/explainers/tree.py
index <HASH>..<HASH> 100644
--- a/shap/explainers/tree.py
+++ b/shap/explainers/tree.py
@@ -432,10 +432,10 @@ class TreeExplainer(Explainer):
if type(phi) is list:
for i in range(len(phi)):
val = self.expected_value[i]... | Fix too tight a check_additivity tolerance #<I> | py |
diff --git a/bioio.py b/bioio.py
index <HASH>..<HASH> 100644
--- a/bioio.py
+++ b/bioio.py
@@ -15,7 +15,7 @@ import random
import math
import shutil
from argparse import ArgumentParser
-from optparse import OptionParser
+from optparse import OptionParser, OptionContainer
from tree import BinaryTree
from misc impor... | fix isinstance check of OptionParser to detect OptionContainer instead. This way OptionGroups and OptionParsers are supported and progressiveCactus doesnt get broken. | py |
diff --git a/simple_db_migrate/db_migrate/management/commands/dbmigrate.py b/simple_db_migrate/db_migrate/management/commands/dbmigrate.py
index <HASH>..<HASH> 100644
--- a/simple_db_migrate/db_migrate/management/commands/dbmigrate.py
+++ b/simple_db_migrate/db_migrate/management/commands/dbmigrate.py
@@ -38,7 +38,6 @@... | improve get app base path to get migrations dir | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.