diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/src/socketio/asyncio_redis_manager.py b/src/socketio/asyncio_redis_manager.py
index <HASH>..<HASH> 100644
--- a/src/socketio/asyncio_redis_manager.py
+++ b/src/socketio/asyncio_redis_manager.py
@@ -2,9 +2,12 @@ import asyncio
import pickle
try:
- import aioredis
+ from redis import asyncio as aio... | Use new asyncio support in redis package (Fixes #<I>) | py |
diff --git a/pyads/ads.py b/pyads/ads.py
index <HASH>..<HASH> 100644
--- a/pyads/ads.py
+++ b/pyads/ads.py
@@ -549,15 +549,15 @@ def dict_from_bytes(byte_list, structure_def, array_size=1):
)
index += str_len + 1
elif plc_datatype not in DATATYPE_MAP:
- ... | reformatted ads.py with black | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,6 +2,7 @@
import os
from setuptools import setup
+from setuptools import find_packages
with open('requirements.txt') as f:
requirements = [req.strip() for req in f]
@@ -14,4 +15,5 @@ if __name__ == "__main__":
... | Adding packages to setup.py | py |
diff --git a/dipper/models/assoc/G2PAssoc.py b/dipper/models/assoc/G2PAssoc.py
index <HASH>..<HASH> 100644
--- a/dipper/models/assoc/G2PAssoc.py
+++ b/dipper/models/assoc/G2PAssoc.py
@@ -62,7 +62,7 @@ class G2PAssoc(Assoc):
return
- def add_association_to_graph(self, g):
+ def add_association_to_grap... | enable adding composite stage as nobnode | py |
diff --git a/tests/libsecp256k1_test.py b/tests/libsecp256k1_test.py
index <HASH>..<HASH> 100644
--- a/tests/libsecp256k1_test.py
+++ b/tests/libsecp256k1_test.py
@@ -34,6 +34,8 @@ class ECDSATestCase(unittest.TestCase):
)
def test_sign_verify_mutual_compatability(self):
+ if libsecp256k1 is None... | Skip tests if libsecp<I>k1 is missing. | py |
diff --git a/xmantissa/websession.py b/xmantissa/websession.py
index <HASH>..<HASH> 100644
--- a/xmantissa/websession.py
+++ b/xmantissa/websession.py
@@ -18,7 +18,9 @@ from zope.interface import Interface, Attribute
from twisted.python import reflect
from twisted.cred import credentials
-from axiom import extime, ... | Move utility modules to 'epsilon' package to avoid packaging axiom with projects that do not need it simply for 'extime'; add 'pending (deferred) event' utility module; various enhancements to ptcp to make logging more verbose and clean up unnecessary sockets when they are no longer required, reducing embarrassing cras... | py |
diff --git a/mambuclient.py b/mambuclient.py
index <HASH>..<HASH> 100644
--- a/mambuclient.py
+++ b/mambuclient.py
@@ -153,14 +153,11 @@ class MambuClient(MambuStruct):
# Postprocesamiento
def postprocess(self):
try:
- print "postprocessing"
for name, item in self['addresses']... | Remove debugging prints on mambuclient | py |
diff --git a/bika/lims/content/analysis.py b/bika/lims/content/analysis.py
index <HASH>..<HASH> 100644
--- a/bika/lims/content/analysis.py
+++ b/bika/lims/content/analysis.py
@@ -419,7 +419,7 @@ class Analysis(BaseContent):
"""
Returns the Title of the asociated service.
"""
- obj = th... | Error in getServiceTitle | py |
diff --git a/src/saml2/entity.py b/src/saml2/entity.py
index <HASH>..<HASH> 100644
--- a/src/saml2/entity.py
+++ b/src/saml2/entity.py
@@ -447,6 +447,12 @@ class Entity(HTTPBase):
response = None
+ if "asynchop" not in kwargs:
+ if binding == BINDING_SOAP:
+ kwargs["asyncho... | SOAP binding is by definition synchronous. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -10,6 +10,7 @@ from os import path
import os
import sys
from imp import load_source
+import subprocess
class PyTest(TestCommand):
@@ -43,6 +44,14 @@ class PyTest(TestCommand):
sys.exit(error_number)
+def d... | fix(setup.py): call font discovery after installation procedure | py |
diff --git a/pecan/tests/test_rest.py b/pecan/tests/test_rest.py
index <HASH>..<HASH> 100644
--- a/pecan/tests/test_rest.py
+++ b/pecan/tests/test_rest.py
@@ -1558,6 +1558,7 @@ class TestRestController(PecanTestCase):
assert r.status_int == 405
assert r.headers['Allow'] == 'GET'
+ @unittest.skipI... | Detect narrow Python builds and skip tests that require --enable-unicode=ucs4 | py |
diff --git a/libsubmit/providers/aws/aws.py b/libsubmit/providers/aws/aws.py
index <HASH>..<HASH> 100644
--- a/libsubmit/providers/aws/aws.py
+++ b/libsubmit/providers/aws/aws.py
@@ -513,12 +513,27 @@ ipengine --file=ipengine.json &> ipengine.log &""".format(config)
################################################... | Fixing status() method, there's a ton of dead code here that needs cleanup | py |
diff --git a/pyrogram/connection/connection.py b/pyrogram/connection/connection.py
index <HASH>..<HASH> 100644
--- a/pyrogram/connection/connection.py
+++ b/pyrogram/connection/connection.py
@@ -39,6 +39,7 @@ class Connection:
def __init__(self, dc_id: int, test_mode: bool, ipv6: bool, proxy: dict, mode: int = 3... | Add information about test/production servers when logging connections | py |
diff --git a/porespy/__init__.py b/porespy/__init__.py
index <HASH>..<HASH> 100644
--- a/porespy/__init__.py
+++ b/porespy/__init__.py
@@ -79,7 +79,7 @@ Use some filters from PoreSpy:
'''
-__version__ = "1.2.0"
+__version__ = "1.2.1"
from . import tools
from . import filters | Updating version number to <I> | py |
diff --git a/tests/integration/shell/test_call.py b/tests/integration/shell/test_call.py
index <HASH>..<HASH> 100644
--- a/tests/integration/shell/test_call.py
+++ b/tests/integration/shell/test_call.py
@@ -164,6 +164,7 @@ class CallTest(ShellCase, testprogram.TestProgramCase, ShellCaseCommonTestsMixin
self.as... | flaky tests are flaky yo | py |
diff --git a/tests/providers/test_address.py b/tests/providers/test_address.py
index <HASH>..<HASH> 100644
--- a/tests/providers/test_address.py
+++ b/tests/providers/test_address.py
@@ -73,6 +73,11 @@ class TestAr_AA(unittest.TestCase):
with self.assertRaises(ValueError):
Faker().country_code(rep... | Initialize unit test class for cs_CZ provider | py |
diff --git a/tests/test_xopen.py b/tests/test_xopen.py
index <HASH>..<HASH> 100644
--- a/tests/test_xopen.py
+++ b/tests/test_xopen.py
@@ -630,8 +630,11 @@ def test_xopen_falls_back_to_bzip2_open(lacking_pbzip2_permissions):
def test_open_many_writers(tmp_path, ext):
files = []
- for i in range(1, 61):
- ... | Avoid MemoryError during tests on <I>-bit architectures | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,13 +1,13 @@
from setuptools import setup, find_packages
setup(name="pyth",
- version="0.5.6",
+ version="0.6.0",
packages = find_packages(),
zip_safe = False,
description="Python text ma... | Update setup.py to <I> | py |
diff --git a/MAVProxy/modules/mavproxy_ftp.py b/MAVProxy/modules/mavproxy_ftp.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_ftp.py
+++ b/MAVProxy/modules/mavproxy_ftp.py
@@ -371,6 +371,16 @@ class FTPModule(mp_module.MPModule):
else:
self.fh.write(op.payload)
... | ftp: fixed partial burst reply EOF detection | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,24 +1,18 @@
+import re
+from setuptools import setup
-from dateparser import __version__
-
-
-try:
- from setuptools import setup
-except ImportError:
- from distutils.core import setup
-
+(__version__, ) = re.finda... | dropped distutils, parsing version number with regex to avoid import, removed wheel dependency from install_requires | py |
diff --git a/qtm/qrt.py b/qtm/qrt.py
index <HASH>..<HASH> 100644
--- a/qtm/qrt.py
+++ b/qtm/qrt.py
@@ -365,6 +365,8 @@ def _validate_components(components):
"3dres",
"3dnolabels",
"3dnolabelsres",
+ "analog",
+ "analogsingle",
"force",
... | Enabled streaming of analog & analog single. | py |
diff --git a/pyfepdf.py b/pyfepdf.py
index <HASH>..<HASH> 100644
--- a/pyfepdf.py
+++ b/pyfepdf.py
@@ -1651,7 +1651,7 @@ class FEPDF(object):
@utils.inicializar_y_capturar_excepciones_simple
def MostrarPDF(self, archivo, imprimir=False):
- if sys.platform.startswith(("linux2", "java")):
+ if s... | modified pyfepdf.py due to platform errors | py |
diff --git a/txaws/s3/client.py b/txaws/s3/client.py
index <HASH>..<HASH> 100644
--- a/txaws/s3/client.py
+++ b/txaws/s3/client.py
@@ -821,19 +821,27 @@ class Query(BaseQuery):
return d.addErrback(s3_error_wrapper)
-def s3_url_context(service_endpoint, bucket=None, object_name=None):
- def u(s):
- ... | Some cleanups to s3_url_context | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,4 +26,5 @@ setup(
author_email="bmihelac@mihelac.org",
url="https://github.com/bmihelac/django-import-export",
packages=find_packages(exclude=["tests"]),
+ install_requires=install_requires,
) | Add install_requires to setup.py | py |
diff --git a/drf_haystack/serializers.py b/drf_haystack/serializers.py
index <HASH>..<HASH> 100644
--- a/drf_haystack/serializers.py
+++ b/drf_haystack/serializers.py
@@ -346,7 +346,7 @@ class FacetFieldSerializer(serializers.Serializer):
path = "%(path)s?%(query)s" % {"path": request.path_info, "query": que... | drf <I>, fix TypeError With djang-rest-framework <I> Hyperlink 'name' as made 'lazy', changing the name argument in the process. If we call it without a keyword, it should work in both old and new drf verions. | py |
diff --git a/testapp/testapp/testmain/tests/test_webservices.py b/testapp/testapp/testmain/tests/test_webservices.py
index <HASH>..<HASH> 100644
--- a/testapp/testapp/testmain/tests/test_webservices.py
+++ b/testapp/testapp/testmain/tests/test_webservices.py
@@ -488,14 +488,12 @@ class ReceiptPDFTest(AfipTestCase):
... | Rewrite a test failing in newer django version | py |
diff --git a/src/scs_core/model/gas/gas_model_conf.py b/src/scs_core/model/gas/gas_model_conf.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/model/gas/gas_model_conf.py
+++ b/src/scs_core/model/gas/gas_model_conf.py
@@ -55,24 +55,3 @@ class GasModelConf(ModelConf):
return GasInferenceClient.construct(se... | Added scs_greengrass GasModelConf class | py |
diff --git a/wt/base.py b/wt/base.py
index <HASH>..<HASH> 100644
--- a/wt/base.py
+++ b/wt/base.py
@@ -29,7 +29,7 @@ def load_content(filename):
if os.path.isfile(filename):
with open(filename, 'rt', encoding='utf-8') as f:
text = f.read()
- if len(fm_re.findall(text)) == 2:
+ i... | closes #<I> - allow more than two yaml markers in text | py |
diff --git a/dwave/cloud/client/base.py b/dwave/cloud/client/base.py
index <HASH>..<HASH> 100644
--- a/dwave/cloud/client/base.py
+++ b/dwave/cloud/client/base.py
@@ -1292,6 +1292,7 @@ class Client(object):
# Handle errors in batch mode
if 'error_code' in message and 'error_msg' in message:
... | Log error SAPI response with debug level | py |
diff --git a/sklearn_porter/Template.py b/sklearn_porter/Template.py
index <HASH>..<HASH> 100644
--- a/sklearn_porter/Template.py
+++ b/sklearn_porter/Template.py
@@ -98,7 +98,8 @@ class Template(object):
self.estimator_type, class_name, 'templates',
sel... | release/<I>: Add closing file | py |
diff --git a/airflow/providers/amazon/aws/operators/sagemaker.py b/airflow/providers/amazon/aws/operators/sagemaker.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/amazon/aws/operators/sagemaker.py
+++ b/airflow/providers/amazon/aws/operators/sagemaker.py
@@ -17,7 +17,7 @@
import json
import sys
-from typing... | Fix MyPy in Amazon provider for Sagemaker operator (#<I>) | py |
diff --git a/imgix/urlhelper.py b/imgix/urlhelper.py
index <HASH>..<HASH> 100644
--- a/imgix/urlhelper.py
+++ b/imgix/urlhelper.py
@@ -63,7 +63,7 @@ class UrlHelper(object):
def _str_is_ascii(self, s):
try:
- s.decode('ascii')
+ b(s).decode('ascii')
return True
... | this is naive, but it fixes the immediate issue. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ from os import path
root = 'xlmhg'
description = 'XL-mHG: A Semiparametric Test for Enrichment'
-version = '2.0.6'
+version = '2.0.7'
install_requires = [
'future >= 0.15.2, < 1', | bumped version number to <I> | py |
diff --git a/salt/config/__init__.py b/salt/config/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/config/__init__.py
+++ b/salt/config/__init__.py
@@ -687,7 +687,7 @@ VALID_OPTS = {
# If this is set to True the first newline after a Jinja block is removed
'jinja_trim_blocks': bool,
- # FIXME Appears ... | Fix comment about minion_id_caching (#<I>) | py |
diff --git a/spyder/widgets/ipythonconsole/debugging.py b/spyder/widgets/ipythonconsole/debugging.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/ipythonconsole/debugging.py
+++ b/spyder/widgets/ipythonconsole/debugging.py
@@ -57,8 +57,11 @@ class DebuggingWidget(RichJupyterWidget):
"""
filename =... | IPython console: Avoid error if pdb state file is not wrriten to disk | py |
diff --git a/pyuntl/untldoc.py b/pyuntl/untldoc.py
index <HASH>..<HASH> 100644
--- a/pyuntl/untldoc.py
+++ b/pyuntl/untldoc.py
@@ -44,8 +44,8 @@ def untlxml2py(untl_filename):
"""Parse a UNTL XML file object into a pyuntl element tree.
You can also pass this a string as file input like so:
- import Strin... | Replace mentions of StringIO with BytesIO | py |
diff --git a/tests/lax_scipy_sparse_test.py b/tests/lax_scipy_sparse_test.py
index <HASH>..<HASH> 100644
--- a/tests/lax_scipy_sparse_test.py
+++ b/tests/lax_scipy_sparse_test.py
@@ -24,10 +24,6 @@ import jax.numpy as jnp
from jax import lax
from jax import test_util as jtu
import jax.scipy.sparse.linalg
-from jax.c... | Remove redundant flag configuration from lax_scipy_sparse_test (#<I>) | py |
diff --git a/tika/tika.py b/tika/tika.py
index <HASH>..<HASH> 100644
--- a/tika/tika.py
+++ b/tika/tika.py
@@ -142,7 +142,8 @@ def parse1(option, urlOrPath, serverEndpoint=ServerEndpoint, verbose=Verbose, ti
service = services.get(option, services['all'])
if service == '/tika': responseMimeType = 'text/plain'... | - Content Disposition should be set in parse1 method as well. | py |
diff --git a/fetch.py b/fetch.py
index <HASH>..<HASH> 100755
--- a/fetch.py
+++ b/fetch.py
@@ -67,10 +67,10 @@ class BuildFlags(collections.namedtuple('BuildFlagsBase', ('asan', 'debug', 'fuz
('-asan' if self.asan else '') +
('-ccov' if self.coverage else '') +
('-debug' ... | It's important that the ordering of terms in these two yields stays the same. | py |
diff --git a/tools/pyboard.py b/tools/pyboard.py
index <HASH>..<HASH> 100755
--- a/tools/pyboard.py
+++ b/tools/pyboard.py
@@ -567,7 +567,7 @@ def main():
# do filesystem commands, if given
if args.filesystem:
filesystem_command(pyb, args.files)
- args.files.clear()
+ ... | tools/pyboard.py: Use slice del instead of list.clear() for Py2 compat. Python 2 does not have list.clear(). | py |
diff --git a/pgmagick/__init__.py b/pgmagick/__init__.py
index <HASH>..<HASH> 100644
--- a/pgmagick/__init__.py
+++ b/pgmagick/__init__.py
@@ -5,6 +5,10 @@ class Blob(_pgmagick.Blob):
pass
+class Geometry(_pgmagick.Geometry):
+ pass
+
+
class Image(_pgmagick.Image):
pass | added: Geometry Class on pgmagick | py |
diff --git a/cumulusci/robotframework/pageobjects/BasePageObjects.py b/cumulusci/robotframework/pageobjects/BasePageObjects.py
index <HASH>..<HASH> 100644
--- a/cumulusci/robotframework/pageobjects/BasePageObjects.py
+++ b/cumulusci/robotframework/pageobjects/BasePageObjects.py
@@ -166,7 +166,7 @@ class ModalMixin:
... | Changed error message to refer to "dropdown menu" rather than "popup menu" | py |
diff --git a/tinytag/__init__.py b/tinytag/__init__.py
index <HASH>..<HASH> 100644
--- a/tinytag/__init__.py
+++ b/tinytag/__init__.py
@@ -27,7 +27,7 @@ import codecs
import struct
import os
-__version__ = '0.1.0'
+__version__ = '0.1.1'
class TinyTag(object): | bumped version to <I> | py |
diff --git a/projex/enum.py b/projex/enum.py
index <HASH>..<HASH> 100644
--- a/projex/enum.py
+++ b/projex/enum.py
@@ -210,7 +210,7 @@ class enum(dict):
:param value | <variant>
label | <str>
"""
- if value:
+ if label:
self._labels[value] = label
... | Fix enum setLabel logic Sets the label when it is not the empty string or None (or anything that evals to False), unset it otherwise. | py |
diff --git a/holoviews/element/annotation.py b/holoviews/element/annotation.py
index <HASH>..<HASH> 100644
--- a/holoviews/element/annotation.py
+++ b/holoviews/element/annotation.py
@@ -89,7 +89,7 @@ class Arrow(Annotation):
value = param.String(default='Arrow')
- def __init__(self, xy, text='', direction=... | Made the constructor of Arrow consistent with that of Text | py |
diff --git a/keyring/tests/test_backend.py b/keyring/tests/test_backend.py
index <HASH>..<HASH> 100644
--- a/keyring/tests/test_backend.py
+++ b/keyring/tests/test_backend.py
@@ -37,11 +37,11 @@ class BackendBasicTests:
DIFFICULT_CHARS = string.whitespace + string.punctuation
- def setUp(self):
+ @pytest... | Prefer pytest fixtures for fixture mechanics | py |
diff --git a/pystache/view.py b/pystache/view.py
index <HASH>..<HASH> 100644
--- a/pystache/view.py
+++ b/pystache/view.py
@@ -30,7 +30,10 @@ class View(object):
name = self.template_name() + '.' + self.template_extension
self.template_file = os.path.join(self.template_path, name)
- r... | Explicitly close the template file after reading it | py |
diff --git a/aliyun/log/consumer/shard_worker.py b/aliyun/log/consumer/shard_worker.py
index <HASH>..<HASH> 100755
--- a/aliyun/log/consumer/shard_worker.py
+++ b/aliyun/log/consumer/shard_worker.py
@@ -55,6 +55,7 @@ class ShardConsumerWorker(object):
self.last_fetch_time = 0
self.last_fetch_count = 0... | add filed save_last_checkpoint for ShardConsumerWorker | py |
diff --git a/salt/modules/dockerio.py b/salt/modules/dockerio.py
index <HASH>..<HASH> 100644
--- a/salt/modules/dockerio.py
+++ b/salt/modules/dockerio.py
@@ -905,6 +905,10 @@ def start(container, binds=None, ports=None, port_bindings=None,
binds = {}
if not ports:
ports = {}
+
+ if not isinst... | Fix traceback in docker.running state This improves error reporting when invalidly-formatted input is submitted from the docker.running state to the docker.start execution fucntion. | py |
diff --git a/openstack_dashboard/test/settings.py b/openstack_dashboard/test/settings.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/test/settings.py
+++ b/openstack_dashboard/test/settings.py
@@ -109,13 +109,11 @@ STATICFILES_DIRS = settings_utils.get_xstatic_dirs(
# Load the pluggable dashboard settings
... | Remove local/enabled from test settings Change-Id: I<I>e4c6c<I>b<I>e<I>e<I>c<I>f<I>b4f0cf<I>c Closes-Bug: <I> | py |
diff --git a/stripe/api_resources/issuing/dispute.py b/stripe/api_resources/issuing/dispute.py
index <HASH>..<HASH> 100644
--- a/stripe/api_resources/issuing/dispute.py
+++ b/stripe/api_resources/issuing/dispute.py
@@ -1,11 +1,20 @@
from __future__ import absolute_import, division, print_function
+from stripe import... | Codegen for openapi <I>f | py |
diff --git a/geomdl/exchange.py b/geomdl/exchange.py
index <HASH>..<HASH> 100644
--- a/geomdl/exchange.py
+++ b/geomdl/exchange.py
@@ -466,6 +466,7 @@ def export_stl(surface, file_name, **kwargs):
* ``binary``: flag to generate a binary STL file. *Default: True*
* ``vertex_spacing``: size of the trian... | Forgot to add a kwarg to the docstrings | py |
diff --git a/spyderlib/qt/__init__.py b/spyderlib/qt/__init__.py
index <HASH>..<HASH> 100644
--- a/spyderlib/qt/__init__.py
+++ b/spyderlib/qt/__init__.py
@@ -27,9 +27,6 @@ if API == 'pyqt5':
API_NAME = 'PyQt4'
if API == 'pyqt':
- # Spyder 2.3 is compatible with both #1 and #2 PyQt API,
- # but to avo... | Qt shim: Mention that PySide is deprecated when showing ImportError message | py |
diff --git a/curdling/maestro.py b/curdling/maestro.py
index <HASH>..<HASH> 100644
--- a/curdling/maestro.py
+++ b/curdling/maestro.py
@@ -137,7 +137,11 @@ class Maestro(object):
def should_queue(self, requirement):
parsed_requirement = parse_requirement(requirement)
package_name = util.safe_name... | Attempt to fix race condition in Maestro.should_queue() | py |
diff --git a/python/test/__init__.py b/python/test/__init__.py
index <HASH>..<HASH> 100644
--- a/python/test/__init__.py
+++ b/python/test/__init__.py
@@ -0,0 +1,10 @@
+import shutil
+
+
+def tmpfiles(*files):
+ def tmpfiles_decorator(func):
+ def func_wrapper(tmpdir):
+ for f in files:
+ ... | Add test-decorator @tmpfiles for per-test copies Tests that do a destructive write on the test files (small.sgy in particular) need to do so in a test-local copy for that particular invocation of the test. This simple decorator can, in combination with the powerful pytest library, replace the home-grown TestContext f... | py |
diff --git a/shoebot/gui/var_window.py b/shoebot/gui/var_window.py
index <HASH>..<HASH> 100644
--- a/shoebot/gui/var_window.py
+++ b/shoebot/gui/var_window.py
@@ -51,10 +51,14 @@ class VarWindow(object):
label = gtk.Label(v.name)
sliderbox.pack_start(label, False, True, 20)
- adj = gtk.Adjust... | Fix Variables for small lengths (like <I> - <I>) - fixes a number of examples. | py |
diff --git a/treetime/treeanc.py b/treetime/treeanc.py
index <HASH>..<HASH> 100644
--- a/treetime/treeanc.py
+++ b/treetime/treeanc.py
@@ -1389,6 +1389,7 @@ class TreeAnc(object):
try:
i,j = self.gtr.state_index[d], self.gtr.state_index[a]
e... | fix issue in simple GTR inference | py |
diff --git a/tmuxp/workspacebuilder.py b/tmuxp/workspacebuilder.py
index <HASH>..<HASH> 100644
--- a/tmuxp/workspacebuilder.py
+++ b/tmuxp/workspacebuilder.py
@@ -287,7 +287,6 @@ class WorkspaceBuilder(object):
)
assert(isinstance(p, Pane))
- assert(int(p.index) == int(pindex)... | Remove pane index assertion See also: #<I> | py |
diff --git a/bracketeer/__init__.py b/bracketeer/__init__.py
index <HASH>..<HASH> 100644
--- a/bracketeer/__init__.py
+++ b/bracketeer/__init__.py
@@ -58,10 +58,11 @@ def build_bracket(outputPath='output.png',
if resultsPath is not None:
results_df = pd.read_csv(resultsPath)
results_df.columns = ... | ensures the results data frame gets cleaned | py |
diff --git a/tests/plugins/test_resolve_composes.py b/tests/plugins/test_resolve_composes.py
index <HASH>..<HASH> 100644
--- a/tests/plugins/test_resolve_composes.py
+++ b/tests/plugins/test_resolve_composes.py
@@ -235,6 +235,23 @@ class TestResolveComposes(object):
def test_request_compose(self, workflow, reactor... | Add explicit test for multi-arch koji tag compose | py |
diff --git a/parsl/executors/high_throughput/executor.py b/parsl/executors/high_throughput/executor.py
index <HASH>..<HASH> 100644
--- a/parsl/executors/high_throughput/executor.py
+++ b/parsl/executors/high_throughput/executor.py
@@ -160,6 +160,8 @@ class HighThroughputExecutor(ParslExecutor, RepresentationMixin):
... | This is an edited version of the following: commit d5e9b<I>c5a<I>c0d<I>e<I>ef6e<I>a | py |
diff --git a/polyaxon/db/models/abstract_jobs.py b/polyaxon/db/models/abstract_jobs.py
index <HASH>..<HASH> 100644
--- a/polyaxon/db/models/abstract_jobs.py
+++ b/polyaxon/db/models/abstract_jobs.py
@@ -35,7 +35,8 @@ class AbstractJob(DiffModel, LastStatusMixin):
@property
def started_at(self):
- sta... | Update logic for calculating started at for jobs | py |
diff --git a/openquakeserver/engine/views.py b/openquakeserver/engine/views.py
index <HASH>..<HASH> 100644
--- a/openquakeserver/engine/views.py
+++ b/openquakeserver/engine/views.py
@@ -39,7 +39,7 @@ def calc_hazard(request):
response_data = []
for hc_id, status, desc in haz_calc_data:
- url = urlpa... | engine/views: Include API version in constructed response urls. | py |
diff --git a/src/saml2/entity.py b/src/saml2/entity.py
index <HASH>..<HASH> 100644
--- a/src/saml2/entity.py
+++ b/src/saml2/entity.py
@@ -451,7 +451,7 @@ class Entity(HTTPBase):
self._add_info(response, **kwargs)
if sign:
- self.sign(response, to_sign=to_sign)
+ return self.si... | Return the signed response when signing If caller asked for a signed response, we would return None. Return the response from self.sign() instead. | py |
diff --git a/folium/folium.py b/folium/folium.py
index <HASH>..<HASH> 100644
--- a/folium/folium.py
+++ b/folium/folium.py
@@ -510,7 +510,7 @@ class Map(LegacyMap):
data=None, columns=None, key_on=None, threshold_scale=None,
fill_color='blue', fill_opacity=0.6, line_color='black'... | Add smooth_factor to choropleth method | py |
diff --git a/tests/test_contentsmanager.py b/tests/test_contentsmanager.py
index <HASH>..<HASH> 100644
--- a/tests/test_contentsmanager.py
+++ b/tests/test_contentsmanager.py
@@ -1667,10 +1667,10 @@ def test_multiple_pairing(tmpdir):
model_md = cm.get("notebook.md", content=False, load_alternative_format=False)
... | Seen an example with identical timestamps | py |
diff --git a/monolithe/__init__.py b/monolithe/__init__.py
index <HASH>..<HASH> 100644
--- a/monolithe/__init__.py
+++ b/monolithe/__init__.py
@@ -5,6 +5,11 @@
# from .command import Command
# from .specsvalidator.apivalidator import APIValidator
+import requests
+from requests.packages.urllib3.exceptions import In... | Disabled warnings due to InsecureRequestWarning | py |
diff --git a/noxfile.py b/noxfile.py
index <HASH>..<HASH> 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -999,6 +999,8 @@ def docs_html(session, compress, clean):
"""
Build Salt's HTML Documentation
"""
+ install_upgrades = ["--progress-bar=off", "-U", "pip", "setuptools", "wheel"]
+ session.install(*... | Ensure base upgrades in docs venv before run | py |
diff --git a/tensorflow_probability/python/distributions/distribution.py b/tensorflow_probability/python/distributions/distribution.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/distributions/distribution.py
+++ b/tensorflow_probability/python/distributions/distribution.py
@@ -1996,7 +1996,7 @@ def... | Allow a distrax distribution to return a tuple from distribution.batch_shape. PiperOrigin-RevId: <I> | py |
diff --git a/symfit/core/fit.py b/symfit/core/fit.py
index <HASH>..<HASH> 100644
--- a/symfit/core/fit.py
+++ b/symfit/core/fit.py
@@ -1607,7 +1607,7 @@ class HasCovarianceMatrix(object):
:param best_fit_params: ``dict`` of best fit parameters as given by .best_fit_params()
:return: covariance matrix.... | Fixed FutureWarning for comparing with None | py |
diff --git a/pyca/schedule.py b/pyca/schedule.py
index <HASH>..<HASH> 100644
--- a/pyca/schedule.py
+++ b/pyca/schedule.py
@@ -98,13 +98,17 @@ def control_loop():
while not terminate():
# Try getting an updated schedule
get_schedule()
- q = get_session().query(UpcomingEvent)\
- ... | Fix display of next schedule This patch fixes the logging of the next schedule. Previously, the next in line database entry of all upcoming events would be logged. This was not guaranteed to be the next scheduled recording since the events in the database were not guaranteed to be ordered by start date. This patch fi... | py |
diff --git a/nanoplotter/nanoplotter.py b/nanoplotter/nanoplotter.py
index <HASH>..<HASH> 100644
--- a/nanoplotter/nanoplotter.py
+++ b/nanoplotter/nanoplotter.py
@@ -382,7 +382,7 @@ def cumulative_yield(dfs, path, figformat, title, color):
scatter_kws={"s": 3})
ax.set(
xlabel='Run time (hours)',... | correcting ylabel [skip ci] | py |
diff --git a/jss.py b/jss.py
index <HASH>..<HASH> 100755
--- a/jss.py
+++ b/jss.py
@@ -509,7 +509,7 @@ class JSSObject(ElementTree.ElementTree):
"""Delete this object from the JSS."""
if not self.can_delete:
raise JSSMethodNotAllowedError(self.__class__.__name__)
- return self.jss.... | Make update reset objects root to data returned from a JSS.get. | py |
diff --git a/salt/states/boto_route53.py b/salt/states/boto_route53.py
index <HASH>..<HASH> 100644
--- a/salt/states/boto_route53.py
+++ b/salt/states/boto_route53.py
@@ -71,6 +71,8 @@ passed in as a dict, or as a string to pull from pillars or minion config:
key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajk... | Don't stacktrace if invalid credentials are passed to boto_route<I> state | py |
diff --git a/relib/mongoize.py b/relib/mongoize.py
index <HASH>..<HASH> 100644
--- a/relib/mongoize.py
+++ b/relib/mongoize.py
@@ -64,7 +64,7 @@ def get_execution_tree(func):
children = children_by_func[func] if func in children_by_func else []
children_response = f.map(children, get_execution_tree)
function_b... | Include func.__name__ in hash | py |
diff --git a/spikeextractors/sortingextractor.py b/spikeextractors/sortingextractor.py
index <HASH>..<HASH> 100644
--- a/spikeextractors/sortingextractor.py
+++ b/spikeextractors/sortingextractor.py
@@ -540,9 +540,12 @@ class SortingExtractor(ABC, BaseExtractor):
unit_ids: (array_like, int)
The li... | avoid deepcopy for multisorting extractors | py |
diff --git a/openquake/commands/restore.py b/openquake/commands/restore.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/restore.py
+++ b/openquake/commands/restore.py
@@ -22,6 +22,7 @@ import time
import os.path
import zipfile
import sqlite3
+import requests
from openquake.baselib import sap
from openquake... | Extended oq restore to download from URLs [skip CI] | py |
diff --git a/Lib/fontbakery/specifications/googlefonts_test.py b/Lib/fontbakery/specifications/googlefonts_test.py
index <HASH>..<HASH> 100644
--- a/Lib/fontbakery/specifications/googlefonts_test.py
+++ b/Lib/fontbakery/specifications/googlefonts_test.py
@@ -297,7 +297,21 @@ def test_id_006():
assert status == PASS
... | pytest: test/<I> (issue #<I>) | py |
diff --git a/openid/server/trustroot.py b/openid/server/trustroot.py
index <HASH>..<HASH> 100644
--- a/openid/server/trustroot.py
+++ b/openid/server/trustroot.py
@@ -233,9 +233,6 @@ class TrustRoot(object):
@rtype: C{NoneType} or C{L{TrustRoot}}
"""
- if not isinstance(trust_root, (str, unic... | [project @ server.trustroot.TrustRoot.parse: don't return None if other types are passed in.] If code is passing in funny values for this, I don't want silent failure. | py |
diff --git a/tensorboard/plugins/debugger_v2/debug_data_multiplexer.py b/tensorboard/plugins/debugger_v2/debug_data_multiplexer.py
index <HASH>..<HASH> 100644
--- a/tensorboard/plugins/debugger_v2/debug_data_multiplexer.py
+++ b/tensorboard/plugins/debugger_v2/debug_data_multiplexer.py
@@ -136,6 +136,12 @@ class Debugg... | TB versions after <I> should work with TF <I> (#<I>) Adds a handler to debug_data_multiplexer to avoid cases when debug_events_reader.DebugDataReader changes in TF <I>.de<I> are not present. This only affects cases where recent TB versions with DebuggerV2 rely on changes that are not yet in TF <I>. This handler becom... | py |
diff --git a/saltcloud/clouds/hpcs.py b/saltcloud/clouds/hpcs.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/hpcs.py
+++ b/saltcloud/clouds/hpcs.py
@@ -90,11 +90,17 @@ def create(vm_):
)
sys.stderr.write(err)
return False
- print data
- print vars(data)
- print ... | Added some basic code to spin nodes, but we need to wait / gather public ip info before we can finish with node magic | 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
@@ -588,7 +588,7 @@ def install(name=None, refresh=False, pkgs=None, saltenv='base', **kwargs):
version_num = _get_latest_pkg_version(pkginfo)
# ... | Check for version in list of installed versions (#<I>) * Find version in list of installed versions * lint error | py |
diff --git a/angr/analyses/cfg/cfg_base.py b/angr/analyses/cfg/cfg_base.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg/cfg_base.py
+++ b/angr/analyses/cfg/cfg_base.py
@@ -6,7 +6,7 @@ from collections import defaultdict
import networkx
-from cle import ELF, PE
+from cle import ELF, PE, Blob
import pyvex
i... | CFGBase: _executable_memory_regions() supports more types of objects. | py |
diff --git a/tests/testparameterizedobject.py b/tests/testparameterizedobject.py
index <HASH>..<HASH> 100644
--- a/tests/testparameterizedobject.py
+++ b/tests/testparameterizedobject.py
@@ -231,6 +231,30 @@ class TestNumberParameter(unittest.TestCase):
@istest
+class TestStringParameter(unittest.TestCase):
+
+ ... | Test that String handles None correctly (demonstrates bug #<I>). | py |
diff --git a/pyqg/qg_model.py b/pyqg/qg_model.py
index <HASH>..<HASH> 100644
--- a/pyqg/qg_model.py
+++ b/pyqg/qg_model.py
@@ -1,7 +1,6 @@
import numpy as np
from numpy import pi
from . import model
-from functools import cached_property
try:
import mkl
@@ -140,7 +139,7 @@ class QGModel(model.Model):
... | Removing cached_property since it's not passing tests | py |
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index <HASH>..<HASH> 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -5135,9 +5135,30 @@ class Index(IndexOpsMixin, PandasObject):
"""
Make new Index with passed location(-s) deleted.
+ Parame... | DOC: Improve docstring of Index.delete (#<I>) | py |
diff --git a/watchtower/__init__.py b/watchtower/__init__.py
index <HASH>..<HASH> 100644
--- a/watchtower/__init__.py
+++ b/watchtower/__init__.py
@@ -165,6 +165,14 @@ class CloudWatchLogHandler(logging.Handler):
self.threads = []
self.creating_log_stream, self.shutting_down = False, False
+ def ... | Move stream name determining logic to separate method (#<I>) | py |
diff --git a/andes/models/synchronous/genbase.py b/andes/models/synchronous/genbase.py
index <HASH>..<HASH> 100644
--- a/andes/models/synchronous/genbase.py
+++ b/andes/models/synchronous/genbase.py
@@ -250,7 +250,8 @@ class GENBase(Model):
def v_numeric(self, **kwargs):
# disable corresponding `StaticG... | Fixes static PV turn off logic. | py |
diff --git a/multilingual_tags/tests/test_settings.py b/multilingual_tags/tests/test_settings.py
index <HASH>..<HASH> 100644
--- a/multilingual_tags/tests/test_settings.py
+++ b/multilingual_tags/tests/test_settings.py
@@ -1,6 +1,8 @@
"""Settings that need to be set in order to run the tests."""
import os
+gettext ... | Added hvad to installed apps and added language settings. | py |
diff --git a/sortedm2m/fields.py b/sortedm2m/fields.py
index <HASH>..<HASH> 100644
--- a/sortedm2m/fields.py
+++ b/sortedm2m/fields.py
@@ -90,13 +90,13 @@ def create_sorted_many_to_many_intermediate_model(field, klass):
if django.VERSION < (1, 6):
return model._default_manager.count()
els... | Fixes #<I> -- Catching ProgrammingError while trying to find the default_sort_value. It's raised on Postgres if the relevant table does not exist yet. Thanks to Richard Barran for the report. | py |
diff --git a/djanalytics/charts/views.py b/djanalytics/charts/views.py
index <HASH>..<HASH> 100644
--- a/djanalytics/charts/views.py
+++ b/djanalytics/charts/views.py
@@ -44,7 +44,7 @@ class DateRangeChartView(TemplateView):
)
self.end_date = datetime(
end_date.year, end_date.month,
- ... | Fixing bug found in unit test - Issue #8 | py |
diff --git a/examples/nc08.py b/examples/nc08.py
index <HASH>..<HASH> 100644
--- a/examples/nc08.py
+++ b/examples/nc08.py
@@ -25,9 +25,9 @@ def demo(host, user, password):
with manager.connect(host=host, port=830, username=user, password=password,
hostkey_verify=False, device_params={'name':... | lock session for target candidate, set default operation to merge | py |
diff --git a/simplesqlite/core.py b/simplesqlite/core.py
index <HASH>..<HASH> 100644
--- a/simplesqlite/core.py
+++ b/simplesqlite/core.py
@@ -1492,7 +1492,7 @@ class SimpleSQLite(object):
return [record[0] for record in result]
- def __extract_attr_desc_list_from_tabledata(self, table_data, primary_key... | Refactor: rename a private method | py |
diff --git a/tchannel/tornado/stream.py b/tchannel/tornado/stream.py
index <HASH>..<HASH> 100644
--- a/tchannel/tornado/stream.py
+++ b/tchannel/tornado/stream.py
@@ -76,9 +76,9 @@ class InMemStream(Stream):
def write(self, chunk):
if self._state == StreamState.completed:
raise StreamingExcep... | add none check for buf to write | py |
diff --git a/libsongtext/songtext.py b/libsongtext/songtext.py
index <HASH>..<HASH> 100755
--- a/libsongtext/songtext.py
+++ b/libsongtext/songtext.py
@@ -18,7 +18,7 @@ DEFAULT_API = os.environ.get('SONGTEXT_DEFAULT_API', 'lyricsnmusic')
def get_song_lyrics(args):
- api = import_module('libsongtext.' + ''.join(... | replacing "libsongtext" with __package__ in songtext.py | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -265,3 +265,5 @@ texinfo_documents = [
# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False
+
+autodoc_member_order = 'bysource' | Added autodoc_member_order = 'bysource' | py |
diff --git a/scrapelib.py b/scrapelib.py
index <HASH>..<HASH> 100644
--- a/scrapelib.py
+++ b/scrapelib.py
@@ -294,13 +294,12 @@ class Scraper(object):
if method == 'POST' and body is None:
body = ''
- parsed_url = urlparse.urlparse(url)
-
# Default to HTTP requests
- if n... | don't use urlparse to check for scheme | py |
diff --git a/src/pybel/struct/graph.py b/src/pybel/struct/graph.py
index <HASH>..<HASH> 100644
--- a/src/pybel/struct/graph.py
+++ b/src/pybel/struct/graph.py
@@ -395,6 +395,16 @@ class BELGraph(networkx.MultiDiGraph):
"""
self._add_two_way_unqualified_edge(u, v, EQUIVALENT_TO)
+ def add_ortholog... | Add shortcut for adding orthology relationships | py |
diff --git a/cfgrib/messages.py b/cfgrib/messages.py
index <HASH>..<HASH> 100644
--- a/cfgrib/messages.py
+++ b/cfgrib/messages.py
@@ -23,7 +23,7 @@ from builtins import bytes, isinstance, str, type
# Python 2 compatibility bit not in python-future
try:
FileExistsError
-except NameError: # pragma: no cover
+exc... | Try if coveralls merges python 2 & 3 coverage. | py |
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index <HASH>..<HASH> 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -2504,10 +2504,6 @@ class CategoricalAccessor(PandasDelegate, PandasObject, NoNewAttributesMixin):
>>> s.cat.as_unordered... | CLN: Remove deprecations (#<I>) | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.