diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/shortcuts.py b/tests/shortcuts.py
index <HASH>..<HASH> 100644
--- a/tests/shortcuts.py
+++ b/tests/shortcuts.py
@@ -534,6 +534,28 @@ class TestDictToModel(ModelTestCase):
inst = dict_to_model(User, data, ignore_unknown=True)
self.assertEqual(inst.xx, 'does not exist')
+ def tes... | Add test for behavior of inherited IDs with dict_to_model. Refs #<I> | py |
diff --git a/mozdownload/scraper.py b/mozdownload/scraper.py
index <HASH>..<HASH> 100755
--- a/mozdownload/scraper.py
+++ b/mozdownload/scraper.py
@@ -464,7 +464,8 @@ class DirectScraper(Scraper):
@property
def target(self):
target = urlparse(self.final_url)
- return target.path.rpartition('/'... | Download the file specified with --url to the correct target folder (#<I>) | py |
diff --git a/tests/test_dependency_injection.py b/tests/test_dependency_injection.py
index <HASH>..<HASH> 100644
--- a/tests/test_dependency_injection.py
+++ b/tests/test_dependency_injection.py
@@ -25,11 +25,14 @@ class BetterPREMISObject(object):
"""A dummy PREMIS object class that can be used to meet the depend... | Flake8: fix E<I> expected 1 blank line, found 0 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -126,7 +126,7 @@ build.sub_commands.insert(0, ('build_proto', None))
INSTALL_REQUIRES = [
'contextlib2>=0.5.1,<1.0',
- 'enum34>=1.1.2,<2.0',
+ 'enum34>=1.1.2,<2.0;python_version<"3.4"',
'future>=0.16.0',
... | install enum<I> for certain python version (#<I>) | py |
diff --git a/pyang/translators/cts.py b/pyang/translators/cts.py
index <HASH>..<HASH> 100644
--- a/pyang/translators/cts.py
+++ b/pyang/translators/cts.py
@@ -680,7 +680,6 @@ class CTSTranslator(object):
ext = stmt.i_extension
(prf, extkw) = stmt.raw_keyword
prefix = self.add_namespace(self.p... | CTS: Removed forgotten print. | py |
diff --git a/pycm/pycm_obj.py b/pycm/pycm_obj.py
index <HASH>..<HASH> 100644
--- a/pycm/pycm_obj.py
+++ b/pycm/pycm_obj.py
@@ -875,4 +875,6 @@ class ConfusionMatrix():
:type other: Confusion matrix
:return: combine of two matrices as a new Confusion matrix
"""
- return ConfusionMatrix(... | add : Other object type check added to combine method. | py |
diff --git a/crust/resources.py b/crust/resources.py
index <HASH>..<HASH> 100644
--- a/crust/resources.py
+++ b/crust/resources.py
@@ -26,7 +26,7 @@ class Options(object):
self.api = self.meta.api
# Create the fields that are specified as strings
- for fieldname in self.meta.fields:
+ ... | fix for when Meta does not contain any fields | py |
diff --git a/targqc/fastq.py b/targqc/fastq.py
index <HASH>..<HASH> 100644
--- a/targqc/fastq.py
+++ b/targqc/fastq.py
@@ -64,7 +64,7 @@ def proc_fastq(samples, parall_view, work_dir, bwa_prefix, downsample_to, num_pa
for s in samples:
s.bam = make_bam_fpath(s.work_dir)
else:
- bwa = j... | Fix getting bwa executable | py |
diff --git a/code/png.py b/code/png.py
index <HASH>..<HASH> 100755
--- a/code/png.py
+++ b/code/png.py
@@ -196,18 +196,26 @@ def isarray(x):
# Because on Python 2.2 array.array is not a type.
return False
-try: # see :pyver:old
- array.tostring
+try:
+ array.tobytes
except AttributeError:
- ... | Warning handled for Python3: DeprecationWarning: tostring() is deprecated. Use tobytes() instead. | py |
diff --git a/configure.py b/configure.py
index <HASH>..<HASH> 100755
--- a/configure.py
+++ b/configure.py
@@ -94,6 +94,9 @@ class Platform(object):
def supports_ppoll(self):
return self._platform in ('linux', 'openbsd', 'bitrig')
+ def supports_ninja_browse(self):
+ return self._platform not ... | Make browse detection consistent with other platform checks. | py |
diff --git a/discord/abc.py b/discord/abc.py
index <HASH>..<HASH> 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -33,6 +33,7 @@ from .iterators import HistoryIterator
from .context_managers import Typing
from .enums import ChannelType
from .errors import InvalidArgument, ClientException
+from .mentions import A... | fix mention_author in send causing unexpected allowed mentions | py |
diff --git a/Test/plot_test.py b/Test/plot_test.py
index <HASH>..<HASH> 100644
--- a/Test/plot_test.py
+++ b/Test/plot_test.py
@@ -21,8 +21,8 @@ array([0, 1, 2])
array([0, 1, 2])
>>> list(ax.get_yticklabels())
[Text(0, 0, '0'), Text(0, 1, '1'), Text(0, 2, '2')]
->>> ax.texts
-[]
+>>> len(ax.texts)
+0
>>> ax = cm.pl... | fix : minor edit in plot test | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,6 +13,9 @@ setup(name="dtoolcore",
author="Tjelvar Olsson",
author_email="tjelvar.olsson@jic.ac.uk",
url=url,
- install_requires=[],
+ install_requires=[
+ "pyyaml",
+ "python-m... | Add dependencies to setup.py | py |
diff --git a/graphenecommon/aio/blockchainobject.py b/graphenecommon/aio/blockchainobject.py
index <HASH>..<HASH> 100644
--- a/graphenecommon/aio/blockchainobject.py
+++ b/graphenecommon/aio/blockchainobject.py
@@ -10,6 +10,9 @@ from ..blockchainobject import (
class Caching(SyncCaching):
def __getitem__(self, ... | Remove refresh() call from magic methods We cannot use `await` inside magic methods except __init__ | py |
diff --git a/discord/scheduled_event.py b/discord/scheduled_event.py
index <HASH>..<HASH> 100644
--- a/discord/scheduled_event.py
+++ b/discord/scheduled_event.py
@@ -566,4 +566,4 @@ class ScheduledEvent(Hashable):
self._users[user.id] = user
def _pop_user(self, user_id: int) -> None:
- self._use... | Prevent `KeyError` when removing scheduled event user | py |
diff --git a/pylint/checkers/strings.py b/pylint/checkers/strings.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/strings.py
+++ b/pylint/checkers/strings.py
@@ -677,11 +677,14 @@ class StringConstantChecker(BaseTokenChecker):
self.process_string_token(token, start_row)
def process_string_t... | Simplify the code to remove the need for a linter disable | py |
diff --git a/spinoff/util/testing/common.py b/spinoff/util/testing/common.py
index <HASH>..<HASH> 100644
--- a/spinoff/util/testing/common.py
+++ b/spinoff/util/testing/common.py
@@ -1,5 +1,6 @@
from __future__ import print_function
+import types
import warnings
from contextlib import contextmanager
@@ -9,8 +10,... | Simplified assert_raises and assert_not_raises | py |
diff --git a/openquake/engine/db/models.py b/openquake/engine/db/models.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/db/models.py
+++ b/openquake/engine/db/models.py
@@ -2883,7 +2883,7 @@ class AssetManager(djm.GeoManager):
else:
# otherwise we will "left join" the occupancy table
... | db/models: Removed a float cast for ``occupants`` in a query. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,9 +45,9 @@ for reqs in extras_require.values():
install_requires = [
'invenio-base>=1.2.3',
'Flask-Alembic>=2.0.1',
- 'Flask-SQLAlchemy>=2.1,<2.5.0',
- 'SQLAlchemy>=1.2.18,<1.4.0',
- 'SQLAlchemy-Utils>=... | installation: version bumps for SQLAlchemy <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@ else:
setup(
name='libact',
- version='0.1',
+ version='0.1.1',
description='Pool-based active learning in Python',
long_description='Pool-based active learning in Python',
author='Y... | update version number to <I> | py |
diff --git a/py/test/selenium/webdriver/remote/remote_firefox_profile_tests.py b/py/test/selenium/webdriver/remote/remote_firefox_profile_tests.py
index <HASH>..<HASH> 100644
--- a/py/test/selenium/webdriver/remote/remote_firefox_profile_tests.py
+++ b/py/test/selenium/webdriver/remote/remote_firefox_profile_tests.py
@... | [py] Fixing special remote test for passing a firefox profile | py |
diff --git a/skflow/models.py b/skflow/models.py
index <HASH>..<HASH> 100644
--- a/skflow/models.py
+++ b/skflow/models.py
@@ -29,6 +29,8 @@ def linear_regression(X, y):
Predictions and loss tensors.
"""
with tf.variable_scope('linear_regression'):
+ tf.histogram_summary('linear_regression.X',... | Histograms for features and outputs in the linear/logistic regression (when you not doing linear models, this will be output of your previous layers) | py |
diff --git a/cumulusci/tasks/push/push_api.py b/cumulusci/tasks/push/push_api.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/push/push_api.py
+++ b/cumulusci/tasks/push/push_api.py
@@ -2,11 +2,7 @@ from builtins import str
import json
import functools
-from simple_salesforce import Salesforce
from simple_sal... | Flake8 found what looks to be a latent bug. I fixed a couple more of its complaints while I was in there. | py |
diff --git a/spyder/plugins/ipythonconsole/widgets/debugging.py b/spyder/plugins/ipythonconsole/widgets/debugging.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/ipythonconsole/widgets/debugging.py
+++ b/spyder/plugins/ipythonconsole/widgets/debugging.py
@@ -92,7 +92,7 @@ class DebuggingHistoryWidget(RichJupyterWid... | Don't save single pdb commands | py |
diff --git a/odl/contrib/fom/test/test_supervised.py b/odl/contrib/fom/test/test_supervised.py
index <HASH>..<HASH> 100644
--- a/odl/contrib/fom/test/test_supervised.py
+++ b/odl/contrib/fom/test/test_supervised.py
@@ -52,8 +52,12 @@ def test_general(space, scalar_fom):
scalar_fom(data, ground_truth))
... | TST: Do not test monotonicity for non-monotonic FOM. | py |
diff --git a/salt/modules/augeas_cfg.py b/salt/modules/augeas_cfg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/augeas_cfg.py
+++ b/salt/modules/augeas_cfg.py
@@ -48,15 +48,15 @@ def _recurmatch(path, aug):
yield _match
-def _lstrip_word(string, prefix):
+def _lstrip_word(word, prefix):
''... | Convert augeas values passed to setvalue() to strings This fixes an issue where numeric values would fail because the setvalue() function tries to compare them using str.startswith(). | py |
diff --git a/taggit_selectize/widgets.py b/taggit_selectize/widgets.py
index <HASH>..<HASH> 100644
--- a/taggit_selectize/widgets.py
+++ b/taggit_selectize/widgets.py
@@ -25,7 +25,7 @@ class TagSelectize(forms.TextInput):
<script type="text/javascript">
(function($) {
... | Remove superfluous hash that was preventing selectize from initializing on the field | py |
diff --git a/src/armet/transcoders.py b/src/armet/transcoders.py
index <HASH>..<HASH> 100644
--- a/src/armet/transcoders.py
+++ b/src/armet/transcoders.py
@@ -100,14 +100,3 @@ class Yaml:
'text/yaml; charset=utf-8',
'text/x-yaml; charset=utf-8',
)
-
-
-# class JsonP:
-# mimetypes = (
-# ... | Removed JSONP transcoder information. | py |
diff --git a/sirmordred/task_panels.py b/sirmordred/task_panels.py
index <HASH>..<HASH> 100644
--- a/sirmordred/task_panels.py
+++ b/sirmordred/task_panels.py
@@ -441,7 +441,7 @@ class TaskPanelsMenu(Task):
raise
# Get the active data sources
self.data_sources = self.__get_active_data... | [dashboard title] Fix typo in project name extraction | py |
diff --git a/jax/lax.py b/jax/lax.py
index <HASH>..<HASH> 100644
--- a/jax/lax.py
+++ b/jax/lax.py
@@ -244,7 +244,11 @@ def _index_untake(axes, src, dst, *idxs):
return dst
def transpose(operand, permutation):
- return transpose_p.bind(operand, permutation=tuple(permutation))
+ permutation = tuple(permutation)
... | transpose shouldn't transpose with identity perm | py |
diff --git a/notario/utils.py b/notario/utils.py
index <HASH>..<HASH> 100644
--- a/notario/utils.py
+++ b/notario/utils.py
@@ -116,3 +116,19 @@ def forced_leaf_validator(func):
"""
func.__validator_leaf__ = True
return func
+
+
+def expand_schema(schema):
+ if hasattr(schema, '__delayed__'):
+ ... | is_schema and expand_schema utilities | py |
diff --git a/note/server.py b/note/server.py
index <HASH>..<HASH> 100644
--- a/note/server.py
+++ b/note/server.py
@@ -8,7 +8,7 @@ class Note_Server(object):
""" """
- def __init__(self):
+ def __init__(self, db_name='note'):
"""
"""
@@ -26,7 +26,7 @@ class Note_Server(object):
... | choose the db name to use in a better way | py |
diff --git a/testing/test_models.py b/testing/test_models.py
index <HASH>..<HASH> 100644
--- a/testing/test_models.py
+++ b/testing/test_models.py
@@ -1,11 +1,14 @@
from k2catalogue import models
+
def test_safe_float_good():
assert models.safe_float("2") == 2.0
+
def test_safe_float_bad():
assert mode... | run autopep8 over models test file | py |
diff --git a/seglearn/pipe.py b/seglearn/pipe.py
index <HASH>..<HASH> 100644
--- a/seglearn/pipe.py
+++ b/seglearn/pipe.py
@@ -61,7 +61,7 @@ class Pype(Pipeline):
self.N_test = None
self.N_fit = None
self.history = None
- super(Pype, self).__init__(steps, memory)
+ super(Pype, s... | Fix issue<I> by changing 'memory' to kwarg in initialization of super in Pype | py |
diff --git a/bcbio/variation/vardict.py b/bcbio/variation/vardict.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/vardict.py
+++ b/bcbio/variation/vardict.py
@@ -46,9 +46,10 @@ def _vardict_options_from_config(items, config, out_file, target=None, is_rnaseq
# SV calling will be worked on as a separate step
... | Fix vardict version lookup. Due to the vardict version numbering, comparisons to the old date versions always end up with the new versions as older than the actual older, dated versions. We just want to disable SV calling all of the time so we do that here. Closes #<I>. | py |
diff --git a/pelix/remote/transport/mqtt_rpc.py b/pelix/remote/transport/mqtt_rpc.py
index <HASH>..<HASH> 100644
--- a/pelix/remote/transport/mqtt_rpc.py
+++ b/pelix/remote/transport/mqtt_rpc.py
@@ -46,6 +46,7 @@ __docformat__ = "restructuredtext en"
import pelix.misc.mqtt_client
# Pelix & Remote services
+from pel... | MQTT-RPC: convert payload from bytes to str before parsing JSON This avoids an exception in Python 3 | py |
diff --git a/language/setup.py b/language/setup.py
index <HASH>..<HASH> 100644
--- a/language/setup.py
+++ b/language/setup.py
@@ -61,7 +61,7 @@ EXTRAS_REQUIRE = {
setup(
name='google-cloud-language',
- version='0.28.0',
+ version='0.29.0',
description='Python Client for Google Cloud Natural Language... | Natural Language <I> (#<I>) | py |
diff --git a/holoviews/core/layer.py b/holoviews/core/layer.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/layer.py
+++ b/holoviews/core/layer.py
@@ -64,8 +64,9 @@ class Layer(Pane):
def __init__(self, data, **kwargs):
- self._xlim = None
- self._ylim = None
+ lbrt = kwargs.pop('lbrt'... | Enabled passing lbrt to the Layer constructor | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,8 +35,8 @@ setup(
package_dir={"axes": "axes"},
use_scm_version=True,
setup_requires=["setuptools_scm"],
- python_requires="~=3.6",
- install_requires=["django>=3.2", "django-ipware>=3,<5", "setuptools... | Adjust package version requirements Allow django-ipware to have a newer version in the future Update Python version requirement to match package specifiers | py |
diff --git a/packages/vaex-core/vaex/core/_version.py b/packages/vaex-core/vaex/core/_version.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/core/_version.py
+++ b/packages/vaex-core/vaex/core/_version.py
@@ -1,2 +1,2 @@
-__version_tuple__ = (0, 3, 0)
-__version__ = '0.3.0'
+__version_tuple__ = (0, 3, 1)
... | Release <I> of vaex-core | py |
diff --git a/anyconfig/api.py b/anyconfig/api.py
index <HASH>..<HASH> 100644
--- a/anyconfig/api.py
+++ b/anyconfig/api.py
@@ -363,7 +363,7 @@ def dump(data, path_or_stream, ac_parser=None, **options):
:param path_or_stream: Output file path or file / file-like object
:param ac_parser: Forced parser type or p... | fix: remove an extran leading white spaces | py |
diff --git a/benchbuild/environments/adapters/podman.py b/benchbuild/environments/adapters/podman.py
index <HASH>..<HASH> 100644
--- a/benchbuild/environments/adapters/podman.py
+++ b/benchbuild/environments/adapters/podman.py
@@ -49,7 +49,8 @@ def create_container(
cfg_mounts = list(CFG['container']['mounts'].val... | fix: wrong buildah format string | py |
diff --git a/src/ocrmypdf/_sync.py b/src/ocrmypdf/_sync.py
index <HASH>..<HASH> 100644
--- a/src/ocrmypdf/_sync.py
+++ b/src/ocrmypdf/_sync.py
@@ -361,10 +361,11 @@ def run_pipeline(options, api=False):
options.jobs = available_cpu_count()
work_folder = mkdtemp(prefix="com.github.ocrmypdf.")
+ debug_... | Fix debug.log not being deleted on Windows (probably) Fixes #<I> | py |
diff --git a/django_jenkins/management/commands/jenkins.py b/django_jenkins/management/commands/jenkins.py
index <HASH>..<HASH> 100644
--- a/django_jenkins/management/commands/jenkins.py
+++ b/django_jenkins/management/commands/jenkins.py
@@ -140,7 +140,7 @@ class Command(TestCommand):
elif hasattr(settings, '... | should be PROJECT_APPS settings | py |
diff --git a/logging_tree/format.py b/logging_tree/format.py
index <HASH>..<HASH> 100644
--- a/logging_tree/format.py
+++ b/logging_tree/format.py
@@ -44,15 +44,23 @@ def _printout(node, prefix='', is_last=True):
_printout(child, prefix, child is last_child)
+# It is important that the 'if' statements ... | Added formats for logging.Filter, StreamHandler, and FileHandler. | py |
diff --git a/galpy/actionAngle_src/actionAngleAxi.py b/galpy/actionAngle_src/actionAngleAxi.py
index <HASH>..<HASH> 100644
--- a/galpy/actionAngle_src/actionAngleAxi.py
+++ b/galpy/actionAngle_src/actionAngleAxi.py
@@ -437,7 +437,7 @@ def _rapRperiAxiFindStart(R,E,L,pot,rap=False,startsign=1.):
rtry= 2.*R
... | be more consistent in which equation is solved | py |
diff --git a/src/sos/sos_task.py b/src/sos/sos_task.py
index <HASH>..<HASH> 100644
--- a/src/sos/sos_task.py
+++ b/src/sos/sos_task.py
@@ -779,11 +779,11 @@ def check_tasks(tasks, verbosity=1, html=False, start_time=False, age=None, tags
to_be_removed.append(t)
continue
pr... | Do not try to get task start time if task does not exist | py |
diff --git a/tests/test_rawl.py b/tests/test_rawl.py
index <HASH>..<HASH> 100644
--- a/tests/test_rawl.py
+++ b/tests/test_rawl.py
@@ -124,6 +124,7 @@ class TestRawl(object):
assert result[TheCols.name] == 'I am row two.'
assert result.rawl_id == RAWL_ID
assert result['rawl_id'] == RAWL_ID
+ ... | Added assert to test against numerical indexing of RawlResults | py |
diff --git a/emase/__init__.py b/emase/__init__.py
index <HASH>..<HASH> 100755
--- a/emase/__init__.py
+++ b/emase/__init__.py
@@ -6,4 +6,4 @@ from .EMfactory import EMfactory
__author__ = 'Kwangbom "KB" Choi'
__email__ = 'kb.choi@jax.org'
-__version__ = '0.9.3'
+__version__ = '0.9.4' | Fixed a minor file naming bug in 'prepare-emase' and added more text to the documentation | py |
diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/plot.py
+++ b/holoviews/plotting/plot.py
@@ -370,7 +370,7 @@ class GenericElementPlot(DimensionedPlot):
keys = keys if keys else list(self.hmap.data.keys())
plot_opts = self.lookup... | Fixed bug in GenericElementPlot | py |
diff --git a/Demo_EXE_Maker.py b/Demo_EXE_Maker.py
index <HASH>..<HASH> 100644
--- a/Demo_EXE_Maker.py
+++ b/Demo_EXE_Maker.py
@@ -41,17 +41,17 @@ def Launcher():
command_line = 'pyinstaller -wF "{}" {} {} {} {}'.format(source_file, icon_option, workpath_option, dispath_option, specpath_option)
if b... | Added Try / Accept block back | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -73,7 +73,7 @@ install_requires = [
"flufl.lock>=3.2,<4",
"win-unicode-console>=0.5; sys_platform == 'win32'",
"pywin32>=225; sys_platform == 'win32'",
- "networkx>=2.1",
+ "networkx~=2.5",
"psutil>=5... | pin networkx to <I> (#<I>) I am bit hesitant to add an upper-bound here as networkx seems to be requiring a lot of dependencies from next version onwards. | py |
diff --git a/py/testdir_single_jvm/test_randomBitVector.py b/py/testdir_single_jvm/test_randomBitVector.py
index <HASH>..<HASH> 100644
--- a/py/testdir_single_jvm/test_randomBitVector.py
+++ b/py/testdir_single_jvm/test_randomBitVector.py
@@ -59,12 +59,12 @@ class Basic(unittest.TestCase):
(1, row_... | do another inspect to get the actual data hmm. Have to check whether I can get the metadata from offset=0 now, instead of offset=-1 | py |
diff --git a/synchro/__init__.py b/synchro/__init__.py
index <HASH>..<HASH> 100644
--- a/synchro/__init__.py
+++ b/synchro/__init__.py
@@ -54,17 +54,12 @@ except ImportError:
# auth module will land in PyMongo 2.5
print "Warning: Can't import pymongo.auth"
-try:
- from pymongo import GEOSPHERE, HASHED
-e... | Synchrotest can assume PyMongo defines GEOSPHERE and HASHED. | py |
diff --git a/tests/runtests.py b/tests/runtests.py
index <HASH>..<HASH> 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -164,7 +164,7 @@ TEST_SUITES = {
{'display_name': 'ExternalAPIs',
'path': 'integration/externalapi'},
'daemons':
- {'display_name': 'Daemons',
+ {'displ... | Renamed 'Dameons Tests' to 'Daemon Tests' | py |
diff --git a/WordBuilder.py b/WordBuilder.py
index <HASH>..<HASH> 100644
--- a/WordBuilder.py
+++ b/WordBuilder.py
@@ -56,7 +56,7 @@ class WordBuilder(object):
if not self.terminal in word:
# TODO: this will break too early, should prolly be probabilistic
if len(word) > self.average_w... | Doesn't always terminate word when average length | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
+import io
import sys
import re
import warnings
@@ -21,7 +22,7 @@ class PyTest(TestCommand):
sys.exit(errno)
-src = open('soco/__init__.py').read()
+src = io.open('soco/__i... | Fix setup.py with non-UTF-8 encoding (fixes #<I>) | py |
diff --git a/tests/cli/outputs/test_storage_layout.py b/tests/cli/outputs/test_storage_layout.py
index <HASH>..<HASH> 100644
--- a/tests/cli/outputs/test_storage_layout.py
+++ b/tests/cli/outputs/test_storage_layout.py
@@ -34,5 +34,5 @@ def public_bar():
"slot": 3,
},
"baz": {"type": "Byt... | fix storage layout for new bytestring layout | py |
diff --git a/launch_control/commands/dashboard.py b/launch_control/commands/dashboard.py
index <HASH>..<HASH> 100644
--- a/launch_control/commands/dashboard.py
+++ b/launch_control/commands/dashboard.py
@@ -374,9 +374,9 @@ class get(XMLRPCCommand):
if self.args.output is None:
filename = response[... | Redirect lc-tool.py get errors to stderr | py |
diff --git a/alot/ui.py b/alot/ui.py
index <HASH>..<HASH> 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -145,7 +145,7 @@ class UI(object):
self.mainloop.remove_alarm(self._alarm)
self._alarm = self.mainloop.set_alarm_in(timeout, fire, cmdline)
els... | fix missing return statement (got lost during rebase) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,6 +4,7 @@ from setuptools import setup, find_packages
long_desc = open('README.rst', 'rb').read().decode('utf-8') + '\n\n' + \
open('AUTHORS.rst', 'rb').read().decode('utf-8') + '\n\n' + \
open('C... | feature/cleanup-setup: Update setup.py | py |
diff --git a/fireplace/cards/league/collectible.py b/fireplace/cards/league/collectible.py
index <HASH>..<HASH> 100644
--- a/fireplace/cards/league/collectible.py
+++ b/fireplace/cards/league/collectible.py
@@ -21,7 +21,8 @@ class LOE_009:
# Reno Jackson
class LOE_011:
- play = FindDuplicates(FRIENDLY_DECK) | FullH... | Add a powered_up script to Reno Jackson | py |
diff --git a/salt/modules/cmdmod.py b/salt/modules/cmdmod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cmdmod.py
+++ b/salt/modules/cmdmod.py
@@ -456,7 +456,8 @@ def _run(cmd,
env_cmd = ('su', runas, '-c', sys.executable)
else:
env_cmd = ('su', '-s', shell, '-', runas... | Format string before passing to log_callback. | py |
diff --git a/scout.py b/scout.py
index <HASH>..<HASH> 100644
--- a/scout.py
+++ b/scout.py
@@ -310,6 +310,7 @@ class Scout(object):
break
remaining_exits.add((next_addr, \
next_addr, \
+ next_addr, \
... | Typo fix in scout.py. | py |
diff --git a/harpoon/dockerpty/io.py b/harpoon/dockerpty/io.py
index <HASH>..<HASH> 100644
--- a/harpoon/dockerpty/io.py
+++ b/harpoon/dockerpty/io.py
@@ -171,15 +171,8 @@ class Stream(object):
def close(self):
self.close_requested = True
-
- # We don't close the fd immediately, as there may stil... | Closing the streams themselves is bad | py |
diff --git a/bugwarrior/services/jira.py b/bugwarrior/services/jira.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/services/jira.py
+++ b/bugwarrior/services/jira.py
@@ -133,7 +133,7 @@ class JiraIssue(Issue):
def get_due(self):
sprints = self.__get_sprints()
- for sprint in sprints:
+ fo... | Ignore closed sprints for due date | py |
diff --git a/ocrd/ocrd/task_sequence.py b/ocrd/ocrd/task_sequence.py
index <HASH>..<HASH> 100644
--- a/ocrd/ocrd/task_sequence.py
+++ b/ocrd/ocrd/task_sequence.py
@@ -41,7 +41,7 @@ class ProcessorTask():
def validate(self):
if not which(self.executable):
raise Exception("Executable not found ... | subprocess.run with text response in python <= <I> | py |
diff --git a/slacker/__init__.py b/slacker/__init__.py
index <HASH>..<HASH> 100644
--- a/slacker/__init__.py
+++ b/slacker/__init__.py
@@ -258,11 +258,11 @@ class Chat(BaseAPI):
})
def update(self, channel, ts, text):
- self.post('chat.update',
+ return self.post('chat.upd... | fixes chat delete and update not returning response | py |
diff --git a/scripts/res_core_data_mthd1.py b/scripts/res_core_data_mthd1.py
index <HASH>..<HASH> 100644
--- a/scripts/res_core_data_mthd1.py
+++ b/scripts/res_core_data_mthd1.py
@@ -6,10 +6,11 @@ import unittest
import sys
import os
-root_folder = os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + os.sep... | fixed system path append missing trailing aikif | py |
diff --git a/katcp/inspecting_client.py b/katcp/inspecting_client.py
index <HASH>..<HASH> 100644
--- a/katcp/inspecting_client.py
+++ b/katcp/inspecting_client.py
@@ -59,6 +59,18 @@ class KATCPDeviceClient(katcp.AsyncClient):
class InspectingClientAsync(object):
+ sensor_factory = katcp.Sensor
+ """Factory t... | Replacing katcp.Sensor() creation line with more generic sensor_factory to allow custom Sensor objects to be used by InspectingClient | py |
diff --git a/plenum/server/monitor.py b/plenum/server/monitor.py
index <HASH>..<HASH> 100644
--- a/plenum/server/monitor.py
+++ b/plenum/server/monitor.py
@@ -362,7 +362,6 @@ class Monitor(HasActionQueue, PluginLoaderHelper):
started = self.requestTracker.started(key)
logger.info('Cons... | INDY-<I>: Fix requests tracking in monitor | py |
diff --git a/airflow/providers_manager.py b/airflow/providers_manager.py
index <HASH>..<HASH> 100644
--- a/airflow/providers_manager.py
+++ b/airflow/providers_manager.py
@@ -140,6 +140,16 @@ def _sanity_check(provider_package: str, class_name: str) -> bool:
return False
try:
import_string(class_... | Log provider import errors as debug warnings (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ def runSetup():
apacheLibcloud = 'apache-libcloud==2.2.1'
cwltool = 'cwltool==1.0.20180820141117'
schemaSalad = 'schema-salad>=2.6, <3'
- galaxyLib = 'galaxy-lib==17.9.3'
+ galaxyLib = 'gala... | Bump minimum version of galaxy-lib Follow common-workflow-language/cwltool#<I> Resolve software requirements using Environment Modules | py |
diff --git a/spyder/widgets/ipythonconsole/client.py b/spyder/widgets/ipythonconsole/client.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/ipythonconsole/client.py
+++ b/spyder/widgets/ipythonconsole/client.py
@@ -167,7 +167,7 @@ class ClientWidget(QWidget, SaveHistoryMixin):
if self.stderr_dir is not... | Verify that TEMPDIR is a folder | py |
diff --git a/openquake/commands/show.py b/openquake/commands/show.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/show.py
+++ b/openquake/commands/show.py
@@ -91,6 +91,8 @@ def show(what, calc_id=-1):
print('Realizations in order of distance from the mean curves')
for dist, rlz in sorted(dists... | views have the precedence over datasets in oq show Former-commit-id: a<I>ffa1e4ea0ad7e1fda<I>fc<I>c3bc | py |
diff --git a/bokeh/compat/bokeh_renderer.py b/bokeh/compat/bokeh_renderer.py
index <HASH>..<HASH> 100644
--- a/bokeh/compat/bokeh_renderer.py
+++ b/bokeh/compat/bokeh_renderer.py
@@ -305,6 +305,14 @@ class BokehRenderer(Renderer):
label = ax.get_label()
self.text_props(label, laxis, prefix="axis_label... | set tick colors/labels to Noneif no mpl ticks | py |
diff --git a/molo/core/content_import/tests/test_api_import_content.py b/molo/core/content_import/tests/test_api_import_content.py
index <HASH>..<HASH> 100644
--- a/molo/core/content_import/tests/test_api_import_content.py
+++ b/molo/core/content_import/tests/test_api_import_content.py
@@ -174,8 +174,11 @@ class TestIm... | Fix failing import test after change to use unicore page descriptions as article subtitles | py |
diff --git a/jsonschema/validators.py b/jsonschema/validators.py
index <HASH>..<HASH> 100644
--- a/jsonschema/validators.py
+++ b/jsonschema/validators.py
@@ -1048,8 +1048,8 @@ def validate(instance, schema, cls=None, *args, **kwargs):
If you know you have a valid schema already, especially
if you intend to v... | Of course the tweaked name doesn't work on macOS. Hopefully this works on both. | py |
diff --git a/ws4redis/publisher.py b/ws4redis/publisher.py
index <HASH>..<HASH> 100644
--- a/ws4redis/publisher.py
+++ b/ws4redis/publisher.py
@@ -38,7 +38,7 @@ class RedisPublisher(RedisStore):
try:
if request.user.is_authenticated():
groups = request.session['ws4redi... | Fixed: groups in session are stored as name, not object | py |
diff --git a/molo/core/models.py b/molo/core/models.py
index <HASH>..<HASH> 100644
--- a/molo/core/models.py
+++ b/molo/core/models.py
@@ -31,6 +31,7 @@ class HomePage(Page):
)
parent_page_types = ['core.LanguagePage']
+ subpage_types = ['core.ArticlePage']
HomePage.content_panels = [
FieldPanel(... | only allow a page to be created as a subtype of homepage | py |
diff --git a/grimoire/elk/elastic.py b/grimoire/elk/elastic.py
index <HASH>..<HASH> 100644
--- a/grimoire/elk/elastic.py
+++ b/grimoire/elk/elastic.py
@@ -164,12 +164,14 @@ class ElasticSearch(object):
def create_mappings(self, mappings):
for _type in mappings:
- # First create the manual map... | [elastic][mapping] Check if manual mapping is not empty before creating it | py |
diff --git a/uw_sdbmyuw/__init__.py b/uw_sdbmyuw/__init__.py
index <HASH>..<HASH> 100644
--- a/uw_sdbmyuw/__init__.py
+++ b/uw_sdbmyuw/__init__.py
@@ -3,6 +3,8 @@ This is the interface for interacting with the Sdbmyuw service.
"""
import re
+
+import restclients_core
from uw_sdbmyuw.dao import Sdbmyuw_DAO
from re... | Adding logging around cache retrieval | py |
diff --git a/quickbooks/objects/detailline.py b/quickbooks/objects/detailline.py
index <HASH>..<HASH> 100644
--- a/quickbooks/objects/detailline.py
+++ b/quickbooks/objects/detailline.py
@@ -82,7 +82,7 @@ class SubtotalLine(DetailLine):
def __init__(self):
super(SubtotalLine, self).__init__()
- s... | some detail line strings were our of line with the docs | py |
diff --git a/radiusauth/backends/radius.py b/radiusauth/backends/radius.py
index <HASH>..<HASH> 100644
--- a/radiusauth/backends/radius.py
+++ b/radiusauth/backends/radius.py
@@ -101,12 +101,10 @@ class RADIUSBackend(object):
"""
Get the RADIUS server details from the settings file.
"""
- ... | Only encode RADIUS secret as utf-8 | py |
diff --git a/billy/importers/committees.py b/billy/importers/committees.py
index <HASH>..<HASH> 100644
--- a/billy/importers/committees.py
+++ b/billy/importers/committees.py
@@ -183,7 +183,8 @@ def link_parents(abbr):
else:
parent = db.committees.find_one({settings.LEVEL_FIELD: abbr,
... | fix subcommittee having self as parent | py |
diff --git a/tests/test_folium.py b/tests/test_folium.py
index <HASH>..<HASH> 100644
--- a/tests/test_folium.py
+++ b/tests/test_folium.py
@@ -12,10 +12,6 @@ import json
import os
import warnings
import sys
-try:
- import importlib
-except ImportError:
- import imp as importlib
import branca.element
@@ -3... | Fix importlib import problem importlib does exist in <I>, it just doesn't have the reload function. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -20,10 +20,11 @@ except ImportError:
import setuptools
import pkg_resources
-# Numpy: check availability
+# Numpy
try:
requirement = "numpy"
pkg_resources.require(requirement)
+ import numpy
except pkg_resou... | added numpy import in setup.py | py |
diff --git a/mpop/saturn/gatherer.py b/mpop/saturn/gatherer.py
index <HASH>..<HASH> 100644
--- a/mpop/saturn/gatherer.py
+++ b/mpop/saturn/gatherer.py
@@ -1,6 +1,6 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
-# Copyright (c) 2010, 2011.
+# Copyright (c) 2010, 2011, 2012.
# SMHI,
# Folkborgsvägen 1,
@@ -348,7 +34... | Bugfix: Fixed typo in gatherer. | py |
diff --git a/safe/gui/widgets/dock.py b/safe/gui/widgets/dock.py
index <HASH>..<HASH> 100644
--- a/safe/gui/widgets/dock.py
+++ b/safe/gui/widgets/dock.py
@@ -32,7 +32,7 @@ from qgis.core import (
# noinspection PyPackageRequirements
from PyQt4 import QtGui, QtCore
# noinspection PyPackageRequirements
-from PyQt4.Qt... | Force aspect ratio to fix #<I> | py |
diff --git a/docs/_ext/aws/__init__.py b/docs/_ext/aws/__init__.py
index <HASH>..<HASH> 100644
--- a/docs/_ext/aws/__init__.py
+++ b/docs/_ext/aws/__init__.py
@@ -187,6 +187,9 @@ class ServiceIntro(Directive):
if locator_name == "email":
locator_name = "ses"
+ if locator_name == "monitori... | Forward thinking change to make sure the cloudwatch doc url will be correct. | py |
diff --git a/HMpTy/mysql/add_htm_ids_to_mysql_database_table.py b/HMpTy/mysql/add_htm_ids_to_mysql_database_table.py
index <HASH>..<HASH> 100644
--- a/HMpTy/mysql/add_htm_ids_to_mysql_database_table.py
+++ b/HMpTy/mysql/add_htm_ids_to_mysql_database_table.py
@@ -150,7 +150,8 @@ def add_htm_ids_to_mysql_database_table(
... | small fix in mysql readquery | py |
diff --git a/salt/modules/win_pkg.py b/salt/modules/win_pkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_pkg.py
+++ b/salt/modules/win_pkg.py
@@ -68,18 +68,25 @@ def available_version(*names):
# Initialize the dict with empty strings
for name in names:
ret[name] = ''
+ pkgs = list_pkgs()
... | Now compare against the currently installed pkg | py |
diff --git a/slickqa/slickqa.py b/slickqa/slickqa.py
index <HASH>..<HASH> 100644
--- a/slickqa/slickqa.py
+++ b/slickqa/slickqa.py
@@ -25,6 +25,7 @@ def update_result(self):
self.connection.results(self).update()
def update_testrun(self):
+ del self.summary
self.connection.testruns(self).update()
def... | making sure that the summary never get's updated unintentionally | py |
diff --git a/tensorflow_datasets/translate/wmt.py b/tensorflow_datasets/translate/wmt.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/translate/wmt.py
+++ b/tensorflow_datasets/translate/wmt.py
@@ -789,7 +789,7 @@ def _parse_parallel_sentences(f1, f2):
if split_path[-1] == "gz":
lang = split_path... | Another utf-8 fix for WMT dataset. This time, we should make sure to treat the gz files as binary. PiperOrigin-RevId: <I> | py |
diff --git a/tornado/database.py b/tornado/database.py
index <HASH>..<HASH> 100644
--- a/tornado/database.py
+++ b/tornado/database.py
@@ -169,7 +169,7 @@ CONVERSIONS = copy.deepcopy(MySQLdb.converters.conversions)
field_types = [FIELD_TYPE.BLOB, FIELD_TYPE.STRING, FIELD_TYPE.VAR_STRING]
if 'VARCHAR' in vars(FIELD_... | Fix small bug in database set up. | py |
diff --git a/hdl_toolkit/interfaces/utils.py b/hdl_toolkit/interfaces/utils.py
index <HASH>..<HASH> 100644
--- a/hdl_toolkit/interfaces/utils.py
+++ b/hdl_toolkit/interfaces/utils.py
@@ -5,7 +5,10 @@ from hdl_toolkit.interfaces.std import Clk, Rst_n, Rst
from hdl_toolkit.synthetisator.codeOps import Concat, connect
... | log2ceil for int and float as well as htypes | py |
diff --git a/modin/pandas/test/test_io.py b/modin/pandas/test/test_io.py
index <HASH>..<HASH> 100644
--- a/modin/pandas/test/test_io.py
+++ b/modin/pandas/test/test_io.py
@@ -1644,7 +1644,9 @@ class TestHdf:
modin_store.close()
pandas_store.close()
- assert assert_files_eq(unique_... | FIX-#<I>: Deflake TestHdf.test_HDFStore. (#<I>) The HDF files that Modin and Pandas write sometimes have different bytes. Instead of checking that they are exactly equal, check that they contain the same dataframes. I ran: ``` pytest modin/pandas/test/test_io.py -k test_HDFStore --count <I> ``` locally an... | py |
diff --git a/c7n/tags.py b/c7n/tags.py
index <HASH>..<HASH> 100644
--- a/c7n/tags.py
+++ b/c7n/tags.py
@@ -1055,10 +1055,7 @@ class CopyRelatedResourceTag(Tag):
return
if not isinstance(tag_action, UniversalTag):
tags = [{'Key': k, 'Value': v} for k, v in tags.items()]
- tag_ac... | aws - copy-related-tag - fix exception when processing resource set (#<I>) | py |
diff --git a/indra/tools/live_curation.py b/indra/tools/live_curation.py
index <HASH>..<HASH> 100644
--- a/indra/tools/live_curation.py
+++ b/indra/tools/live_curation.py
@@ -121,8 +121,8 @@ def update_beliefs():
return jsonify(belief_dict)
-@app.route('/add_onto_entry', methods=['POST'])
-def add_onto_entry()... | Add endpoint to reset ontology | py |
diff --git a/faadata/airports/load.py b/faadata/airports/load.py
index <HASH>..<HASH> 100644
--- a/faadata/airports/load.py
+++ b/faadata/airports/load.py
@@ -120,4 +120,4 @@ def airport_import(importfile, config={'import_att': True, 'import_rmk': True, '
if __name__ == '__main__':
path = '/Users/adam/Downloads... | Default should absolutely be loading everything. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.