diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/adnpy/consts.py b/adnpy/consts.py
index <HASH>..<HASH> 100644
--- a/adnpy/consts.py
+++ b/adnpy/consts.py
@@ -71,6 +71,7 @@ CHANNEL_PARAMS = [
'include_read',
'include_recent_message',
'include_annotations',
+ 'include_channel_annotations',
'include_user_annotations',
'include_m... | Forgot an query param for channels | py |
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -706,7 +706,7 @@ class ObjCLanguage(object):
shortname='objc-tests',
environ=_... | Extend the deadline of objc-examples-build to <I> minutes | py |
diff --git a/demos/benchmark/benchmark.py b/demos/benchmark/benchmark.py
index <HASH>..<HASH> 100755
--- a/demos/benchmark/benchmark.py
+++ b/demos/benchmark/benchmark.py
@@ -49,7 +49,7 @@ class RootHandler(RequestHandler):
pass
def handle_sigchld(sig, frame):
- IOLoop.instance().add_callback(IOLoop.inst... | Use add_callback_from_signal in benchmark.py's sigchld handler. This would manifest as an occasional deadlock when an 'ab' process finished. | py |
diff --git a/ftpretty.py b/ftpretty.py
index <HASH>..<HASH> 100644
--- a/ftpretty.py
+++ b/ftpretty.py
@@ -109,8 +109,6 @@ class ftpretty(object):
try:
self.conn.storbinary('STOR %s' % remote_file, local_file)
size = self.conn.size(remote_file)
- except Exception as exc:
- ... | Raise exception if fails to put. | py |
diff --git a/simplexml.py b/simplexml.py
index <HASH>..<HASH> 100644
--- a/simplexml.py
+++ b/simplexml.py
@@ -68,14 +68,14 @@ class SimpleXMLElement(object):
elements = self.__elements[0].getElementsByTagName(tag)
if not elements:
if DEBUG: print self.__elements[0].toxml(... | SimpleXmlElement: * Changed IndexError to AttributeError when tag isn't found * Removed incorrect raise at iteration | py |
diff --git a/saltobserver/redis_stream.py b/saltobserver/redis_stream.py
index <HASH>..<HASH> 100644
--- a/saltobserver/redis_stream.py
+++ b/saltobserver/redis_stream.py
@@ -16,7 +16,7 @@ class RedisStream(object):
minimum_version = StrictVersion("2.8.0")
if actual_version < minimum_version:
... | we do not need the list events from redis, remove them | py |
diff --git a/src/saml2/time_util.py b/src/saml2/time_util.py
index <HASH>..<HASH> 100644
--- a/src/saml2/time_util.py
+++ b/src/saml2/time_util.py
@@ -284,16 +284,16 @@ not_on_or_after = before
valid = before
-def later_than(then, that):
+def later_than(after, before):
""" True if then is later or equal to th... | Changed names to make parameters more obvious. | py |
diff --git a/spectate/_version.py b/spectate/_version.py
index <HASH>..<HASH> 100644
--- a/spectate/_version.py
+++ b/spectate/_version.py
@@ -1,2 +1,2 @@
-info = (0, 2, 2,)
+info = (0, 2, 3,)
__version__ = '.'.join(map(str, info)) | version bump <I> (#<I>) | py |
diff --git a/saltant/models/container_task_type.py b/saltant/models/container_task_type.py
index <HASH>..<HASH> 100644
--- a/saltant/models/container_task_type.py
+++ b/saltant/models/container_task_type.py
@@ -124,7 +124,7 @@ class ContainerTaskType(BaseTaskType):
class ContainerTaskTypeManager(BaseTaskTypeManage... | Fix odd bit of capitalization in docstring | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ setup(name='krypy',
author='André Gaul',
author_email='gaul@web-yard.de',
url='https://github.com/andrenarchy/krypy',
- requires=['numpy (>=1.7)', 'scipy (>=0.12)'],
+ #requires=['... | [setup] try disabling requires | py |
diff --git a/mapchete/_executor.py b/mapchete/_executor.py
index <HASH>..<HASH> 100644
--- a/mapchete/_executor.py
+++ b/mapchete/_executor.py
@@ -364,11 +364,10 @@ class DaskExecutor(_ExecutorBase):
batch = self._ac_iterator.next_batch(
block=max_submitted_tasks_reached
... | finaly found error leading to infinite future yield | py |
diff --git a/pythran/tests/test_set.py b/pythran/tests/test_set.py
index <HASH>..<HASH> 100644
--- a/pythran/tests/test_set.py
+++ b/pythran/tests/test_set.py
@@ -1,6 +1,9 @@
from pythran.tests import TestEnv
from pythran.typing import Set, List, Tuple
+import unittest
+import sys
+
class TestSet(TestEnv):
... | Skip non reproducible pypy failure on CI Yeah, that's not good testing practice | py |
diff --git a/test/test_properties.py b/test/test_properties.py
index <HASH>..<HASH> 100755
--- a/test/test_properties.py
+++ b/test/test_properties.py
@@ -126,6 +126,24 @@ class TestCharProp(unittest.TestCase, PropertyTests):
## self.assertEqual(p.pythonize(""), "")
+class TestPathProp(TestStringProp):
+ ... | Add tests for PathProp and ConfigPathProp class. | py |
diff --git a/aikif/toolbox/image_tools.py b/aikif/toolbox/image_tools.py
index <HASH>..<HASH> 100644
--- a/aikif/toolbox/image_tools.py
+++ b/aikif/toolbox/image_tools.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python3
+# coding: utf-8
# image_tools.py written by Duncan Murray 1/7/2014
import os | added standard header for py3 and utf8 | py |
diff --git a/src/hamster/preferences.py b/src/hamster/preferences.py
index <HASH>..<HASH> 100644
--- a/src/hamster/preferences.py
+++ b/src/hamster/preferences.py
@@ -133,8 +133,7 @@ class PreferencesEditor(Controller):
(selection, selection.connect('changed', self.category_changed_cb, self.category_store)... | PreferencesEditor: Pass parent to TimeInput constructor This ensures that the TimeInput is added to the widget tree directly, so the `self.get_ancestor()` in the constructor produces a meaningful result. This probably means that on Wayland, the popup from the "time" field in the preferences window did not display bef... | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -54,7 +54,7 @@ copyright = u'2015, Francisco Souza'
# The short X.Y version.
version = '0.7'
# The full version, including alpha/beta/rc tags.
-release = '0.7.1'
+release = '0.7.2'
# The language for cont... | docs/conf: fix version | py |
diff --git a/pycbc/types/array.py b/pycbc/types/array.py
index <HASH>..<HASH> 100644
--- a/pycbc/types/array.py
+++ b/pycbc/types/array.py
@@ -556,7 +556,7 @@ class Array(object):
""" Used internally by SWIG typemaps to ensure @_convert is called and scheme is correct """
if type(self._data) is not... | Change error for Array._swighelper to NotImplemented | py |
diff --git a/chainconsumer/colors.py b/chainconsumer/colors.py
index <HASH>..<HASH> 100644
--- a/chainconsumer/colors.py
+++ b/chainconsumer/colors.py
@@ -27,8 +27,8 @@ class Colors(object):
"o": "orange", "y": "yellow", "a": "amber", "p": "purple",
"e": "grey", "lg": "lgreen", "lb": "lblue"
... | Reversed the order of lgreen and green in default_color list. | py |
diff --git a/postmark/core.py b/postmark/core.py
index <HASH>..<HASH> 100644
--- a/postmark/core.py
+++ b/postmark/core.py
@@ -477,8 +477,8 @@ class PMBatchMail(object):
api_key = property(
lambda self: self.__api_key,
- lambda self, value: setattr(self, '_PMMail__api_key', value),
- l... | Fix typo in batch mailer internal property names. Pull request #<I> introduced a bug by namespacing interal properties with `_PMMail__*` instead of `_PMBatchMail__*`. This commit fixes the typo so that batch mail sending works. | py |
diff --git a/glue/lal.py b/glue/lal.py
index <HASH>..<HASH> 100644
--- a/glue/lal.py
+++ b/glue/lal.py
@@ -31,7 +31,7 @@ __version__ = "$Revision$"
import re
import urlparse
-
+import os
from glue import segments
@@ -520,5 +520,20 @@ class Cache(list):
Return a list of physical file names.
"""
return ... | The new method check() was added to Cache() class. | py |
diff --git a/netpyne/batch/batch.py b/netpyne/batch/batch.py
index <HASH>..<HASH> 100644
--- a/netpyne/batch/batch.py
+++ b/netpyne/batch/batch.py
@@ -179,13 +179,11 @@ class Batch(object):
# if user provided a netParams object as input argument
if self.netParams:
- print('HERE!!')
... | netParams mapping for batch and example | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -9,12 +9,18 @@ INSTALL_REQUIRES = [
'psutil',
]
+# HACK: Please remove someday
+import utool
+ext_modules = utool.find_ext_modules()
+
+
if __name__ == '__main__':
setup(
name='utool',
version='... | commiting hack for cyth | py |
diff --git a/safe/impact_functions/test_impact_function_manager.py b/safe/impact_functions/test_impact_function_manager.py
index <HASH>..<HASH> 100644
--- a/safe/impact_functions/test_impact_function_manager.py
+++ b/safe/impact_functions/test_impact_function_manager.py
@@ -91,7 +91,7 @@ class TestImpactFunctionManager... | Correct test case: allow point layers to be used as exposure in Earthquake IF #<I> | py |
diff --git a/nni/compression/pytorch/speedup/compressor.py b/nni/compression/pytorch/speedup/compressor.py
index <HASH>..<HASH> 100644
--- a/nni/compression/pytorch/speedup/compressor.py
+++ b/nni/compression/pytorch/speedup/compressor.py
@@ -258,8 +258,6 @@ class ModelSpeedup:
node: the NodePy
Th... | Remove dumplicated log message. (#<I>) | py |
diff --git a/pipenv/environment.py b/pipenv/environment.py
index <HASH>..<HASH> 100644
--- a/pipenv/environment.py
+++ b/pipenv/environment.py
@@ -723,7 +723,7 @@ class Environment(object):
)
if match is not None:
if req.editable and self.find_egg(match):
- return req.line_... | Use `samefile` to compare source paths | py |
diff --git a/goodtables/checks/head/non_matching_header.py b/goodtables/checks/head/non_matching_header.py
index <HASH>..<HASH> 100644
--- a/goodtables/checks/head/non_matching_header.py
+++ b/goodtables/checks/head/non_matching_header.py
@@ -78,6 +78,10 @@ def _slugify(string):
def _swap_fields(column1, column2):... | Fixed order fields work (#<I>) | py |
diff --git a/werkzeug/wsgi.py b/werkzeug/wsgi.py
index <HASH>..<HASH> 100644
--- a/werkzeug/wsgi.py
+++ b/werkzeug/wsgi.py
@@ -42,8 +42,8 @@ def responder(f):
def get_current_url(environ, root_only=False, strip_querystring=False,
host_only=False, trusted_hosts=None):
- """A handy helper funct... | Added notes on get_current_url being an IRI. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
from setuptools import setup, find_packages
setup(name='django-spillway',
- version='0.8.0',
+ version='0.8.1',
description='Geodata extensions for Django REST Framework',
long_descript... | Release version <I>, fixes pypi source dist | py |
diff --git a/openpnm/algorithms/TransientReactiveTransport.py b/openpnm/algorithms/TransientReactiveTransport.py
index <HASH>..<HASH> 100644
--- a/openpnm/algorithms/TransientReactiveTransport.py
+++ b/openpnm/algorithms/TransientReactiveTransport.py
@@ -179,6 +179,8 @@ class TransientReactiveTransport(ReactiveTranspor... | Adding values from set_IC to self at t=t_initial | py |
diff --git a/tests/testcases/connector_tests.py b/tests/testcases/connector_tests.py
index <HASH>..<HASH> 100644
--- a/tests/testcases/connector_tests.py
+++ b/tests/testcases/connector_tests.py
@@ -137,7 +137,7 @@ class ConnectorTestCase(unittest.TestCase):
testconnector = esgfpid.Connector(**args)
... | Fixed a unit test: Error message had changed. | py |
diff --git a/s3direct/urls.py b/s3direct/urls.py
index <HASH>..<HASH> 100644
--- a/s3direct/urls.py
+++ b/s3direct/urls.py
@@ -1,9 +1,8 @@
-from django.conf.urls import url
+from django.urls import path
+
from s3direct.views import get_upload_params, generate_aws_v4_signature
urlpatterns = [
- url('^get_upload_p... | updated url file to post django <I> path method | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,9 +2,9 @@ from setuptools import setup, find_packages
try:
from functools import singledispatch
- install_requires_single_dispatch = []
+ install_requires_singledispatch = []
except ImportError:
- install_... | Renamed variable in setup.py. | py |
diff --git a/astromodels/functions/function.py b/astromodels/functions/function.py
index <HASH>..<HASH> 100644
--- a/astromodels/functions/function.py
+++ b/astromodels/functions/function.py
@@ -896,7 +896,7 @@ class Function1D(Function):
try:
- results = self.evaluate(x, *values)
+ r... | Using equivalencies so that it is now possible to use Angstrom and Hz in place of energies, for example | py |
diff --git a/test/gen_casadi_test.py b/test/gen_casadi_test.py
index <HASH>..<HASH> 100644
--- a/test/gen_casadi_test.py
+++ b/test/gen_casadi_test.py
@@ -544,7 +544,12 @@ class GenCasadiTest(unittest.TestCase):
{'cache': True}
ref_model = transfer_model(TEST_DIR, 'Aircraft', compiler_options)
+... | Caching unit test: Verify that the second time we transfer a model, it is indeed cached | py |
diff --git a/parsl/executors/extreme_scale/mpi_worker_pool.py b/parsl/executors/extreme_scale/mpi_worker_pool.py
index <HASH>..<HASH> 100755
--- a/parsl/executors/extreme_scale/mpi_worker_pool.py
+++ b/parsl/executors/extreme_scale/mpi_worker_pool.py
@@ -429,7 +429,7 @@ if __name__ == "__main__":
... | Fix spacing of python version | py |
diff --git a/code/photini/imagelist.py b/code/photini/imagelist.py
index <HASH>..<HASH> 100644
--- a/code/photini/imagelist.py
+++ b/code/photini/imagelist.py
@@ -56,6 +56,7 @@ class Image(QtGui.QFrame):
# label to display status
self.status = QtGui.QLabel()
self.status.setAlignment(Qt.AlignL... | Bug fix: image 'status' characters now display correctly on Windows. | py |
diff --git a/src/app/actions/prottable/merge.py b/src/app/actions/prottable/merge.py
index <HASH>..<HASH> 100644
--- a/src/app/actions/prottable/merge.py
+++ b/src/app/actions/prottable/merge.py
@@ -56,11 +56,11 @@ def build_proteintable(pqdb, headerfields, mergecutoff, isobaric=False,
def protein_pool_fdr_cutoff(sq... | FDR cutoff filtering now throws out NA as well | py |
diff --git a/c7n/resources/fsx.py b/c7n/resources/fsx.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/fsx.py
+++ b/c7n/resources/fsx.py
@@ -16,7 +16,7 @@ from c7n.manager import resources
from c7n.query import QueryResourceManager
from c7n.actions import ActionRegistry, BaseAction
from c7n.filters import FilterRe... | aws.fsx - add marked-for-op filter (#<I>) | py |
diff --git a/danceschool/payments/square/views.py b/danceschool/payments/square/views.py
index <HASH>..<HASH> 100644
--- a/danceschool/payments/square/views.py
+++ b/danceschool/payments/square/views.py
@@ -120,7 +120,7 @@ def processSquarePayment(request):
except (ValueError, ObjectDoesNotExist) as e:
lo... | Fixed issue with error message on Square payments when invoice is invalid | py |
diff --git a/ryu/app/rest_router.py b/ryu/app/rest_router.py
index <HASH>..<HASH> 100644
--- a/ryu/app/rest_router.py
+++ b/ryu/app/rest_router.py
@@ -1628,12 +1628,12 @@ class OfCtl_v1_0(OfCtl):
v = (32 - src_mask) << ofp.OFPFW_NW_SRC_SHIFT | \
~ofp.OFPFW_NW_SRC_MASK
wildcard... | rest_router: bug fix of match parameter It was regarded as the list because of the unnecessary comma. | py |
diff --git a/mongo_orchestration/sharded_clusters.py b/mongo_orchestration/sharded_clusters.py
index <HASH>..<HASH> 100644
--- a/mongo_orchestration/sharded_clusters.py
+++ b/mongo_orchestration/sharded_clusters.py
@@ -67,6 +67,10 @@ class ShardedCluster(BaseModel):
ReplicaSets() if self.uses_rs_configdb e... | Add an informative error message for invalid setup of the config database in a sharded cluster with MongoDB >= <I>. | py |
diff --git a/hvac/v1/__init__.py b/hvac/v1/__init__.py
index <HASH>..<HASH> 100644
--- a/hvac/v1/__init__.py
+++ b/hvac/v1/__init__.py
@@ -217,7 +217,7 @@ class Client(object):
for key in keys:
result = self.rekey(key, nonce=nonce)
- if result['complete']:
+ if 'complete' i... | Fixed rekey_multi() function to prevent KeyErrors during rekey progress. | py |
diff --git a/wily/operators/cyclomatic.py b/wily/operators/cyclomatic.py
index <HASH>..<HASH> 100644
--- a/wily/operators/cyclomatic.py
+++ b/wily/operators/cyclomatic.py
@@ -79,7 +79,10 @@ class CyclomaticComplexityOperator(BaseOperator):
i = self._dict_from_function(instance)
els... | better warning messages and don't crash completely in future | py |
diff --git a/src/cr/cube/crunch_cube.py b/src/cr/cube/crunch_cube.py
index <HASH>..<HASH> 100644
--- a/src/cr/cube/crunch_cube.py
+++ b/src/cr/cube/crunch_cube.py
@@ -383,6 +383,9 @@ class CrunchCube(DataTable):
def _margin_pruned_indices(margin, inserted_ind, axis):
pruned_ind = np.logical_or(margin == 0... | Fix prune indices for single-element dimensions | py |
diff --git a/voluptuous.py b/voluptuous.py
index <HASH>..<HASH> 100644
--- a/voluptuous.py
+++ b/voluptuous.py
@@ -104,7 +104,7 @@ else:
__author__ = 'Alec Thomas <alec@swapoff.org>'
-__version__ = '0.8.3'
+__version__ = '0.8.4'
@contextmanager | Bump to <I>. Fixes #<I>. | py |
diff --git a/plenum/cli/cli.py b/plenum/cli/cli.py
index <HASH>..<HASH> 100644
--- a/plenum/cli/cli.py
+++ b/plenum/cli/cli.py
@@ -619,7 +619,7 @@ class Cli:
'prompt' : promtHelper,
'principals' : principalsHelper,
'load' : loadHelper,
- #'show link' : showLinkHelp... | [#<I>] Updated the help command- help command would give info about a command specified with it | py |
diff --git a/salt/utils/network.py b/salt/utils/network.py
index <HASH>..<HASH> 100644
--- a/salt/utils/network.py
+++ b/salt/utils/network.py
@@ -11,6 +11,7 @@ import os
import platform
import random
import re
+import shutil
import socket
import subprocess
import types
@@ -1996,6 +1997,9 @@ def _linux_remotes_on... | Don't expect ``lsof`` to be available | py |
diff --git a/test/test_tool.py b/test/test_tool.py
index <HASH>..<HASH> 100644
--- a/test/test_tool.py
+++ b/test/test_tool.py
@@ -2,12 +2,22 @@
"""
import sys
+import os
import pytest
import rarfile
+def have_tool(name):
+ for dn in os.get_exec_path():
+ if os.path.isfile(os.path.join(dn, name)... | test_tool: skip tool test if not installed | py |
diff --git a/kafka/producer/base.py b/kafka/producer/base.py
index <HASH>..<HASH> 100644
--- a/kafka/producer/base.py
+++ b/kafka/producer/base.py
@@ -89,11 +89,11 @@ def _send_upstream(queue, client, codec, batch_time, batch_size,
failed_reqs = ex.args[0]
log.exception("Failed payloads count ... | Fix: check failed reqs to retry only for positive limit | py |
diff --git a/frog/urls.py b/frog/urls.py
index <HASH>..<HASH> 100644
--- a/frog/urls.py
+++ b/frog/urls.py
@@ -47,7 +47,7 @@ urlpatterns = [
url(r'^pref/$', views.userpref.index),
# -- Comments
url(r'^comment/$', views.comment.commentList),
- url(r'^comment/(?P<obj_id>\d+)$', views.comment.index),
+ ... | Fixed bug with comments url endpoint | py |
diff --git a/mscgen/sphinxcontrib/mscgen.py b/mscgen/sphinxcontrib/mscgen.py
index <HASH>..<HASH> 100644
--- a/mscgen/sphinxcontrib/mscgen.py
+++ b/mscgen/sphinxcontrib/mscgen.py
@@ -70,7 +70,13 @@ class MscgenSimple(Directive):
def run_cmd(builder, cmd, cmd_name, cfg_name, stdin=''):
try:
- p = Popen(cm... | mscgen: Add a workaround for the missing shebang of epstopdf | py |
diff --git a/tests/settings.py b/tests/settings.py
index <HASH>..<HASH> 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -51,11 +51,6 @@ REST_FRAMEWORK = {
ROOT_URLCONF = 'tests.urls'
-
-TEMPLATE_DIRS = (
- os.path.abspath(os.path.join(BASE_DIR, '../dynamic_rest/templates')),
-)
-
STATICFILES_DIRS = (... | Updates settings.py configuration for django >=<I> To avoid getting the following warning: ?: (1_8.W<I>) The standalone TEMPLATE_* settings were deprecated in Django <I> and the TEMPLATES dictionary takes precedence. You must put the values of the following settings into your default TEMPLATES dict: TEMPLATE_DIRS. | py |
diff --git a/flask_restful/reqparse.py b/flask_restful/reqparse.py
index <HASH>..<HASH> 100644
--- a/flask_restful/reqparse.py
+++ b/flask_restful/reqparse.py
@@ -57,8 +57,8 @@ class Argument(object):
:param help: A brief description of the argument, returned in the
response when the argument is invalid w... | clarify behavior of `case_sensitive` option (fixes #<I>) | py |
diff --git a/elifetools/__init__.py b/elifetools/__init__.py
index <HASH>..<HASH> 100644
--- a/elifetools/__init__.py
+++ b/elifetools/__init__.py
@@ -1,2 +1,2 @@
-__version__ = '0.1.0'
\ No newline at end of file
+__version__ = '0.2.0'
\ No newline at end of file | Dev on version <I> | py |
diff --git a/art/__main__.py b/art/__main__.py
index <HASH>..<HASH> 100644
--- a/art/__main__.py
+++ b/art/__main__.py
@@ -12,7 +12,8 @@ if __name__ == "__main__":
if args[1].upper() == "TEST":
doctest.testfile(
"test.py",
- optionflags=doctest.NORMALIZE_WHITESPACE ... | fix : doctest.IGNORE_EXCEPTION_DETAIL flag added | py |
diff --git a/pyfolio/timeseries.py b/pyfolio/timeseries.py
index <HASH>..<HASH> 100644
--- a/pyfolio/timeseries.py
+++ b/pyfolio/timeseries.py
@@ -963,7 +963,7 @@ def get_top_drawdowns(returns, top=10):
underwater = underwater.loc[:peak]
drawdowns.append((peak, valley, recovery))
- if (le... | get_top_drawdowns now checks if underwater is all 0, that is there is no drawdowns left, this prevents a possible out of bounds error in get_max_drawdown_underwater getting the peak value. | py |
diff --git a/tests/test_sound_loading.py b/tests/test_sound_loading.py
index <HASH>..<HASH> 100644
--- a/tests/test_sound_loading.py
+++ b/tests/test_sound_loading.py
@@ -9,7 +9,6 @@ from aupyom.util import example_audio_file
class TestSoundLoading(unittest.TestCase):
def setUp(self):
- self.sampler = Sa... | Remove sampler creation in the tests as it will necessarily fail on travis (no sound card). | py |
diff --git a/docker_squash/version.py b/docker_squash/version.py
index <HASH>..<HASH> 100644
--- a/docker_squash/version.py
+++ b/docker_squash/version.py
@@ -1 +1 @@
-version = "1.0.0dev"
+version = "1.0.0rc6" | <I>rc6 release | py |
diff --git a/tests/unit/test_feature_parser.py b/tests/unit/test_feature_parser.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_feature_parser.py
+++ b/tests/unit/test_feature_parser.py
@@ -421,7 +421,7 @@ Feature: My scenarios have no name
FEATURE21 = """
Feature: Taming the tag parser
- Scenario: Next scena... | Update unit test to make it fail Refs #<I> | py |
diff --git a/salesforce/router.py b/salesforce/router.py
index <HASH>..<HASH> 100644
--- a/salesforce/router.py
+++ b/salesforce/router.py
@@ -12,6 +12,7 @@ Database router for SalesforceModel objects.
import logging
from django.conf import settings
+from salesforce import DJANGO_18_PLUS
log = logging.getLogger(... | TODO implement later the new router signature for Django <I> for better results | py |
diff --git a/pynYNAB/Client.py b/pynYNAB/Client.py
index <HASH>..<HASH> 100644
--- a/pynYNAB/Client.py
+++ b/pynYNAB/Client.py
@@ -94,7 +94,7 @@ class nYnabClientFactory(object):
exit(-1)
def get_id(email,password):
- return bcrypt.hashpw(email+password,bcrypt.gensalt())
+ return bcrypt.hashpw((em... | encode in utf-8 before hashing the client id | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -240,8 +240,8 @@ latex_elements = {
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
- (master_doc, 'iapws.tex', u'iapws Documentation',... | Correct flake8 E<I> complaints. ./docs/conf.py:<I>:3: E<I> continuation line under-indented for hanging indent ./docs/conf.py:<I>:3: E<I> continuation line under-indented for hanging indent | py |
diff --git a/raiden/network/transport/matrix/client.py b/raiden/network/transport/matrix/client.py
index <HASH>..<HASH> 100644
--- a/raiden/network/transport/matrix/client.py
+++ b/raiden/network/transport/matrix/client.py
@@ -490,7 +490,9 @@ class GMatrixClient(MatrixClient):
# The second sync is the first fu... | Correctly skip the first full sync [skip tests] | py |
diff --git a/picoweb.py b/picoweb.py
index <HASH>..<HASH> 100644
--- a/picoweb.py
+++ b/picoweb.py
@@ -1,9 +1,9 @@
import re
import asyncio_micro as asyncio
-import utemplate
+import utemplate.source
-template_loader = utemplate.Loader(".")
+template_loader = utemplate.source.Loader(".")
def render(writer, tmp... | Update for utemplate refactors. | py |
diff --git a/src/requirementslib/models/requirements.py b/src/requirementslib/models/requirements.py
index <HASH>..<HASH> 100644
--- a/src/requirementslib/models/requirements.py
+++ b/src/requirementslib/models/requirements.py
@@ -619,6 +619,13 @@ class VCSRequirement(FileRequirement):
vcsrepo.checkout_ref... | Remove potential ref in the end of uri after ref is parsed | py |
diff --git a/salt/utils/boto3.py b/salt/utils/boto3.py
index <HASH>..<HASH> 100644
--- a/salt/utils/boto3.py
+++ b/salt/utils/boto3.py
@@ -260,8 +260,6 @@ def get_error(e):
aws['status'] = e.status
if hasattr(e, 'reason'):
aws['reason'] = e.reason
- if hasattr(e, 'message') and... | The .message attr has been deprecated. Remove check for it. | py |
diff --git a/rest_framework_jwt/views.py b/rest_framework_jwt/views.py
index <HASH>..<HASH> 100644
--- a/rest_framework_jwt/views.py
+++ b/rest_framework_jwt/views.py
@@ -1,7 +1,5 @@
from rest_framework.views import APIView
from rest_framework import status
-from rest_framework import parsers
-from rest_framework imp... | Removed parser_classes and renderer_classes from JSONWebTokenAPIView | py |
diff --git a/bambi/models.py b/bambi/models.py
index <HASH>..<HASH> 100644
--- a/bambi/models.py
+++ b/bambi/models.py
@@ -29,6 +29,8 @@ class Model(object):
if backend.lower() == 'pymc3':
from bambi.backends import PyMC3BackEnd
self.backend = PyMC3BackEnd()
+ else:
+ ... | transformations now operate only on numpy arrays, not DFs | py |
diff --git a/molecule/provisioner/ansible.py b/molecule/provisioner/ansible.py
index <HASH>..<HASH> 100644
--- a/molecule/provisioner/ansible.py
+++ b/molecule/provisioner/ansible.py
@@ -128,7 +128,7 @@ class Ansible(base.Base):
.. important::
- This is feature should be considered experimental.
+ ... | Minor text fix (#<I>) Minor grammar fix | py |
diff --git a/wfdb/plot/plot.py b/wfdb/plot/plot.py
index <HASH>..<HASH> 100644
--- a/wfdb/plot/plot.py
+++ b/wfdb/plot/plot.py
@@ -123,10 +123,12 @@ def plot_items(signal=None, ann_samp=None, ann_sym=None, fs=None,
Parameters
----------
- signal : 1d or 2d numpy array, optional
- The uniformly sam... | plot_items: accept non-smooth signal data as input. When plotting signals, in addition to allowing the signal argument to be a one-dimensional or two-dimensional array, allow it to be a list of one-dimensional arrays (so that each channel can have a different length.) | py |
diff --git a/emu.py b/emu.py
index <HASH>..<HASH> 100755
--- a/emu.py
+++ b/emu.py
@@ -21,7 +21,7 @@ import pygame
class Emu(object):
- def __init__(self, width=40, height=16, ip='127.0.0.1', port=1337):
+ def __init__(self, width=40, height=40, ip='127.0.0.1', port=1337):
self.width = width
... | now uses <I>x<I> as the default size | py |
diff --git a/cachalot/tests/write.py b/cachalot/tests/write.py
index <HASH>..<HASH> 100644
--- a/cachalot/tests/write.py
+++ b/cachalot/tests/write.py
@@ -555,7 +555,7 @@ class WriteTestCase(TransactionTestCase):
with self.assertNumQueries(1):
self.assertEqual(TestChild.objects.get(), t_child)
-... | Fixes yet another testing issue with SQLite. | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -42,9 +42,9 @@ import pyisbn
extensions = \
['sphinx.ext.%s' % ext for ext in ['autodoc', 'coverage', 'doctest',
- 'ifconfig', 'intersphinx', 'napoleon',
- ... | Switch to extlinks for PyPI links | py |
diff --git a/python/ray/tests/test_tensorflow.py b/python/ray/tests/test_tensorflow.py
index <HASH>..<HASH> 100644
--- a/python/ray/tests/test_tensorflow.py
+++ b/python/ray/tests/test_tensorflow.py
@@ -1,8 +1,10 @@
from numpy.testing import assert_almost_equal
-import tensorflow.compat.v1 as tf
import ray
import ... | Disable eager execution to fix test_tensorflow (#<I>) | py |
diff --git a/celerytask/signals.py b/celerytask/signals.py
index <HASH>..<HASH> 100644
--- a/celerytask/signals.py
+++ b/celerytask/signals.py
@@ -14,6 +14,7 @@ from .tasks import update_discord_groups
from .tasks import update_teamspeak3_groups
from .tasks import update_discourse_groups
from .tasks import update_sm... | assess state on user reactivation addresses #<I> | py |
diff --git a/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py b/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py
index <HASH>..<HASH> 100644
--- a/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py
+++ b/cluster/juju/layers/kubernetes-master/reactive/kubernetes_mas... | wait for kubedns to be ready | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -85,7 +85,7 @@ setup(
description='Pywb Webrecorder web archive replay and capture tools',
long_description=long_description,
license='GPL',
- packages=find_packages(),
+ packages=find_packages(exclude=['t... | setup.py: exclude tests_disabled from install | py |
diff --git a/netshow-lib/_gitversion.py b/netshow-lib/_gitversion.py
index <HASH>..<HASH> 100644
--- a/netshow-lib/_gitversion.py
+++ b/netshow-lib/_gitversion.py
@@ -172,6 +172,9 @@ def get_version(abbrev=0, filename="RELEASE-VERSION".encode(ENCODING)):
"""
release_version = _read_release_version(filename)... | print out version in RELEASE-VERSION string if it is present. Trust it as the source of truth. | py |
diff --git a/trakt/objects.py b/trakt/objects.py
index <HASH>..<HASH> 100644
--- a/trakt/objects.py
+++ b/trakt/objects.py
@@ -113,7 +113,10 @@ class Show(Media):
def update(self, info=None, **kwargs):
super(Show, self).update(info, **kwargs)
- update_attributes(self, info, ['title', 'year'])
+ ... | Fixed issue where the "year" property is returned as a string | py |
diff --git a/openpack/basepack.py b/openpack/basepack.py
index <HASH>..<HASH> 100644
--- a/openpack/basepack.py
+++ b/openpack/basepack.py
@@ -377,7 +377,6 @@ class ContentTypes(set):
return self._item_map(ContentType.Override)
-
class ContentType(object):
"""
An abstract content type.
@@ -430,6 +429,8 @@ c... | Added __hash__ to ContentType class - this prevents duplicate ContentType objects from being added to the same ContentTypes set | py |
diff --git a/camxes/__init__.py b/camxes/__init__.py
index <HASH>..<HASH> 100644
--- a/camxes/__init__.py
+++ b/camxes/__init__.py
@@ -54,7 +54,7 @@ class NodeBase(Node):
@property
def lojban(self):
- sep = '' if self.find('spaces') else ' '
+ sep = '' if self.find('*[Ss]paces') else ' '
... | Detect spaces better with .lojban | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -26,8 +26,7 @@
""" MSMTools
-desc lines
-
+MSMTools contains an API to estimate and analyze Markov state models.
"""
# TODO: extend docstring
DOCLINES = __doc__.split("\n")
@@ -39,7 +38,7 @@ import versioneer
import w... | changed classifier from beta to production/stable | py |
diff --git a/fuzzysearch/substitutions_only.py b/fuzzysearch/substitutions_only.py
index <HASH>..<HASH> 100644
--- a/fuzzysearch/substitutions_only.py
+++ b/fuzzysearch/substitutions_only.py
@@ -1,5 +1,5 @@
from collections import deque, defaultdict
-from itertools import islice, chain
+from itertools import islice
... | removed unused import and fixed a doc-string | py |
diff --git a/pyrax/__init__.py b/pyrax/__init__.py
index <HASH>..<HASH> 100755
--- a/pyrax/__init__.py
+++ b/pyrax/__init__.py
@@ -516,7 +516,7 @@ def set_http_debug(val):
def get_encoding():
"""Returns the unicode encoding type."""
- return _get_setting("encoding")
+ return _get_setting("encoding") or de... | Fixed a bug when the encoding is not set in the config file. | py |
diff --git a/phypno/detect/spindle.py b/phypno/detect/spindle.py
index <HASH>..<HASH> 100644
--- a/phypno/detect/spindle.py
+++ b/phypno/detect/spindle.py
@@ -510,7 +510,7 @@ def transform_signal(dat, s_freq, method, method_opt=None):
if 'moving_avg' == method:
dur = method_opt['dur']
- flat = on... | numpy.ones wants an integer as input | py |
diff --git a/fabric/runners.py b/fabric/runners.py
index <HASH>..<HASH> 100644
--- a/fabric/runners.py
+++ b/fabric/runners.py
@@ -88,23 +88,6 @@ class Remote(Runner):
# * agent-forward close()
-class RemoteSudo(Remote):
- """
- Run a command over SSH, wrapped in ``sudo``.
- """
- # Needs to do wha... | Oh this is totally unneeded now whee | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -24,6 +24,7 @@ from install import (Application,
SetupPy)
OS_RELEASE_FILE = '/etc/os-release'
+REDHAT_RELEASE_FILE = '/etc/redhat-release'
install_path = os.path.... | Add CentOS6 case to _is_centos. CentOS6 does not have /etc/os-release file. only has /etc/redhat-release. Identify the environment as centos to run fedora base specific tests in test_install_fedora.py. | py |
diff --git a/canmatrix/cmjson.py b/canmatrix/cmjson.py
index <HASH>..<HASH> 100644
--- a/canmatrix/cmjson.py
+++ b/canmatrix/cmjson.py
@@ -156,6 +156,12 @@ def dump(db, f, **options):
json.dump({"messages": exportArray}, temp, sort_keys=True,
indent=4, separators=(',', ': '))
+ if sys.version_i... | Fix JSON dump closing file (#<I>) | py |
diff --git a/superset/views/core.py b/superset/views/core.py
index <HASH>..<HASH> 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -1677,7 +1677,10 @@ class Superset(BaseSupersetView):
@has_access_api
@expose("/warm_up_cache/", methods=['GET'])
def warm_up_cache(self):
- """Warm... | [docstring] Refining warm_up_cache comment (#<I>) | py |
diff --git a/astrocats/catalog/catalog.py b/astrocats/catalog/catalog.py
index <HASH>..<HASH> 100644
--- a/astrocats/catalog/catalog.py
+++ b/astrocats/catalog/catalog.py
@@ -317,7 +317,7 @@ class Catalog:
# Find the first task that has "always_journal" set to True
for key in tasks:
- if ... | MAINT: only consider always_journal tasks if active | py |
diff --git a/flaky/flaky_nose_plugin.py b/flaky/flaky_nose_plugin.py
index <HASH>..<HASH> 100644
--- a/flaky/flaky_nose_plugin.py
+++ b/flaky/flaky_nose_plugin.py
@@ -53,6 +53,10 @@ class FlakyPlugin(_FlakyPlugin, Plugin):
def handleError(self, test, err):
"""
Baseclass override. Called when a te... | Improve nose plugin docstrings to reflect exit code improvements. | py |
diff --git a/pytautulli/models/base.py b/pytautulli/models/base.py
index <HASH>..<HASH> 100644
--- a/pytautulli/models/base.py
+++ b/pytautulli/models/base.py
@@ -14,7 +14,11 @@ class PyTautulliJJSONEncoder(json.JSONEncoder):
def default(self, obj):
"""Default JSON encoder."""
if isinstance(obj, ... | Fixes issue with double converting to JSON in encoder (#<I>) | py |
diff --git a/ariba/report.py b/ariba/report.py
index <HASH>..<HASH> 100644
--- a/ariba/report.py
+++ b/ariba/report.py
@@ -32,6 +32,21 @@ columns = [
]
+int_columns = [
+ 'reads',
+ 'ref_len',
+ 'ref_base_assembled',
+ 'ctg_len',
+ 'ref_start',
+ 'ref_end',
+ 'ctg_start',
+ 'ctg_end',
+]
+
... | Add lists of int and float column names | py |
diff --git a/container/core.py b/container/core.py
index <HASH>..<HASH> 100644
--- a/container/core.py
+++ b/container/core.py
@@ -601,7 +601,11 @@ def conductorcmd_build(engine_name, project_name, services, cache=True,
logger.info(u'%s integration engine loaded. Build starting.',
engine.display_name, pro... | Bugfix: only build requested services when specified | py |
diff --git a/evohomeclient2/__init__.py b/evohomeclient2/__init__.py
index <HASH>..<HASH> 100644
--- a/evohomeclient2/__init__.py
+++ b/evohomeclient2/__init__.py
@@ -15,6 +15,8 @@ except ImportError:
from .location import Location
+HTTP_UNAUTHORIZED = 401
+
logging.basicConfig()
_LOGGER = logging.getLogger(__na... | handle unauthorized access_tokens | py |
diff --git a/command/dist.py b/command/dist.py
index <HASH>..<HASH> 100644
--- a/command/dist.py
+++ b/command/dist.py
@@ -338,8 +338,8 @@ class Dist (Command):
# pattern
if os.path.isdir (words[0]):
if exclude:
- file.warn ("exclude (!) doesn't apply to " +... | Typo fix: 'file.warn' should have been 'manifest.warn' in a couple of places. | py |
diff --git a/web/web.py b/web/web.py
index <HASH>..<HASH> 100644
--- a/web/web.py
+++ b/web/web.py
@@ -210,7 +210,7 @@ class HTTPHandler(object):
#If client is expecting a 100, give self a chance to check it and raise an HTTPError if necessary
if self.request.headers.get('Expect') == '100-continue':
self.chec... | Write bytes for <I> Continue | py |
diff --git a/salt/log/handlers/logstash_mod.py b/salt/log/handlers/logstash_mod.py
index <HASH>..<HASH> 100644
--- a/salt/log/handlers/logstash_mod.py
+++ b/salt/log/handlers/logstash_mod.py
@@ -214,7 +214,7 @@ class LogstashFormatter(logging.Formatter, NewStyleClassMixIn):
super(LogstashFormatter, self).__ini... | Don't send timestamps in UTC Logstash by itself takes care of conversion of timestamps to UTC, with how it was logstash was showing wrong time for the events. | py |
diff --git a/src/rezgui/widgets/ChangelogEdit.py b/src/rezgui/widgets/ChangelogEdit.py
index <HASH>..<HASH> 100644
--- a/src/rezgui/widgets/ChangelogEdit.py
+++ b/src/rezgui/widgets/ChangelogEdit.py
@@ -46,5 +46,9 @@ class VariantChangelogEdit(ChangelogEdit):
self.variant = None
def set_variant(self, va... | -fixed case in GUI where changelog widget sometimes threw an error | py |
diff --git a/web/web.py b/web/web.py
index <HASH>..<HASH> 100644
--- a/web/web.py
+++ b/web/web.py
@@ -146,7 +146,7 @@ class HTTPLog(object):
os.makedirs(os.path.dirname(httpd_log), exist_ok=True)
self.httpd_log = open(httpd_log, 'a', 1)
else:
- self.httpd_log = sys.stderr
+ self.httpd_log = sys.stdout
... | change logging to go to stdout | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.