diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tdaemon.py b/tdaemon.py
index <HASH>..<HASH> 100755
--- a/tdaemon.py
+++ b/tdaemon.py
@@ -93,7 +93,7 @@ class Watcher(object):
def file_sizes(self):
size = sum(map(os.path.getsize, self.file_list))
return size / 1024 / 1024
-
+
def diff_list(self, list1, list2):
... | Adding information to warning message (question). It helps the user for anwsering the question | py |
diff --git a/src/app/drivers/base.py b/src/app/drivers/base.py
index <HASH>..<HASH> 100644
--- a/src/app/drivers/base.py
+++ b/src/app/drivers/base.py
@@ -18,7 +18,8 @@ class BaseDriver(object):
def set_options(self):
self.options = self.define_options(['fn', 'outdir', 'outfile'], {})
- self.opti... | Actually show infile type in help text instead of empty formatting braces | py |
diff --git a/tests/test_client_functional.py b/tests/test_client_functional.py
index <HASH>..<HASH> 100644
--- a/tests/test_client_functional.py
+++ b/tests/test_client_functional.py
@@ -660,7 +660,7 @@ def test_timeout_on_reading_data(loop, test_client, mocker):
app.router.add_route('GET', '/', handler)
clie... | Increase timeout trying to make a test more reliable | py |
diff --git a/django_afip/views.py b/django_afip/views.py
index <HASH>..<HASH> 100644
--- a/django_afip/views.py
+++ b/django_afip/views.py
@@ -62,7 +62,7 @@ class ReceiptPDFView(PDFView):
context['pdf'] = receipt_pdf
context['taxpayer'] = taxpayer
context['extras'] = extras
- context['... | Fix occasional bug where barcodes are not rendered Under some not-quite-clear scenarios, barcode where not rendering since bytestrings were getting concatenated as "b'IVBOR". The leading b' is invalid base<I>, and hence, the image was not parsed as expected. | py |
diff --git a/mill/__init__.py b/mill/__init__.py
index <HASH>..<HASH> 100644
--- a/mill/__init__.py
+++ b/mill/__init__.py
@@ -275,6 +275,8 @@ class Mill:
for home in homes:
payload = {"homeId": home.get("homeId")}
data = await self.request("getIndependentDevices", payload)
+ ... | handle bad data from mill (#<I>) | py |
diff --git a/django_performance_testing/utils.py b/django_performance_testing/utils.py
index <HASH>..<HASH> 100644
--- a/django_performance_testing/utils.py
+++ b/django_performance_testing/utils.py
@@ -9,3 +9,33 @@ class BeforeAfterWrapper(object):
def wrap(self, *a, **kw):
with self.context_manager:
... | introduce DelegatingProxy object based on django.db.connection proxy class | py |
diff --git a/sqlserver/datadog_checks/sqlserver/metrics.py b/sqlserver/datadog_checks/sqlserver/metrics.py
index <HASH>..<HASH> 100644
--- a/sqlserver/datadog_checks/sqlserver/metrics.py
+++ b/sqlserver/datadog_checks/sqlserver/metrics.py
@@ -422,7 +422,7 @@ class SqlDatabaseFileStats(BaseSqlServerMetric):
row... | Add code comment (#<I>) | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -46,16 +46,16 @@ master_doc = 'index'
# General information about the project.
project = u'pygccxml'
-copyright = u'2014, Insight Software Consortium'
+copyright = u'2014-2015, Insight Software Consortium'
... | Update copyright date and use right version number in the doc | py |
diff --git a/spyderlib/plugins/__init__.py b/spyderlib/plugins/__init__.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/__init__.py
+++ b/spyderlib/plugins/__init__.py
@@ -291,6 +291,7 @@ class SpyderPluginMixin(object):
def toggle_view(self, checked):
if checked:
self.dockwidget.sho... | Main Window: Give focus to a plugin after selecting it from the Plugins menu | py |
diff --git a/SALib/test_functions/Sobol_G.py b/SALib/test_functions/Sobol_G.py
index <HASH>..<HASH> 100755
--- a/SALib/test_functions/Sobol_G.py
+++ b/SALib/test_functions/Sobol_G.py
@@ -21,7 +21,7 @@ def evaluate(values, a=None):
gto = np.array(values) > 1
if ltz.any() == True:
- raise ValueError... | fix for 'one' instead of 'zero' in ValueError text Not much of an error, but could be helpful for a user to know that you meant 'zero' here :) | py |
diff --git a/pql/matching.py b/pql/matching.py
index <HASH>..<HASH> 100644
--- a/pql/matching.py
+++ b/pql/matching.py
@@ -131,7 +131,9 @@ class SchemaAwareOperatorMap(OperatorMap):
self._field_to_type = field_to_type
def resolve_field(self, node):
field = super(SchemaAwareOperatorMap, self).reso... | Another solution for #4: replace 'in' with getitem to support defaultdicts for schema | py |
diff --git a/lark/exceptions.py b/lark/exceptions.py
index <HASH>..<HASH> 100644
--- a/lark/exceptions.py
+++ b/lark/exceptions.py
@@ -130,7 +130,7 @@ class UnexpectedCharacters(LexError, UnexpectedInput):
else:
_s = seq[lex_pos]
- message = "No terminal defined for '%s' at line %d col %d... | Make `UnexpectedCharacters` print the repr This is an additional response to #<I>. I also often came across this when unexpectedly having a newline, which would previously result in the message being split up across two lines. This PR makes it easier to identify exactly which special character is causing problems. | py |
diff --git a/bt/__init__.py b/bt/__init__.py
index <HASH>..<HASH> 100644
--- a/bt/__init__.py
+++ b/bt/__init__.py
@@ -10,4 +10,4 @@ from .core import HedgeSecurity, CouponPayingHedgeSecurity
import ffn
from ffn import utils, data, get, merge
-__version__ = (0, 2, 9)
+__version__ = (0, 2, 10) | Bump to version <I> | py |
diff --git a/bids/variables/variables.py b/bids/variables/variables.py
index <HASH>..<HASH> 100644
--- a/bids/variables/variables.py
+++ b/bids/variables/variables.py
@@ -498,7 +498,7 @@ class DenseRunVariable(BIDSVariable):
for i, name in enumerate(df.columns)]
- def _get_sampling_rate(... | Update bids/variables/variables.py | py |
diff --git a/bika/lims/browser/clientfolder.py b/bika/lims/browser/clientfolder.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/clientfolder.py
+++ b/bika/lims/browser/clientfolder.py
@@ -36,6 +36,9 @@ class ClientFolderContentsView(BikaListingView):
self.description = ""
self.form_id = "list_c... | moving clientfolder definition to __init__ | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,8 @@ if __name__ == "__main__":
author_email='andrew@quantopian.com',
packages=[
'alphalens',
+ 'alphalens.examples',
+ 'alphalens.tests',
],
lon... | MAINT Add tests and examples to setup.py so that they will be installed. | py |
diff --git a/analytical/templatetags/chartbeat.py b/analytical/templatetags/chartbeat.py
index <HASH>..<HASH> 100644
--- a/analytical/templatetags/chartbeat.py
+++ b/analytical/templatetags/chartbeat.py
@@ -100,9 +100,14 @@ def contribute_to_analytical(add_node):
def _get_domain(context):
domain = context.get(D... | Check for 'django.contrib.sites' when getting the domain for chartbeat | py |
diff --git a/spyderlib/widgets/formlayout.py b/spyderlib/widgets/formlayout.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/formlayout.py
+++ b/spyderlib/widgets/formlayout.py
@@ -278,7 +278,7 @@ class FormWidget(QWidget):
elif isinstance(value, int):
field = QSpinBox(self)
... | Upgraded formlayout to <I> final | py |
diff --git a/quart/wrappers.py b/quart/wrappers.py
index <HASH>..<HASH> 100644
--- a/quart/wrappers.py
+++ b/quart/wrappers.py
@@ -550,10 +550,10 @@ class Response(_BaseRequestResponse, JSONMixin):
if self.automatically_set_content_length:
self.headers['Content-Length'] = str(len(bytes_data))
- ... | Bugfix accept bytes as cookie value argument Werkzeug accepted either and dealt accordingly, now Quart does the same. | py |
diff --git a/dipper/sources/MGI.py b/dipper/sources/MGI.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/MGI.py
+++ b/dipper/sources/MGI.py
@@ -53,7 +53,7 @@ class MGI(Source):
#Set this flag to False for normal running
- test=True
+ test=False
#for testing purposes, this is a list of internal db... | removed rogue namespaces reference from MGI; set test to False | py |
diff --git a/gadget/__init__.py b/gadget/__init__.py
index <HASH>..<HASH> 100644
--- a/gadget/__init__.py
+++ b/gadget/__init__.py
@@ -22,6 +22,8 @@ TYPE_CODES = munch.Munch(
_ALL_TYPE_CODES = set(TYPE_CODES.values())
+_logger = logbook.Logger(__name__)
+
class Setup(object):
@@ -94,7 +96,7 @@ def log_error(e... | Use a dedicated logger instead of the generic one | py |
diff --git a/ants/segmentation/atropos.py b/ants/segmentation/atropos.py
index <HASH>..<HASH> 100644
--- a/ants/segmentation/atropos.py
+++ b/ants/segmentation/atropos.py
@@ -77,6 +77,7 @@ def atropos(a, x, i='Kmeans[3]', m='[0.2,1x1]', c='[5,0]',
>>> img = ants.resample_image(img, (64,64), 1, 0)
>>> mask = a... | DOC: prior-based segmentation | py |
diff --git a/test/python/test_wrapper.py b/test/python/test_wrapper.py
index <HASH>..<HASH> 100644
--- a/test/python/test_wrapper.py
+++ b/test/python/test_wrapper.py
@@ -61,11 +61,13 @@ class TestWrapper(QiskitTestCase):
qiskit.wrapper.register(qe_token, qe_url)
initial_providers = registered_provide... | Fix master failing due to registration test (#<I>) | py |
diff --git a/cwltool/command_line_tool.py b/cwltool/command_line_tool.py
index <HASH>..<HASH> 100644
--- a/cwltool/command_line_tool.py
+++ b/cwltool/command_line_tool.py
@@ -732,8 +732,10 @@ class CommandLineTool(Process):
initialWorkdir, "listing", WorkflowException, debug
... | Fixes #<I> A more detailed error message for "paths starting with '/' only permitted in CWL <I> and later". | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ if sys.version_info[:2] < (2, 7):
setup(
name='django-local-settings',
- version='1.0a7',
+ version='1.0a8',
author='Wyatt Baldwin',
author_email='wyatt.baldwin@pdx.edu',
url='https:... | Prepare release <I>a8 | py |
diff --git a/tests/examples/auctions/test_simple_open_auction.py b/tests/examples/auctions/test_simple_open_auction.py
index <HASH>..<HASH> 100644
--- a/tests/examples/auctions/test_simple_open_auction.py
+++ b/tests/examples/auctions/test_simple_open_auction.py
@@ -3,6 +3,7 @@ import ethereum.utils as utils
FIVE_DA... | cleaned up imports and replaced boolean assertion under test_simple_auction | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ except ImportError:
pass
else:
# pandas 0.20.2 needs updated numexpr; the claim is 2.4.6, but that failed.
- DEPENDENCIES.append("numexpr==2.6.2")
+ DEPENDENCIES.append("numexpr>=2.6.2")
# 2t... | allow later numexpr version. Fix #<I> | py |
diff --git a/mbed_cloud/exceptions.py b/mbed_cloud/exceptions.py
index <HASH>..<HASH> 100644
--- a/mbed_cloud/exceptions.py
+++ b/mbed_cloud/exceptions.py
@@ -19,6 +19,7 @@ class CloudApiException(Exception):
def __init__(self, message, reason=None, status=400):
"""Initialize CloudApiException class"""
... | Call constructor from base class in CloudApiException. | py |
diff --git a/mopidy_spotify/playlists.py b/mopidy_spotify/playlists.py
index <HASH>..<HASH> 100644
--- a/mopidy_spotify/playlists.py
+++ b/mopidy_spotify/playlists.py
@@ -1,9 +1,24 @@
from __future__ import unicode_literals
+import copy
+
from mopidy import backend
class SpotifyPlaylistsProvider(backend.Playli... | playlists: Add old default behavior This was removed from the PlaylistProvider superclass in Mopidy <I>. | py |
diff --git a/synapse/exc.py b/synapse/exc.py
index <HASH>..<HASH> 100644
--- a/synapse/exc.py
+++ b/synapse/exc.py
@@ -1,4 +1,25 @@
+class SynErr(Exception):
+
+ def __init__(self, **info):
+ self.errinfo = info
+ Exception.__init__(self, self._getExcMsg() )
+
+ def _getExcMsg(self):
+ prop... | added slightly more extensible exception metadata mechanism | py |
diff --git a/aetros/KerasLogger.py b/aetros/KerasLogger.py
index <HASH>..<HASH> 100644
--- a/aetros/KerasLogger.py
+++ b/aetros/KerasLogger.py
@@ -27,6 +27,17 @@ from aetros.utils.image import get_layer_vis_square, get_layer_vis_square_raw, g
from .keras_model_utils import ensure_dir, get_total_params
import six
+#... | compatibility with keras 1.x | py |
diff --git a/src/transformers/configuration_t5.py b/src/transformers/configuration_t5.py
index <HASH>..<HASH> 100644
--- a/src/transformers/configuration_t5.py
+++ b/src/transformers/configuration_t5.py
@@ -41,6 +41,8 @@ class T5Config(PretrainedConfig):
vocab_size_or_config_json_file: Vocabulary size of `... | improve doc (#<I>) | py |
diff --git a/fluo/admin/nested.py b/fluo/admin/nested.py
index <HASH>..<HASH> 100644
--- a/fluo/admin/nested.py
+++ b/fluo/admin/nested.py
@@ -233,7 +233,7 @@ class NestedModelAdmin(InlineInstancesMixin, admin.ModelAdmin):
self.save_related(request, form, formsets, False)
args = ()
... | Fix typo in nested inline (s/log_addittion/log_addition/) | py |
diff --git a/simpleai/search/viewers.py b/simpleai/search/viewers.py
index <HASH>..<HASH> 100644
--- a/simpleai/search/viewers.py
+++ b/simpleai/search/viewers.py
@@ -194,7 +194,6 @@ class BaseViewer(object):
graph.write(image_path, format=image_format)
-# TODO output_enabled desaparecio
class ConsoleVi... | Removed old solved TODOs from the code | py |
diff --git a/killer/killer.py b/killer/killer.py
index <HASH>..<HASH> 100644
--- a/killer/killer.py
+++ b/killer/killer.py
@@ -33,7 +33,7 @@ or the disk tray is tampered with, shut the computer down!
import argparse
import time
-from . import WINDOWS, POSIX
+from . import WINDOWS, LINUX, OSX, BSD, POSIX, WSL
d... | import all systems rather than a few | py |
diff --git a/patchwork/connection.py b/patchwork/connection.py
index <HASH>..<HASH> 100644
--- a/patchwork/connection.py
+++ b/patchwork/connection.py
@@ -11,6 +11,9 @@ import string
import logging
import socket
+class PatchworkConnectionException(Exception):
+ pass
+
def lazyprop(fn):
attr_name = '_lazy_'... | raise PatchworkConnectionException when failing to get shell prompt | py |
diff --git a/pymatgen/analysis/functional_groups.py b/pymatgen/analysis/functional_groups.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/functional_groups.py
+++ b/pymatgen/analysis/functional_groups.py
@@ -290,15 +290,16 @@ class FunctionalGroupExtractor:
num_deviants += 1
... | Fix for FunctionalGroupExtractor to more properly add hydrogens to ring structures | py |
diff --git a/andes/utils/streaming.py b/andes/utils/streaming.py
index <HASH>..<HASH> 100644
--- a/andes/utils/streaming.py
+++ b/andes/utils/streaming.py
@@ -279,7 +279,10 @@ class Streaming(object):
sleep(0.2)
self.dimec.broadcast('Idxvgs', self.Idxvgs)
sleep(0.2)
- s... | Catch SysParam exception when xcoord and ycoord are lists | py |
diff --git a/pyrtl/wire.py b/pyrtl/wire.py
index <HASH>..<HASH> 100644
--- a/pyrtl/wire.py
+++ b/pyrtl/wire.py
@@ -228,7 +228,10 @@ class WireVector(object):
return outwire
def __len__(self):
- return self.bitwidth
+ if self.bitwidth is None:
+ return 0
+ else:
+ ... | fix and close issue #<I> | py |
diff --git a/pymzn/dzn/marsh.py b/pymzn/dzn/marsh.py
index <HASH>..<HASH> 100644
--- a/pymzn/dzn/marsh.py
+++ b/pymzn/dzn/marsh.py
@@ -136,6 +136,8 @@ def _dzn_val(val):
return 'true' if val else 'false'
if isinstance(val, Enum):
return val.name
+ if isinstance(val, set) and len(val) == 0:
+ ... | dzn/marsh: fix serialization of empty sets Fixes #<I> | py |
diff --git a/db/mysql.py b/db/mysql.py
index <HASH>..<HASH> 100644
--- a/db/mysql.py
+++ b/db/mysql.py
@@ -427,7 +427,7 @@ class DatabaseInterface(object):
SQL, values, datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
sys.stderr.write("\nError: '%s'.\n" % (str(e)))
sys.stderr.fl... | Added a stack trace to an error message. | py |
diff --git a/indra/databases/mesh_client.py b/indra/databases/mesh_client.py
index <HASH>..<HASH> 100644
--- a/indra/databases/mesh_client.py
+++ b/indra/databases/mesh_client.py
@@ -160,11 +160,16 @@ def get_mesh_id_name_from_web(mesh_term):
return None, None
try:
+ # Try to parse the json respo... | Add json decoding to try-except block. | py |
diff --git a/libzfs/zpool.py b/libzfs/zpool.py
index <HASH>..<HASH> 100644
--- a/libzfs/zpool.py
+++ b/libzfs/zpool.py
@@ -31,8 +31,8 @@ class ZPool(object):
_status_extra = None
_errata = None
- def __init__(self, handle):
- self._hdl = handle
+ def __init__(self, hdl):
+ self._hdl = hd... | -Change: Consistency in naming. | py |
diff --git a/tests/test_baselens.py b/tests/test_baselens.py
index <HASH>..<HASH> 100644
--- a/tests/test_baselens.py
+++ b/tests/test_baselens.py
@@ -124,11 +124,12 @@ def test_type_custom_class_immutable():
lens(C(9)).a.set(7)
-# Tests to make sure types that are not supported by lenses return the
-# rig... | split tests for unsupported setitem and setattr | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ setup(
author_email = 'aerkalov@gmail.com',
packages = ['ebooklib', 'ebooklib.plugins'],
url = 'https://github.com/aerkalov/ebooklib',
- license = 'LICENSE.txt',
+ license = 'GNU Affero Genera... | Updated license info in setup.py | py |
diff --git a/spyder/plugins/editor.py b/spyder/plugins/editor.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor.py
+++ b/spyder/plugins/editor.py
@@ -2385,12 +2385,10 @@ class Editor(SpyderPluginWidget):
"""Debug current script"""
self.run_file(debug=True)
# Fixes 2034
- # ... | Debugging: Restore moving to first breakpoint by default There's no problem doing this now with the new approach to update the Variable Explorer from Pdb. | py |
diff --git a/reliure/schema.py b/reliure/schema.py
index <HASH>..<HASH> 100644
--- a/reliure/schema.py
+++ b/reliure/schema.py
@@ -18,6 +18,7 @@ Class
# python 2 and 3 compatibility
from __future__ import unicode_literals
import six
+from six import string_types
from builtins import range
from collections import... | Fix small comp issue with py3 | py |
diff --git a/keanu-python/keanu/base.py b/keanu-python/keanu/base.py
index <HASH>..<HASH> 100644
--- a/keanu-python/keanu/base.py
+++ b/keanu-python/keanu/base.py
@@ -26,6 +26,9 @@ class JavaObjectWrapper:
raise TypeError("Trying to call %s on a JavaObjectWrapper - did you forget to call %s.unwrap()?" %
... | added helpful message when you get a throw from a JavaObjectWrapper's ctor | py |
diff --git a/opengrid/tests/test_regression.py b/opengrid/tests/test_regression.py
index <HASH>..<HASH> 100644
--- a/opengrid/tests/test_regression.py
+++ b/opengrid/tests/test_regression.py
@@ -87,6 +87,17 @@ class RegressionTest(unittest.TestCase):
self.assertEqual(best_rsquared, best_akaike)
self.a... | Test for pruning models based on p_max | py |
diff --git a/tests/support/helpers.py b/tests/support/helpers.py
index <HASH>..<HASH> 100644
--- a/tests/support/helpers.py
+++ b/tests/support/helpers.py
@@ -552,11 +552,10 @@ def requires_network(only_local_network=False):
'173.194.41.201', '173.194.41.206', '173.194.41.192',
... | Make sure the socket's used are closed | py |
diff --git a/vlcp/service/sdn/ofpportmanager.py b/vlcp/service/sdn/ofpportmanager.py
index <HASH>..<HASH> 100644
--- a/vlcp/service/sdn/ofpportmanager.py
+++ b/vlcp/service/sdn/ofpportmanager.py
@@ -170,7 +170,11 @@ class OpenflowPortManager(Module):
"Return all ports of a specifed datapath"
for m in ... | bug fix: return None instead of raise exception | py |
diff --git a/src/djangoprojectrecipe/manage.py b/src/djangoprojectrecipe/manage.py
index <HASH>..<HASH> 100644
--- a/src/djangoprojectrecipe/manage.py
+++ b/src/djangoprojectrecipe/manage.py
@@ -13,4 +13,6 @@ def main(settings_file):
% (settings_file, e))
return sys.exit(1)
- ... | made project execution more robust by providing django with the original path to the settings module | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,8 @@ setup(name='cleverhans',
'tensorflow-probability',
'joblib',
'easydict',
- 'absl'
+ 'absl',
+ 'six'
],
extras_require={
'jax':... | Added six to setup.py; we dropped python2 support, but it's still used in quite a few places, so this is a quick fix. I'll remove the dependencies later | py |
diff --git a/pymongo/operations.py b/pymongo/operations.py
index <HASH>..<HASH> 100644
--- a/pymongo/operations.py
+++ b/pymongo/operations.py
@@ -36,7 +36,7 @@ class _WriteOp(object):
if type(other) == type(self):
return (other._filter, other._doc, other._upsert) == \
(self._f... | Corrected return value for comparison of different types | py |
diff --git a/estnltk/taggers/tagger.py b/estnltk/taggers/tagger.py
index <HASH>..<HASH> 100644
--- a/estnltk/taggers/tagger.py
+++ b/estnltk/taggers/tagger.py
@@ -36,6 +36,7 @@ class Tagger:
if status is None:
status = {}
layer = self._make_layer(raw_text, layers, status)
+ assert ... | in Tagger assert that layer.attributes are the expected output_attributes | py |
diff --git a/noisyopt/main.py b/noisyopt/main.py
index <HASH>..<HASH> 100644
--- a/noisyopt/main.py
+++ b/noisyopt/main.py
@@ -592,13 +592,13 @@ def bisect(func, a, b, xtol=1e-6, errorcontrol=True,
xtol: float
target tolerance for interval size
errorcontrol: boolean
- if true, assume that func... | fixed docstring of bisect | py |
diff --git a/h2o-py/h2o/h2o.py b/h2o-py/h2o/h2o.py
index <HASH>..<HASH> 100644
--- a/h2o-py/h2o/h2o.py
+++ b/h2o-py/h2o/h2o.py
@@ -1094,7 +1094,7 @@ def interaction(data, factors, pairwise, max_factors, min_occurrence, destinatio
return get_frame(parms["dest"])
-def as_list(data, use_pandas=True):
+def as_list... | add header option to as_list to control column names being returned | py |
diff --git a/galpy/actionAngle/actionAngleStaeckel.py b/galpy/actionAngle/actionAngleStaeckel.py
index <HASH>..<HASH> 100644
--- a/galpy/actionAngle/actionAngleStaeckel.py
+++ b/galpy/actionAngle/actionAngleStaeckel.py
@@ -169,7 +169,7 @@ class actionAngleStaeckel(actionAngle):
tkwargs= copy.copy(k... | Catch IndexError as well when delta in actionAngleStaeckel is a scalar | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,11 @@
-from setuptools import setup
+from setuptools import setup, find_packages
setup(name='steppy-toolkit',
- packages=['toolkit'],
- version='0.1.1',
+ packages=find_packages(),
+ version='0.... | corrections in reqs (#8) | py |
diff --git a/skink/server.py b/skink/server.py
index <HASH>..<HASH> 100644
--- a/skink/server.py
+++ b/skink/server.py
@@ -40,6 +40,13 @@ print('STATIC_PATH', [STATIC_PATH])
def launch_exception(message):
+ """
+ Launch a Python exception from an error that took place in the browser.
+
+ messsage ... | Added docstring to server.launch_exception | py |
diff --git a/tests/test_cli.py b/tests/test_cli.py
index <HASH>..<HASH> 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -10,6 +10,8 @@ import pytest
import click
from click.testing import CliRunner
+from libtmux.common import has_lt_version
+
from tmuxp import cli, config
from tmuxp.cli import (
is... | only assert for tmux <I> and up | py |
diff --git a/werkzeug/wrappers.py b/werkzeug/wrappers.py
index <HASH>..<HASH> 100644
--- a/werkzeug/wrappers.py
+++ b/werkzeug/wrappers.py
@@ -1096,8 +1096,8 @@ class ETagRequestMixin(object):
class UserAgentMixin(object):
"""Adds a `user_agent` attribute to the request object which contains the
- parsed use... | Link UserAgent in UserAgentMixin docstring | py |
diff --git a/tornado/testing.py b/tornado/testing.py
index <HASH>..<HASH> 100644
--- a/tornado/testing.py
+++ b/tornado/testing.py
@@ -29,9 +29,10 @@ import logging
import os
import sys
import time
-import tornado.ioloop
import unittest
+from tornado.ioloop import IOLoop
+
_next_port = 10000
def get_unused_port... | Don't initialize the singleton IOLoop from tearDown | py |
diff --git a/purplex/grammar.py b/purplex/grammar.py
index <HASH>..<HASH> 100644
--- a/purplex/grammar.py
+++ b/purplex/grammar.py
@@ -19,6 +19,9 @@ class Production(object):
def __hash__(self):
return hash(str(self))
+ def __len__(self):
+ return len(self.rhs) - int(EPSILON in self.rhs)
+
... | Added some additional helpers to DottedRule and Production | py |
diff --git a/WrightTools/collection/_collection.py b/WrightTools/collection/_collection.py
index <HASH>..<HASH> 100644
--- a/WrightTools/collection/_collection.py
+++ b/WrightTools/collection/_collection.py
@@ -37,7 +37,7 @@ class Collection(Group):
def __next__(self):
if self.__n < len(self):
- ... | Collections next return key, rather than value (Closes #<I>) (#<I>) | py |
diff --git a/falafel/mappers/lsof.py b/falafel/mappers/lsof.py
index <HASH>..<HASH> 100644
--- a/falafel/mappers/lsof.py
+++ b/falafel/mappers/lsof.py
@@ -45,7 +45,7 @@ class Splitter(object):
class Lsof(Mapper):
def parse_content(self, content):
- self.data = list(Splitter(content).parse_lines())
+ ... | temporary lsof memory pressure fix In some cases, the contents of LSOF will be very large. This change filters out block devices since our plugins don't use that information currently. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ with open('README.rst', 'r') as f:
long_description = f.read()
setup(
- name="mdx_attr_cols",
+ name="mdx-attr-cols",
version="0.1.1",
url='http://github.com/CTPUG/mdx_attr_cols',
li... | Rename package to use dashes. | py |
diff --git a/zipline/utils/compat.py b/zipline/utils/compat.py
index <HASH>..<HASH> 100644
--- a/zipline/utils/compat.py
+++ b/zipline/utils/compat.py
@@ -16,4 +16,5 @@ unicode = type(u'')
__all__ = [
'mappingproxy',
+ 'unicode',
] | MAINT: Add unicode to __all__. | py |
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py
index <HASH>..<HASH> 100644
--- a/cmd2/argparse_custom.py
+++ b/cmd2/argparse_custom.py
@@ -111,7 +111,7 @@ def register_custom_actions(parser: argparse.ArgumentParser) -> None:
# noinspection PyCompatibility,PyShadowingBuiltins,PyShadowingBuiltins
-cl... | Renamed ACHelpFormatter to Cmd2HelpFormatter | py |
diff --git a/mistletoe/html_token.py b/mistletoe/html_token.py
index <HASH>..<HASH> 100644
--- a/mistletoe/html_token.py
+++ b/mistletoe/html_token.py
@@ -30,7 +30,7 @@ class HTMLBlock(block_token.BlockToken):
if not line.startswith('<') or open_tag_end == -1:
return False
if HTMLSpan.pat... | 🐛 fixed: html_token cannot parse single-element block | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@ def readme():
configuration = {
'name' : 'hdbscan',
- 'version' : '0.6',
+ 'version' : '0.6.1',
'description' : 'Clustering based on density with variable density clusters',
'long_descrip... | Update version to fix issue #<I>. | py |
diff --git a/sortinghat/cmd/show.py b/sortinghat/cmd/show.py
index <HASH>..<HASH> 100644
--- a/sortinghat/cmd/show.py
+++ b/sortinghat/cmd/show.py
@@ -109,6 +109,6 @@ class Show(Command):
self.display('show.tmpl', uidentities=uidentities)
except NotFoundError as e:
self.error(str(e))
... | [cmd:show] Support specific error codes on Show command | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -112,7 +112,7 @@ class build(_build):
self.cmake_path,
script_dir,
"-DCMAKE_INSTALL_PREFIX=" + self.install_prefix,
- "-DEIGEN3_INCLUDE_DIR=eigen",
+ "-DEIGEN3_INCLU... | Use full path for Eigen directory Otherwise CMake < <I> fails to find it. Former-commit-id: <I>db<I>f<I>f<I>bb<I>e<I>b0ac<I>c<I>acd8d | py |
diff --git a/fades/pkgnamesdb.py b/fades/pkgnamesdb.py
index <HASH>..<HASH> 100644
--- a/fades/pkgnamesdb.py
+++ b/fades/pkgnamesdb.py
@@ -23,4 +23,5 @@ PKG_NAMES_DB = {
'postgresql': 'py-postgresql',
'yaml': 'pyyaml',
'PIL': 'Pillow',
+ 'Crypto': 'pycrypto',
} | Added Crypto to the package names DB. | py |
diff --git a/ceph_deploy/install.py b/ceph_deploy/install.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/install.py
+++ b/ceph_deploy/install.py
@@ -19,7 +19,7 @@ def ceph_is_installed(conn):
conn,
['which', 'ceph'],
)
- return return_code
+ return not return_code
def install(args): | fix ceph_is_installed by returning opposite boolean returncode | py |
diff --git a/tests/calculators/hazard/classical/post_processing_test.py b/tests/calculators/hazard/classical/post_processing_test.py
index <HASH>..<HASH> 100644
--- a/tests/calculators/hazard/classical/post_processing_test.py
+++ b/tests/calculators/hazard/classical/post_processing_test.py
@@ -37,7 +37,7 @@ from tests.... | tests/calcs/hazard/classical/post_processing_test: Fixed an import. | py |
diff --git a/dimod/package_info.py b/dimod/package_info.py
index <HASH>..<HASH> 100644
--- a/dimod/package_info.py
+++ b/dimod/package_info.py
@@ -14,7 +14,7 @@
#
# ================================================================================================
-__version__ = '0.8.8'
+__version__ = '0.8.9'
__autho... | Update version <I> -> <I> Fixes ----- * `SampleSet.samples` now returns an iterator. This is a backwards-compatibility fix and is a deprecated feature. | py |
diff --git a/spyder/widgets/projects/config.py b/spyder/widgets/projects/config.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/projects/config.py
+++ b/spyder/widgets/projects/config.py
@@ -88,8 +88,9 @@ class ProjectConfig(UserConfig):
os.makedirs(self._root_path)
# Add file
- wi... | Project: Don't create PROJECT_FILENAME for now We have to think better about the uses of this file | py |
diff --git a/nodeconductor/template/tasks.py b/nodeconductor/template/tasks.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/template/tasks.py
+++ b/nodeconductor/template/tasks.py
@@ -59,7 +59,7 @@ def template_group_execution_failed(self, task_uuid, template_group_result_uuid)
task_result = self.app.AsyncResul... | Fixed wording - NC-<I> | py |
diff --git a/lib/python/vdm/server/Validation.py b/lib/python/vdm/server/Validation.py
index <HASH>..<HASH> 100755
--- a/lib/python/vdm/server/Validation.py
+++ b/lib/python/vdm/server/Validation.py
@@ -87,7 +87,6 @@ class ServerInputs(Inputs):
],
'hostname': [
DataRequired('Host name is ... | VDM-<I> Removed the IP address validation in host name. (#<I>) | py |
diff --git a/assembly/prepareCA.py b/assembly/prepareCA.py
index <HASH>..<HASH> 100644
--- a/assembly/prepareCA.py
+++ b/assembly/prepareCA.py
@@ -193,8 +193,18 @@ def fastq(args):
mated = (opts.size != 0)
libname = op.basename(fastqfile).split(".")[0]
+
+ libname = libname.replace("_1_sequence", "")
+
+... | manipulate libname in prepareCA.fastq(), minor change | py |
diff --git a/aws_google_auth/_version.py b/aws_google_auth/_version.py
index <HASH>..<HASH> 100644
--- a/aws_google_auth/_version.py
+++ b/aws_google_auth/_version.py
@@ -1 +1 @@
-__version__ = "0.0.13"
+__version__ = "0.0.14" | Bump to <I> to include u2f support | py |
diff --git a/oauth2client/django_orm.py b/oauth2client/django_orm.py
index <HASH>..<HASH> 100644
--- a/oauth2client/django_orm.py
+++ b/oauth2client/django_orm.py
@@ -116,14 +116,19 @@ class Storage(BaseStorage):
credential.set_store(self)
return credential
- def locked_put(self, credentials):
+ def l... | Added option to overwrite existing stored credentials. Added an option to django_orm.Storage locked_put method to allow for overwriting an existing credential record rather than the creation of a new one. | py |
diff --git a/visidata/freqtbl.py b/visidata/freqtbl.py
index <HASH>..<HASH> 100644
--- a/visidata/freqtbl.py
+++ b/visidata/freqtbl.py
@@ -43,7 +43,7 @@ class SheetFreqTable(Sheet):
nkeys = len(self.keyCols)
self.columns.extend([
- Column('count', type=int, getter=lambda col,row: len(row.... | [freqtbl] set count column type to len | py |
diff --git a/docker/Dockerfile.py b/docker/Dockerfile.py
index <HASH>..<HASH> 100644
--- a/docker/Dockerfile.py
+++ b/docker/Dockerfile.py
@@ -103,6 +103,8 @@ print(heredoc('''
# worker appliance on a worker node. To support this, we embed a self-reference into the image:
ENV TOIL_APPLIANCE_SELF {applianceSel... | Set TOIL_WORKDIR in Toil Appliance (resolves #<I>) | py |
diff --git a/synapse/tests/test_neuron.py b/synapse/tests/test_neuron.py
index <HASH>..<HASH> 100644
--- a/synapse/tests/test_neuron.py
+++ b/synapse/tests/test_neuron.py
@@ -279,7 +279,7 @@ class NeuronTest(SynTest):
with user.open(addr, timeout=2) as sess:
sess._initiateSession... | Increase stream timeouts and validate they occur | py |
diff --git a/mtp_common/test_utils/functional_tests.py b/mtp_common/test_utils/functional_tests.py
index <HASH>..<HASH> 100644
--- a/mtp_common/test_utils/functional_tests.py
+++ b/mtp_common/test_utils/functional_tests.py
@@ -197,7 +197,7 @@ class FunctionalTestCase(LiveServerTestCase, WebDriverControlMixin):
def... | Allow for the use of alternative commands when resetting test data This to load different test data sets during functional testing. | py |
diff --git a/xapian_backend.py b/xapian_backend.py
index <HASH>..<HASH> 100644
--- a/xapian_backend.py
+++ b/xapian_backend.py
@@ -741,10 +741,10 @@ class SearchQuery(BaseSearchQuery):
else:
filter_types = {
'exact': "%s:%s",
- 'gt': ... | Minor adjustment to gt, gte, lt, lte query generation. gt was gte, lt was lte, and vice-versus. | py |
diff --git a/pyasn1/type/tag.py b/pyasn1/type/tag.py
index <HASH>..<HASH> 100644
--- a/pyasn1/type/tag.py
+++ b/pyasn1/type/tag.py
@@ -32,6 +32,8 @@ class Tag:
def __cmp__(self, other): return cmp(self.__uniqTag, other)
def __eq__(self, other):
return self is other or self.__hashedUniqTag == other
+ ... | __ne__() added to Tag & TagSet | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ import os
from setuptools import find_packages, setup
-with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
+with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='u... | Open README as UTF-8 | py |
diff --git a/bika/lims/browser/bika_listing.py b/bika/lims/browser/bika_listing.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/bika_listing.py
+++ b/bika/lims/browser/bika_listing.py
@@ -536,7 +536,9 @@ class BikaListingView(BrowserView):
# override from self attributes
for x in "pagenumber", ... | Debugging something missed resolving LIMS-<I> | py |
diff --git a/tests/fake_model.py b/tests/fake_model.py
index <HASH>..<HASH> 100644
--- a/tests/fake_model.py
+++ b/tests/fake_model.py
@@ -14,7 +14,7 @@ from psqlextra.models import PostgresModel, PostgresPartitionedModel
def define_fake_model(
fields=None, model_base=PostgresModel, meta_options={}, **attributes
... | Make test model names upper case to make sure that works Model names are case sensitive. Adding some case sensitivity prevents us from screwing up and adding code that is case sensitive. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -74,6 +74,7 @@ deps = {
'dev': [
"bumpversion>=0.5.3,<1",
"wheel",
+ "setuptools>=36.2.0",
"tox==2.7.0",
"twine",
], | Pin setuptools>=<I> (#<I>) | py |
diff --git a/amqpconsumer/events.py b/amqpconsumer/events.py
index <HASH>..<HASH> 100644
--- a/amqpconsumer/events.py
+++ b/amqpconsumer/events.py
@@ -295,7 +295,7 @@ class EventConsumer(object):
"""
logger.debug('Received message # %s from %s: %s', basic_deliver.delivery_tag, properties.app_id, body)... | decode body to utf-8 before json.loads | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,7 @@ from setuptools.command.install import install
import os
from setuptools import setup, find_packages
import shutil
+import sys
try:
from cloudmesh_base.util import banner
@@ -97,11 +98,13 @@ class Ins... | ignore readline in cygwin | py |
diff --git a/photutils/psf/photometry.py b/photutils/psf/photometry.py
index <HASH>..<HASH> 100644
--- a/photutils/psf/photometry.py
+++ b/photutils/psf/photometry.py
@@ -233,7 +233,8 @@ class BasicPSFPhotometry(object):
the fitting process. Uncertainties on the fitted parameters are
reported ... | Added docstring sentence about missing param_cov [ci skip] | py |
diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index <HASH>..<HASH> 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1074,7 +1074,7 @@ class DataFrame(NDFrame):
indexer = self.columns.get_indexer(key)
mask = indexer == -1
if mask.any():
- r... | (1) add a get() method like dicts have, (2) throw KeyError, not Exception, when a column isn't found | py |
diff --git a/geotweet/mapreduce/metro_wordcount.py b/geotweet/mapreduce/metro_wordcount.py
index <HASH>..<HASH> 100644
--- a/geotweet/mapreduce/metro_wordcount.py
+++ b/geotweet/mapreduce/metro_wordcount.py
@@ -3,7 +3,6 @@ import os
from os.path import dirname
import re
import json
-import logging
from mrjob.job ... | disable logging for metro_wordcount | py |
diff --git a/flux_led/__main__.py b/flux_led/__main__.py
index <HASH>..<HASH> 100755
--- a/flux_led/__main__.py
+++ b/flux_led/__main__.py
@@ -572,7 +572,9 @@ class WifiLedBulb():
def _determineMode(self, ww_level, pattern_code):
mode = "unknown"
if pattern_code in [ 0x61, 0x62]:
- if ... | improve handling of rgbw controllers (#<I>) they were incorrectly recognized as "ww" only, and because of that a lot of HA integrations did not work corrrectly (getRgb() et. al.) this is a rather simple approach fixing detection using rgbwcapable flag + small improvement to str() | py |
diff --git a/src/toil/lib/spark.py b/src/toil/lib/spark.py
index <HASH>..<HASH> 100644
--- a/src/toil/lib/spark.py
+++ b/src/toil/lib/spark.py
@@ -178,10 +178,7 @@ class SparkService(Job.Service):
if cores is None:
cores = multiprocessing.cpu_count()
- if overrideLeaderIP is None:
- ... | Capture hostname in Spark start method (resolves #<I>) Moves the hostname capture to the start method of the Spark service job. This resolves the issue where the hostname of the node starting the service was being captured, thus causing the wrong IP address to be returned for the Spark cluster leader. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.