diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/publications/templatetags/publication_extras.py b/publications/templatetags/publication_extras.py
index <HASH>..<HASH> 100644
--- a/publications/templatetags/publication_extras.py
+++ b/publications/templatetags/publication_extras.py
@@ -19,6 +19,9 @@ GREEK_LETTERS = \
def get_publication(id):
pbl = Pub... | Fixed missing links and files in references through template tags. | py |
diff --git a/hgdistver.py b/hgdistver.py
index <HASH>..<HASH> 100644
--- a/hgdistver.py
+++ b/hgdistver.py
@@ -69,6 +69,7 @@ def version_from_hg15_parents(root, cachefile=None):
def version_from_hg_log_with_tags(root, cachefile=None):
+ #NOTE: this is only a fallback called from version_from_hg15_parents
i... | remove version_from_hg_log_with_tags from the global commands list, its just a fallback | py |
diff --git a/src/tea/logger/__init__.py b/src/tea/logger/__init__.py
index <HASH>..<HASH> 100644
--- a/src/tea/logger/__init__.py
+++ b/src/tea/logger/__init__.py
@@ -38,8 +38,4 @@ __author__ = 'Viktor Kerkez <alefnula@gmail.com>'
__date__ = '27 November 2009'
__copyright__ = 'Copyright (c) 2009 Viktor Kerkez... | Remove the doctests from logger | py |
diff --git a/test/full_test.py b/test/full_test.py
index <HASH>..<HASH> 100755
--- a/test/full_test.py
+++ b/test/full_test.py
@@ -66,8 +66,6 @@ def run_canonical_tests(mode, checker, protocol, cores, slices):
"sigint-timeout" : sigint_timeout },
repeat=3, timeout = 200 + sigint_... | Modifying pipeline test to do a hell of a lot more testing in release mode, now that it is (hopefully) fast | py |
diff --git a/sos/plugins/docker.py b/sos/plugins/docker.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/docker.py
+++ b/sos/plugins/docker.py
@@ -28,8 +28,6 @@ class Docker(Plugin):
]
def setup(self):
- self.set_cmd_predicate(SoSPredicate(services=["docker"]))
-
self.add_copy_spec([
... | [docker] fix command predicate usage Move the Docker service command predicate later in the file (so as not to gate journal and ls collection), and ensure that the 'owner' argument of the SoSPredicate initialiser is set. Resolves: #<I> | py |
diff --git a/lament/base.py b/lament/base.py
index <HASH>..<HASH> 100644
--- a/lament/base.py
+++ b/lament/base.py
@@ -45,21 +45,20 @@ class LamentConfig(object):
split_key = key.split()
if len(split_key) == 2:
key, sub = split_key
- if self._re_match(key, sub) ... | @bugfix type checking for regex_config handler. Before hand we were checking the type of the data sent to the handler, what we really want to do is ensure the type of the data returned by the handler. | py |
diff --git a/main.py b/main.py
index <HASH>..<HASH> 100755
--- a/main.py
+++ b/main.py
@@ -163,7 +163,7 @@ def start_build(state, repo, repo_cfgs, buildbot_slots, logger):
logger.info('Starting build of #{}: {}'.format(state.num, state.merge_sha))
- desc = 'Testing candidate {}...'.format(state.merg... | Include the SHA of the commit in the testing message Fixes #<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,9 +16,12 @@
#
+from codecs import getreader
from distutils.core import setup, Extension
-with open('README.rst') as f:
+utf8reader = getreader("utf-8")
+
+with utf8reader(open('README.rst', "rb")) as f:
long_d... | Fixed setup.py to work with python <I>, <I>, <I>, <I> | py |
diff --git a/ravel.py b/ravel.py
index <HASH>..<HASH> 100644
--- a/ravel.py
+++ b/ravel.py
@@ -462,10 +462,8 @@ def _message_sinterface_dispatch(connection, message, bus) :
while True :
component = next(levels, None)
iface = None # to begin with
- if component == None :
- ... | correct high-level fallback message dispatching | py |
diff --git a/alignak/daemons/receiverdaemon.py b/alignak/daemons/receiverdaemon.py
index <HASH>..<HASH> 100644
--- a/alignak/daemons/receiverdaemon.py
+++ b/alignak/daemons/receiverdaemon.py
@@ -345,7 +345,7 @@ class Receiver(Satellite):
is_active = sched['active']
if not is_active:
... | Fix potential error when scheduler stops before receiver | py |
diff --git a/tests/unit/modules/archive_test.py b/tests/unit/modules/archive_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/archive_test.py
+++ b/tests/unit/modules/archive_test.py
@@ -19,7 +19,7 @@ from salttesting.mock import (
MagicMock,
patch
)
-from salt.ext.six.moves import zip # pylint:... | Disable unused-import for py 3 compatibility | py |
diff --git a/pgmpy/inference/Sampling.py b/pgmpy/inference/Sampling.py
index <HASH>..<HASH> 100644
--- a/pgmpy/inference/Sampling.py
+++ b/pgmpy/inference/Sampling.py
@@ -66,7 +66,7 @@ class BayesianModelSampling(Inference):
cpd = self.cpds[node]
if cpd.evidence:
evidence = sa... | minor correction (still not the best solution. Can't understand why np.apply_along_axis is not working) | py |
diff --git a/progressive/__init__.py b/progressive/__init__.py
index <HASH>..<HASH> 100644
--- a/progressive/__init__.py
+++ b/progressive/__init__.py
@@ -1 +1 @@
-__version__ = "0.3.0"
+__version__ = "0.3.1" | Do a <I> bugfix release | py |
diff --git a/test/contrib/gcs_test.py b/test/contrib/gcs_test.py
index <HASH>..<HASH> 100644
--- a/test/contrib/gcs_test.py
+++ b/test/contrib/gcs_test.py
@@ -122,6 +122,7 @@ class GCSClientTest(_GCSBaseTestCase):
self.client.remove(bucket_url('test_remove'))
self.assertFalse(self.client.exists(bucket... | Disable intermittent gcs failures Inspired by the failures from <URL> | py |
diff --git a/DashTable/html2list.py b/DashTable/html2list.py
index <HASH>..<HASH> 100644
--- a/DashTable/html2list.py
+++ b/DashTable/html2list.py
@@ -19,9 +19,9 @@ def html2list(file):
""" main function """
# we can input a file but even a string!
if file.rsplit('.', 1)[-1] == "html":
- soup = Be... | Got rid of the BeautifulSoup deprecation warning which was displayed due to the missing parser argument | py |
diff --git a/cocaine/tools/helpers/completer.py b/cocaine/tools/helpers/completer.py
index <HASH>..<HASH> 100644
--- a/cocaine/tools/helpers/completer.py
+++ b/cocaine/tools/helpers/completer.py
@@ -26,6 +26,8 @@ if __name__ == '__main__':
from cocaine.services import Service
import os
+ ADEQ... | Timeout magic constant replaced by named variable | py |
diff --git a/tasklib/task.py b/tasklib/task.py
index <HASH>..<HASH> 100644
--- a/tasklib/task.py
+++ b/tasklib/task.py
@@ -753,6 +753,14 @@ class Task(TaskResource):
# of newly saved tasks. Any other place in the code is fine
# with using UUID only.
args = [self['uuid'] or self['id'], 'export... | Task: Bail out if more than one task has been matched on refresh | py |
diff --git a/addok/core.py b/addok/core.py
index <HASH>..<HASH> 100644
--- a/addok/core.py
+++ b/addok/core.py
@@ -350,6 +350,7 @@ class Search(BaseHelper):
if self.geohash_key:
keys.append(self.geohash_key)
self.debug('Adding geohash %s', self.geohash_key)
+ ... | Autocomplete with hash when only common tokens and geohash Use case: search for "place bel CENTER <I> <I>" was not returning "place Bellecour" in Lyon, while in the geohash. | py |
diff --git a/examples/plotting/file/geojson_points.py b/examples/plotting/file/geojson_points.py
index <HASH>..<HASH> 100644
--- a/examples/plotting/file/geojson_points.py
+++ b/examples/plotting/file/geojson_points.py
@@ -3,7 +3,7 @@ from bokeh.models import GeoJSONDataSource
from bokeh.plotting import figure
from b... | Change geo{->json}_points.html to make tests pass | py |
diff --git a/src/oidcendpoint/endpoint.py b/src/oidcendpoint/endpoint.py
index <HASH>..<HASH> 100755
--- a/src/oidcendpoint/endpoint.py
+++ b/src/oidcendpoint/endpoint.py
@@ -203,7 +203,7 @@ class Endpoint(object):
else:
_client_id = req.get("client_id")
- keyjar = getattr(self, "... | endpoint_context != keyjar | py |
diff --git a/bakery_cli/scripts/genmetadata.py b/bakery_cli/scripts/genmetadata.py
index <HASH>..<HASH> 100644
--- a/bakery_cli/scripts/genmetadata.py
+++ b/bakery_cli/scripts/genmetadata.py
@@ -189,7 +189,7 @@ def inferLicense(familydir):
if not directory.LICENSE:
return ""
- with io.open(directory.... | prepend the directory to get the full path of the LICENSE file, otherwise the script would only work when run from '.' directory. | py |
diff --git a/gnucash_portfolio/lib/__init__.py b/gnucash_portfolio/lib/__init__.py
index <HASH>..<HASH> 100644
--- a/gnucash_portfolio/lib/__init__.py
+++ b/gnucash_portfolio/lib/__init__.py
@@ -1,2 +1,2 @@
from . import Price, database
-from .settings import Settings
\ No newline at end of file
+#from .settings impor... | removing Settings from library provided interfaces | py |
diff --git a/pachyderm/plot.py b/pachyderm/plot.py
index <HASH>..<HASH> 100644
--- a/pachyderm/plot.py
+++ b/pachyderm/plot.py
@@ -150,9 +150,9 @@ def configure() -> None:
# NOTE: This is disabled because if you forget to set the marker, then nothing will show up,
# which is a very frustrating u... | Don't plot colors at the edges of patches Previously, there were small white bands, but they don't look very good to me | py |
diff --git a/voltron/plugins/view/memory.py b/voltron/plugins/view/memory.py
index <HASH>..<HASH> 100644
--- a/voltron/plugins/view/memory.py
+++ b/voltron/plugins/view/memory.py
@@ -100,10 +100,12 @@ class MemoryView(TerminalView):
if self.args.words:
if target['byte_order'] ==... | Added ability to specify number of bytes to display with args.words | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -10,6 +10,7 @@ from django.test.utils import get_runner
# Make deprecation warnings errors to ensure no usage of deprecated features.
warnings.simplefilter("error", DeprecationWarning)
+warnings.simplefilter("e... | error on PendingDeprecationWarning too | py |
diff --git a/AlphaTwirl/Concurrently/CommunicationChannel.py b/AlphaTwirl/Concurrently/CommunicationChannel.py
index <HASH>..<HASH> 100644
--- a/AlphaTwirl/Concurrently/CommunicationChannel.py
+++ b/AlphaTwirl/Concurrently/CommunicationChannel.py
@@ -121,7 +121,12 @@ class CommunicationChannel(object):
def begin(s... | instantiate Worker with named arguments | py |
diff --git a/master/buildbot/test/unit/test_process_builder.py b/master/buildbot/test/unit/test_process_builder.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_process_builder.py
+++ b/master/buildbot/test/unit/test_process_builder.py
@@ -54,7 +54,10 @@ class TestBuilderBuildCreation(unittest.TestCa... | Make the fake random.choice stable with respect to name | py |
diff --git a/chemview/viewer.py b/chemview/viewer.py
index <HASH>..<HASH> 100644
--- a/chemview/viewer.py
+++ b/chemview/viewer.py
@@ -104,7 +104,7 @@ class MolecularViewer(RepresentationViewer):
# Add the cylinders
- if 'bonds' in self.topology:
+ if 'bonds' in self.topology and self.topolog... | Small fix for when bond is undefined | py |
diff --git a/bulbs/__init__.py b/bulbs/__init__.py
index <HASH>..<HASH> 100644
--- a/bulbs/__init__.py
+++ b/bulbs/__init__.py
@@ -1 +1 @@
-__version__ = "0.5.17"
+__version__ = "0.6.0" | bumped version -- major release [ci skip] | py |
diff --git a/unidown/tools.py b/unidown/tools.py
index <HASH>..<HASH> 100644
--- a/unidown/tools.py
+++ b/unidown/tools.py
@@ -69,5 +69,5 @@ def print_plugin_list(plugins: Dict[str, pkg_resources.EntryPoint]):
)
except Exception:
print(
- f"{trigger} (err)"
+ ... | [general] Replace err with failed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ setup(name=PACKAGE_NAME,
keywords='scratch static-analysis',
license='Simplified BSD License',
long_description=README,
- packages=[PACKAGE_NAME],
+ packages=[PACKAGE_NAME, '{0}.pl... | Inform setup.py of hairball.plugins. | py |
diff --git a/sos/policies/redhat.py b/sos/policies/redhat.py
index <HASH>..<HASH> 100644
--- a/sos/policies/redhat.py
+++ b/sos/policies/redhat.py
@@ -364,6 +364,21 @@ support representative.
return os.getenv('SOSUPLOADUSER', None) or self.upload_user
return self._upload_user
+ def upload_arc... | [redhat] Automatically failover to dropbox when RHCP upload fails When an upload to the RHCP fails for some reason, now automatically failover to attempt an upload to the FTP dropbox. This failover has been intended for some time, as we already failover to the FTP location if we detect we're missing, for example, log... | py |
diff --git a/test/jacquard_test.py b/test/jacquard_test.py
index <HASH>..<HASH> 100644
--- a/test/jacquard_test.py
+++ b/test/jacquard_test.py
@@ -82,7 +82,7 @@ class JacquardTestCase(unittest.TestCase):
jacquard._move_tmp_contents_to_original(tmp_dir, output_dir.path)
actual_files = os.listdi... | EX-<I> (cgates): Adjusted test to prevent spurious errors | py |
diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -259,6 +259,7 @@ FAKE_STANDARD_ACCOUNT = AccountDict(
# Stripe Platform Account to which the STRIPE_SECRET_KEY belongs to
FAKE_PLATFORM_ACCOUNT = deepcopy(FAKE_STANDARD_ACCOUNT)
+FAKE_PL... | Updated fixture name, FAKE_PLATFORM_ACCOUNT, to more appropriate djstripe-platform | py |
diff --git a/rest_api/test_api.py b/rest_api/test_api.py
index <HASH>..<HASH> 100644
--- a/rest_api/test_api.py
+++ b/rest_api/test_api.py
@@ -2,7 +2,7 @@ import json
import requests
from indra.statements import *
-base_url = 'http://api.indra.bio:8000'
+base_url = 'http://localhost:8080'
def test_filter_by_ty... | Revert change to REST API URL in test | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -65,7 +65,6 @@ setup(
'fontbakery-build-fontmetadata.py',
'fontbakery-build-metadata.py',
'fontbakery-check-description.py',
- 'fontbakery-check-results.json',
... | remove .json file from install manifest | py |
diff --git a/tests/test_settings.py b/tests/test_settings.py
index <HASH>..<HASH> 100644
--- a/tests/test_settings.py
+++ b/tests/test_settings.py
@@ -1,5 +1,5 @@
"""
-Django settings for job_distribution_service project.
+Django settings.
For more information on this file, see
https://docs.djangoproject.com/en/1.... | Remove job_distribution_service mention. | py |
diff --git a/timepiece/views.py b/timepiece/views.py
index <HASH>..<HASH> 100644
--- a/timepiece/views.py
+++ b/timepiece/views.py
@@ -113,9 +113,11 @@ def view_entries(request):
user=request.user,
end_time__isnull=True,
)
- for entry in my_active_entries:
- active_hours = get_active_ho... | refs #<I> - Updated total count loop | py |
diff --git a/jaraco/modb/handlers.py b/jaraco/modb/handlers.py
index <HASH>..<HASH> 100644
--- a/jaraco/modb/handlers.py
+++ b/jaraco/modb/handlers.py
@@ -22,4 +22,4 @@ class SimpleReduceHandler(jsonpickle.handlers.BaseHandler):
def restore(self, obj):
unpickler = self._base
cls, args = map(unpic... | Fix reconstruction of OrderedDict and add tests for correctness. | py |
diff --git a/fbchat/models.py b/fbchat/models.py
index <HASH>..<HASH> 100644
--- a/fbchat/models.py
+++ b/fbchat/models.py
@@ -469,7 +469,7 @@ class EmojiSize(Enum):
class ThreadColor(Enum):
"""Used to specify a thread colors"""
- MESSENGER_BLUE = ''
+ MESSENGER_BLUE = '#0084ff'
VIKING = '#44bec7'
... | Resolve FBChatException Resolve the error `fbchat.models.FBchatException: Could not get ThreadColor from color: FF<I>FF` when threadcolor is set to default (MESSENGER_BLUE) | py |
diff --git a/dojo/linear/LogisticRegression.py b/dojo/linear/LogisticRegression.py
index <HASH>..<HASH> 100644
--- a/dojo/linear/LogisticRegression.py
+++ b/dojo/linear/LogisticRegression.py
@@ -39,7 +39,7 @@ class LogisticRegression(BaseModel):
self._coefs = []
self._activation_func = Sigmoid()
... | [Formatting] LogisticRegression nn style | py |
diff --git a/flow/__init__.py b/flow/__init__.py
index <HASH>..<HASH> 100644
--- a/flow/__init__.py
+++ b/flow/__init__.py
@@ -0,0 +1,6 @@
+from model import BaseModel
+from feature import Feature,JSONFeature,TextFeature,CompressedFeature
+from extractor import Node
+from bytestream import ByteStream
+from data import ... | Added imports of "public" classes to __init__.py | py |
diff --git a/recordlinkage/algorithms/string.py b/recordlinkage/algorithms/string.py
index <HASH>..<HASH> 100644
--- a/recordlinkage/algorithms/string.py
+++ b/recordlinkage/algorithms/string.py
@@ -147,3 +147,9 @@ def cosine_similarity(s1, s2, include_wb=True, ngram=(2, 2)):
return np.divide(ab, np.multiply(a... | Added empty functions for lcss and smithwaterman | py |
diff --git a/src/memote/experimental/config.py b/src/memote/experimental/config.py
index <HASH>..<HASH> 100644
--- a/src/memote/experimental/config.py
+++ b/src/memote/experimental/config.py
@@ -175,7 +175,7 @@ class ExperimentConfiguration(object):
if growth.medium is not None:
assert (
... | Merge carrascomj/memote with master upstream | py |
diff --git a/master/buildbot/status/status_push.py b/master/buildbot/status/status_push.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/status/status_push.py
+++ b/master/buildbot/status/status_push.py
@@ -340,7 +340,7 @@ class StatusPush(StatusReceiverMultiService):
d.addErrback(log.err, 'while pushing s... | Get results of build in StatusPush handler The 'buildFinished' event indicates to the StatusPush callback that the build is complete. Considering that all steps of the build have completed, it's useful to know whether they all completed successfully or otherwise. This is easy to accomplish because StatusPush::buildF... | py |
diff --git a/salt/modules/upstart.py b/salt/modules/upstart.py
index <HASH>..<HASH> 100644
--- a/salt/modules/upstart.py
+++ b/salt/modules/upstart.py
@@ -60,8 +60,14 @@ def __virtual__():
# Disable on these platforms, specific service modules exist:
if __grains__['os'] in ('Ubuntu', 'Linaro', 'elementary OS'... | Added detection for upstart on Debian/Raspbian distros Upstart is detected by calling 'initctl version' and checking for 'upstart' in the return string, as is done in /lib/lsb/init-functions | py |
diff --git a/src/sentry_plugins/bitbucket/client.py b/src/sentry_plugins/bitbucket/client.py
index <HASH>..<HASH> 100644
--- a/src/sentry_plugins/bitbucket/client.py
+++ b/src/sentry_plugins/bitbucket/client.py
@@ -36,7 +36,8 @@ class BitbucketClient(object):
resp = getattr(session, method.lower())(
... | hack for cohabitation of old issue apis and new | py |
diff --git a/mrq/dashboard/app.py b/mrq/dashboard/app.py
index <HASH>..<HASH> 100644
--- a/mrq/dashboard/app.py
+++ b/mrq/dashboard/app.py
@@ -8,6 +8,8 @@ import sys
from bson import ObjectId
from HTMLParser import HTMLParser
import json
+from gevent.pywsgi import WSGIServer
+from werkzeug.serving import run_with_re... | Use WSGI server even when developing | py |
diff --git a/lifelines/estimation.py b/lifelines/estimation.py
index <HASH>..<HASH> 100644
--- a/lifelines/estimation.py
+++ b/lifelines/estimation.py
@@ -6,9 +6,6 @@ import pandas as pd
from lifelines.plotting import plot_dataframes
from lifelines.utils import survival_table_from_events, basis, inv_normal_cdf, quadr... | Update estimation.py removing pdb | py |
diff --git a/optimizer.py b/optimizer.py
index <HASH>..<HASH> 100644
--- a/optimizer.py
+++ b/optimizer.py
@@ -1011,8 +1011,8 @@ class MemCell(object):
if o[0] != 'a':
result.add('a')
- if o[0][0] != '(' and not is_number(o[0]):
- result = result.union(single_re... | Fixes a bug for xor/cp/or/and A which marked A as needed: Those instructions don't require the A register. E.g. xor A => A <- 0 | py |
diff --git a/src/wormhole/server/cli.py b/src/wormhole/server/cli.py
index <HASH>..<HASH> 100644
--- a/src/wormhole/server/cli.py
+++ b/src/wormhole/server/cli.py
@@ -98,9 +98,13 @@ def start(cfg, signal_error, no_daemon, blur_usage, advertise_version,
"--signal-error", is_flag=True,
help="force all clients t... | server: make 'restart' accept --disallow-list too I should really move all the start/restart common arguments into a separate place, to make it easier to avoid this problem in the future. | py |
diff --git a/requests_ntlm/requests_ntlm.py b/requests_ntlm/requests_ntlm.py
index <HASH>..<HASH> 100644
--- a/requests_ntlm/requests_ntlm.py
+++ b/requests_ntlm/requests_ntlm.py
@@ -55,7 +55,7 @@ class HttpNtlmAuth(AuthBase):
# get the challenge
auth_header_value = response2.headers[auth_header_fie... | In Python3, filter() is an iterator. | py |
diff --git a/pysc2/env/sc2_env.py b/pysc2/env/sc2_env.py
index <HASH>..<HASH> 100644
--- a/pysc2/env/sc2_env.py
+++ b/pysc2/env/sc2_env.py
@@ -403,7 +403,7 @@ class SC2Env(environment.Base):
# Create the game. Set the first instance as the host.
create = sc_pb.RequestCreateGame(local_map=sc_pb.LocalMap(
- ... | Pass disable_fog in multiplayer. PiperOrigin-RevId: <I> | py |
diff --git a/spacy/tests/conftest.py b/spacy/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/spacy/tests/conftest.py
+++ b/spacy/tests/conftest.py
@@ -140,7 +140,7 @@ def it_tokenizer():
@pytest.fixture(scope="session")
def ja_tokenizer():
- pytest.importorskip("fugashi")
+ pytest.importorskip("sudachipy"... | Update pytest conf for sudachipy with Japanese (#<I>) | py |
diff --git a/treeherder/etl/text.py b/treeherder/etl/text.py
index <HASH>..<HASH> 100644
--- a/treeherder/etl/text.py
+++ b/treeherder/etl/text.py
@@ -1,19 +1,8 @@
# -*- coding: utf-8 -*-
import re
-import six
-
-if len(u"\U0010FFFF") != 1:
- raise Exception('Python has been compiled in UCS-2 mode which is not s... | Bug <I> - Remove Python 2 support from astral_filter The check for whether Python has been compiled in the wrong mode has also been removed, since Python 3 defaults to the correct mode unlike Python 2. | py |
diff --git a/src/feat/agents/alert/nagios.py b/src/feat/agents/alert/nagios.py
index <HASH>..<HASH> 100644
--- a/src/feat/agents/alert/nagios.py
+++ b/src/feat/agents/alert/nagios.py
@@ -70,9 +70,8 @@ class SendNSCA(base.Base):
code = 0
else:
code = CODES[alert.severity]
-... | Update SendNSCA task to send correct service description in the notification. | py |
diff --git a/pupa/importers/base.py b/pupa/importers/base.py
index <HASH>..<HASH> 100644
--- a/pupa/importers/base.py
+++ b/pupa/importers/base.py
@@ -293,6 +293,10 @@ class BaseImporter(object):
self.model_class))
self._create_rel... | Save new objects after related objects are created | py |
diff --git a/blockstore/tests/scenarios/name_preorder_register_update_cantforce.py b/blockstore/tests/scenarios/name_preorder_register_update_cantforce.py
index <HASH>..<HASH> 100644
--- a/blockstore/tests/scenarios/name_preorder_register_update_cantforce.py
+++ b/blockstore/tests/scenarios/name_preorder_register_updat... | Verify that only the name's owner can update it | py |
diff --git a/bigquery/google/cloud/bigquery/table.py b/bigquery/google/cloud/bigquery/table.py
index <HASH>..<HASH> 100644
--- a/bigquery/google/cloud/bigquery/table.py
+++ b/bigquery/google/cloud/bigquery/table.py
@@ -1166,7 +1166,8 @@ class RowIterator(HTTPIterator):
raise ValueError(_NO_PANDAS_ERROR)
... | Avoid pulling entire result set into memory when constructing dataframe. (#<I>) Closes #<I>. | py |
diff --git a/dvc/system.py b/dvc/system.py
index <HASH>..<HASH> 100644
--- a/dvc/system.py
+++ b/dvc/system.py
@@ -10,7 +10,11 @@ from dvc.exceptions import DvcException
logger = logging.getLogger(__name__)
-if platform.system() == "Windows" and sys.version_info < (3, 8):
+if (
+ platform.system() == "Windows"
... | Only import speedcopy on Win > 7 (#<I>) * system: Only import speedcopy for Windows > 7 Fixes #<I> * Allow for Win 8 | py |
diff --git a/doc/en/conf.py b/doc/en/conf.py
index <HASH>..<HASH> 100644
--- a/doc/en/conf.py
+++ b/doc/en/conf.py
@@ -17,7 +17,7 @@
#
# The full version, including alpha/beta/rc tags.
# The short X.Y version.
-version = release = "2.4.2"
+version = release = "2.3.2"
import sys, os | fix wrong document version on pytest.org (closes #<I>) | py |
diff --git a/salt/states/process.py b/salt/states/process.py
index <HASH>..<HASH> 100644
--- a/salt/states/process.py
+++ b/salt/states/process.py
@@ -14,7 +14,7 @@ Ensure a process matching a given pattern is absent.
def __virtual__():
- return 'process' if 'ps.pkill' in __salt__ else False
+ return 'ps.pki... | Not renaming, return a boolean in `__virtual__()`. | py |
diff --git a/searx/poolrequests.py b/searx/poolrequests.py
index <HASH>..<HASH> 100644
--- a/searx/poolrequests.py
+++ b/searx/poolrequests.py
@@ -122,8 +122,8 @@ def request(method, url, **kwargs):
# session end
session.close()
- #
- threadLocal.total_time += time_after_request - time_before_request
... | [fix] measure request duration only if total_time attribute is set - fixes autocompleter | py |
diff --git a/sqlite_framework/session/session.py b/sqlite_framework/session/session.py
index <HASH>..<HASH> 100644
--- a/sqlite_framework/session/session.py
+++ b/sqlite_framework/session/session.py
@@ -16,6 +16,9 @@ class SqliteSession:
self._init_connection()
def _init_connection(self):
+ if se... | Allow SqliteSession instance to be shared by protecting against multiple initializations | py |
diff --git a/crispy_forms/tests/urls.py b/crispy_forms/tests/urls.py
index <HASH>..<HASH> 100644
--- a/crispy_forms/tests/urls.py
+++ b/crispy_forms/tests/urls.py
@@ -1,4 +1,9 @@
-from django.conf.urls.defaults import *
+import django
+
+if django.get_version() >= '1.5':
+ from django.conf.urls import *
+else:
+ ... | Removing deprecation warning for Django <I> and upper | py |
diff --git a/juju/model.py b/juju/model.py
index <HASH>..<HASH> 100644
--- a/juju/model.py
+++ b/juju/model.py
@@ -1622,7 +1622,7 @@ class Model:
resources = await self._add_charmhub_resources(res.app_name,
identifier,
... | Use the charm url to query charmhub for a charm ... i.e. avoid using the application name as it can be customized | py |
diff --git a/imagemodal/imagemodal.py b/imagemodal/imagemodal.py
index <HASH>..<HASH> 100644
--- a/imagemodal/imagemodal.py
+++ b/imagemodal/imagemodal.py
@@ -5,7 +5,7 @@ import os
import pkg_resources
-from django.utils.translation import ugettext as _
+from django.utils.translation import ugettext_lazy as _
f... | Translate class members lazily Since these lines are actually evaluated at build/startup time, we need to defer the translation until runtime. Otherwise, later versions of Django throw a fit: > AppRegistryNotReady: The translation infrastructure cannot be > initialized before the apps registry is ready. Check that y... | py |
diff --git a/backtrader/indicators/macd.py b/backtrader/indicators/macd.py
index <HASH>..<HASH> 100644
--- a/backtrader/indicators/macd.py
+++ b/backtrader/indicators/macd.py
@@ -44,10 +44,10 @@ class MACD(Indicator):
self.lines.signal = self.p.matype(self.lines.macd, period=self.p.period_signal)
-class MA... | MACDHistorgram renamed to MACDHisto and changed histo plotting params | py |
diff --git a/blimpy/guppi.py b/blimpy/guppi.py
index <HASH>..<HASH> 100755
--- a/blimpy/guppi.py
+++ b/blimpy/guppi.py
@@ -160,7 +160,7 @@ class GuppiRaw(object):
def read_next_data_block_shape(self):
header, data_idx = self.read_header()
n_chan = int(header['OBSNCHAN'])
- n_pol = int(hea... | block shape npol 4 to 2 Former-commit-id: d0af<I>c<I>c1a9d<I>b4ff7b | py |
diff --git a/src/cobra/util/util.py b/src/cobra/util/util.py
index <HASH>..<HASH> 100644
--- a/src/cobra/util/util.py
+++ b/src/cobra/util/util.py
@@ -50,10 +50,11 @@ class AutoVivification(dict):
"""
try:
- return dict.__getitem__(self, item)
+ value = super().__getitem__(self... | refactor: update AutoVivification | py |
diff --git a/thefuck/shells.py b/thefuck/shells.py
index <HASH>..<HASH> 100644
--- a/thefuck/shells.py
+++ b/thefuck/shells.py
@@ -224,6 +224,7 @@ shells = defaultdict(lambda: Generic(), {
'tcsh': Tcsh()})
+@memoize
def _get_shell():
try:
shell = Process(os.getpid()).parent().name() | Decrease count of psutils calls | py |
diff --git a/djes/models.py b/djes/models.py
index <HASH>..<HASH> 100644
--- a/djes/models.py
+++ b/djes/models.py
@@ -46,6 +46,13 @@ class IndexableManager(models.Manager):
"""a custom manager class to handle integration of native django models and elasticsearch storage
"""
+ @property
+ def client(s... | Switching up the way the manager gets a connection | py |
diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/plot.py
+++ b/holoviews/plotting/plot.py
@@ -902,7 +902,7 @@ class LayoutPlot(CompositePlot):
displays the elements in a cartesian grid in scanline order.
"""
- aspect_weight = param.... | Set default aspect_weight value to zero for backwards compatibility | py |
diff --git a/python/ray/tune/logger.py b/python/ray/tune/logger.py
index <HASH>..<HASH> 100644
--- a/python/ray/tune/logger.py
+++ b/python/ray/tune/logger.py
@@ -97,7 +97,12 @@ class _JsonLogger(Logger):
def _init(self):
config_out = os.path.join(self.logdir, "params.json")
with open(config_out,... | Automatically indent tune logger params (#<I>) | py |
diff --git a/pyrogram/session/session.py b/pyrogram/session/session.py
index <HASH>..<HASH> 100644
--- a/pyrogram/session/session.py
+++ b/pyrogram/session/session.py
@@ -60,7 +60,7 @@ class Session:
)
INITIAL_SALT = 0x616e67656c696361
- NET_WORKERS = 4
+ NET_WORKERS = 2
WAIT_TIMEOUT = 10
MA... | Set NET_WORKERS to 2 | py |
diff --git a/mishmash/config.py b/mishmash/config.py
index <HASH>..<HASH> 100644
--- a/mishmash/config.py
+++ b/mishmash/config.py
@@ -20,10 +20,12 @@
import os
from os.path import expandvars
from collections import OrderedDict
-from configparser import ConfigParser, ExtendedInterpolation
+import configparser
C... | Added ConfigParser subclass and helpers. | py |
diff --git a/categories/__init__.py b/categories/__init__.py
index <HASH>..<HASH> 100644
--- a/categories/__init__.py
+++ b/categories/__init__.py
@@ -3,7 +3,7 @@ __version_info__ = {
'minor': 3,
'micro': 0,
'releaselevel': 'beta',
- 'serial': 5
+ 'serial': 6
} | Version bump to <I>b6 | py |
diff --git a/bitstring/__init__.py b/bitstring/__init__.py
index <HASH>..<HASH> 100644
--- a/bitstring/__init__.py
+++ b/bitstring/__init__.py
@@ -11,13 +11,13 @@ ConstBitStream -- An immutable container with streaming methods.
BitStream -- A mutable container with streaming methods.
ConstBitArray... | Adding two trailing spaces so that the \ characters in a docstring wouldn't be interpreted as line continutations. Grrrr. | py |
diff --git a/qutepart/__init__.py b/qutepart/__init__.py
index <HASH>..<HASH> 100644
--- a/qutepart/__init__.py
+++ b/qutepart/__init__.py
@@ -1012,18 +1012,21 @@ class Qutepart(QPlainTextEdit):
# Only incorrect
if self.indentUseTabs:
# Find big space groups
+ f... | bad-indent: better highlighting when tabs are used | py |
diff --git a/tests/test_jams.py b/tests/test_jams.py
index <HASH>..<HASH> 100644
--- a/tests/test_jams.py
+++ b/tests/test_jams.py
@@ -1123,3 +1123,11 @@ def test_numpy_serialize():
# Test to trigger issue #159 - serializing numpy dtypes
jobj = jams.JObject(key=np.float32(1.0))
jobj.dumps()
+
+
+def test... | added explicit #<I> test for annotation and observation data | py |
diff --git a/tabulator/parsers/xlsx.py b/tabulator/parsers/xlsx.py
index <HASH>..<HASH> 100644
--- a/tabulator/parsers/xlsx.py
+++ b/tabulator/parsers/xlsx.py
@@ -64,7 +64,7 @@ class XLSXParser(Parser):
# Get sheet
try:
if isinstance(self.__sheet_pointer, six.string_types):
- ... | Fixed get sheet by name code as per the openpyxl deprecation. | py |
diff --git a/mopidy_spotify/playback.py b/mopidy_spotify/playback.py
index <HASH>..<HASH> 100644
--- a/mopidy_spotify/playback.py
+++ b/mopidy_spotify/playback.py
@@ -8,6 +8,8 @@ from spotify import Link, SpotifyError
from mopidy import audio
from mopidy.backends import base
+from . import utils
+
logger = loggi... | Wait for track to load before playing it Fixes mopidy/mopidy#<I> | py |
diff --git a/openaps/reports/invoke.py b/openaps/reports/invoke.py
index <HASH>..<HASH> 100644
--- a/openaps/reports/invoke.py
+++ b/openaps/reports/invoke.py
@@ -40,6 +40,9 @@ def main (args, app):
output = task.method(args, app)
except Exception as e:
print(report.name, ' raised ', e, file=sys.... | also seal any pending git changes before blowing up | py |
diff --git a/tests/test_hooks.py b/tests/test_hooks.py
index <HASH>..<HASH> 100644
--- a/tests/test_hooks.py
+++ b/tests/test_hooks.py
@@ -969,4 +969,10 @@ class TestRequestViewerHook(object):
assert "['RequestViewerHook']" not in out
assert '/' not in out
+ def test_hook_form... | Add another test for the RequestViewerHook | py |
diff --git a/test/codec/ber/test_encoder.py b/test/codec/ber/test_encoder.py
index <HASH>..<HASH> 100644
--- a/test/codec/ber/test_encoder.py
+++ b/test/codec/ber/test_encoder.py
@@ -146,12 +146,12 @@ class RealEncoderTestCase(unittest.TestCase):
def testBin1(self):
assert encoder.encode(
uni... | fixes to REAL binary encoder test cases | py |
diff --git a/salt/__init__.py b/salt/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/__init__.py
+++ b/salt/__init__.py
@@ -19,7 +19,7 @@ try:
except ImportError as e:
if e.args[0] != 'No module named _msgpack':
raise
-
+from salt.exceptions import SaltSystemExit
logger = logging.getLogger(__name__... | Add a useful error message when the salt minion must exit because the IPC URI is too long. Using isinstance() is a bit messay, but I didn't want to step on the toes of handling the KeyboardInterrupt. | py |
diff --git a/labm8/py/progress.py b/labm8/py/progress.py
index <HASH>..<HASH> 100644
--- a/labm8/py/progress.py
+++ b/labm8/py/progress.py
@@ -50,6 +50,7 @@ def Run(progress: Progress, refresh_time: float = 0.2) -> Progress:
progress.ctx.Refresh()
progress.join(refresh_time)
progress.ctx.Refresh()
+ progr... | Explicitly close progress bar on end. | py |
diff --git a/saltapi/netapi/rest_cherrypy/app.py b/saltapi/netapi/rest_cherrypy/app.py
index <HASH>..<HASH> 100644
--- a/saltapi/netapi/rest_cherrypy/app.py
+++ b/saltapi/netapi/rest_cherrypy/app.py
@@ -911,7 +911,6 @@ class Login(LowDataAdapter):
:status 401: authentication required
:status 406: requ... | Don't return a <I> for GET requests to the login page It doesn't tell us anything useful so don't do it. Since hypermedia negotiation isn't yet complete, I'm not counting this as a backward incompatible change. | py |
diff --git a/ezibpy/ezibpy.py b/ezibpy/ezibpy.py
index <HASH>..<HASH> 100644
--- a/ezibpy/ezibpy.py
+++ b/ezibpy/ezibpy.py
@@ -247,8 +247,8 @@ class ezIBpy():
self.commission = msg.commissionReport.m_commission
elif msg.typeName == dataTypes["MSG_CONTRACT_DETAILS"]:
- details = vars(m... | switch from vars() to .__dict__ | py |
diff --git a/python/phonenumbers/__init__.py b/python/phonenumbers/__init__.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/__init__.py
+++ b/python/phonenumbers/__init__.py
@@ -134,7 +134,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency
# Version number is taken from the ... | Prep for <I> release | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -72,7 +72,7 @@ setup(
'publish': PublishCommand
},
classifiers=[
- 'Development Status :: 5 - Production/Stable',
+ 'Development Status :: 4 - Beta',
'Environment :: Plugins',
... | update development status in setup.py | py |
diff --git a/morp/jslcrud/view.py b/morp/jslcrud/view.py
index <HASH>..<HASH> 100644
--- a/morp/jslcrud/view.py
+++ b/morp/jslcrud/view.py
@@ -78,7 +78,7 @@ def search(context, request):
params['offset'] = offset + (limit or 0)
qs = urlencode(params)
res = {'results': results, 'q': query}
- if limit a... | next should appear if list more than limit, not less | py |
diff --git a/acceptancetests/utility.py b/acceptancetests/utility.py
index <HASH>..<HASH> 100644
--- a/acceptancetests/utility.py
+++ b/acceptancetests/utility.py
@@ -294,9 +294,15 @@ def add_basic_testing_arguments(
help='Keep the Juju environment after the test'
' com... | Improve --existing arg to default to current. | py |
diff --git a/anytemplate/api.py b/anytemplate/api.py
index <HASH>..<HASH> 100644
--- a/anytemplate/api.py
+++ b/anytemplate/api.py
@@ -6,6 +6,7 @@
"""
from __future__ import absolute_import
+import logging
import os.path
import anytemplate.compat
@@ -14,11 +15,13 @@ import anytemplate.globals
import anytemplat... | refactor: initialize logger locally instead of use of global logger in .api | py |
diff --git a/user_messages/views.py b/user_messages/views.py
index <HASH>..<HASH> 100644
--- a/user_messages/views.py
+++ b/user_messages/views.py
@@ -42,6 +42,8 @@ def message_create(request, user_id=None,
template_name='user_messages/message_create.html'):
if user_id is not None:
user_id = int(user... | Handle the way girlgamer likes to send user ids to the compose page | py |
diff --git a/dallinger/experiment_server/sockets.py b/dallinger/experiment_server/sockets.py
index <HASH>..<HASH> 100644
--- a/dallinger/experiment_server/sockets.py
+++ b/dallinger/experiment_server/sockets.py
@@ -63,7 +63,7 @@ class ChatBackend(object):
Automatically discards invalid connections.
""... | Fix double encoding of message in ChatBackend.send The ChatBackend.send method is given a UTF-8 encoded string, not a unicode string. Decode to utf-8 so the socket implementation can correctly encode this for transmission to the user. | py |
diff --git a/circlator/tasks/all.py b/circlator/tasks/all.py
index <HASH>..<HASH> 100644
--- a/circlator/tasks/all.py
+++ b/circlator/tasks/all.py
@@ -248,5 +248,13 @@ def run():
)
fixer.run()
+ #-------------------------------- summary -------------------------------
+ print_message('{:_^79}'.format(... | Write a summary of contig numbers etc | py |
diff --git a/codenerix_extensions/views.py b/codenerix_extensions/views.py
index <HASH>..<HASH> 100644
--- a/codenerix_extensions/views.py
+++ b/codenerix_extensions/views.py
@@ -63,6 +63,10 @@ class GenCreateBridge(GenModify, GenBase, CreateView):
return result
except CodenerixExc... | Controlling exception for refresh_permissions | py |
diff --git a/javasphinx/domain.py b/javasphinx/domain.py
index <HASH>..<HASH> 100644
--- a/javasphinx/domain.py
+++ b/javasphinx/domain.py
@@ -194,7 +194,7 @@ class JavaMethod(JavaObject):
typerolename='type', typenames=('type',)),
Field('returnvalue', label=l_('Returns'), has_arg=False,
... | Create links for classes given in @throws declarations | py |
diff --git a/pythonforandroid/recipes/openssl/__init__.py b/pythonforandroid/recipes/openssl/__init__.py
index <HASH>..<HASH> 100644
--- a/pythonforandroid/recipes/openssl/__init__.py
+++ b/pythonforandroid/recipes/openssl/__init__.py
@@ -5,7 +5,7 @@ import sh
class OpenSSLRecipe(Recipe):
- version = '1.0.2d'
+... | Update OpenSSL to <I>e | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.