diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/python_modules/dagster/dagster/_config/config_type.py b/python_modules/dagster/dagster/_config/config_type.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/_config/config_type.py
+++ b/python_modules/dagster/dagster/_config/config_type.py
@@ -196,10 +196,10 @@ class Array(ConfigType):
... | Add type annotations for Array type (#<I>) ### Summary & Motivation Resolve and cast inner type of a configType-Array ### How I Tested These Changes | py |
diff --git a/salt/scripts.py b/salt/scripts.py
index <HASH>..<HASH> 100644
--- a/salt/scripts.py
+++ b/salt/scripts.py
@@ -111,7 +111,7 @@ def salt_minion():
if '--disable-keepalive' in sys.argv:
sys.argv.remove('--disable-keepalive')
- minion = salt.Minion()
+ minion = salt.cli.daemons.Mi... | Fix missing update to daemons refactor | py |
diff --git a/master/buildbot/test/unit/test_mq_wamp.py b/master/buildbot/test/unit/test_mq_wamp.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_mq_wamp.py
+++ b/master/buildbot/test/unit/test_mq_wamp.py
@@ -13,6 +13,7 @@
#
# Copyright Buildbot Team Members
import os
+import textwrap
import moc... | fix WAMP warning formatting Previsously it was seen as: ``` [SKIPPED] define WAMP_ROUTER_URL to a wamp router to run this test e.g: WAMP_ROUTER_URL=ws://localhost:<I>/ws ``` | py |
diff --git a/docs/__init__.py b/docs/__init__.py
index <HASH>..<HASH> 100644
--- a/docs/__init__.py
+++ b/docs/__init__.py
@@ -1,3 +1,3 @@
"""Allows to serve Sphinx generated docs from django."""
-__version__ = '0.2.0'
+__version__ = '0.2' | Bump to version <I> | py |
diff --git a/spyderlib/userconfig.py b/spyderlib/userconfig.py
index <HASH>..<HASH> 100644
--- a/spyderlib/userconfig.py
+++ b/spyderlib/userconfig.py
@@ -87,15 +87,22 @@ class UserConfig(ConfigParser):
self.defaults = defaults
if defaults is not None:
self.reset_to_defaults(save=False)... | (Fixes Issue <I>) Spyder configuration file (.spyder2/.spyder.ini): creating a backup when config file version has changed to avoid loosing settings | py |
diff --git a/motor/__init__.py b/motor/__init__.py
index <HASH>..<HASH> 100644
--- a/motor/__init__.py
+++ b/motor/__init__.py
@@ -857,9 +857,9 @@ class ReadOnlyProperty(MotorAttributeFactory):
return ReadOnlyPropertyDescriptor(attr_name)
-DelegateMethod = ReadOnlyProperty
-"""A method on the wrapped PyMon... | DelegateMethod should inherit from ReadOnlyProperty instead of being it. | 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
@@ -136,7 +136,7 @@ class NwbReco... | Cast file_path to str to allow pathlib objects | py |
diff --git a/GPy/core/parameterization/observable_array.py b/GPy/core/parameterization/observable_array.py
index <HASH>..<HASH> 100644
--- a/GPy/core/parameterization/observable_array.py
+++ b/GPy/core/parameterization/observable_array.py
@@ -1,7 +1,7 @@
# Copyright (c) 2012, GPy authors (see AUTHORS.txt).
# Licensed... | [ObsAr] added .values | py |
diff --git a/grail/steps.py b/grail/steps.py
index <HASH>..<HASH> 100644
--- a/grail/steps.py
+++ b/grail/steps.py
@@ -52,6 +52,8 @@ class _RedirectOut(object):
def _should_skip_step():
if settings.disable_steps:
return True
+ if settings.export_mode:
+ return False
for filename, line_numb... | Move condition into "_should_skip_step" method | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
import yowsup
import platform
-deps = ['python-dateutil', 'argparse']
+deps = ['python-dateutil', 'argparse', 'python-axolotl']
if platform.system().lower() == "w... | Added python-axolotl dependency to setup.py | py |
diff --git a/esptool.py b/esptool.py
index <HASH>..<HASH> 100755
--- a/esptool.py
+++ b/esptool.py
@@ -225,7 +225,7 @@ class ESPROM:
else:
erase_size = (num_sectors - head_sectors) * sector_size
- self._port.timeout = 10
+ self._port.timeout = 20
result = self.command(ESPR... | flash_begin(): Bump port timeout to <I>s, erasing 4MB flash takes <I>s. Erasing entire 4MByte flash may take longer than <I>s as set currently, so conservatively double timeout for FLASH_BEGIN operation, which may include erase operation. | py |
diff --git a/elasticsearch/client/utils.py b/elasticsearch/client/utils.py
index <HASH>..<HASH> 100644
--- a/elasticsearch/client/utils.py
+++ b/elasticsearch/client/utils.py
@@ -18,7 +18,7 @@ def _escape(value):
# make sequences into comma-separated stings
if isinstance(value, (list, tuple)):
- valu... | Make sure we encode even values in lists | py |
diff --git a/wal_e/worker.py b/wal_e/worker.py
index <HASH>..<HASH> 100644
--- a/wal_e/worker.py
+++ b/wal_e/worker.py
@@ -6,9 +6,10 @@ with the intention that they are used in forked worker processes.
"""
-import tempfile
import subprocess
import sys
+import tarfile
+import tempfile
import wal_e.log_help as ... | Add tarfile import to the right place, fixing backup-fetch So how about that testing eh? | py |
diff --git a/legit/cli.py b/legit/cli.py
index <HASH>..<HASH> 100644
--- a/legit/cli.py
+++ b/legit/cli.py
@@ -438,7 +438,12 @@ def handle_abort(aborted, type=None):
print('Unfortunately, there was a merge conflict.'
' It has to be merged manually.')
elif type == 'unpublish':
- print... | Improve info on unpublish command when the remote branch has been deleted at the remote by someone else. Related issues: #<I> #<I> | py |
diff --git a/thefuck/rules/git_remote_delete.py b/thefuck/rules/git_remote_delete.py
index <HASH>..<HASH> 100644
--- a/thefuck/rules/git_remote_delete.py
+++ b/thefuck/rules/git_remote_delete.py
@@ -5,7 +5,7 @@ from thefuck.specific.git import git_support
@git_support
def match(command):
- return "git remote del... | #<I>: Do not require `git` in the script @git_support already does that | py |
diff --git a/bcbio/pipeline/fastq.py b/bcbio/pipeline/fastq.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/fastq.py
+++ b/bcbio/pipeline/fastq.py
@@ -13,6 +13,8 @@ from bcbio.distributed.transaction import file_transaction
def needs_fastq_conversion(item, config):
"""Check if an item needs conversion to fast... | Run test_run downsampling in parallel. | py |
diff --git a/openid/server/server.py b/openid/server/server.py
index <HASH>..<HASH> 100644
--- a/openid/server/server.py
+++ b/openid/server/server.py
@@ -1418,6 +1418,7 @@ class EncodingError(Exception):
"""
def __init__(self, response):
+ Exception.__init__(self, response)
self.response = ... | [project @ Call Exception constructor for EncodingError in server] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ def readme():
setup(
name='choix',
- version='0.1.0.dev3',
+ version='0.1.0',
author='Lucas Maystre',
author_email='lucas@maystre.ch',
description="Inference algorithms for models ba... | New release on PyPI: <I>. Following Victor's request to try out the code, I packaged the latest state of the library and uploaded a new version to PyPI. | py |
diff --git a/aiofiles/base.py b/aiofiles/base.py
index <HASH>..<HASH> 100644
--- a/aiofiles/base.py
+++ b/aiofiles/base.py
@@ -71,6 +71,11 @@ class _ContextManager(Coroutine):
return resp
@asyncio.coroutine
+ def __anext__(self):
+ resp = yield from self._coro
+ return resp
+
+ @asyn... | add __anext__ to context manager | py |
diff --git a/tests/settings/manager_test.py b/tests/settings/manager_test.py
index <HASH>..<HASH> 100644
--- a/tests/settings/manager_test.py
+++ b/tests/settings/manager_test.py
@@ -147,3 +147,15 @@ class TestSettingsManagerGetAccountByAddress(utilities.TestCaseClassCleanup):
acc = self.manager.get_account_by... | tests/settings/manager: Add test for case insensitivity This currently fails as there is not way to toggle case sensitivity | py |
diff --git a/uncompyle6/parsers/parse33.py b/uncompyle6/parsers/parse33.py
index <HASH>..<HASH> 100644
--- a/uncompyle6/parsers/parse33.py
+++ b/uncompyle6/parsers/parse33.py
@@ -27,6 +27,7 @@ class Python33Parser(Python32Parser):
trystmt ::= SETUP_EXCEPT suite_stmts_opt POP_BLOCK
... | need kvlist in <I>+ | py |
diff --git a/sanic/__init__.py b/sanic/__init__.py
index <HASH>..<HASH> 100644
--- a/sanic/__init__.py
+++ b/sanic/__init__.py
@@ -1,6 +1,6 @@
from sanic.app import Sanic
from sanic.blueprints import Blueprint
-__version__ = '0.3.1'
+__version__ = '0.4.0'
__all__ = ['Sanic', 'Blueprint'] | Increment version to <I> | py |
diff --git a/bottlenose/api.py b/bottlenose/api.py
index <HASH>..<HASH> 100644
--- a/bottlenose/api.py
+++ b/bottlenose/api.py
@@ -105,10 +105,19 @@ class AmazonCall(object):
self.AWSAccessKeyId = (AWSAccessKeyId or
os.environ.get('AWS_ACCESS_KEY_ID'))
+ if self.AWSAcce... | Fail loudly with specific errors on AWS misconfiguration. | py |
diff --git a/src/discoursegraphs/readwrite/conano.py b/src/discoursegraphs/readwrite/conano.py
index <HASH>..<HASH> 100755
--- a/src/discoursegraphs/readwrite/conano.py
+++ b/src/discoursegraphs/readwrite/conano.py
@@ -65,13 +65,10 @@ class ConanoDocumentGraph(DiscourseDocumentGraph):
text it spans (this i... | conano: workaround for #<I>. the root node is now part of the 'conano' layer | py |
diff --git a/src/pymop/pymop/gui/imgviewer.py b/src/pymop/pymop/gui/imgviewer.py
index <HASH>..<HASH> 100644
--- a/src/pymop/pymop/gui/imgviewer.py
+++ b/src/pymop/pymop/gui/imgviewer.py
@@ -343,6 +343,12 @@ class GrayscaleColorMap(object):
min_y = self._clip(0.5 - (self.y_spread / 2))
max_y = self._c... | Increasing the contrast past maximum now causes the colorbar to get flipped in the way ds9 does. | py |
diff --git a/exchangelib/folders.py b/exchangelib/folders.py
index <HASH>..<HASH> 100644
--- a/exchangelib/folders.py
+++ b/exchangelib/folders.py
@@ -424,7 +424,7 @@ class Attendee(EWSElement):
last_response_time = get_xml_attr(elem, '{%s}LastResponseTime' % TNS)
return cls(
mailbox=Mail... | Add default - responses may not have this element | py |
diff --git a/tonnikala/tests/test_html_templates.py b/tonnikala/tests/test_html_templates.py
index <HASH>..<HASH> 100644
--- a/tonnikala/tests/test_html_templates.py
+++ b/tonnikala/tests/test_html_templates.py
@@ -184,3 +184,18 @@ class TestHtmlTemplates(unittest.TestCase):
def test_extension(self):
self... | added <?python ?> test | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -108,7 +108,7 @@ setup(
install_requires=["numpy>=1.14.3", "requests", "ruamel.yaml>=0.15.6",
"monty>=3.0.2", "scipy>=1.0.1", "pydispatcher>=2.0.5",
"tabulate", "spglib>=1.9.9... | Trying to fix travis problem with pandas | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ except ImportError:
setup(
name='readthedocs-sphinx-ext',
- version='0.5.4',
+ version='0.5.5',
author='Eric Holscher',
author_email='eric@ericholscher.com',
url='http://github.com/e... | Bugfix release <I> This resolves #<I>, which caused a problem with Sphinx <I> | py |
diff --git a/tests/test_views.py b/tests/test_views.py
index <HASH>..<HASH> 100644
--- a/tests/test_views.py
+++ b/tests/test_views.py
@@ -2,7 +2,7 @@ from argparse import Namespace
from types import SimpleNamespace
import pytest
-from flask import current_app
+from flask import current_app, request
from buku im... | new: test: create_form for BMV | py |
diff --git a/tests/test_rejson.py b/tests/test_rejson.py
index <HASH>..<HASH> 100644
--- a/tests/test_rejson.py
+++ b/tests/test_rejson.py
@@ -167,9 +167,10 @@ class ReJSONTestCase(TestCase):
p = rj.pipeline()
p.jsonset('foo', Path.rootPath(), 'bar')
p.jsonget('foo')
+ p.jsonget('bar')... | Added an operation on pipeline test for non-existing key JSON.GET (issue #<I>) | py |
diff --git a/lib/python/dxpy/bindings/dxfile_functions.py b/lib/python/dxpy/bindings/dxfile_functions.py
index <HASH>..<HASH> 100644
--- a/lib/python/dxpy/bindings/dxfile_functions.py
+++ b/lib/python/dxpy/bindings/dxfile_functions.py
@@ -147,7 +147,7 @@ def upload_local_file(filename=None, file=None, media_type=None, ... | also consume filehandles - and use just the filename for them | py |
diff --git a/datacats/userprofile.py b/datacats/userprofile.py
index <HASH>..<HASH> 100644
--- a/datacats/userprofile.py
+++ b/datacats/userprofile.py
@@ -131,7 +131,6 @@ class UserProfile(object):
remote_server_command(
["ssh", environment.deploy_target, "create", target_name],
envir... | No need to just pour onto poor user whatever remotecommand server is responding with | py |
diff --git a/pycbc/events/events.py b/pycbc/events/events.py
index <HASH>..<HASH> 100644
--- a/pycbc/events/events.py
+++ b/pycbc/events/events.py
@@ -127,13 +127,16 @@ def findchirp_cluster_over_window(times, values, window_length):
times = times.astype(int)
code = """
int j = 0;
+ int curr_i... | Fixes bizarre compilation issue (#<I>) | py |
diff --git a/evaluation.py b/evaluation.py
index <HASH>..<HASH> 100644
--- a/evaluation.py
+++ b/evaluation.py
@@ -661,18 +661,18 @@ def filesampler(files, testsetsize = 0.1, devsetsize = 0, trainsetsize = 0, outp
devset = {}
for i in range(1,total+1):
trainset[i] = True
- for i in... | attempted fix for sampler bug in python <I> | py |
diff --git a/livelossplot/plot_losses.py b/livelossplot/plot_losses.py
index <HASH>..<HASH> 100644
--- a/livelossplot/plot_losses.py
+++ b/livelossplot/plot_losses.py
@@ -38,7 +38,7 @@ class PlotLosses:
warnings.warn('draw will be deprecated, please use send method', PendingDeprecationWarning)
self.se... | fix: PlotLosses type as str | py |
diff --git a/pymatgen/io/qchem/tests/test_sets.py b/pymatgen/io/qchem/tests/test_sets.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/qchem/tests/test_sets.py
+++ b/pymatgen/io/qchem/tests/test_sets.py
@@ -144,15 +144,20 @@ class QChemDictSetTest(PymatgenTest):
def test_double_solvation(self):
test_molec... | hacked test for QChem Set classes to catch ValueError properly (before, correct ValueError was being raised, but was not being caught by assertRaises) | py |
diff --git a/{{cookiecutter.repo_name}}/config/urls.py b/{{cookiecutter.repo_name}}/config/urls.py
index <HASH>..<HASH> 100644
--- a/{{cookiecutter.repo_name}}/config/urls.py
+++ b/{{cookiecutter.repo_name}}/config/urls.py
@@ -2,19 +2,16 @@
from __future__ import unicode_literals
from django.conf import settings
-f... | Remove admin.autodiscover() call, it's called automatically in <I>+ | py |
diff --git a/salt/states/boto_iam_role.py b/salt/states/boto_iam_role.py
index <HASH>..<HASH> 100644
--- a/salt/states/boto_iam_role.py
+++ b/salt/states/boto_iam_role.py
@@ -75,7 +75,7 @@ with the role. This is the default behavior of the AWS console.
'''
from __future__ import absolute_import
import salt.utils.dic... | Replaced import six in file /salt/states/boto_iam_role.py | py |
diff --git a/source/rafcon/utils/plugins.py b/source/rafcon/utils/plugins.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/utils/plugins.py
+++ b/source/rafcon/utils/plugins.py
@@ -26,6 +26,8 @@ def load_plugins():
:return:
"""
plugins = os.environ.get('RAFCON_PLUGIN_PATH', None)
+ if not plugins:
+... | Fix issue if RAFCON_PLUGIN_PATH is not set | py |
diff --git a/guacamole/ingredients/ansi.py b/guacamole/ingredients/ansi.py
index <HASH>..<HASH> 100644
--- a/guacamole/ingredients/ansi.py
+++ b/guacamole/ingredients/ansi.py
@@ -464,13 +464,13 @@ class ANSIFormatter(object):
return text
available_colors = (
- str('black'), str('red'), str('g... | Add yellow to available_colors This patch corrects a silly mistake that made the yellow color (both classic and bright) not show up in the rainbow example. The example is fueled by an internal list of colors from the ansi ingredient. | py |
diff --git a/python/ray/tune/tests/test_cluster.py b/python/ray/tune/tests/test_cluster.py
index <HASH>..<HASH> 100644
--- a/python/ray/tune/tests/test_cluster.py
+++ b/python/ray/tune/tests/test_cluster.py
@@ -445,6 +445,7 @@ def test_migration_checkpoint_removal(start_connected_emptyhead_cluster,
assert t1.statu... | [tune] deactivate flaky test for now (#<I>) | py |
diff --git a/dallinger/experiment.py b/dallinger/experiment.py
index <HASH>..<HASH> 100644
--- a/dallinger/experiment.py
+++ b/dallinger/experiment.py
@@ -599,6 +599,9 @@ class Experiment(object):
def replay_event(self, event):
pass
+ def replay_start(self):
+ pass
+
def replay_finish(sel... | give experiment a chance to initialize/finish around replaying state | py |
diff --git a/tcconfig/_logger.py b/tcconfig/_logger.py
index <HASH>..<HASH> 100644
--- a/tcconfig/_logger.py
+++ b/tcconfig/_logger.py
@@ -8,6 +8,7 @@ from __future__ import absolute_import
from __future__ import unicode_literals
import logbook
+import simplesqlite
import subprocrunner
@@ -40,11 +41,11 @@ def ... | Modify to enable logging for a dependency package | py |
diff --git a/salt/returners/carbon_return.py b/salt/returners/carbon_return.py
index <HASH>..<HASH> 100644
--- a/salt/returners/carbon_return.py
+++ b/salt/returners/carbon_return.py
@@ -50,7 +50,7 @@ from __future__ import absolute_import
from contextlib import contextmanager
import collections
import logging
-impo... | Replaced module six in file /salt/returners/carbon_return.py | py |
diff --git a/dpark/broadcast.py b/dpark/broadcast.py
index <HASH>..<HASH> 100644
--- a/dpark/broadcast.py
+++ b/dpark/broadcast.py
@@ -576,7 +576,7 @@ class BroadcastManager(object):
return blocks, size_l[-1], block_map
def from_blocks(self, uuid, blocks):
- stream = ''.join(map(decompress, bloc... | fix broadcast.py: use bytes instead of str | py |
diff --git a/aioimaplib/tests/imapserver.py b/aioimaplib/tests/imapserver.py
index <HASH>..<HASH> 100644
--- a/aioimaplib/tests/imapserver.py
+++ b/aioimaplib/tests/imapserver.py
@@ -483,7 +483,7 @@ class ImapProtocol(asyncio.Protocol):
self.append_literal_command = None
else:
m = ema... | [fix] append should add to the connected user mb | py |
diff --git a/src/runway/util.py b/src/runway/util.py
index <HASH>..<HASH> 100644
--- a/src/runway/util.py
+++ b/src/runway/util.py
@@ -246,10 +246,7 @@ def use_embedded_pkgs(embedded_lib_path=None):
def which(program):
- """Mimic 'which' command behavior.
-
- Adapted from https://stackoverflow.com/a/377028
-... | remove requirement for PATH environment variable This will probably never come up, but will stop an exception if the PATH environment variable isn't defined | py |
diff --git a/frosted/settings.py b/frosted/settings.py
index <HASH>..<HASH> 100644
--- a/frosted/settings.py
+++ b/frosted/settings.py
@@ -44,7 +44,7 @@ editor_config_file = os.path.expanduser('~/.editorconfig')
tries = 0
current_directory = os.getcwd()
while current_directory and tries < MAX_CONFIG_SEARCH_DEPTH:
- ... | Fix issue #<I>: non-ascii path causes frosted to crash - do to uneeded encoding conversion on Python2 | py |
diff --git a/path.py b/path.py
index <HASH>..<HASH> 100644
--- a/path.py
+++ b/path.py
@@ -1128,7 +1128,7 @@ class Path(text_type):
.. seealso:: :func:`os.chmod`
"""
if isinstance(mode, string_types):
- mask = _permission_mask(mode)
+ mask = _multi_permission_mask(mode)
... | Add support for multiple symbolic permission masks | py |
diff --git a/spyder/plugins/explorer/widgets/explorer.py b/spyder/plugins/explorer/widgets/explorer.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/explorer/widgets/explorer.py
+++ b/spyder/plugins/explorer/widgets/explorer.py
@@ -1795,10 +1795,7 @@ class ExplorerWidget(QWidget):
"""Handle the change of th... | Files: Use a single tooltip for its filter button | py |
diff --git a/zhaquirks/tuya/ts0601_dimmer.py b/zhaquirks/tuya/ts0601_dimmer.py
index <HASH>..<HASH> 100644
--- a/zhaquirks/tuya/ts0601_dimmer.py
+++ b/zhaquirks/tuya/ts0601_dimmer.py
@@ -28,7 +28,7 @@ class TuyaSingleSwitchDimmer(TuyaDimmerSwitch):
# maximum_buffer_size=82, maximum_incoming_transfer_size=82, s... | Added support for Moes 1-gang dimmer switch (#<I>) <URL> | py |
diff --git a/release.py b/release.py
index <HASH>..<HASH> 100644
--- a/release.py
+++ b/release.py
@@ -93,7 +93,7 @@ def build():
def push():
"The build went well, so let's push the SCM changesets"
- subprocess.check_call(['hg', 'push'])
+ subprocess.check_call(['hg', 'push', '-r', '.'])
def publish():
""" | Use -r to push only local commits. --HG-- branch : cherrypy-<I>.x | py |
diff --git a/bcbio/pipeline/run_info.py b/bcbio/pipeline/run_info.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/run_info.py
+++ b/bcbio/pipeline/run_info.py
@@ -335,6 +335,9 @@ def _detect_fastq_format(in_file, MAX_RECORDS=1000):
break
count += 1
vals = [ord(c) for c in ... | Don't use small reads for checking the quality. Empty reads from pre-trimmed files were causing exceptions here. Added a minimum of <I> since it is good idea to do that anyway. | py |
diff --git a/tests/core/helper_tests.py b/tests/core/helper_tests.py
index <HASH>..<HASH> 100644
--- a/tests/core/helper_tests.py
+++ b/tests/core/helper_tests.py
@@ -85,6 +85,6 @@ class InternalsTestCase(unittest.TestCase):
self.assertTrue(probably_regex("http://*.example.com"))
self.assertTrue(proba... | Fix warnings regarding invalid escape sequences. (#<I>) | py |
diff --git a/django_q/core.py b/django_q/core.py
index <HASH>..<HASH> 100644
--- a/django_q/core.py
+++ b/django_q/core.py
@@ -233,6 +233,7 @@ class Sentinel(object):
# Are you alive?
if not p.is_alive() or (Conf.TIMEOUT and int(p.timer.value) >= Conf.TIMEOUT):
sel... | No need to increase timer on dead workers | py |
diff --git a/tornado/iostream.py b/tornado/iostream.py
index <HASH>..<HASH> 100644
--- a/tornado/iostream.py
+++ b/tornado/iostream.py
@@ -174,8 +174,15 @@ class IOStream(object):
assert isinstance(data, bytes_type)
self._check_closed()
self._write_buffer.append(data)
- self._add_io_st... | Add a fast path for IOStream writes in addition to reads. This is a significant speedup for small requests, since it is now possible to do a request and (synchronous) response without calling IOLoop.add_handler. | py |
diff --git a/pyghmi/util/webclient.py b/pyghmi/util/webclient.py
index <HASH>..<HASH> 100644
--- a/pyghmi/util/webclient.py
+++ b/pyghmi/util/webclient.py
@@ -162,7 +162,7 @@ class SecureHTTPConnection(httplib.HTTPConnection, object):
def grab_json_response(self, url, data=None, referer=None, headers=None):
... | Correct mistake with refactoring JSON calls The arguments were incorrect. Change-Id: If<I>c6d<I>b<I>bf<I>b<I>a<I>ad<I>de<I> | py |
diff --git a/cheroot/server.py b/cheroot/server.py
index <HASH>..<HASH> 100644
--- a/cheroot/server.py
+++ b/cheroot/server.py
@@ -467,7 +467,8 @@ class ChunkedRFile:
chunk_size = line.pop(0)
chunk_size = int(chunk_size, 16)
except ValueError:
- raise ValueError('Bad chunke... | addressing 3 long lines identified by codeclimate | py |
diff --git a/openquake/engine/tests/performance_monitor_test.py b/openquake/engine/tests/performance_monitor_test.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/tests/performance_monitor_test.py
+++ b/openquake/engine/tests/performance_monitor_test.py
@@ -1,5 +1,6 @@
import os
import mock
+import time
import ... | Added a test for the LightMonitor | py |
diff --git a/inlineplz/linters/__init__.py b/inlineplz/linters/__init__.py
index <HASH>..<HASH> 100644
--- a/inlineplz/linters/__init__.py
+++ b/inlineplz/linters/__init__.py
@@ -110,7 +110,7 @@ LINTERS = {
'dotfiles': ['.jscsrc', '.jscs.json'],
'parser': parsers.JSCSParser,
'language': 'java... | Set jscs autorun to False (#<I>) eslint already autoruns and provides the same feedback. | py |
diff --git a/src/vistir/contextmanagers.py b/src/vistir/contextmanagers.py
index <HASH>..<HASH> 100644
--- a/src/vistir/contextmanagers.py
+++ b/src/vistir/contextmanagers.py
@@ -20,7 +20,8 @@ else:
__all__ = [
- "temp_environ", "temp_path", "cd", "atomic_open_for_write", "open_file", "spinner", "dummy_spinner"... | add missing entry to __all__ | py |
diff --git a/karaage/management/commands/upgrade_template.py b/karaage/management/commands/upgrade_template.py
index <HASH>..<HASH> 100644
--- a/karaage/management/commands/upgrade_template.py
+++ b/karaage/management/commands/upgrade_template.py
@@ -240,7 +240,7 @@ class Command(BaseCommand):
elif split... | Keep object-tools as object-tools. | py |
diff --git a/sanic/server.py b/sanic/server.py
index <HASH>..<HASH> 100644
--- a/sanic/server.py
+++ b/sanic/server.py
@@ -311,7 +311,7 @@ class HttpProtocol(asyncio.Protocol):
else:
extra['byte'] = -1
- if self.request:
+ if self.request is not None:
... | to fix condition error that used in `log_response` `request` class is derived from `dict`, so it will never be `True`. | py |
diff --git a/tests/stub_test.py b/tests/stub_test.py
index <HASH>..<HASH> 100644
--- a/tests/stub_test.py
+++ b/tests/stub_test.py
@@ -601,7 +601,14 @@ class StubWrapperDescriptionTest(unittest.TestCase):
s = StubWrapperDescriptor(Foo, '__str__')
f = Foo()
- self.assertEquals("<class 'tests.stub_test.Foo... | Adjust unit-test for change in behavior between py2 and py3 | py |
diff --git a/crossref/restful.py b/crossref/restful.py
index <HASH>..<HASH> 100644
--- a/crossref/restful.py
+++ b/crossref/restful.py
@@ -924,7 +924,8 @@ class Works(Endpoint):
)
request_params["query.%s" % field.replace("_", "-")] = value
- return self.__class__(request_url, req... | fix:timeout not working as intended by user. | py |
diff --git a/tests/integration/shell/key.py b/tests/integration/shell/key.py
index <HASH>..<HASH> 100644
--- a/tests/integration/shell/key.py
+++ b/tests/integration/shell/key.py
@@ -108,6 +108,7 @@ class KeyTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
finally:
shutil.rmtree... | The test needs to be executed as root to pass. | py |
diff --git a/bot/action/standard/info/action.py b/bot/action/standard/info/action.py
index <HASH>..<HASH> 100644
--- a/bot/action/standard/info/action.py
+++ b/bot/action/standard/info/action.py
@@ -27,7 +27,18 @@ class UserInfoAction(Action):
class ChatInfoAction(Action):
def process(self, event):
- for... | Display forwarded chat info if replying to a forwarded message with chat info | py |
diff --git a/neuropythy/datasets/hcp.py b/neuropythy/datasets/hcp.py
index <HASH>..<HASH> 100644
--- a/neuropythy/datasets/hcp.py
+++ b/neuropythy/datasets/hcp.py
@@ -191,8 +191,11 @@ class HCPDataset(Dataset):
# we get the subject list by doing an ls of the amazon bucket, but we fallback to a constant
... | smarter detecting of internet being online or not for now | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,6 +33,9 @@ EXTRAS_REQUIRE = {
}
# add extra stuff needed if we're running Python 2.7
+# FIXME: need to think about fixing this because Py3 will completely
+# ignore this and we usually run python setup.py dist from Py3... | setup.py: don't universal wheels for now | py |
diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -0,0 +1,3 @@
+import pytest
+
+pytest.register_assert_rewrite('tests.utils') | test: Register assert rewriting for tests.utils This gives better assertion messages | py |
diff --git a/datascience/tables.py b/datascience/tables.py
index <HASH>..<HASH> 100644
--- a/datascience/tables.py
+++ b/datascience/tables.py
@@ -3693,8 +3693,12 @@ class Table(collections.abc.MutableMapping):
x = values_dict[k][0],
y = np.zeros_like(values_dict[k][0]... | finished rug plots for ihist | py |
diff --git a/src/cdstarcat/catalog.py b/src/cdstarcat/catalog.py
index <HASH>..<HASH> 100644
--- a/src/cdstarcat/catalog.py
+++ b/src/cdstarcat/catalog.py
@@ -117,7 +117,7 @@ class Catalog(WithHumanReadableSize):
for filename in z.namelist():
with z.open(filename) as f:
... | made sure calling json.loads with decoded string for <I> support | py |
diff --git a/holoviews/core/tree.py b/holoviews/core/tree.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/tree.py
+++ b/holoviews/core/tree.py
@@ -3,7 +3,7 @@ try:
except:
from collections import OrderedDict
-import util
+from . import util
from .pprint import PrettyPrinter | Fixed absolute import in core/tree.py | py |
diff --git a/src/python/pants/option/options_fingerprinter.py b/src/python/pants/option/options_fingerprinter.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/option/options_fingerprinter.py
+++ b/src/python/pants/option/options_fingerprinter.py
@@ -5,7 +5,6 @@
from __future__ import (absolute_import, division, g... | Simplify `UnsetBool` fingerprint encoding. (#<I>) | py |
diff --git a/fullqualname.py b/fullqualname.py
index <HASH>..<HASH> 100644
--- a/fullqualname.py
+++ b/fullqualname.py
@@ -68,6 +68,7 @@ def _fullqualname_function_py3(obj):
"""
if hasattr(obj, "__wrapped__"):
+ # Required for decorator.__version__ <= 4.0.0.
qualname = obj.__wrapped__.__qual... | Add remark about decorator package | py |
diff --git a/loomengine/master/api/models/runs.py b/loomengine/master/api/models/runs.py
index <HASH>..<HASH> 100644
--- a/loomengine/master/api/models/runs.py
+++ b/loomengine/master/api/models/runs.py
@@ -214,6 +214,7 @@ class Run(MPTTModel, BaseModel):
if parent_connector.has_source:
ra... | always set connector has_source when connecting child output | py |
diff --git a/ceph_deploy/calamari.py b/ceph_deploy/calamari.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/calamari.py
+++ b/ceph_deploy/calamari.py
@@ -32,10 +32,6 @@ def connect(args):
if not has_minion_repo:
raise RuntimeError('no calamari-minion repo found')
- # We rely on the default for repo ... | define options per host in calamari connect | py |
diff --git a/tests/unit/test_client.py b/tests/unit/test_client.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_client.py
+++ b/tests/unit/test_client.py
@@ -227,3 +227,17 @@ def test_wait_ordering(client, flush):
client.trigger("some.trigger")
flush()
assert invoked == ["handler", "waiter"]
+
+def ... | add test for the return from client.wait() | py |
diff --git a/varnish.py b/varnish.py
index <HASH>..<HASH> 100644
--- a/varnish.py
+++ b/varnish.py
@@ -159,7 +159,7 @@ class VarnishHandler(Telnet):
vcl.show configname
Display the source code for the specified configuration.
"""
- return self.fetch('vcl.show' % configname)
+ ... | Make vcl.show command work | py |
diff --git a/migrations/versions/c9b74509755e_add_created_and_modified_fields_to_.py b/migrations/versions/c9b74509755e_add_created_and_modified_fields_to_.py
index <HASH>..<HASH> 100644
--- a/migrations/versions/c9b74509755e_add_created_and_modified_fields_to_.py
+++ b/migrations/versions/c9b74509755e_add_created_and_... | Fix SQL bug For GROUP BY queries, all selected columns much either be part of the group by or aggregates. | py |
diff --git a/openquake/calculators/tests/gmf_ebrisk_test.py b/openquake/calculators/tests/gmf_ebrisk_test.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/tests/gmf_ebrisk_test.py
+++ b/openquake/calculators/tests/gmf_ebrisk_test.py
@@ -52,7 +52,7 @@ class GmfEbRiskTestCase(CalculatorTestCase):
self.... | Reduce precision for test_case_2 in gmf_ebrisk_test to 4 decimals Test case is currently failing because of a mismatch at the 7th decimal place. | py |
diff --git a/LiSE/LiSE/rule.py b/LiSE/LiSE/rule.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/rule.py
+++ b/LiSE/LiSE/rule.py
@@ -445,11 +445,11 @@ class RuleMapping(MutableMapping, Signal):
def __init__(self, engine, rulebook):
super().__init__()
self.engine = engine
+ self._rule_cache =... | Make all RuleMapping instances use the AllRules cache Fixes a bug where actions were getting deleted right after adding. | py |
diff --git a/scopus/abstract_retrieval.py b/scopus/abstract_retrieval.py
index <HASH>..<HASH> 100644
--- a/scopus/abstract_retrieval.py
+++ b/scopus/abstract_retrieval.py
@@ -96,11 +96,10 @@ class AbstractRetrieval(Retrieval):
aff = item.get('affiliation', {})
try:
org = aff['... | Join affiliation substrings for lists too | py |
diff --git a/arca/backend/base.py b/arca/backend/base.py
index <HASH>..<HASH> 100644
--- a/arca/backend/base.py
+++ b/arca/backend/base.py
@@ -1,5 +1,4 @@
import hashlib
-import json
import re
import subprocess
from pathlib import Path
@@ -132,15 +131,7 @@ class BaseBackend:
Returns a SHA256 hash of the Pi... | Not relying on possible user input when getting pipfile hash | py |
diff --git a/resweb/views.py b/resweb/views.py
index <HASH>..<HASH> 100644
--- a/resweb/views.py
+++ b/resweb/views.py
@@ -222,12 +222,17 @@ class Failed(ResWeb):
import simplejson as json
jobs = []
for job in failure.all(self.resq, self._start, self._start + 20):
+ backtrace =... | Become compatible with resque-web without breaking backwards compatibility. | py |
diff --git a/src/scs_osio/__init__.py b/src/scs_osio/__init__.py
index <HASH>..<HASH> 100644
--- a/src/scs_osio/__init__.py
+++ b/src/scs_osio/__init__.py
@@ -0,0 +1,9 @@
+"""
+Created on 3 May 2021
+
+@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
+
+https://packaging.python.org/guides/single-sourcing-pack... | Refactored setup.py | py |
diff --git a/GPy/core/sparse_gp.py b/GPy/core/sparse_gp.py
index <HASH>..<HASH> 100644
--- a/GPy/core/sparse_gp.py
+++ b/GPy/core/sparse_gp.py
@@ -236,7 +236,7 @@ class SparseGP(GPBase):
else:
# assert which_p.Tarts=='all', "swithching out parts of variational kernels is not implemented"
... | fixed a transpose bug in the sparse GP prediction | py |
diff --git a/flask_swagger.py b/flask_swagger.py
index <HASH>..<HASH> 100644
--- a/flask_swagger.py
+++ b/flask_swagger.py
@@ -125,12 +125,11 @@ def swagger(app, process_doc=_sanitize):
for rule in app.url_map.iter_rules():
endpoint = app.view_functions[rule.endpoint]
methods = dict()
- if... | Fix when rule is added for view with methods filter | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -138,8 +138,8 @@ html_theme_options = {
'github_banner': True,
'show_powered_by': False,
'extra_nav_links': {
- 'invenio-groups@GitHub': 'http://github.com/inveniosoftware/invenio-groups',... | docs: autodoc configuration and HTTPS fix * Replaces HTTP links with HTTPS where possible. | py |
diff --git a/plexapi/collection.py b/plexapi/collection.py
index <HASH>..<HASH> 100644
--- a/plexapi/collection.py
+++ b/plexapi/collection.py
@@ -77,7 +77,7 @@ class Collections(PlexPartialObject, ArtMixin, PosterMixin, LabelMixin):
@property
@deprecated('use "items" instead')
def children(self):
- ... | Fix deprecated collection.children to items | py |
diff --git a/LambdaPage/LambdaPage.py b/LambdaPage/LambdaPage.py
index <HASH>..<HASH> 100644
--- a/LambdaPage/LambdaPage.py
+++ b/LambdaPage/LambdaPage.py
@@ -64,7 +64,7 @@ class LambdaPage:
'httpMethod': req.method.lower(),
'headers': req.headers,
'querySt... | Converting falcon request event body to str (in place of bytes) | py |
diff --git a/SpiffWorkflow/bpmn/PythonScriptEngine.py b/SpiffWorkflow/bpmn/PythonScriptEngine.py
index <HASH>..<HASH> 100644
--- a/SpiffWorkflow/bpmn/PythonScriptEngine.py
+++ b/SpiffWorkflow/bpmn/PythonScriptEngine.py
@@ -137,7 +137,7 @@ class PythonScriptEngine(object):
ast.parse(revised_text)
... | Assure that the python script engine doesn't error out trying to produce an error message | py |
diff --git a/sourcemap/decoder.py b/sourcemap/decoder.py
index <HASH>..<HASH> 100644
--- a/sourcemap/decoder.py
+++ b/sourcemap/decoder.py
@@ -170,6 +170,6 @@ class SourceMapDecoder(object):
# Mapping of base64 letter -> integer value.
# This weird list is being allocated for faster lookups
-B64 = [None] * 123
+B64... | Make the b<I> list be all integers This will be faster on PyPy. | py |
diff --git a/email_log/migrations/__init__.py b/email_log/migrations/__init__.py
index <HASH>..<HASH> 100644
--- a/email_log/migrations/__init__.py
+++ b/email_log/migrations/__init__.py
@@ -0,0 +1,21 @@
+"""
+Django migrations for email_log app
+
+This package does not contain South migrations. South migrations can b... | Add friendly error message targeted at South users | py |
diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py
index <HASH>..<HASH> 100644
--- a/telethon/telegram_client.py
+++ b/telethon/telegram_client.py
@@ -785,7 +785,10 @@ class TelegramClient(TelegramBareClient):
try:
self._updates_thread_receiving.set()
... | Do not cancel UpdatesThread .receive() on reconnection | py |
diff --git a/pyontutils/ontutils.py b/pyontutils/ontutils.py
index <HASH>..<HASH> 100755
--- a/pyontutils/ontutils.py
+++ b/pyontutils/ontutils.py
@@ -582,6 +582,7 @@ def main():
graph_todo(graph, curie_prefixes, uri_switch_values)
embed()
elif args['expand']:
+ curies['NLXWIKI'] = 'http:/... | ontutils expand added NLXWIKI to resolve properly | py |
diff --git a/twine/commands/upload.py b/twine/commands/upload.py
index <HASH>..<HASH> 100644
--- a/twine/commands/upload.py
+++ b/twine/commands/upload.py
@@ -56,9 +56,16 @@ def find_dists(dists):
def skip_upload(response, skip_existing, package):
filename = package.basefilename
msg = 'A file named "{0}" alr... | Skip reason inspection for <I> statuses Alternative package servers may return a <I> without the same message stored in the reason attribute that PyPI does. In that case, skip inspecting the reason message otherwise we will fail to skip that upload when the user specified --skip-existing. Ref: gh-<I> | py |
diff --git a/test/test_pointer.py b/test/test_pointer.py
index <HASH>..<HASH> 100644
--- a/test/test_pointer.py
+++ b/test/test_pointer.py
@@ -40,6 +40,17 @@ class Pointer(ClangTest):
self.gen('test/data/test-ctypes0.c', flags)
self.assertEquals(ctypes.sizeof(self.namespace.union_invalid1), 16)
+ ... | wtf is a member pointer | py |
diff --git a/wordcloud/tokenization.py b/wordcloud/tokenization.py
index <HASH>..<HASH> 100644
--- a/wordcloud/tokenization.py
+++ b/wordcloud/tokenization.py
@@ -40,7 +40,7 @@ def unigrams_and_bigrams(words, stopwords, normalize_plurals=True, collocation_t
# We must create the bigrams before removing the stopword... | Update tokenization.py In function unigrams_and_bigrams, applied lower() to each word before checking whether it is a stopword | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.