diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/test.py b/tests/test.py
index <HASH>..<HASH> 100644
--- a/tests/test.py
+++ b/tests/test.py
@@ -17,7 +17,7 @@ def test_languages():
# Make sure we get all the languages when looking for the default
# 'best' wordlist
avail = available_languages()
- assert len(avail) > 32
+ assert ... | update tests to include new languages Also, it's easy to say `>=` in pytest | py |
diff --git a/angr/storage/paged_memory.py b/angr/storage/paged_memory.py
index <HASH>..<HASH> 100644
--- a/angr/storage/paged_memory.py
+++ b/angr/storage/paged_memory.py
@@ -891,7 +891,7 @@ class SimPagedMemory(object):
def get_symbolic_addrs(self):
symbolic_addrs = set()
for page in self._symbo... | Fix returning absolute symbolic addrs from page As of commit ebc0a6f<I>da0e3d<I>dd0dad<I>df4, the addresses stored in paged memory are absolute. `get_symbolic_addrs()` still calculated page offsets resulting in wrong addresses. | py |
diff --git a/pysos/kernel.py b/pysos/kernel.py
index <HASH>..<HASH> 100644
--- a/pysos/kernel.py
+++ b/pysos/kernel.py
@@ -154,13 +154,21 @@ class SoS_FilePreviewer():
elif filename.lower().endswith('.csv') or filename.lower().endswith('.tsv'):
try:
import pandas
- ... | Better preview of csv and excel files | py |
diff --git a/fedmsg/tests/test_meta.py b/fedmsg/tests/test_meta.py
index <HASH>..<HASH> 100644
--- a/fedmsg/tests/test_meta.py
+++ b/fedmsg/tests/test_meta.py
@@ -162,7 +162,6 @@ class Base(unittest.TestCase):
expected_title = Unspecified
expected_subti = Unspecified
expected_subjective = Unspecified
- ... | Remove markup stuff. It never really got implemented and I'm going to approach it in a different way for fedora-hubs. | py |
diff --git a/examples/simpletest.py b/examples/simpletest.py
index <HASH>..<HASH> 100644
--- a/examples/simpletest.py
+++ b/examples/simpletest.py
@@ -29,6 +29,10 @@ import time
import Adafruit_MCP9808.MCP9808 as MCP9808
+# Define a function to convert celsius to fahrenheit.
+def c_to_f(c):
+ return c * 9.0 / 5.0 ... | Update example to include fahrenheit. | py |
diff --git a/pyhpeimc/version.py b/pyhpeimc/version.py
index <HASH>..<HASH> 100644
--- a/pyhpeimc/version.py
+++ b/pyhpeimc/version.py
@@ -11,7 +11,8 @@ new version
def version():
- """Function takes no aruguments and returns a STR value of the current version of the library. This value should match
+ """Fun... | Making pep8 modifications to increase code quality | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -199,4 +199,5 @@ else:
'scripts/salt-run',
'scripts/salt']
-setup(**setup_kwargs)
+if __name__ == '__main__':
+ setup(**setup_kwargs) | Add ifmain to make setup.py import safe | py |
diff --git a/py/apigen/htmlgen.py b/py/apigen/htmlgen.py
index <HASH>..<HASH> 100644
--- a/py/apigen/htmlgen.py
+++ b/py/apigen/htmlgen.py
@@ -12,7 +12,7 @@ sorted = py.builtin.sorted
html = py.xml.html
raw = py.xml.raw
-def deindent(str, linesep=os.linesep):
+def deindent(str, linesep='\n'):
""" de-indent str... | [svn r<I>] fixing a windows-error: i believe that most strings passed into htmlgen.deindent() actually have a normalized '\n' line-ending already (e.g. if they come from python docstrings). So the caller now needs to specify otherwise. --HG-- branch : trunk | py |
diff --git a/pandas/tests/test_config.py b/pandas/tests/test_config.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/test_config.py
+++ b/pandas/tests/test_config.py
@@ -49,7 +49,7 @@ class TestConfig(unittest.TestCase):
'doc')
# no python keywords
- self.assertRaises(Value... | BUG: use "for" as keyword to test against | py |
diff --git a/vasppy/__init__.py b/vasppy/__init__.py
index <HASH>..<HASH> 100644
--- a/vasppy/__init__.py
+++ b/vasppy/__init__.py
@@ -1 +1 @@
-__version__ = '0.4.0.11'
+__version__ = '0.4.1.0' | Bumped version number to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,6 +4,8 @@ setup(name="django-smart-selects",
version="1.2.3",
description="Django application to handle chained model fields.",
author="Patrick Lauber",
+ author_email="digi@treepy.com",
+ url... | Update setup.py to include required information | py |
diff --git a/SpiffWorkflow/specs/MultiInstance.py b/SpiffWorkflow/specs/MultiInstance.py
index <HASH>..<HASH> 100644
--- a/SpiffWorkflow/specs/MultiInstance.py
+++ b/SpiffWorkflow/specs/MultiInstance.py
@@ -148,6 +148,11 @@ class MultiInstance(TaskSpec):
else:
my_task._sync_children(outputs, Task.... | Remove extra stuff from the built-up collection gathered from internal data | py |
diff --git a/mopidy_spotify/translator.py b/mopidy_spotify/translator.py
index <HASH>..<HASH> 100644
--- a/mopidy_spotify/translator.py
+++ b/mopidy_spotify/translator.py
@@ -18,7 +18,7 @@ TRACK_AVAILABLE = 1
def parse_uri(uri):
- result = re.findall(r'^spotify:([a-z]+)(?::(\w+))?$', uri)
+ result = re.finda... | Parse playlist URI's They are in the format: spotify:user:<username>:playlist:<id> | py |
diff --git a/pypot/vrep/__init__.py b/pypot/vrep/__init__.py
index <HASH>..<HASH> 100644
--- a/pypot/vrep/__init__.py
+++ b/pypot/vrep/__init__.py
@@ -82,12 +82,6 @@ def from_vrep(config, vrep_host='127.0.0.1', vrep_port=19997, scene=None,
with open(config) as f:
config = json.load(f)
- # The... | This is no longer needed as the vrep-scene are now similar to the "real" model. | py |
diff --git a/datatableview/tests/test_app/models.py b/datatableview/tests/test_app/models.py
index <HASH>..<HASH> 100644
--- a/datatableview/tests/test_app/models.py
+++ b/datatableview/tests/test_app/models.py
@@ -8,6 +8,12 @@ class ExampleModel(models.Model):
related = models.ForeignKey('RelatedModel', blank=Tru... | This is not for you, it's for me. | py |
diff --git a/dataviews/views.py b/dataviews/views.py
index <HASH>..<HASH> 100644
--- a/dataviews/views.py
+++ b/dataviews/views.py
@@ -358,8 +358,10 @@ class Layout(param.Parameterized):
def __lshift__(self, other):
- subviews = list(other.data.values()) if isinstance(other, Layout) else [other]
- ... | Fixed bug in __lshift__ operator of Layout | py |
diff --git a/mongoframes/pagination.py b/mongoframes/pagination.py
index <HASH>..<HASH> 100644
--- a/mongoframes/pagination.py
+++ b/mongoframes/pagination.py
@@ -5,6 +5,9 @@ Support for paginating frames.
from copy import deepcopy
import math
+from mongoframes.queries import Condition, Group, to_refs
+
+
__all__ ... | Implemented safe copying of filters in pagination | py |
diff --git a/core/scripts/create_adapter_plugins.py b/core/scripts/create_adapter_plugins.py
index <HASH>..<HASH> 100644
--- a/core/scripts/create_adapter_plugins.py
+++ b/core/scripts/create_adapter_plugins.py
@@ -248,11 +248,12 @@ def parse_args(argv=None):
parsed.title_case = parsed.adapter.title()
i... | Fix --dependency arg bug in create_adapter_plugin Fix bug in create_adapter_plugin when a dependency is not passed in. | py |
diff --git a/python/ray/worker.py b/python/ray/worker.py
index <HASH>..<HASH> 100644
--- a/python/ray/worker.py
+++ b/python/ray/worker.py
@@ -1057,6 +1057,10 @@ def _initialize_serialization(worker=global_worker):
# Ray can serialize actor handles that have been wrapped.
register_custom_serializer(ra... | Tell Ray how to serialize FunctionSignature objects. (#<I>) | py |
diff --git a/dvc/version.py b/dvc/version.py
index <HASH>..<HASH> 100644
--- a/dvc/version.py
+++ b/dvc/version.py
@@ -6,7 +6,7 @@
import os
import subprocess
-_BASE_VERSION = "1.3.0"
+_BASE_VERSION = "1.3.1"
def _generate_version(base_version): | dvc: bump to <I> | py |
diff --git a/models.py b/models.py
index <HASH>..<HASH> 100644
--- a/models.py
+++ b/models.py
@@ -15,7 +15,7 @@
##
## You should have received a copy of the GNU General Public License
## along with Invenio; if not, write to the Free Software Foundation, Inc.,
-## 59 Temple Place, Suite 330, Boston, MA 02D111-1307, ... | global: file header post code fix * Fixes wrong Free Software Foundation post code in file headers which have been copy/pasted to many files. | py |
diff --git a/spyder/widgets/sourcecode/codeeditor.py b/spyder/widgets/sourcecode/codeeditor.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/sourcecode/codeeditor.py
+++ b/spyder/widgets/sourcecode/codeeditor.py
@@ -63,6 +63,7 @@ from spyder.widgets.panels.scrollflag import ScrollFlagArea
from spyder.widgets.panels... | Add decorations manager to CodeEditor. | py |
diff --git a/dynaphopy/__init__.py b/dynaphopy/__init__.py
index <HASH>..<HASH> 100644
--- a/dynaphopy/__init__.py
+++ b/dynaphopy/__init__.py
@@ -1,4 +1,4 @@
-__version__ = '1.16.8'
+__version__ = '1.17.0'
import numpy as np
import matplotlib.pyplot as plt | Updated phonopy_link.py to remove the use of deprecated phonopy functions | py |
diff --git a/backtrader/lineroot.py b/backtrader/lineroot.py
index <HASH>..<HASH> 100644
--- a/backtrader/lineroot.py
+++ b/backtrader/lineroot.py
@@ -250,6 +250,9 @@ class LineRoot(with_metaclass(MetaLineRoot, object)):
def __abs__(self):
return self._operationown(operator.__abs__)
+ def __neg__(sel... | Add support for __neg__ operator (-) to lines | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -101,4 +101,9 @@ setup(
('bin', ('bin/tracer-qemu-linux-x86_64',),),
],
cmdclass=cmdclass,
+ install_requires=[
+ 'cle',
+ 'angr',
+ 'simuvex',
+ ],
) | Add install requirements to setup.py | py |
diff --git a/src/python/grpcio_tests/tests/unit/_signal_client.py b/src/python/grpcio_tests/tests/unit/_signal_client.py
index <HASH>..<HASH> 100644
--- a/src/python/grpcio_tests/tests/unit/_signal_client.py
+++ b/src/python/grpcio_tests/tests/unit/_signal_client.py
@@ -49,6 +49,7 @@ def handle_sigint(unused_signum, un... | Add explanation to _signal_client | py |
diff --git a/meshio/med_io.py b/meshio/med_io.py
index <HASH>..<HASH> 100644
--- a/meshio/med_io.py
+++ b/meshio/med_io.py
@@ -62,7 +62,7 @@ def read(filename):
# Point tags
if "FAM" in mesh["NOE"]:
tags = mesh["NOE"]["FAM"][()]
- point_data["tags"] = tags # this may replace previous "tags"
+... | finally better to have separately point_tags and cell_tags | py |
diff --git a/uni_form/templatetags/uni_form_tags.py b/uni_form/templatetags/uni_form_tags.py
index <HASH>..<HASH> 100644
--- a/uni_form/templatetags/uni_form_tags.py
+++ b/uni_form/templatetags/uni_form_tags.py
@@ -16,6 +16,9 @@ django_version = get_version()
is_old_django = True
if django_version.startswith('1.1.2')... | Adding a warning so coders know to upgrade their Django. Will this work in the Apache universe or should I switch to a logging.WARNING message? | py |
diff --git a/ccmlib/node.py b/ccmlib/node.py
index <HASH>..<HASH> 100644
--- a/ccmlib/node.py
+++ b/ccmlib/node.py
@@ -958,8 +958,11 @@ class Node(object):
def compact(self):
self.nodetool("compact")
- def drain(self):
+ def drain(self, block_on_log=False):
+ mark = self.mark_log()
... | add option to block on the log for Node.drain | py |
diff --git a/pybooru/api_danbooru.py b/pybooru/api_danbooru.py
index <HASH>..<HASH> 100644
--- a/pybooru/api_danbooru.py
+++ b/pybooru/api_danbooru.py
@@ -172,3 +172,11 @@ class DanbooruApi(object):
'search[source]': source
}
return self._get('uploads.json', params, auth=True)
+
+ ... | Danbooru: implement upload_show() | py |
diff --git a/datapackage/package.py b/datapackage/package.py
index <HASH>..<HASH> 100644
--- a/datapackage/package.py
+++ b/datapackage/package.py
@@ -493,7 +493,7 @@ class Package(object):
path_inside_dp = os.path.join('data', basename)
z.write(path, path_inside_dp)
... | Format json with indent when saving as zip (#<I>) | py |
diff --git a/django_webmap_corpus/admin.py b/django_webmap_corpus/admin.py
index <HASH>..<HASH> 100644
--- a/django_webmap_corpus/admin.py
+++ b/django_webmap_corpus/admin.py
@@ -205,14 +205,10 @@ class MarkerAdmin(admin.ModelAdmin):
default_icon_image.short_description = _("icon")
default_icon_image.allow_ta... | better way of dealing with can_only_view permission | py |
diff --git a/tests/integration/store/test_version_store.py b/tests/integration/store/test_version_store.py
index <HASH>..<HASH> 100644
--- a/tests/integration/store/test_version_store.py
+++ b/tests/integration/store/test_version_store.py
@@ -1005,6 +1005,10 @@ def test_write_metadata_followed_by_append(library):
... | trigger gc in the tests after the append | py |
diff --git a/exchangelib/account.py b/exchangelib/account.py
index <HASH>..<HASH> 100644
--- a/exchangelib/account.py
+++ b/exchangelib/account.py
@@ -393,10 +393,12 @@ class Account(object):
return
if only_fields:
allowed_fields = validation_folder.allowed_fields()
- for f... | Fix fetch() when only_fields is a list of strings | py |
diff --git a/tests/sspi_test.py b/tests/sspi_test.py
index <HASH>..<HASH> 100644
--- a/tests/sspi_test.py
+++ b/tests/sspi_test.py
@@ -15,6 +15,7 @@ class SspiTest(unittest.TestCase):
pytds.sspi.enum_security_packages()
def test_credentials(self):
+ return self.skipTest("this test fails when run ... | disabled test_credentials, it fails when run under service account with error SEC_E_INTERNAL_ERROR | py |
diff --git a/sc2/maps.py b/sc2/maps.py
index <HASH>..<HASH> 100644
--- a/sc2/maps.py
+++ b/sc2/maps.py
@@ -5,10 +5,14 @@ logger = logging.getLogger(__name__)
def get(name=None):
maps = []
- for mapdir in (p for p in Paths.MAPS.iterdir() if p.is_dir()):
- for mapfile in (p for p in mapdir.iterdir() if ... | Also look for map files in the Map root directory. | py |
diff --git a/grimoire_elk/elk/elastic.py b/grimoire_elk/elk/elastic.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/elk/elastic.py
+++ b/grimoire_elk/elk/elastic.py
@@ -141,6 +141,8 @@ class ElasticSearch(object):
# This method waits until the upload is visible in searches
r = self.requests.get(se... | [elastic] Show error log if the number of already existing items in an index can not be found. | py |
diff --git a/test_settings.py b/test_settings.py
index <HASH>..<HASH> 100644
--- a/test_settings.py
+++ b/test_settings.py
@@ -157,3 +157,23 @@ AUTHENTICATION_BACKENDS = (
STATIC_ROOT = '/tmp/' # Dummy
STATIC_URL = '/static/'
+
+from django.contrib.auth.hashers import PBKDF2PasswordHasher
+
+
+class MyPBKDF2Passwo... | test(test_settings): decrease password iterations to increase test speed * test(test_settings): decrease password iterations to increase test speed * update MyPBKDF2PasswordHasher to mention never using the low iterations anywhere. | py |
diff --git a/scraper/util.py b/scraper/util.py
index <HASH>..<HASH> 100644
--- a/scraper/util.py
+++ b/scraper/util.py
@@ -84,7 +84,9 @@ def git_repo_to_sloc(url):
Given a Git repository URL, returns number of lines of code based on cloc
Reference:
- - cloc: https://github.com/AlDanial/cloc
+ - cl... | Added references to other effort calculation approaches | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ required = [
'pew>=0.1.26',
'pip>=9.0.1',
'requests>2.18.0',
- 'flake8',
+ 'flake8>=3.5.0',
'urllib3>=1.21.1'
] | Added a minimum version of flake8 should address #<I> | py |
diff --git a/jawa/core/context.py b/jawa/core/context.py
index <HASH>..<HASH> 100644
--- a/jawa/core/context.py
+++ b/jawa/core/context.py
@@ -1,17 +1,10 @@
# -*- coding: utf8 -*-
import os
-import re
from jawa.core.jf import JarFile
from jawa.core.cf import ClassFile
-class ContextPathError(Exception):
- ... | Added Context.subclass_tree | py |
diff --git a/tests/test_api.py b/tests/test_api.py
index <HASH>..<HASH> 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -79,6 +79,7 @@ def test_pull_success(request_mocker, download_url, query_project):
download_url(request_mocker)
with CliRunner().isolated_filesystem():
os.mkdir('.wandb')
... | Try to fix circleci tests. | py |
diff --git a/python/plot_coords_uberComment.py b/python/plot_coords_uberComment.py
index <HASH>..<HASH> 100644
--- a/python/plot_coords_uberComment.py
+++ b/python/plot_coords_uberComment.py
@@ -18,6 +18,11 @@
##############################################################
+import numpy as np
+import matplotli... | fixed indents on 'import' lines | py |
diff --git a/waldur_core/structure/admin.py b/waldur_core/structure/admin.py
index <HASH>..<HASH> 100644
--- a/waldur_core/structure/admin.py
+++ b/waldur_core/structure/admin.py
@@ -307,11 +307,12 @@ class ServiceSettingsAdminForm(ModelForm):
# Check required extra fields of service type
try:
- ... | [WAL-<I>] Updating of external network if Tenant was updated. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-from setuptools import find_packages,setup
+from setuptools import setup
setup(
@@ -7,7 +7,7 @@ setup(
version='1',
author='Daniel Watkins',
author_email='daniel@daniel-watkins.co.uk',
- pa... | I despise setuptools. | py |
diff --git a/fontbakery-check-ttf.py b/fontbakery-check-ttf.py
index <HASH>..<HASH> 100755
--- a/fontbakery-check-ttf.py
+++ b/fontbakery-check-ttf.py
@@ -98,7 +98,7 @@ def main():
font_file_output = font_file + '.fix'
font.save(font_file_output)
font.close()
- logging.info(font_file_output + " saved"... | Minor: Add line break to end of each file loop | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,11 +5,10 @@ import re
requirements = [
'pip>7.0',
- 'Cython',
+ 'cython',
'scipy>0.10',
'numpy>=1.9',
'pandas',
- 'h5py',
'dill>0.2',
'sphinx',
'ipython>=4.0', | removed h5py from setup.py for now... | py |
diff --git a/pyautogui/_pyautogui_x11.py b/pyautogui/_pyautogui_x11.py
index <HASH>..<HASH> 100644
--- a/pyautogui/_pyautogui_x11.py
+++ b/pyautogui/_pyautogui_x11.py
@@ -2,6 +2,7 @@
import pyautogui
import sys
+import os
from Xlib.display import Display
from Xlib import X
@@ -150,7 +151,7 @@ def _keyUp(key):
... | Added support for different values of DISPLAY in x<I> Works perfecly fine with xephyr :) | py |
diff --git a/svgpathtools/misctools.py b/svgpathtools/misctools.py
index <HASH>..<HASH> 100644
--- a/svgpathtools/misctools.py
+++ b/svgpathtools/misctools.py
@@ -31,7 +31,7 @@ def rgb2hex(rgb):
>>> rgb2hex((0,0,255))
'#0000FF'
"""
- return ('#%02x%02x%02x' % rgb).upper()
+ return ('#%02x%02x%02x' ... | rgb2hex now allows lists as input | py |
diff --git a/singularity/package/build.py b/singularity/package/build.py
index <HASH>..<HASH> 100644
--- a/singularity/package/build.py
+++ b/singularity/package/build.py
@@ -27,8 +27,9 @@ SOFTWARE.
from singularity.logger import bot
+from .utils import calculate_folder_size
+
from singularity.utils import (
- ... | modified: singularity/package/build.py | py |
diff --git a/django_extensions/db/models.py b/django_extensions/db/models.py
index <HASH>..<HASH> 100644
--- a/django_extensions/db/models.py
+++ b/django_extensions/db/models.py
@@ -87,7 +87,9 @@ class ActivatorModel(models.Model):
""" ActivatorModel
An abstract base class model that provides activate and de... | changed "clever" use of range() to be more clear | py |
diff --git a/pyqode/core/modes/code_completion.py b/pyqode/core/modes/code_completion.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/modes/code_completion.py
+++ b/pyqode/core/modes/code_completion.py
@@ -49,8 +49,17 @@ class SubsequenceSortFilterProxyModel(QtCore.QSortFilterProxyModel):
mr = re.match(pa... | Fix funky sorting of subsequences | py |
diff --git a/pymatgen/io/packmol.py b/pymatgen/io/packmol.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/packmol.py
+++ b/pymatgen/io/packmol.py
@@ -20,10 +20,10 @@ executable to the PATH environment variable.
import os
import subprocess
from pathlib import Path
+from shutil import which
from typing import Dict, ... | Fix which. Fixes #<I>. | py |
diff --git a/python/herald/directory.py b/python/herald/directory.py
index <HASH>..<HASH> 100644
--- a/python/herald/directory.py
+++ b/python/herald/directory.py
@@ -166,16 +166,6 @@ class HeraldDirectory(object):
"""
return [self._peers[uid] for uid in self._names[name]]
- def get_uids_for_grou... | Corrected get_peers_for_group(), removed get_uids_for_group | py |
diff --git a/tests/test_websocket.py b/tests/test_websocket.py
index <HASH>..<HASH> 100644
--- a/tests/test_websocket.py
+++ b/tests/test_websocket.py
@@ -127,7 +127,6 @@ class TestWebsocketClient(unittest.TestCase):
self.assertEqual('Ontology Network ONT Token', response['Description'])
hex_contract_... | remove unsed keyword (#<I>) * fix bug * remove unsed keyword | py |
diff --git a/phoebe/backend/backends.py b/phoebe/backend/backends.py
index <HASH>..<HASH> 100644
--- a/phoebe/backend/backends.py
+++ b/phoebe/backend/backends.py
@@ -472,8 +472,8 @@ def phoebe(b, compute, times=[], as_generator=False, **kwargs):
dynamics_method = computeparams.get_value('dynamics_method', **kwarg... | apply kwargs overrides to distance and t0 in phoebe backend | py |
diff --git a/examples/sevensegment_demo.py b/examples/sevensegment_demo.py
index <HASH>..<HASH> 100644
--- a/examples/sevensegment_demo.py
+++ b/examples/sevensegment_demo.py
@@ -84,7 +84,7 @@ def main():
seg.text = "_" * seg.device.width
time.sleep(1.0)
- for i, ch in enumerate([9,8,7,6,5,4,3,2]):
+ ... | Fix flake8 violation :-/ | py |
diff --git a/gwpy/detector/io/clf.py b/gwpy/detector/io/clf.py
index <HASH>..<HASH> 100755
--- a/gwpy/detector/io/clf.py
+++ b/gwpy/detector/io/clf.py
@@ -140,6 +140,10 @@ def read_channel_list_file(*source):
def write_channel_list_file(channels, fobj):
"""Write a `~gwpy.detector.ChannelList` to a INI-format chan... | gwpy.detector: minor improvement to reading CLFs | py |
diff --git a/extension/setup.py b/extension/setup.py
index <HASH>..<HASH> 100755
--- a/extension/setup.py
+++ b/extension/setup.py
@@ -45,7 +45,7 @@ setup(name='genepattern-notebook',
author='Thorin Tabor',
author_email='thorin@broadinstitute.org',
url='https://github.com/genepattern/genepattern-no... | Updating to version <I> | py |
diff --git a/spyder/widgets/ipythonconsole/help.py b/spyder/widgets/ipythonconsole/help.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/ipythonconsole/help.py
+++ b/spyder/widgets/ipythonconsole/help.py
@@ -35,10 +35,7 @@ class HelpWidget(RichJupyterWidget):
Taken from http://stackoverflow.com/a/3305731/... | Remove misplaced flags from re.sub() call The 4th argument of re.sub() is maximum number of substitutions, not flags. re.UNICODE is the default in Python 3, so it doesn't have to be passed explicitly to re.sub(). | py |
diff --git a/tests/test_kms/test_kms.py b/tests/test_kms/test_kms.py
index <HASH>..<HASH> 100644
--- a/tests/test_kms/test_kms.py
+++ b/tests/test_kms/test_kms.py
@@ -973,10 +973,6 @@ def test_generate_random(number_of_bytes):
response = client.generate_random(NumberOfBytes=number_of_bytes)
- # Plaintext mu... | Flaky test fix: random bytes can look like base<I> | py |
diff --git a/ella/ratings/templatetags/ratings.py b/ella/ratings/templatetags/ratings.py
index <HASH>..<HASH> 100644
--- a/ella/ratings/templatetags/ratings.py
+++ b/ella/ratings/templatetags/ratings.py
@@ -221,7 +221,11 @@ class TopRatedNode(template.Node):
self.count, self.name, self.mods = count, name, mods... | Temporary try .. except in TopRated node. | py |
diff --git a/ginga/util/io_rgb.py b/ginga/util/io_rgb.py
index <HASH>..<HASH> 100644
--- a/ginga/util/io_rgb.py
+++ b/ginga/util/io_rgb.py
@@ -414,14 +414,20 @@ class PillowFileHandler(BaseRGBFileHandler):
"to save images")
img = PILimage.fromarray(data_np)
+
+ # pillow i... | Fix for broken RGB loader - seek() function in Pillow does not seem to work as we expect - also fixed an issue saving JPEG files from RGBA images | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -348,7 +348,7 @@ def pytest_collection_modifyitems(config, items):
if fixture not in item._fixtureinfo.name2fixturedefs:
continue
for fixturedef in... | We should not mess with `module`, `class` or `function` scoped fixtures | py |
diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/utils/__init__.py
+++ b/salt/utils/__init__.py
@@ -2155,7 +2155,8 @@ def namespaced_function(function, global_dict, defaults=None, preserve_context=F
function.__code__,
global_dict,
name=functi... | We must also pass the function closure under python 3. This attribute is also available at least under python <I> | py |
diff --git a/demos/demo_sftp.py b/demos/demo_sftp.py
index <HASH>..<HASH> 100755
--- a/demos/demo_sftp.py
+++ b/demos/demo_sftp.py
@@ -28,7 +28,6 @@ import sys
import traceback
import paramiko
-import interactive
# setup logging | [project @ <EMAIL><I>-ca<I>e8c<I>c9c4b7] this demo doesn't need to import interactive | py |
diff --git a/__pkginfo__.py b/__pkginfo__.py
index <HASH>..<HASH> 100644
--- a/__pkginfo__.py
+++ b/__pkginfo__.py
@@ -32,8 +32,7 @@ license = 'LGPL'
author = 'Logilab'
author_email = 'python-projects@lists.logilab.org'
mailinglist = "mailto://%s" % author_email
-web = "http://www.logilab.org/project/%s" % distname
... | [pgkinfo] update project's url to bitbucket and kill deprecated ftp | py |
diff --git a/hvac/tests/test_integration.py b/hvac/tests/test_integration.py
index <HASH>..<HASH> 100644
--- a/hvac/tests/test_integration.py
+++ b/hvac/tests/test_integration.py
@@ -204,7 +204,7 @@ class IntegrationTest(TestCase):
if 'app-id/' not in self.client.list_auth_backends():
self.client.... | Oops, need to fix the param order for the create_app_id in the tests | py |
diff --git a/bin/ipmitool.py b/bin/ipmitool.py
index <HASH>..<HASH> 100755
--- a/bin/ipmitool.py
+++ b/bin/ipmitool.py
@@ -420,13 +420,16 @@ def main():
print 'Command returned with completion code 0x%02x' % e.cc
if verbose:
traceback.print_exc()
+ sys.exit(1)
except pyipmi.er... | ipmitool.py: proper exit code | py |
diff --git a/absl/testing/tests/absltest_py3_test.py b/absl/testing/tests/absltest_py3_test.py
index <HASH>..<HASH> 100644
--- a/absl/testing/tests/absltest_py3_test.py
+++ b/absl/testing/tests/absltest_py3_test.py
@@ -1,4 +1,3 @@
-# Lint as: python3
# Copyright 2020 The Abseil Authors.
#
# Licensed under the Apache... | Remove unused comments related to Python 2 compatibility. PiperOrigin-RevId: <I> Change-Id: I<I>d<I>ca4a<I>e9ae<I>e<I> | py |
diff --git a/photutils/aperture/core.py b/photutils/aperture/core.py
index <HASH>..<HASH> 100644
--- a/photutils/aperture/core.py
+++ b/photutils/aperture/core.py
@@ -657,7 +657,8 @@ class ApertureMask(object):
if slices_small is None:
return None # no overlap
- cutout = np... | numpy.full() is not in <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ setup(
test_suite="runtests.runtests",
install_requires=[
"django-appconf>=1.0.1",
- "django-user-accounts>=1.2"
+ "django-user-accounts>=1.3"
],
tests_require=[
]... | Update DUA requirement to support Django <I> | py |
diff --git a/rarfile.py b/rarfile.py
index <HASH>..<HASH> 100644
--- a/rarfile.py
+++ b/rarfile.py
@@ -759,7 +759,7 @@ class RarFile(object):
self._fd = fd
id = fd.read(len(RAR_ID))
if id != RAR_ID:
- if isinstance(self.rarfile, str):
+ if isinstance(self.rarfile, (str, ... | Actually, isinstance needs to check unicode too | py |
diff --git a/src/sagemaker/tensorflow/estimator.py b/src/sagemaker/tensorflow/estimator.py
index <HASH>..<HASH> 100644
--- a/src/sagemaker/tensorflow/estimator.py
+++ b/src/sagemaker/tensorflow/estimator.py
@@ -113,6 +113,7 @@ class TensorFlow(Framework):
:class:`~sagemaker.estimator.Framework` and
... | fix: check for distributions in TF estimator (#<I>) | py |
diff --git a/trackstats/__init__.py b/trackstats/__init__.py
index <HASH>..<HASH> 100644
--- a/trackstats/__init__.py
+++ b/trackstats/__init__.py
@@ -6,7 +6,7 @@
/_/ /_/ \__,_/\___/_/|_|/____/\__/\__,_/\__/____/
"""
-VERSION = (0, 3, 2, 'final', 0)
+VERSION = (0, 4, 0, 'final', 0)
__title__ = 'django-tracksta... | Bumping to <I> | py |
diff --git a/ndb/context.py b/ndb/context.py
index <HASH>..<HASH> 100644
--- a/ndb/context.py
+++ b/ndb/context.py
@@ -910,7 +910,10 @@ class Context(object):
mapping[key] = value
results = yield method(mapping, time=time, namespace=namespace)
for fut, (key, unused_value) in todo:
- status = resul... | Deal with another network error from memcache. Fixes issue <I>. | py |
diff --git a/test/geocoders/util.py b/test/geocoders/util.py
index <HASH>..<HASH> 100644
--- a/test/geocoders/util.py
+++ b/test/geocoders/util.py
@@ -109,10 +109,11 @@ class BaseTestGeocoder(ABC):
skiptest_on_errors=skiptest_on_errors,
**payload,
)
+ if expect_failure:
+ ... | test: require None response for expect_failure=True | py |
diff --git a/elasticsearch_dsl/index.py b/elasticsearch_dsl/index.py
index <HASH>..<HASH> 100644
--- a/elasticsearch_dsl/index.py
+++ b/elasticsearch_dsl/index.py
@@ -133,7 +133,7 @@ class Index(object):
def search(self):
"""
- Rteurn a :class:`~elasticsearch_dsl.Search` object searching over thi... | Fix docstring typo for Index.search() | py |
diff --git a/ginga/rv/plugins/MultiDim.py b/ginga/rv/plugins/MultiDim.py
index <HASH>..<HASH> 100644
--- a/ginga/rv/plugins/MultiDim.py
+++ b/ginga/rv/plugins/MultiDim.py
@@ -652,7 +652,7 @@ class MultiDim(GingaPlugin.LocalPlugin):
# save canceled
return
- with open(target, 'w') as ta... | Open file in binary mode for MultiDim save slice | py |
diff --git a/allennlp/training/checkpointer.py b/allennlp/training/checkpointer.py
index <HASH>..<HASH> 100644
--- a/allennlp/training/checkpointer.py
+++ b/allennlp/training/checkpointer.py
@@ -1,4 +1,4 @@
-from typing import Union, Dict, Any, List, Tuple
+from typing import Union, Dict, Any, List, Tuple, Optional
... | fix typehint on checkpointer method (#<I>) | py |
diff --git a/tests/test_jwt.py b/tests/test_jwt.py
index <HASH>..<HASH> 100644
--- a/tests/test_jwt.py
+++ b/tests/test_jwt.py
@@ -584,7 +584,7 @@ class TestJWT:
"claim,value", [
("aud", "aud"),
("ait", "ait"),
- ("exp", datetime.utcnow() + timedelta(seconds=5)),
+ ... | Fix exp test. The "parametrize" decorator is called at parse time, but the test itself is called later, which can be more than 5 seconds later, thus falling out of expiry period. Change it to one hour to make it obvious this should not be expired. | py |
diff --git a/dbt/clients/jinja.py b/dbt/clients/jinja.py
index <HASH>..<HASH> 100644
--- a/dbt/clients/jinja.py
+++ b/dbt/clients/jinja.py
@@ -195,9 +195,8 @@ def create_macro_capture_env(node):
"""
This class sets up the parser to capture macros.
"""
- def __init__(self, hint=None, ob... | Handle undefined variables in jinja without accidentally raising ParsedMacroCapture objects | py |
diff --git a/openfisca_core/columns.py b/openfisca_core/columns.py
index <HASH>..<HASH> 100644
--- a/openfisca_core/columns.py
+++ b/openfisca_core/columns.py
@@ -248,6 +248,15 @@ class EnumCol(IntCol):
),
)
+ def to_json(self):
+ self_json = super(EnumCol, self).to_json()
+ ... | Add labels to JSON of EnumCol. | py |
diff --git a/python/test/bigdl/test_simple_integration.py b/python/test/bigdl/test_simple_integration.py
index <HASH>..<HASH> 100644
--- a/python/test/bigdl/test_simple_integration.py
+++ b/python/test/bigdl/test_simple_integration.py
@@ -19,6 +19,7 @@ from bigdl.nn.initialization_method import *
from bigdl.nn.criteri... | Export tf checkpoint (#<I>) * Support dump tensors from checkpoint and save as Java readable file * add unit test * meet code review | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -95,21 +95,6 @@ possibilities for ARCH and SRCARCH. Kconfiglib will print a warning if an unset
environment variable is referenced inside the Kconfig files.
-Gotcha
-******
-
-It's important to set $SR... | Remove SRCARCH-related gotcha from module docstring Now that environment variables are expanded directly with os.path.expandvars(), "$SRCARCH" will be kept as is if SRCARCH isn't set. arch/$SRCARCH/Kconfig won't exist, unlike arch//Kconfig. | py |
diff --git a/main/cloudfoundry_client/client.py b/main/cloudfoundry_client/client.py
index <HASH>..<HASH> 100644
--- a/main/cloudfoundry_client/client.py
+++ b/main/cloudfoundry_client/client.py
@@ -64,6 +64,7 @@ class V3(object):
self.apps = AppManagerV3(target_endpoint, credential_manager)
self.spac... | Adding Service Instances to CF API V3 | 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
@@ -21,6 +21,7 @@ from parsl.dataflow.config_defaults import update_config
from parsl.data_provider.data_manager import DataManager
from parsl.execution_provider.provi... | Handle update now checks the wrapped results for RemoteErrors. | py |
diff --git a/tests/test_player.py b/tests/test_player.py
index <HASH>..<HASH> 100644
--- a/tests/test_player.py
+++ b/tests/test_player.py
@@ -9,7 +9,7 @@ def test_fail_no_args():
player = nhl.Player()
def make_player():
- return nhl.Player(1, "Alex Ovechkin", 8, "LW", 75, 235, "R", "1985-09-17", "Moscow... | Update to use Ovi's true player ID :) | py |
diff --git a/stagpy/stagyydata.py b/stagpy/stagyydata.py
index <HASH>..<HASH> 100644
--- a/stagpy/stagyydata.py
+++ b/stagpy/stagyydata.py
@@ -436,9 +436,10 @@ class _Steps(dict):
pass
def __getitem__(self, key):
- if isinstance(key, slice):
+ try:
return _StepsView(self, key)... | Remove two `isinstance` occurrences | py |
diff --git a/spyder/widgets/variableexplorer/arrayeditor.py b/spyder/widgets/variableexplorer/arrayeditor.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/variableexplorer/arrayeditor.py
+++ b/spyder/widgets/variableexplorer/arrayeditor.py
@@ -20,7 +20,7 @@ from __future__ import print_function
from qtpy.compat imp... | Adds import for QKeySequence. | py |
diff --git a/uproot/_help.py b/uproot/_help.py
index <HASH>..<HASH> 100644
--- a/uproot/_help.py
+++ b/uproot/_help.py
@@ -1533,6 +1533,11 @@ u"""Get the number of entries in a TTree without fully opening the file.
{executor}
{blocking}
+
+ Returns
+ -------
+ int or ``OrderedDict``
+ total ... | Missed that 'Returns' block... | py |
diff --git a/clusterlensing/tests/test_cofm.py b/clusterlensing/tests/test_cofm.py
index <HASH>..<HASH> 100644
--- a/clusterlensing/tests/test_cofm.py
+++ b/clusterlensing/tests/test_cofm.py
@@ -65,6 +65,7 @@ def test_DuttonMaccio():
def test_Prada():
relation = 'Prada'
+ # Prada prediction is off the charts... | add note on Prada predictions at high z | py |
diff --git a/jnrbase/cmdline.py b/jnrbase/cmdline.py
index <HASH>..<HASH> 100644
--- a/jnrbase/cmdline.py
+++ b/jnrbase/cmdline.py
@@ -190,7 +190,7 @@ def dirs():
for k in ['cache', 'config', 'data']:
- @dirs.command(name=k,
+ @dirs.command(name=k, # NOQA: F811 - shadowing is fine because of ``name``
... | [QA] Ignore flake8’s shadowing warning in cmdline’s XDG commands The functions are only referenced by their click name, so shadowing isn’t an issue. | py |
diff --git a/py/testdir_multi_jvm/test_KMeans_create_frame_fvec.py b/py/testdir_multi_jvm/test_KMeans_create_frame_fvec.py
index <HASH>..<HASH> 100644
--- a/py/testdir_multi_jvm/test_KMeans_create_frame_fvec.py
+++ b/py/testdir_multi_jvm/test_KMeans_create_frame_fvec.py
@@ -58,8 +58,8 @@ class Basic(unittest.TestCase):... | Fix another inconsistency in the test. | py |
diff --git a/jpype/protocol.py b/jpype/protocol.py
index <HASH>..<HASH> 100644
--- a/jpype/protocol.py
+++ b/jpype/protocol.py
@@ -68,7 +68,6 @@ def _JFileConvert(jcls, obj):
@_jcustomizer.JConversion("java.util.Iterable", instanceof=Sequence, excludes=str)
-@_jcustomizer.JConversion("java.util.List", instanceof=S... | Removed list conversion for now. Needs further discussion. | py |
diff --git a/cumulusci/cli/flow.py b/cumulusci/cli/flow.py
index <HASH>..<HASH> 100644
--- a/cumulusci/cli/flow.py
+++ b/cumulusci/cli/flow.py
@@ -21,7 +21,7 @@ def flow():
@flow.command(name="doc", help="Exports RST format documentation for all flows")
-@pass_runtime(require_project=False)
+@pass_runtime(require_... | require keychain when generating flow docs. | py |
diff --git a/queue-health/graph.py b/queue-health/graph.py
index <HASH>..<HASH> 100755
--- a/queue-health/graph.py
+++ b/queue-health/graph.py
@@ -113,9 +113,12 @@ def render(history_lines, out_file):
happy = online and not blocked
happy_sum += happy
- did_merge = last_merge and merged != las... | Multiple merges may happen in a minute | py |
diff --git a/muffin_session.py b/muffin_session.py
index <HASH>..<HASH> 100644
--- a/muffin_session.py
+++ b/muffin_session.py
@@ -104,7 +104,13 @@ class Plugin(BasePlugin):
@asyncio.coroutine
def check_user(self, request, func=FUNC, location=None, **kwargs):
- """Check for user is logged and pass th... | Updated docstring for check_user | py |
diff --git a/bitshares/asset.py b/bitshares/asset.py
index <HASH>..<HASH> 100644
--- a/bitshares/asset.py
+++ b/bitshares/asset.py
@@ -538,4 +538,4 @@ class Asset(GrapheneAsset):
"extensions": [],
}
)
- return self.exbet.finalizeOp(op, self["issuer"], "active", **kwargs)
+ ... | Fix typo in finalizeOp call | py |
diff --git a/master/buildbot/test/unit/test_reporters_mail.py b/master/buildbot/test/unit/test_reporters_mail.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_reporters_mail.py
+++ b/master/buildbot/test/unit/test_reporters_mail.py
@@ -305,10 +305,10 @@ class TestMailNotifier(ConfigErrorsMixin, unitt... | Use lists for mock return values The real findInterrestedUsersEmails() and processRecipients() functions return lists, so don't mock the return values as strings. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.