diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,17 @@
from setuptools import setup
+import sys
+# We need the following dependenices so that setup.py's command nosetests will
+# run correclty without manually installing all dev dependencies. Note that
+# these re... | setup.py: specify dependencies for all commands In order for all of setup.py's commands to run correctly, we need setuptools to first install several dependencies if they aren't already present. Without these things installed, 1. the test command won't execute any tests. 2. the nosetests command won't be found if you ... | py |
diff --git a/changuito/proxy.py b/changuito/proxy.py
index <HASH>..<HASH> 100644
--- a/changuito/proxy.py
+++ b/changuito/proxy.py
@@ -1,11 +1,6 @@
from django.contrib.contenttypes.models import ContentType
import models
-try:
- from django.contrib.auth import get_user_model
- User = get_user_model()
-except ... | Remove get_user_model block (unused) deprecated on Django <I> | py |
diff --git a/src/collectors/MongoDBCollector/MongoDBCollector.py b/src/collectors/MongoDBCollector/MongoDBCollector.py
index <HASH>..<HASH> 100644
--- a/src/collectors/MongoDBCollector/MongoDBCollector.py
+++ b/src/collectors/MongoDBCollector/MongoDBCollector.py
@@ -32,7 +32,11 @@ class MongoDBCollector(diamond.collect... | Fixes #<I>, this cleanly handles the connection exception | py |
diff --git a/openquake/hazardlib/contexts.py b/openquake/hazardlib/contexts.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/contexts.py
+++ b/openquake/hazardlib/contexts.py
@@ -1336,8 +1336,16 @@ class PmapMaker(object):
nsites = sum(len(ctx) for ctx in ctxs)
if nsites:
... | trying to complete disagg_by_src for mutex ruptures | py |
diff --git a/tests/micropython/heapalloc_iter.py b/tests/micropython/heapalloc_iter.py
index <HASH>..<HASH> 100644
--- a/tests/micropython/heapalloc_iter.py
+++ b/tests/micropython/heapalloc_iter.py
@@ -25,6 +25,22 @@ fs = frozenset((1,))
g1 = (100 + x for x in range(2))
g2 = gen_func()
+# test containment (both su... | tests/micropython/heapalloc_iter: Add tests for contains and unpack. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ extra_setup_args = {}
try:
import setuptools
from setuptools import find_packages
- extra_setup_args['install_requires'] = ['python-dateutil', 'twisted']
+ extra_setup_args['install_requires'] =... | Added a version spec to the dateutil requirement so that the Python <I> version (python-dateutil-<I>) wasn't downloaded, but the Python 2.x was is (python-dateutil-<I>). | py |
diff --git a/misspellings_lib.py b/misspellings_lib.py
index <HASH>..<HASH> 100644
--- a/misspellings_lib.py
+++ b/misspellings_lib.py
@@ -13,7 +13,7 @@ import sys
import string
_NORM_REGEX = re.compile('([a-z])([A-Z][a-z])')
-_SPLIT_REGEX = re.compile('[\s_0-9,\.]+')
+_WORD_REGEX = re.compile('[\s_0-9<>/,\.]+')
... | Split on some more punctuation. Added <, > and / to the chars to split on. This allows HTML and XML to be spell-checked. Previously any word at a tag boundary (in or out of it) would be ignored. | py |
diff --git a/vis/layout.py b/vis/layout.py
index <HASH>..<HASH> 100644
--- a/vis/layout.py
+++ b/vis/layout.py
@@ -56,7 +56,7 @@ def get_text_alignment(pos):
return {'va':va, 'ha':ha}
-def get_text_position_and_inner_alignment(ax, pos, scale=default_text_relative_padding):
+def get_text_position_and_inner_alig... | add automatic inclusion of trasnform of Axes object to the output in layout routine | py |
diff --git a/shinken/objects/service.py b/shinken/objects/service.py
index <HASH>..<HASH> 100644
--- a/shinken/objects/service.py
+++ b/shinken/objects/service.py
@@ -1032,10 +1032,14 @@ class Services(Items):
def override_properties(self, hosts):
for host in hosts:
# We're only looking for h... | Fixes a non tested case: single service override. | py |
diff --git a/gitlab/tests/objects/test_project_access_tokens.py b/gitlab/tests/objects/test_project_access_tokens.py
index <HASH>..<HASH> 100644
--- a/gitlab/tests/objects/test_project_access_tokens.py
+++ b/gitlab/tests/objects/test_project_access_tokens.py
@@ -57,32 +57,6 @@ def resp_create_project_access_token():
... | test: don't add duplicate fixture | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -76,6 +76,7 @@ classifiers = [
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
+ "Programming Language :: Python :: 3.9",
]
with ... | Declare conformance with python <I> | py |
diff --git a/src/super_archives/search_indexes.py b/src/super_archives/search_indexes.py
index <HASH>..<HASH> 100644
--- a/src/super_archives/search_indexes.py
+++ b/src/super_archives/search_indexes.py
@@ -69,7 +69,7 @@ class ThreadIndex(BaseIndex, indexes.Indexable):
def get_boost(self, obj):
boost = su... | Using base <I> for log | py |
diff --git a/python_experiments/condor.py b/python_experiments/condor.py
index <HASH>..<HASH> 100644
--- a/python_experiments/condor.py
+++ b/python_experiments/condor.py
@@ -23,6 +23,14 @@ License along with this package; if not, see
http://www.gnu.org/licenses/lgpl-2.1.html
"""
+"""
+This package might do a few o... | Added a few notes on condor package usage | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ from setuptools import setup
setup(
name='zake',
- version='0.0.6',
+ version='0.0.7',
description='A python package that works to provide a nice set of '
'testing utilities f... | Bump the version as <I> would be the next version | py |
diff --git a/scapy.py b/scapy.py
index <HASH>..<HASH> 100755
--- a/scapy.py
+++ b/scapy.py
@@ -7081,7 +7081,7 @@ def defrag(plist):
frags[uniq].append(p)
else:
frags[uniq] = PacketList([p])
- defrag = PacketList()
+ defrag = []
missfrag = []
for lst in frags.itervalues... | defrag(): Redissected packets after defragmentation | py |
diff --git a/discord/channel.py b/discord/channel.py
index <HASH>..<HASH> 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -369,7 +369,7 @@ class GroupChannel(discord.abc.Messageable, Hashable):
self.name = data.get('name')
try:
- self.recipients = [state.store_user(u) for u in... | Fix NameError in GroupChannel. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,7 @@ def load_requirements(*requirements_paths):
setup(
name='edxval',
- version='0.1.13',
+ version='0.1.14',
author='edX',
url='http://github.com/edx/edx-val',
description='edx-val', | val version bumped to 0-1-<I> | py |
diff --git a/keyring/backend.py b/keyring/backend.py
index <HASH>..<HASH> 100644
--- a/keyring/backend.py
+++ b/keyring/backend.py
@@ -509,7 +509,10 @@ class CryptedFileKeyring(BasicFileKeyring):
@properties.NonDataProperty
def keyring_key(self):
# _unlock or _init_file will set the key or raise an e... | Change CryptedFileKeyring to allow successful unlock instead of forced init | py |
diff --git a/hatch_build.py b/hatch_build.py
index <HASH>..<HASH> 100644
--- a/hatch_build.py
+++ b/hatch_build.py
@@ -65,6 +65,9 @@ class CustomBuildHook(BuildHookInterface):
def initialize(self, version, build_data):
"""Setup the build tag."""
+ if self.target_name != 'wheel':
+ retu... | Don't build tables for tar.gz | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ file transfers with www.filemail.com',
install_requires=dependencies,
entry_points={
'console_scripts': [
- 'pyfilemail=pyfilemail:main',
+ 'pyfilemail=pyfilemail:__main_... | changed main to __main__ in console_scripts commane | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -79,7 +79,7 @@ html_theme = 'custom_sphinx_rtd_theme'
html_theme_path = ["_themes", ]
html_theme_options = {
- 'canonical_url': 'https://djangocas.dev/docs/' + version + '/',
+ 'canonical_url': 'https... | Update docs/conf.py | py |
diff --git a/gala/potential/potential/builtin/core.py b/gala/potential/potential/builtin/core.py
index <HASH>..<HASH> 100644
--- a/gala/potential/potential/builtin/core.py
+++ b/gala/potential/potential/builtin/core.py
@@ -59,7 +59,8 @@ __all__ = [
"LeeSutoTriaxialNFWPotential",
"LogarithmicPotential",
"... | add cylspline to all | py |
diff --git a/plexapi/utils.py b/plexapi/utils.py
index <HASH>..<HASH> 100644
--- a/plexapi/utils.py
+++ b/plexapi/utils.py
@@ -378,3 +378,14 @@ def choose(msg, items, attr): # pragma: no cover
except (ValueError, IndexError):
pass
+
+def getAgentIdentifier(section, agent):
+ """ Return the f... | create getAgentIdentifier method in utils Return the full agent identifier from a short identifier, name, or confirm full identifier thanks @jonnywong<I> | py |
diff --git a/solvebio/resource.py b/solvebio/resource.py
index <HASH>..<HASH> 100644
--- a/solvebio/resource.py
+++ b/solvebio/resource.py
@@ -23,15 +23,6 @@ def camelcase_to_underscore(name):
def convert_to_solve_object(resp):
- types = {
- 'Depository': Depository,
- 'DepositoryVersion': Deposit... | Pull constant 'types' out of convert_to_solve_object | py |
diff --git a/vexbot/robot.py b/vexbot/robot.py
index <HASH>..<HASH> 100644
--- a/vexbot/robot.py
+++ b/vexbot/robot.py
@@ -1,5 +1,4 @@
-import sys
-import pickle
+import sys as _sys
import logging as _logging
import zmq
@@ -31,8 +30,11 @@ class Robot:
self._logger = _logging.getLogger(log_name)
def ... | added in error message if no messaging is provided to robot | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,7 @@ elif platform == 'win32':
else:
libname = None
-if libname:
+if libname and os.path.isdir('_soundfile_data'):
packages = ['_soundfile_data']
package_data = {'_soundfile_data': [libname, 'COPYIN... | Check for _soundfile_data directory in setup.py Without this, a non-Linux build from the tarball will fail. | py |
diff --git a/py/selenium/webdriver/firefox/webdriver.py b/py/selenium/webdriver/firefox/webdriver.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/firefox/webdriver.py
+++ b/py/selenium/webdriver/firefox/webdriver.py
@@ -245,7 +245,7 @@ class WebDriver(RemoteWebDriver):
driver.install_addon('... | [py] Making tox pass | py |
diff --git a/pysat/_instrument.py b/pysat/_instrument.py
index <HASH>..<HASH> 100644
--- a/pysat/_instrument.py
+++ b/pysat/_instrument.py
@@ -2117,7 +2117,8 @@ class Instrument(object):
iter_idx = self.files.get_index(_temp[-1])
# don't let loaded data go past stop bound
... | BUG: Corrected bounds issue setting by fname | py |
diff --git a/jujupy/client.py b/jujupy/client.py
index <HASH>..<HASH> 100644
--- a/jujupy/client.py
+++ b/jujupy/client.py
@@ -1957,7 +1957,7 @@ class ModelClient:
self.destroy_controller(all_models=True)
except subprocess.CalledProcessError:
logging.warning('tear_down destroy-control... | Update any calls to methods that store return value from ModelClient.juju | py |
diff --git a/tests/changelog.py b/tests/changelog.py
index <HASH>..<HASH> 100644
--- a/tests/changelog.py
+++ b/tests/changelog.py
@@ -167,12 +167,13 @@ class nodes(Spec):
def issues_with_numbers_appear_as_number_links(self):
nodes = self._generate('1.0.2', self.b)
- link = nodes[0].children[1].c... | Oooh no more .children needed. Nice! | py |
diff --git a/imgaug/imgaug.py b/imgaug/imgaug.py
index <HASH>..<HASH> 100644
--- a/imgaug/imgaug.py
+++ b/imgaug/imgaug.py
@@ -999,7 +999,7 @@ def imresize_many_images(images, sizes=None, interpolation=None):
if nb_shapes == 1:
return list(imresize_many_images(np.array(images), sizes=sizes, interp... | Fix imresize_many_images() adding axis for inputs with different shapes | py |
diff --git a/combine/checks/links.py b/combine/checks/links.py
index <HASH>..<HASH> 100644
--- a/combine/checks/links.py
+++ b/combine/checks/links.py
@@ -26,6 +26,7 @@ class InternalLinkBrokenCheck(Check):
"http:",
"https:",
"tel:",
+ "sms:",
"mailto:",
... | Allow "sms://" links in the link checker | py |
diff --git a/src/pikepdf/_pdfimage.py b/src/pikepdf/_pdfimage.py
index <HASH>..<HASH> 100644
--- a/src/pikepdf/_pdfimage.py
+++ b/src/pikepdf/_pdfimage.py
@@ -93,6 +93,8 @@ class PdfImage:
def colorspace(self):
if self._colorspaces[0] in self.SIMPLE_COLORSPACES:
return self._colorspaces[0]
+ ... | Images: Report CMYK too | py |
diff --git a/jf_agent/jira_download.py b/jf_agent/jira_download.py
index <HASH>..<HASH> 100644
--- a/jf_agent/jira_download.py
+++ b/jf_agent/jira_download.py
@@ -127,6 +127,11 @@ def download_projects_and_versions(
print('✓')
+ print(f'downloading jira project components... ', end='', flush=True)
+ for ... | OJ <I> - Ingest Jira Components (#<I>) * adding project component data into jira_projects_and_versions json file | py |
diff --git a/webvtt/parsers.py b/webvtt/parsers.py
index <HASH>..<HASH> 100644
--- a/webvtt/parsers.py
+++ b/webvtt/parsers.py
@@ -167,16 +167,14 @@ class WebVTTParser(TextBasedParser):
blocks = []
for index, line in enumerate(lines, start=1):
- # clean up exstraneous whitespace
- ... | Improve skip of empty lines #<I> | py |
diff --git a/toml/encoder.py b/toml/encoder.py
index <HASH>..<HASH> 100644
--- a/toml/encoder.py
+++ b/toml/encoder.py
@@ -61,7 +61,7 @@ def dumps(o, encoder=None):
retval += addtoretval
outer_objs = [id(o)]
while sections:
- section_ids = [id(section) for section in sections]
+ section_ids... | ids were based on the string, rather than the actual object which causes incorrect detection of circular references (#<I>) Fix #<I> | py |
diff --git a/examples/test_examples.py b/examples/test_examples.py
index <HASH>..<HASH> 100644
--- a/examples/test_examples.py
+++ b/examples/test_examples.py
@@ -130,8 +130,7 @@ def test_example(example):
ac_dir = os.path.join(gen_dir, acd)
py_file = os.path.join(gen_dir, pyf)
- assert os.path.exists(ex... | Allow for example tests with no output comparisons | py |
diff --git a/drf_multiple_model/mixins.py b/drf_multiple_model/mixins.py
index <HASH>..<HASH> 100644
--- a/drf_multiple_model/mixins.py
+++ b/drf_multiple_model/mixins.py
@@ -159,7 +159,7 @@ class FlatMultipleModelMixin(BaseMultipleModelMixin):
# Optional keyword to sort flat lasts by given attribute
# note t... | Make sorting_fields None by default | py |
diff --git a/src/pyrocore/torrent/engine.py b/src/pyrocore/torrent/engine.py
index <HASH>..<HASH> 100644
--- a/src/pyrocore/torrent/engine.py
+++ b/src/pyrocore/torrent/engine.py
@@ -421,6 +421,7 @@ class TorrentProxy(object):
accessor=lambda o: os.path.expanduser(fmt.to_unicode(o._fields["metafile"])))
f... | Added field "fno" (number of files in an item) | py |
diff --git a/fbchat_archive_parser/parser.py b/fbchat_archive_parser/parser.py
index <HASH>..<HASH> 100644
--- a/fbchat_archive_parser/parser.py
+++ b/fbchat_archive_parser/parser.py
@@ -103,7 +103,7 @@ class FacebookChatHistory:
intensive than loading the entire HTML file into memory, like
BeautifulS... | Force UTF-8 to bytes for pypy | py |
diff --git a/tests/test_main.py b/tests/test_main.py
index <HASH>..<HASH> 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -337,7 +337,7 @@ def test_use_coverage(capsys, filesystem):
assert int(root.attrib['disabled']) == 0
# generate a `.coverage` file by invoking pytest
- subprocess.run(["py... | Do not call python in test directly Use sys.executable so it properly calls py2 or py3 depending on what is tested. | py |
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/yumpkg.py
+++ b/salt/modules/yumpkg.py
@@ -102,10 +102,27 @@ def _repoquery_pkginfo(repoquery_args):
return ret
+def _check_repoquery():
+ '''
+ Check for existence of repoquery and install yum-uti... | Install repoquery if not present on yum-based distro Resolves #<I>. | py |
diff --git a/dependencies.py b/dependencies.py
index <HASH>..<HASH> 100644
--- a/dependencies.py
+++ b/dependencies.py
@@ -52,9 +52,8 @@ class InjectorType(type):
def __getattr__(cls, attrname):
- try:
- attribute_spec = cls.__dependencies__[attrname]
- except KeyError:
+ attrib... | Don't use KeyError as cause for AttributeError. | py |
diff --git a/api.py b/api.py
index <HASH>..<HASH> 100644
--- a/api.py
+++ b/api.py
@@ -44,6 +44,10 @@ class Api():
"""
self.endpoints.update(endpoints)
+ def clear_endpoints(self):
+ """Clears all stored endpoints"""
+ self.endpoints = {}
+
@staticmethod
def _httplib2_init... | Added a way to clear endpoints | py |
diff --git a/tests/test_halo.py b/tests/test_halo.py
index <HASH>..<HASH> 100644
--- a/tests/test_halo.py
+++ b/tests/test_halo.py
@@ -357,10 +357,7 @@ class TestHalo(unittest.TestCase):
"""Test proper assignment of the interval value from a dictionary.
"""
spinner = Halo(spinner={'interval':... | Test Halo: Change tests for windows for custom spinners | py |
diff --git a/tests/test_acl.py b/tests/test_acl.py
index <HASH>..<HASH> 100644
--- a/tests/test_acl.py
+++ b/tests/test_acl.py
@@ -26,7 +26,7 @@ def test_set_access(): # type: () -> None
def test_get_access(): # type: () -> None
user_acl = acl.ACL()
- assert user_acl._get_access("read", "520") == False
+ ... | style: == False -> is False as suggested by PEP8 | py |
diff --git a/test_setquery.py b/test_setquery.py
index <HASH>..<HASH> 100644
--- a/test_setquery.py
+++ b/test_setquery.py
@@ -189,8 +189,11 @@ def test_daclookup():
"c.b": ["c.a"],
}
- # The node lookup and dependency operator
+ # The node lookup
node_lookup = partial(strlookup, space=graph.... | Separate dac lookup and operator definition | py |
diff --git a/book/smoothing/online_smoothing.py b/book/smoothing/online_smoothing.py
index <HASH>..<HASH> 100644
--- a/book/smoothing/online_smoothing.py
+++ b/book/smoothing/online_smoothing.py
@@ -103,7 +103,7 @@ for method in methods:
print(long_names[method])
runs[method] = particles.multiSMC(fk= fkmod,... | nprocs in online smooth | py |
diff --git a/salt/netapi/rest_tornado/__init__.py b/salt/netapi/rest_tornado/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/netapi/rest_tornado/__init__.py
+++ b/salt/netapi/rest_tornado/__init__.py
@@ -107,7 +107,7 @@ def start():
)
http_server.start(mod_opts['num_processes'])
... | Change print to logger, so we can set a level and log exc_info | py |
diff --git a/bokeh/models/plots.py b/bokeh/models/plots.py
index <HASH>..<HASH> 100644
--- a/bokeh/models/plots.py
+++ b/bokeh/models/plots.py
@@ -86,6 +86,14 @@ class Plot(Component):
if "tool_events" not in kwargs:
kwargs["tool_events"] = ToolEvents()
+ if "border_fill" in kwargs and "b... | Raise exception when both border_fill/fill_color or background_fill/fill_color set in init | py |
diff --git a/tests/support/mock.py b/tests/support/mock.py
index <HASH>..<HASH> 100644
--- a/tests/support/mock.py
+++ b/tests/support/mock.py
@@ -95,8 +95,10 @@ if NO_MOCK is False:
class MockFH(object):
- def __init__(self, filename, read_data):
+ def __init__(self, filename, read_data, *args, **kwargs):
... | Track call args/kwargs in MockFH This allows for them to be verified in tests | py |
diff --git a/cmsplugin_cascade/extra_fields/mixins.py b/cmsplugin_cascade/extra_fields/mixins.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/extra_fields/mixins.py
+++ b/cmsplugin_cascade/extra_fields/mixins.py
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
-from collections i... | Update mixins.py Added Python <I> compatibility. Requires the backport package `ordereddict`. | py |
diff --git a/beprof/curve.py b/beprof/curve.py
index <HASH>..<HASH> 100644
--- a/beprof/curve.py
+++ b/beprof/curve.py
@@ -105,7 +105,7 @@ class Curve(np.ndarray):
print('Error2')
return self
y = np.interp(domain, self.x, self.y)
- obj = Curve(np.stack((domain, y), axis=1))
+ ... | Fixed rebinning methods change_domain() function now passes extra parameter which is **self.__dict__ of processed curve to Curve.__new__ method. Metadata is no longer lost when using rebinning methods. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,9 +17,11 @@ from distutils.core import setup
setup(
name = 'adb',
packages = ['adb'],
- version = 'TBD',
+ version = '1.1.0',
author = 'Fahrzin Hemmati',
author_email = 'fahhem@gmail.com',
+ m... | added Alex as Maintainer, set version to <I> | py |
diff --git a/pyathenajdbc/__init__.py b/pyathenajdbc/__init__.py
index <HASH>..<HASH> 100644
--- a/pyathenajdbc/__init__.py
+++ b/pyathenajdbc/__init__.py
@@ -8,7 +8,7 @@ from pyathenajdbc.error import * # noqa
__version__ = '1.1.0'
-__athena_driver_version__ = '1.0.0'
+__athena_driver_version__ = '1.0.1'
# ... | Update JDBC Driver to <I> | py |
diff --git a/rdopkg/actionmods/kojibuild.py b/rdopkg/actionmods/kojibuild.py
index <HASH>..<HASH> 100644
--- a/rdopkg/actionmods/kojibuild.py
+++ b/rdopkg/actionmods/kojibuild.py
@@ -98,15 +98,16 @@ def get_fedpkg_cli(config=None, flog=None):
def new_build(watch=True):
modules_check()
- flog = setup_fedpkg_l... | linting cleanup in kojibuild.py - F<I> F<I> local variable assigned to but never used added one NOQA guard for action with sideffect dropped one local assignment added TODO comment about using a return value Change-Id: I<I>e<I>a<I>cf<I>ced<I>b1ef<I>e<I> | py |
diff --git a/astroid/__pkginfo__.py b/astroid/__pkginfo__.py
index <HASH>..<HASH> 100644
--- a/astroid/__pkginfo__.py
+++ b/astroid/__pkginfo__.py
@@ -20,7 +20,7 @@ distname = 'astroid'
modname = 'astroid'
-numversion = (1, 3, 0)
+numversion = (1, 3, 1)
version = '.'.join([str(num) for num in numversion])
inst... | Update the version number for astroid <I>. | py |
diff --git a/cocaine/tools/actions/docker.py b/cocaine/tools/actions/docker.py
index <HASH>..<HASH> 100644
--- a/cocaine/tools/actions/docker.py
+++ b/cocaine/tools/actions/docker.py
@@ -20,6 +20,9 @@ class Client(object):
def info(self):
return Info(self.url, self.version, self._io_loop).execute()
+ ... | Introducing docker images command. * asynchronous and yieldable | py |
diff --git a/parsl/monitoring/monitoring.py b/parsl/monitoring/monitoring.py
index <HASH>..<HASH> 100644
--- a/parsl/monitoring/monitoring.py
+++ b/parsl/monitoring/monitoring.py
@@ -345,9 +345,6 @@ class Hub(object):
level=logging_level)
self.logger.debug("Hub starting... | bind to random port if hub_port is None (#<I>) fixes #<I> fixes #<I> | py |
diff --git a/views.py b/views.py
index <HASH>..<HASH> 100644
--- a/views.py
+++ b/views.py
@@ -34,6 +34,7 @@ from invenio.modules.search.models import Collection
from invenio.modules.search.signals import record_viewed
from invenio.modules.records.models import Record as Bibrec
from invenio.base.i18n import _
+from ... | base: add pre-template-render signal * Adds signal that can be sent from views prior to a template being rendered. This allows simple customizations of the template context. | py |
diff --git a/soccer/leagueproperties.py b/soccer/leagueproperties.py
index <HASH>..<HASH> 100644
--- a/soccer/leagueproperties.py
+++ b/soccer/leagueproperties.py
@@ -9,6 +9,11 @@ LEAGUE_PROPERTIES = {
"cl": [1, 4],
"el": [5, 6]
},
+ "BL2": {
+ "rl": [16, 18],
+ "cl": [1, 3],... | Update leagueproperties.py | py |
diff --git a/osbs/constants.py b/osbs/constants.py
index <HASH>..<HASH> 100644
--- a/osbs/constants.py
+++ b/osbs/constants.py
@@ -76,10 +76,10 @@ REPO_CONFIG_FILE = '.osbs-repo-config'
ADDITIONAL_TAGS_FILE = 'additional-tags'
# number of retries for http requests
-HTTP_MAX_RETRIES = 3
+HTTP_MAX_RETRIES = 8
# ho... | Adjust max retries and backoff factor to make sure retries are covering an inaccessibility period of <I> mins | py |
diff --git a/tests/cartesian_coordinates/Cartesian/test_core.py b/tests/cartesian_coordinates/Cartesian/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/cartesian_coordinates/Cartesian/test_core.py
+++ b/tests/cartesian_coordinates/Cartesian/test_core.py
@@ -186,4 +186,11 @@ def test_cutcuboid():
def test_inertia(... | TEST: @ not defined in py<I> | py |
diff --git a/tests/tools/commands/test_venv.py b/tests/tools/commands/test_venv.py
index <HASH>..<HASH> 100644
--- a/tests/tools/commands/test_venv.py
+++ b/tests/tools/commands/test_venv.py
@@ -48,11 +48,20 @@ def pex():
touch(os.path.join(src_dir, "user/__init__.py"))
touch(os.path.join(src_dir, "us... | Fix Fabric-based venv tests. (#<I>) | py |
diff --git a/alooma_pysdk/alooma_pysdk.py b/alooma_pysdk/alooma_pysdk.py
index <HASH>..<HASH> 100644
--- a/alooma_pysdk/alooma_pysdk.py
+++ b/alooma_pysdk/alooma_pysdk.py
@@ -72,6 +72,7 @@ class AloomaEncoder(json.JSONEncoder):
_json_enc = AloomaEncoder()
_default_ca = os.path.dirname(os.path.realpath(__file__)) + '/... | Added condition for termination - buffer must be empty | py |
diff --git a/salt/modules/config.py b/salt/modules/config.py
index <HASH>..<HASH> 100644
--- a/salt/modules/config.py
+++ b/salt/modules/config.py
@@ -7,7 +7,7 @@ from __future__ import absolute_import
# Import python libs
import re
import os
-from six import string_types
+from salt.utils.six import string_types
... | Replaced module six in file /salt/modules/config.py | py |
diff --git a/src/qinfer/abstract_model.py b/src/qinfer/abstract_model.py
index <HASH>..<HASH> 100644
--- a/src/qinfer/abstract_model.py
+++ b/src/qinfer/abstract_model.py
@@ -117,7 +117,7 @@ class Simulatable(object):
if such a model exists, or ``None`` if this model is
independent.
"""
- ... | Fixed stupid syntax error in previous commit. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -39,13 +39,18 @@ def get_version(package):
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
-VERSION = get_version('migrate_sql')
... | Adding long description to setup.py (populated from README). | py |
diff --git a/telemetry/telemetry/__init__.py b/telemetry/telemetry/__init__.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/__init__.py
+++ b/telemetry/telemetry/__init__.py
@@ -5,6 +5,7 @@
"""A library for cross-platform browser tests."""
import inspect
+import logging
import os
import sys
@@ -15,6 +1... | [Telemetry] Fail explicitly if running under an old Python version. This also serves to document the minimum supported Python version. BUG= Review URL: <URL> | py |
diff --git a/tests/test_acid.py b/tests/test_acid.py
index <HASH>..<HASH> 100644
--- a/tests/test_acid.py
+++ b/tests/test_acid.py
@@ -108,6 +108,7 @@ def gen_random_meta():
return meta
def dump_grid(g):
+ print ('Version: %s' % g.version)
print ('Metadata:')
for k, v in g.metadata.items():
... | WC-<I>: ACID test: report grid version | py |
diff --git a/graphenebase/transactions.py b/graphenebase/transactions.py
index <HASH>..<HASH> 100644
--- a/graphenebase/transactions.py
+++ b/graphenebase/transactions.py
@@ -428,16 +428,16 @@ class Signed_Transaction(GrapheneObject) :
# Deterministic k
#
- #k ... | [Transactions] RFC<I> signing | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -23,7 +23,7 @@ extensions = [
# Uncomment the below if you use native CircuitPython modules such as
# digitalio, micropython and busio. List the modules you use. Without it, the
# autodoc module docs will fa... | Add busio and digitalio to mock imports | py |
diff --git a/dynamic_dynamodb/core/dynamodb.py b/dynamic_dynamodb/core/dynamodb.py
index <HASH>..<HASH> 100644
--- a/dynamic_dynamodb/core/dynamodb.py
+++ b/dynamic_dynamodb/core/dynamodb.py
@@ -99,8 +99,17 @@ def list_tables():
tables = []
try:
- for table_name in DYNAMODB_CONNECTION.list_tables()[u... | Now ensures there was no LastEvaluatedTableName in the response. All tables are now retrieved even if not all tables can be returned in a single response. | py |
diff --git a/blockstack_cli_0.14.1/blockstack_client/profile.py b/blockstack_cli_0.14.1/blockstack_client/profile.py
index <HASH>..<HASH> 100644
--- a/blockstack_cli_0.14.1/blockstack_client/profile.py
+++ b/blockstack_cli_0.14.1/blockstack_client/profile.py
@@ -569,27 +569,22 @@ def zonefile_publish(fqu, zonefile_json... | don't print out invalid responses (could be malicious) | py |
diff --git a/bottle_auth/decorator.py b/bottle_auth/decorator.py
index <HASH>..<HASH> 100644
--- a/bottle_auth/decorator.py
+++ b/bottle_auth/decorator.py
@@ -5,14 +5,14 @@ from functools import wraps
from bottle import request
-def login(auth):
+def login():
def decorator(func):
@wraps(func)
- ... | fixing how the decorator works (now it wont need an argument) | py |
diff --git a/bdata/bdata.py b/bdata/bdata.py
index <HASH>..<HASH> 100644
--- a/bdata/bdata.py
+++ b/bdata/bdata.py
@@ -247,6 +247,7 @@ class bdata(mdata):
"/lock-in/Y" :"lockin_y",
"/Magnet/mag_field" ... | bdata: added to dkeys | py |
diff --git a/pythainlp/tokenize/attacut.py b/pythainlp/tokenize/attacut.py
index <HASH>..<HASH> 100644
--- a/pythainlp/tokenize/attacut.py
+++ b/pythainlp/tokenize/attacut.py
@@ -13,8 +13,5 @@ except ImportError:
sys.exit('Error ! using pip install attacut')
-def segment(text, model='attacut-sc'):
- # T... | use high level api in attacut | py |
diff --git a/src/toil/test/__init__.py b/src/toil/test/__init__.py
index <HASH>..<HASH> 100644
--- a/src/toil/test/__init__.py
+++ b/src/toil/test/__init__.py
@@ -955,4 +955,5 @@ class ApplianceTestSupport(ToilTest):
'--master=127.0.0.1:5050',
'--attributes=preemptable:False',
... | Don't check for additional hostnames. | py |
diff --git a/shinken/satellite.py b/shinken/satellite.py
index <HASH>..<HASH> 100644
--- a/shinken/satellite.py
+++ b/shinken/satellite.py
@@ -395,13 +395,11 @@ class Satellite(BaseSatellite):
except KeyError:
pass
-
# Wrapper function for stats
def manage_returns(self):
_t = ... | clean: manage_returns return value is unused so don't bother returning any value at all and anyway do_manage_returns() wasn't returning anything but None.. | py |
diff --git a/tests/test_main.py b/tests/test_main.py
index <HASH>..<HASH> 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -29,9 +29,9 @@ def test_tile_valid_default():
Should work as expected
"""
- tile_z = 19
- tile_x = 109554
- tile_y = 200458
+ tile_z = 21
+ tile_x = 438217
+ ... | mask should be fine for a non boundless read | py |
diff --git a/gpiozero/mixins.py b/gpiozero/mixins.py
index <HASH>..<HASH> 100644
--- a/gpiozero/mixins.py
+++ b/gpiozero/mixins.py
@@ -456,8 +456,8 @@ class GPIOQueue(GPIOThread):
if sample_wait < 0:
raise BadWaitTime('sample_wait must be 0 or greater')
self.queue = deque(maxlen=queue_len... | Additional parameter-type validation ...in line with the property setters | 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
@@ -629,7 +629,7 @@ def wait_for_port(host, port=22, timeout=900, gateway=None):
trycount += 1
# test gateway usage
if not usable_gateway:
- pstatu... | Restore salt-cloud ssh_gateway support | py |
diff --git a/gwpy/segments/flag.py b/gwpy/segments/flag.py
index <HASH>..<HASH> 100644
--- a/gwpy/segments/flag.py
+++ b/gwpy/segments/flag.py
@@ -31,7 +31,7 @@ import re
import warnings
import tempfile
from urlparse import urlparse
-from copy import copy as shallowcopy
+from copy import (copy as shallowcopy, deepco... | DataQualityFlag.copy(): use copy.deepcopy ensures that all attributes get copied over, not just a named subset | py |
diff --git a/salt/utils/schedule.py b/salt/utils/schedule.py
index <HASH>..<HASH> 100644
--- a/salt/utils/schedule.py
+++ b/salt/utils/schedule.py
@@ -525,16 +525,16 @@ class Schedule(object):
else:
thread_cls = threading.Thread
- proc = thread_cls(target=self.handle_func, args=(multiproc... | Reset signals before instantiating the process | py |
diff --git a/edalize/modelsim.py b/edalize/modelsim.py
index <HASH>..<HASH> 100644
--- a/edalize/modelsim.py
+++ b/edalize/modelsim.py
@@ -69,7 +69,7 @@ class Modelsim(Edatool):
tool_options = {'lists' : {'vlog_options' : 'String',
'vsim_options' : 'String'}}
- argtypes = ['plu... | Add generic support to modelsim. Contributes to olofk/edalize#7 | py |
diff --git a/MambuPy/rest/mambuproduct.py b/MambuPy/rest/mambuproduct.py
index <HASH>..<HASH> 100644
--- a/MambuPy/rest/mambuproduct.py
+++ b/MambuPy/rest/mambuproduct.py
@@ -146,7 +146,7 @@ class AllMambuProducts(MambuStruct):
# Iterable AllMambuProducts singleton also uses a special
# noinit... | Bugfix, TypeError when instantiating the class AllMambuProducts | py |
diff --git a/discord/ext/commands/view.py b/discord/ext/commands/view.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/view.py
+++ b/discord/ext/commands/view.py
@@ -143,8 +143,11 @@ def quoted_word(view):
close_quote = _quotes.get(current)
is_quoted = bool(close_quote)
if is_quoted:
- op... | [commands] Minor optimisations to unicode quote handling. | py |
diff --git a/nodeconductor/billing/tasks.py b/nodeconductor/billing/tasks.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/billing/tasks.py
+++ b/nodeconductor/billing/tasks.py
@@ -102,6 +102,11 @@ def update_today_usage_of_resource(resource_str):
backend = CostTrackingRegister.get_resource_backend(resource)... | Post usage to killbill for already subscribed resources only - NC-<I> | py |
diff --git a/src/globus_cli/parsing/command_state.py b/src/globus_cli/parsing/command_state.py
index <HASH>..<HASH> 100644
--- a/src/globus_cli/parsing/command_state.py
+++ b/src/globus_cli/parsing/command_state.py
@@ -103,8 +103,7 @@ def format_option(f: Callable) -> Callable:
"--jq",
help=(
... | Shorten helptext for --jmespath This helps it fit on one line in more cases with the new (wide format) help printing behavior. | py |
diff --git a/luminoso_api/client.py b/luminoso_api/client.py
index <HASH>..<HASH> 100644
--- a/luminoso_api/client.py
+++ b/luminoso_api/client.py
@@ -108,9 +108,11 @@ class LuminosoClient(object):
url = URL_BASE + '/' + url.lstrip('/')
root_url = URL_BASE
- logger.info('collecting cr... | fix logic of when to get a username/password and when not to | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -405,7 +405,7 @@ def _build_cli_example(config, section, outdir, logger):
# build command-line strings for display and subprocess call
cmd = 'gwpy-plot {0}'.format(raw) # exclude --out for display
... | docs: fixed bug introduced by c<I> | py |
diff --git a/cloudshell/devices/standards/base.py b/cloudshell/devices/standards/base.py
index <HASH>..<HASH> 100644
--- a/cloudshell/devices/standards/base.py
+++ b/cloudshell/devices/standards/base.py
@@ -18,7 +18,8 @@ class AbstractResource(object):
self.shell_name = shell_name
if self.shell_name:
... | add missed space replacement in the resource model | py |
diff --git a/tests/test_functools.py b/tests/test_functools.py
index <HASH>..<HASH> 100644
--- a/tests/test_functools.py
+++ b/tests/test_functools.py
@@ -51,6 +51,24 @@ class TestLRUCache(unittest.TestCase):
self.assertEqual(a.cached_func.cache_info().misses, 4)
+ class TestClass2():
+ @... | Add lru_cache test. | py |
diff --git a/frigg_worker/fetcher.py b/frigg_worker/fetcher.py
index <HASH>..<HASH> 100644
--- a/frigg_worker/fetcher.py
+++ b/frigg_worker/fetcher.py
@@ -53,6 +53,7 @@ def start_build(task, options):
def start_deployment(task, options):
docker_options = {
'image': task['image'],
+ 'timeout': task... | Fix #<I>, add timeout to docker options based on preview task | py |
diff --git a/python/rosette/api.py b/python/rosette/api.py
index <HASH>..<HASH> 100644
--- a/python/rosette/api.py
+++ b/python/rosette/api.py
@@ -16,7 +16,6 @@ with `restricted rights' as those terms are defined in DAR and ASPR
_ACCEPTABLE_SERVER_VERSION = "0.5"
_GZIP_KEY = [0x1F, 0x8b, 0x08]
N_RETRIES = 3
-RETRY_D... | RCB-<I> Remove dead line | py |
diff --git a/pluginsmanager/model/lv2/lv2_effect_builder.py b/pluginsmanager/model/lv2/lv2_effect_builder.py
index <HASH>..<HASH> 100644
--- a/pluginsmanager/model/lv2/lv2_effect_builder.py
+++ b/pluginsmanager/model/lv2/lv2_effect_builder.py
@@ -24,9 +24,9 @@ class Lv2EffectBuilder(object):
with open(plugins_... | Fix lv2 effect builder for travis build | py |
diff --git a/hdl_toolkit/synthetisator/shortcuts.py b/hdl_toolkit/synthetisator/shortcuts.py
index <HASH>..<HASH> 100644
--- a/hdl_toolkit/synthetisator/shortcuts.py
+++ b/hdl_toolkit/synthetisator/shortcuts.py
@@ -15,6 +15,7 @@ from hdl_toolkit.synthetisator.vhdlCodeWrap import VhdlCodeWrap
from python_toolkit.fileHe... | new: synthetizeAsIpcore | py |
diff --git a/openag/cli/firmware/plugins/ros.py b/openag/cli/firmware/plugins/ros.py
index <HASH>..<HASH> 100644
--- a/openag/cli/firmware/plugins/ros.py
+++ b/openag/cli/firmware/plugins/ros.py
@@ -46,6 +46,7 @@ class ROSCommPlugin(Plugin):
def setup_plugin(self, f):
f.writeln("Serial.begin(57600);")
... | Arduino no longer crashes when trying to publish diagnostic messages | py |
diff --git a/metal/mmtl/trainer.py b/metal/mmtl/trainer.py
index <HASH>..<HASH> 100644
--- a/metal/mmtl/trainer.py
+++ b/metal/mmtl/trainer.py
@@ -41,7 +41,7 @@ trainer_config = {
# Train Loop
"n_epochs": 1,
"l2": 0.0,
- "grad_clip": 0.0,
+ "grad_clip": 1.0,
# Evaluate dev for during training ... | Set grad_clip norm to <I> by default | py |
diff --git a/inotify/adapters.py b/inotify/adapters.py
index <HASH>..<HASH> 100644
--- a/inotify/adapters.py
+++ b/inotify/adapters.py
@@ -308,6 +308,10 @@ class _BaseTree(object):
yield event
+ @property
+ def inotify(self):
+ return self._i
+
class InotifyTree(_BaseTree):
"""Recu... | Added getter for Inotify object from tree objects. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.