diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/dvc/output.py b/dvc/output.py
index <HASH>..<HASH> 100644
--- a/dvc/output.py
+++ b/dvc/output.py
@@ -77,8 +77,19 @@ class Dependency(object):
return self.project.state.changed(self.path, self.md5)
+ @staticmethod
+ def _changed_msg(changed):
+ if changed:
+ return 'cha... | dvc: print msg about changed dependency Fixes #<I> | py |
diff --git a/salt/modules/sysrc.py b/salt/modules/sysrc.py
index <HASH>..<HASH> 100644
--- a/salt/modules/sysrc.py
+++ b/salt/modules/sysrc.py
@@ -2,12 +2,17 @@
'''
sysrc module for FreeBSD
'''
+
+# Import Python libs
from __future__ import absolute_import
+# Import Salt libs
import salt.utils
from salt.excepti... | The return value of `__virtual__` should never be `None` | py |
diff --git a/pyocd/gdbserver/gdbserver.py b/pyocd/gdbserver/gdbserver.py
index <HASH>..<HASH> 100644
--- a/pyocd/gdbserver/gdbserver.py
+++ b/pyocd/gdbserver/gdbserver.py
@@ -340,9 +340,9 @@ class GDBServer(threading.Thread):
if self.detach_event.isSet():
continue
- ... | Gdbserver: log server port in client connect/disconnect messages. | py |
diff --git a/djstripe/models.py b/djstripe/models.py
index <HASH>..<HASH> 100644
--- a/djstripe/models.py
+++ b/djstripe/models.py
@@ -514,7 +514,7 @@ class Customer(StripeObject):
self.send_invoice()
subscription_made.send(sender=self, plan=plan, stripe_response=resp)
- def charge(self, amou... | send_receipt available on charge() method | py |
diff --git a/python/test/test_hall_number_from_symmetry.py b/python/test/test_hall_number_from_symmetry.py
index <HASH>..<HASH> 100644
--- a/python/test/test_hall_number_from_symmetry.py
+++ b/python/test/test_hall_number_from_symmetry.py
@@ -3,16 +3,7 @@ import numpy as np
from spglib import get_symmetry_dataset, get... | Minor update of the test for get_hall_number_from_symmetry | py |
diff --git a/tools/upip.py b/tools/upip.py
index <HASH>..<HASH> 100644
--- a/tools/upip.py
+++ b/tools/upip.py
@@ -41,10 +41,6 @@ def op_split(path):
return (head, r[1])
-def op_basename(path):
- return op_split(path)[1]
-
-
# Expects *file* name
def _makedirs(name, mode=0o777):
ret = False
@@ -205,7... | tools/upip.py: Remove unused op_basename() function. It seems this was never used, at least not since its inclusion in this repository. | py |
diff --git a/cumulus/storage.py b/cumulus/storage.py
index <HASH>..<HASH> 100644
--- a/cumulus/storage.py
+++ b/cumulus/storage.py
@@ -60,9 +60,11 @@ class CloudFilesStorage(Storage):
def _get_connection(self):
if not hasattr(self, '_connection'):
- self._connection = cloudfiles.get_connectio... | explicitly set kwargs in get_connection call | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -59,7 +59,7 @@ setup(
zip_safe=False,
keywords='bigchaindb_driver',
classifiers=[
- 'Development Status :: 3 - Alpha',
+ 'Development Status :: 4 - Beta',
'Intended Audience :: Developers'... | changed development status from Alpha to Beta in setup.py | py |
diff --git a/hamster/applet.py b/hamster/applet.py
index <HASH>..<HASH> 100755
--- a/hamster/applet.py
+++ b/hamster/applet.py
@@ -148,7 +148,8 @@ class HamsterApplet(object):
def on_today_release_event(self, tree, event):
pointer = event.window.get_pointer() # x, y, flags
path = tree.get_path_at... | fixed error when switching tasks with double-click svn path=/trunk/; revision=<I> | py |
diff --git a/uwsgi_tools/curl.py b/uwsgi_tools/curl.py
index <HASH>..<HASH> 100644
--- a/uwsgi_tools/curl.py
+++ b/uwsgi_tools/curl.py
@@ -97,8 +97,8 @@ def cli(*args):
print(response)
status = int(response.split(' ', 2)[1])
- return 200 <= status < 300
+ return not (200 <= status < 300)
if __nam... | Fix exit code in uwsgi_curl. | py |
diff --git a/salt/modules/kmod.py b/salt/modules/kmod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/kmod.py
+++ b/salt/modules/kmod.py
@@ -53,6 +53,8 @@ def _get_modules_conf():
Return location of modules config file.
Default: /etc/modules
'''
+ if __grains__['os'] == 'Arch':
+ return '/etc... | Use an alternative modules file on Arch This fixes #<I> but more investegation wrt where this should be and on what OSes/kernel versions needs investigation. | py |
diff --git a/qbittorrent/client.py b/qbittorrent/client.py
index <HASH>..<HASH> 100644
--- a/qbittorrent/client.py
+++ b/qbittorrent/client.py
@@ -295,7 +295,10 @@ class Client(object):
if options.get(old_arg) and not options.get(new_arg):
options[new_arg] = options[old_arg]
- opt... | fixed download files form a list by fixing the list handling to match the qbittorent spec | py |
diff --git a/chess/__init__.py b/chess/__init__.py
index <HASH>..<HASH> 100644
--- a/chess/__init__.py
+++ b/chess/__init__.py
@@ -354,7 +354,7 @@ BB_FILE_MASKS, BB_FILE_ATTACKS = _attack_table([-8, 8])
BB_RANK_MASKS, BB_RANK_ATTACKS = _attack_table([-1, 1])
-def _rays() -> Tuple[List[List[Bitboard]], List[List[Bi... | Fix typing after replacing BB_BETWEEN | py |
diff --git a/uni_form/tests/tests.py b/uni_form/tests/tests.py
index <HASH>..<HASH> 100644
--- a/uni_form/tests/tests.py
+++ b/uni_form/tests/tests.py
@@ -341,3 +341,38 @@ class TestFormLayout(TestCase):
self.assertTrue('formColumn' in html)
self.assertTrue('id="multifield_info"' in html)
sel... | Adding a test for the new feature that let us change Layout and Fieldset dynamically | py |
diff --git a/udiskie/prompt.py b/udiskie/prompt.py
index <HASH>..<HASH> 100644
--- a/udiskie/prompt.py
+++ b/udiskie/prompt.py
@@ -16,7 +16,7 @@ import sys
from .async_ import Async, Coroutine, Return, Subprocess
from .locale import _
-from .compat import basestring, unicode
+from .compat import basestring
__a... | Revert another unicode related 'fix' This one was necessary due to the possibility of getting bytes contaminated data from config / command line arguments. This leak is now closed. | py |
diff --git a/zengine/forms/model_form.py b/zengine/forms/model_form.py
index <HASH>..<HASH> 100644
--- a/zengine/forms/model_form.py
+++ b/zengine/forms/model_form.py
@@ -406,6 +406,15 @@ class ModelForm(object):
self._fields[field].choices = choices
+ def set_default_of(self, field, default):
+ ... | ADD, set_default_of method added in order to add default values to form elements just like set_choices_of | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ try:
doc.markdown = open('README.md').read()
long_description = doc.rst
except:
- long_description = open('README.md').read()
+ pass
setup( | Don't read in README if it fails | py |
diff --git a/gridmap/job.py b/gridmap/job.py
index <HASH>..<HASH> 100644
--- a/gridmap/job.py
+++ b/gridmap/job.py
@@ -432,6 +432,8 @@ class JobMonitor(object):
# could have been an exception, we check right away
elif isinstance(job.ret, Exception):
+ job.cause_of_death = 'exc... | Store 'exception' as cause_of_death when we encounter and exception. | py |
diff --git a/mythril/laser/smt/bitvecfunc.py b/mythril/laser/smt/bitvecfunc.py
index <HASH>..<HASH> 100644
--- a/mythril/laser/smt/bitvecfunc.py
+++ b/mythril/laser/smt/bitvecfunc.py
@@ -3,7 +3,7 @@ from itertools import product
from typing import Optional, Union, cast, Callable, List
import z3
-from mythril.laser.... | Use padded operation over operation (#<I>) * Use padded operation over operation * Add missing operation | py |
diff --git a/bulbs/utils/test/__init__.py b/bulbs/utils/test/__init__.py
index <HASH>..<HASH> 100644
--- a/bulbs/utils/test/__init__.py
+++ b/bulbs/utils/test/__init__.py
@@ -35,7 +35,11 @@ def make_content(*args, **kwargs):
models = indexable_registry.families[Content]
model_keys = []
for ke... | also exclude bulbs BaseSuperFeautre model | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ setup(
author='Nicholas H.Tollervey',
author_email='ntoll@ntoll.org',
url='https://github.com/ntoll/uflash',
- py_modules=['uflash', 'hexify'],
+ py_modules=['uflash', 'py2hex'],
licens... | Updates to reflect hexify -> py2hex changes Changed command name from hexify to py2hex Changed entry point for py2hex | py |
diff --git a/proselint/checks/garner/phrasal_adjectives.py b/proselint/checks/garner/phrasal_adjectives.py
index <HASH>..<HASH> 100644
--- a/proselint/checks/garner/phrasal_adjectives.py
+++ b/proselint/checks/garner/phrasal_adjectives.py
@@ -81,7 +81,7 @@ def check_examples(text):
["open-and-shut case", ["ope... | Fix typo in list of phrasal adjectives | py |
diff --git a/airflow/models.py b/airflow/models.py
index <HASH>..<HASH> 100644
--- a/airflow/models.py
+++ b/airflow/models.py
@@ -2108,6 +2108,14 @@ class DAG(LoggingMixin):
return [t.task_id for t in self.tasks]
@property
+ def active_task_ids(self):
+ return [t.task_id for t in self.tasks i... | [fix] disregarding adhoc tasks when closing dag runs | py |
diff --git a/src/kba/pipeline/_pipeline.py b/src/kba/pipeline/_pipeline.py
index <HASH>..<HASH> 100644
--- a/src/kba/pipeline/_pipeline.py
+++ b/src/kba/pipeline/_pipeline.py
@@ -61,6 +61,8 @@ class Pipeline(object):
else:
external_stages = None
+ logger.critical('starting a task_queue')
... | make sure tmp files have a name that is easy to find and remove | py |
diff --git a/cheroot/test/test_server.py b/cheroot/test/test_server.py
index <HASH>..<HASH> 100644
--- a/cheroot/test/test_server.py
+++ b/cheroot/test/test_server.py
@@ -119,6 +119,8 @@ def test_stop_interrupts_serve():
def test_server_interrupt():
"""Check that assigning interrupt stops the server."""
+ ra... | Move the test raise marker into a local var | py |
diff --git a/keepalive/keepalive.py b/keepalive/keepalive.py
index <HASH>..<HASH> 100644
--- a/keepalive/keepalive.py
+++ b/keepalive/keepalive.py
@@ -388,7 +388,7 @@ class HTTPResponse(httplib.HTTPResponse):
httplib.HTTPResponse.__init__(self, sock, debuglevel)
self.fileno = sock.fileno
... | trying to fix issue #2 by resorting to the b string prefix, which raises the minimum python version to >=<I> | py |
diff --git a/py/test/selenium/webdriver/common/upload_tests.py b/py/test/selenium/webdriver/common/upload_tests.py
index <HASH>..<HASH> 100644
--- a/py/test/selenium/webdriver/common/upload_tests.py
+++ b/py/test/selenium/webdriver/common/upload_tests.py
@@ -39,9 +39,7 @@ def test_can_upload_two_files(driver, pages):
... | [py] Fix flake8 in test | py |
diff --git a/build.py b/build.py
index <HASH>..<HASH> 100755
--- a/build.py
+++ b/build.py
@@ -153,13 +153,16 @@ PROJ4JS_ZIP_MD5 = '17caad64cf6ebc6e6fe62f292b134897'
def report_sizes(t):
- t.info('uncompressed: %d bytes', os.stat(t.name).st_size)
stringio = StringIO()
gzipfile = gzip.GzipFile(t.name, ... | Better formatted output for formatted sizes. | py |
diff --git a/pyap/parser.py b/pyap/parser.py
index <HASH>..<HASH> 100644
--- a/pyap/parser.py
+++ b/pyap/parser.py
@@ -75,6 +75,8 @@ class AddressParser:
match_as_dict.update({'country_id': self.country})
# combine results
cleaned_dict = self._combine_results(match_as_dict)
+ ... | add match location start/end to Address instance | py |
diff --git a/src/Lib/browser/markdown.py b/src/Lib/browser/markdown.py
index <HASH>..<HASH> 100644
--- a/src/Lib/browser/markdown.py
+++ b/src/Lib/browser/markdown.py
@@ -205,7 +205,7 @@ def mark(src):
if not line.strip():
line = '<p></p>'
if section.line:
- ... | Minor change in markdown.py | py |
diff --git a/phoebe/backend/alternate_backends.py b/phoebe/backend/alternate_backends.py
index <HASH>..<HASH> 100644
--- a/phoebe/backend/alternate_backends.py
+++ b/phoebe/backend/alternate_backends.py
@@ -285,9 +285,10 @@ def compute_legacy(system, *args, **kwargs):
if psd.get_value(param) != psd2.... | probably not final fix of phoebe1 backend compatability functions. | py |
diff --git a/edx_api/enrollments/__init__.py b/edx_api/enrollments/__init__.py
index <HASH>..<HASH> 100644
--- a/edx_api/enrollments/__init__.py
+++ b/edx_api/enrollments/__init__.py
@@ -1,7 +1,7 @@
"""
edX Enrollment REST API client class
"""
-from edx_api.constants import ENROLLMENT_MODE_AUDIT
+from edx_api.consta... | feat: add Verified mode enrollment creation (#<I>) * feat: add creation of verified enrollment | py |
diff --git a/tests/test_mock_submission.py b/tests/test_mock_submission.py
index <HASH>..<HASH> 100644
--- a/tests/test_mock_submission.py
+++ b/tests/test_mock_submission.py
@@ -339,8 +339,8 @@ class MockSubmission(_QueryTest):
future = solver.sample_qubo({})
future.result()
- # ... | Generalize exp back-test to account for initial back-off | py |
diff --git a/lexicon/providers/ovh.py b/lexicon/providers/ovh.py
index <HASH>..<HASH> 100644
--- a/lexicon/providers/ovh.py
+++ b/lexicon/providers/ovh.py
@@ -206,9 +206,15 @@ class Provider(BaseProvider):
]).encode('utf-8'))
# Sign the request
- prepared_request.headers['X-Ovh-Signature'] = ... | OVH provider: add proxy support Use session.request instead of session.send to support proxy. | py |
diff --git a/tests/utils/test_cli.py b/tests/utils/test_cli.py
index <HASH>..<HASH> 100644
--- a/tests/utils/test_cli.py
+++ b/tests/utils/test_cli.py
@@ -33,6 +33,7 @@ class CLITest(unittest.TestCase):
self.assertIn("Platform", cs.out)
self.assertIn("Using distributed or parallel set-up in script?", ... | Skip failing test until @gante fix it. | py |
diff --git a/ca/django_ca/tests/tests_admin.py b/ca/django_ca/tests/tests_admin.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/tests/tests_admin.py
+++ b/ca/django_ca/tests/tests_admin.py
@@ -105,6 +105,7 @@ class AdminTestMixin(object):
self.assertRedirects(response, expected, **kwargs)
+@freeze_time(t... | freeze time for some test cases that actually depend on time | py |
diff --git a/salt/wheel/key.py b/salt/wheel/key.py
index <HASH>..<HASH> 100644
--- a/salt/wheel/key.py
+++ b/salt/wheel/key.py
@@ -108,6 +108,18 @@ def accept_dict(match, include_rejected=False, include_denied=False):
match
The dictionary of keys to accept.
+ include_rejected
+ To include reje... | Add docs for new kwargs added to the wheel key module (#<I>) * Add docs for new kwargs added to the wheel key module Refs #<I> * Fix copy-paste error: use the correct kwarg name/description | py |
diff --git a/astroplan/utils.py b/astroplan/utils.py
index <HASH>..<HASH> 100644
--- a/astroplan/utils.py
+++ b/astroplan/utils.py
@@ -36,11 +36,11 @@ def _low_precision_utc_to_ut1(self, jd1, jd2):
precision time conversion by assuming UT1-UTC=0 always.
This method mimics `~astropy.coordinates.builtin_frames.... | fixed _low_precision to throw the warning when off the table | py |
diff --git a/pyapns/server.py b/pyapns/server.py
index <HASH>..<HASH> 100644
--- a/pyapns/server.py
+++ b/pyapns/server.py
@@ -50,7 +50,10 @@ class IAPNSService(Interface):
class APNSClientContextFactory(ClientContextFactory):
def __init__(self, ssl_cert_file):
- log.msg('APNSClientContextFactory ssl_cert_file... | address #<I> - do not log the pem file | py |
diff --git a/salt/utils/error.py b/salt/utils/error.py
index <HASH>..<HASH> 100644
--- a/salt/utils/error.py
+++ b/salt/utils/error.py
@@ -5,11 +5,15 @@ Utilities to enable exception reraising across the master commands
'''
from __future__ import absolute_import
-# Import python libs
-try:
+import sys
+# True if we... | Fixed unknown 'exceptions' under Python3 (#<I>) | py |
diff --git a/a10_neutron_lbaas/a10_config.py b/a10_neutron_lbaas/a10_config.py
index <HASH>..<HASH> 100644
--- a/a10_neutron_lbaas/a10_config.py
+++ b/a10_neutron_lbaas/a10_config.py
@@ -34,7 +34,13 @@ class A10Config(object):
}
def __init__(self):
- if os.path.exists('/etc/a10'):
+ # Look for... | Look for config.py in virtual environment | py |
diff --git a/django_handleref/rest/serializers.py b/django_handleref/rest/serializers.py
index <HASH>..<HASH> 100644
--- a/django_handleref/rest/serializers.py
+++ b/django_handleref/rest/serializers.py
@@ -3,10 +3,10 @@ from rest_framework import serializers
class HandleRefSerializer(serializers.ModelSerializer):
... | rest serializer: status to readonly | py |
diff --git a/openxc/tools/control.py b/openxc/tools/control.py
index <HASH>..<HASH> 100644
--- a/openxc/tools/control.py
+++ b/openxc/tools/control.py
@@ -96,7 +96,7 @@ def parse_options():
parser = argparse.ArgumentParser(description="Send control messages to an "
"attached OpenXC vehicle interface",... | add git_vin command to main() so openxc-python can understand the new command. | py |
diff --git a/pyqode/python/modes/autoindent.py b/pyqode/python/modes/autoindent.py
index <HASH>..<HASH> 100644
--- a/pyqode/python/modes/autoindent.py
+++ b/pyqode/python/modes/autoindent.py
@@ -121,6 +121,10 @@ class PyAutoIndentMode(AutoIndentMode):
return len(open_p), len(closed_p), open_p, closed_p
... | Fix infinite recursion if no symbol matcher has been installed | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -767,7 +767,7 @@ class Minion(object):
salt.utils.daemonize_if(opts)
sdata = {'pid': os.getpid()}
sdata.update(data)
- with salt.utils.fopen(fn_, 'w+') ... | read/write in binary w/msgpack | py |
diff --git a/jose/jws.py b/jose/jws.py
index <HASH>..<HASH> 100644
--- a/jose/jws.py
+++ b/jose/jws.py
@@ -20,7 +20,7 @@ def sign(payload, key, headers=None, algorithm=ALGORITHMS.HS256):
"""Signs a claims set and returns a JWS string.
Args:
- payload (str): A string to sign
+ payload (str or d... | Clarify sign docstring to allow for dict payload Since a `payload` of a Mapping type is converted to a string in `_encode_payload`, this commit updates the docstring for `sign` to reflect that | py |
diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/fixtures/base_case.py
+++ b/seleniumbase/fixtures/base_case.py
@@ -3526,7 +3526,7 @@ class BaseCase(unittest.TestCase):
'</style>\n'
'</head>\n\n'
'<... | Update line spacing in Presenter-generated .html files | py |
diff --git a/housekeeper/store/api.py b/housekeeper/store/api.py
index <HASH>..<HASH> 100644
--- a/housekeeper/store/api.py
+++ b/housekeeper/store/api.py
@@ -5,6 +5,7 @@ from typing import List
from pathlib import Path
import alchy
+from sqlalchemy import func
from housekeeper.add.core import AddHandler
from .... | filter files that have ALL matching tags in api | py |
diff --git a/indra/sources/hypothesis/annotator.py b/indra/sources/hypothesis/annotator.py
index <HASH>..<HASH> 100644
--- a/indra/sources/hypothesis/annotator.py
+++ b/indra/sources/hypothesis/annotator.py
@@ -26,12 +26,12 @@ def evidence_to_annotation(evidence):
if not evidence.text:
return None
- ... | Handle missing IDs in text refs | py |
diff --git a/celery_progress/backend.py b/celery_progress/backend.py
index <HASH>..<HASH> 100644
--- a/celery_progress/backend.py
+++ b/celery_progress/backend.py
@@ -73,10 +73,10 @@ class ProgressRecorder(AbstractProgressRecorder):
class Progress(object):
def __init__(self, result):
- '''
+ """
... | use double quotes for docstrings | py |
diff --git a/raiden/network/proxies/user_deposit.py b/raiden/network/proxies/user_deposit.py
index <HASH>..<HASH> 100644
--- a/raiden/network/proxies/user_deposit.py
+++ b/raiden/network/proxies/user_deposit.py
@@ -140,6 +140,7 @@ class UserDeposit:
if total_deposit <= previous_total_deposit:
... | Fix error messages for failed deposit() preconditions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ with open('HISTORY.md') as history_file:
install_requires = [
- 'Keras>=2.1.6,<3',
+ 'Keras>=2.1.6,<2.4',
'featuretools>=0.6.1,<0.12',
'iso639>=0.1.4,<0.2',
'langdetect>=1.0.7,<2', | Making sure that keras version is below <I> in order to avoid incompatibilities with tensorflow. | py |
diff --git a/tests/test_apython.py b/tests/test_apython.py
index <HASH>..<HASH> 100644
--- a/tests/test_apython.py
+++ b/tests/test_apython.py
@@ -183,7 +183,8 @@ def test_apython_non_existing_file(capfd):
apython.run_apython(['idontexist.py'])
out, err = capfd.readouterr()
assert out == ''
- asse... | Fix python <I> compatibility in the tests | py |
diff --git a/src/holodeck/command.py b/src/holodeck/command.py
index <HASH>..<HASH> 100644
--- a/src/holodeck/command.py
+++ b/src/holodeck/command.py
@@ -97,7 +97,7 @@ class Command:
A string or list of strings to add to the parameters.
"""
- if isinstance(string, list) or isinstance... | added "if isinstance(number, (list, tuple, np.ndarray)):" in another applicable spot | py |
diff --git a/docs/source/_config.py b/docs/source/_config.py
index <HASH>..<HASH> 100644
--- a/docs/source/_config.py
+++ b/docs/source/_config.py
@@ -1,7 +1,9 @@
+# docstyle-ignore
INSTALL_CONTENT = """
-# Transformers installation ! pip install transformers datasets # To install from source instead of the last relea... | Prevent style_doc from tempering the config file | py |
diff --git a/credstash.py b/credstash.py
index <HASH>..<HASH> 100755
--- a/credstash.py
+++ b/credstash.py
@@ -50,7 +50,7 @@ class KeyValueToDictionary(argparse.Action):
def __call__(self, parser, namespace, values, option_string=None):
setattr(namespace,
self.dest,
- {x[... | removed dict comprehension to support python<I> | py |
diff --git a/pysat/_instrument.py b/pysat/_instrument.py
index <HASH>..<HASH> 100644
--- a/pysat/_instrument.py
+++ b/pysat/_instrument.py
@@ -683,7 +683,7 @@ class Instrument(object):
# Note that the labels in meta may be used when creating a file
# thus 'Pysat_UTS' would be found in the re... | STY: Tweak to example | py |
diff --git a/tensor2tensor/data_generators/gym_problems.py b/tensor2tensor/data_generators/gym_problems.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/data_generators/gym_problems.py
+++ b/tensor2tensor/data_generators/gym_problems.py
@@ -541,6 +541,7 @@ class GymDiscreteProblemWithAgent(GymDiscreteProblem):
... | Don't forget the reward of the step with done. PiperOrigin-RevId: <I> | py |
diff --git a/pymongo/mongo_replica_set_client.py b/pymongo/mongo_replica_set_client.py
index <HASH>..<HASH> 100644
--- a/pymongo/mongo_replica_set_client.py
+++ b/pymongo/mongo_replica_set_client.py
@@ -640,7 +640,7 @@ class MongoReplicaSetClient(common.BaseObject):
self.__ssl_ca_certs = self.__opts.get('ssl_c... | RS client should set ssl=True if other ssl options are set. | py |
diff --git a/mtp_common/logging.py b/mtp_common/logging.py
index <HASH>..<HASH> 100644
--- a/mtp_common/logging.py
+++ b/mtp_common/logging.py
@@ -9,6 +9,7 @@ class ELKFormatter(logging.Formatter):
def format(self, record):
log = {
+ 'timestamp': record.asctime,
'timestamp_msec':... | Include human readable timestamp in log output | py |
diff --git a/datacleaner/datacleaner.py b/datacleaner/datacleaner.py
index <HASH>..<HASH> 100644
--- a/datacleaner/datacleaner.py
+++ b/datacleaner/datacleaner.py
@@ -76,7 +76,13 @@ def autoclean(input_dataframe, drop_nans=False, copy=False, encoder=None,
try:
input_dataframe[column].fillna(input_... | Fix index out of bounds issue when fillna | py |
diff --git a/djcelery/models.py b/djcelery/models.py
index <HASH>..<HASH> 100644
--- a/djcelery/models.py
+++ b/djcelery/models.py
@@ -174,7 +174,7 @@ class PeriodicTask(models.Model):
verbose_name=_(u"interval"))
crontab = models.ForeignKey(CrontabSchedule, null=True, blank=True,... | Fixed typo "use one of interval/schedule" -> "interval/crontab" | py |
diff --git a/dragonpy/CoCo/config.py b/dragonpy/CoCo/config.py
index <HASH>..<HASH> 100644
--- a/dragonpy/CoCo/config.py
+++ b/dragonpy/CoCo/config.py
@@ -14,6 +14,7 @@ import logging
from dragonpy.Dragon32.config import Dragon32Cfg
from dragonpy.CoCo.mem_info import get_coco_meminfo
+from dragonpy.utils.logging_ut... | add RND() seed debug output also to CoCo config | py |
diff --git a/lib/ansiblelint/utils.py b/lib/ansiblelint/utils.py
index <HASH>..<HASH> 100644
--- a/lib/ansiblelint/utils.py
+++ b/lib/ansiblelint/utils.py
@@ -86,7 +86,7 @@ def find_children(playbook):
items = _playbook_items(pb_data)
for item in items:
for child in play_children(basedir, item, playb... | Make backward compatible with ansible <I>.x | 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
@@ -830,7 +830,7 @@ def validate_windows_cred(host,
password,
host
)
- logging_cmd = "winexe -U '{0}%XXX-REDACTED-XXX' //{2} \"hostname\"".format(
+ logging... | Fixed some index numbers to fix some errors. | py |
diff --git a/cirq/sim/density_matrix_simulator_test.py b/cirq/sim/density_matrix_simulator_test.py
index <HASH>..<HASH> 100644
--- a/cirq/sim/density_matrix_simulator_test.py
+++ b/cirq/sim/density_matrix_simulator_test.py
@@ -667,6 +667,9 @@ def test_density_matrix_trial_result_str():
measurements={},
... | Remove whitespace in density simulator test (#<I>) - Remove whitespace in density simulator test - Numpy does not have a consistent whitespace across versions, so this test can fail in other contexts | py |
diff --git a/Geometry/__init__.py b/Geometry/__init__.py
index <HASH>..<HASH> 100644
--- a/Geometry/__init__.py
+++ b/Geometry/__init__.py
@@ -11,7 +11,7 @@ except:
from .point import Point
from .ellipse import Ellipse, Circle
-from .line import Line
+from .line import Line, Segment, Ray
from .triangle import Tria... | re-ordered Ellipse and Circle in __all__ array to reflect subclassing | py |
diff --git a/pysatMagVect/_core.py b/pysatMagVect/_core.py
index <HASH>..<HASH> 100644
--- a/pysatMagVect/_core.py
+++ b/pysatMagVect/_core.py
@@ -725,7 +725,7 @@ def magnetic_vector(x, y, z, dates, normalize=False):
def calculate_mag_drift_unit_vectors_ecef(latitude, longitude, altitude, datetimes,
... | ENH: Reduced allowed tolerance, unit_vectors. | py |
diff --git a/gwpy/timeseries/io/losc.py b/gwpy/timeseries/io/losc.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/io/losc.py
+++ b/gwpy/timeseries/io/losc.py
@@ -249,8 +249,8 @@ def read_losc_hdf5_state(f, path='quality/simple', start=None, end=None,
dataset = io_hdf5.find_dataset(f, '%s/DQmask' % path)
... | gwpy.timeseries: corrected DeprecationWarnings | py |
diff --git a/spyder/app/tests/test_mainwindow.py b/spyder/app/tests/test_mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/tests/test_mainwindow.py
+++ b/spyder/app/tests/test_mainwindow.py
@@ -3492,8 +3492,6 @@ def test_run_unsaved_file_multiprocessing(main_window, qtbot):
@pytest.mark.slow
@flaky(max_run... | Fix a segfault with the intro tour | py |
diff --git a/api.py b/api.py
index <HASH>..<HASH> 100644
--- a/api.py
+++ b/api.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
-# Copyright (C) 2013, 2014 CERN.
+# Copyright (C) 2013, 2014, 2015 CERN.
#
# Invenio is free software; you can redistribute it and/or
# modify it under the ... | records: fix type consistency of record * FIX Improves type consistency of keys and values in JSON record created from MARC and retrieved from storage engine. (closes #<I>) | py |
diff --git a/tests/test_requests.py b/tests/test_requests.py
index <HASH>..<HASH> 100644
--- a/tests/test_requests.py
+++ b/tests/test_requests.py
@@ -92,6 +92,24 @@ def test_query_string():
assert request.args.get('test2') == 'false'
+def test_token():
+ app = Sanic('test_post_token')
+
+ @app.route('/'... | Added test for new token property on request object. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -59,7 +59,7 @@ def main():
license='Apache2.0',
url='https://github.com/google/mobly',
download_url='https://github.com/google/mobly/tarball/1.8.1',
- packages=setuptools.find_packages(),
+ ... | Remove `tests` module from installation. (#<I>) | py |
diff --git a/automated_logging/signals/request.py b/automated_logging/signals/request.py
index <HASH>..<HASH> 100644
--- a/automated_logging/signals/request.py
+++ b/automated_logging/signals/request.py
@@ -91,12 +91,13 @@ def request_finished_signal(sender, **kwargs) -> None:
if request_exclusion(request, funct... | fix: #<I>, IP is now recorded in the log | py |
diff --git a/bucky/__init__.py b/bucky/__init__.py
index <HASH>..<HASH> 100644
--- a/bucky/__init__.py
+++ b/bucky/__init__.py
@@ -14,5 +14,5 @@
#
# Copyright 2011 Cloudant, Inc.
-version_info = (0, 1, 0)
+version_info = (0, 2, 0)
__version__ = ".".join(map(str, version_info)) | Bump to version <I>. | py |
diff --git a/anthem/cli.py b/anthem/cli.py
index <HASH>..<HASH> 100644
--- a/anthem/cli.py
+++ b/anthem/cli.py
@@ -66,9 +66,10 @@ def banner():
class Options(object):
- def __init__(self, interactive=False, quiet=False):
+ def __init__(self, interactive=False, quiet=False, test_mode=False):
self.int... | Add a test mode that rollbacks the cursor | py |
diff --git a/zinnia/models/author.py b/zinnia/models/author.py
index <HASH>..<HASH> 100644
--- a/zinnia/models/author.py
+++ b/zinnia/models/author.py
@@ -6,16 +6,18 @@ from django.utils.encoding import python_2_unicode_compatible
from zinnia.managers import entries_published
from zinnia.managers import EntryRelatedP... | Move Author Managers into an abstract base class Copying of the default manager causes the source model to become poluted. To supply additional managers without replacing the default manager, the Django docs recommend inheriting from an abstract base class. <URL> | py |
diff --git a/lib/svtplay_dl/fetcher/hds.py b/lib/svtplay_dl/fetcher/hds.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/fetcher/hds.py
+++ b/lib/svtplay_dl/fetcher/hds.py
@@ -40,10 +40,10 @@ class LiveHDSException(HDSException):
url, "This is a live HDS stream, and they are not supported.")
-def hd... | hds: we want to get the data inside of the parse function | py |
diff --git a/simuvex/engines/vex/engine.py b/simuvex/engines/vex/engine.py
index <HASH>..<HASH> 100644
--- a/simuvex/engines/vex/engine.py
+++ b/simuvex/engines/vex/engine.py
@@ -173,13 +173,13 @@ class SimEngineVEX(SimEngine):
# exit barring errors
has_default_exit = num_stmts <= last_stmt
- ... | VEXEngine: Execute more instructions in super fastpath mode. | py |
diff --git a/test_autofit/graphical/regression/test_linear_regression.py b/test_autofit/graphical/regression/test_linear_regression.py
index <HASH>..<HASH> 100644
--- a/test_autofit/graphical/regression/test_linear_regression.py
+++ b/test_autofit/graphical/regression/test_linear_regression.py
@@ -82,8 +82,8 @@ def che... | relaxing checks on the sd for linear regression | py |
diff --git a/raiden/tests/unit/test_logging.py b/raiden/tests/unit/test_logging.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/unit/test_logging.py
+++ b/raiden/tests/unit/test_logging.py
@@ -104,6 +104,7 @@ def test_basic_logging(capsys, module, level, logger, disabled_debug, tmpdir):
{module: level},
... | Don't colorize logs for testing | py |
diff --git a/macaroonbakery/tests/test_client.py b/macaroonbakery/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/macaroonbakery/tests/test_client.py
+++ b/macaroonbakery/tests/test_client.py
@@ -3,6 +3,7 @@
import base64
import datetime
import json
+import os
import threading
from unittest import TestCase
... | Isolate client tests from any HTTP proxy Debian's Python packaging tools set http_proxy to a non-existent proxy to help flush out packages that try to talk to the network during build, but these tests could previously fail in more normal development environments too. | py |
diff --git a/qtawesome/iconic_font.py b/qtawesome/iconic_font.py
index <HASH>..<HASH> 100644
--- a/qtawesome/iconic_font.py
+++ b/qtawesome/iconic_font.py
@@ -140,7 +140,12 @@ class CharIconPainter:
if animation is not None:
animation.setup(self, painter, rect)
- painter.setFont(iconic.fo... | Disable font hinting to mitigate tremulous spinning to some extent | py |
diff --git a/lib/stsci/tools/fileutil.py b/lib/stsci/tools/fileutil.py
index <HASH>..<HASH> 100644
--- a/lib/stsci/tools/fileutil.py
+++ b/lib/stsci/tools/fileutil.py
@@ -855,13 +855,12 @@ def getExtn(fimg,extn=None):
else:
i = 0
for hdu in fimg:
- ... | The getExtn() function in 'fileutil' was revised to fix a problem with recognizing what extensions to investigate to find the one requested by the user. This problem was reported by Daniel Durand (CADC) in their use of the wcsutil.WCSObject() class. git-svn-id: <URL> | py |
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py
index <HASH>..<HASH> 100644
--- a/pyrogram/__init__.py
+++ b/pyrogram/__init__.py
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
-__version__ =... | Update Pyrogram to <I> | py |
diff --git a/yandextank/plugins/Phantom/plugin.py b/yandextank/plugins/Phantom/plugin.py
index <HASH>..<HASH> 100644
--- a/yandextank/plugins/Phantom/plugin.py
+++ b/yandextank/plugins/Phantom/plugin.py
@@ -197,6 +197,7 @@ class PhantomPlugin(AbstractPlugin, AggregateResultListener):
if self.process and self.p... | bugfix - appropriate wait for process termination | py |
diff --git a/rinoh/float.py b/rinoh/float.py
index <HASH>..<HASH> 100644
--- a/rinoh/float.py
+++ b/rinoh/float.py
@@ -41,8 +41,8 @@ class ImageBase(Flowable):
def render(self, container, last_descender, state=None):
try:
image = container.document.backend.Image(self.filename_or_file)
- ... | Be more verbose when loading an image fails | py |
diff --git a/couchbase/views/iterator.py b/couchbase/views/iterator.py
index <HASH>..<HASH> 100644
--- a/couchbase/views/iterator.py
+++ b/couchbase/views/iterator.py
@@ -382,6 +382,10 @@ class View(object):
self._handle_meta(self.raw.value)
self._do_iter = False
+ # No rows and nothi... | Don't exhaust view iterator until done flag is set Otherwise we might not get all metadata, causing some tests to fail at times Change-Id: I<I>bf4dc<I>d8dc<I>ca<I>d1c<I>d<I>c Reviewed-on: <URL> | py |
diff --git a/dipper/models/Genotype.py b/dipper/models/Genotype.py
index <HASH>..<HASH> 100644
--- a/dipper/models/Genotype.py
+++ b/dipper/models/Genotype.py
@@ -46,6 +46,7 @@ class Genotype():
'reagent_targeted_gene': 'GENO:0000504',
'missense_variant': 'SO:0001583',
'transcript': 'SO:00002... | add cDNA to genotype class | py |
diff --git a/src/toil/batchSystems/lsfHelper.py b/src/toil/batchSystems/lsfHelper.py
index <HASH>..<HASH> 100755
--- a/src/toil/batchSystems/lsfHelper.py
+++ b/src/toil/batchSystems/lsfHelper.py
@@ -203,7 +203,7 @@ def parse_memory_limit(mem: float) -> str:
def parse_memory(mem: float, resource: bool) -> str:
"""... | Removed extra memory multiplication (#<I>) (resolves #<I>) | py |
diff --git a/spyderlib/widgets/sourcecode/codeeditor.py b/spyderlib/widgets/sourcecode/codeeditor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/sourcecode/codeeditor.py
+++ b/spyderlib/widgets/sourcecode/codeeditor.py
@@ -1666,10 +1666,6 @@ class CodeEditor(TextEditBaseWidget):
while cursor.pos... | Editor: Issue <I> and <I>: Reverting old block comment style with comments at left edge of each line. Backed out changeset: <I>db<I>e3e4 | py |
diff --git a/git/repo/base.py b/git/repo/base.py
index <HASH>..<HASH> 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -713,11 +713,14 @@ class Repo(object):
committed_date=int(props[b'committer-time']))
commits[hexsha] = c
else:
- # Discar... | Ignore all lines of subsequent hunks until last one is found Git version <I>+ introduced extra lines into the subsequent hunk sections for incremental blame output. The documentation notes that parsers of this output should ignore all lines between the start and end for robust parsing. | py |
diff --git a/pylsl/pylsl.py b/pylsl/pylsl.py
index <HASH>..<HASH> 100644
--- a/pylsl/pylsl.py
+++ b/pylsl/pylsl.py
@@ -853,7 +853,7 @@ class XMLElement:
def __init__(self, handle):
"""Construct new XML element from existing handle."""
- self.e = handle
+ self.e = c_void_p(handle)
... | Fixed marshaling bug in pylsl. | py |
diff --git a/devassistant/cli/cli_runner.py b/devassistant/cli/cli_runner.py
index <HASH>..<HASH> 100644
--- a/devassistant/cli/cli_runner.py
+++ b/devassistant/cli/cli_runner.py
@@ -14,4 +14,4 @@ class CliRunner(object):
try:
pr.run()
except exceptions.ExecutionException as ex:
- ... | Make the exception logging robust for unicode chars but still compatible with Python3 | py |
diff --git a/sos/sosreport.py b/sos/sosreport.py
index <HASH>..<HASH> 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -35,6 +35,7 @@ supplied for application-specific information
import sys
import traceback
import os
+import errno
import logging
from optparse import OptionParser, Option
from sos.plugins i... | Check for file system errors when setting up archive Check for ENOSPC and EROFS when setting up the archive directory structure and exit with failure and an error message. | py |
diff --git a/pyssdb.py b/pyssdb.py
index <HASH>..<HASH> 100644
--- a/pyssdb.py
+++ b/pyssdb.py
@@ -172,9 +172,13 @@ class Client(object):
connection = self.connection_pool.get_connection()
try:
connection.send(cmd, *args)
- return connection.recv()
- finally:
+ ... | Fixes #2: close a connection if any error occurs. | py |
diff --git a/metal/mmtl/launch.py b/metal/mmtl/launch.py
index <HASH>..<HASH> 100644
--- a/metal/mmtl/launch.py
+++ b/metal/mmtl/launch.py
@@ -160,6 +160,12 @@ if __name__ == "__main__":
# we use the shuffle argument only when split_prop is None
# otherwise Sampler shuffles automatically
dl_k... | removing dev from splits when split prop is not NOne | py |
diff --git a/account/forms.py b/account/forms.py
index <HASH>..<HASH> 100644
--- a/account/forms.py
+++ b/account/forms.py
@@ -152,13 +152,10 @@ class PasswordResetForm(forms.Form):
email = forms.EmailField(label=_("Email"), required=True)
def clean_email(self):
- if settings.ACCOUNT_EMAIL_CONFIR... | Simplified password reset conditions on email This change allows any email address regardless of which state to be used for password reset. The email sent is harmless as the action of password reset is non-destructive. This allows a simpler means for those without confirmed emails due to missing the email or some oth... | py |
diff --git a/slots/slots.py b/slots/slots.py
index <HASH>..<HASH> 100755
--- a/slots/slots.py
+++ b/slots/slots.py
@@ -107,8 +107,7 @@ class MAB(object):
if trials < 1:
raise Exception('MAB.run: Number of trials cannot be less than 1!')
- # if not strategy:
- # strategy = 'eps_g... | default param for eps-greedy and PEP8 fixed | py |
diff --git a/django_freeradius/api/serializers.py b/django_freeradius/api/serializers.py
index <HASH>..<HASH> 100644
--- a/django_freeradius/api/serializers.py
+++ b/django_freeradius/api/serializers.py
@@ -19,9 +19,7 @@ class RadiusPostAuthSerializer(serializers.ModelSerializer):
class Meta:
model = Ra... | [api] RadiusPostAuthSerializer fields __all__ Set the fields declaration to __all__ for consistency. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.