diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/bit/network/services.py b/bit/network/services.py
index <HASH>..<HASH> 100644
--- a/bit/network/services.py
+++ b/bit/network/services.py
@@ -1,5 +1,6 @@
import requests
import json
+import logging
from decimal import Decimal, getcontext
from bit.constants import BTC
@@ -73,7 +74,8 @@ class RPCHost:
... | Logs warning if broadcasting tx fails not due to connection error | 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
@@ -180,7 +180,7 @@ class DataFlowKernel(object):
atexit.register(self.atexit_cleanup)
- def _create_task_log_info(self, task_id, fail_mode=None):
+ d... | Remove a None case for _create_task_log_info fail mode (#<I>) All invocations supply a value for this and there is no sensible default | py |
diff --git a/pyramid_sacrud/includes/assets.py b/pyramid_sacrud/includes/assets.py
index <HASH>..<HASH> 100644
--- a/pyramid_sacrud/includes/assets.py
+++ b/pyramid_sacrud/includes/assets.py
@@ -11,17 +11,15 @@ Assets
from ..common import _silent_none
-def add_jinja2(config):
- config.include('pyramid_jinja2')
... | fix error with jinja2 Environment | py |
diff --git a/src/oidcendpoint/session/claims.py b/src/oidcendpoint/session/claims.py
index <HASH>..<HASH> 100755
--- a/src/oidcendpoint/session/claims.py
+++ b/src/oidcendpoint/session/claims.py
@@ -42,7 +42,10 @@ class ClaimsInterface:
def _get_client_claims(self, client_id, usage):
client_info = self.... | Keep backwards compatibility with client claims | py |
diff --git a/gwpy/plotter/core.py b/gwpy/plotter/core.py
index <HASH>..<HASH> 100644
--- a/gwpy/plotter/core.py
+++ b/gwpy/plotter/core.py
@@ -1068,10 +1068,9 @@ class Plot(figure.Figure):
axargs, artistargs : `list` of `dict`
separated kwarg `dict` for the the axes and the artists
"""
- ... | Plot._parse_kwargs: resolved pylint complaint initialise output as list of 2 lists, rather than appending on-the-fly | py |
diff --git a/ideascaly/binder.py b/ideascaly/binder.py
index <HASH>..<HASH> 100644
--- a/ideascaly/binder.py
+++ b/ideascaly/binder.py
@@ -47,7 +47,12 @@ def bind_api(**config):
continue
if k not in self.allowed_param:
continue
- self.path = self... | Save in a variable the conversion from str to utf8 | py |
diff --git a/goatools/obo_parser.py b/goatools/obo_parser.py
index <HASH>..<HASH> 100755
--- a/goatools/obo_parser.py
+++ b/goatools/obo_parser.py
@@ -80,6 +80,9 @@ class OBOReader:
for line in lines:
if line.startswith("id:"):
rec.id = after_colon(line)
+ num = rec... | Added data member to GOTerm class, id_num, which is an integer representing a GO term so users do not have to convert back and forth fro str to int and int to str. | py |
diff --git a/nyamuk/nyamuk.py b/nyamuk/nyamuk.py
index <HASH>..<HASH> 100644
--- a/nyamuk/nyamuk.py
+++ b/nyamuk/nyamuk.py
@@ -359,7 +359,7 @@ class Nyamuk(base_nyamuk.BaseNyamuk):
i += 1
- evt = event.EventSuback(mid, granted_qos)
+ evt = event.EventSuback(mid, list(g... | feat: set granted_qos as list instead of bytearray in EventSuback (handle_suback() callback) | py |
diff --git a/treebeard/tests/test_treebeard.py b/treebeard/tests/test_treebeard.py
index <HASH>..<HASH> 100644
--- a/treebeard/tests/test_treebeard.py
+++ b/treebeard/tests/test_treebeard.py
@@ -1975,7 +1975,8 @@ class TestForm(TestNonEmptyTree):
_position = 'first-child'
class TestMoveNodeForm(Move... | Actually use a Meta class --HG-- branch : form-tests | py |
diff --git a/anpy/dossier_from_opendata.py b/anpy/dossier_from_opendata.py
index <HASH>..<HASH> 100644
--- a/anpy/dossier_from_opendata.py
+++ b/anpy/dossier_from_opendata.py
@@ -149,7 +149,10 @@ def download_open_data_doslegs(legislature):
),
}
filename, file_url = files[legislature]
- return con... | [opendata] fix regression introduced by previous commit <I>a<I>a<I>d<I>f0c<I>e<I>e<I>f6 the <I>th legislature dosleg open-data was converted even if that's not needed | py |
diff --git a/brother_ql/devicedependent.py b/brother_ql/devicedependent.py
index <HASH>..<HASH> 100644
--- a/brother_ql/devicedependent.py
+++ b/brother_ql/devicedependent.py
@@ -5,7 +5,7 @@ models = [
'QL-560',
'QL-570',
'QL-580N',
- 'QL-650TD'
+ 'QL-650TD',
'QL-700',
'QL-710W',
'QL-720NW', | small fix in brother_ql.devicedependent | py |
diff --git a/indra/preassembler/__init__.py b/indra/preassembler/__init__.py
index <HASH>..<HASH> 100644
--- a/indra/preassembler/__init__.py
+++ b/indra/preassembler/__init__.py
@@ -123,7 +123,8 @@ class Preassembler(object):
>>> st1 = Phosphorylation(braf, map2k1)
>>> st2 = Phosphorylation(b... | Fix doctest fail from Preassembler progress bar | py |
diff --git a/bcbio/variation/coverage_experimental.py b/bcbio/variation/coverage_experimental.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/coverage_experimental.py
+++ b/bcbio/variation/coverage_experimental.py
@@ -9,7 +9,7 @@ import pysam
import pybedtools
from bcbio.utils import (file_exists, tmpfile, chd... | Switch to using the robust chunker. | py |
diff --git a/tests/compute/dynamips/test_ethernet_switch.py b/tests/compute/dynamips/test_ethernet_switch.py
index <HASH>..<HASH> 100644
--- a/tests/compute/dynamips/test_ethernet_switch.py
+++ b/tests/compute/dynamips/test_ethernet_switch.py
@@ -20,7 +20,7 @@ from gns3server.compute.dynamips.nodes.ethernet_switch impo... | Rename ethernet switch arp command to mac, also rename in test | py |
diff --git a/doxypypy.py b/doxypypy.py
index <HASH>..<HASH> 100755
--- a/doxypypy.py
+++ b/doxypypy.py
@@ -412,8 +412,11 @@ class AstWalker(NodeVisitor):
contextTag = '.'.join(pathTuple[0] for pathTuple in fullPathNamespace)
# Handle both Python-mangled names (starts with '__') and bed lumps
... | Improved handling of private members and bed-lumps. | py |
diff --git a/tests/test_case.py b/tests/test_case.py
index <HASH>..<HASH> 100644
--- a/tests/test_case.py
+++ b/tests/test_case.py
@@ -5,6 +5,7 @@ import numpy as np
from andes.utils.paths import get_case
+andes.main.config_logger(stream_level=10)
class Test5Bus(unittest.TestCase):
def setUp(self) -> None: | Output logs for debugging. | py |
diff --git a/salt/beacons/adb.py b/salt/beacons/adb.py
index <HASH>..<HASH> 100644
--- a/salt/beacons/adb.py
+++ b/salt/beacons/adb.py
@@ -1,18 +1,11 @@
-# -*- coding: utf-8 -*-
"""
Beacon to emit adb device state changes for Android devices
.. versionadded:: 2016.3.0
"""
-
-# Import Python libs
-from __future__ ... | Drop Py2 and six on salt/beacons/adb.py | py |
diff --git a/pysat/instruments/methods/testing.py b/pysat/instruments/methods/testing.py
index <HASH>..<HASH> 100644
--- a/pysat/instruments/methods/testing.py
+++ b/pysat/instruments/methods/testing.py
@@ -421,7 +421,7 @@ def modify_file_list_support(self, file_date_range=None,
"""
# Work on file index if ... | BUG: Corrected use of input keywords | py |
diff --git a/btchip/btchipPersoWizard.py b/btchip/btchipPersoWizard.py
index <HASH>..<HASH> 100644
--- a/btchip/btchipPersoWizard.py
+++ b/btchip/btchipPersoWizard.py
@@ -28,7 +28,6 @@ try:
except:
MNEMONIC = False
-from usb.core import USBError
from btchipComm import getDongle, DongleWait
from btchip import btc... | Don't include usb.core in btchipPersoWizard.py It's useless and it enforce pyusb to be a mandatory depends, but on not-Windows it's not needed. | py |
diff --git a/bcbio/variation/recalibrate.py b/bcbio/variation/recalibrate.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/recalibrate.py
+++ b/bcbio/variation/recalibrate.py
@@ -54,8 +54,7 @@ def prep_recal(data):
platform = config["algorithm"]["platform"]
broad_runner.run_fn("picard_index_ref", ... | Do not remove duplicates as part of duplication marking during variant pipeline. Fixes #<I> | py |
diff --git a/blockstack_client/scripts.py b/blockstack_client/scripts.py
index <HASH>..<HASH> 100644
--- a/blockstack_client/scripts.py
+++ b/blockstack_client/scripts.py
@@ -318,7 +318,7 @@ def tx_sign_multisig(tx, idx, redeem_script, private_keys, hashcode=bitcoin.SIGH
sig = tx_make_input_signature(tx, idx, ... | if multisig signing fails, at least tell us why | py |
diff --git a/strictyaml/exceptions.py b/strictyaml/exceptions.py
index <HASH>..<HASH> 100644
--- a/strictyaml/exceptions.py
+++ b/strictyaml/exceptions.py
@@ -1,7 +1,10 @@
from ruamel.yaml import MarkedYAMLError
from ruamel.yaml.dumper import RoundTripDumper
from ruamel.yaml import dump
-from ruamel.yaml.error impor... | BUG : Fixed ruamel.yaml importing so that it works with earlier versions too. | py |
diff --git a/dynaconf/constants.py b/dynaconf/constants.py
index <HASH>..<HASH> 100644
--- a/dynaconf/constants.py
+++ b/dynaconf/constants.py
@@ -31,7 +31,7 @@ settings = Dynaconf(
)
# `envvar_prefix` = export envvars with `export DYNACONF_FOO=bar`.
-# `settings_files` = Load this files in the order.
+# `settings_... | Fix typo (#<I>) | py |
diff --git a/src/plone/app/mosaic/widget.py b/src/plone/app/mosaic/widget.py
index <HASH>..<HASH> 100644
--- a/src/plone/app/mosaic/widget.py
+++ b/src/plone/app/mosaic/widget.py
@@ -3,7 +3,6 @@ from Products.CMFDynamicViewFTI.interfaces import ISelectableBrowserDefault
from Products.CMFCore.utils import getToolByName... | Restore Plone <I>.x support by fallbacking to import from p.a.widgets | py |
diff --git a/angr/project.py b/angr/project.py
index <HASH>..<HASH> 100644
--- a/angr/project.py
+++ b/angr/project.py
@@ -245,7 +245,7 @@ class Project(object):
lib_name = lib_name.lower()
# Hack that should go somewhere else:
- if lib_name in [ 'libc.so.0', 'libc.so' ]:
+ ... | Implementing the musl change fish mentioned | py |
diff --git a/raiden/tests/integration/long_running/test_token_networks.py b/raiden/tests/integration/long_running/test_token_networks.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/integration/long_running/test_token_networks.py
+++ b/raiden/tests/integration/long_running/test_token_networks.py
@@ -242,6 +242,7 @@ d... | Skip connection manager tests We don't want to track all events for all channels to improve performance and simplify the code. This breaks the connection manager as it is now. We're about to make a decision on how to replace the existing connection manager. For now, just disable the tests to allow development to conti... | py |
diff --git a/tests/test_build_clib.py b/tests/test_build_clib.py
index <HASH>..<HASH> 100644
--- a/tests/test_build_clib.py
+++ b/tests/test_build_clib.py
@@ -109,7 +109,7 @@ class BuildCLibTestCase(support.TempdirManager,
cmd = build_clib(dist)
foo_c = os.path.join(pkg_dir, 'foo.c')
- self.w... | distutils.test_build_clib added a new line at the end of the file, to avoid a warning with some compilers | py |
diff --git a/location_field/urls.py b/location_field/urls.py
index <HASH>..<HASH> 100644
--- a/location_field/urls.py
+++ b/location_field/urls.py
@@ -1,4 +1,7 @@
-from django.conf.urls.defaults import patterns
+try:
+ from django.conf.urls import patterns
+except ImportError:
+ from django.conf.urls.defaults imp... | fix patterns import to work with Django <I> | py |
diff --git a/suitable/module_runner.py b/suitable/module_runner.py
index <HASH>..<HASH> 100644
--- a/suitable/module_runner.py
+++ b/suitable/module_runner.py
@@ -331,5 +331,9 @@ class ModuleRunner(object):
'contacted': {
server: answer['result']
for server, answer in call... | Add unreachable hosts to runner results | py |
diff --git a/bonobo/config/services.py b/bonobo/config/services.py
index <HASH>..<HASH> 100644
--- a/bonobo/config/services.py
+++ b/bonobo/config/services.py
@@ -41,8 +41,8 @@ class Service(Option):
"""
- def __init__(self, type=None, *, required=False, default=None):
- super().__init__(type, re... | Small change to force services definitions to be strings, and to force default names. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ If you get errors, check the following things:
"""
setup(name='CleanerVersion',
- version='1.5.0',
+ version='1.5.1',
description='A versioning solution for relational data models using the ... | Bumped version number to <I> | py |
diff --git a/wdom/tests/test_dom_web.py b/wdom/tests/test_dom_web.py
index <HASH>..<HASH> 100644
--- a/wdom/tests/test_dom_web.py
+++ b/wdom/tests/test_dom_web.py
@@ -91,6 +91,8 @@ class TestNode(WDTest):
assert self.is_displayed() is True
self.root.hide()
assert self.is_displayed() is False
... | Add test to show agiain | py |
diff --git a/dvc/tree/http.py b/dvc/tree/http.py
index <HASH>..<HASH> 100644
--- a/dvc/tree/http.py
+++ b/dvc/tree/http.py
@@ -33,7 +33,7 @@ class HTTPTree(BaseTree): # pylint:disable=abstract-method
SESSION_RETRIES = 5
SESSION_BACKOFF_FACTOR = 0.1
- REQUEST_TIMEOUT = 10
+ REQUEST_TIMEOUT = 60
C... | increased http timeout to <I> seconds (#<I>) | py |
diff --git a/odl/solvers/iterative/iterative.py b/odl/solvers/iterative/iterative.py
index <HASH>..<HASH> 100644
--- a/odl/solvers/iterative/iterative.py
+++ b/odl/solvers/iterative/iterative.py
@@ -386,7 +386,7 @@ def gauss_newton(op, x, rhs, niter, zero_seq=exp_zero_seq(2.0),
def kaczmarz(ops, x, rhs, niter, ome... | ENH: Add option to select where callbacks should be called in kaczmarz | py |
diff --git a/zipline/finance/slippage.py b/zipline/finance/slippage.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/slippage.py
+++ b/zipline/finance/slippage.py
@@ -186,17 +186,16 @@ class VolumeShareSlippage(SlippageModel):
simulated_impact = (volume_share) ** 2 \
* self.price_impac... | MAINT: Remove check in slippage model which is always true. Since `cur_amount` before it's changed by the direction, is always a positive value, multiplying it back by the direction should also always be positive. | py |
diff --git a/QueryableList/Base.py b/QueryableList/Base.py
index <HASH>..<HASH> 100644
--- a/QueryableList/Base.py
+++ b/QueryableList/Base.py
@@ -178,6 +178,17 @@ class QueryableListBase(list):
def sort_by(self, fieldName, reverse=False):
+ '''
+ sort_by - Return a copy of this collection, s... | Add docstring to sort_by method | py |
diff --git a/odl/set/space.py b/odl/set/space.py
index <HASH>..<HASH> 100644
--- a/odl/set/space.py
+++ b/odl/set/space.py
@@ -391,6 +391,7 @@ class LinearSpace(Set):
Returns
-------
out : `LinearSpace.Vector`
+ The result of the linear combination
Notes
-----
@... | Return out in lincomb and multiply | py |
diff --git a/teneto/derive/derive.py b/teneto/derive/derive.py
index <HASH>..<HASH> 100644
--- a/teneto/derive/derive.py
+++ b/teneto/derive/derive.py
@@ -212,20 +212,23 @@ def derive(data, params):
# Correct jackknife direction
if params['method'] == 'jackknife':
+ # Correct inversion
R = ... | fixed bug in derive weighting JC edges | py |
diff --git a/test/contrib/gcs_test.py b/test/contrib/gcs_test.py
index <HASH>..<HASH> 100644
--- a/test/contrib/gcs_test.py
+++ b/test/contrib/gcs_test.py
@@ -144,12 +144,15 @@ class GCSClientTest(_GCSBaseTestCase):
def test_put_file(self):
with tempfile.NamedTemporaryFile() as fp:
- fp.write... | Larger write in test_put_file Previous `gcs_test` just wrote 'hi' to the GCS bucket file. This missed the bug in line <I> because it uploads in a single chunk. By increasing the write to a couple of chunks, the test only passes with my uploader fix in `gcs.py`. (The existing file gets a TypeError exception.) | py |
diff --git a/scout/server/config.py b/scout/server/config.py
index <HASH>..<HASH> 100644
--- a/scout/server/config.py
+++ b/scout/server/config.py
@@ -22,8 +22,3 @@ ACCEPT_LANGUAGES = ['en', 'sv']
# FEATURE FLAGS
SHOW_CAUSATIVES = False
-
-#MatchMaker related parameters
-MME_ACCEPTS = 'application/vnd.ga4gh.matchma... | remove test params from config file | py |
diff --git a/kafka/producer.py b/kafka/producer.py
index <HASH>..<HASH> 100644
--- a/kafka/producer.py
+++ b/kafka/producer.py
@@ -1,10 +1,10 @@
from collections import defaultdict
-from datetime import datetime, timedelta
from itertools import cycle
from multiprocessing import Queue, Process
from Queue import Empt... | Replaced _send_upstream datetime logic with simpler time(). | py |
diff --git a/pyblish_lite/model.py b/pyblish_lite/model.py
index <HASH>..<HASH> 100644
--- a/pyblish_lite/model.py
+++ b/pyblish_lite/model.py
@@ -217,7 +217,7 @@ class Plugin(Item):
actions = list(item.actions)
# Context specific actions
- for action in reversed(actions):
+ ... | remove unused function from a fix attempt | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -74,7 +74,7 @@ setup(
'chardet',
'requests',
'redis',
- 'jinja2',
+ 'jinja2<2.9',
'surt>=0.3.0',
'brotlipy',
'pyyaml', | setup req: fix jinja<<I> for now due to issues in <I>+ | py |
diff --git a/asv_bench/benchmarks/gil.py b/asv_bench/benchmarks/gil.py
index <HASH>..<HASH> 100644
--- a/asv_bench/benchmarks/gil.py
+++ b/asv_bench/benchmarks/gil.py
@@ -1,7 +1,7 @@
import numpy as np
from pandas import DataFrame, Series, date_range, factorize, read_csv
-from pandas.core.algorithms import take_1d
... | CI: fix reference to take_1d() (#<I>) Removed in <URL> | py |
diff --git a/rest_framework_tracking/mixins.py b/rest_framework_tracking/mixins.py
index <HASH>..<HASH> 100644
--- a/rest_framework_tracking/mixins.py
+++ b/rest_framework_tracking/mixins.py
@@ -21,12 +21,20 @@ class LoggingMixin(object):
except AttributeError: # if already a dict, can't dictify
... | Get remote address from "HTTP_X_FORWARDED_FOR" or "REMOTE_ADDR". | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,5 +10,5 @@ setup(
download_url='https://github.com/instagrambot/instabot/tarball/0.3.5.2',
keywords=['instagram', 'bot', 'api', 'wrapper'],
classifiers=[],
- install_requires=['tqdm', 'requests-toolbelt',... | Add "future" package for python2 compability | py |
diff --git a/local/pyauto/local/__init__.py b/local/pyauto/local/__init__.py
index <HASH>..<HASH> 100644
--- a/local/pyauto/local/__init__.py
+++ b/local/pyauto/local/__init__.py
@@ -1 +1 @@
-__version__ = '1.0.0a5'
+__version__ = '1.0.0a6' | version local-<I>a6 | py |
diff --git a/openstack_dashboard/dashboards/project/volumes/forms.py b/openstack_dashboard/dashboards/project/volumes/forms.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/project/volumes/forms.py
+++ b/openstack_dashboard/dashboards/project/volumes/forms.py
@@ -425,7 +425,7 @@ class CreateForm(form... | Creating volume prompt message always contain name The creating volume successful prompt message format is: 'Creating volume "%s"' % data["name"] the data['name'] could be empty since it is not request. But volume.name is always has a value, that the name or id of volume. Change-Id: Ife<I>ebbc1f<I>a<I>ddec<I>d<I>fb... | py |
diff --git a/raven/events.py b/raven/events.py
index <HASH>..<HASH> 100644
--- a/raven/events.py
+++ b/raven/events.py
@@ -73,9 +73,9 @@ class Exception(BaseEvent):
'value': to_unicode(exc_value),
'type': str(exc_type),
'module': to_unicode(exc_module),
- ... | use stacktrace field of Exception interface Leave `sentry.interfaces.Stacktrace` for non-exception information, e.g. a client may want to record both exception traceback and the call stack. | py |
diff --git a/noseprogressive/plugin.py b/noseprogressive/plugin.py
index <HASH>..<HASH> 100644
--- a/noseprogressive/plugin.py
+++ b/noseprogressive/plugin.py
@@ -133,7 +133,7 @@ class ProgressivePlugin(Plugin):
# the prompt, leaving a piece of the bar.
self.bar.erase()
self.stream.writeln()
... | Errors qualify as "test went ill". | py |
diff --git a/argos/repo/repotreeview.py b/argos/repo/repotreeview.py
index <HASH>..<HASH> 100644
--- a/argos/repo/repotreeview.py
+++ b/argos/repo/repotreeview.py
@@ -164,7 +164,10 @@ class RepoTreeView(ArgosTreeView):
treeHeader.resizeSection(RepoTreeModel.COL_NODE_NAME, COL_NODE_NAME_WIDTH)
treeHead... | The first column of the repo tree (the name column) is resized when the repo dock widget is resized. It used to be the last column. Note that you have to remove the settings.json file for it to be activated, since this info is stored in the window state. | py |
diff --git a/dataviews/ipython/magics.py b/dataviews/ipython/magics.py
index <HASH>..<HASH> 100644
--- a/dataviews/ipython/magics.py
+++ b/dataviews/ipython/magics.py
@@ -40,7 +40,7 @@ ANIMATION_OPTS = {
VIDEO_TAG),
'gif':('imagemagick', 'gif', {'fps':10}, [],
GIF_TAG),
- 'scrubber':('h... | Changed scrubber default mode to 'once' from 'loop' | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,10 +2,13 @@ from setuptools import setup
from pybib import __version__
+with open('README.rst') as f:
+ readme = f.read()
+
setup(name='pybib',
version=__version__,
description='Fetch citation informa... | Use a context handler for reading in README | py |
diff --git a/salt/modules/elasticsearch.py b/salt/modules/elasticsearch.py
index <HASH>..<HASH> 100644
--- a/salt/modules/elasticsearch.py
+++ b/salt/modules/elasticsearch.py
@@ -101,6 +101,8 @@ def _get_instance(hosts=None, profile=None):
use_ssl = _profile.get('use_ssl', False)
ca_certs = _profile.g... | Update elasticsearch.py Add option for HTTP authentication with username and password. | py |
diff --git a/rest_registration/api/serializers.py b/rest_registration/api/serializers.py
index <HASH>..<HASH> 100644
--- a/rest_registration/api/serializers.py
+++ b/rest_registration/api/serializers.py
@@ -15,16 +15,35 @@ class MetaObj(object):
class DefaultLoginSerializer(serializers.Serializer):
+ """
+ D... | Added docstrings to serializers | py |
diff --git a/detect_secrets/plugins/base.py b/detect_secrets/plugins/base.py
index <HASH>..<HASH> 100644
--- a/detect_secrets/plugins/base.py
+++ b/detect_secrets/plugins/base.py
@@ -146,7 +146,7 @@ class RegexBasedDetector(BasePlugin, metaclass=ABCMeta):
for regex in self.denylist:
for match in r... | Change tuple to match. This parameter should be the list of tuples which is match not tuple | py |
diff --git a/openquake/writer.py b/openquake/writer.py
index <HASH>..<HASH> 100644
--- a/openquake/writer.py
+++ b/openquake/writer.py
@@ -220,7 +220,7 @@ class DBWriter(object):
"""
raise NotImplementedError()
- @transaction.commit_on_success
+ @transaction.commit_on_success('reslt_writer')
... | Use the correct database alias when starting the serialization transaction. | py |
diff --git a/dcf/curve.py b/dcf/curve.py
index <HASH>..<HASH> 100755
--- a/dcf/curve.py
+++ b/dcf/curve.py
@@ -103,15 +103,26 @@ class Curve(object):
class DateCurve(Curve):
+
+ @staticmethod
+ def _default_day_count(start, end):
+ if hasattr(start, 'diff_in_days'):
+ # duck typing business... | removed act_<I> resp. DAY_COUNT as public function | py |
diff --git a/seqfile/seqfile.py b/seqfile/seqfile.py
index <HASH>..<HASH> 100644
--- a/seqfile/seqfile.py
+++ b/seqfile/seqfile.py
@@ -15,8 +15,7 @@ def _doAtomicFileCreation(filePath):
try:
_os.close(_os.open(filePath, _os.O_CREAT | _os.O_EXCL))
return True
- except OSError as e:
- pri... | Remove extraneous output statement. | py |
diff --git a/pretrainedmodels/models/bninception.py b/pretrainedmodels/models/bninception.py
index <HASH>..<HASH> 100644
--- a/pretrainedmodels/models/bninception.py
+++ b/pretrainedmodels/models/bninception.py
@@ -247,7 +247,7 @@ class BNInception(nn.Module):
self.inception_5b_pool_proj_bn = nn.BatchNorm2d(12... | Update bninception.py Line <I>: should be nn.Linear(<I>,num_classer), <I> is hard code. | py |
diff --git a/BAC0/scripts/Base.py b/BAC0/scripts/Base.py
index <HASH>..<HASH> 100644
--- a/BAC0/scripts/Base.py
+++ b/BAC0/scripts/Base.py
@@ -104,14 +104,18 @@ class Base:
if localIPAddr in Base._used_ips:
raise InitializationError(
- "IP Address provided ({}) already used.".form... | Added details to InitializationError about a possible reason why IP i sinvalid. | py |
diff --git a/src/quart/wrappers/base.py b/src/quart/wrappers/base.py
index <HASH>..<HASH> 100644
--- a/src/quart/wrappers/base.py
+++ b/src/quart/wrappers/base.py
@@ -35,6 +35,7 @@ from werkzeug.http import (
parse_set_header,
)
from werkzeug.urls import url_decode
+from werkzeug.useragents import UserAgent
fro... | Add user_agent property to requests/websockets This matches the Flask API and was missing. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,12 +25,12 @@ setup(
'click>=8.0.1',
'flask>=2.0.1',
'flask_babelex>=0.9.4',
- 'flask-wtf>=0.15.1',
+ 'flask-wtf>=1.0.0',
'py-meta-utils>=0.7.8',
'pyterminalsize>=0... | require wtforms v3 | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -340,9 +340,12 @@ def minion_config(path,
'''
Reads in the minion configuration file and sets up special options
'''
+ if defaults is None:
+ defaults = DEFAULT_MINION_OPTS
+
... | `default_include` should also be checked against provided defaults. | py |
diff --git a/tensorflow_datasets/video/moving_mnist.py b/tensorflow_datasets/video/moving_mnist.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/video/moving_mnist.py
+++ b/tensorflow_datasets/video/moving_mnist.py
@@ -82,7 +82,6 @@ class MovingMnist(tfds.core.GeneratorBasedBuilder):
return [
tfds... | Fixing moving-mnist that was broken after S3 migration. PiperOrigin-RevId: <I> | py |
diff --git a/stdnet/utils/test.py b/stdnet/utils/test.py
index <HASH>..<HASH> 100755
--- a/stdnet/utils/test.py
+++ b/stdnet/utils/test.py
@@ -169,8 +169,7 @@ try:
s = getdb(s)
s.ping()
except:
- logger.error('Could not obtain server %s' %... | last commit of this before merging with dev | py |
diff --git a/holoviews/plotting/raster.py b/holoviews/plotting/raster.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/raster.py
+++ b/holoviews/plotting/raster.py
@@ -160,6 +160,7 @@ class RasterPlot(ElementPlot):
if self.colorbar:
self._draw_colorbar(im)
+ xdim, ydim = view.key_d... | Fixed undeclared variable in RasterPlot | py |
diff --git a/satpy/composites/__init__.py b/satpy/composites/__init__.py
index <HASH>..<HASH> 100644
--- a/satpy/composites/__init__.py
+++ b/satpy/composites/__init__.py
@@ -413,12 +413,9 @@ class PSPRayleighReflectance(CompositeBase):
except KeyError:
LOG.warning("Could not get the reflectance c... | Daskify rayleigh, case of missing band name | py |
diff --git a/netpyne/analysis/interactive.py b/netpyne/analysis/interactive.py
index <HASH>..<HASH> 100644
--- a/netpyne/analysis/interactive.py
+++ b/netpyne/analysis/interactive.py
@@ -1392,7 +1392,7 @@ def iplotLFP(electrodes = ['avg', 'all'], plots = ['timeSeries', 'PSD', 'spectro
# format plot
- ... | Added sizing_mode to iplots without it | py |
diff --git a/tools/c7n_mailer/c7n_mailer/slack_delivery.py b/tools/c7n_mailer/c7n_mailer/slack_delivery.py
index <HASH>..<HASH> 100644
--- a/tools/c7n_mailer/c7n_mailer/slack_delivery.py
+++ b/tools/c7n_mailer/c7n_mailer/slack_delivery.py
@@ -137,14 +137,16 @@ class SlackDelivery(object):
self.cach... | tools/c7n_mailer - fallback to non-enterprise Slack user id (#<I>) | py |
diff --git a/backtrader/lineseries.py b/backtrader/lineseries.py
index <HASH>..<HASH> 100644
--- a/backtrader/lineseries.py
+++ b/backtrader/lineseries.py
@@ -354,6 +354,7 @@ class MetaLineSeries(LineMultiple.__class__):
_obj.line = _obj.lines[0]
for l, line in enumerate(_obj.lines):
+ ... | Added line_name alias for all lines objects | py |
diff --git a/pages/testproj/test_settings.py b/pages/testproj/test_settings.py
index <HASH>..<HASH> 100644
--- a/pages/testproj/test_settings.py
+++ b/pages/testproj/test_settings.py
@@ -186,6 +186,9 @@ COVERAGE_HTML_REPORT = True
COVERAGE_BRANCH_COVERAGE = False
PAGE_ENABLE_TESTS = True
+PASSWORD_HASHERS = [
+ ... | Django <I> compatibility for fixtures | py |
diff --git a/clustergrammer2/clustergrammer_fun/__init__.py b/clustergrammer2/clustergrammer_fun/__init__.py
index <HASH>..<HASH> 100644
--- a/clustergrammer2/clustergrammer_fun/__init__.py
+++ b/clustergrammer2/clustergrammer_fun/__init__.py
@@ -1009,7 +1009,7 @@ class Network(object):
df_meta[predict] = df_s... | Update signature prediction Update predict_cats_from_sigs to return df_meta with predicted category | py |
diff --git a/falafel/mappers/tests/test_sssd_logs.py b/falafel/mappers/tests/test_sssd_logs.py
index <HASH>..<HASH> 100644
--- a/falafel/mappers/tests/test_sssd_logs.py
+++ b/falafel/mappers/tests/test_sssd_logs.py
@@ -19,6 +19,7 @@ SSSD_LOG_NORMAL = """
(Tue Feb 14 09:45:02 2017) [sssd] [sbus_dispatch] (0x4000): dbus... | SSSDLog tests at <I>% code coverage, test mangled date doesn't break parsing | py |
diff --git a/optalg/stoch_solver/stoch_grad_pd.py b/optalg/stoch_solver/stoch_grad_pd.py
index <HASH>..<HASH> 100644
--- a/optalg/stoch_solver/stoch_grad_pd.py
+++ b/optalg/stoch_solver/stoch_grad_pd.py
@@ -57,11 +57,11 @@ class PrimalDual_StochasticGradient(StochasticSolver):
t1 = time.time()
... | improved stoch grad pd output | py |
diff --git a/featurex/tests/test_extractors.py b/featurex/tests/test_extractors.py
index <HASH>..<HASH> 100644
--- a/featurex/tests/test_extractors.py
+++ b/featurex/tests/test_extractors.py
@@ -10,6 +10,7 @@ from featurex.stimuli.audio import AudioStim
from featurex.export import TimelineExporter
from featurex.extra... | query row deterministically to prevent Python 2/3 ordering diffs | py |
diff --git a/tests/test_build_ext.py b/tests/test_build_ext.py
index <HASH>..<HASH> 100644
--- a/tests/test_build_ext.py
+++ b/tests/test_build_ext.py
@@ -312,12 +312,18 @@ class BuildExtTestCase(support.TempdirManager,
# issue #5977 : distutils build_ext.get_outputs
# returns wrong result with --in... | #<I> fixed test_get_outputs so it doesn't leaves a test file in the cwd | py |
diff --git a/hotqueue.py b/hotqueue.py
index <HASH>..<HASH> 100644
--- a/hotqueue.py
+++ b/hotqueue.py
@@ -106,7 +106,7 @@ class HotQueue(object):
msg = cPickle.dumps(msg)
self.__redis.rpush(self.key, msg)
- def worker(self, **kwargs):
+ def worker(self, *args, **kwargs):
... | Enable use of @queue.worker decorator without any keyword arguments. | py |
diff --git a/msvccompiler.py b/msvccompiler.py
index <HASH>..<HASH> 100644
--- a/msvccompiler.py
+++ b/msvccompiler.py
@@ -148,7 +148,7 @@ def get_build_version():
i = string.find(sys.version, prefix)
if i == -1:
return 6
- i += len(prefix)
+ i = i + len(prefix)
s, rest = sys.version[i:].s... | Restore Python <I> compatibility. | py |
diff --git a/ci/print_skipped.py b/ci/print_skipped.py
index <HASH>..<HASH> 100755
--- a/ci/print_skipped.py
+++ b/ci/print_skipped.py
@@ -5,7 +5,7 @@ import xml.etree.ElementTree as et
def main(filename):
if not os.path.isfile(filename):
- raise RuntimeError(f"Could not find junit file {filename!r}")
+ ... | STY: f-strings (#<I>) | py |
diff --git a/modin/pandas/dataframe.py b/modin/pandas/dataframe.py
index <HASH>..<HASH> 100644
--- a/modin/pandas/dataframe.py
+++ b/modin/pandas/dataframe.py
@@ -4608,6 +4608,21 @@ class DataFrame(object):
return self[key]
raise e
+ def __setattr__(self, key, value):
+ # We ha... | Adding a way to set existing columns using __setattr__ (#<I>) * Resolves #<I> * Adds a warning if it appears that users are trying to set a new column with `__setattr__`. This matches pandas behavior. * Uses `__setitem__` if the `key` passed is a column in the DataFrame | py |
diff --git a/test/test_dataset.py b/test/test_dataset.py
index <HASH>..<HASH> 100644
--- a/test/test_dataset.py
+++ b/test/test_dataset.py
@@ -11,7 +11,7 @@ import numpy as np
import pandas as pd
from xray import Dataset, DataArray, Variable, backends, utils, align, indexing
-from xray.pycompat import iteritems
+fr... | Alias assertItemsEqual for Py3 | py |
diff --git a/tools.py b/tools.py
index <HASH>..<HASH> 100644
--- a/tools.py
+++ b/tools.py
@@ -9,6 +9,17 @@ class Tool(object):
def __init__(self, command_executor):
self.executor = command_executor
+ def process_line(self, line):
+ return []
+
+ def get_file_extension(self):
+ """
+... | A maybe-start to a better API? | py |
diff --git a/djstripe/admin.py b/djstripe/admin.py
index <HASH>..<HASH> 100644
--- a/djstripe/admin.py
+++ b/djstripe/admin.py
@@ -337,7 +337,7 @@ class PlanAdmin(StripeObjectAdmin):
class SubscriptionAdmin(StripeObjectAdmin):
raw_id_fields = ("customer", )
list_display = ("customer", "status")
- list_fil... | Add cancel_at_period_end to SubscriptionAdmin list_filter | py |
diff --git a/mapchete/_core.py b/mapchete/_core.py
index <HASH>..<HASH> 100644
--- a/mapchete/_core.py
+++ b/mapchete/_core.py
@@ -700,6 +700,8 @@ class Mapchete(object):
logger.warning(
"cannot create STAC item because footprint cannot be reprojected into EPSG:4326"
)
+ ... | don't throw exception if STAC file cannot be written or updated | py |
diff --git a/salt/utils/cloud.py b/salt/utils/cloud.py
index <HASH>..<HASH> 100644
--- a/salt/utils/cloud.py
+++ b/salt/utils/cloud.py
@@ -214,14 +214,13 @@ def minion_config(opts, vm_):
Return a minion's configuration for the provided options and VM
'''
- # Let's get a copy of the salt minion default op... | Don't lay down all available opts (#<I>) * Don't lay down all available opts * We need at least one opt in there * Condense defaults * Put the default hash type back | py |
diff --git a/fireplace/game.py b/fireplace/game.py
index <HASH>..<HASH> 100644
--- a/fireplace/game.py
+++ b/fireplace/game.py
@@ -45,6 +45,10 @@ class BaseGame(Entity):
return self.all_entities.__iter__()
@property
+ def game(self):
+ return self
+
+ @property
def board(self):
return CardList(chain(self.p... | Allow chaining Game.game This lets us always look in entity.game for the Game object | py |
diff --git a/sortinghat/_version.py b/sortinghat/_version.py
index <HASH>..<HASH> 100644
--- a/sortinghat/_version.py
+++ b/sortinghat/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.7.18"
+__version__ = "0.7.19" | Update version number to <I> | py |
diff --git a/nodemcu-uploader.py b/nodemcu-uploader.py
index <HASH>..<HASH> 100755
--- a/nodemcu-uploader.py
+++ b/nodemcu-uploader.py
@@ -61,6 +61,15 @@ class Uploader:
def __init__(self, port = 0, baud = BAUD):
self._port = serial.Serial(port, Uploader.BAUD, timeout=Uploader.TIMEOUT)
+
+ # Keep... | Keeps things working, if RTS and DTR are wired esptool.py (<URL>) uses following connections RTS = CH_PD (i.e reset) DTR = GPIO0 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ with open(path.join(this_folder,'README.md'),encoding='utf-8') as inf:
setup(
name='pythologist',
- version='1.0.5',
+ version='1.0.6',
test_suite='nose2.collector.collector',
description='inForm Per... | ticking version for fixing bug in count calling (for complete zero-count cases) | py |
diff --git a/MAVProxy/modules/mavproxy_arm.py b/MAVProxy/modules/mavproxy_arm.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_arm.py
+++ b/MAVProxy/modules/mavproxy_arm.py
@@ -61,7 +61,7 @@ class ArmModule(mp_module.MPModule):
def cmd_arm(self, args):
'''arm commands'''
- usage = "... | mavproxy_arm.py: add prearms to run the prearm checks | py |
diff --git a/netpyne/simFuncs.py b/netpyne/simFuncs.py
index <HASH>..<HASH> 100644
--- a/netpyne/simFuncs.py
+++ b/netpyne/simFuncs.py
@@ -934,9 +934,10 @@ def preRun ():
# cvode variables
sim.cvode=h.CVode()
sim.cvode.active(int(sim.cfg.cvode_active))
- sim.cvode.active(int(sim.cfg.cache_efficient))
... | Made CVode object part of sim and simplified cvode calls | py |
diff --git a/test/conftest.py b/test/conftest.py
index <HASH>..<HASH> 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -51,7 +51,8 @@ def conn(mocker):
return state
conn._set_conn_state = _set_conn_state
conn.connect.side_effect = lambda: conn.state
- conn.connecting = lambda: conn.state is... | Update conn fixture to check for HANDSHAKE state | py |
diff --git a/core/containers.py b/core/containers.py
index <HASH>..<HASH> 100755
--- a/core/containers.py
+++ b/core/containers.py
@@ -295,14 +295,14 @@ class FCOrderedCollection(OrderedCollection, FCCollection):
colorbar=False,
kind=kind, autolabel=False,... | FIX: for plotting 1d histograms | py |
diff --git a/salt/client.py b/salt/client.py
index <HASH>..<HASH> 100644
--- a/salt/client.py
+++ b/salt/client.py
@@ -169,7 +169,10 @@ class LocalClient(object):
)
# Failed to connect to the master and send the pub
- if not 'jid' in pub_data or pub_data['jid'] == '0':
+ if not 'ji... | Print 'failed to connect' on salt commands if no master | py |
diff --git a/nion/instrumentation/camera_base.py b/nion/instrumentation/camera_base.py
index <HASH>..<HASH> 100644
--- a/nion/instrumentation/camera_base.py
+++ b/nion/instrumentation/camera_base.py
@@ -1990,6 +1990,11 @@ class CameraHardwareSource3(HardwareSource.ConcreteHardwareSource, CameraHardwar
came... | One more sum_project case when starting view mode. | py |
diff --git a/src/hamster/edit_activity.py b/src/hamster/edit_activity.py
index <HASH>..<HASH> 100644
--- a/src/hamster/edit_activity.py
+++ b/src/hamster/edit_activity.py
@@ -356,6 +356,11 @@ class CustomFactController(gobject.GObject):
self.update_status(status="warning", markup=markup)
retur... | forbid unparseable fact from separate fields | py |
diff --git a/graphtools/logging.py b/graphtools/logging.py
index <HASH>..<HASH> 100644
--- a/graphtools/logging.py
+++ b/graphtools/logging.py
@@ -3,6 +3,7 @@ from builtins import super, bytes
import os
import logging
import time
+import sys
__logger_name__ = "graphtools"
@@ -14,11 +15,21 @@ class RSafeStdErr(o... | ipython friendly logging | py |
diff --git a/spam_lists/host_list.py b/spam_lists/host_list.py
index <HASH>..<HASH> 100644
--- a/spam_lists/host_list.py
+++ b/spam_lists/host_list.py
@@ -122,6 +122,6 @@ class HostList(object):
:returns: a list containing matching URLs
:raises InvalidURLError: if there are any invalid URLs in the seq... | Refactor HostList.filter_matching method The method is being refactored to be a generator. | py |
diff --git a/qtpylib/instrument.py b/qtpylib/instrument.py
index <HASH>..<HASH> 100644
--- a/qtpylib/instrument.py
+++ b/qtpylib/instrument.py
@@ -378,7 +378,7 @@ class Instrument(str):
order : object
IB Order object of instrument
"""
- return self.parent.active_order_id(se... | fixed rederence to renamed method | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.