diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/spyder/widgets/mixins.py b/spyder/widgets/mixins.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/mixins.py
+++ b/spyder/widgets/mixins.py
@@ -357,7 +357,8 @@ class BaseEditMixin(object):
cursor.select(QTextCursor.WordUnderCursor)
text = to_text_string(cursor.selectedText())
- ... | Improve regex to highlight words with unicode characteres. | py |
diff --git a/flask_shell_ipython.py b/flask_shell_ipython.py
index <HASH>..<HASH> 100644
--- a/flask_shell_ipython.py
+++ b/flask_shell_ipython.py
@@ -1,8 +1,6 @@
-import os
import sys
import click
-
from flask.cli import with_appcontext
@@ -31,13 +29,7 @@ def shell():
ctx = {}
- # Support the regu... | changed embedded ipython to full app because of InteractiveShellApp options is not working with embedded; app context seems to be active anyway | py |
diff --git a/pabot/pabot.py b/pabot/pabot.py
index <HASH>..<HASH> 100755
--- a/pabot/pabot.py
+++ b/pabot/pabot.py
@@ -488,7 +488,7 @@ def _parallel_execute(datasources, options, outs_dir, pabot_args, suite_names):
((datasources, outs_dir, options, suite,
pabo... | fix default chunksize problem for better parallelization | py |
diff --git a/editor.py b/editor.py
index <HASH>..<HASH> 100644
--- a/editor.py
+++ b/editor.py
@@ -29,8 +29,10 @@ class Editor(Widget):
def adjust_cursor_eol(self):
# Returns True if entire window needs redraw
- val = self.col + self.margin
- val = min(val, len(self.content[self.cur_line])... | editor: Make adjust_cursor_eol() behave in case of empty widget content. This may happen e.g. when subclassing as list widget, where 0 items are pretty legitimate. | py |
diff --git a/crispy/gui/quanty.py b/crispy/gui/quanty.py
index <HASH>..<HASH> 100644
--- a/crispy/gui/quanty.py
+++ b/crispy/gui/quanty.py
@@ -607,6 +607,11 @@ class QuantyDockWidget(QDockWidget):
self.getStatusBar().showMessage(message, self.timeout)
self.temperatureLineEdit.setValue(self.cal... | Limit the number of states when the temperature is zero | py |
diff --git a/src/streamlink/plugins/rtve.py b/src/streamlink/plugins/rtve.py
index <HASH>..<HASH> 100644
--- a/src/streamlink/plugins/rtve.py
+++ b/src/streamlink/plugins/rtve.py
@@ -2,6 +2,8 @@ import base64
import re
from Crypto.Cipher import Blowfish
+
+from streamlink import PluginError
from streamlink.compat ... | plugins.rtve: stop IOError bubbling up on <I> errors On some platforms catching OSError is not sufficient. | py |
diff --git a/py3status/__init__.py b/py3status/__init__.py
index <HASH>..<HASH> 100755
--- a/py3status/__init__.py
+++ b/py3status/__init__.py
@@ -96,6 +96,9 @@ class IOPoller:
Try to read our I/O for 'timeout' seconds, return None otherwise.
This makes calling and reading I/O non blocking !
... | Fix poll() calls to convert from seconds Fixes bug where click events are never executes. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,10 +23,12 @@ from setuptools import setup
from compiler.api import compiler as api_compiler
from compiler.error import compiler as error_compiler
+from compiler.docs import compiler as docs_compiler
if len(argv) > 1... | Generate docs source on setup | py |
diff --git a/holoviews/element/graphs.py b/holoviews/element/graphs.py
index <HASH>..<HASH> 100644
--- a/holoviews/element/graphs.py
+++ b/holoviews/element/graphs.py
@@ -320,13 +320,18 @@ class Graph(Dataset, Element2D):
to the layout function.
"""
positions = layout_function(G, **kwargs)
+ ... | Improved support for adding hover info via Graph.from_networkx method (#<I>) | py |
diff --git a/lettuce/core.py b/lettuce/core.py
index <HASH>..<HASH> 100644
--- a/lettuce/core.py
+++ b/lettuce/core.py
@@ -157,8 +157,10 @@ class StepDescription(object):
self.file = filename
if self.file:
self.file = fs.relpath(self.file)
+ else:
+ self.file = "unknown ... | avoiding `None` filename and line number in step descriptions. It's an attempt to close #<I>, which seems to happen in windows | py |
diff --git a/processors/generic_processor.py b/processors/generic_processor.py
index <HASH>..<HASH> 100644
--- a/processors/generic_processor.py
+++ b/processors/generic_processor.py
@@ -599,7 +599,7 @@ class GenericCommitHandler(processor.CommitHandler):
if (fileid in self.inventory and
isinstanc... | fix osutils call in delete_recursive | py |
diff --git a/tests/test_xopen.py b/tests/test_xopen.py
index <HASH>..<HASH> 100644
--- a/tests/test_xopen.py
+++ b/tests/test_xopen.py
@@ -542,6 +542,14 @@ def test_xopen_falls_back_to_gzip_open(lacking_pigz_permissions):
assert f.readline() == CONTENT_LINES[0].encode("utf-8")
+def test_xopen_falls_back_to... | Add test for lacking both isal and pigz | py |
diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index <HASH>..<HASH> 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -926,7 +926,7 @@ class NDFrame(PandasObject, SelectionMixin):
a 1
Name: 0, dtype: int64
- Squeezing all axes wil project directly into a sca... | DOC/CLN: wil -> will (#<I>) | py |
diff --git a/HMpTy/__version__.py b/HMpTy/__version__.py
index <HASH>..<HASH> 100644
--- a/HMpTy/__version__.py
+++ b/HMpTy/__version__.py
@@ -1 +1 @@
-__version__ = '1.5.1'
+__version__ = '1.5.2' | attempting to fix platform clashes | py |
diff --git a/pymatgen/io/vasp/tests/test_sets.py b/pymatgen/io/vasp/tests/test_sets.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/vasp/tests/test_sets.py
+++ b/pymatgen/io/vasp/tests/test_sets.py
@@ -428,6 +428,18 @@ class MPNonSCFSetTest(PymatgenTest):
self.assertTrue(vis.incar["LOPTICS"])
self.as... | tests for kpoint override in NSCF calculations | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,6 +9,6 @@ setuptools.setup(
url='https://github.com/oconnor663/duct.py',
author="Jack O'Connor",
author_email='oconnor663@gmail.com',
- version='0.6.3',
+ version='0.6.4',
py_modules=['duct'],
) | version <I> Changes since <I>: - Fix a race condition where the kill() method would raise a ChildProcessError if the child exited before kill() was called. This was caused by a change in the behavior of Popen.send_signal() in Python <I>. See commit 5dfae<I>cc<I>c5e<I>da0c<I>d9efa8ff<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ readme.close()
setup(
name='django-bootstrap-pagination',
- version='0.1.8',
+ version='0.1.9',
keywords="django bootstrap pagination templatetag",
author=u'Jason McClellan',
author_em... | Incrementing version to <I> | py |
diff --git a/splinter/driver/__init__.py b/splinter/driver/__init__.py
index <HASH>..<HASH> 100644
--- a/splinter/driver/__init__.py
+++ b/splinter/driver/__init__.py
@@ -5,7 +5,7 @@
# license that can be found in the LICENSE file.
"""
-This module contains the basic API for splinter drivers and elemnts.
+This modu... | fix docstring typo in splinter.driver (#<I>) | py |
diff --git a/timed/client.py b/timed/client.py
index <HASH>..<HASH> 100644
--- a/timed/client.py
+++ b/timed/client.py
@@ -108,7 +108,7 @@ def projects(logfile, time_format):
def read(logfile, time_format, only_elapsed=False):
return [server.record_from_txt(line, only_elapsed=only_elapsed,
time_format=time_for... | Create file if it doesn't exist | py |
diff --git a/gwpy/tests/time.py b/gwpy/tests/time.py
index <HASH>..<HASH> 100644
--- a/gwpy/tests/time.py
+++ b/gwpy/tests/time.py
@@ -58,7 +58,7 @@ class TimeTests(unittest.TestCase):
today = time.tconvert('today')
yesterday = time.tconvert('yesterday')
self.assertAlmostEqual(today - yesterd... | test.time: fix py<I> compatibility issue - can't use assertGreaterEqual in py<I> | py |
diff --git a/markov/nodes.py b/markov/nodes.py
index <HASH>..<HASH> 100644
--- a/markov/nodes.py
+++ b/markov/nodes.py
@@ -21,10 +21,6 @@ class Link:
self.target = target
self.weight = weight
- def __str__(self):
- return str(self.target)
-
-
class Node:
def __init__(self, na... | Remove confusing and unnecessary __str__() operator for Link | py |
diff --git a/astrobase/checkplot.py b/astrobase/checkplot.py
index <HASH>..<HASH> 100644
--- a/astrobase/checkplot.py
+++ b/astrobase/checkplot.py
@@ -2949,6 +2949,11 @@ def checkplot_dict(lspinfolist,
'adding a randomly generated objectid')
objectinfo = {'objectid':objuuid}
+ # sp... | checkplot: handle 'objectid' not found in HAT LC objectinfo dicts | py |
diff --git a/djangocms_text_ckeditor/models.py b/djangocms_text_ckeditor/models.py
index <HASH>..<HASH> 100644
--- a/djangocms_text_ckeditor/models.py
+++ b/djangocms_text_ckeditor/models.py
@@ -3,9 +3,9 @@ from django.utils.encoding import force_str
from django.utils.html import strip_tags
from django.utils.text imp... | Ran isort on models.py (#<I>) | py |
diff --git a/plenum/test/pool_transactions/test_nodes_with_pool_txns.py b/plenum/test/pool_transactions/test_nodes_with_pool_txns.py
index <HASH>..<HASH> 100644
--- a/plenum/test/pool_transactions/test_nodes_with_pool_txns.py
+++ b/plenum/test/pool_transactions/test_nodes_with_pool_txns.py
@@ -231,7 +231,7 @@ def testN... | fixing the change-node-keys test | py |
diff --git a/gspread/models.py b/gspread/models.py
index <HASH>..<HASH> 100644
--- a/gspread/models.py
+++ b/gspread/models.py
@@ -651,15 +651,7 @@ class Worksheet(object):
def clear(self):
"""Clears all cells in the worksheet.
"""
- values = self.get_all_values()
- if not values:
-... | improved following the suggestions of @msuozzo | py |
diff --git a/examples/college.py b/examples/college.py
index <HASH>..<HASH> 100644
--- a/examples/college.py
+++ b/examples/college.py
@@ -170,7 +170,7 @@ for n in range(0, 3):
common.two_way(classroom)
# All rooms in a dorm are connected via its common room
for i in range(0, 6):
- room = phys.new... | when it's a physical place, call it that | py |
diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/aptpkg.py
+++ b/salt/modules/aptpkg.py
@@ -29,7 +29,7 @@ from six import string_types
from salt.exceptions import (
CommandExecutionError, MinionError, SaltInvocationError
)
-import six
+import salt.utils.... | Replaced import six in file /salt/modules/aptpkg.py | py |
diff --git a/htmresearch/frameworks/pytorch/sparse_net.py b/htmresearch/frameworks/pytorch/sparse_net.py
index <HASH>..<HASH> 100644
--- a/htmresearch/frameworks/pytorch/sparse_net.py
+++ b/htmresearch/frameworks/pytorch/sparse_net.py
@@ -245,7 +245,7 @@ class SparseNet(nn.Module):
# Batch Norm
if u... | Fix sparsenet with batchnorm | py |
diff --git a/spyder/plugins/editor/widgets/editor.py b/spyder/plugins/editor/widgets/editor.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/widgets/editor.py
+++ b/spyder/plugins/editor/widgets/editor.py
@@ -182,7 +182,6 @@ class FileInfo(QObject):
self.lastmodified = QFileInfo(filename).lastModifie... | Bookmarks: Remove old breakpoints_changed statement | py |
diff --git a/gspreadsheet/gspreadsheet.py b/gspreadsheet/gspreadsheet.py
index <HASH>..<HASH> 100644
--- a/gspreadsheet/gspreadsheet.py
+++ b/gspreadsheet/gspreadsheet.py
@@ -129,25 +129,21 @@ class GSpreadsheet(object):
worksheet = None # your worksheet id
def __init__(self, url=None, **kwargs):
- ... | simplify: just shove all kwargs on in there | py |
diff --git a/autopep8.py b/autopep8.py
index <HASH>..<HASH> 100755
--- a/autopep8.py
+++ b/autopep8.py
@@ -1816,8 +1816,7 @@ def fix_code(source, options=None):
def fix_string(source, options=None):
"""Deprecated."""
- warnings.warn('fix_string() is deprecated; use fix_code() instead',
- Dep... | Make warnings noisier as we get closer to <I> | py |
diff --git a/pyeda/expr.py b/pyeda/expr.py
index <HASH>..<HASH> 100644
--- a/pyeda/expr.py
+++ b/pyeda/expr.py
@@ -251,7 +251,7 @@ class Expression(Function):
@cached_property
def indices(self):
- return {term.term_index for term in self.minterms}
+ return {term.term_index for term in self.ite... | Change minterms to iter_minterms in indices property | py |
diff --git a/src/scs_core/__init__.py b/src/scs_core/__init__.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/__init__.py
+++ b/src/scs_core/__init__.py
@@ -6,4 +6,4 @@ Created on 3 May 2021
https://packaging.python.org/guides/single-sourcing-package-version/
"""
-__version__ = '1.0.9'
+__version__ = '1.0.10' | Added a new PID code | py |
diff --git a/actstream/tests/test_activity.py b/actstream/tests/test_activity.py
index <HASH>..<HASH> 100644
--- a/actstream/tests/test_activity.py
+++ b/actstream/tests/test_activity.py
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
from django.contrib.auth.models import Group
from django.utils.translation import uge... | added tests to highlight #<I> resolution | py |
diff --git a/python/ray/tests/test_reference_counting_2.py b/python/ray/tests/test_reference_counting_2.py
index <HASH>..<HASH> 100644
--- a/python/ray/tests/test_reference_counting_2.py
+++ b/python/ray/tests/test_reference_counting_2.py
@@ -121,9 +121,6 @@ def test_return_object_ref(one_worker_100MiB, use_ray_put, fa... | fix bad test (#<I>) | py |
diff --git a/metaextract/tests/test_metaextract.py b/metaextract/tests/test_metaextract.py
index <HASH>..<HASH> 100644
--- a/metaextract/tests/test_metaextract.py
+++ b/metaextract/tests/test_metaextract.py
@@ -212,4 +212,6 @@ class TestMetaExtract(object):
dest_dir = os.path.join(tmpdir.strpath, fixture_name)... | tests: Only check expected key/value pairs Instead of comparing a whole dict, only check the expected key/value pairs. This makes adding new fields to the metaextract output a bit simpler from a testing perspective. | py |
diff --git a/pefile.py b/pefile.py
index <HASH>..<HASH> 100644
--- a/pefile.py
+++ b/pefile.py
@@ -892,7 +892,7 @@ class Structure(object):
for key in keys:
val = getattr(self, key)
- if isinstance(val, int) or isinstance(val, int):
+ if isinstance(val, (int... | Fixed a couple of parsing bugs. | py |
diff --git a/highfive/manager.py b/highfive/manager.py
index <HASH>..<HASH> 100644
--- a/highfive/manager.py
+++ b/highfive/manager.py
@@ -32,7 +32,6 @@ class JobManager:
call = job.get_call()
try:
response = await worker.make_call(call)
- result = job.get_result(response)
... | exeption during get_result is raised properly | py |
diff --git a/pex/interpreter.py b/pex/interpreter.py
index <HASH>..<HASH> 100644
--- a/pex/interpreter.py
+++ b/pex/interpreter.py
@@ -319,11 +319,6 @@ class PythonInterpreter(object):
INTERP_INFO_FILE = 'INTERP-INFO'
@classmethod
- def clear_cache(cls):
- interpreter_cache_dir = os.path.join(ENV.PEX_ROOT, ... | Remove unused Interpreter.clear_cache. (#<I>) This was added when it was though it would be useful for Pants. It turned out not being used / needed. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -97,10 +97,12 @@ setup(
python_requires=REQUIRES_PYTHON,
url=URL,
packages=find_packages(exclude=("tests",)),
- entry_points={"console_scripts": []},
+ entry_points={
+ "console_scripts": ["sc2play... | - aligning to known working versions of setup.py | py |
diff --git a/blobxfer/operations/upload.py b/blobxfer/operations/upload.py
index <HASH>..<HASH> 100644
--- a/blobxfer/operations/upload.py
+++ b/blobxfer/operations/upload.py
@@ -182,7 +182,8 @@ class Uploader(object):
:rtype: str
:return: unique id for the destination
"""
- return ';'... | Fix for the --delete path problem on Windows (#<I>) | py |
diff --git a/ruskit/cluster.py b/ruskit/cluster.py
index <HASH>..<HASH> 100644
--- a/ruskit/cluster.py
+++ b/ruskit/cluster.py
@@ -384,7 +384,7 @@ class Cluster(object):
echo("Migrating:", key)
src.migrate(dst.host, dst.port, key, 0, timeout)
- for node in self.nodes:
+ for... | only emit `cluster setslot node` to master nodes | py |
diff --git a/category_encoders/target_encoder.py b/category_encoders/target_encoder.py
index <HASH>..<HASH> 100644
--- a/category_encoders/target_encoder.py
+++ b/category_encoders/target_encoder.py
@@ -11,10 +11,11 @@ __author__ = 'chappers'
class TargetEncoder(BaseEstimator, TransformerMixin):
def __init__(self... | Issue #<I>. Corrected misleading description for the TargetEncoder. Merge with temporary version of description. | py |
diff --git a/looper/_version.py b/looper/_version.py
index <HASH>..<HASH> 100644
--- a/looper/_version.py
+++ b/looper/_version.py
@@ -1 +1 @@
-__version__ = "0.6.0-dev"
+__version__ = "0.6.0-rc1" | Update version to <I>-rc1 | py |
diff --git a/bcbio/rnaseq/coverage.py b/bcbio/rnaseq/coverage.py
index <HASH>..<HASH> 100644
--- a/bcbio/rnaseq/coverage.py
+++ b/bcbio/rnaseq/coverage.py
@@ -78,6 +78,9 @@ def plot_gene_coverage(bam_file, ref_file, count_file, out_file):
coverage = coverage.append(_normalize_coverage(depth))
# group in... | Fix for failure on very low coverage samples. If there is not enough to call coverage anywhere, just return None. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,9 +5,8 @@
import os
import re
-import sys
-from distutils.core import setup
-from distutils import cmd
+
+from setuptools import setup
root_dir = os.path.abspath(os.path.dirname(__file__))
@@ -24,7 +23,13 @@ def ge... | Fix setup.py post-setuptools/distribute merge. | py |
diff --git a/afkak/client.py b/afkak/client.py
index <HASH>..<HASH> 100644
--- a/afkak/client.py
+++ b/afkak/client.py
@@ -113,6 +113,11 @@ class KafkaClient(object):
Callable which accepts *reactor*, *host* and *port* arguments. It must
return a :class:`twisted.internet.interfaces.IStreamClientEndpoi... | Endpoints are responsible for connect timeouts | py |
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index <HASH>..<HASH> 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -210,7 +210,8 @@ class SeriesGroupBy(GroupBy[Series]):
>>> s.groupby([1, 1, 2, 2]).agg(lambda x: x.astype(float).min())
1 1.0... | Fixed GL<I> Errors in Documentation (#<I>) | py |
diff --git a/neo.py b/neo.py
index <HASH>..<HASH> 100755
--- a/neo.py
+++ b/neo.py
@@ -595,6 +595,8 @@ def import_(url, path=None):
break
except ProcessException:
pass
+ else:
+ error("Unable to clone repository (%s)" % url, 1)
repo.sync() | Added better error message on failure to import | py |
diff --git a/lib/inveniogc.py b/lib/inveniogc.py
index <HASH>..<HASH> 100644
--- a/lib/inveniogc.py
+++ b/lib/inveniogc.py
@@ -407,7 +407,7 @@ def main():
task_set_option('bibxxx', False)
task_set_option('documents', False)
task_set_option('cache', False)
- task_init(authorization_action='runsessiongc... | Moved action name from runsessiongc to runinveniogc. | py |
diff --git a/looper/models.py b/looper/models.py
index <HASH>..<HASH> 100644
--- a/looper/models.py
+++ b/looper/models.py
@@ -1708,7 +1708,7 @@ class InterfaceManager(object):
return []
jobs = []
- script_names_used = {}
+ script_names_used = set()
for ifproto in ifprotos... | empty braces is dict not set | py |
diff --git a/syn/base/b/wrapper.py b/syn/base/b/wrapper.py
index <HASH>..<HASH> 100644
--- a/syn/base/b/wrapper.py
+++ b/syn/base/b/wrapper.py
@@ -65,7 +65,10 @@ class ListWrapper(Base, Harvester):
attrs = super(ListWrapper, self)._istr_attrs(base, pretty, indent)
strs = [istr(val, pretty, indent) for... | Fixing ListWrapper display when there are no list elements | py |
diff --git a/test/test_util/test_context.py b/test/test_util/test_context.py
index <HASH>..<HASH> 100644
--- a/test/test_util/test_context.py
+++ b/test/test_util/test_context.py
@@ -2,7 +2,7 @@
from __future__ import unicode_literals
-from cinje.util import Context
+from cinje.util import py2, Context
from cinje... | Accommodate for Python 2/3 differences. | py |
diff --git a/airflow/www/decorators.py b/airflow/www/decorators.py
index <HASH>..<HASH> 100644
--- a/airflow/www/decorators.py
+++ b/airflow/www/decorators.py
@@ -102,7 +102,7 @@ def has_dag_access(**dag_kwargs):
@functools.wraps(f)
def wrapper(self, *args, **kwargs):
has_access = self.ap... | [AIRFLOW-<I>] Fix request arguments in has_dag_access (#<I>) has_dag_access needs to use request arguments from both request.args and request.form. This is related to the changes made in AIRFLOW-<I>/#<I>. | py |
diff --git a/a10_neutron_lbaas/a10_context.py b/a10_neutron_lbaas/a10_context.py
index <HASH>..<HASH> 100644
--- a/a10_neutron_lbaas/a10_context.py
+++ b/a10_neutron_lbaas/a10_context.py
@@ -22,6 +22,7 @@ LOG = logging.getLogger(__name__)
class A10Context(object):
def __init__(self, handler, openstack_context, ... | Allow the A<I>Context client to be overridden | py |
diff --git a/src/mog_commons/command.py b/src/mog_commons/command.py
index <HASH>..<HASH> 100644
--- a/src/mog_commons/command.py
+++ b/src/mog_commons/command.py
@@ -4,6 +4,7 @@ import sys
import os
import errno
import subprocess
+import platform
import six
from mog_commons.string import to_bytes
from mog_common... | added workaround for cygwin: closes #<I> | py |
diff --git a/test/test_op_sink.py b/test/test_op_sink.py
index <HASH>..<HASH> 100644
--- a/test/test_op_sink.py
+++ b/test/test_op_sink.py
@@ -59,4 +59,39 @@ def test_sink_on_subscription():
assert len(s)==0
s.emit(1)
+ assert not cb.called
+
+def test_sink_partial():
+ cb=mock.Mock()
+
+ s=Subject... | extended test for op.sink | py |
diff --git a/salt/client/mixins.py b/salt/client/mixins.py
index <HASH>..<HASH> 100644
--- a/salt/client/mixins.py
+++ b/salt/client/mixins.py
@@ -33,7 +33,9 @@ CLIENT_INTERNAL_KEYWORDS = frozenset([
'token',
'__jid__',
'__tag__',
- '__user__'
+ '__user__',
+ 'username',
+ 'password'
]) | Add username/password to expected args Fixes many broken netapi functions, such as wheel.key.list_all | py |
diff --git a/categories/__init__.py b/categories/__init__.py
index <HASH>..<HASH> 100644
--- a/categories/__init__.py
+++ b/categories/__init__.py
@@ -18,10 +18,10 @@ def register_fk(model, field_name='category', extra_params={}):
return _register(model, field_name, extra_params, fields.CategoryFKField)
def... | Altered the registration naming so more than one field could be registered for a model | 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
@@ -573,5 +573,9 @@ def _parser():
add_arg('--ulog-cprange', dest='ulog-cprange', action='append')
add_arg('--ulog-qthreshold', dest='ulog-qthreshold', act... | Adding dports and sports | py |
diff --git a/owncloud/test/test.py b/owncloud/test/test.py
index <HASH>..<HASH> 100644
--- a/owncloud/test/test.py
+++ b/owncloud/test/test.py
@@ -795,8 +795,8 @@ class TestUserAndGroupActions(unittest.TestCase):
self.apps=self.client.get_apps()
if self.apps['provisioning_api'] is False:
... | fix except for client.get_apps() | py |
diff --git a/openquake/engine/tests/calculators/hazard/classical/core_test.py b/openquake/engine/tests/calculators/hazard/classical/core_test.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/tests/calculators/hazard/classical/core_test.py
+++ b/openquake/engine/tests/calculators/hazard/classical/core_test.py
@@ -1... | removed explicit error to test fast nose errors catch | py |
diff --git a/salt/runners/http.py b/salt/runners/http.py
index <HASH>..<HASH> 100644
--- a/salt/runners/http.py
+++ b/salt/runners/http.py
@@ -3,7 +3,7 @@
Module for making various web calls. Primarily designed for webhooks and the
like, but also useful for basic http testing.
-.. versionadded:: 2015.5
+.. versiona... | Appended <I> to version added | py |
diff --git a/spyderlib/plugins/ipythonconsole.py b/spyderlib/plugins/ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/ipythonconsole.py
+++ b/spyderlib/plugins/ipythonconsole.py
@@ -940,8 +940,8 @@ class IPythonConsole(SpyderPluginWidget):
if len(self.get_related_clients(client)) > 0 a... | IPython Console: Change "clients" for "consoles" in a QMessageBox | py |
diff --git a/spikeinterface/extractors/numpyextractors/numpyextractors.py b/spikeinterface/extractors/numpyextractors/numpyextractors.py
index <HASH>..<HASH> 100644
--- a/spikeinterface/extractors/numpyextractors/numpyextractors.py
+++ b/spikeinterface/extractors/numpyextractors/numpyextractors.py
@@ -45,6 +45,12 @@ cl... | support times/labels input to numpyextractors | py |
diff --git a/pyqg/model.py b/pyqg/model.py
index <HASH>..<HASH> 100644
--- a/pyqg/model.py
+++ b/pyqg/model.py
@@ -240,7 +240,7 @@ class Model(PseudoSpectralKernel):
# deformation wavenumbers and radii
self.kdi2 = evals[asort]
self.radii = np.zeros_like(self.kdi2)
- self.radii[0] = sel... | Fixed definition of barotropic deformation radius. | py |
diff --git a/py3status/modules/lm_sensors.py b/py3status/modules/lm_sensors.py
index <HASH>..<HASH> 100644
--- a/py3status/modules/lm_sensors.py
+++ b/py3status/modules/lm_sensors.py
@@ -91,7 +91,7 @@ Examples:
lm_sensors {
chips = ['coretemp-isa-0000'] # full
OR
- chips = ['coretemp*'] # fnmatch
+ ... | lm_sensors module: fix an issue when sensors disconnect and are not detected again (#<I>) | py |
diff --git a/fs/fsio.py b/fs/fsio.py
index <HASH>..<HASH> 100644
--- a/fs/fsio.py
+++ b/fs/fsio.py
@@ -35,13 +35,13 @@ def write_file(filepath, contents, ftype = 'w'):
output_handle.write(contents)
output_handle.close()
-def open_temp_file(path, ftype = 'w'):
- F, fname = tempfile.mkstemp(dir = path)
+de... | Adding prefix and suffix options to temporary file wrappers around mkstemp. | py |
diff --git a/treeherder/config/urls.py b/treeherder/config/urls.py
index <HASH>..<HASH> 100644
--- a/treeherder/config/urls.py
+++ b/treeherder/config/urls.py
@@ -5,11 +5,9 @@ from rest_framework.documentation import include_docs_urls
from treeherder.webapp.api import urls as api_urls
from django.views.generic.base i... | Fix Django Debug Toolbar (#<I>) Move debug_toolbar path to first index in urlpatterns | py |
diff --git a/commands/slap.py b/commands/slap.py
index <HASH>..<HASH> 100644
--- a/commands/slap.py
+++ b/commands/slap.py
@@ -23,7 +23,7 @@ def cmd(send, msg, args):
"""Slap somebody.
Syntax: !slap <nick> for <reason>
"""
- implements = ['a large trout', 'a clue-by-four', 'a fresh haddock', 'moon', '... | added golden gate bridge fixed some issue :3 | py |
diff --git a/src/toil/provisioners/abstractProvisioner.py b/src/toil/provisioners/abstractProvisioner.py
index <HASH>..<HASH> 100644
--- a/src/toil/provisioners/abstractProvisioner.py
+++ b/src/toil/provisioners/abstractProvisioner.py
@@ -330,7 +330,7 @@ coreos:
LEADER_DOCKER_ARGS = '--registry=in_memory --cluster... | Make ignoredNodes functionality actually work The ignoredNodes functionality used to work on the basis of private IPs, but the Mesos batch system checks against the ignoredNodes set on the basis of hostnames. Except in very rare cases (when the reverse-lookup that Mesos performs by default fails), those were completel... | py |
diff --git a/flask_dance/models.py b/flask_dance/models.py
index <HASH>..<HASH> 100644
--- a/flask_dance/models.py
+++ b/flask_dance/models.py
@@ -16,7 +16,7 @@ class OAuthConsumerMixin(object):
``provider``
a short name to indicate which OAuth provider issued
this token
- ``created_on``
+ ... | Update docs for OAuthConsumerMixin | py |
diff --git a/autograd/util.py b/autograd/util.py
index <HASH>..<HASH> 100644
--- a/autograd/util.py
+++ b/autograd/util.py
@@ -51,6 +51,7 @@ def check_equivalent(A, B, rtol=1e-4, atol=1e-6):
else:
if isinstance(A, np.ndarray):
assert A.shape == B.shape, "Shapes are {0} and {1}".format(A.shape... | Added dtype checking for arrays | py |
diff --git a/eppy/tests/test_report_tables/test_report_tables.py b/eppy/tests/test_report_tables/test_report_tables.py
index <HASH>..<HASH> 100644
--- a/eppy/tests/test_report_tables/test_report_tables.py
+++ b/eppy/tests/test_report_tables/test_report_tables.py
@@ -20,13 +20,12 @@ def _report_tables(linesTable):
... | Commented out print statements to concentrate on pytest feedback | py |
diff --git a/oidc_provider/settings.py b/oidc_provider/settings.py
index <HASH>..<HASH> 100644
--- a/oidc_provider/settings.py
+++ b/oidc_provider/settings.py
@@ -91,6 +91,7 @@ class DefaultSettings(object):
random.choice(string.ascii_uppercase + string.digits) for _ in range(100))
return self... | solved merging typo for missing @property | py |
diff --git a/sllurp/llrp.py b/sllurp/llrp.py
index <HASH>..<HASH> 100644
--- a/sllurp/llrp.py
+++ b/sllurp/llrp.py
@@ -990,7 +990,7 @@ class LLRPClientFactory(ClientFactory):
self._message_callbacks['RO_ACCESS_REPORT'].append(cb)
def buildProtocol(self, _):
- clargs = self.client_args
+ cl... | fix start_first: copy client_args we were setting 'start_inventory' to True for all protocols instead of only the first one! | py |
diff --git a/tests/test_wms_jpl_capabilities.py b/tests/test_wms_jpl_capabilities.py
index <HASH>..<HASH> 100644
--- a/tests/test_wms_jpl_capabilities.py
+++ b/tests/test_wms_jpl_capabilities.py
@@ -101,6 +101,7 @@ def test_wms_capabilities_style_without_title():
SERVICE_URL = 'http://giswebservices.massgis.state.ma.u... | Update test_wms_jpl_capabilities.py xfail failing wms test (#<I>) | py |
diff --git a/Neos.Media/Documentation/conf.py b/Neos.Media/Documentation/conf.py
index <HASH>..<HASH> 100644
--- a/Neos.Media/Documentation/conf.py
+++ b/Neos.Media/Documentation/conf.py
@@ -59,9 +59,9 @@ author = u'Neos Team and Contributors'
# built documents.
#
# The short X.Y version.
-version = 'dev-master'
+ve... | TASK: Adjust version numbers in tooling configuration Updates for the <I> branch: - conf.py of neos/media | py |
diff --git a/manticore/core/smtlib/expression.py b/manticore/core/smtlib/expression.py
index <HASH>..<HASH> 100644
--- a/manticore/core/smtlib/expression.py
+++ b/manticore/core/smtlib/expression.py
@@ -390,7 +390,7 @@ class BitVecConstant(BitVec, Constant):
def __eq__(self, other):
if self.taint:
- ... | Fix Taint on Ct Eq (#<I>) | py |
diff --git a/searx/https_rewrite.py b/searx/https_rewrite.py
index <HASH>..<HASH> 100644
--- a/searx/https_rewrite.py
+++ b/searx/https_rewrite.py
@@ -18,7 +18,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
import re
from lxml import etree
from os import listdir
-from os.path import isfile, joi... | print error if https rewrite directory is not found, #<I> | py |
diff --git a/benchexec/tools/forester.py b/benchexec/tools/forester.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/forester.py
+++ b/benchexec/tools/forester.py
@@ -25,11 +25,9 @@ class Tool(benchexec.tools.template.BaseTool):
REQUIRED_PATHS = [
- "build-aux",
- "cl",
- ... | Fixed required paths for the binary version of Forester | py |
diff --git a/pymatgen/analysis/defects/tests/test_core.py b/pymatgen/analysis/defects/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/defects/tests/test_core.py
+++ b/pymatgen/analysis/defects/tests/test_core.py
@@ -173,6 +173,18 @@ class DefectEntryTest(PymatgenTest):
entry.defect._char... | add defect concentration unit test for defect entry | py |
diff --git a/molo/commenting/tests/test_models.py b/molo/commenting/tests/test_models.py
index <HASH>..<HASH> 100644
--- a/molo/commenting/tests/test_models.py
+++ b/molo/commenting/tests/test_models.py
@@ -93,3 +93,20 @@ class MoloCommentTest(TestCase):
)
altered_comment = MoloComment.objects.get... | added a test to check that flags other than SUGGEST_REMOVAL don't trigger auto-removal | py |
diff --git a/src/cr/cube/crunch_cube.py b/src/cr/cube/crunch_cube.py
index <HASH>..<HASH> 100644
--- a/src/cr/cube/crunch_cube.py
+++ b/src/cr/cube/crunch_cube.py
@@ -445,16 +445,18 @@ class CrunchCube(object):
if self.mr_dim_ind == 0:
if len(table.shape) == 4:
# This is the case ... | Implement correct % for MR x CA | py |
diff --git a/slither/slithir/convert.py b/slither/slithir/convert.py
index <HASH>..<HASH> 100644
--- a/slither/slithir/convert.py
+++ b/slither/slithir/convert.py
@@ -306,12 +306,6 @@ def convert_type_of_high_level_call(ir, contract):
func = contract.get_function_from_signature(sig)
if not func:
func... | Invert order for low level lookup | py |
diff --git a/great_expectations/cli/datasource.py b/great_expectations/cli/datasource.py
index <HASH>..<HASH> 100644
--- a/great_expectations/cli/datasource.py
+++ b/great_expectations/cli/datasource.py
@@ -1282,12 +1282,9 @@ You have selected a datasource that is a SQL database. How would you like to spe
... | Update datasource.py (#<I>) | py |
diff --git a/crispy_forms/tests/test_layout.py b/crispy_forms/tests/test_layout.py
index <HASH>..<HASH> 100644
--- a/crispy_forms/tests/test_layout.py
+++ b/crispy_forms/tests/test_layout.py
@@ -540,9 +540,7 @@ def test_keepcontext_context_manager(settings):
InlineCheckboxes('alphacheckboxes'),
'numer... | bare dict instead of RequestContext | py |
diff --git a/spyder/plugins/layout/container.py b/spyder/plugins/layout/container.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/layout/container.py
+++ b/spyder/plugins/layout/container.py
@@ -296,7 +296,7 @@ class LayoutContainer(PluginMainContainer):
_("Error"),
_("Lay... | Layout: Apply missing suggestions from code review | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,8 @@
#!/usr/bin/env python
from os.path import exists
-try:
- from setuptools import setup
-except ImportError:
- from distutils.core import setup
+from setuptools import setup, find_packages
-from setupto... | Updating setup.py to use setuptools exclusively (as per recent seed changes) | py |
diff --git a/sedge/cli.py b/sedge/cli.py
index <HASH>..<HASH> 100644
--- a/sedge/cli.py
+++ b/sedge/cli.py
@@ -81,7 +81,7 @@ def command_update(args):
# do not edit this file manually, edit the source file and re-run `sedge'
#
-''' % (args.output_file))
+''' % (args.config_file))
write_to(ConfigOutput(tmpf... | fix path sedge config path in generated SSH config | py |
diff --git a/typedload/typechecks.py b/typedload/typechecks.py
index <HASH>..<HASH> 100644
--- a/typedload/typechecks.py
+++ b/typedload/typechecks.py
@@ -36,6 +36,25 @@ from enum import Enum
from typing import Any, Tuple, Union, Set, List, Dict, Type, FrozenSet
+__all__ = [
+ 'is_attrs',
+ 'is_dataclass',
+... | Export typecheck functions and constants So its own imports get hidden. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,7 @@
# limitations under the License.
import ast
+import io
import os
from setuptools import setup, find_packages
@@ -26,7 +27,7 @@ setup(
name='git-lint',
version=version,
description='Git Lin... | Fixes setup due to encoding issues in some systems. By default open will use a decoder that's platform dependent. See <URL> | py |
diff --git a/pydle/features/whox.py b/pydle/features/whox.py
index <HASH>..<HASH> 100644
--- a/pydle/features/whox.py
+++ b/pydle/features/whox.py
@@ -24,6 +24,11 @@ class WHOXSupport(isupport.ISUPPORTSupport, account.AccountSupport):
else:
# Find account name of person.
pass
+
+ ... | Sending WHOIS to new users if WHOX is unavailable. | py |
diff --git a/salt/modules/glance.py b/salt/modules/glance.py
index <HASH>..<HASH> 100644
--- a/salt/modules/glance.py
+++ b/salt/modules/glance.py
@@ -296,6 +296,12 @@ def image_schema(profile=None):
'''
Returns names and descriptions of the schema "image"'s
properties for this profile's instance of glan... | Added docstring examples to glance.image_schema and schema_get | py |
diff --git a/blinkpy/sync_module.py b/blinkpy/sync_module.py
index <HASH>..<HASH> 100644
--- a/blinkpy/sync_module.py
+++ b/blinkpy/sync_module.py
@@ -118,7 +118,8 @@ class BlinkSyncModule():
self.events = self.get_events()
self.videos = self.get_videos()
self.homescreen = api.request_homescr... | Fix linting error (line was too long) | py |
diff --git a/theanets/feedforward.py b/theanets/feedforward.py
index <HASH>..<HASH> 100644
--- a/theanets/feedforward.py
+++ b/theanets/feedforward.py
@@ -313,7 +313,7 @@ class Network(object):
return self.kwargs.get('tied_weights', False)
@staticmethod
- def create_weights(a, b, suffix, sparse=0, ra... | Add **kwargs support in create_weights. | 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
@@ -39,10 +39,12 @@ needs_sphinx = "1.3"
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
#... | trying to fix sphinx config file to support sphinx-<I> (issue #<I>) | py |
diff --git a/tensorflow_hub/module.py b/tensorflow_hub/module.py
index <HASH>..<HASH> 100644
--- a/tensorflow_hub/module.py
+++ b/tensorflow_hub/module.py
@@ -230,7 +230,11 @@ class Module(object):
"Module must be applied in the graph it was instantiated for.")
signature = self._impl.get_signature_nam... | When constructing a name for the module, replace ':' from signature name, since they cannot be used in variable scope. TF SavedModel adds ':' automatically to the signature names, hence there is not an easy fix from the client side. PiperOrigin-RevId: <I> | py |
diff --git a/src/oidcendpoint/jwt_token.py b/src/oidcendpoint/jwt_token.py
index <HASH>..<HASH> 100644
--- a/src/oidcendpoint/jwt_token.py
+++ b/src/oidcendpoint/jwt_token.py
@@ -70,7 +70,7 @@ class JWTToken(Token):
if "add_claims" in self.args:
self.add_claims(payload, uinfo, self.args["add_cla... | Fix bug, `add_claims_by_scope` was not used | py |
diff --git a/pysat/instruments/methods/nasa_cdaweb.py b/pysat/instruments/methods/nasa_cdaweb.py
index <HASH>..<HASH> 100644
--- a/pysat/instruments/methods/nasa_cdaweb.py
+++ b/pysat/instruments/methods/nasa_cdaweb.py
@@ -441,6 +441,14 @@ def list_remote_files(tag, sat_id,
warnings.warn("Day keyword requires ... | WRN: add DeprecationWarning | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.