diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/salt/utils/parsers.py b/salt/utils/parsers.py
index <HASH>..<HASH> 100644
--- a/salt/utils/parsers.py
+++ b/salt/utils/parsers.py
@@ -40,19 +40,19 @@ class MixInMeta(type):
# attribute on your own MixIn
_mixin_prio_ = 0
- def __new__(cls, name, bases, attrs):
- instance = super(MixInM... | Fix metaclass __new__() parameter naming: cls ==> mcs ************* Module salt.utils.parsers C<I>: <I>,4:MixInMeta.__new__: Metaclass class method __new__ should have 'mcs' as first argument C<I>: <I>,4:OptionParserMeta.__new__: Metaclass class method __new__ should have 'mcs' as first argument | py |
diff --git a/src/edeposit/amqp/aleph/datastructures/epublication.py b/src/edeposit/amqp/aleph/datastructures/epublication.py
index <HASH>..<HASH> 100755
--- a/src/edeposit/amqp/aleph/datastructures/epublication.py
+++ b/src/edeposit/amqp/aleph/datastructures/epublication.py
@@ -58,8 +58,7 @@ class EPublication(namedtup... | #<I>: Removed unused documentation part from epublication.py. | py |
diff --git a/stacker/config.py b/stacker/config.py
index <HASH>..<HASH> 100644
--- a/stacker/config.py
+++ b/stacker/config.py
@@ -1,7 +1,8 @@
-import yaml
from string import Template
from StringIO import StringIO
+import yaml
+
class MissingEnvironment(Exception):
def __init__(self, key): | Fix import order yaml is a third party module and should be below standard lib | py |
diff --git a/solrutils_bibindex_searcher.py b/solrutils_bibindex_searcher.py
index <HASH>..<HASH> 100644
--- a/solrutils_bibindex_searcher.py
+++ b/solrutils_bibindex_searcher.py
@@ -73,14 +73,3 @@ def solr_get_bitset(index, query):
data = u.read()
bitset.fastload(data)
return bitset
-
-
-def solr_get_bi... | solrutils: removal of unused code * Search results are directly retrieved by opening a Solr URL | py |
diff --git a/ck/repo/module/module/module.py b/ck/repo/module/module/module.py
index <HASH>..<HASH> 100644
--- a/ck/repo/module/module/module.py
+++ b/ck/repo/module/module/module.py
@@ -317,8 +317,6 @@ def show(i):
private=''
num=0
for l in ll:
- num+=1
-
ln=l['data_uoa']
lr=l['... | minor fix in auto-generation of all modules | py |
diff --git a/listparser.py b/listparser.py
index <HASH>..<HASH> 100644
--- a/listparser.py
+++ b/listparser.py
@@ -56,7 +56,7 @@ namespaces = {
'http://blogs.yandex.ru/schema/foaf/': 'ya',
}
# Provide a shorthand to save space in-code, e.g. _ns['rdf']
-_ns = dict(zip(namespaces.values(), namespaces.keys()))
+_ns... | Create `_ns` using more straightforward code | py |
diff --git a/contrib/scrooge/src/python/pants/contrib/scrooge/tasks/thrift_linter.py b/contrib/scrooge/src/python/pants/contrib/scrooge/tasks/thrift_linter.py
index <HASH>..<HASH> 100644
--- a/contrib/scrooge/src/python/pants/contrib/scrooge/tasks/thrift_linter.py
+++ b/contrib/scrooge/src/python/pants/contrib/scrooge/... | Implement caching for the thrift linter. The cached artifact will be empty, and acts only as a boolean that the target has passed the linter with that fingerprint. Testing Done: <URL> | py |
diff --git a/scout/parse/variant/conservation.py b/scout/parse/variant/conservation.py
index <HASH>..<HASH> 100644
--- a/scout/parse/variant/conservation.py
+++ b/scout/parse/variant/conservation.py
@@ -10,7 +10,7 @@ def parse_conservations(variant, parsed_transcripts=[]):
Args:
variant(dict): A... | Update scout/parse/variant/conservation.py | py |
diff --git a/registration/models.py b/registration/models.py
index <HASH>..<HASH> 100644
--- a/registration/models.py
+++ b/registration/models.py
@@ -1,10 +1,3 @@
-"""
-A model (``RegistrationProfile``) for storing user-registration data,
-and an associated custom manager (``RegistrationManager``).
-
-"""
-
-
import ... | And that doesn't really need a module docstring | py |
diff --git a/synapse/lib/storm.py b/synapse/lib/storm.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/storm.py
+++ b/synapse/lib/storm.py
@@ -490,7 +490,7 @@ class ReIndexCmd(Cmd):
if subs is not None:
for subn, subv in subs.items():
if node.form.props.get... | update reindex to allow the update to work for :path | py |
diff --git a/glim/command.py b/glim/command.py
index <HASH>..<HASH> 100644
--- a/glim/command.py
+++ b/glim/command.py
@@ -11,8 +11,9 @@ class CommandAdapter:
for name, obj in inspect.getmembers(module):
if name != 'Command' and 'Command' in name:
- cobject = getattr(module, name)... | fix base command is being registered into glim cli | py |
diff --git a/src/rudiments/reamed/click.py b/src/rudiments/reamed/click.py
index <HASH>..<HASH> 100644
--- a/src/rudiments/reamed/click.py
+++ b/src/rudiments/reamed/click.py
@@ -104,7 +104,7 @@ class Configuration(object):
If that is non-empty, exactly those paths will be considered; an empty
... | :mag: new astroid chokes on unicode doc strings | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,9 +36,20 @@ except Exception:
if "--without-tools" in sys.argv:
tools_requires = []
+ tools_data = []
+ tools_packages = []
sys.argv.remove("--without-tools")
else:
tools_requires = ['opster >= 4.0... | Move all actions for cocaine-tools into setup.py | py |
diff --git a/gandi/cli/commands/sshkey.py b/gandi/cli/commands/sshkey.py
index <HASH>..<HASH> 100644
--- a/gandi/cli/commands/sshkey.py
+++ b/gandi/cli/commands/sshkey.py
@@ -57,7 +57,7 @@ def info(gandi, resource, id, value):
@cli.command()
-@click.option('--name', help='the ssh key name')
+@click.option('--name'... | name is mandatory when creating sshkeys (fixes #<I>) | py |
diff --git a/grimoire_elk/enriched/enrich.py b/grimoire_elk/enriched/enrich.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/enrich.py
+++ b/grimoire_elk/enriched/enrich.py
@@ -950,8 +950,7 @@ class Enrich(ElasticItems):
# Create alias if output index exists (index is always created from scratch, s... | Remove alias in use check for onion This commit removes the check for `all_onion` alias that prevents its creation if it is already in use. This check only allowed to link one data source to the alias, so onion data for the rest of the sources remained unlinked. | py |
diff --git a/tests/core/test_tax_scales.py b/tests/core/test_tax_scales.py
index <HASH>..<HASH> 100644
--- a/tests/core/test_tax_scales.py
+++ b/tests/core/test_tax_scales.py
@@ -4,10 +4,19 @@
from __future__ import unicode_literals, print_function, division, absolute_import
import numpy as np
-from openfisca_core.... | Test amount scale's correct current behavior | py |
diff --git a/simple_history/manager.py b/simple_history/manager.py
index <HASH>..<HASH> 100755
--- a/simple_history/manager.py
+++ b/simple_history/manager.py
@@ -55,7 +55,7 @@ class HistoryManager(models.Manager):
"""
if not self.instance:
raise TypeError("Can't use as_of() without a %s ... | Fix as_of manager method on class | py |
diff --git a/mailchimp3/helpers.py b/mailchimp3/helpers.py
index <HASH>..<HASH> 100644
--- a/mailchimp3/helpers.py
+++ b/mailchimp3/helpers.py
@@ -52,13 +52,14 @@ def check_email(email):
"""
Function that verifies that the string passed is a valid email address.
- Regex for email validation from http://e... | Switch back to regex matching Mailchimp's documentation, and update docstring. | py |
diff --git a/elasticutils/__init__.py b/elasticutils/__init__.py
index <HASH>..<HASH> 100644
--- a/elasticutils/__init__.py
+++ b/elasticutils/__init__.py
@@ -1,6 +1,7 @@
import logging
from functools import wraps
from threading import local
+from operator import itemgetter
from pyes import ES, exceptions
@@ -1... | adding repr version, for useful shell debugging | py |
diff --git a/tutorials/mnist_tutorial_jsma.py b/tutorials/mnist_tutorial_jsma.py
index <HASH>..<HASH> 100644
--- a/tutorials/mnist_tutorial_jsma.py
+++ b/tutorials/mnist_tutorial_jsma.py
@@ -190,6 +190,8 @@ def mnist_tutorial_jsma(train_start=0, train_end=60000, test_start=0,
# Finally, block & display a grid of... | Close the last work-in-progress figure in JSMA tutorial. | py |
diff --git a/pandas/stats/tests/test_ols.py b/pandas/stats/tests/test_ols.py
index <HASH>..<HASH> 100644
--- a/pandas/stats/tests/test_ols.py
+++ b/pandas/stats/tests/test_ols.py
@@ -431,6 +431,15 @@ class TestOLSMisc(unittest.TestCase):
self.assertRaises(Exception, ols, y=y, x=x, entity_effects=True,
... | TST: test for #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -13,6 +13,7 @@ import tempfile
# Third-Party Libraries
import setuptools
+import numpy as np
metadata = dict(
@@ -23,6 +24,7 @@ metadata = dict(
author = u"Sébastien Boisgérault",
author_email = "Sebastien.Boisg... | added numpy header path in the setup | py |
diff --git a/odl/solvers/functional/default_functionals.py b/odl/solvers/functional/default_functionals.py
index <HASH>..<HASH> 100644
--- a/odl/solvers/functional/default_functionals.py
+++ b/odl/solvers/functional/default_functionals.py
@@ -2331,8 +2331,8 @@ class HuberL1L2(Functional):
else:
gr... | BUG: fix super issue flagged by travis | py |
diff --git a/ofblockmeshdicthelper/__init__.py b/ofblockmeshdicthelper/__init__.py
index <HASH>..<HASH> 100644
--- a/ofblockmeshdicthelper/__init__.py
+++ b/ofblockmeshdicthelper/__init__.py
@@ -259,7 +259,7 @@ class ArcEdge(object):
"""
index = ' '.join(str(vertices[vn].index) for vn in self.vnames)
... | Corrected format in ArcEdge. Now the interVertex is written with more accuracy. Otherwise it can give error in planar faces for wedge | py |
diff --git a/swimlane/utils/__init__.py b/swimlane/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/swimlane/utils/__init__.py
+++ b/swimlane/utils/__init__.py
@@ -34,8 +34,7 @@ def import_submodules(package):
results = {}
- for _, name, is_pkg in pkgutil.walk_packages(package.__path__):
- full_na... | Fix for root package name collisions in dynamic recursive submodule imports | py |
diff --git a/scripts/bed_build_windows.py b/scripts/bed_build_windows.py
index <HASH>..<HASH> 100755
--- a/scripts/bed_build_windows.py
+++ b/scripts/bed_build_windows.py
@@ -5,7 +5,7 @@ Build windows of length `window_size` over the sequences defined by
`len_file` excluding regions in `gap_file`.
After removing th... | Not sure random is really a benefit here (since it is uniform and approaches evenly anyway). | py |
diff --git a/gcp/testing/appengine.py b/gcp/testing/appengine.py
index <HASH>..<HASH> 100644
--- a/gcp/testing/appengine.py
+++ b/gcp/testing/appengine.py
@@ -69,6 +69,7 @@ def setup_testbed():
tb.init_memcache_stub()
# Setup remaining stubs.
+ tb.init_urlfetch_stub()
tb.init_app_identity_stub()
... | Adding urlfetch stub | py |
diff --git a/metalearn/metafeatures/metafeatures.py b/metalearn/metafeatures/metafeatures.py
index <HASH>..<HASH> 100644
--- a/metalearn/metafeatures/metafeatures.py
+++ b/metalearn/metafeatures/metafeatures.py
@@ -45,11 +45,19 @@ class Metafeatures(object):
for key in combined_dict:
self.... | added group feature to list metafeatures | py |
diff --git a/tests/tests/test_middleware.py b/tests/tests/test_middleware.py
index <HASH>..<HASH> 100644
--- a/tests/tests/test_middleware.py
+++ b/tests/tests/test_middleware.py
@@ -1,6 +1,12 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
+try:
+ from mock import patch
+except ImportError:
+... | tests: assert MiddlewareNotUsed is raised if PIPELINE_ENABLED is False | py |
diff --git a/roller.py b/roller.py
index <HASH>..<HASH> 100755
--- a/roller.py
+++ b/roller.py
@@ -317,7 +317,8 @@ class Kernel(object):
stderr=stdout,
)
while make_process.poll() is None:
- progress_bar(random.randint(1, 99), 100)
+ if self.verbose:
+ ... | only be verbose if we should be verbose | py |
diff --git a/juicer/admin/Parser.py b/juicer/admin/Parser.py
index <HASH>..<HASH> 100644
--- a/juicer/admin/Parser.py
+++ b/juicer/admin/Parser.py
@@ -66,7 +66,6 @@ class Parser(object):
help='Create pulp user')
parser_create_user.add_argument('login', metavar='login', \
- ... | Remove dest for new positional args. | py |
diff --git a/trimesh/exchange/obj.py b/trimesh/exchange/obj.py
index <HASH>..<HASH> 100644
--- a/trimesh/exchange/obj.py
+++ b/trimesh/exchange/obj.py
@@ -429,7 +429,7 @@ def parse_mtl(mtl, resolver=None):
materials[material.pop('newmtl')] = material
# start a fresh new material
- ... | added support for materials with names with spaces | py |
diff --git a/ontquery/__init__.py b/ontquery/__init__.py
index <HASH>..<HASH> 100644
--- a/ontquery/__init__.py
+++ b/ontquery/__init__.py
@@ -964,6 +964,7 @@ class InterLexRemote(OntService): # note to self
def __init__(self, *args, host='uri.interlex.org', port='', **kwargs):
self.host = host
... | interlex remote added not ok cache | py |
diff --git a/core/rpcquery.py b/core/rpcquery.py
index <HASH>..<HASH> 100644
--- a/core/rpcquery.py
+++ b/core/rpcquery.py
@@ -13,6 +13,8 @@ class RPCQUERY():
self.__nthash = ''
self.__local_ip = None
self.__ts = ('8a885d04-1ceb-11c9-9fe8-08002b104860', '2.0')
+ if self.__password is N... | Fixed bug that would cause a traceback in rpcquery.py when PTH | py |
diff --git a/vaex/dataset.py b/vaex/dataset.py
index <HASH>..<HASH> 100644
--- a/vaex/dataset.py
+++ b/vaex/dataset.py
@@ -1891,7 +1891,7 @@ class Dataset(object):
elif type in ["ss", "sigmasquare"]:
limits = self.limits_sigma(number, square=True)
elif type in ["%", "percent"]:
- limits = ... | fix: limits for % are now async | py |
diff --git a/crispy/gui/models/treemodel.py b/crispy/gui/models/treemodel.py
index <HASH>..<HASH> 100644
--- a/crispy/gui/models/treemodel.py
+++ b/crispy/gui/models/treemodel.py
@@ -244,7 +244,7 @@ class TreeModel(QAbstractItemModel):
data[key] = collections.OrderedDict()
self._getMod... | Fix a bug with setting the scaling to zero | py |
diff --git a/jplephem/jplephem/__init__.py b/jplephem/jplephem/__init__.py
index <HASH>..<HASH> 100644
--- a/jplephem/jplephem/__init__.py
+++ b/jplephem/jplephem/__init__.py
@@ -92,10 +92,11 @@ which is also aliased to the name `longfloat`. If you provide either a
routine, you should get back a high-precision result... | Add credit to the description of `tdb2` | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
from setuptools import setup
-version = "0.4"
+version = "0.41"
setup(
name="pycoin", | Prep for <I>. | py |
diff --git a/trezorlib/tx_api.py b/trezorlib/tx_api.py
index <HASH>..<HASH> 100644
--- a/trezorlib/tx_api.py
+++ b/trezorlib/tx_api.py
@@ -45,9 +45,9 @@ class TxApi(object):
j = r.json()
except:
raise Exception('URL error: %s' % url)
- if cache_file:
+ if cache_dir and c... | fix UnboundLocalError cache_file referenced before assignment (#<I>) | py |
diff --git a/tests/test_utils.py b/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -22,10 +22,10 @@ def runner(model_file):
# load canonical output
try:
- canon = pd.read_csv(directory + '/output.csv', index_col='Time', encoding='UTF-8')
+ ... | Trying without Unicode encoding on canonical output file reading. | py |
diff --git a/gwpy/timeseries/core.py b/gwpy/timeseries/core.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/core.py
+++ b/gwpy/timeseries/core.py
@@ -245,7 +245,7 @@ class TimeSeries(Series):
if end and isinstance(end, Time):
end = end.gps
if start and end:
- duration = en... | TimeSeries.read: fixed type setting in read | py |
diff --git a/alpaca_trade_api/stream.py b/alpaca_trade_api/stream.py
index <HASH>..<HASH> 100644
--- a/alpaca_trade_api/stream.py
+++ b/alpaca_trade_api/stream.py
@@ -64,7 +64,11 @@ class _DataStream():
async def _connect(self):
self._ws = await websockets.connect(
self._endpoint,
- ... | Increase ping timeout (#<I>) | py |
diff --git a/bitmerchant/wallet/bip32.py b/bitmerchant/wallet/bip32.py
index <HASH>..<HASH> 100644
--- a/bitmerchant/wallet/bip32.py
+++ b/bitmerchant/wallet/bip32.py
@@ -72,7 +72,7 @@ class _Wallet(wallet.Wallet):
master public key of your wallet as a parameter to this method.
"""
wallet = c... | create_address uses new address() method | py |
diff --git a/bika/lims/browser/worksheet/views/folder.py b/bika/lims/browser/worksheet/views/folder.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/worksheet/views/folder.py
+++ b/bika/lims/browser/worksheet/views/folder.py
@@ -120,7 +120,7 @@ class FolderView(BikaListingView):
{'id':'default',
... | Performance fix. By default, don't display rejected neither verified WS This applies for the "All" subview. Since this is the default view, it takes a lot of time to load when the number of WS is high. If the user wants to take a look at 'closed' WS (those with verified and/or rejected statuses), there is already a bu... | py |
diff --git a/treeherder/webapp/api/push.py b/treeherder/webapp/api/push.py
index <HASH>..<HASH> 100644
--- a/treeherder/webapp/api/push.py
+++ b/treeherder/webapp/api/push.py
@@ -8,6 +8,7 @@ from rest_framework.status import (HTTP_400_BAD_REQUEST,
HTTP_404_NOT_FOUND)
from treeherd... | Bug <I> - Speed up Push API to get Decision Task (#<I>) | py |
diff --git a/suds/bindings/document.py b/suds/bindings/document.py
index <HASH>..<HASH> 100644
--- a/suds/bindings/document.py
+++ b/suds/bindings/document.py
@@ -197,7 +197,7 @@ class ReplyHint(Hint):
def stripns(self, s):
""" strip the elementtree {} namespace prefix """
- return self.b... | change ReplyHint.stripns (which uses the DocumentReader.stripns()) to return DocumentReader.stripns()[1], since the DocumentReader.stripns() was refactored to return a tuple. | py |
diff --git a/chartpress.py b/chartpress.py
index <HASH>..<HASH> 100755
--- a/chartpress.py
+++ b/chartpress.py
@@ -802,9 +802,9 @@ def main(args=None):
)
if 'images' in chart:
- image_prefix = args.image_prefix or chart.get('imagePrefix', '')
+ # build images
value... | Minor refactor in __main__ | py |
diff --git a/pycbc/io/inference_hdf.py b/pycbc/io/inference_hdf.py
index <HASH>..<HASH> 100644
--- a/pycbc/io/inference_hdf.py
+++ b/pycbc/io/inference_hdf.py
@@ -205,13 +205,21 @@ class InferenceFile(h5py.File):
def burn_in_iterations(self):
"""Returns number of iterations in the burn in.
"""
- ... | return default values if burn-in attrs haven't been written to file (#<I>) | py |
diff --git a/registrasion/views.py b/registrasion/views.py
index <HASH>..<HASH> 100644
--- a/registrasion/views.py
+++ b/registrasion/views.py
@@ -377,10 +377,30 @@ def checkout(request):
invoice. '''
current_cart = CartController.for_user(request.user)
- current_invoice = InvoiceController.for_cart(curr... | Adds “fix_errors” query to “checkout”, which allows users to have issues fix | py |
diff --git a/timeside/grapher/render_analyzers.py b/timeside/grapher/render_analyzers.py
index <HASH>..<HASH> 100644
--- a/timeside/grapher/render_analyzers.py
+++ b/timeside/grapher/render_analyzers.py
@@ -96,7 +96,7 @@ class DisplayAnalyzer(Grapher):
# From here define new Grapher based on Analyzers
try:
- aub... | Fixes grapher for aubio_pitch renderer | py |
diff --git a/salt/states/git.py b/salt/states/git.py
index <HASH>..<HASH> 100644
--- a/salt/states/git.py
+++ b/salt/states/git.py
@@ -30,7 +30,7 @@ def __virtual__():
'''
Only load if git is available
'''
- return 'git' if __salt__['cmd.has_exec']('git') else False
+ return __salt__['cmd.has_exec'... | Not renaming, return a boolean in `__virtual__()`. | py |
diff --git a/poetry/console/commands/new.py b/poetry/console/commands/new.py
index <HASH>..<HASH> 100644
--- a/poetry/console/commands/new.py
+++ b/poetry/console/commands/new.py
@@ -22,7 +22,6 @@ class NewCommand(Command):
def handle(self) -> None:
from pathlib import Path
- from poetry.core.sem... | command/new: do not add pytest dependency to project | py |
diff --git a/tpot/base.py b/tpot/base.py
index <HASH>..<HASH> 100644
--- a/tpot/base.py
+++ b/tpot/base.py
@@ -611,8 +611,8 @@ class TPOTBase(BaseEstimator):
# get fitness score from previous evaluation
operator_count, resulting_score = self.eval_ind[individual_str]
if... | Minor change to output when skipping already-evaluated pipeline | py |
diff --git a/src/__init__.py b/src/__init__.py
index <HASH>..<HASH> 100644
--- a/src/__init__.py
+++ b/src/__init__.py
@@ -1,2 +1,2 @@
-from underscore import _
+from .underscore import _
__all__ = ["_"] | Relative imports must be prefixed by a period. | py |
diff --git a/script/test.py b/script/test.py
index <HASH>..<HASH> 100755
--- a/script/test.py
+++ b/script/test.py
@@ -81,6 +81,9 @@ def parse_args():
help='Run tests in CI mode',
action='store_true',
required=False)
+ parser.add_argument('-g',
+ ... | spec: Enable passing -g to test.py | py |
diff --git a/master/buildbot/status/words.py b/master/buildbot/status/words.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/status/words.py
+++ b/master/buildbot/status/words.py
@@ -573,7 +573,7 @@ class Contact(base.StatusReceiver):
self.send("I'm baaaaaaaaaaack!")
else:
self.se... | Fix "help unmute" irc command. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ setup(
author='MAAS Developers',
author_email='maas-devel@lists.launchpad.net',
url='https://github.com/maas/python-libmaas',
- version="0.6.6",
+ version="0.6.7",
classifiers=[
... | Release <I> (#<I>) | py |
diff --git a/backtrader/comminfo.py b/backtrader/comminfo.py
index <HASH>..<HASH> 100644
--- a/backtrader/comminfo.py
+++ b/backtrader/comminfo.py
@@ -93,9 +93,9 @@ class CommissionInfo(six.with_metaclass(MetaParams)):
price = order.price if not self.margin else 1.0
return order.size * self.commission... | Commission info change to unused profitandloss method to make it useful and used in the broker to pass pnl info to the order | py |
diff --git a/csirtg_indicator/constants.py b/csirtg_indicator/constants.py
index <HASH>..<HASH> 100644
--- a/csirtg_indicator/constants.py
+++ b/csirtg_indicator/constants.py
@@ -46,7 +46,7 @@ FIELDS_GEO = [
]
FIELDS_IP = [
- 'portlist', 'protocol', 'asn', 'asn_desc', 'dest', 'dest_portlist', 'mask', 'rdata', 'p... | missing rdata col (#<I>) | py |
diff --git a/setuptools/tests/test_test.py b/setuptools/tests/test_test.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_test.py
+++ b/setuptools/tests/test_test.py
@@ -86,9 +86,7 @@ def test_test(capfd):
dist.script_name = 'setup.py'
cmd = test(dist)
cmd.ensure_finalized()
- # The test runn... | Remove outdated comment and suppressed exception from test_test.py The test command has not called sys.exit since commit 2c4fd<I>fc<I>d<I>b<I>e<I>c<I>b<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ install_requires = [
setup(
name='nodeconductor',
- version='0.49.0',
+ version='0.50.0.dev',
author='OpenNode Team',
author_email='info@opennodecloud.com',
url='https://github.com/o... | Starting a new <I> release cycle | py |
diff --git a/spyder/app/start.py b/spyder/app/start.py
index <HASH>..<HASH> 100644
--- a/spyder/app/start.py
+++ b/spyder/app/start.py
@@ -8,8 +8,12 @@ import socket
import sys
import time
+# To prevent a race condition with ZMQ
+# See issue 5324
+import zmq
+
# This import is needed to fix errors with Open... | Prevent a race condition with ZMQ during startup | py |
diff --git a/userservice/test/view.py b/userservice/test/view.py
index <HASH>..<HASH> 100644
--- a/userservice/test/view.py
+++ b/userservice/test/view.py
@@ -25,7 +25,6 @@ def missing_url(name):
'django.contrib.auth.middleware.RemoteUserMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
... | Removing the userservice middleware from tests | py |
diff --git a/utils/network.py b/utils/network.py
index <HASH>..<HASH> 100755
--- a/utils/network.py
+++ b/utils/network.py
@@ -75,7 +75,12 @@ def add(from_user, from_id, to_user, to_id, type):
if options.users and to_user:
G.add_node(from_user, screen_name=from_user)
G.add_node(to_user, screen_na... | edge weight Add edge weight since users can communicate with each other more than once in a given dataset. | py |
diff --git a/elasticsearch/helpers/__init__.py b/elasticsearch/helpers/__init__.py
index <HASH>..<HASH> 100644
--- a/elasticsearch/helpers/__init__.py
+++ b/elasticsearch/helpers/__init__.py
@@ -92,7 +92,7 @@ def _process_bulk_chunk(client, bulk_actions, bulk_data, raise_on_exception=True
try:
# send th... | When retrying we get deserialized data This is just a hotfix until a better solution with proper tests come along | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -81,7 +81,9 @@ def main():
),
],
packages=find_packages(),
- data_files=[('postal', ['postal/pyutils.h'])],
+ package_data={
+ 'postal': ['*.h']
+ },
... | [fix] trying package_data for pyutils.h file | py |
diff --git a/src/dam1021.py b/src/dam1021.py
index <HASH>..<HASH> 100644
--- a/src/dam1021.py
+++ b/src/dam1021.py
@@ -11,7 +11,7 @@ __maintainer__ = "Forta(a)"
__status__ = "Alpha"
#you may change these values to meet your requirements
-DEFAULT_SERIAL_DEVICE="/dev/ttyUSB0"
+DEFAULT_SERIAL_DEVICE="/dev/ttyAMA0"
DE... | make default configuration tailored for RPi | py |
diff --git a/pushl/__init__.py b/pushl/__init__.py
index <HASH>..<HASH> 100644
--- a/pushl/__init__.py
+++ b/pushl/__init__.py
@@ -192,10 +192,11 @@ class Pushl:
utils.retry_get(self, 'https://web.archive.org/save/' + dest)))
self._processed_wayback.add(dest)
- LOGGER.... | Forgot to not wait on an empty coroutine set, oops | py |
diff --git a/gwpy/tests/test_table.py b/gwpy/tests/test_table.py
index <HASH>..<HASH> 100644
--- a/gwpy/tests/test_table.py
+++ b/gwpy/tests/test_table.py
@@ -149,14 +149,16 @@ class TestTable(object):
# check auto-discovery of 'time' columns works
from glue.ligolw.lsctables import LIGOTimeG... | tests: catch DeprecationWarnings for ligolw table | py |
diff --git a/synapse/tests/test_lib_remcycle.py b/synapse/tests/test_lib_remcycle.py
index <HASH>..<HASH> 100644
--- a/synapse/tests/test_lib_remcycle.py
+++ b/synapse/tests/test_lib_remcycle.py
@@ -1010,7 +1010,6 @@ class HypnosTest(SynTest, AsyncTestCase):
hypo_obj.addWebConfig(config=gconf)
... | Remove a unneeded boss job retrieval | py |
diff --git a/azure-sdk-tools/packaging_tools/change_log.py b/azure-sdk-tools/packaging_tools/change_log.py
index <HASH>..<HASH> 100644
--- a/azure-sdk-tools/packaging_tools/change_log.py
+++ b/azure-sdk-tools/packaging_tools/change_log.py
@@ -75,7 +75,11 @@ class ChangeLog:
path, is_deletion = self._unpack_dif... | Improve ChangeLog [skip ci] | py |
diff --git a/openquake/baselib/hdf5.py b/openquake/baselib/hdf5.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/hdf5.py
+++ b/openquake/baselib/hdf5.py
@@ -173,13 +173,17 @@ class PickleableSequence(collections.Sequence):
return repr(self._objects)
def __toh5__(self):
- dic = {
- ... | Stored the number of bytes used | py |
diff --git a/test_gnupg.py b/test_gnupg.py
index <HASH>..<HASH> 100644
--- a/test_gnupg.py
+++ b/test_gnupg.py
@@ -428,11 +428,11 @@ class GPGTestCase(unittest.TestCase):
self.gpg.import_keys(KEYS_TO_IMPORT)
public_keys = self.gpg.list_keys()
self.assertTrue(is_list_with_len(public_keys, 2),
... | Change debugging messages for key import tests to be more precise. * Also, disabled doctest runs when called with "$ python test_gnupg.py". | py |
diff --git a/tests/python_package_test/test_dual.py b/tests/python_package_test/test_dual.py
index <HASH>..<HASH> 100644
--- a/tests/python_package_test/test_dual.py
+++ b/tests/python_package_test/test_dual.py
@@ -2,13 +2,13 @@
"""Tests for dual GPU+CPU support."""
import os
-import pytest
-import lightgbm as lg... | [ci][python] apply isort to tests/python_package_test/test_dual.py #<I> (#<I>) | py |
diff --git a/dvc/__init__.py b/dvc/__init__.py
index <HASH>..<HASH> 100644
--- a/dvc/__init__.py
+++ b/dvc/__init__.py
@@ -5,7 +5,7 @@ Make your data science projects reproducible and shareable.
"""
import os
-VERSION_BASE = '0.9.6'
+VERSION_BASE = '0.9.7'
__version__ = VERSION_BASE
PACKAGEPATH = os.path.abspat... | dvc: bump to <I> | py |
diff --git a/neurondm/neurondm/models/ma2015.py b/neurondm/neurondm/models/ma2015.py
index <HASH>..<HASH> 100755
--- a/neurondm/neurondm/models/ma2015.py
+++ b/neurondm/neurondm/models/ma2015.py
@@ -175,4 +175,5 @@ def main():
__globals__ = globals() # fuck you python
if __name__ == '__main__':
- main()
+ wi... | neurondm fix ma<I> to work with python -m | py |
diff --git a/grimoire_elk/enriched/study_ceres_aoc.py b/grimoire_elk/enriched/study_ceres_aoc.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/study_ceres_aoc.py
+++ b/grimoire_elk/enriched/study_ceres_aoc.py
@@ -89,13 +89,13 @@ class ESPandasConnector(ESConnector):
:raises ValueError: `metadata__tim... | [enriched-study-ceres-aoc] Limit search size to <I> This code limits the number of items returned by paginated searches to <I>. This change should reduce the risk of getting `BytesStreamOutput cannot hold more than 2GB of data` errors when reading data from ElasticSearch. | py |
diff --git a/schedule/__init__.py b/schedule/__init__.py
index <HASH>..<HASH> 100644
--- a/schedule/__init__.py
+++ b/schedule/__init__.py
@@ -455,7 +455,7 @@ class Job(object):
self.period = datetime.timedelta(**{self.unit: interval})
self.next_run = datetime.datetime.now() + self.period
if ... | Fix line length to be <I> characters | py |
diff --git a/Lib/fontMath/mathInfo.py b/Lib/fontMath/mathInfo.py
index <HASH>..<HASH> 100644
--- a/Lib/fontMath/mathInfo.py
+++ b/Lib/fontMath/mathInfo.py
@@ -337,6 +337,8 @@ class MathInfo(object):
>>> m.postscriptSlantAngle = None
>>> m.postscriptStemSnapH = [80.1, 90.2]
>>> m.guidelines = ... | info.italicAngle needs to be exempt from rounding. | py |
diff --git a/tests/test_integration.py b/tests/test_integration.py
index <HASH>..<HASH> 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -29,17 +29,17 @@ class TestIntegration(object):
command_id = self.winrm.run_command(shell_id, 'ipconfig', ['/all'])
stdout, stderr, return_c... | Integration tests. Update assert for stdout | py |
diff --git a/rollbar/cli.py b/rollbar/cli.py
index <HASH>..<HASH> 100644
--- a/rollbar/cli.py
+++ b/rollbar/cli.py
@@ -1,3 +1,4 @@
+import fileinput
import optparse
import sys
@@ -74,8 +75,7 @@ def main():
cur_cmd_name = None
try:
- cur_line = sys.stdin.readline()
- while cur_line:
+ ... | try fileinput instead of stdin directly because I think it buffers... | py |
diff --git a/vcspull/repo/base.py b/vcspull/repo/base.py
index <HASH>..<HASH> 100644
--- a/vcspull/repo/base.py
+++ b/vcspull/repo/base.py
@@ -129,7 +129,7 @@ class BaseRepo(collections.MutableMapping, RepoLoggingAdapter):
def run(
self, cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
- env=... | vcspull.repo.BaseRepo.run(): Keep track of the stdout output buffer This commits update run() function so that it sets the a new attribute named "stdout_data" to process object returned by the function. Additionally, it adds the parameter "log_stdout" allowing to disable the logging of the stdout. This is particularl... | py |
diff --git a/internetarchive/session.py b/internetarchive/session.py
index <HASH>..<HASH> 100644
--- a/internetarchive/session.py
+++ b/internetarchive/session.py
@@ -493,7 +493,7 @@ class ArchiveSession(requests.sessions.Session):
if insecure:
from requests.exceptions import RequestException
... | updates insecure https request doc url | py |
diff --git a/elifetools/parseJATS.py b/elifetools/parseJATS.py
index <HASH>..<HASH> 100644
--- a/elifetools/parseJATS.py
+++ b/elifetools/parseJATS.py
@@ -2386,11 +2386,10 @@ def body_block_content(tag, html_flag=True, base_url=None):
# Remove unwanted nested tags
unwanted_tag_names = body_block_nod... | Do not need to duplicate tag in body_block_content it looks like. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,7 @@ with open("README.rst", "r") as f:
extras_require = {
"seeedstudio": ["pyserial>=3.0"],
"serial": ["pyserial~=3.0"],
- "neovi": ["python-ics>=2.12"],
+ "neovi": ["filelock", "python-ics>=2.12"],... | move "filelock" to neovi dependencies | py |
diff --git a/openquake/risklib/workflows.py b/openquake/risklib/workflows.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/workflows.py
+++ b/openquake/risklib/workflows.py
@@ -818,7 +818,8 @@ def get_workflow(imt, taxonomy, oqparam, **extra):
all_args[argname] = known_args[argname]
if 'hazard... | Fixed another bug in hazard_imtls | py |
diff --git a/dvc/utils/__init__.py b/dvc/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/dvc/utils/__init__.py
+++ b/dvc/utils/__init__.py
@@ -152,9 +152,9 @@ def makedirs(path, exist_ok=False, mode=None):
_makedirs(path, exist_ok=exist_ok)
return
- umask = os.umask(0)
+ umask = os.umask(0... | makedirs: fix mode flag is being ignored starting from Python <I> | py |
diff --git a/stanza/utils/training/run_lemma.py b/stanza/utils/training/run_lemma.py
index <HASH>..<HASH> 100644
--- a/stanza/utils/training/run_lemma.py
+++ b/stanza/utils/training/run_lemma.py
@@ -59,7 +59,8 @@ def run_treebank(mode, paths, treebank, short_name,
identity_lemmatizer.main(train_args) ... | Use short names instead of treebanks, which will potentially let us not pass in the treebank | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,6 @@ from setuptools import find_packages
from distutils.core import setup
import pkg_conf
-import os
setup(
@@ -10,6 +9,7 @@ setup(
name=pkg_conf.PKG_NAME,
version=pkg_conf.get_version(),
packa... | added pyyaml dependency to pip | py |
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/classes.py
+++ b/pylint/checkers/classes.py
@@ -347,11 +347,6 @@ a metaclass class method.'}
self._first_attrs = []
self._meth_could_be_func = None
- @check_messages('no-init', '... | remove @check_message decorator from [visit|leave]_classdef methods of the ClassChecker Those methods are actually not only emitting the listed messages but also updating some internal state that is used from other, unrestricted, messages. We should work on separating responsabilities if we want to restrict method ent... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,7 @@ setup(name='ding0',
'sqlalchemy >= 1.0.11, <= 1.2.0',
'geoalchemy2 >= 0.2.6, <= 0.4.1',
'matplotlib >= 1.5.3, <= 1.5.3',
- ... | Changed ego.io requirement version | py |
diff --git a/scriptworker/constants.py b/scriptworker/constants.py
index <HASH>..<HASH> 100644
--- a/scriptworker/constants.py
+++ b/scriptworker/constants.py
@@ -125,7 +125,7 @@ DEFAULT_CONFIG = frozendict({
"gpg_homedirs": frozendict({
"docker-worker": frozendict({
"type": "flat",
- ... | [docker-worker] Ignore json suffixes. r=aki We want to store key related metadata in json files. | py |
diff --git a/spyder/utils/introspection/jedi_plugin.py b/spyder/utils/introspection/jedi_plugin.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/introspection/jedi_plugin.py
+++ b/spyder/utils/introspection/jedi_plugin.py
@@ -74,7 +74,10 @@ class JediPlugin(IntrospectionPlugin):
call_def = self.get_jedi_objec... | Introspection: Correctly fix Jedi <I> compatibility | py |
diff --git a/lib/pysynphot/spectrum.py b/lib/pysynphot/spectrum.py
index <HASH>..<HASH> 100644
--- a/lib/pysynphot/spectrum.py
+++ b/lib/pysynphot/spectrum.py
@@ -95,7 +95,7 @@ def MergeWaveSets(waveset1, waveset2):
if not (delta > MERGETHRESH).all():
newlen = len(delta[delta > MERGETHRE... | Switching back to use of numpy.zeros in MergeWaveSet so that incompletely filled arrays will be caught by integrity checks elsewhere in pysynphot. git-svn-id: <URL> | py |
diff --git a/pylon/test/case_test.py b/pylon/test/case_test.py
index <HASH>..<HASH> 100644
--- a/pylon/test/case_test.py
+++ b/pylon/test/case_test.py
@@ -206,12 +206,14 @@ class CaseTest(unittest.TestCase):
""" Test totals of complex bus power injection.
"""
bus = Bus(p_demand=200.0, q_deman... | Adding s_demand test. | py |
diff --git a/librosa/display.py b/librosa/display.py
index <HASH>..<HASH> 100644
--- a/librosa/display.py
+++ b/librosa/display.py
@@ -12,6 +12,7 @@ Display
TimeFormatter
NoteFormatter
+ LogHzFormatter
ChromaFormatter
"""
@@ -154,7 +155,7 @@ class NoteFormatter(Formatter):
def __call__(sel... | fixed some boundary conditions in logarithmic formatters | py |
diff --git a/tools/scruffy/checkers/orgs.py b/tools/scruffy/checkers/orgs.py
index <HASH>..<HASH> 100644
--- a/tools/scruffy/checkers/orgs.py
+++ b/tools/scruffy/checkers/orgs.py
@@ -34,13 +34,19 @@ def check(db):
tagname='jurisdiction-has-a-parent',
severity='important... | Add a check in front o jid work, breaking in staging | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -5,9 +5,9 @@ import textwrap
import pytest
+from libvcs._internal.run import run
from libvcs.projects.git import GitProject
from libvcs.shortcuts import create_project_from_pip_url
-f... | fix(core): Import for <I>a9 | py |
diff --git a/tests/integration/test_backend.py b/tests/integration/test_backend.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_backend.py
+++ b/tests/integration/test_backend.py
@@ -15,6 +15,7 @@
#
import logging
import os
+import pytest
from ..constants import FEDORA_MINIMAL_REPOSITORY, FEDORA_MINIM... | pytest.mark.xfail test_cleanup_containers() to workaround #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
setup(name='sportsref',
- version='0.7.14',
+ version='0.7.16',
description='Scraping data from sports-reference.com and related sites',
url=... | version <I>: added license, new NBA features | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.