diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -16,7 +16,7 @@ import sys, os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation roo... | Sphinx conf - include package in sys path | py |
diff --git a/satpy/tests/writer_tests/test_geotiff.py b/satpy/tests/writer_tests/test_geotiff.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/writer_tests/test_geotiff.py
+++ b/satpy/tests/writer_tests/test_geotiff.py
@@ -97,6 +97,19 @@ class TestGeoTIFFWriter(unittest.TestCase):
if hasattr(target, 'close... | Add simple test for writing colormaps with the geotiff writer | py |
diff --git a/astroid/tests/unittest_nodes.py b/astroid/tests/unittest_nodes.py
index <HASH>..<HASH> 100644
--- a/astroid/tests/unittest_nodes.py
+++ b/astroid/tests/unittest_nodes.py
@@ -18,7 +18,6 @@
"""tests for specific behaviour of astroid nodes
"""
import os
-import platform
import sys
import textwrap
import... | Check if we actually have typed_ast installed and skip the tests that need it Close #<I> | py |
diff --git a/scanpy/tests/test_plotting.py b/scanpy/tests/test_plotting.py
index <HASH>..<HASH> 100644
--- a/scanpy/tests/test_plotting.py
+++ b/scanpy/tests/test_plotting.py
@@ -82,7 +82,7 @@ def test_stacked_violin():
sc.pl.stacked_violin(adata, adata.var_names, 'cell_type', use_raw=False, color='blue', show=Fal... | increase tolerance for failing test related to a violin plot. | py |
diff --git a/examples/geweke.py b/examples/geweke.py
index <HASH>..<HASH> 100644
--- a/examples/geweke.py
+++ b/examples/geweke.py
@@ -157,7 +157,7 @@ def run_geweke_no_subs((seed, num_rows, num_cols, num_iters)):
specified_s_grid=s_grid,
specified_mu_grid=mu_grid,
)
- fu.p... | Don't pickle artifcats | py |
diff --git a/openquake/commonlib/oqvalidation.py b/openquake/commonlib/oqvalidation.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/oqvalidation.py
+++ b/openquake/commonlib/oqvalidation.py
@@ -206,7 +206,7 @@ class OqParam(valid.ParamSet):
specific_assets = valid.Param(valid.namelist, [])
ebrisk_max... | Reduced max_weight [skip CI] | py |
diff --git a/reana_db/version.py b/reana_db/version.py
index <HASH>..<HASH> 100755
--- a/reana_db/version.py
+++ b/reana_db/version.py
@@ -14,4 +14,4 @@ and parsed by ``setup.py``.
from __future__ import absolute_import, print_function
-__version__ = "0.4.0"
+__version__ = "0.5.0.dev20181116" | release: <I>.de<I> | py |
diff --git a/parsl/dataflow/dflow.py b/parsl/dataflow/dflow.py
index <HASH>..<HASH> 100644
--- a/parsl/dataflow/dflow.py
+++ b/parsl/dataflow/dflow.py
@@ -481,8 +481,7 @@ class DataFlowKernel(object):
if self._count_deps(task_record['depends']) == 0:
# We can now launch *task*
- new_a... | Remove unneeded task_id param from sanitize_and_wrap (#<I>) See #<I> | py |
diff --git a/wsproto/compat.py b/wsproto/compat.py
index <HASH>..<HASH> 100644
--- a/wsproto/compat.py
+++ b/wsproto/compat.py
@@ -1,8 +1,4 @@
import sys
-if sys.version_info.major > 2:
- PY2 = False
- PY3 = True
-else:
- PY2 = True
- PY3 = False
+PY2 = sys.version_info.major == 2
+PY3 = sys.version_info... | Bit neater way to set PY2/PY3 up. | py |
diff --git a/bcbio/variation/ensemble.py b/bcbio/variation/ensemble.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/ensemble.py
+++ b/bcbio/variation/ensemble.py
@@ -98,7 +98,7 @@ def _prep_config_shared(sample, variants, align_bam, ref_file, base_dir,
exp["intervals"] = os.path.abspath(intervals)
fo... | Remove reference and filtered calls when preparing ensemble and comparison configurations | py |
diff --git a/tests/basics/namedtuple1.py b/tests/basics/namedtuple1.py
index <HASH>..<HASH> 100644
--- a/tests/basics/namedtuple1.py
+++ b/tests/basics/namedtuple1.py
@@ -24,6 +24,9 @@ for t in T(1, 2), T(bar=1, foo=2):
print(isinstance(t, tuple))
+# Create using positional and keyword args
+print(T(3, bar=4))... | tests/basics/namedtuple1: Add test for creating with pos and kw args. | py |
diff --git a/tests/test_settings.py b/tests/test_settings.py
index <HASH>..<HASH> 100644
--- a/tests/test_settings.py
+++ b/tests/test_settings.py
@@ -3,7 +3,7 @@
import copy
import django
-from django.test import override_settings
+from django.test.utils import override_settings
from django_coverage_plugin impo... | Import override_settings from a more-available place | py |
diff --git a/test_functional.py b/test_functional.py
index <HASH>..<HASH> 100644
--- a/test_functional.py
+++ b/test_functional.py
@@ -86,7 +86,7 @@ def test_sync_up_by_name():
_teardown_test_files(names)
-def test_sync_up_by_arrival():
+def test_sync_up_by_arrival_threaded():
names, name_filter = _prepar... | added functional test for single threaded generator-based upload sync | py |
diff --git a/tests/test_server.py b/tests/test_server.py
index <HASH>..<HASH> 100644
--- a/tests/test_server.py
+++ b/tests/test_server.py
@@ -131,3 +131,18 @@ def test_bookmark_api_delete(client, d_url):
rd = client.delete(d_url)
assert rd.status_code == 200
assert rd.get_json() == response_template['su... | new: test: refresh_bookmark | py |
diff --git a/pulsar/client/transport/standard.py b/pulsar/client/transport/standard.py
index <HASH>..<HASH> 100644
--- a/pulsar/client/transport/standard.py
+++ b/pulsar/client/transport/standard.py
@@ -24,11 +24,13 @@ class Urllib2Transport(object):
input = None
try:
if input_path:
- ... | Bring in standard transport fix from Galaxy. | py |
diff --git a/salt/runner.py b/salt/runner.py
index <HASH>..<HASH> 100644
--- a/salt/runner.py
+++ b/salt/runner.py
@@ -40,7 +40,12 @@ class RunnerClient(mixins.SyncClientMixin, mixins.AsyncClientMixin, object):
def __init__(self, opts):
self.opts = opts
- self.functions = salt.loader.runner(opts)... | Lazily load functions, since lots of clients don't even execute runners | py |
diff --git a/virtualbox/library_ext/machine.py b/virtualbox/library_ext/machine.py
index <HASH>..<HASH> 100644
--- a/virtualbox/library_ext/machine.py
+++ b/virtualbox/library_ext/machine.py
@@ -56,8 +56,9 @@ class IMachine(library.IMachine):
progress.wait_for_completion(-1)
media = []
... | resolve bug #<I>. Thanks for highlighting this @danikdanik. Keep the issues flowing, when I get moments I always come back to check them out and hopefully resolve them without too much drama :-). Cheers | py |
diff --git a/programs/demag_gui.py b/programs/demag_gui.py
index <HASH>..<HASH> 100755
--- a/programs/demag_gui.py
+++ b/programs/demag_gui.py
@@ -576,7 +576,7 @@ class Demag_GUI(wx.Frame):
self.save_fit_button.SetFont(font2)
self.save_fit_button.SetHelpText(dgh.save_fit_btn_help)
- self.dele... | Demag GUI clarify text on delete button, #<I> | py |
diff --git a/theanets/layers.py b/theanets/layers.py
index <HASH>..<HASH> 100644
--- a/theanets/layers.py
+++ b/theanets/layers.py
@@ -206,6 +206,26 @@ def add_dropout(input, probability, rng):
return input * rng.binomial(size=input.shape, n=1, p=1-probability, dtype=FLOAT)
+def build(layer, *args, **kwargs):
... | Add module-level helper for building new layers. | py |
diff --git a/pyecharts/globals.py b/pyecharts/globals.py
index <HASH>..<HASH> 100644
--- a/pyecharts/globals.py
+++ b/pyecharts/globals.py
@@ -117,6 +117,11 @@ class _NotebookType:
ZEPPELIN = "zeppelin"
+class _OnlineHost:
+ DEFAULT_HOST = "https://assets.pyecharts.org/assets/"
+ NOTEBOOK_HOST = "http://... | Update: add notebook-host to reslove offline render problem (#<I>) | py |
diff --git a/isort/settings.py b/isort/settings.py
index <HASH>..<HASH> 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -67,7 +67,7 @@ class WrapModes(enum.Enum):
@staticmethod
def from_string(value: str) -> 'WrapModes':
- return getattr(WrapModes, value, None) or WrapModes(int(value))
+ ... | Support integer values for `multi_line_output` from TOML files TOML is a typed file format so if you had `multi_line_output = 3` specified in your `pyproject.toml` file you would get an error like this after the changes in <URL>: attribute name must be string This change makes sure the attribute name is a string when... | py |
diff --git a/insights/specs/sos_archive.py b/insights/specs/sos_archive.py
index <HASH>..<HASH> 100644
--- a/insights/specs/sos_archive.py
+++ b/insights/specs/sos_archive.py
@@ -24,7 +24,7 @@ class SosSpecs(Specs):
ceph_osd_tree_text = simple_file("sos_commands/ceph/ceph_osd_tree")
ceph_report = simple_file(... | Add sos_commands/services/chkconfig_--list to sos archive specs. (#<I>) Fixes #<I> | py |
diff --git a/pynetstring.py b/pynetstring.py
index <HASH>..<HASH> 100644
--- a/pynetstring.py
+++ b/pynetstring.py
@@ -40,7 +40,7 @@ class Decoder:
self._length = None
self._decoded = []
self._maxlen = maxlen
- self._maxlen_bytes = math.log(self._maxlen + 1, 10) if self._maxlen else 0
... | Fixed calculation of plausible max size of length declaration. | py |
diff --git a/yt_array.py b/yt_array.py
index <HASH>..<HASH> 100644
--- a/yt_array.py
+++ b/yt_array.py
@@ -39,7 +39,9 @@ from yt.utilities.exceptions import \
from numbers import Number as numeric_type
from yt.utilities.on_demand_imports import _astropy
from sympy import Rational
-from yt.units.unit_lookup_table imp... | Add a compatibility layer for pickles saved with old unit LUTs --HG-- branch : yt | py |
diff --git a/mobly/config_parser.py b/mobly/config_parser.py
index <HASH>..<HASH> 100644
--- a/mobly/config_parser.py
+++ b/mobly/config_parser.py
@@ -182,8 +182,8 @@ class TestRunConfig(object):
# Deprecated, use 'testbed_name'
self.test_bed_name = None
self.testbed_name = None
- self... | Defaults the controller and user_params to empty dictionaries in TestRunConfig. These defaults prevent users from needing to check if they are None first, in case the runner left these values unset. | py |
diff --git a/_pytest/assertion/rewrite.py b/_pytest/assertion/rewrite.py
index <HASH>..<HASH> 100644
--- a/_pytest/assertion/rewrite.py
+++ b/_pytest/assertion/rewrite.py
@@ -106,7 +106,8 @@ class AssertionRewritingHook(object):
# common case) or it's blocked by a non-dir node. In the
... | same as 6e<I>b<I>f<I>: ENOTDIR is ENOENT on windows | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -111,7 +111,7 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-html_theme = 'default'
+html_theme = 'alabaster'
# Theme op... | Switches docs theme to alabaster | py |
diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index <HASH>..<HASH> 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -19,6 +19,8 @@ from os.path import join
from weakref import ref
from warnings import simplefilter
+import flaky
+
import pytest
from pretend import raiser
@@ -436,6 +438,7 @@ class T... | Mark this test as flaky (#<I>) | py |
diff --git a/pyspider/libs/counter.py b/pyspider/libs/counter.py
index <HASH>..<HASH> 100644
--- a/pyspider/libs/counter.py
+++ b/pyspider/libs/counter.py
@@ -324,7 +324,8 @@ class CounterManager(DictMixin):
def dump(self, filename):
"""Dump counters to file"""
try:
- cPickle.dump(self... | fix ResourceWarning: unclosed file | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@ setup(
description="Asynchronous Python driver for MongoDB <http://www.mongodb.org>",
author="Alexandre Fiori, Christian Hergert",
author_email="fiorix@gmail.com, chris@dronelabs.com",
- url="h... | Updated URL as chergert's fork no longer exist | py |
diff --git a/glances/plugins/glances_fs.py b/glances/plugins/glances_fs.py
index <HASH>..<HASH> 100644
--- a/glances/plugins/glances_fs.py
+++ b/glances/plugins/glances_fs.py
@@ -132,7 +132,7 @@ class Plugin(GlancesPlugin):
'device_name': fs.device,
'fs_type': fs.fstype,
... | Correct an issue on unicode for Python 3 | py |
diff --git a/cpmorphology.py b/cpmorphology.py
index <HASH>..<HASH> 100755
--- a/cpmorphology.py
+++ b/cpmorphology.py
@@ -791,6 +791,7 @@ def triangle_areas(p1,p2,p3):
a /= 2.0
del v1, v2, cross1, cross2
a = a.copy() # a is a view on v1; shed one dimension.
+ a = np.abs(a)
#
# Handle small... | cpmorphology's triangle_areas can handle both winding orders. EditObjectsManually picks the control points using a greedy approach that consecutively finds the point that improves the approximation the most. | py |
diff --git a/pefile.py b/pefile.py
index <HASH>..<HASH> 100644
--- a/pefile.py
+++ b/pefile.py
@@ -524,6 +524,7 @@ def get_sublang_name_for_lang( lang_value, sublang_value ):
#
def parse_strings(data, counter, l):
i = 0
+ error_count = 0
while i < len(data):
data_slice = data[i:i + 2]
... | -Added additional check in the resources string parser to avoid processing strings of length zero | py |
diff --git a/ansible_runner/runner_config.py b/ansible_runner/runner_config.py
index <HASH>..<HASH> 100644
--- a/ansible_runner/runner_config.py
+++ b/ansible_runner/runner_config.py
@@ -204,7 +204,9 @@ class RunnerConfig(object):
# Use local callback directory
callback_dir = self.env.get('AWX_LIB_D... | Set correct stdout callback location for containerized jobs | py |
diff --git a/matchups/tests/test_comp_funcs.py b/matchups/tests/test_comp_funcs.py
index <HASH>..<HASH> 100644
--- a/matchups/tests/test_comp_funcs.py
+++ b/matchups/tests/test_comp_funcs.py
@@ -1,11 +1,13 @@
-from compdevkit import TestAPI
+from compdevkit import TestEndpoints
import matchups
def test_get_parame... | Rename TestAPI to TestEndpoints | py |
diff --git a/esda/__init__.py b/esda/__init__.py
index <HASH>..<HASH> 100644
--- a/esda/__init__.py
+++ b/esda/__init__.py
@@ -1,4 +1,4 @@
-__version__ = "2.3.0"
+__version__ = "2.3.1"
"""
:mod:`esda` --- Exploratory Spatial Data Analysis
================================================= | [ENH] bf release | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ package_json = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'package
with open(package_json) as f:
version = json.load(f)['version']
-description='A data-structure parameterization system writt... | remove stray comma in setup.py | py |
diff --git a/examples/voc/infer.py b/examples/voc/infer.py
index <HASH>..<HASH> 100755
--- a/examples/voc/infer.py
+++ b/examples/voc/infer.py
@@ -29,7 +29,15 @@ def main():
dataset = fcn.datasets.PascalVOC2012SegmentationDataset('val')
- model = fcn.models.FCN8s(n_class=len(dataset.label_names))
+ if os... | Support inference of fcn<I>s, fcn<I>s | py |
diff --git a/utils/media2warc.py b/utils/media2warc.py
index <HASH>..<HASH> 100755
--- a/utils/media2warc.py
+++ b/utils/media2warc.py
@@ -251,11 +251,11 @@ def main():
for i in range(threads):
t = GetResource(q)
- t.setDaemon(True)
+ t.daemon = True
t.start()
wt = WriteWar... | Set daemon attribute instead of using setDaemon method that was deprecated in Python <I>. | py |
diff --git a/seqfile/seqfile.py b/seqfile/seqfile.py
index <HASH>..<HASH> 100644
--- a/seqfile/seqfile.py
+++ b/seqfile/seqfile.py
@@ -1,6 +1,7 @@
import os as _os
import re as _re
import glob as _glob
+import errno as _errno
import natsort as _natsort
def _getStrBetween(prefix, s, suffix):
@@ -15... | Don't retry if file creation fails for uninteresting reasons. Only if the failure was owing to the file having been created already (say, by another process) will another attempt be made. | py |
diff --git a/flask_login.py b/flask_login.py
index <HASH>..<HASH> 100644
--- a/flask_login.py
+++ b/flask_login.py
@@ -79,7 +79,7 @@ AUTH_HEADER_NAME = 'Authorization'
# A set of session keys that are populated by Flask-Login. Use this set to
# purge keys safely and accurately.
-SESSION_KEYS = set(['user_id', '_id'... | add "remember" key to session keys | py |
diff --git a/source/rafcon/utils/log.py b/source/rafcon/utils/log.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/utils/log.py
+++ b/source/rafcon/utils/log.py
@@ -133,4 +133,34 @@ def get_logger(name):
existing_loggers[name] = logger
- return logger
\ No newline at end of file
+ return logger
+
+
+# ... | Add decorator for catching and logging exceptions | py |
diff --git a/py/h2o_import.py b/py/h2o_import.py
index <HASH>..<HASH> 100644
--- a/py/h2o_import.py
+++ b/py/h2o_import.py
@@ -426,6 +426,8 @@ def delete_keys(node=None, pattern=None, timeoutSecs=120):
print "Not deleting a tree key from DRF: %s" % k
elif 'DRF_' in k['key']:
... | don't remove __RFModel__ keys. causing NPE's when I do that. | py |
diff --git a/thefuck/rules/pacman.py b/thefuck/rules/pacman.py
index <HASH>..<HASH> 100644
--- a/thefuck/rules/pacman.py
+++ b/thefuck/rules/pacman.py
@@ -17,7 +17,7 @@ def __get_pkgfile(command):
try:
return subprocess.check_output(
['pkgfile', '-b', '-v', command.script.split(" ")[0]],
- ... | fix(pacman): make the entire rule py2-compatible One reference to subprocess.DEVNULL remained. | py |
diff --git a/test/unit/test_utils.py b/test/unit/test_utils.py
index <HASH>..<HASH> 100644
--- a/test/unit/test_utils.py
+++ b/test/unit/test_utils.py
@@ -314,7 +314,7 @@ class UrlTesterChainTest(
shuffle(self.tested_instance.url_testers)
- def test_any_match_returns_true_for_matching_ur... | Rename test_any_match_returns_true_for_matching_urls The method is being renamed to test_any_match_expecting_true | py |
diff --git a/udiskie/udisks2.py b/udiskie/udisks2.py
index <HASH>..<HASH> 100644
--- a/udiskie/udisks2.py
+++ b/udiskie/udisks2.py
@@ -339,7 +339,7 @@ class Device:
@property
def is_systeminternal(self):
"""Check if the device is internal."""
- return self._P.Block.HintSystem
+ return b... | Cast HintSystem to bool to avoid weird dbus data types | py |
diff --git a/src/edeposit/amqp/harvester/autoparser/conf_reader.py b/src/edeposit/amqp/harvester/autoparser/conf_reader.py
index <HASH>..<HASH> 100755
--- a/src/edeposit/amqp/harvester/autoparser/conf_reader.py
+++ b/src/edeposit/amqp/harvester/autoparser/conf_reader.py
@@ -53,6 +53,10 @@ def _process_config_item(item)... | #<I>; conf_reader.py: Added support for $name in config file. | py |
diff --git a/ckanserviceprovider/web.py b/ckanserviceprovider/web.py
index <HASH>..<HASH> 100644
--- a/ckanserviceprovider/web.py
+++ b/ckanserviceprovider/web.py
@@ -35,6 +35,8 @@ scheduler = apscheduler.Scheduler()
#Allow a day for jobs to be run otherwise drop them. Should rerun these later.
scheduler.misfire_grac... | Accept urls with or without trailing slashes | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -77,12 +77,13 @@ extensions = [
# def __getattr__(cls, name):
# return Mock()
#
-MOCK_MODULES = ['numpy', 'scipy.linalg.blas', 'blas', 'scipy.optimize', 'scipy.optimize.... | [rtd] last removal of rtd | py |
diff --git a/openquake/engine/performance.py b/openquake/engine/performance.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/performance.py
+++ b/openquake/engine/performance.py
@@ -46,7 +46,7 @@ class PerformanceMonitor(object):
2) there is an attribute self.job.id
"""
def newmeth(self)... | A small improvement to the .monitor decorator Former-commit-id: b1f9d<I>c0d<I>e2a8ab4e2a0a<I>a | py |
diff --git a/DeepSpeech.py b/DeepSpeech.py
index <HASH>..<HASH> 100755
--- a/DeepSpeech.py
+++ b/DeepSpeech.py
@@ -808,6 +808,7 @@ def export():
self.output_arrays = output_names
self.output_file = output_tflite_path
self.output_format = 'T... | Enable TFLite post-training quantization Fixes #<I> | py |
diff --git a/tests/test_morris_util.py b/tests/test_morris_util.py
index <HASH>..<HASH> 100644
--- a/tests/test_morris_util.py
+++ b/tests/test_morris_util.py
@@ -253,7 +253,7 @@ def test_find_maximum():
def test_catch_combos_too_large():
- N = 1e6
+ N = int(1e6)
k_choices = 4
num_params = 2
i... | test_morris_util cast to int to pass tests | py |
diff --git a/nox.py b/nox.py
index <HASH>..<HASH> 100644
--- a/nox.py
+++ b/nox.py
@@ -347,6 +347,7 @@ def clean(session):
get_path('.cache'),
get_path('.coverage'),
get_path('build'),
+ get_path('src', 'bezier', '__pycache__'),
get_path('tests', '__pycache__'),
get_p... | Updating `nox -s clean` for inplace Python 3 installs. | py |
diff --git a/cas/views.py b/cas/views.py
index <HASH>..<HASH> 100644
--- a/cas/views.py
+++ b/cas/views.py
@@ -141,9 +141,12 @@ def _logout_url(request, next_page=None):
url = urlparse.urljoin(settings.CAS_SERVER_URL, 'logout')
if next_page and getattr(settings, 'CAS_PROVIDE_URL_TO_LOGOUT', True):
- ... | Modified "_logout_url" helper function to accept protocol-rooted urls for "next_page" argument and bypass redirect standard url construction. | py |
diff --git a/runcommands/command.py b/runcommands/command.py
index <HASH>..<HASH> 100644
--- a/runcommands/command.py
+++ b/runcommands/command.py
@@ -462,6 +462,7 @@ class Command:
formatter_class=argparse.RawDescriptionHelpFormatter,
argument_default=argparse.SUPPRESS,
add_help=... | Don't allow options to be abbreviated on the command line Allowing options to be abbreviated makes parsing args more difficult. Consistency and less ambiguity is good too. | py |
diff --git a/salt/cloud/clouds/joyent.py b/salt/cloud/clouds/joyent.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/joyent.py
+++ b/salt/cloud/clouds/joyent.py
@@ -147,6 +147,7 @@ def get_image(vm_):
vm_image = config.get_cloud_config_value('image', vm_, __opts__)
if vm_image and str(vm_image) in ima... | Auto-lookup image UUID, and assign as name | py |
diff --git a/tutorials/tagger/config_allennlp.py b/tutorials/tagger/config_allennlp.py
index <HASH>..<HASH> 100644
--- a/tutorials/tagger/config_allennlp.py
+++ b/tutorials/tagger/config_allennlp.py
@@ -66,7 +66,7 @@ class LstmTagger(Model):
def forward(self,
sentence: Dict[str, torch.Tensor],
-... | Fix the annotation for a method's return type (#<I>) | py |
diff --git a/tests/site_test.py b/tests/site_test.py
index <HASH>..<HASH> 100644
--- a/tests/site_test.py
+++ b/tests/site_test.py
@@ -191,7 +191,7 @@ class SiteCollectionFilterTestCase(unittest.TestCase):
numpy.testing.assert_array_equal(data_expanded, data_expanded_expected)
-class SitePickleTest(unittes... | tests/site: corrected a test case class name | py |
diff --git a/pyemma/_base/logging.py b/pyemma/_base/logging.py
index <HASH>..<HASH> 100644
--- a/pyemma/_base/logging.py
+++ b/pyemma/_base/logging.py
@@ -91,5 +91,10 @@ class Loggable(object):
return remove_logger
def __getstate__(self):
- # do not pickle Loggable's stuff (we want to recreate in... | restore getstate (to avoid bug in multiprocessing) | py |
diff --git a/salt/states/postgres_group.py b/salt/states/postgres_group.py
index <HASH>..<HASH> 100644
--- a/salt/states/postgres_group.py
+++ b/salt/states/postgres_group.py
@@ -28,9 +28,7 @@ def __virtual__():
'''
Only load if the postgres module is present
'''
- return 'postgres_group' if (
- ... | Not renaming, return a boolean in `__virtual__()`. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ setup(
'cryptography>=1.2.3',
'jsontokens>=0.0.2',
'keylib>=0.0.5',
- 'blockstack-zones>=0.14.1',
+ 'blockstack-zones>=0.14.0',
'warlock>=1.3.0',
'six>=... | revert: require <I> of blockstack-zones (since it's compatible with <I>) | py |
diff --git a/lifxlan/light.py b/lifxlan/light.py
index <HASH>..<HASH> 100644
--- a/lifxlan/light.py
+++ b/lifxlan/light.py
@@ -18,8 +18,8 @@ WARM_WHITE = [58275, 0, 65535, 3200]
GOLD = [58275, 0, 65535, 2500]
class Light(Device):
- def __init__(self, mac_addr, service, port, source_id, ip_addr, verbose=False):
-... | added defaults for the light constructor, so people can create standalone light objects without discovery | py |
diff --git a/polyaxon/projects/tasks.py b/polyaxon/projects/tasks.py
index <HASH>..<HASH> 100644
--- a/polyaxon/projects/tasks.py
+++ b/polyaxon/projects/tasks.py
@@ -61,7 +61,7 @@ def get_valid_project(project_id):
@celery_app.task(name=CeleryTasks.PROJECTS_TENSORBOARD_START, ignore_result=True)
def start_tensorboar... | Check if project has plugin jobs before start new ones | py |
diff --git a/iotilecore/dev/iotileobj.py b/iotilecore/dev/iotileobj.py
index <HASH>..<HASH> 100644
--- a/iotilecore/dev/iotileobj.py
+++ b/iotilecore/dev/iotileobj.py
@@ -67,6 +67,10 @@ class IOTile:
#Load all of the build products that can be created by this IOTile
self.products = modsettings.get('products', {})... | Add dependency list to iotile object | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
from distutils.core import setup
setup(name='datapoint',
- version='0.2',
+ version='0.2.1',
install_requires=[
"requests >= 2.3.0",
], | Incremented version number to <I> | py |
diff --git a/src/scs_core/aws/client/mqtt_client.py b/src/scs_core/aws/client/mqtt_client.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/aws/client/mqtt_client.py
+++ b/src/scs_core/aws/client/mqtt_client.py
@@ -32,8 +32,8 @@ class MQTTClient(object):
__QUEUE_DRAINING_FREQUENCY = 1 # re... | Extended AWS MQTT recon max for <I>. | py |
diff --git a/cicoclient/cli.py b/cicoclient/cli.py
index <HASH>..<HASH> 100644
--- a/cicoclient/cli.py
+++ b/cicoclient/cli.py
@@ -79,7 +79,7 @@ class NodeGet(Lister):
parser.add_argument(
'--release',
metavar='<release>',
- choices=['5', '6', '7', '8', '8-stream'],
+ ... | Add 9-stream support Just adding 9-stream as a possible choice for --release (now available in CI infra) | py |
diff --git a/consul/base.py b/consul/base.py
index <HASH>..<HASH> 100644
--- a/consul/base.py
+++ b/consul/base.py
@@ -738,9 +738,12 @@ class Consul(object):
for more information
https://www.consul.io/docs/agent/services.html
"""
+
payload = {}
+
... | backward support for <<I> (if not specified this option will not be added to the json request) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@ class DiscoverTest(Command):
setup(
name='isc_dhcp_leases',
- version='0.5.3',
+ version='0.6.0',
packages=['isc_dhcp_leases'],
url='https://github.com/MartijnBraam/python-isc-dhcp-leases... | Bumped version to <I> | py |
diff --git a/kerncraft/kernel.py b/kerncraft/kernel.py
index <HASH>..<HASH> 100755
--- a/kerncraft/kernel.py
+++ b/kerncraft/kernel.py
@@ -1111,7 +1111,8 @@ class KernelCode(Kernel):
compiler, compiler_args = self._machine.get_compiler()
- cmd = [compiler, os.path.basename(out_filename_asm), 'dummy.... | using compiler args during assembly stage. FIX #<I> | py |
diff --git a/jsonklog/formatter.py b/jsonklog/formatter.py
index <HASH>..<HASH> 100644
--- a/jsonklog/formatter.py
+++ b/jsonklog/formatter.py
@@ -1,6 +1,6 @@
#
# Copyright [2012] [Patrick Ancillotti]
-# Copyright [2011] [Jason Koelker]
+# Copyright [2011] [Jason Köelker]
#
# Licensed under the Apache Licen... | Undo fix, to make the merge work | py |
diff --git a/pyphi/subsystem.py b/pyphi/subsystem.py
index <HASH>..<HASH> 100644
--- a/pyphi/subsystem.py
+++ b/pyphi/subsystem.py
@@ -363,10 +363,11 @@ class Subsystem:
def __eq__(self, other):
"""Return whether this subsystem is equal to the other object.
- Two subsystems are equal if their set... | Consider cut when comparing Subsystem equality | py |
diff --git a/dbt/utils.py b/dbt/utils.py
index <HASH>..<HASH> 100644
--- a/dbt/utils.py
+++ b/dbt/utils.py
@@ -149,7 +149,13 @@ def find_macro_by_name(flat_graph, target_name, target_package):
def find_by_name(flat_graph, target_name, target_package, subgraph,
nodetype):
for name, model in flat_... | throw compiler error for nodes with dots in their names (#<I>) * throw compiler error for nodes with dots in their names * pep8 | py |
diff --git a/monero/backends/jsonrpc.py b/monero/backends/jsonrpc.py
index <HASH>..<HASH> 100644
--- a/monero/backends/jsonrpc.py
+++ b/monero/backends/jsonrpc.py
@@ -83,6 +83,8 @@ class JSONRPCDaemon(object):
hash=tx['id_hash'],
fee=from_atomic(tx['fee']),
timestamp=d... | Load full content into Transaction from mempool | py |
diff --git a/plugin/import-js-sublime/import-js.py b/plugin/import-js-sublime/import-js.py
index <HASH>..<HASH> 100644
--- a/plugin/import-js-sublime/import-js.py
+++ b/plugin/import-js-sublime/import-js.py
@@ -11,7 +11,6 @@ class ImportJsCommand(sublime_plugin.TextCommand):
project_root = self.view.window().extra... | Don't use shell=True when calling import-js This is considered bad practice since it opens up for script injection. Right now it's probably not a problem since we hardcode the command to run, but I'm about to add passing in the current word here, and we don't want `rm -rf /` to wipe out anything. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,7 @@ dev_requirements = [
setup(
name = 'OpenFisca-Core',
- version = '35.6.0',
+ version = '35.7.0',
author = 'OpenFisca Team',
author_email = 'contact@openfisca.org',
classifiers = [ | Bump minor to <I> | py |
diff --git a/scanpy/readwrite.py b/scanpy/readwrite.py
index <HASH>..<HASH> 100644
--- a/scanpy/readwrite.py
+++ b/scanpy/readwrite.py
@@ -667,6 +667,11 @@ def is_valid_filename(filename, return_ext=False):
"""Check whether the argument is a filename."""
ext = Path(filename).suffixes
+ if len(ext) > 2:
+... | write warning for filenames with many extensions | py |
diff --git a/tests/v6/test_tohu_namespace.py b/tests/v6/test_tohu_namespace.py
index <HASH>..<HASH> 100644
--- a/tests/v6/test_tohu_namespace.py
+++ b/tests/v6/test_tohu_namespace.py
@@ -59,3 +59,29 @@ def test_add_anonymous_generator():
assert ns[names_expected[0]] is g1
assert ns[names_expected[1]] is g2
... | Add test that adding generators twice with the same name is a no-op | py |
diff --git a/icekit/mixins.py b/icekit/mixins.py
index <HASH>..<HASH> 100644
--- a/icekit/mixins.py
+++ b/icekit/mixins.py
@@ -173,7 +173,7 @@ class ListableMixin(models.Model):
"""Only called if no class in the MRO defines the function"""
if item == 'get_list_image':
return self.__get_li... | this getattr should pass calls up the MRO | py |
diff --git a/pendulum/version.py b/pendulum/version.py
index <HASH>..<HASH> 100644
--- a/pendulum/version.py
+++ b/pendulum/version.py
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
-VERSION = '0.3'
+VERSION = '0.3.1' | Bumps version to <I> | py |
diff --git a/scraper/util.py b/scraper/util.py
index <HASH>..<HASH> 100644
--- a/scraper/util.py
+++ b/scraper/util.py
@@ -14,6 +14,11 @@ def execute(command, cwd=None):
elif not os.path.isdir(cwd):
raise ValueError('path does not exist: %s', cwd)
- process = Popen(command, cwd=cwd, stdout=PIPE, stde... | Explicitly disable shell on Popen | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -483,6 +483,8 @@ def build_examples(_):
logger.debug('[examples] created {0}'.format(outdir))
for exdir in next(os.walk(srcdir))[1]:
+ if exdir in {"__pycache__",}: # ignore
+ ... | docs: fixed small issue related to testing examples | py |
diff --git a/sortedm2m/forms.py b/sortedm2m/forms.py
index <HASH>..<HASH> 100644
--- a/sortedm2m/forms.py
+++ b/sortedm2m/forms.py
@@ -35,7 +35,7 @@ class SortedCheckboxSelectMultiple(forms.CheckboxSelectMultiple):
final_attrs = self.build_attrs(attrs, name=name)
# Normalize to strings
- str_... | fix another ordering issues, use array instead of unordered set | py |
diff --git a/fmn/rules/utils.py b/fmn/rules/utils.py
index <HASH>..<HASH> 100644
--- a/fmn/rules/utils.py
+++ b/fmn/rules/utils.py
@@ -39,10 +39,10 @@ def _get_pkgdb2_packages_for(config, username):
log.debug("Requesting pkgdb2 packages for user %r" % username)
def _get_page(page):
- req = requests.g... | Generate the URL before calling it, and log it | py |
diff --git a/modeltranslation/manager.py b/modeltranslation/manager.py
index <HASH>..<HASH> 100644
--- a/modeltranslation/manager.py
+++ b/modeltranslation/manager.py
@@ -9,8 +9,8 @@ from django.db.models.fields.related import RelatedField
from django.db.models.sql.where import Constraint
from django.utils.tree impor... | Iterate over translation fields only in get_fields_to_translatable_models. Potential fix for issue #<I>. | py |
diff --git a/km3pipe/db.py b/km3pipe/db.py
index <HASH>..<HASH> 100644
--- a/km3pipe/db.py
+++ b/km3pipe/db.py
@@ -17,6 +17,7 @@ import sys
import pandas as pd
+from km3pipe.tools import Timer
from km3pipe.config import Config
from km3pipe.logger import logging
@@ -49,11 +50,16 @@ class DBManager(object):
... | Adds timer for db lookup | py |
diff --git a/zipline/finance/performance/period.py b/zipline/finance/performance/period.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/performance/period.py
+++ b/zipline/finance/performance/period.py
@@ -550,8 +550,8 @@ class PerformancePeriod(object):
getattr(self, 'day_trades_remaining', float('in... | DEV: Allow net_leverage value to be forced by broker | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,8 +18,21 @@
# along with pyComtrade. If not, see <http://www.gnu.org/licenses/>.
# ====================================================================
+import os
+
from distutils.core import setup
+
+def parse_... | chore: Include package requirements in setup.py | py |
diff --git a/blockstack_cli_0.14.1/blockstack_registrar/registrar/network.py b/blockstack_cli_0.14.1/blockstack_registrar/registrar/network.py
index <HASH>..<HASH> 100644
--- a/blockstack_cli_0.14.1/blockstack_registrar/registrar/network.py
+++ b/blockstack_cli_0.14.1/blockstack_registrar/registrar/network.py
@@ -30,6 ... | added checks for max dht write, and small bug fix | py |
diff --git a/salt/daemons/__init__.py b/salt/daemons/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/daemons/__init__.py
+++ b/salt/daemons/__init__.py
@@ -25,7 +25,7 @@ class IofloMaster(object):
Start up ioflo
'''
behaviors = []
- behaviors.append('salt.transport.road.raet', 'salt... | ioflo behavior path changes | py |
diff --git a/PySimpleGUI.py b/PySimpleGUI.py
index <HASH>..<HASH> 100644
--- a/PySimpleGUI.py
+++ b/PySimpleGUI.py
@@ -7897,14 +7897,6 @@ class Window:
self.TKroot.unbind("<Pause>")
self.DebuggerEnabled = False
- def VisibilityChanged(self):
- """
- This is a completely dummy method... | Removed extra copy of VisibilityChanged method. | py |
diff --git a/githubcity/ghcity.py b/githubcity/ghcity.py
index <HASH>..<HASH> 100755
--- a/githubcity/ghcity.py
+++ b/githubcity/ghcity.py
@@ -46,8 +46,7 @@ from multiprocessing import Lock
import sys
import logging
import coloredlogs
-sys.path.append(os.getcwd())
-from . import ghuser
+import ghuser
GitHubUser = g... | Solving problem with names and addin extra param to export #<I> #<I> | py |
diff --git a/src/aiosmtplib/__init__.py b/src/aiosmtplib/__init__.py
index <HASH>..<HASH> 100644
--- a/src/aiosmtplib/__init__.py
+++ b/src/aiosmtplib/__init__.py
@@ -29,7 +29,7 @@ if __name__ == '__main__':
def main() -> None:
hostname = input('SMTP server hostname [localhost]: ') or 'localhost'
- ... | Fixed mypy SupportsInt check | py |
diff --git a/saltcloud/cloud.py b/saltcloud/cloud.py
index <HASH>..<HASH> 100644
--- a/saltcloud/cloud.py
+++ b/saltcloud/cloud.py
@@ -914,7 +914,8 @@ class Map(Cloud):
for vm_name, vm_details in vms.copy().iteritems():
if vm_details == 'Absent':
query_map[... | Updating syntax to be more pythonic | py |
diff --git a/gui/component.py b/gui/component.py
index <HASH>..<HASH> 100644
--- a/gui/component.py
+++ b/gui/component.py
@@ -482,17 +482,6 @@ class DesignerMixin(object):
def _set_designer(self, func):
if DEBUG: print "binding designer handler...", func, self._meta.name
if func:
- ... | removed unbinding in design mode (after all, seems to not have any effect) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,5 +20,6 @@ setup(
],
keywords = 'postgresql database bindings sql',
packages = find_packages(exclude = ['build', 'dist']),
+ package_data = {'': ['README.md', 'requirements.txt']},
install_requires =... | Including README and requirements.txt with module install | py |
diff --git a/master/buildbot/buildslave.py b/master/buildbot/buildslave.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/buildslave.py
+++ b/master/buildbot/buildslave.py
@@ -443,7 +443,7 @@ class AbstractBuildSlave(pb.Avatar, service.MultiService):
return d
def perspective_keepalive(self):
- ... | count a slave-side keepalive as a message from the slave | py |
diff --git a/spacy/__init__.py b/spacy/__init__.py
index <HASH>..<HASH> 100644
--- a/spacy/__init__.py
+++ b/spacy/__init__.py
@@ -25,7 +25,9 @@ def load(name, **overrides):
path = util.match_best_version(target_name, target_version, path)
if isinstance(overrides.get('vectors'), basestring):
- vector... | Fix mistake loading GloVe vectors. GloVe vectors now loaded by default if present, as promised. | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -250,6 +250,7 @@ VALID_OPTS = {
'random_reauth_delay': int,
'syndic_event_forward_timeout': float,
'syndic_max_event_process_time': float,
+ 'syndic_jid_forward_cache_hwm': int,
'... | Add syndic_jid_forward_cache_hwm configuration | py |
diff --git a/sos/plugins/lvm2.py b/sos/plugins/lvm2.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/lvm2.py
+++ b/sos/plugins/lvm2.py
@@ -37,7 +37,7 @@ class Lvm2(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
lvmdump_opts = "-a -m"
cmd = lvmdump_cmd % (lvmdump_opts,
... | [lvm2] don't chroot if tmp is not inside sysroot | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.