diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/threading2/t2_base.py b/threading2/t2_base.py
index <HASH>..<HASH> 100644
--- a/threading2/t2_base.py
+++ b/threading2/t2_base.py
@@ -450,8 +450,8 @@ class SHLock(object):
self.is_exclusive -= 1
if not self.is_exclusive:
self._exclusive_owner = None
- ... | SHLock: fix cleanup logic when acquire() times out | py |
diff --git a/scripts/gatk_genotyper.py b/scripts/gatk_genotyper.py
index <HASH>..<HASH> 100644
--- a/scripts/gatk_genotyper.py
+++ b/scripts/gatk_genotyper.py
@@ -45,9 +45,6 @@ def main(config_file, ref_file, align_bam, dbsnp=None):
def unified_genotyper(picard, align_bam, ref_file, platform, dbsnp=None):
"""Pe... | Update coverage sampling argument to match latest version of GATK | py |
diff --git a/gcloud/storage/bucket.py b/gcloud/storage/bucket.py
index <HASH>..<HASH> 100644
--- a/gcloud/storage/bucket.py
+++ b/gcloud/storage/bucket.py
@@ -514,6 +514,7 @@ class Bucket(object):
self.acl.clear()
for entry in result['acl']:
self.acl.entity(self.acl.entity_fro... | Ensure bucket's 'acl' is marked as loaded after 'save_acl'. Incorporates feedback from @dhermes. | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -572,10 +572,10 @@ class TWPTestsWithSpans(unittest.TestCase):
# Test it!
if __name__ == '__main__':
- #unittest.main() # only seems to run 1 class?
+ unittest.main() # only seems to run 1 class?
- verbosity = 0... | not sure what happened, unittest.main() does the job now | py |
diff --git a/porespy/filters/_size_seq_satn.py b/porespy/filters/_size_seq_satn.py
index <HASH>..<HASH> 100644
--- a/porespy/filters/_size_seq_satn.py
+++ b/porespy/filters/_size_seq_satn.py
@@ -172,21 +172,10 @@ def pc_to_satn(pc, im):
wetting phase was displaced.
"""
- temp = np.copy(pc)
- # See if ... | much simpler pc_to_satn | py |
diff --git a/salt/modules/iptables.py b/salt/modules/iptables.py
index <HASH>..<HASH> 100644
--- a/salt/modules/iptables.py
+++ b/salt/modules/iptables.py
@@ -383,7 +383,7 @@ def save(filename=None, family='ipv4'):
salt '*' iptables.save /etc/sysconfig/iptables family=ipv6
'''
if _conf() and not file... | Use family when saving iptables rule. Will save ipv6 rules to proper file. | py |
diff --git a/cocaine/proxy/proxy.py b/cocaine/proxy/proxy.py
index <HASH>..<HASH> 100644
--- a/cocaine/proxy/proxy.py
+++ b/cocaine/proxy/proxy.py
@@ -45,7 +45,7 @@ from cocaine.services import Service
from cocaine.services import Locator
from cocaine.exceptions import ServiceError
from cocaine.exceptions import Dis... | [Proxy] Do not use a detail import path | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -52,6 +52,7 @@ setup(
url='https://github.com/JohnVinyard/zounds',
author='John Vinyard',
author_email='john.vinyard@gmail.com',
+ description='Zounds is a python library for working with audio',
long_de... | Add a description/summary to setup.py | py |
diff --git a/atrcopy/ataridos.py b/atrcopy/ataridos.py
index <HASH>..<HASH> 100644
--- a/atrcopy/ataridos.py
+++ b/atrcopy/ataridos.py
@@ -320,7 +320,7 @@ class AtrHeader(BaseHeader):
file_format = "ATR"
def __init__(self, bytes=None, sector_size=128, initial_sectors=3, create=False):
- BaseHeade... | Atari DOS disks should start from sector 1 | py |
diff --git a/lucid/optvis/style.py b/lucid/optvis/style.py
index <HASH>..<HASH> 100644
--- a/lucid/optvis/style.py
+++ b/lucid/optvis/style.py
@@ -27,7 +27,7 @@ class StyleLoss(object):
https://arxiv.org/abs/1508.06576
"""
- def __init__(self, style_layers, ema_decay=0.0,
+ def __init__(self, style_layers... | StyleLoss to support tensors as decay param. | py |
diff --git a/proxmin/nmf.py b/proxmin/nmf.py
index <HASH>..<HASH> 100644
--- a/proxmin/nmf.py
+++ b/proxmin/nmf.py
@@ -35,13 +35,25 @@ def prox_likelihood(X, step, Xs=None, j=None, Y=None, W=None,
class Steps_AS:
def __init__(self, slack=0.5, Wmax=1):
+ """Helper class to compute the Lipschitz constants ... | docstring for Steps_AS | py |
diff --git a/src/lineage/__init__.py b/src/lineage/__init__.py
index <HASH>..<HASH> 100644
--- a/src/lineage/__init__.py
+++ b/src/lineage/__init__.py
@@ -761,13 +761,17 @@ class Lineage:
}
# ensure discrepant SNPs are in shared DNA segments
- for discrepant_snp in discrepant_snps... | Remove discrepant SNPs from search after loop | py |
diff --git a/validator/testcases/content.py b/validator/testcases/content.py
index <HASH>..<HASH> 100644
--- a/validator/testcases/content.py
+++ b/validator/testcases/content.py
@@ -272,7 +272,8 @@ def _process_file(err, xpi_package, name, file_data, name_lower,
is_subpackage else
... | Preserve initial supported apps dict for later restoration | py |
diff --git a/src/mca.py b/src/mca.py
index <HASH>..<HASH> 100644
--- a/src/mca.py
+++ b/src/mca.py
@@ -59,8 +59,8 @@ class MCA(object):
self.P, self.s, self.Q = np.linalg.svd(_mul(self.D_r, Z_c, self.D_c))
if benzecri:
- self.E = np.array([(K/(K-1)*(_ - 1/K))**2
- i... | Restore lost commit by jakub | py |
diff --git a/shortuuid/django_fields.py b/shortuuid/django_fields.py
index <HASH>..<HASH> 100644
--- a/shortuuid/django_fields.py
+++ b/shortuuid/django_fields.py
@@ -13,7 +13,7 @@ class ShortUUIDField(models.CharField):
if "max_length" not in kwargs:
# If `max_length` was not specified, set it ... | fix: Correctly account for length when prefix is used (fixes #<I>) | py |
diff --git a/tools/c7n_org/c7n_org/cli.py b/tools/c7n_org/c7n_org/cli.py
index <HASH>..<HASH> 100644
--- a/tools/c7n_org/c7n_org/cli.py
+++ b/tools/c7n_org/c7n_org/cli.py
@@ -46,7 +46,7 @@ from c7n_org.utils import environ, account_tags
log = logging.getLogger('c7n_org')
-WORKER_COUNT = os.environ.get('C7N_ORG_PAR... | tools/c7n_org Fixing the WORKER_COUNT (#<I>) | py |
diff --git a/tools/python/buildmetadatafromxml.py b/tools/python/buildmetadatafromxml.py
index <HASH>..<HASH> 100755
--- a/tools/python/buildmetadatafromxml.py
+++ b/tools/python/buildmetadatafromxml.py
@@ -364,7 +364,7 @@ class XTerritory(UnicodeMixin):
self.o.leading_digits = xterritory.get('leadingDigits', ... | Remove whitespace in RE for nationalPrefixForParsing. Fixes #<I> (once metadata is rebuilt). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ setup(
version = '.'.join([str(x) for x in __version__]),
packages = ['bokeh', 'bokeh.chaco_gg', 'bokeh.server',
'bokeh.server.models', 'bokeh.server.views',
- 'bokeh.se... | left out new package specialmodels from setup.py | py |
diff --git a/aquarius/run.py b/aquarius/run.py
index <HASH>..<HASH> 100644
--- a/aquarius/run.py
+++ b/aquarius/run.py
@@ -1,5 +1,6 @@
from aquarius.myapp import app
from aquarius.app.assets import assets
+from aquarius.app.musicmap import musicmap
from flask_swagger import swagger
from flask_swagger_ui import get_... | added basePath for swagger | py |
diff --git a/PBB_Core.py b/PBB_Core.py
index <HASH>..<HASH> 100755
--- a/PBB_Core.py
+++ b/PBB_Core.py
@@ -65,7 +65,6 @@ class WDItemList(object):
class WDItemEngine(object):
- create_new_item = False
log_file_name = ''
def __init__(self, wd_item_id='', item_name='', domain='', data=[], server='www.... | create_new item is always set to False by default. | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,6 +1,5 @@
import pytest
import xenon
-import jpype
@pytest.fixture(scope='session', autouse=True)
@@ -14,5 +13,5 @@ def make_init():
assert xenon.JavaClass.JClassClass is None... | Method types did not match on travis... | py |
diff --git a/vagrant/__init__.py b/vagrant/__init__.py
index <HASH>..<HASH> 100644
--- a/vagrant/__init__.py
+++ b/vagrant/__init__.py
@@ -838,7 +838,7 @@ class Vagrant:
Removes the box matching name and provider. It is an error if no box
matches name and provider.
"""
- self._call_vag... | Ensure box remove uses force (#<I>) | py |
diff --git a/py/dynesty/utils.py b/py/dynesty/utils.py
index <HASH>..<HASH> 100644
--- a/py/dynesty/utils.py
+++ b/py/dynesty/utils.py
@@ -537,8 +537,8 @@ def jitter_run(res, rstate=None, approx=False):
saved_h = zhlnz - logzmax * np.exp(saved_logz - logzmax)
# changes in h in each step
dh = np.diff(save... | fix the logzerr calculation, (make sure it's an array) | py |
diff --git a/tinydb/table.py b/tinydb/table.py
index <HASH>..<HASH> 100644
--- a/tinydb/table.py
+++ b/tinydb/table.py
@@ -590,10 +590,10 @@ class Table:
tables = {}
try:
- table = tables[self.name]
+ raw_table = tables[self.name]
except KeyError:
# Th... | fix(table): make mypy happy | py |
diff --git a/colab/super_archives/search_indexes.py b/colab/super_archives/search_indexes.py
index <HASH>..<HASH> 100644
--- a/colab/super_archives/search_indexes.py
+++ b/colab/super_archives/search_indexes.py
@@ -28,7 +28,7 @@ class ThreadIndex(BaseIndex, indexes.Indexable):
latest_message_pk = indexes.IntegerFi... | Change score field to fix whoosh indexing | py |
diff --git a/djohno/utils.py b/djohno/utils.py
index <HASH>..<HASH> 100644
--- a/djohno/utils.py
+++ b/djohno/utils.py
@@ -14,6 +14,22 @@ def is_pretty_from_address(input):
return False
+def _get_version_from_app(app):
+ if hasattr(app, 'get_version'):
+ get_version = app.get_version
+ if ... | Fixing erroneous missing line in code coverage report I guess this is a bug in coverage.py somewhere, but previously the "continue" for where we couldn't get version info from an app in INSTALLED_APPS was tagged as missing from tests. Shuffling the code around made this go away, and I think makes for more readable cod... | 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('LICENSE.md') as fh:
license = fh.read()
setup(name='pysasl',
- version='0.6.1',
+ version='0.6.2',
author='Ian Good',
author_email='icgood@gmail.com',
descriptio... | Fix keyword typo in setup.py | py |
diff --git a/visidata/_types.py b/visidata/_types.py
index <HASH>..<HASH> 100644
--- a/visidata/_types.py
+++ b/visidata/_types.py
@@ -106,7 +106,7 @@ def currency(*args):
class vlen(int):
- def __new__(cls, v):
+ def __new__(cls, v=0):
if isinstance(v, (vlen, int, float)):
return super... | [vlen] add a minimum value of 0 for vlen() Closes #<I> Numeric binning requires each type to have a default minimum value when calling [type]() | py |
diff --git a/dagfactory/utils.py b/dagfactory/utils.py
index <HASH>..<HASH> 100644
--- a/dagfactory/utils.py
+++ b/dagfactory/utils.py
@@ -118,6 +118,8 @@ def get_python_callable(python_callable_name, python_callable_file):
:type: callable
"""
+ python_callable_file = os.path.expandvars(python_callable_f... | Add environment variable support (#<I>) Add support for callable file path to use environment variable and not get error on get_python_callable function. | py |
diff --git a/ocrd_utils/ocrd_utils/logging.py b/ocrd_utils/ocrd_utils/logging.py
index <HASH>..<HASH> 100644
--- a/ocrd_utils/ocrd_utils/logging.py
+++ b/ocrd_utils/ocrd_utils/logging.py
@@ -97,6 +97,7 @@ def initLogging():
level=logging.INFO,
format='%(asctime)s.%(msecs)03d %(levelname)s %(name)s - %... | [app][fix] return explict rootLogger level set | py |
diff --git a/spyderlib/widgets/shell.py b/spyderlib/widgets/shell.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/shell.py
+++ b/spyderlib/widgets/shell.py
@@ -15,7 +15,8 @@ import sys, os, time
import os.path as osp
from PyQt4.QtGui import (QMenu, QApplication, QCursor, QToolTip, QKeySequence,
- ... | Shell/bugfix: font was not changed in already opened shell | py |
diff --git a/riotwatcher/riotwatcher.py b/riotwatcher/riotwatcher.py
index <HASH>..<HASH> 100644
--- a/riotwatcher/riotwatcher.py
+++ b/riotwatcher/riotwatcher.py
@@ -190,6 +190,7 @@ class LoLException(Exception):
error_400 = "Bad request"
error_401 = "Unauthorized"
+error_403 = "Blacklisted key"
error_404 = "Game... | Add check for <I> response code. | py |
diff --git a/check_manifest.py b/check_manifest.py
index <HASH>..<HASH> 100755
--- a/check_manifest.py
+++ b/check_manifest.py
@@ -381,7 +381,7 @@ class Bazaar(VCS):
codecs.lookup('oem')
except LookupError:
pass
- else:
+ else: # pragma: nocover
return 'oem... | Can't really test this code path on Linux | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ with open('CHANGES.txt') as changes:
setup_params = dict(
name="hgtools",
- version=hgtools.plugins.calculate_version(options=dict(increment='0.0.1')),
+ version=hgtools.plugins.calculate_version(options=di... | Next release will be <I> | py |
diff --git a/luminoso_api/client.py b/luminoso_api/client.py
index <HASH>..<HASH> 100644
--- a/luminoso_api/client.py
+++ b/luminoso_api/client.py
@@ -293,6 +293,7 @@ class LuminosoClient(object):
This is only generally useful for specific URLs, such as documentation.
"""
+ params = jsonify_p... | get_raw now jsonifies its parameters Why did it not before? Who knows, really. | py |
diff --git a/pyflare/client.py b/pyflare/client.py
index <HASH>..<HASH> 100755
--- a/pyflare/client.py
+++ b/pyflare/client.py
@@ -70,7 +70,7 @@ class PyflareClient(object):
'z': zone
})
has_more = records['response']['recs']['has_more']
- current_count = records['r... | accumulate over count, instead of taking it as an absolute offset records['response']['recs']['count'] is the number of items in the latest batch of records, but it was treated as thought it was an absolute offset within the list of all records. This would manifest as an infinite loop whenever you get more than two b... | py |
diff --git a/zipline/algorithm.py b/zipline/algorithm.py
index <HASH>..<HASH> 100644
--- a/zipline/algorithm.py
+++ b/zipline/algorithm.py
@@ -1281,7 +1281,7 @@ class TradingAlgorithm(object):
"""
days = self.trading_environment.trading_days
start_date_loc = days.get_loc(start_date)
- ... | BUG: Use normed last_close instead of period_end. `period_end` can be outside the range of data for which we have dates. `last_close` properly gets pulled back to the last date for which we actually have data. We should consider whether or not we need to be storing period_end at all. | py |
diff --git a/src/toil/batchSystems/slurm.py b/src/toil/batchSystems/slurm.py
index <HASH>..<HASH> 100644
--- a/src/toil/batchSystems/slurm.py
+++ b/src/toil/batchSystems/slurm.py
@@ -42,9 +42,9 @@ class SlurmBatchSystem(AbstractGridEngineBatchSystem):
currentjobs = dict((str(self.batchJobIDs[x][0]), x) for... | Update slurm.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -20,8 +20,8 @@ setup(
# https://packaging.python.org/en/latest/single_source_version.html
version='0.9.0',
- description='A fully featured python package for quaternion representation, manipulation, 3D rotati... | Enhanced description for setup.py | py |
diff --git a/paypal/standard/ipn/tests/test_ipn.py b/paypal/standard/ipn/tests/test_ipn.py
index <HASH>..<HASH> 100644
--- a/paypal/standard/ipn/tests/test_ipn.py
+++ b/paypal/standard/ipn/tests/test_ipn.py
@@ -120,6 +120,6 @@ class IPNTest(TestCase):
self.client.post("/ipn/", IPN_POST_PARAMS)
self.cl... | Making standard.ipn tests pass. On MySQL, ordering by date does not give the desired ordering of getting the most recently inserted row first. We need to order by the primary key too. | py |
diff --git a/src/xray/utils.py b/src/xray/utils.py
index <HASH>..<HASH> 100644
--- a/src/xray/utils.py
+++ b/src/xray/utils.py
@@ -287,13 +287,6 @@ def dict_equal(first, second):
return False
elif v1 != v2:
return False
- if isinstance(v1, np.ndarray) != isinstance(v2, np.n... | Reverted an accidental change to utils.dict_equal | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -52,6 +52,7 @@ setuptools.setup(
author='Niklas Rosenstein',
author_email='rosensteinniklas@gmail.com',
packages=setuptools.find_packages(),
+ package_data={'nr': ['tools/licenses/*/*']},
install_requires=[],
e... | setup.py: include license data files | py |
diff --git a/tests/test_cpuid.py b/tests/test_cpuid.py
index <HASH>..<HASH> 100644
--- a/tests/test_cpuid.py
+++ b/tests/test_cpuid.py
@@ -28,20 +28,24 @@ class MockCPUID(CPUID):
b"\x0f\xa2" # cpuid
b"\xC3",): # ret
return 0x8000001f
- # get_info
- elif byte_code == \
+
+ # ge... | Cleanup. Moved each test for CPUID check into own if tree. | py |
diff --git a/worker/buildbot_worker/__init__.py b/worker/buildbot_worker/__init__.py
index <HASH>..<HASH> 100644
--- a/worker/buildbot_worker/__init__.py
+++ b/worker/buildbot_worker/__init__.py
@@ -57,7 +57,14 @@ def getVersion(init_file):
if (not p.returncode) and out:
v = VERSION_MATCH.search(o... | Make sure that getVersion() always returns type str. Popen.communicate() returns bytes on Python 3, so we must convert it to str. This fixes "pip install -e worker" on Python 3. | py |
diff --git a/sacad/sources/base.py b/sacad/sources/base.py
index <HASH>..<HASH> 100644
--- a/sacad/sources/base.py
+++ b/sacad/sources/base.py
@@ -5,6 +5,7 @@ import logging
import operator
import os
import random
+import string
import unicodedata
import urllib.parse
@@ -57,6 +58,8 @@ class CoverSource(metaclass... | Remove punctuation when searching Improves results with some sources like Last.fm | py |
diff --git a/bika/lims/jsonapi/read.py b/bika/lims/jsonapi/read.py
index <HASH>..<HASH> 100644
--- a/bika/lims/jsonapi/read.py
+++ b/bika/lims/jsonapi/read.py
@@ -117,6 +117,7 @@ def read(context, request):
except:
val = str(val)
obj_data[fieldname] = val
+ obj_... | ijsonapi read: Add a path to each returned object. | py |
diff --git a/alignak/notification.py b/alignak/notification.py
index <HASH>..<HASH> 100644
--- a/alignak/notification.py
+++ b/alignak/notification.py
@@ -267,8 +267,8 @@ class Notification(Action):
data = {'_id': self._id}
self.fill_data_brok_from(data, 'full_status')
- b = Brok('notificatio... | Enh: Pylint - C<I> on variables names in notification.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -46,5 +46,9 @@ setup(
classifiers=['License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
+ 'Prog... | Add explicitly the supported versions for PyPI: <I>, <I>, <I> and <I> | py |
diff --git a/digitalocean/baseapi.py b/digitalocean/baseapi.py
index <HASH>..<HASH> 100644
--- a/digitalocean/baseapi.py
+++ b/digitalocean/baseapi.py
@@ -106,7 +106,6 @@ class BaseAPI(object):
all_data = data
while data.get("links", {}).get("pages", {}).get("next"):
url, query = data["li... | Removed debug print statement (fixes #<I>) | py |
diff --git a/montblanc/impl/rime/tensorflow/RimeSolver.py b/montblanc/impl/rime/tensorflow/RimeSolver.py
index <HASH>..<HASH> 100644
--- a/montblanc/impl/rime/tensorflow/RimeSolver.py
+++ b/montblanc/impl/rime/tensorflow/RimeSolver.py
@@ -713,8 +713,9 @@ class RimeSolver(MontblancTensorflowSolver):
except (Key... | Reraise exceptions instead of merely logging them (#<I>) | py |
diff --git a/backtrader/feeds/csvgeneric.py b/backtrader/feeds/csvgeneric.py
index <HASH>..<HASH> 100644
--- a/backtrader/feeds/csvgeneric.py
+++ b/backtrader/feeds/csvgeneric.py
@@ -87,10 +87,10 @@ class GenericCSVData(feed.CSVDataBase):
def start(self):
super(GenericCSVData, self).start()
+ sel... | Ensure a callable is taken in genericcsv | py |
diff --git a/montblanc/tests/run_tests.py b/montblanc/tests/run_tests.py
index <HASH>..<HASH> 100644
--- a/montblanc/tests/run_tests.py
+++ b/montblanc/tests/run_tests.py
@@ -68,7 +68,7 @@ def suite():
test_suite.addTest(unittest.makeSuite(TestSolver))
test_suite.addTest(unittest.makeSuite(TestUtils))... | Disable v5 test for now. | py |
diff --git a/tests/test_embedded.py b/tests/test_embedded.py
index <HASH>..<HASH> 100644
--- a/tests/test_embedded.py
+++ b/tests/test_embedded.py
@@ -532,8 +532,6 @@ class TestListEmbeddingIntegration(TestCase):
OrderedDict((('name', "Baz"), ('foo', 321)))
]
}
- import pdb... | Removed leftover import pdb; pdb.set_trace(). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,8 @@ setup(
],
test_suite='nose.collector',
url='https://github.com/Nextdoor/nose-leak-detector',
- download_url='https://github.com/Nextdoor/nose-leak-detector/archive/0.1.1.tar.gz',
+ download_... | update download url so that pip can parse it | py |
diff --git a/benchbuild/source/base.py b/benchbuild/source/base.py
index <HASH>..<HASH> 100644
--- a/benchbuild/source/base.py
+++ b/benchbuild/source/base.py
@@ -154,7 +154,7 @@ class Versioned(Protocol):
...
-class FetchableSource(Fetchable, Expandable, Versioned):
+class FetchableSource:
"""
B... | fix(sources): do not use protocol class as ABC This fixes #<I>. | py |
diff --git a/beautysh/beautysh.py b/beautysh/beautysh.py
index <HASH>..<HASH> 100755
--- a/beautysh/beautysh.py
+++ b/beautysh/beautysh.py
@@ -232,9 +232,9 @@ class Beautify:
if func_decl_style != None:
stripped_record = self.change_function_style(stripped_record, ... | beautysh/beautysh.py: fix outdent issues for elif (#2, #<I>) Make the ad-hoc oudent (added in #2) apply only when `elif` is followed by `then` on the same line. In my testing, this addresses #<I> without breaking the #2 test case. Test case to be added in #<I> | py |
diff --git a/microraiden/microraiden/proxy/resources/expensive.py b/microraiden/microraiden/proxy/resources/expensive.py
index <HASH>..<HASH> 100644
--- a/microraiden/microraiden/proxy/resources/expensive.py
+++ b/microraiden/microraiden/proxy/resources/expensive.py
@@ -111,7 +111,7 @@ class Expensive(Resource):
d... | Changed E<I> to E<I> if ethereum node is not responding | py |
diff --git a/cumulusci/tasks/robotframework/debugger/ui.py b/cumulusci/tasks/robotframework/debugger/ui.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/robotframework/debugger/ui.py
+++ b/cumulusci/tasks/robotframework/debugger/ui.py
@@ -19,10 +19,10 @@ class DebuggerCli(cmd.Cmd, object):
)
prompt = "rdb... | Let caller define stdout (mainly for testing); make sure all print statements write to self.stdout | py |
diff --git a/indra/sources/reach/processor.py b/indra/sources/reach/processor.py
index <HASH>..<HASH> 100644
--- a/indra/sources/reach/processor.py
+++ b/indra/sources/reach/processor.py
@@ -203,10 +203,25 @@ class ReachProcessor(object):
for a in reg['arguments']:
if self._get_arg... | Extract complex controllers of RegulateAmounts | py |
diff --git a/openupgradelib/openupgrade.py b/openupgradelib/openupgrade.py
index <HASH>..<HASH> 100644
--- a/openupgradelib/openupgrade.py
+++ b/openupgradelib/openupgrade.py
@@ -543,16 +543,16 @@ def rename_models(cr, model_spec):
cr.execute(
'UPDATE ir_model_data SET name=%s '
"WHER... | [FIX] rename_models: Apply universal query for renaming IMD for fields | py |
diff --git a/kafka_scanner/__init__.py b/kafka_scanner/__init__.py
index <HASH>..<HASH> 100644
--- a/kafka_scanner/__init__.py
+++ b/kafka_scanner/__init__.py
@@ -475,10 +475,14 @@ class KafkaScanner(object):
self.__issued_batches += 1
messages.append(message)
... | reduce limit for increase batchsize, and log when batchsize is changed | py |
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -105,7 +105,7 @@ def classical_split_filter(srcs, srcfilter, gsims, params, monitor):
if monitor.calc_id and nb >... | [skip CI] Former-commit-id: ace<I>ffe5d0c<I>f<I>e2bc3b<I>fd2cadfb<I>ec | py |
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py
index <HASH>..<HASH> 100644
--- a/pyrogram/__init__.py
+++ b/pyrogram/__init__.py
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
-__version__ =... | Update Pyrogram to <I> | py |
diff --git a/eqcorrscan/core/match_filter.py b/eqcorrscan/core/match_filter.py
index <HASH>..<HASH> 100644
--- a/eqcorrscan/core/match_filter.py
+++ b/eqcorrscan/core/match_filter.py
@@ -2628,6 +2628,11 @@ class Tribe(object):
.. Note::
Methods: `from_contbase`, `from_sfile` and `from_sac` are not... | Update doc-string for tribe.construct Addresses issue #<I> | py |
diff --git a/txt2boil/version.py b/txt2boil/version.py
index <HASH>..<HASH> 100644
--- a/txt2boil/version.py
+++ b/txt2boil/version.py
@@ -1 +1 @@
-version = '0.5.6'
+version = '0.6' | Bumped version number to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -44,7 +44,7 @@ with open(os.path.join(REQUIREMENT_DIR, "test_requirements.txt")) as f:
setuptools_require = ["setuptools>=38.3.0"]
excel_requires = ["excelrd>=2.0.2"]
-markdown_requires = ["Markdown>=2.6.6,<3"]
+markdown_r... | Loosen version constraints of Markdown package | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -39,7 +39,7 @@ setup(name='playback',
author_email='jiasir@icloud.com',
url='https://github.com/jiasir/playback/',
license='MIT License',
- install_requires=['ansible'],
+ install_requires=['ansi... | Using fabric library for simplifying system administration tasks | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@ install_requires = [
'tzlocal~=1.2',
]
-if tuple(map(int, setuptools.__version__.split("."))) < (6, 0, 0):
+if tuple(map(int, setuptools.__version__.split(".")[:3])) < (6, 0, 0):
for i, item in enum... | setup: fix version check for odd versions of setuptools | py |
diff --git a/pep517/build.py b/pep517/build.py
index <HASH>..<HASH> 100644
--- a/pep517/build.py
+++ b/pep517/build.py
@@ -19,8 +19,9 @@ def validate_system(system):
"""
required = {'requires', 'build-backend'}
if required > set(system):
- missing = required - set(system)
- message = "Missi... | Inline the 'missing' name to avoid locals invocation. | py |
diff --git a/bika/lims/utils.py b/bika/lims/utils.py
index <HASH>..<HASH> 100644
--- a/bika/lims/utils.py
+++ b/bika/lims/utils.py
@@ -372,15 +372,19 @@ class bika_browserdata(BrowserView):
## Get partition setup records for this service
separate = service.getSeparate()
containers... | Further compensate for Partitions and Containers being either singlular or plural | py |
diff --git a/test/unit/__init__.py b/test/unit/__init__.py
index <HASH>..<HASH> 100644
--- a/test/unit/__init__.py
+++ b/test/unit/__init__.py
@@ -1 +1,3 @@
"""__init__.py"""
+import logging
+logging.disable(logging.CRITICAL) | Quiet logging while tests are running | py |
diff --git a/bika/lims/content/analysis.py b/bika/lims/content/analysis.py
index <HASH>..<HASH> 100644
--- a/bika/lims/content/analysis.py
+++ b/bika/lims/content/analysis.py
@@ -32,14 +32,6 @@ class Analysis(AbstractRoutineAnalysis):
return sample
@security.public
- def getClientSampleID(self):
... | getClientSampleID method removed | py |
diff --git a/allianceauth/services/modules/discord/tasks.py b/allianceauth/services/modules/discord/tasks.py
index <HASH>..<HASH> 100644
--- a/allianceauth/services/modules/discord/tasks.py
+++ b/allianceauth/services/modules/discord/tasks.py
@@ -5,7 +5,7 @@ from django.contrib.auth.models import User
from django.core... | Delete Discord users if they've left the server. Closes #<I> | py |
diff --git a/tests/settings.py b/tests/settings.py
index <HASH>..<HASH> 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -21,7 +21,7 @@ else:
# local sqlite database file
DATABASES['default'] = {
'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': INSTALL_DIR + 'db.sqlite3',
+ 'N... | Changes the location of db.sqlite3 for the test On linux based systems, the previous default location for db.sqlite3 needs super-user privileges to write to, which seems unnecessary. Additionally, the error message is not very informative ('unable to open database file') | py |
diff --git a/indra/explanation/model_checker.py b/indra/explanation/model_checker.py
index <HASH>..<HASH> 100644
--- a/indra/explanation/model_checker.py
+++ b/indra/explanation/model_checker.py
@@ -739,6 +739,7 @@ class PysbModelChecker(ModelChecker):
return self.get_im()
def process_statement(self, st... | Make sure im is generated before processing stmt | py |
diff --git a/thoth/solver/python/python.py b/thoth/solver/python/python.py
index <HASH>..<HASH> 100644
--- a/thoth/solver/python/python.py
+++ b/thoth/solver/python/python.py
@@ -274,9 +274,19 @@ def _do_resolve_index(
unresolved.append({"package_name": dependency.name, "version_spec": version_spec, "index... | Do sub-graph checks also on direct dependencies To optimize solver runs inside the cluster, let's also perform sub-graph checks on resolved direct dependencies. | py |
diff --git a/txtorcon/controller.py b/txtorcon/controller.py
index <HASH>..<HASH> 100644
--- a/txtorcon/controller.py
+++ b/txtorcon/controller.py
@@ -42,7 +42,7 @@ from .interface import ITor
try:
from .controller_py3 import _AsyncOnionAuthContext
HAVE_ASYNC = True
-except SyntaxError:
+except Exception:
... | figure out if we have async in an even more robust way | py |
diff --git a/meshio/med/_med.py b/meshio/med/_med.py
index <HASH>..<HASH> 100644
--- a/meshio/med/_med.py
+++ b/meshio/med/_med.py
@@ -81,7 +81,7 @@ def read(filename):
# Information for point tags
point_tags = {}
- fas = f["FAS"][mesh_name]
+ fas = mesh["FAS"] if "FAS" in mesh else f["FAS"][mesh_name... | update med: FAS can also be in mesh object | py |
diff --git a/firebirdsql/fbcore.py b/firebirdsql/fbcore.py
index <HASH>..<HASH> 100644
--- a/firebirdsql/fbcore.py
+++ b/firebirdsql/fbcore.py
@@ -300,7 +300,7 @@ def parse_xsqlda(buf, connection, stmt_handle):
xsqlda = [None] * col_len
next_index = parse_select_items(buf[11+l:], xsqlda, connection)
whil... | bugfix reported from Ivica Paleka <EMAIL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ with open('LICENSE') as fl:
setup(
name='CurrencyConverter',
- version='0.14',
+ version='0.14.1',
author='Alex Prengère',
author_email='alexprengere@gmail.com',
url='https://github.... | Bump to version <I> | py |
diff --git a/rnftools/mishmash/wgSim.py b/rnftools/mishmash/wgSim.py
index <HASH>..<HASH> 100644
--- a/rnftools/mishmash/wgSim.py
+++ b/rnftools/mishmash/wgSim.py
@@ -164,7 +164,7 @@ class WgSim(Source):
fai=self._fai_fn,
genome_id=self.genome_id,
wgsim_fastq_1=self._tmp_fq1_fn,
- wgsim_fastq_2=self._tmp_... | WgSim static method bug corrected | py |
diff --git a/pywb/rewrite/test/test_rewrite_live.py b/pywb/rewrite/test/test_rewrite_live.py
index <HASH>..<HASH> 100644
--- a/pywb/rewrite/test/test_rewrite_live.py
+++ b/pywb/rewrite/test/test_rewrite_live.py
@@ -82,6 +82,10 @@ def test_example_domain_specific_3():
# comment out bootloader
assert '/* Bootlo... | tests: add test for wombat top | py |
diff --git a/pandas/tools/plotting.py b/pandas/tools/plotting.py
index <HASH>..<HASH> 100644
--- a/pandas/tools/plotting.py
+++ b/pandas/tools/plotting.py
@@ -431,7 +431,8 @@ class LinePlot(MPLPlot):
else:
self.axes[0].legend(loc='best')
- condition = (df.index.is_all_dates
+ ... | BUG: don't autofmt_xdate if use special ts formatter | py |
diff --git a/clint/textui/__init__.py b/clint/textui/__init__.py
index <HASH>..<HASH> 100644
--- a/clint/textui/__init__.py
+++ b/clint/textui/__init__.py
@@ -7,7 +7,10 @@ clint.textui
This module provides the text output helper system.
"""
-
+import sys
+if sys.platform.startswith('win'):
+ from ..packages impo... | Initialise colorama for textui on Windows. Closes gh-<I> | py |
diff --git a/click_log/core.py b/click_log/core.py
index <HASH>..<HASH> 100644
--- a/click_log/core.py
+++ b/click_log/core.py
@@ -50,12 +50,13 @@ class ColorFormatter(logging.Formatter):
class ClickHandler(logging.Handler):
+ _use_stderr = True
+
def emit(self, record):
try:
msg = se... | don't use stdout, fix #<I> | py |
diff --git a/sos/collector/clusters/satellite.py b/sos/collector/clusters/satellite.py
index <HASH>..<HASH> 100644
--- a/sos/collector/clusters/satellite.py
+++ b/sos/collector/clusters/satellite.py
@@ -24,14 +24,15 @@ class satellite(Cluster):
return _cmd % quote(_dbcmd % quote(query))
def get_nodes(se... | [satellite] Simplify node enumeration Simplifies the node enumeration from the db query using the `copy` function of psql to dump the results to stdout without the DB header/footer. | py |
diff --git a/examples/stock/company.v.py b/examples/stock/company.v.py
index <HASH>..<HASH> 100644
--- a/examples/stock/company.v.py
+++ b/examples/stock/company.v.py
@@ -72,7 +72,7 @@ def transfer_stock(receiver: address, transfer_order: currency_value):
self.holdings[receiver] += transfer_order
# Allows the c... | Changed 'give' to 'pay_bill' | py |
diff --git a/pywbem/cim_operations.py b/pywbem/cim_operations.py
index <HASH>..<HASH> 100644
--- a/pywbem/cim_operations.py
+++ b/pywbem/cim_operations.py
@@ -3451,7 +3451,6 @@ class WBEMConnection(object):
self.operation_recorder.stage_pywbem_args(
method='CloseEnumeration',
... | Fixed incorrect MaxObjectCount on recorder call for CloseEnumeration. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@ with open(os.path.join(REQUIREMENT_DIR, "test_requirements.txt")) as f:
SETUPTOOLS_REQUIRES = ["setuptools>=38.3.0"]
PYTEST_RUNNER_REQUIRES = ["pytest-runner"] if need_pytest() else []
-dumps_requires = ["py... | Update dumps_requires | py |
diff --git a/pythonforandroid/recipes/pymunk/__init__.py b/pythonforandroid/recipes/pymunk/__init__.py
index <HASH>..<HASH> 100644
--- a/pythonforandroid/recipes/pymunk/__init__.py
+++ b/pythonforandroid/recipes/pymunk/__init__.py
@@ -10,7 +10,8 @@ class PymunkRecipe(CompiledComponentsPythonRecipe):
def get_reci... | Fix Pymunk crash on older versions of Android Seems to be required to link -lm on at least <I>, but not on <I> | py |
diff --git a/src/ossos-pipeline/ossos/fitsviewer/displayable.py b/src/ossos-pipeline/ossos/fitsviewer/displayable.py
index <HASH>..<HASH> 100644
--- a/src/ossos-pipeline/ossos/fitsviewer/displayable.py
+++ b/src/ossos-pipeline/ossos/fitsviewer/displayable.py
@@ -349,7 +349,12 @@ class ErrEllipse(object):
self.... | Adjust the angle of the error ellipse due to difference in coordinate systems. | py |
diff --git a/tests/util/test_util.py b/tests/util/test_util.py
index <HASH>..<HASH> 100644
--- a/tests/util/test_util.py
+++ b/tests/util/test_util.py
@@ -178,10 +178,10 @@ def test_deepcopy_mixin():
pass
class A:
- def __init__(a):
- a = a
+ def __init__(self, a):
+ ... | fix incompatible deepcopy usage in test case | py |
diff --git a/microsoftbotframework/response.py b/microsoftbotframework/response.py
index <HASH>..<HASH> 100644
--- a/microsoftbotframework/response.py
+++ b/microsoftbotframework/response.py
@@ -143,9 +143,11 @@ class Response:
"replyToId": reply_to_id,
}
- post_response = requests.post(r... | Added logging for response json | py |
diff --git a/openquake/nrmllib/hazard/parsers.py b/openquake/nrmllib/hazard/parsers.py
index <HASH>..<HASH> 100644
--- a/openquake/nrmllib/hazard/parsers.py
+++ b/openquake/nrmllib/hazard/parsers.py
@@ -642,6 +642,8 @@ class HazardCurveParser(object):
header['sa_damping'] = a.get('saDamping')
... | hazard/parsers: Corrected hazard curve parser to extract logic tree metadata as well. Before, it was only designed to work with statistical results. | py |
diff --git a/openquake/server/dbserver.py b/openquake/server/dbserver.py
index <HASH>..<HASH> 100644
--- a/openquake/server/dbserver.py
+++ b/openquake/server/dbserver.py
@@ -112,7 +112,6 @@ class DbServer(object):
def runserver(dbpathport=None, logfile=DATABASE['LOG'], loglevel='WARN'):
- logging.basicConfig(l... | Configured the logger after the creation of the dbserver directory | py |
diff --git a/ELiDE/ELiDE/timestream.py b/ELiDE/ELiDE/timestream.py
index <HASH>..<HASH> 100644
--- a/ELiDE/ELiDE/timestream.py
+++ b/ELiDE/ELiDE/timestream.py
@@ -218,6 +218,7 @@ class TimestreamScreen(Screen):
branch_lineage['trunk'] = trunk_lineage
for row, branch in enumerate(sorted_branches):
... | Don't always draw right thorn in timestream | py |
diff --git a/py/h2o.py b/py/h2o.py
index <HASH>..<HASH> 100644
--- a/py/h2o.py
+++ b/py/h2o.py
@@ -1370,7 +1370,7 @@ class H2O(object):
h2b.browseJsonHistoryAsUrlLastMatch("RFView")
return a
- def generate_predictions(self, data_key, model_key, destination_key, timeoutSecs=300, print_params=T... | the way I had added destination_key param to h2o.generate_predictions() yesterday wasn't right. Probably made a handful of tests that use it with 2 params fail. Fixed it to a better way. | py |
diff --git a/bingo/models.py b/bingo/models.py
index <HASH>..<HASH> 100644
--- a/bingo/models.py
+++ b/bingo/models.py
@@ -220,7 +220,7 @@ class BingoBoard(models.Model):
BingoField(word=word, board=self, position=None).save()
def __unicode__(self):
- return _(u"BingoBoard #{0} created by {1}... | fix in BingoBoard.__unicode__, site showed the ip | py |
diff --git a/neurom/features/__init__.py b/neurom/features/__init__.py
index <HASH>..<HASH> 100644
--- a/neurom/features/__init__.py
+++ b/neurom/features/__init__.py
@@ -190,3 +190,31 @@ def feature(shape, namespace: NameSpace, name=None):
# These imports are necessary in order to register the features
from neurom.f... | Update `neurom.features.get` docstring with available builtin features (#<I>) | py |
diff --git a/tests/perf/quick_perf.py b/tests/perf/quick_perf.py
index <HASH>..<HASH> 100644
--- a/tests/perf/quick_perf.py
+++ b/tests/perf/quick_perf.py
@@ -25,7 +25,7 @@
import os, sys, socket, time
-from example_test import background, verify, wait_addr, execute, pick_addr, cmdline
+from example_test import Pr... | PROTON-<I>: Fix quick_perf_xx targets. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.