diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,8 @@ history = open('CHANGES.rst').read()
tests_require = [
'mock>=3.0.5',
- 'pytest-invenio>=1.3.3',
+ 'pytest-celery>=0.0.0a1', # TODO: Remove when pytest-invenio 1.4.0
+ 'pytest-invenio>=1.3.4',
... | dependencies: add pytest-celery | py |
diff --git a/xhtml2pdf/xhtml2pdf_reportlab.py b/xhtml2pdf/xhtml2pdf_reportlab.py
index <HASH>..<HASH> 100644
--- a/xhtml2pdf/xhtml2pdf_reportlab.py
+++ b/xhtml2pdf/xhtml2pdf_reportlab.py
@@ -440,7 +440,13 @@ class PmlImageReader(object): # TODO We need a factory here, returning either a
palette = pale... | fix for 8-bit PNGs | py |
diff --git a/test/test_issue283.py b/test/test_issue283.py
index <HASH>..<HASH> 100644
--- a/test/test_issue283.py
+++ b/test/test_issue283.py
@@ -16,6 +16,11 @@ import datetime
import pytest
import random
+try:
+ basestring
+except NameError:
+ basestring = str
+
# Set up a very simple model for the tests
... | Minor modification to the way the type of a variable returned from a test was asserted to account for differences between Python2 and Python3 | py |
diff --git a/source/rafcon/gui/controllers/graphical_editor_gaphas.py b/source/rafcon/gui/controllers/graphical_editor_gaphas.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/controllers/graphical_editor_gaphas.py
+++ b/source/rafcon/gui/controllers/graphical_editor_gaphas.py
@@ -37,6 +37,8 @@ from rafcon.gui.mod... | Fixes issue #<I> and #<I>: Elements freely movable | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -105,9 +105,9 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-import sphinx_rtd_theme
-html_... | Don't include sphinx_rtd_theme | py |
diff --git a/mautrix/util/formatter/parser.py b/mautrix/util/formatter/parser.py
index <HASH>..<HASH> 100644
--- a/mautrix/util/formatter/parser.py
+++ b/mautrix/util/formatter/parser.py
@@ -166,6 +166,9 @@ class MatrixParser(Generic[T]):
async def color_to_fstring(self, node: HTMLNode, ctx: RecursionContext, colo... | Add support for parsing spoilers | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -64,8 +64,9 @@ setup(name=NAME,
packages=['mpop', 'mpop.satellites', 'mpop.instruments', 'mpop.satin',
'mpop.satout', 'mpop.saturn', 'mpop.imageo',
'mpop.imageo.formats'],
- data_f... | Put config files in etc/pytroll. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ setup( name = "feedstail"
, author = "Romain Gauthier"
, author_email = "romain.gauthier@masteri2l.org"
- , version = '0.4.1'
+ , version = '0.5'... | [enh] release <I> | py |
diff --git a/openpnm/core/Base.py b/openpnm/core/Base.py
index <HASH>..<HASH> 100644
--- a/openpnm/core/Base.py
+++ b/openpnm/core/Base.py
@@ -298,10 +298,6 @@ class Base(dict):
name = property(_get_name, _set_name)
- @property
- def _uuid(self):
- return self.settings['uuid']
-
def _get_proj... | removing uuid attr | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -68,7 +68,7 @@ setup(
'planning, preparedness and response activities.'),
install_requires=[
"inasafe-parameters==1.0.1",
- "PyDispathcer==2.0.0",
+ "PyDispatcher==2.0.5",
... | Update setup.py: Pydispatcher <I> is not available anymore and was typo. | py |
diff --git a/cheroot/server.py b/cheroot/server.py
index <HASH>..<HASH> 100644
--- a/cheroot/server.py
+++ b/cheroot/server.py
@@ -298,12 +298,7 @@ class SizeCheckWrapper(object):
self._check_length()
return data
- def next(self):
- """Generate next file chunk."""
- data = self.rfil... | Alias next to __next__ in cheroot.server | py |
diff --git a/eqcorrscan/__init__.py b/eqcorrscan/__init__.py
index <HASH>..<HASH> 100755
--- a/eqcorrscan/__init__.py
+++ b/eqcorrscan/__init__.py
@@ -37,6 +37,13 @@ class EQcorrscanDeprecationWarning(UserWarning):
pass
+if sys.version_info.major < 3:
+ warnings.warn(
+ "EQcorrscan will stop supporti... | Start warning about stopping Py <I> support | py |
diff --git a/asammdf/v4_blocks.py b/asammdf/v4_blocks.py
index <HASH>..<HASH> 100644
--- a/asammdf/v4_blocks.py
+++ b/asammdf/v4_blocks.py
@@ -1005,7 +1005,8 @@ class ChannelConversion(dict):
self.name = get_text_v4(self['name_addr'], stream)
self.unit = get_text_v4(self['unit_addr'], ... | check if channel conversion is ALGEBRAIC to avoid KeyError | py |
diff --git a/gwpy/timeseries/statevector.py b/gwpy/timeseries/statevector.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/statevector.py
+++ b/gwpy/timeseries/statevector.py
@@ -295,7 +295,7 @@ class StateVector(TimeSeries):
sample_rate=sample_rate,
... | StateVector: fixed init for bits property | py |
diff --git a/autograd/core.py b/autograd/core.py
index <HASH>..<HASH> 100644
--- a/autograd/core.py
+++ b/autograd/core.py
@@ -31,11 +31,13 @@ def jacobian(fun, argnum=0):
dummy = lambda: None
def getshape(val):
- return () if np.isscalar(getval(val)) else val.shape
+ assert np.isscalar(val) o... | add assert to Jacobian to check input/output are scalars or arrays and give a useful error message | py |
diff --git a/windpowerlib/wind_turbine_cluster.py b/windpowerlib/wind_turbine_cluster.py
index <HASH>..<HASH> 100644
--- a/windpowerlib/wind_turbine_cluster.py
+++ b/windpowerlib/wind_turbine_cluster.py
@@ -86,7 +86,7 @@ class WindTurbineCluster(object):
"""
self.hub_height = np.exp(
- su... | Get wind farm's installed power from function instead of from parameter | py |
diff --git a/ibis/tests/expr/test_analysis.py b/ibis/tests/expr/test_analysis.py
index <HASH>..<HASH> 100644
--- a/ibis/tests/expr/test_analysis.py
+++ b/ibis/tests/expr/test_analysis.py
@@ -1,3 +1,5 @@
+import time
+
import pytest
import ibis
@@ -308,3 +310,21 @@ def test_agg_selection_does_not_share_roots():
... | test: add failing large compile test | py |
diff --git a/abydos/distance/_minkowski.py b/abydos/distance/_minkowski.py
index <HASH>..<HASH> 100644
--- a/abydos/distance/_minkowski.py
+++ b/abydos/distance/_minkowski.py
@@ -109,7 +109,7 @@ class Minkowski(_TokenDistance):
"""
self.tokenize(src, tar)
- diffs = [abs(_) for _ in self.diffe... | use simpler symmetrid_difference rather than difference+abs | py |
diff --git a/bugwarrior/services/github.py b/bugwarrior/services/github.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/services/github.py
+++ b/bugwarrior/services/github.py
@@ -32,7 +32,7 @@ class GithubIssue(Issue):
'label': 'Github Issue/PR #',
},
}
- UNIQUE_KEY = (URL, )
+ UNIQUE_K... | Use the TYPE as a second unique key for github issues. | py |
diff --git a/msmbuilder/project_templates/analysis/landmarks/featurize.py b/msmbuilder/project_templates/analysis/landmarks/featurize.py
index <HASH>..<HASH> 100644
--- a/msmbuilder/project_templates/analysis/landmarks/featurize.py
+++ b/msmbuilder/project_templates/analysis/landmarks/featurize.py
@@ -28,7 +28,7 @@ met... | Whoops: use at *least* a stride of 1, not at most | py |
diff --git a/wallace/custom.py b/wallace/custom.py
index <HASH>..<HASH> 100644
--- a/wallace/custom.py
+++ b/wallace/custom.py
@@ -275,3 +275,43 @@ def api_notifications():
for v in request.values:
print v
print "---"
+
+ event_type = request.values['Event.1.EventType']
+
+ if event_type == 'As... | Fail nodes associated with abandoned assignments | py |
diff --git a/pysc2/tests/obs_test.py b/pysc2/tests/obs_test.py
index <HASH>..<HASH> 100644
--- a/pysc2/tests/obs_test.py
+++ b/pysc2/tests/obs_test.py
@@ -341,7 +341,7 @@ class ObsTest(absltest.TestCase):
self.assertLess(archon.pos.z, observer.pos.z) # The observer flies.
self.assertGreater(archon.radius, ob... | Rotation seems flaky since they sometimes end up in the same direction they started. I'm not sure how to make it not flaky, so removing for now. PiperOrigin-RevId: <I> | py |
diff --git a/parsl/dataflow/task_status_poller.py b/parsl/dataflow/task_status_poller.py
index <HASH>..<HASH> 100644
--- a/parsl/dataflow/task_status_poller.py
+++ b/parsl/dataflow/task_status_poller.py
@@ -41,9 +41,17 @@ class PollItem(ExecutorStatus):
def poll(self, now: float):
if self._should_poll(n... | Only send block monitoring status on change (#<I>) Sending every block on every iteration is extremely expensive when runs are made with very many blocks (for example, some HTC configurations). This PR reduces the amount of network traffic and the number of rows recorded in the monitoring database block table. | py |
diff --git a/tests/functional/webapi25/test_cityidregistry_reads_fs.py b/tests/functional/webapi25/test_cityidregistry_reads_fs.py
index <HASH>..<HASH> 100644
--- a/tests/functional/webapi25/test_cityidregistry_reads_fs.py
+++ b/tests/functional/webapi25/test_cityidregistry_reads_fs.py
@@ -11,6 +11,9 @@ class TestCityI... | Fixes issue with relative path being prepended to the full (root) path; once in the tests and a second time from the city registry (line #<I>). | py |
diff --git a/ca/django_ca/views.py b/ca/django_ca/views.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/views.py
+++ b/ca/django_ca/views.py
@@ -33,6 +33,7 @@ from django.http import HttpResponse
from django.utils.decorators import classonlymethod
from django.utils.decorators import method_decorator
from django.ut... | reason needs to be unicode in py2 | py |
diff --git a/acceptancetests/substrate.py b/acceptancetests/substrate.py
index <HASH>..<HASH> 100644
--- a/acceptancetests/substrate.py
+++ b/acceptancetests/substrate.py
@@ -622,14 +622,16 @@ class MAASAccount:
def _maas(self, *args):
"""Call maas api with given arguments and parse json result."""
- ... | Do not combine stdout and stderr when parsing maas cli output in tests Due to python related incompatibility issues, the maas cli emits a python warning to stderr. Prioir to this change, the acceptance tests would attempt to parse the combined stdout/-err output as json causing tests to fail. | py |
diff --git a/txaws/s3/model.py b/txaws/s3/model.py
index <HASH>..<HASH> 100644
--- a/txaws/s3/model.py
+++ b/txaws/s3/model.py
@@ -34,6 +34,9 @@ class BucketItem(object):
class BucketListing(object):
+ """
+ A mapping for the data in a bucket listing.
+ """
def __init__(self, name, prefix, marker, ma... | add lifecycle configuration classes * LifecycleConfiguration * LifecycleConfigurationRule Additionally, add a docstring for BucketListing. | py |
diff --git a/pyAudioAnalysis/audioTrainTest.py b/pyAudioAnalysis/audioTrainTest.py
index <HASH>..<HASH> 100644
--- a/pyAudioAnalysis/audioTrainTest.py
+++ b/pyAudioAnalysis/audioTrainTest.py
@@ -312,9 +312,14 @@ def extract_features_and_train(paths, mid_window, mid_step, short_window,
print("Selected params: {0:.5... | SMOTE added in training (if used) | py |
diff --git a/pandas/core/aggregation.py b/pandas/core/aggregation.py
index <HASH>..<HASH> 100644
--- a/pandas/core/aggregation.py
+++ b/pandas/core/aggregation.py
@@ -28,10 +28,8 @@ from pandas.core.series import FrameOrSeriesUnion, Series
def reconstruct_func(
- func: Optional[AggFuncType], **kwargs,
-) -> Tup... | remove unnecessary trailing commas (#<I>) | py |
diff --git a/gimmemotifs/comparison.py b/gimmemotifs/comparison.py
index <HASH>..<HASH> 100644
--- a/gimmemotifs/comparison.py
+++ b/gimmemotifs/comparison.py
@@ -13,6 +13,7 @@ import sys
import os
from time import sleep
import random
+import logging
# External imports
from scipy.stats import norm,entropy,chi2_c... | trying to figure out cause of travis error | py |
diff --git a/templar/__main__.py b/templar/__main__.py
index <HASH>..<HASH> 100644
--- a/templar/__main__.py
+++ b/templar/__main__.py
@@ -19,7 +19,9 @@ def configure_path():
root = cwd
paths.append(root)
sys.path.insert(0, root)
- for path in paths:
+ for path in reversed(paths):
+ if not o... | Skip directories in path configuration if config.py not present | py |
diff --git a/mautrix/util/config.py b/mautrix/util/config.py
index <HASH>..<HASH> 100644
--- a/mautrix/util/config.py
+++ b/mautrix/util/config.py
@@ -115,7 +115,7 @@ class BaseConfig(ABC, RecursiveDict[CommentedMap]):
def update(self) -> None:
base = self.load_base()
if not base:
- re... | Throw error if trying to update config with no base | py |
diff --git a/scripts/configure_test_slurm.py b/scripts/configure_test_slurm.py
index <HASH>..<HASH> 100755
--- a/scripts/configure_test_slurm.py
+++ b/scripts/configure_test_slurm.py
@@ -1,6 +1,7 @@
from socket import gethostname
from string import Template
from subprocess import call
+from getpass import getuser
... | Touch up configure_test_slurm.py for non-my-laptop setups. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -40,8 +40,8 @@ setup_requires = [
install_requires = [
"psycopg2-binary>=2.6.1",
"SQLAlchemy>=1.2.7",
- 'sqlalchemy-utils>=0.36.3 ; python_version>="3"',
- 'sqlalchemy-utils==0.36.3 ; python_version=="2.7"',
+... | setup: decrease sqlalchemy-utils min version Due to invenio-db pinning to SQLAlchemy-Utils<<I>,>=<I> and reana-server pinning to SQLAlchemy-Utils[encrypted]>=<I>,<<I> to satisfy invenio's requirements. | py |
diff --git a/volatildap/control.py b/volatildap/control.py
index <HASH>..<HASH> 100644
--- a/volatildap/control.py
+++ b/volatildap/control.py
@@ -25,6 +25,7 @@ class ControlServer(http.server.ThreadingHTTPServer):
def start(self):
if self._thread is not None:
+ # Already started
... | Properly stop the control server. Including cleaning up the resources. | py |
diff --git a/packages/vaex-jupyter/vaex/jupyter/_version.py b/packages/vaex-jupyter/vaex/jupyter/_version.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-jupyter/vaex/jupyter/_version.py
+++ b/packages/vaex-jupyter/vaex/jupyter/_version.py
@@ -1,2 +1,2 @@
-__version_tuple__ = (0, 2, 2)
-__version__ = '0.2.2'
+__vers... | Release <I> of vaex-jupyter | py |
diff --git a/scout/server/blueprints/login/views.py b/scout/server/blueprints/login/views.py
index <HASH>..<HASH> 100644
--- a/scout/server/blueprints/login/views.py
+++ b/scout/server/blueprints/login/views.py
@@ -105,7 +105,7 @@ def authorized():
flash("Access denied: reason={} error={}"
.form... | redirect to loging instead of triggering error <I> | py |
diff --git a/jenkins/bootstrap.py b/jenkins/bootstrap.py
index <HASH>..<HASH> 100755
--- a/jenkins/bootstrap.py
+++ b/jenkins/bootstrap.py
@@ -684,10 +684,6 @@ def setup_magic_environment(job):
'JENKINS_AWS_SSH_PUBLIC_KEY_FILE',
os.path.join(home, '.ssh/kube_aws_rsa.pub'),
)
- os.environ.setde... | setup env before setup_root so we have the ssh key | py |
diff --git a/holoviews/core/ndmapping.py b/holoviews/core/ndmapping.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/ndmapping.py
+++ b/holoviews/core/ndmapping.py
@@ -595,6 +595,16 @@ class UniformNdMapping(NdMapping):
self._label_check, self._label = None, None
super(UniformNdMapping, self).__ini... | Implemented recursive relabel method on UniformNdMapping | py |
diff --git a/salt/pillar/__init__.py b/salt/pillar/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/__init__.py
+++ b/salt/pillar/__init__.py
@@ -664,6 +664,8 @@ class Pillar(object):
log.error(msg)
errors.append(msg)
else:
+ ... | fix pillar includes from merging over the current sls defines i<URL> | py |
diff --git a/ginga/gtk3w/Widgets.py b/ginga/gtk3w/Widgets.py
index <HASH>..<HASH> 100644
--- a/ginga/gtk3w/Widgets.py
+++ b/ginga/gtk3w/Widgets.py
@@ -22,7 +22,7 @@ has_webkit = False
try:
# this is necessary to prevent a warning message on import
import gi
- gi.require_version('WebKit', '3.0')
+ gi.re... | Correct the bug of require WebKit name for GTK3 backend The package WebKit is named as WebKit2 in Ubuntu distribution. | py |
diff --git a/tests/python/unittest/test_gluon.py b/tests/python/unittest/test_gluon.py
index <HASH>..<HASH> 100644
--- a/tests/python/unittest/test_gluon.py
+++ b/tests/python/unittest/test_gluon.py
@@ -1932,6 +1932,7 @@ def test_reshape_batchnorm():
@with_seed()
+@unittest.skip('Test failing, tracked by https://g... | Disable test batchnorm slice (#<I>) | py |
diff --git a/visidata/sheets.py b/visidata/sheets.py
index <HASH>..<HASH> 100644
--- a/visidata/sheets.py
+++ b/visidata/sheets.py
@@ -331,7 +331,7 @@ class TableSheet(BaseSheet):
nrows += h
i += 1
- self._topRowIndex = newidx-i+2
+ self._topRowIndex = newidx-i+2 if nrows == se... | [layout] do not calc topRowIndex offset with single-line rows Offset required for paging with multiline-rows. Closes #<I> | py |
diff --git a/openquake/calculators/ebrisk.py b/openquake/calculators/ebrisk.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/ebrisk.py
+++ b/openquake/calculators/ebrisk.py
@@ -39,8 +39,7 @@ def start_ebrisk(rupgetter, srcfilter, param, monitor):
"""
Launcher for ebrisk tasks
"""
- with moni... | Less monitoring [skip CI] | py |
diff --git a/buildbot/steps/transfer.py b/buildbot/steps/transfer.py
index <HASH>..<HASH> 100644
--- a/buildbot/steps/transfer.py
+++ b/buildbot/steps/transfer.py
@@ -15,6 +15,11 @@ class _FileWriter(pb.Referenceable):
"""
def __init__(self, destfile, maxsize, mode):
+ # Create missing directories.
+... | get FileUpload to create directories recursively if the path leading up to the file does not exist on the master | py |
diff --git a/pyana/examples/gp_stack.py b/pyana/examples/gp_stack.py
index <HASH>..<HASH> 100644
--- a/pyana/examples/gp_stack.py
+++ b/pyana/examples/gp_stack.py
@@ -33,6 +33,7 @@ def gp_stack(version, energies, inclMed, inclFits):
:param version: plot version / input subdir name
:type version: str
"""
+ inc... | stack: exclude QM<I> from inclMed | 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
@@ -156,6 +156,18 @@ def build_rule(table=None, chain=None, command=None, position='', full=None, fam
rule += '--sport {0} '.format(kwargs['sport'])
... | Adding a check to ensure -m multiport is included if dports & sports is used. | py |
diff --git a/billy/site/browse/views.py b/billy/site/browse/views.py
index <HASH>..<HASH> 100644
--- a/billy/site/browse/views.py
+++ b/billy/site/browse/views.py
@@ -525,7 +525,7 @@ def random_bill(request, abbr):
def bill(request, abbr, session, id):
meta = metadata(abbr)
- level = metadata['level']
+ l... | fixing up a small issue with metadata | py |
diff --git a/tests/fsdb_test_insertion.py b/tests/fsdb_test_insertion.py
index <HASH>..<HASH> 100644
--- a/tests/fsdb_test_insertion.py
+++ b/tests/fsdb_test_insertion.py
@@ -72,7 +72,7 @@ class FsdbTestInsertion(FsdbTest):
def test_right_permission(self):
self.fsdb = Fsdb(os.path.join(self.fsdb_tmp_pat... | permission test was using default python 'mode' | py |
diff --git a/ci/push/push_api.py b/ci/push/push_api.py
index <HASH>..<HASH> 100644
--- a/ci/push/push_api.py
+++ b/ci/push/push_api.py
@@ -23,6 +23,8 @@ def batch_list(data, batch_size):
if len(batch_data) == batch_size:
yield batch_data
batch_data = []
+ if batch_data:
+ yi... | Yield the last batch even if less than total batch size | py |
diff --git a/pyblish_maya/lib.py b/pyblish_maya/lib.py
index <HASH>..<HASH> 100644
--- a/pyblish_maya/lib.py
+++ b/pyblish_maya/lib.py
@@ -99,10 +99,12 @@ def _add_to_filemenu():
cmds.menuItem('pyblishScene',
insertAfter='pyblishOpeningDivider',
label='Publish',
+ ... | Pyblish menuitem appearing in other menus fix Had "Pyblish" menuitem appear in a custom menu, so explicitly saying which file menu to appear in. | py |
diff --git a/alot/db.py b/alot/db.py
index <HASH>..<HASH> 100644
--- a/alot/db.py
+++ b/alot/db.py
@@ -507,7 +507,7 @@ class Thread(object):
own_addrs = settings.get_addresses()
authorslist = []
for aname, aaddress in self.get_authors():
- if replace_own and aad... | Unnecessary test. | py |
diff --git a/modopt/opt/proximity.py b/modopt/opt/proximity.py
index <HASH>..<HASH> 100644
--- a/modopt/opt/proximity.py
+++ b/modopt/opt/proximity.py
@@ -522,8 +522,7 @@ class OrderedWeightedL1Norm(ProximityParent):
def _cost_method(self, *args, **kwargs):
"""Calculate OWL component of the cost
- ... | Changing documenetation to be more general | py |
diff --git a/setuptools_rust/tomlgen.py b/setuptools_rust/tomlgen.py
index <HASH>..<HASH> 100644
--- a/setuptools_rust/tomlgen.py
+++ b/setuptools_rust/tomlgen.py
@@ -128,6 +128,11 @@ class tomlgen_rust(setuptools.Command):
# The directory where the extension's manifest is located
tomldir = os.path.di... | Make sure `tomlgen_rust` works for manually defined extensions | py |
diff --git a/python/ray/tune/utils/placement_groups.py b/python/ray/tune/utils/placement_groups.py
index <HASH>..<HASH> 100644
--- a/python/ray/tune/utils/placement_groups.py
+++ b/python/ray/tune/utils/placement_groups.py
@@ -128,16 +128,18 @@ class PlacementGroupFactory:
**kwargs):
assert l... | [tune] Move _head_bundle_is_empty after conversion (#<I>) | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -51,7 +51,7 @@ copyright = u'2014, hashnote.net, Alisue'
# built documents.
#
# The short X.Y version.
-version = notify.version
+version = notify.__version__
# The full version, including alpha/beta/rc tag... | Fix conf.py version bug. | py |
diff --git a/recordlinkage/algorithms/string.py b/recordlinkage/algorithms/string.py
index <HASH>..<HASH> 100644
--- a/recordlinkage/algorithms/string.py
+++ b/recordlinkage/algorithms/string.py
@@ -99,11 +99,15 @@ def qgram_similarity(s1, s2, include_wb=True, ngram=(2, 2)):
# include word boundaries or not
a... | Minor reordening of code | py |
diff --git a/unitypack/utils.py b/unitypack/utils.py
index <HASH>..<HASH> 100644
--- a/unitypack/utils.py
+++ b/unitypack/utils.py
@@ -43,7 +43,7 @@ class BinaryReader:
return b"".join(ret)
def read_boolean(self):
- return struct.unpack(self.endian + "b", self.read(1))[0]
+ return bool(struct.unpack(self.endia... | Cast result of read_boolean to bool | py |
diff --git a/controller/api/models.py b/controller/api/models.py
index <HASH>..<HASH> 100644
--- a/controller/api/models.py
+++ b/controller/api/models.py
@@ -381,7 +381,7 @@ class App(UuidAuditedModel):
# HACK (bacongobbler): we need to wait until publisher has a chance to publish each
# service to e... | ref(controller): iterate over backoff interval array Instead of hardcoding 4, we can update the backoff interval as needed and the loop will be updated as expected. | py |
diff --git a/dipper/sources/Coriell.py b/dipper/sources/Coriell.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/Coriell.py
+++ b/dipper/sources/Coriell.py
@@ -144,11 +144,12 @@ class Coriell(Source):
logger.info("File does not exist locally; downloading...")
else:
... | coriell: place ftp file in raw dir | py |
diff --git a/src/feat/test/integration/test_pushing_amqp.py b/src/feat/test/integration/test_pushing_amqp.py
index <HASH>..<HASH> 100644
--- a/src/feat/test/integration/test_pushing_amqp.py
+++ b/src/feat/test/integration/test_pushing_amqp.py
@@ -9,6 +9,8 @@ from feat.common.text_helper import format_block
from feat.t... | Import SkipTest before using it in the test | py |
diff --git a/ginga/BaseImage.py b/ginga/BaseImage.py
index <HASH>..<HASH> 100644
--- a/ginga/BaseImage.py
+++ b/ginga/BaseImage.py
@@ -456,7 +456,13 @@ class BaseImage(ViewerObjectBase):
def get_scaled_cutout2(self, p1, p2, scales,
method='basic', logger=None):
- # NOTE: method... | Fix for alternate interpolation methods - fixes an issue where RGB images requesting interpolation methods other than nearest neighbor were not getting it | py |
diff --git a/salt/states/x509.py b/salt/states/x509.py
index <HASH>..<HASH> 100644
--- a/salt/states/x509.py
+++ b/salt/states/x509.py
@@ -63,9 +63,8 @@ the mine where it can be easily retrieved by other minions.
/etc/pki/issued_certs:
file.directory
- /etc/pki/ca.crt:
+ /etc/pki/ca.key:
x509... | Fix typo in the states.x<I> docs | py |
diff --git a/scss/__init__.py b/scss/__init__.py
index <HASH>..<HASH> 100644
--- a/scss/__init__.py
+++ b/scss/__init__.py
@@ -686,11 +686,11 @@ class Scss(object):
return ','.join(sorted(selectors))
def apply_vars(self, cont, context, options=None, rule=None, _dequote=False):
- if '$' in cont:
+... | Fixed bug in apply_vars() when it already received objects instead of strings | py |
diff --git a/molo/profiles/wagtail_hooks.py b/molo/profiles/wagtail_hooks.py
index <HASH>..<HASH> 100644
--- a/molo/profiles/wagtail_hooks.py
+++ b/molo/profiles/wagtail_hooks.py
@@ -1,5 +1,6 @@
-from molo.profiles.admin import FrontendUsersModelAdmin
+from molo.profiles.admin import FrontendUsersModelAdmin, SecurityQu... | Add SecurityQuestionModelAdmin to wagtail_hooks | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,6 +6,7 @@ from setuptools import setup, find_packages
INSTALL_REQUIRES = [
'flask',
+ 'blinker',
'pymongo',
'python-dateutil',
] | Add blinker as a dep | py |
diff --git a/main.py b/main.py
index <HASH>..<HASH> 100755
--- a/main.py
+++ b/main.py
@@ -247,6 +247,8 @@ class PlayerID:
return str(self).__contains__(other)
def __str__(self):
+ if self.data not in self.game.players:
+ sys.stderr.write("Warning: Could not match %r to an entity id.\n" % (self.data))
retu... | Warn when the Player's name can't be match to an entity id | py |
diff --git a/saltcloud/cloud.py b/saltcloud/cloud.py
index <HASH>..<HASH> 100644
--- a/saltcloud/cloud.py
+++ b/saltcloud/cloud.py
@@ -43,6 +43,7 @@ class Cloud(object):
'''
if 'provider' in vm_:
return vm_['provider']
+
if 'provider' in self.opts:
if '{0}.create'.fo... | 'map' does not default to an empty string anymore, handle that. | py |
diff --git a/pyaccumulo/__init__.py b/pyaccumulo/__init__.py
index <HASH>..<HASH> 100644
--- a/pyaccumulo/__init__.py
+++ b/pyaccumulo/__init__.py
@@ -26,6 +26,8 @@ import pyaccumulo.proxy.ttypes
from collections import namedtuple
from pyaccumulo.iterators import BaseIterator
+from array import array
+
Cell = name... | "Added initial prefix on rowId" | py |
diff --git a/chess/__init__.py b/chess/__init__.py
index <HASH>..<HASH> 100644
--- a/chess/__init__.py
+++ b/chess/__init__.py
@@ -3210,13 +3210,12 @@ class Board(BaseBoard):
checker = msb(checkers)
if BB_SQUARES[checker] == checkers:
# Capture or block a single checker.
- targ... | Slightly optimize _generate_evasions | py |
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/utils.py
+++ b/pylint/checkers/utils.py
@@ -875,7 +875,7 @@ def _except_handlers_ignores_exception(
def get_exception_handlers(
node: astroid.node_classes.NodeNG, exception=Exception
-) -> List[ast... | Fix linting and typing errors | py |
diff --git a/chatterbot/__init__.py b/chatterbot/__init__.py
index <HASH>..<HASH> 100644
--- a/chatterbot/__init__.py
+++ b/chatterbot/__init__.py
@@ -4,7 +4,7 @@ import sys
if 'install' not in sys.argv and 'egg_info' not in sys.argv:
from .chatterbot import ChatBot
-__version__ = '0.4.11'
+__version__ = '0.4.1... | Update package version to <I> | py |
diff --git a/tools/buildgen/generate_projects.py b/tools/buildgen/generate_projects.py
index <HASH>..<HASH> 100755
--- a/tools/buildgen/generate_projects.py
+++ b/tools/buildgen/generate_projects.py
@@ -85,7 +85,7 @@ for template in reversed(sorted(templates)):
test[out] = tf[1]
os.close(tf[0])
cmd... | The input files also need to follow the base argument... | py |
diff --git a/domaintools/api.py b/domaintools/api.py
index <HASH>..<HASH> 100644
--- a/domaintools/api.py
+++ b/domaintools/api.py
@@ -51,8 +51,11 @@ class API(object):
if not https:
raise Exception("The DomainTools API endpoints no longer support http traffic. Please make sure https=True.")
... | Fix messaging around proxy URLs and add an exception if not in the right form. | py |
diff --git a/onecodex/lib/upload.py b/onecodex/lib/upload.py
index <HASH>..<HASH> 100644
--- a/onecodex/lib/upload.py
+++ b/onecodex/lib/upload.py
@@ -231,7 +231,13 @@ def upload_sequence(
def cancel_atexit():
bar.canceled = True
bar.update(1)
- log.info("Canceled upload fo... | Display sample filenames if an upload is canceled (#<I>) The API and CLI now log a sample's filename(s) if an upload is canceled. For example, the following is logged for single and paired-end samples, respectively: ``` Canceled upload for sample1.fasta as sample <I>d7d0a<I>ba Canceled upload for sample_R1.fas... | py |
diff --git a/wooey/backend/utils.py b/wooey/backend/utils.py
index <HASH>..<HASH> 100644
--- a/wooey/backend/utils.py
+++ b/wooey/backend/utils.py
@@ -248,7 +248,7 @@ def add_wooey_script(script_version=None, script_path=None, group=None, script_n
checksum=checksum,
script__script_name=script_... | Add in a check if the existing version is the script currently being added | py |
diff --git a/telemetry/telemetry/core/chrome/cros_browser_finder.py b/telemetry/telemetry/core/chrome/cros_browser_finder.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/chrome/cros_browser_finder.py
+++ b/telemetry/telemetry/core/chrome/cros_browser_finder.py
@@ -5,6 +5,7 @@
import logging
import sys... | /etc/lsb-release doesn't exist on some non-Ubuntu variants of linux. BUG=<I> TEST=manual NOTRY=True Review URL: <URL> | py |
diff --git a/inginious/frontend/user_manager.py b/inginious/frontend/user_manager.py
index <HASH>..<HASH> 100644
--- a/inginious/frontend/user_manager.py
+++ b/inginious/frontend/user_manager.py
@@ -279,7 +279,7 @@ class UserManager:
:param email: User email
"""
- self._database.users.update_... | Login should be made by email matching As empty usernames can now exist | py |
diff --git a/rethinkengine/document.py b/rethinkengine/document.py
index <HASH>..<HASH> 100644
--- a/rethinkengine/document.py
+++ b/rethinkengine/document.py
@@ -153,7 +153,7 @@ class Document(object):
table = r.table(self.Meta.table_name)
if self.pk:
# TODO: implement atomic updates ins... | Changed non_atomic flag to true, because GeoPointField need an expression (r.point(lat, lng)) to perform update. | py |
diff --git a/gruvi/http.py b/gruvi/http.py
index <HASH>..<HASH> 100644
--- a/gruvi/http.py
+++ b/gruvi/http.py
@@ -911,6 +911,8 @@ class HttpProtocol(MessageProtocol):
self._message.body.feed_error(self._error)
self._queue.put_nowait(self._error)
super(HttpProtocol, self).connecti... | http: communicate connection_lost() to waiters Fixes #<I> | py |
diff --git a/puz.py b/puz.py
index <HASH>..<HASH> 100644
--- a/puz.py
+++ b/puz.py
@@ -60,7 +60,7 @@ def load(data):
return puz
-class PuzzleFormatError:
+class PuzzleFormatError(Exception):
"""Indicates a format error in the .puz file
May be thrown due to invalid headers, invalid checksum validation... | Fixed PuzzleFormatError to inherit from Exception | py |
diff --git a/tests/test_NistRandomnessBeacon.py b/tests/test_NistRandomnessBeacon.py
index <HASH>..<HASH> 100644
--- a/tests/test_NistRandomnessBeacon.py
+++ b/tests/test_NistRandomnessBeacon.py
@@ -164,16 +164,15 @@ class TestNistRandomnessBeacon(TestCase):
)
def test_chain_check_last(self):
- #... | For now, deal with race by None'ing the call | py |
diff --git a/pyemma/msm/estimators/lagged_model_validators.py b/pyemma/msm/estimators/lagged_model_validators.py
index <HASH>..<HASH> 100644
--- a/pyemma/msm/estimators/lagged_model_validators.py
+++ b/pyemma/msm/estimators/lagged_model_validators.py
@@ -77,7 +77,9 @@ class LaggedModelValidator(Estimator, ProgressRepor... | [CKTest] copy test model to avoid side effects. Somehow the propagation of the test models transition matrix induces side effects on the model. | py |
diff --git a/src/toil/fileStore.py b/src/toil/fileStore.py
index <HASH>..<HASH> 100644
--- a/src/toil/fileStore.py
+++ b/src/toil/fileStore.py
@@ -203,7 +203,10 @@ class FileStore(with_metaclass(ABCMeta, object)):
@abstractmethod
def readGlobalFile(self, fileStoreID, userPath=None, cache=True, mutable=None):
... | Define fileStore semantics (resolves #<I>, #<I>) | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -291,13 +291,7 @@ class State(object):
# replace
if arg.keys()[0] == 'require' or 'watch':
... | Extend appends a dict to the list | 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
@@ -121,7 +121,9 @@ class TestUtils:
({'hg': 'https://package.com/package', 'ref': 'v1.2.3'}, True),
('*', False),
({'some_value': 5, 'other_value': object()}... | Add vcs tests to account for changes in #<I> | py |
diff --git a/bootstrap_pagination/templatetags/bootstrap_pagination.py b/bootstrap_pagination/templatetags/bootstrap_pagination.py
index <HASH>..<HASH> 100755
--- a/bootstrap_pagination/templatetags/bootstrap_pagination.py
+++ b/bootstrap_pagination/templatetags/bootstrap_pagination.py
@@ -196,7 +196,9 @@ class Bootstr... | Don't generate index_range when it's not going to be used Closes #<I> | py |
diff --git a/secp256k1.py b/secp256k1.py
index <HASH>..<HASH> 100644
--- a/secp256k1.py
+++ b/secp256k1.py
@@ -349,9 +349,8 @@ class PrivateKey(Base, ECDSA, Schnorr):
res = lib.secp256k1_ec_privkey_tweak_add(self.ctx, newpriv, scalar)
if not res:
raise Exception("Failed to add private key... | corrected indent, removed unneeded comment | py |
diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index <HASH>..<HASH> 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -1117,7 +1117,7 @@ class DataFrameGroupBy(GroupBy):
obj = self._obj_with_exclusions
if self._column is not None:
- series_obj =... | BUG: clean up Series wrapper that is not needed, per #<I> comments | py |
diff --git a/tests/test_meter_structure.py b/tests/test_meter_structure.py
index <HASH>..<HASH> 100644
--- a/tests/test_meter_structure.py
+++ b/tests/test_meter_structure.py
@@ -155,5 +155,5 @@ def test_sane_missing_input_error_messages():
assert "expected argument 'value' for meter 'DummyMeter';" \
"... | toward python 3 compatibility | py |
diff --git a/spyder/utils/tests/test_programs.py b/spyder/utils/tests/test_programs.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/tests/test_programs.py
+++ b/spyder/utils/tests/test_programs.py
@@ -18,7 +18,7 @@ from spyder.utils.programs import (run_python_script_in_terminal,
if os.name == 'nt':
- python_... | Testing: Fix error when running tests locally on Windows | py |
diff --git a/spyder/plugins/editor/widgets/tests/test_goto.py b/spyder/plugins/editor/widgets/tests/test_goto.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/widgets/tests/test_goto.py
+++ b/spyder/plugins/editor/widgets/tests/test_goto.py
@@ -135,3 +135,7 @@ def test_goto_uri_message_box(qtbot, editorbot, m... | Restore variables on codeeditor after test to check other failing test | 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
@@ -186,7 +186,7 @@ async def test_put_archive(docker, testing_images):
path='/tmp',
data=file_like_object.getvalue())
await container.sta... | extend tests timeout to avoid errors (#<I>) | py |
diff --git a/src/ufoLib2/objects/glyph.py b/src/ufoLib2/objects/glyph.py
index <HASH>..<HASH> 100644
--- a/src/ufoLib2/objects/glyph.py
+++ b/src/ufoLib2/objects/glyph.py
@@ -100,7 +100,9 @@ class Glyph(object):
@image.setter
def image(self, image):
- if isinstance(image, Image):
+ if image is... | Glyph.image = None clears image | py |
diff --git a/ncclient/operations/third_party/juniper/rpc.py b/ncclient/operations/third_party/juniper/rpc.py
index <HASH>..<HASH> 100644
--- a/ncclient/operations/third_party/juniper/rpc.py
+++ b/ncclient/operations/third_party/juniper/rpc.py
@@ -100,7 +100,7 @@ class Commit(RPC):
# http://ncclient.rea... | python2 compatibility fix for the confirmed commit fix for Junos | py |
diff --git a/flock/models.py b/flock/models.py
index <HASH>..<HASH> 100644
--- a/flock/models.py
+++ b/flock/models.py
@@ -78,10 +78,14 @@ class Project(models.Model):
for r in donation_count
}
+ rewards = self.rewards.all()
+ for reward in rewards:
+ reward.used_times =... | Add used_times to rewards returned by available_rewards | py |
diff --git a/zarr/hierarchy.py b/zarr/hierarchy.py
index <HASH>..<HASH> 100644
--- a/zarr/hierarchy.py
+++ b/zarr/hierarchy.py
@@ -524,7 +524,7 @@ class Group(MutableMapping):
return self.visitvalues(lambda o: func(o.name[base_len:].lstrip("/"), o))
def tree(self):
- """Provide a ``print`-able di... | Fix inline code quote in tree docstring | py |
diff --git a/ebooklib/epub.py b/ebooklib/epub.py
index <HASH>..<HASH> 100644
--- a/ebooklib/epub.py
+++ b/ebooklib/epub.py
@@ -1260,6 +1260,7 @@ class EpubReader(object):
def read_file(self, name):
# Raises KeyError
+ name = os.path.normpath(name)
return self.zf.read(name)
def _lo... | Fix relative path resolving for manifest containing ".." Fixes #<I> | py |
diff --git a/py/h2o.py b/py/h2o.py
index <HASH>..<HASH> 100644
--- a/py/h2o.py
+++ b/py/h2o.py
@@ -348,7 +348,7 @@ def decide_if_localhost():
# node_count is per host if hosts is specified.
def build_cloud(node_count=2, base_port=54321, hosts=None,
- timeoutSecs=30, retryDelaySecs=0.5, cleanup=True, rand_sh... | change default retry of cloud status to 1 sec in build_cloud | py |
diff --git a/ggplot/components/smoothers.py b/ggplot/components/smoothers.py
index <HASH>..<HASH> 100644
--- a/ggplot/components/smoothers.py
+++ b/ggplot/components/smoothers.py
@@ -44,7 +44,6 @@ def lowess(x, y, span=SPAN):
for more see
statsmodels.nonparametric.smoothers_lowess.lowess
"""
- pri... | removed annoying print statement. sorry about it | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.