diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/master/buildbot/test/fake/logfile.py b/master/buildbot/test/fake/logfile.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/fake/logfile.py
+++ b/master/buildbot/test/fake/logfile.py
@@ -43,22 +43,28 @@ class FakeLogFile(object):
return self.subPoint.subscribe(callback)
def addHeader... | send headers in fake log files to observers, check line endings, and encode properly | py |
diff --git a/safe/gui/widgets/dock.py b/safe/gui/widgets/dock.py
index <HASH>..<HASH> 100644
--- a/safe/gui/widgets/dock.py
+++ b/safe/gui/widgets/dock.py
@@ -257,10 +257,17 @@ class Dock(QtGui.QDockWidget, FORM_CLASS):
self.extent.show_rubber_bands = bool(
self.settings.value('inasafe/showRubberB... | Add exception to catch TypeError when read setting. (#<I>) * Add exception to catch TypeError when read setting. | py |
diff --git a/polymodels/tests.py b/polymodels/tests.py
index <HASH>..<HASH> 100644
--- a/polymodels/tests.py
+++ b/polymodels/tests.py
@@ -15,7 +15,7 @@ class Animal(PolymorphicModel):
name = models.CharField(max_length=255)
class Meta:
- ordering = ('pk',)
+ ordering = ('id',)
def __st... | Avoid ordering on pk since it's not supported in django <I>.X | py |
diff --git a/sequence_prediction/mackey_glass/run.py b/sequence_prediction/mackey_glass/run.py
index <HASH>..<HASH> 100755
--- a/sequence_prediction/mackey_glass/run.py
+++ b/sequence_prediction/mackey_glass/run.py
@@ -63,7 +63,7 @@ def createModel(modelParams):
def runIoThroughNupic(inputData, model, dataName, pl... | Better opening of files for csv | py |
diff --git a/openpnm/__init__.py b/openpnm/__init__.py
index <HASH>..<HASH> 100644
--- a/openpnm/__init__.py
+++ b/openpnm/__init__.py
@@ -55,7 +55,7 @@ import os
from pathlib import Path
from git import Repo
-__version__ = '2.0.1'
+__version__ = '2.1.0'
try:
path = Path(os.path.realpath(__file__), '../../'... | Updating version number to <I>, so we can start thinking about the next one! | py |
diff --git a/tests/test_case.py b/tests/test_case.py
index <HASH>..<HASH> 100644
--- a/tests/test_case.py
+++ b/tests/test_case.py
@@ -13,7 +13,7 @@ class TestCase(unittest.TestCase):
tempdir = mkdtemp()
with chdir(tempdir):
yield
- rmtree(tempdir)
+ rmtree(tempdir, ignore_e... | TRIVIAL ignoring errors when deleting tempdir in tests, WindowsError is always raised | py |
diff --git a/lambdaJSON.py b/lambdaJSON.py
index <HASH>..<HASH> 100644
--- a/lambdaJSON.py
+++ b/lambdaJSON.py
@@ -42,9 +42,9 @@ restore = lambda obj, globs:\
or x.startswith('tuple://')
and eval(x[8:]) or x)(obj)
or isinstance(obj,... | Ability to pass globals to deserialized Functions. | py |
diff --git a/dashboard_app/tests.py b/dashboard_app/tests.py
index <HASH>..<HASH> 100644
--- a/dashboard_app/tests.py
+++ b/dashboard_app/tests.py
@@ -180,6 +180,8 @@ class TestConstructionTestCase(TestCase):
def test_construction(self):
test = Test(test_id = self.test_id, name = self.name)
test.... | Add some more tests in Test construction tests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ from setuptools import setup
setup(
name = "glitch",
- version = "1.3",
+ version = "1.4",
description = "glitch jpg files",
license = 'MIT',
author = "trsqxyz", | Update: setup.py ver = <I> | py |
diff --git a/c7n/filters/health.py b/c7n/filters/health.py
index <HASH>..<HASH> 100644
--- a/c7n/filters/health.py
+++ b/c7n/filters/health.py
@@ -41,7 +41,7 @@ class HealthEventFilter(Filter):
found = set()
seen = set()
- for resource_set in chunks(resource_map.keys(), 100):
+ for res... | aws - health filter - update chunk size per provider api breakage (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -5,8 +5,6 @@ try:
from setuptools import setup, Command, find_packages
except ImportError:
from distutils.core import setup
-import pip
-from pip.req import parse_requirements
class PyTest(Command): | removed unused imports from setup.py | py |
diff --git a/torchvision/datasets/utils.py b/torchvision/datasets/utils.py
index <HASH>..<HASH> 100644
--- a/torchvision/datasets/utils.py
+++ b/torchvision/datasets/utils.py
@@ -201,7 +201,7 @@ def download_file_from_google_drive(file_id: str, root: str, filename: Optional[
md5 (str, optional): MD5 checksum o... | Ignore missing report warning for requests (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,14 +30,14 @@ def recursively_include(results, directory, patterns):
results[directory].append(join(*filename.split(sep)[1:]))
recursively_include(package_data, 'pythonforandroid/recipes',
- ... | add missing files to setup.py | py |
diff --git a/maildir_deduplicate/tests/test_deduplicate.py b/maildir_deduplicate/tests/test_deduplicate.py
index <HASH>..<HASH> 100644
--- a/maildir_deduplicate/tests/test_deduplicate.py
+++ b/maildir_deduplicate/tests/test_deduplicate.py
@@ -22,12 +22,13 @@ import textwrap
import unittest
from copy import deepcopy
... | Make a python2 compatible devnull log filter | py |
diff --git a/ara/plugins/callback/ara_default.py b/ara/plugins/callback/ara_default.py
index <HASH>..<HASH> 100644
--- a/ara/plugins/callback/ara_default.py
+++ b/ara/plugins/callback/ara_default.py
@@ -143,7 +143,7 @@ class CallbackModule(CallbackBase):
self._load_files(play._loader._FILE_CACHE.keys())
... | Save the play uuid provided by Ansible when recording the play This will allow clients and plugins running within Ansible to identify which play they are in and which playbook they are in. Change-Id: I<I>d<I>bb<I>bf<I>acf<I>d1eb8 Depends-On: <URL> | py |
diff --git a/fastfood/pack.py b/fastfood/pack.py
index <HASH>..<HASH> 100644
--- a/fastfood/pack.py
+++ b/fastfood/pack.py
@@ -37,6 +37,7 @@ class TemplatePack(object):
% os.path.relpath(self.manifest_path))
self._validate('api', cls=int)
self._validate('base', cls=dict)
... | validate that stencil_sets key exists, if _stencils_sets is empty populate it | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ def read(fname):
setup(
name="statusbar",
- version="0.1.0",
+ version="0.1.1",
packages=find_packages(), | Bumped version to <I> to get the .rst README file -- apparently I get an error if I try to install with the current <I>. | py |
diff --git a/system_tests/system_test_utils.py b/system_tests/system_test_utils.py
index <HASH>..<HASH> 100644
--- a/system_tests/system_test_utils.py
+++ b/system_tests/system_test_utils.py
@@ -28,8 +28,6 @@ CREDENTIALS = os.getenv(TEST_CREDENTIALS)
ENVIRON_ERROR_MSG = """\
To run the system tests, you need to set s... | Distinguishing between unset env. var. and missing file in system test. Fixes #<I>. | py |
diff --git a/tools/fontbakery-fix-macstyle.py b/tools/fontbakery-fix-macstyle.py
index <HASH>..<HASH> 100644
--- a/tools/fontbakery-fix-macstyle.py
+++ b/tools/fontbakery-fix-macstyle.py
@@ -49,7 +49,7 @@ def printInfo(fonts, print_csv=False):
if __name__ == '__main__':
arg = args.parse_args()
- if arg.autofix:
+ ... | if set flags are being passed then execute marking the flags with values | py |
diff --git a/johnny/tests/web.py b/johnny/tests/web.py
index <HASH>..<HASH> 100644
--- a/johnny/tests/web.py
+++ b/johnny/tests/web.py
@@ -6,6 +6,7 @@
from django.conf import settings
from django.db import connection
from johnny import middleware
+import django
import base
try:
@@ -40,6 +41,9 @@ class TestTransa... | the check for the bug in django's TransactionMiddleware was actually failing in <I> because that bug is fixed in <I>; lets not check for it anymore; all non-multidb tests are now working in stable django releases > <I>, and django-trunk to boot | py |
diff --git a/example/basic.py b/example/basic.py
index <HASH>..<HASH> 100644
--- a/example/basic.py
+++ b/example/basic.py
@@ -7,15 +7,10 @@ Applications can be as simple or as complex and layered as your needs dictate.
def basic(context):
- #context.log.info("Returning plain text content.")
- #context.response.mi... | Simplified down. Now using new serve mechanism. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,7 @@ setup(
author='Jens Rantil',
author_email='jens.rantil@gmail.com',
license='GNU AGPL, version 3',
+ url='https://github.com/JensRantil/rewind',
packages=[
'rewind',
'rewi... | Adding 'url' to `setup.py` | py |
diff --git a/scripts/plot_success_fail_curve.py b/scripts/plot_success_fail_curve.py
index <HASH>..<HASH> 100755
--- a/scripts/plot_success_fail_curve.py
+++ b/scripts/plot_success_fail_curve.py
@@ -20,7 +20,7 @@ silence()
from cleverhans.compat import flags
from cleverhans.plot.success_fail import DEFAULT_FAIL_NAMES... | Update plot_success_fail_curve.py | py |
diff --git a/molo/core/tests/base.py b/molo/core/tests/base.py
index <HASH>..<HASH> 100644
--- a/molo/core/tests/base.py
+++ b/molo/core/tests/base.py
@@ -1,4 +1,5 @@
import json
+from datetime import datetime
from django.contrib.auth import get_user_model
from django.contrib.contenttypes.models import ContentType... | Ensure test articles always have a first_published_at value | py |
diff --git a/tests/unit/test_repo.py b/tests/unit/test_repo.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_repo.py
+++ b/tests/unit/test_repo.py
@@ -1,13 +1,6 @@
-import os
+from dvc.utils.compat import fspath
-from tests.basic_env import TestDvc
-
-class TestIsDvcInternal(TestDvc):
- def test_return_false... | tests/repo: use pytest | py |
diff --git a/tests/test_init_file.py b/tests/test_init_file.py
index <HASH>..<HASH> 100644
--- a/tests/test_init_file.py
+++ b/tests/test_init_file.py
@@ -40,9 +40,13 @@ def test_blueprint():
assert current_app.blueprints['flask_statics_helper'] == statics.blueprint
expected_root = os.path.abspath(os.path.j... | Windows test fix. Case insensitive filesystem makes Flask lowercase the blueprint's static path for some reason. Making the test conditional to expect this. | py |
diff --git a/tests/calc/test_kinematics.py b/tests/calc/test_kinematics.py
index <HASH>..<HASH> 100644
--- a/tests/calc/test_kinematics.py
+++ b/tests/calc/test_kinematics.py
@@ -57,6 +57,7 @@ def test_vorticity_asym():
def test_vorticity_positional_grid_args_failure():
"""Test that old API of positional grid a... | MNT: Silence Codacy's complaints on these tests | py |
diff --git a/remi/gui.py b/remi/gui.py
index <HASH>..<HASH> 100644
--- a/remi/gui.py
+++ b/remi/gui.py
@@ -48,7 +48,7 @@ class EventManager(object):
self.listeners[eventname] = {'instance':instance, 'funcname':funcname}
-class Meta(object):
+class Tag(object):
def __init__(self):
# the runtim... | Meta class name changed into Tag to avoid naming confusions. | py |
diff --git a/cr8/log.py b/cr8/log.py
index <HASH>..<HASH> 100644
--- a/cr8/log.py
+++ b/cr8/log.py
@@ -5,7 +5,7 @@ from functools import partial
_wopen = partial(open, mode='w', encoding='utf-8')
-to_jsonstr = partial(json.dumps, sort_keys=True, indent=4)
+to_jsonstr = json.dumps
def _format_short(stats): | Do not pretty print JSON output Makes it easier to process the generated JSON by tools that work with JSONL (1 JSON object per line) The JSON format is usually used for further processing, not as "human readable output". For pretty printing users should use `jq` or `python -mjson.tool`. | py |
diff --git a/esp8266/scripts/inisetup.py b/esp8266/scripts/inisetup.py
index <HASH>..<HASH> 100644
--- a/esp8266/scripts/inisetup.py
+++ b/esp8266/scripts/inisetup.py
@@ -24,11 +24,12 @@ def fs_corrupted():
import time
while 1:
print("""\
-FAT filesystem appears to be corrupted. If you had important ... | esp<I>/scripts/inisetup: Dump FS starting sector/size on error. Should allow to diagnose/try to recover FS easier. | py |
diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py
index <HASH>..<HASH> 100644
--- a/testing/acceptance_test.py
+++ b/testing/acceptance_test.py
@@ -154,7 +154,6 @@ class TestDistribution:
result.stdout.fnmatch_lines(["*2*Python*", "*2 failed, 1 passed, 1 skipped*"])
assert result.re... | Remove obsolete skip based on java (no longer supported) | py |
diff --git a/tests/integration/nupic/opf/hotgym_regression_test.py b/tests/integration/nupic/opf/hotgym_regression_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration/nupic/opf/hotgym_regression_test.py
+++ b/tests/integration/nupic/opf/hotgym_regression_test.py
@@ -63,7 +63,7 @@ class HotgymRegressionTest(unit... | Update expected hotgym result for topology changes | py |
diff --git a/hyperstream/channels/memory_channel.py b/hyperstream/channels/memory_channel.py
index <HASH>..<HASH> 100644
--- a/hyperstream/channels/memory_channel.py
+++ b/hyperstream/channels/memory_channel.py
@@ -38,6 +38,10 @@ class MemoryChannel(BaseChannel):
self.max_stream_id = 0
self.data = dic... | Added non-empty streams property to help debugging of memory channnel | py |
diff --git a/_pytest/config.py b/_pytest/config.py
index <HASH>..<HASH> 100644
--- a/_pytest/config.py
+++ b/_pytest/config.py
@@ -129,6 +129,14 @@ class PytestPluginManager(PluginManager):
return self.get_plugin(name)
def pytest_configure(self, config):
+ # XXX now that the pluginmanager exposes... | re-add tryfirst/trylast marker documentation, mark it as to be removed --HG-- branch : more_plugin | py |
diff --git a/src/python/pants/core/goals/fmt.py b/src/python/pants/core/goals/fmt.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/core/goals/fmt.py
+++ b/src/python/pants/core/goals/fmt.py
@@ -170,7 +170,8 @@ async def fmt(
for fmt_request in union_membership[FmtRequest]:
if fmt_request.fiel... | [internal] Hotfix `fmt` crashing on non-formattable targets (#<I>) We'd try running the `_LanguageFmts` rule on targets with no applicable `FmtRequests`, which is not necessary. It would then crash when trying to call `tgt[SourceFiles]` on the code. [ci skip-rust] | py |
diff --git a/crudbuilder/urls.py b/crudbuilder/urls.py
index <HASH>..<HASH> 100644
--- a/crudbuilder/urls.py
+++ b/crudbuilder/urls.py
@@ -30,11 +30,11 @@ if 'django_content_type' in tables:
entries = [
(r'^{}/{}/$', list_view.as_view(), '{}-{}-list'),
(r'^{}/{}/create/$', create_view... | Update urls.py to support UUID primary keys | py |
diff --git a/src/meshparser/stlparser/parser.py b/src/meshparser/stlparser/parser.py
index <HASH>..<HASH> 100644
--- a/src/meshparser/stlparser/parser.py
+++ b/src/meshparser/stlparser/parser.py
@@ -19,11 +19,15 @@ class STLParser(object):
'''
Constructor
'''
+ self._clear()
+
+ def... | Clear the contents of the points and elements arrays before parsing a new file. | py |
diff --git a/prometheus_client/exposition.py b/prometheus_client/exposition.py
index <HASH>..<HASH> 100644
--- a/prometheus_client/exposition.py
+++ b/prometheus_client/exposition.py
@@ -34,7 +34,7 @@ PYTHON26_OR_OLDER = sys.version_info < (2, 7)
def make_wsgi_app(registry=core.REGISTRY):
'''Create a WSGI app whi... | PEP<I> does not require QUERY_STRING to be present. (#<I>) Ensure that if a WSGI server does not provide the QUERY_STRING in the environ, that we don't throw an exception and cause a <I> to be returned to the scraping client. | py |
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py
index <HASH>..<HASH> 100644
--- a/tests/test_exceptions.py
+++ b/tests/test_exceptions.py
@@ -31,6 +31,8 @@ def test_exception__invalid_username():
Test if `InvalidUsernameError` gets raised if passing
an invalid username
"""
+ time.s... | Add a wait to the `InvalidUsernameError` test Was causing build #<I> (on <I>bded<I>f<I>b<I>ce6bd<I>fdfbaa<I>) to fail Strangely enough, only on Python2... And this never happened before... Hmmm... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,4 +18,13 @@ setup(
'jinja2',
'requests',
],
+ extras_require={
+ 'dev': [
+ 'coverage',
+ 'flake8',
+ 'isort',
+ 'pytest',
+ 'sphinx',... | Add development requirements to setup.py | py |
diff --git a/src/collectors/portstat/portstat.py b/src/collectors/portstat/portstat.py
index <HASH>..<HASH> 100644
--- a/src/collectors/portstat/portstat.py
+++ b/src/collectors/portstat/portstat.py
@@ -61,7 +61,7 @@ class PortStatCollector(diamond.collector.Collector):
for port_name, port_cfg in self.ports.... | [portstat] Change self to PortStatCollector. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ setup(name='amazon-simple-product-api',
keywords='amazon, product advertising, api',
author='Yoav Aviram',
author_email='support@cleverblocks.com',
- url='http://github.com/dlo/bottleno... | Add repo url to setup.py | py |
diff --git a/masonite/providers/__init__.py b/masonite/providers/__init__.py
index <HASH>..<HASH> 100644
--- a/masonite/providers/__init__.py
+++ b/masonite/providers/__init__.py
@@ -1,4 +1,3 @@
-from .ApiProvider import ApiProvider
from .AppProvider import AppProvider
from .BroadcastProvider import BroadcastProvider... | removed api provider from init file | py |
diff --git a/pytds/ntlm.py b/pytds/ntlm.py
index <HASH>..<HASH> 100644
--- a/pytds/ntlm.py
+++ b/pytds/ntlm.py
@@ -14,7 +14,10 @@
import struct
import base64
import string
-import pyDes
+try:
+ import pyDes
+except:
+ raise Exception('To use ntlm authentication you should install pyDes module: pip install pyde... | check for pyDes package presence | py |
diff --git a/proton-c/src/protocol.py b/proton-c/src/protocol.py
index <HASH>..<HASH> 100644
--- a/proton-c/src/protocol.py
+++ b/proton-c/src/protocol.py
@@ -26,11 +26,15 @@ sdoc = mllib.xml_parse(os.path.join(os.path.dirname(__file__), "security.xml"))
def eq(attr, value):
return lambda nd: nd[attr] == value
-T... | PROTON-<I>: don't propagate duplicate header/property fields into protocol.h | py |
diff --git a/satpy/tests/test_resample.py b/satpy/tests/test_resample.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/test_resample.py
+++ b/satpy/tests/test_resample.py
@@ -725,6 +725,7 @@ def suite():
mysuite.addTest(loader.loadTestsFromTestCase(TestBucketAvg))
mysuite.addTest(loader.loadTestsFromTestCase(... | Add TestBucketFraction to the test suite | py |
diff --git a/source/rafcon/mvc/models/state_machine_manager.py b/source/rafcon/mvc/models/state_machine_manager.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/models/state_machine_manager.py
+++ b/source/rafcon/mvc/models/state_machine_manager.py
@@ -90,6 +90,7 @@ class StateMachineManagerModel(ModelMT, Observa... | clear selection before removing a model -> avoids access on not existing elements | py |
diff --git a/graphite_api/render/glyph.py b/graphite_api/render/glyph.py
index <HASH>..<HASH> 100644
--- a/graphite_api/render/glyph.py
+++ b/graphite_api/render/glyph.py
@@ -1676,21 +1676,6 @@ class LineGraph(Graph):
else:
series.xStep = bestXStep
- def _adjustLimits(self, minValue, ... | render/glyph: Remove dead method from LineGraph | py |
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/parallel.py
+++ b/openquake/baselib/parallel.py
@@ -687,7 +687,7 @@ if OQ_DISTRIBUTE == 'celery':
def _wakeup(sec):
- """Waiting functions, used to wake up the process pool"""
+ """W... | Renaming [skip CI] Former-commit-id: 7a1ca<I>edcc<I>aa<I>c6f0cd<I>cfeced<I>dc<I> | py |
diff --git a/binance/websockets.py b/binance/websockets.py
index <HASH>..<HASH> 100644
--- a/binance/websockets.py
+++ b/binance/websockets.py
@@ -104,3 +104,6 @@ class BinanceSocketManager(threading.Thread):
def close(self):
reactor.stop()
+
+ self.stop_user_socket()
+ self._conns = {} | On manager close clear all current connections and timers | py |
diff --git a/django_q/cluster.py b/django_q/cluster.py
index <HASH>..<HASH> 100644
--- a/django_q/cluster.py
+++ b/django_q/cluster.py
@@ -408,17 +408,19 @@ def save_task(task, broker):
try:
if task['success'] and 0 < Conf.SAVE_LIMIT <= Success.objects.count():
Success.objects.last().delete()... | Save task now creates or updates This way failed tasks that get requeued can have a changed status and result | py |
diff --git a/fdint/__init__.py b/fdint/__init__.py
index <HASH>..<HASH> 100644
--- a/fdint/__init__.py
+++ b/fdint/__init__.py
@@ -27,4 +27,4 @@ Precise and fast Fermi-Dirac integrals of integer and half integer order.
'''
from .fdint import *
-__all__ = ['fdk', 'dfdk']
+__all__ = ['_fd', 'fdk', 'dfdk']
\ No newlin... | add ‘_fd’ to `fdint.__all__` for low level access | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,6 +40,11 @@ setup(
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
+ 'Prog... | include python3 trove classifiers | py |
diff --git a/plexapi/audio.py b/plexapi/audio.py
index <HASH>..<HASH> 100644
--- a/plexapi/audio.py
+++ b/plexapi/audio.py
@@ -180,7 +180,7 @@ class Artist(
Parameters:
title (str): Title of the album to return.
"""
- key = '/library/metadata/%s/children' % self.ratingKey
+... | Fix `Artist.album()` to return special albums (#<I>) | py |
diff --git a/tests/unit/test_imports.py b/tests/unit/test_imports.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_imports.py
+++ b/tests/unit/test_imports.py
@@ -35,7 +35,6 @@ class TestImports(unittest.TestCase):
snakefoodScanner = SnakefoodScanner()
cls.graph = snakefoodScanner.scan()
- @u... | "Fix" import test Issue #<I> | py |
diff --git a/sanic/static.py b/sanic/static.py
index <HASH>..<HASH> 100644
--- a/sanic/static.py
+++ b/sanic/static.py
@@ -40,6 +40,8 @@ def register(app, uri, file_or_directory, pattern, use_modified_since):
file_path = path.join(file_or_directory, sub('^[/]*', '', file_uri)) \
if file_uri else f... | added a comment on why to decode the file_path | py |
diff --git a/python/ray/rllib/optimizers/async_samples_optimizer.py b/python/ray/rllib/optimizers/async_samples_optimizer.py
index <HASH>..<HASH> 100644
--- a/python/ray/rllib/optimizers/async_samples_optimizer.py
+++ b/python/ray/rllib/optimizers/async_samples_optimizer.py
@@ -167,7 +167,8 @@ class AsyncSamplesOptimiz... | [rllib] Add copy() in async samples optimizer to fix memory leak (#<I>) Fixes #<I>. | py |
diff --git a/buildbot/test/test_properties.py b/buildbot/test/test_properties.py
index <HASH>..<HASH> 100644
--- a/buildbot/test/test_properties.py
+++ b/buildbot/test/test_properties.py
@@ -248,8 +248,8 @@ c['builders'] = [
def _check_props(bs):
self.failUnlessEqual(bs.getProperty("foo"), "foo")
... | fix a few test failures on windoze | py |
diff --git a/hpOneView/image_streamer/resources/os_volumes.py b/hpOneView/image_streamer/resources/os_volumes.py
index <HASH>..<HASH> 100644
--- a/hpOneView/image_streamer/resources/os_volumes.py
+++ b/hpOneView/image_streamer/resources/os_volumes.py
@@ -117,8 +117,6 @@ class OsVolumes(object):
"""
Ge... | Add support to os_volumes in image streamer | py |
diff --git a/anyconfig/api.py b/anyconfig/api.py
index <HASH>..<HASH> 100644
--- a/anyconfig/api.py
+++ b/anyconfig/api.py
@@ -298,7 +298,7 @@ def multi_load(paths, ac_parser=None, ac_template=False, ac_context=None,
marker = options.setdefault("ac_marker", options.get("marker", '*'))
schema = _maybe_schema(a... | refactor: Change the comment to make what the code does more clear | py |
diff --git a/master/buildbot/db/migrate/versions/046_mysql_innodb_compatibility.py b/master/buildbot/db/migrate/versions/046_mysql_innodb_compatibility.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/db/migrate/versions/046_mysql_innodb_compatibility.py
+++ b/master/buildbot/db/migrate/versions/046_mysql_innodb_co... | <I>_mysql_compatibility: support python<I> Fix postgrestl raw SQL query that was written using - '{}'.format(var), when python<I> only supports - '{0}'.format(var). | py |
diff --git a/resolwe/flow/models/utils.py b/resolwe/flow/models/utils.py
index <HASH>..<HASH> 100644
--- a/resolwe/flow/models/utils.py
+++ b/resolwe/flow/models/utils.py
@@ -421,7 +421,12 @@ def hydrate_size(data, force=False):
if data.status in [Data.STATUS_DONE, Data.STATUS_ERROR] and getattr(data, 'size', No... | Set size value to 0 for workflow data objects | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ setup(name='visidata',
'python-dateutil',
'windows-curses; platform_system == "Windows"'
],
- packages=['visidata', 'visidata.loaders', 'visidata.tests'],
+ packages=['vis... | [dev] add visidata.vendor as package to setup.py | py |
diff --git a/claripy/frontends/replacement_frontend.py b/claripy/frontends/replacement_frontend.py
index <HASH>..<HASH> 100644
--- a/claripy/frontends/replacement_frontend.py
+++ b/claripy/frontends/replacement_frontend.py
@@ -45,7 +45,8 @@ class ReplacementFrontend(ConstrainedFrontend):
return self._repla... | only cache replacements when a replacement was actually done | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ setup(
packages=find_packages(),
install_requires=(
'Django>=1.8,<1.11.999', # Django is known to use rc versions
- 'easy-thumbnails>=2,<2.5',
+ 'easy-thumbnails>=2,<3.0',
... | django-filer works perfectly with easy-thumbnails-<I> | py |
diff --git a/tests/integration/pybaseball/test_team_results.py b/tests/integration/pybaseball/test_team_results.py
index <HASH>..<HASH> 100644
--- a/tests/integration/pybaseball/test_team_results.py
+++ b/tests/integration/pybaseball/test_team_results.py
@@ -16,10 +16,15 @@ def test_schedule_and_record(season: int, tea... | Fix cLI Issue in BRef (#<I>) Evidently the new Schedule and Record column is only available SOMETIMES. 🙄 | py |
diff --git a/ontobio/assocmodel.py b/ontobio/assocmodel.py
index <HASH>..<HASH> 100644
--- a/ontobio/assocmodel.py
+++ b/ontobio/assocmodel.py
@@ -43,6 +43,7 @@ class AssociationSet():
self.subject_label_map = subject_label_map
self.subject_to_inferred_map = {}
self.meta = meta # TODO
+ ... | added get_associations (stub) | py |
diff --git a/luigi/scheduler.py b/luigi/scheduler.py
index <HASH>..<HASH> 100644
--- a/luigi/scheduler.py
+++ b/luigi/scheduler.py
@@ -211,6 +211,11 @@ class Worker(object):
def add_info(self, info):
self.info.update(info)
+ def update(self, worker_reference):
+ if worker_reference:
+ ... | don't update worker objects from scheduler | py |
diff --git a/bigquery/docs/snippets.py b/bigquery/docs/snippets.py
index <HASH>..<HASH> 100644
--- a/bigquery/docs/snippets.py
+++ b/bigquery/docs/snippets.py
@@ -26,7 +26,6 @@ need to be deleted during teardown.
import os
import time
-import mock
import pytest
import six
@@ -126,27 +125,6 @@ def test_create_cl... | BigQuery: Remove redundant service account key code sample. (#<I>) * Remove redundant service account key code sample. * Remove unused import. | py |
diff --git a/test_twython.py b/test_twython.py
index <HASH>..<HASH> 100644
--- a/test_twython.py
+++ b/test_twython.py
@@ -35,12 +35,12 @@ class TwythonAuthTestCase(unittest.TestCase):
def test_get_authentication_tokens_bad_tokens(self):
'''Test getting authentication tokens with bad tokens
raise... | Meant to use bad_api for these Tests | py |
diff --git a/wptools/core.py b/wptools/core.py
index <HASH>..<HASH> 100644
--- a/wptools/core.py
+++ b/wptools/core.py
@@ -270,8 +270,9 @@ class WPTools:
self.title = page.get('title').replace(' ', '_')
url = page.get('fullurl')
- self.url = url
- self.urlraw = url + '?action=raw'
+ ... | core fixes to pass test_advanced | py |
diff --git a/pylon/opf.py b/pylon/opf.py
index <HASH>..<HASH> 100644
--- a/pylon/opf.py
+++ b/pylon/opf.py
@@ -84,11 +84,11 @@ class OPF(object):
# if self.opt["verbose"]:
# print '\nPYLON Version %s, %s', "0.4.2", "April 2010"
if solver_klass is not None:
- result = solver_klass... | Fixing OPF option passing to solver. | py |
diff --git a/tohu/v6/derived_generators.py b/tohu/v6/derived_generators.py
index <HASH>..<HASH> 100644
--- a/tohu/v6/derived_generators.py
+++ b/tohu/v6/derived_generators.py
@@ -4,6 +4,7 @@ import pandas as pd
from random import Random
from .base import TohuBaseGenerator, SeedGenerator
+from .logging import logger... | Reset callable if required (in case it is stateful and not a pure function) | py |
diff --git a/salt/master.py b/salt/master.py
index <HASH>..<HASH> 100644
--- a/salt/master.py
+++ b/salt/master.py
@@ -1507,7 +1507,7 @@ class ClearFuncs(object):
elif os.path.isfile(pubfn):
# The key has been accepted, check it
- if salt.utils.fopen(pubfn, 'r').read() != load['pub']:... | merge <I> in correct branch | py |
diff --git a/tests/test_pipeline.py b/tests/test_pipeline.py
index <HASH>..<HASH> 100644
--- a/tests/test_pipeline.py
+++ b/tests/test_pipeline.py
@@ -105,7 +105,7 @@ class MostBasicPipelineTests:
obs_content = [l.rstrip(os.linesep) for l in f.readlines()]
assert exp_content == obs... | use the pipeline manager's stages iterator | py |
diff --git a/observable/observable.py b/observable/observable.py
index <HASH>..<HASH> 100644
--- a/observable/observable.py
+++ b/observable/observable.py
@@ -67,7 +67,7 @@ class Observable:
def trigger(self, event, *args, **kwargs):
"""trigger all functions from an event"""
if event not in self.... | do not raise exception if no event was registered before triggering it | py |
diff --git a/caspo/console/main.py b/caspo/console/main.py
index <HASH>..<HASH> 100644
--- a/caspo/console/main.py
+++ b/caspo/console/main.py
@@ -189,7 +189,8 @@ def run():
args = parser.parse_args(['--out', out, 'analyze', '--clingo', clingo,
'--networks', os.path.join(out,... | use --networks-stats in tests for analyze | py |
diff --git a/grove/utils/utility_programs.py b/grove/utils/utility_programs.py
index <HASH>..<HASH> 100644
--- a/grove/utils/utility_programs.py
+++ b/grove/utils/utility_programs.py
@@ -185,8 +185,9 @@ class ControlledProgramBuilder(object):
control_qu... | adding comment to explain choice of .instructions | py |
diff --git a/bin/alert-mailer.py b/bin/alert-mailer.py
index <HASH>..<HASH> 100755
--- a/bin/alert-mailer.py
+++ b/bin/alert-mailer.py
@@ -139,7 +139,6 @@ class MessageHandler(object):
html += '<tr><td><b>Duplicate Count:</b></td><td>%s</td></tr>\n' % (alert['duplicateCount'])
if 'moreInfo' in ale... | Remove number of tokens left from emails (again) | py |
diff --git a/openquake/engine/calculators/risk/hazard_getters.py b/openquake/engine/calculators/risk/hazard_getters.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/calculators/risk/hazard_getters.py
+++ b/openquake/engine/calculators/risk/hazard_getters.py
@@ -250,12 +250,16 @@ class GroundMotionValuesGetter(Haza... | Reduced number of "no data" logging messages | py |
diff --git a/sos/plugins/pacemaker.py b/sos/plugins/pacemaker.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/pacemaker.py
+++ b/sos/plugins/pacemaker.py
@@ -64,7 +64,8 @@ class Pacemaker(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
self._log_warn("scrubbing of crm passwords has been disabled:")
... | [pacemaker] Call crm_report with --sos-mode option crm_report should be called with --sos-mode option for preffered collection of log files. Closes: #<I>, #<I>. | py |
diff --git a/controller/api/models.py b/controller/api/models.py
index <HASH>..<HASH> 100644
--- a/controller/api/models.py
+++ b/controller/api/models.py
@@ -123,7 +123,12 @@ class App(UuidAuditedModel):
c.destroy()
def deploy(self, release):
- return tasks.deploy_release.delay(self, release... | feat(builder): scale the web process by 1 If no container structure has been specified for a release, we can safely assume that a web process exists. The application should be scaled by 1. | py |
diff --git a/elifetools/parseJATS.py b/elifetools/parseJATS.py
index <HASH>..<HASH> 100644
--- a/elifetools/parseJATS.py
+++ b/elifetools/parseJATS.py
@@ -770,20 +770,20 @@ def refs(soup):
surname = node_text(first(extract_nodes(n, "surname")))
given_names = node_text(first(ext... | change to format for citation authors to match EIF | py |
diff --git a/flask_socketio/__init__.py b/flask_socketio/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_socketio/__init__.py
+++ b/flask_socketio/__init__.py
@@ -408,7 +408,7 @@ class SocketIO(object):
if callback:
# wrap the callback so that it sets app app and request contexts
... | Fixing bug repoted in issue #<I>: (#<I>) - Added proper call to has_request_context function | py |
diff --git a/scapy/arch/windows/__init__.py b/scapy/arch/windows/__init__.py
index <HASH>..<HASH> 100755
--- a/scapy/arch/windows/__init__.py
+++ b/scapy/arch/windows/__init__.py
@@ -780,7 +780,7 @@ class NetworkInterfaceDict(UserDict):
# Init POWERSHELL_PROCESS
POWERSHELL_PROCESS = _PowershellManager()
-IFACES = N... | Windows: fix for 'IFACES' backward incompatibility with scapy <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ setup(
'numpy',
'scipy',
'decorator',
- 'psutil >= 0.4.1, < 2.2.0',
+ 'psutil >= 0.4.1, < 3.0.0',
],
author='GEM Foundation',
author_email='devops@openquak... | setup.py: psutil <I>.* works and is needed now | py |
diff --git a/openquake/server/settings.py b/openquake/server/settings.py
index <HASH>..<HASH> 100644
--- a/openquake/server/settings.py
+++ b/openquake/server/settings.py
@@ -131,7 +131,7 @@ FILE_UPLOAD_MAX_MEMORY_SIZE = 1
try:
from local_settings import *
except ImportError:
- raise ImportError
+ pass
... | Make it working if local_settings.py does not exist | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,6 +41,7 @@ setup(
keywords=['Serf', 'orchestration', 'service discovery'],
license='MIT',
packages=['serfclient'],
+ install_requires=['msgpack'],
tests_require=['pytest'],
cmdclass={'test': PyT... | Serf speaks msgpack, so add it as a dependency | py |
diff --git a/tests/test_pygdk3.py b/tests/test_pygdk3.py
index <HASH>..<HASH> 100644
--- a/tests/test_pygdk3.py
+++ b/tests/test_pygdk3.py
@@ -1,14 +1,18 @@
+from pyscreenshot.util import use_x_display
+
from ref import backend_to_check, check_import
ok = False
if check_import("gi"):
- import gi
- # Arch: At... | test: check gdk3 import | py |
diff --git a/nodeconductor/structure/filters.py b/nodeconductor/structure/filters.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/structure/filters.py
+++ b/nodeconductor/structure/filters.py
@@ -76,11 +76,14 @@ class GenericRoleFilter(BaseFilterBackend):
class CustomerRoleField(ChoiceField):
def to_python(s... | Fix customer permission filtering by role type ITACLOUD-<I> | py |
diff --git a/source/rafcon/gui/controllers/main_window.py b/source/rafcon/gui/controllers/main_window.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/controllers/main_window.py
+++ b/source/rafcon/gui/controllers/main_window.py
@@ -81,7 +81,6 @@ class MainWindowController(ExtendedController):
self.sta... | fix(main window): remove redundant execution engine observation | py |
diff --git a/spacy/munge/align_raw.py b/spacy/munge/align_raw.py
index <HASH>..<HASH> 100644
--- a/spacy/munge/align_raw.py
+++ b/spacy/munge/align_raw.py
@@ -183,13 +183,15 @@ def get_sections(odc_dir, ptb_dir, out_dir):
yield odc_loc, ptb_sec, out_loc
+def align_section(raw_paragraphs, ptb_files):
+ a... | * Edits to align_raw script, for use in prepare_treebank | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
# Dependencies for using the library:
dependencies = [
- 'pika==0.11.0',
+ 'pika==0.11.2',
'requests'
] | pinned pika to <I> | py |
diff --git a/requirements_detector/detect.py b/requirements_detector/detect.py
index <HASH>..<HASH> 100644
--- a/requirements_detector/detect.py
+++ b/requirements_detector/detect.py
@@ -5,10 +5,9 @@ from astroid import MANAGER, CallFunc, Name, Assign, Keyword, List, Tuple, Const
from requirements_detector.requirement... | Tidying up the __all__ in detect.py | py |
diff --git a/i3pystatus/updates/dnf.py b/i3pystatus/updates/dnf.py
index <HASH>..<HASH> 100644
--- a/i3pystatus/updates/dnf.py
+++ b/i3pystatus/updates/dnf.py
@@ -17,8 +17,10 @@ class Dnf(Backend):
def updates(self):
command = ["dnf", "check-update"]
dnf = run_through_shell(command)
- raw ... | Return early if the check threw an error. | py |
diff --git a/asl/utils/task_helper.py b/asl/utils/task_helper.py
index <HASH>..<HASH> 100755
--- a/asl/utils/task_helper.py
+++ b/asl/utils/task_helper.py
@@ -8,6 +8,8 @@ from asl.task.task_data import TaskData
_app = service_application
+TASK_PERFORM_METHOD = "perform"
+
def run_task(task_cls, task_data):
t... | One todo removed. For the tasks - the method perform is no longer a literal constant but a well-defined constant. | py |
diff --git a/gubernator/view_build.py b/gubernator/view_build.py
index <HASH>..<HASH> 100644
--- a/gubernator/view_build.py
+++ b/gubernator/view_build.py
@@ -60,7 +60,7 @@ def get_running_build_log(job, build):
try:
# keep this synced with TestKubernetes in prow/cmd/line/line.go
pod_name = ("%s-... | Use HTTPS for Prow to make the XHR requests work. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='clldutils',
- version='1.14.0',
+ version='2.0.0.dev0',
description='Utilities for clld apps',
long_description=open("README.rst").r... | bump major version for backwards incompatible changes | py |
diff --git a/salt/utils/sdb.py b/salt/utils/sdb.py
index <HASH>..<HASH> 100644
--- a/salt/utils/sdb.py
+++ b/salt/utils/sdb.py
@@ -28,6 +28,8 @@ def sdb_get(uri, opts):
return uri
profile = opts.get(uri[sdlen:indx], {})
+ if not profile:
+ profile = opts.get('pillar', {}).get(uri[sdlen:indx], ... | Try to get SDB profile from pillar (#<I>) * If sdb profile is not set in conf, try the pillar * Carefully get sdb pillar in case this is the salt-master * use current method of getting sdb profile name | py |
diff --git a/cli_ui/__init__.py b/cli_ui/__init__.py
index <HASH>..<HASH> 100644
--- a/cli_ui/__init__.py
+++ b/cli_ui/__init__.py
@@ -494,8 +494,8 @@ FuncDesc = Callable[[Any], str]
def ask_choice(
- *prompt: Token, choices: List[Any], func_desc: Optional[FuncDesc] = None
-) -> Any:
+ *prompt: Token, choice... | Optional sort on ask_choice | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.