diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pull_into_place/commands/cache_models.py b/pull_into_place/commands/cache_models.py
index <HASH>..<HASH> 100644
--- a/pull_into_place/commands/cache_models.py
+++ b/pull_into_place/commands/cache_models.py
@@ -6,7 +6,7 @@ After being cached, a handful of these metrics are printed to the terminal to
show t... | Allow multiple directories to be cached. | py |
diff --git a/zipline/utils/calendars/trading_schedule.py b/zipline/utils/calendars/trading_schedule.py
index <HASH>..<HASH> 100644
--- a/zipline/utils/calendars/trading_schedule.py
+++ b/zipline/utils/calendars/trading_schedule.py
@@ -280,6 +280,14 @@ class TradingSchedule(object):
"""
raise NotImplem... | WIP: Refactors tests to use TradingSchedule | py |
diff --git a/imagen/views.py b/imagen/views.py
index <HASH>..<HASH> 100644
--- a/imagen/views.py
+++ b/imagen/views.py
@@ -71,7 +71,7 @@ class SheetView(param.Parameterized, SheetCoordinateSystem):
@property
def roi(self):
- return Slice(self.roi_bounds, self).submatrix(self.data)
+ return She... | The roi property of SheetView now returns another SheetView | py |
diff --git a/scss/types.py b/scss/types.py
index <HASH>..<HASH> 100644
--- a/scss/types.py
+++ b/scss/types.py
@@ -39,12 +39,6 @@ class Value(object):
def __ge__(self, other):
return self._do_cmps(self, other, operator.__ge__)
- def __cmp__(self, other):
- return self._do_cmps(self, other, ope... | Remove __cmp__ and __rcmp__; former unnecessary, latter obsolete. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -64,7 +64,7 @@ install_requires = [
'pysha3>=0.3',
'cryptoconditions>=0.5.0',
'statsd>=3.2.1',
- 'python-rapidjson>=0.0.6',
+ 'python-rapidjson>=0.0.8',
'logstats>=0.2.1',
'flask>=0.10.1',
'... | Upgrade python-rapidjson to <I> (#<I>) | py |
diff --git a/wsdiscovery/discovery.py b/wsdiscovery/discovery.py
index <HASH>..<HASH> 100644
--- a/wsdiscovery/discovery.py
+++ b/wsdiscovery/discovery.py
@@ -130,6 +130,7 @@ class Discovery:
def stop(self):
self.clearRemoteServices()
+ super().stop()
class ThreadedWSDiscovery(Daemon, Discov... | Make sure ThreadedWSDiscovery.stop() also stops all threads Make sure ThreadedWSDiscovery.stop() also stops all threads by calling ThreadedNetworking.stop() | py |
diff --git a/hardware/opentrons_hardware/firmware_bindings/messages/fields.py b/hardware/opentrons_hardware/firmware_bindings/messages/fields.py
index <HASH>..<HASH> 100644
--- a/hardware/opentrons_hardware/firmware_bindings/messages/fields.py
+++ b/hardware/opentrons_hardware/firmware_bindings/messages/fields.py
@@ -1... | fix(hardware): serial number field needs from_string to be updated from can_comm (#<I>) | py |
diff --git a/src/SALib/analyze/sobol.py b/src/SALib/analyze/sobol.py
index <HASH>..<HASH> 100644
--- a/src/SALib/analyze/sobol.py
+++ b/src/SALib/analyze/sobol.py
@@ -136,8 +136,7 @@ def analyze(problem, Y, calc_second_order=True, num_resamples=100,
res = S.to_df()
for df in res:
print(... | Update doc for Sobol related methods | py |
diff --git a/charmhelpers/contrib/openstack/utils.py b/charmhelpers/contrib/openstack/utils.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/openstack/utils.py
+++ b/charmhelpers/contrib/openstack/utils.py
@@ -278,7 +278,7 @@ PACKAGE_CODENAMES = {
('14', 'rocky'),
('15', 'stein'),
('... | Adjust to new OpenStack Ussuri major version for horizon (#<I>) | py |
diff --git a/main.py b/main.py
index <HASH>..<HASH> 100644
--- a/main.py
+++ b/main.py
@@ -1,4 +1,4 @@
-import argparse
+import sys, argparse
from ping import Ping
class PyPing(object):
@@ -19,10 +19,13 @@ class PyPing(object):
and '.' for failure.
"""
p = Ping(self.destination, silent=Tr... | Pings until broken with CTRL+C | py |
diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py
index <HASH>..<HASH> 100644
--- a/ryu/ofproto/ofproto_v1_0_parser.py
+++ b/ryu/ofproto/ofproto_v1_0_parser.py
@@ -83,6 +83,12 @@ class OFPPhyPort(ofproto_parser.namedtuple('OFPPhyPort', (
'port_no', 'hw_addr', 'name', 'config'... | of<I>: fix json representation of OFPPhyPort.hw_addr and OFPPortMod.hw_addr | py |
diff --git a/tests/misc/recursive_iternext.py b/tests/misc/recursive_iternext.py
index <HASH>..<HASH> 100644
--- a/tests/misc/recursive_iternext.py
+++ b/tests/misc/recursive_iternext.py
@@ -5,7 +5,7 @@
try:
# large stack/heap, eg unix
[0] * 80000
- N = 2000
+ N = 2400
except:
try:
# med... | tests/recursive_iternext: Clang/Linux is even more stack-frugal than MacOS. | py |
diff --git a/salt/config/__init__.py b/salt/config/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/config/__init__.py
+++ b/salt/config/__init__.py
@@ -1579,7 +1579,7 @@ DEFAULT_PROXY_MINION_OPTS = {
'sign_pub_messages': True,
'add_proxymodule_to_opts': False,
'proxy_merge_grains_in_module': True,
- ... | Strip include from append_minionid_config_dirs, leave only default_include | py |
diff --git a/scrapekit/reporting/__init__.py b/scrapekit/reporting/__init__.py
index <HASH>..<HASH> 100644
--- a/scrapekit/reporting/__init__.py
+++ b/scrapekit/reporting/__init__.py
@@ -62,6 +62,17 @@ def aggregate_loglevels(sql, keys, **kwargs):
yield data
+def sort_aggregates(rows):
+ rows = list(row... | Sort the run list by number of messages. | py |
diff --git a/dvc/remote/s3.py b/dvc/remote/s3.py
index <HASH>..<HASH> 100644
--- a/dvc/remote/s3.py
+++ b/dvc/remote/s3.py
@@ -207,7 +207,7 @@ class RemoteS3(RemoteBASE):
)
def list_cache_paths(self):
- return [info.path for info in self.walk_files(self.path_info)]
+ return self._list_path... | s3: don't use walk_files for list_cache_paths No need to convert back and forth from string to PathInfo | py |
diff --git a/openquake/risklib/riskinput.py b/openquake/risklib/riskinput.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/riskinput.py
+++ b/openquake/risklib/riskinput.py
@@ -512,7 +512,9 @@ def make_eps(asset_array, num_samples, seed, correlation):
def cache_epsilons(dstore, oq, assetcol, riskmodel, E):
... | Improved docstring [skip CI] | py |
diff --git a/contrib/mergeBenchmarkSets.py b/contrib/mergeBenchmarkSets.py
index <HASH>..<HASH> 100755
--- a/contrib/mergeBenchmarkSets.py
+++ b/contrib/mergeBenchmarkSets.py
@@ -9,6 +9,7 @@
import sys
+from decimal import Decimal
import os
import io
from xml.etree import ElementTree
@@ -16,6 +17,7 @@ import bz... | Improved coverage computation in mergeBenchmarkSets.py Using Decimal instead of float makes the computation precise without floating-point errors. Furthermore, our print_decimal produces more consistent output (always decimal, never scientific). | py |
diff --git a/tests/fixtures.py b/tests/fixtures.py
index <HASH>..<HASH> 100644
--- a/tests/fixtures.py
+++ b/tests/fixtures.py
@@ -29,7 +29,7 @@ FULL_MODEL_PATH = r"assets/{}".format(TEST_MODEL_NAME)
IS_TRAVIS = 'TRAVIS' in os.environ
-if IS_TRAVIS:
+if IS_TRAVIS or APPVEYOR:
EI_USERNAME = os.environ['EI_USER... | tell appveyor to look for env variables | py |
diff --git a/c7n/resources/account.py b/c7n/resources/account.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/account.py
+++ b/c7n/resources/account.py
@@ -600,6 +600,7 @@ class RequestLimitIncrease(BaseAction):
'VPC': 'amazon-virtual-private-cloud',
'IAM': 'aws-identity-and-access-management',
... | aws - service-limit-increase add kinesis to service code mapping (#<I>) | py |
diff --git a/formulas.py b/formulas.py
index <HASH>..<HASH> 100644
--- a/formulas.py
+++ b/formulas.py
@@ -26,3 +26,5 @@ import tumulus.tags as t
def css(href):
return t.link(rel='stylesheet', type='text/css', href=href)
+def mobile():
+ return t.meta(name="viewport", content="width=device-width, user-scalab... | Added mobile viewport in formulas | py |
diff --git a/tff/tff.py b/tff/tff.py
index <HASH>..<HASH> 100644
--- a/tff/tff.py
+++ b/tff/tff.py
@@ -286,7 +286,7 @@ class DefaultParser(Parser):
context.dispatch_csi(pbytes, ibytes, c)
state = _STATE_GROUND
elif c > 0x2f:
- seq = [0x1b, 0x... | Fix for processing invalid caracters after intermediate bytes | py |
diff --git a/tests/ping/test_service.py b/tests/ping/test_service.py
index <HASH>..<HASH> 100644
--- a/tests/ping/test_service.py
+++ b/tests/ping/test_service.py
@@ -19,6 +19,7 @@
# <http://www.gnu.org/licenses/>.
#
########################################################################
+import asyncio
import uni... | ping: double-check that cancel propagates to send | py |
diff --git a/src/debianbts.py b/src/debianbts.py
index <HASH>..<HASH> 100644
--- a/src/debianbts.py
+++ b/src/debianbts.py
@@ -56,7 +56,7 @@ BTS_URL = 'https://bugs.debian.org/'
# Max number of bugs to send in a single get_status request
BATCH_SIZE = 500
-soap_client = SoapClient(location=URL, namespace=NS, soap_ns... | removed pysimplesoap trace | py |
diff --git a/hypergraph/hyperedge.py b/hypergraph/hyperedge.py
index <HASH>..<HASH> 100644
--- a/hypergraph/hyperedge.py
+++ b/hypergraph/hyperedge.py
@@ -1,7 +1,6 @@
from __future__ import absolute_import
from copy import deepcopy
-from .node import Node
class HyperEdge:
@@ -73,6 +72,18 @@ class HyperEdge:
... | Finalized python3 support | py |
diff --git a/examples/download_dashboards.py b/examples/download_dashboards.py
index <HASH>..<HASH> 100755
--- a/examples/download_dashboards.py
+++ b/examples/download_dashboards.py
@@ -75,7 +75,7 @@ if not os.path.exists(sysdig_dashboard_dir):
for db in res['dashboards']:
sdclient.save_dashboard_to_file(db, os.... | fix: Update dashboards to latest API (#<I>) | py |
diff --git a/lint.py b/lint.py
index <HASH>..<HASH> 100644
--- a/lint.py
+++ b/lint.py
@@ -497,6 +497,9 @@ This is used by the global evaluation report (RP0004).'}),
# build ast and check modules or packages
for descr in self.expand_files(files_or_modules):
modname, filepath = descr['name... | Call reporter.set_output before reporter.on_set_current_module in order to ease reporter work | py |
diff --git a/salt/cli/daemons.py b/salt/cli/daemons.py
index <HASH>..<HASH> 100644
--- a/salt/cli/daemons.py
+++ b/salt/cli/daemons.py
@@ -209,7 +209,7 @@ class Minion(parsers.MinionOptionParser):
'udp://',
... | Make log file group readable The log file can only read and written by root. Making the log file group readable allows users belonging to this group to read the salt log without becoming root first. | py |
diff --git a/gwpy/cli/cliproduct.py b/gwpy/cli/cliproduct.py
index <HASH>..<HASH> 100644
--- a/gwpy/cli/cliproduct.py
+++ b/gwpy/cli/cliproduct.py
@@ -32,6 +32,7 @@ import sys
from collections import OrderedDict
from functools import wraps
+from lal._lal import LIGOTimeGPS
from six import add_metaclass
from mat... | add relative epoch back into gwpy-plot | py |
diff --git a/dynaconf/utils/functional.py b/dynaconf/utils/functional.py
index <HASH>..<HASH> 100644
--- a/dynaconf/utils/functional.py
+++ b/dynaconf/utils/functional.py
@@ -319,10 +319,6 @@ class LazyObject(object):
__contains__ = new_method_proxy(operator.contains)
-# Workaround for http://bugs.python.org/i... | Remove this to see if it is still an issue | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,8 @@ if os.name == 'nt':
"""Ensures self.cmdclass is not a tuple."""
if type(self.cmdclass) is tuple:
self.cmdclass = list(self.cmdclass)
- return dist.Distribution.get_command_c... | Continuing work for Win <I>. | py |
diff --git a/Examples/py2and3.py b/Examples/py2and3.py
index <HASH>..<HASH> 100644
--- a/Examples/py2and3.py
+++ b/Examples/py2and3.py
@@ -29,8 +29,9 @@ pypreprocessor.parse()
#endexclude
#ifdef python2
print('You are using Python 2x')
+#else
#ifdef python3
print('You are using python 3x')
#else
print('Python ve... | Update py2and3.py Update concerning the version <I> and later: Now able to handle nested blocks but need #endif statements | py |
diff --git a/it/test_integration.py b/it/test_integration.py
index <HASH>..<HASH> 100644
--- a/it/test_integration.py
+++ b/it/test_integration.py
@@ -160,7 +160,7 @@ CREATE TEMPORARY VIEW view AS SELECT * FROM RANGE(100)
"""
-def test_sql():
+def test_sql_session_sync():
assert run_sync(livy_available())
... | Add tests for async SQL session | py |
diff --git a/fireplace/card.py b/fireplace/card.py
index <HASH>..<HASH> 100644
--- a/fireplace/card.py
+++ b/fireplace/card.py
@@ -465,10 +465,14 @@ class Minion(Character):
@property
def slots(self):
slots = super().slots[:]
- if self._enrage:
+ if self.enraged:
slots.append(self._enrage)
return slots
... | Implement Minion.enraged property | py |
diff --git a/flask_restful/__init__.py b/flask_restful/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_restful/__init__.py
+++ b/flask_restful/__init__.py
@@ -321,11 +321,12 @@ class Api(object):
# make_response uses a representation we support as the
# default mediatype (so that make_resp... | Improves readability and style as per dougblack's comments | py |
diff --git a/isort/isort.py b/isort/isort.py
index <HASH>..<HASH> 100644
--- a/isort/isort.py
+++ b/isort/isort.py
@@ -37,7 +37,7 @@ from collections import namedtuple
from datetime import datetime
from difflib import unified_diff
from sys import path as PYTHONPATH
-from sys import stderr, stdout
+from sys import st... | Remove unused import of stderr This has been removed in 6a1a<I>b<I>. | py |
diff --git a/dvc/stage.py b/dvc/stage.py
index <HASH>..<HASH> 100644
--- a/dvc/stage.py
+++ b/dvc/stage.py
@@ -8,6 +8,7 @@ from dvc.data_cloud import file_md5
from dvc.exceptions import DvcException
from dvc.executor import Executor
+
class OutputError(DvcException):
def __init__(self, path, msg):
su... | dvc repro: report status and command | py |
diff --git a/src/colab_gitlab/views.py b/src/colab_gitlab/views.py
index <HASH>..<HASH> 100644
--- a/src/colab_gitlab/views.py
+++ b/src/colab_gitlab/views.py
@@ -14,12 +14,14 @@ class GitlabProxyView(ColabProxyView):
('^/gitlab/users/sign_in(.*)$', r'{}\1'.format(settings.LOGIN_URL)),
)
- def verify... | Fixed gitlab request with ajax | py |
diff --git a/openid/consumer/consumer.py b/openid/consumer/consumer.py
index <HASH>..<HASH> 100644
--- a/openid/consumer/consumer.py
+++ b/openid/consumer/consumer.py
@@ -486,27 +486,6 @@ class OpenIDConsumer(object):
return response
- def _constructRedirect(self, assoc, auth_req, return_to, trust_root,... | [project @ Remove unused method (_constructRedirect)] | py |
diff --git a/pyscreeze/__init__.py b/pyscreeze/__init__.py
index <HASH>..<HASH> 100644
--- a/pyscreeze/__init__.py
+++ b/pyscreeze/__init__.py
@@ -62,10 +62,19 @@ def _load_cv2(img, grayscale=None):
if grayscale is None:
grayscale = GRAYSCALE_DEFAULT
if isinstance(img, str):
+ # The function i... | Raise exception when image files cannot be read If imread from the opencv library can't read a file for any reason, it returns None, but we're not checking that so you instead get a confusing AttributeError later on. Since there's no point in continuing without image data, this raises a clear exception. | py |
diff --git a/pycbc/psd/read.py b/pycbc/psd/read.py
index <HASH>..<HASH> 100644
--- a/pycbc/psd/read.py
+++ b/pycbc/psd/read.py
@@ -29,10 +29,8 @@ def from_txt(filename, length, delta_f, low_freq_cutoff):
kmin = int(low_freq_cutoff / delta_f)
psd = numpy.zeros(length, dtype=numpy.float64)
- for k in xrang... | Include Nyquist frequency bin in PSD read module | py |
diff --git a/tests/unit/states/ssh_auth_test.py b/tests/unit/states/ssh_auth_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/states/ssh_auth_test.py
+++ b/tests/unit/states/ssh_auth_test.py
@@ -83,8 +83,6 @@ class SshAuthTestCase(TestCase):
'comment': ''}
mock = MagicMock(side_effect=['U... | fix ssh_auth_test there were 4 side_effect return values, when it should only return 2 times - 2 of the 4 states.ssh_auth.absent calls are done with test=True test=True and should therefore not call modules.ssh.rm_auth_key | py |
diff --git a/winrm/protocol.py b/winrm/protocol.py
index <HASH>..<HASH> 100644
--- a/winrm/protocol.py
+++ b/winrm/protocol.py
@@ -417,7 +417,6 @@ class Protocol(object):
stdin_envelope['@xmlns:rsp'] = 'http://schemas.microsoft.com/wbem/wsman/1/windows/shell'
stdin_envelope['#text'] = base64.b64encode... | Remove todo since @jborean<I> is positive that there is no more error checking that is needed. | py |
diff --git a/mpdlcd/mpdwrapper.py b/mpdlcd/mpdwrapper.py
index <HASH>..<HASH> 100644
--- a/mpdlcd/mpdwrapper.py
+++ b/mpdlcd/mpdwrapper.py
@@ -101,13 +101,18 @@ class MPDClient(utils.AutoRetryCandidate):
@property
def state(self):
logger.debug(u'Fetching MPD state')
- return self.status['state... | Better logging of fetched MPD data. | py |
diff --git a/src/toil/provisioners/azure/azureProvisioner.py b/src/toil/provisioners/azure/azureProvisioner.py
index <HASH>..<HASH> 100644
--- a/src/toil/provisioners/azure/azureProvisioner.py
+++ b/src/toil/provisioners/azure/azureProvisioner.py
@@ -77,7 +77,7 @@ class AzureProvisioner(AnsibleDriver):
self._a... | Remove hacky fix in bioio.py | py |
diff --git a/src/pyrocore/util/xmlrpc.py b/src/pyrocore/util/xmlrpc.py
index <HASH>..<HASH> 100755
--- a/src/pyrocore/util/xmlrpc.py
+++ b/src/pyrocore/util/xmlrpc.py
@@ -203,11 +203,11 @@ class RTorrentProxy(object):
def __init__(self, url, mapping=None):
self.LOG = pymagic.get_class_logger(self)
- ... | expand env vars in scgi url | py |
diff --git a/safe/impact_functions/generic/classified_polygon_people/impact_function.py b/safe/impact_functions/generic/classified_polygon_people/impact_function.py
index <HASH>..<HASH> 100644
--- a/safe/impact_functions/generic/classified_polygon_people/impact_function.py
+++ b/safe/impact_functions/generic/classified... | added check for area geometry before any calculation | py |
diff --git a/green/__init__.py b/green/__init__.py
index <HASH>..<HASH> 100644
--- a/green/__init__.py
+++ b/green/__init__.py
@@ -1,2 +1,2 @@
from green.plugin import Green
-version = '0.4.1'
+version = '0.4.2' | Bumped version to <I> | py |
diff --git a/python_modules/dagster-graphql/dagster_graphql/implementation/events.py b/python_modules/dagster-graphql/dagster_graphql/implementation/events.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster-graphql/dagster_graphql/implementation/events.py
+++ b/python_modules/dagster-graphql/dagster_graphql/im... | [graphql] manual coerce ><I>bit int metadata Summary: to prevent error spam in dagit logs Test Plan: bk Reviewers: prha, sashank, owen Reviewed By: owen Differential Revision: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,6 @@ import io
import os
from setuptools import setup
-import puchikarui
######################################################################## | no need to import puchikarui in setup.py | py |
diff --git a/pyte/paragraph.py b/pyte/paragraph.py
index <HASH>..<HASH> 100644
--- a/pyte/paragraph.py
+++ b/pyte/paragraph.py
@@ -160,9 +160,9 @@ class Line(list):
def __init__(self, paragraph, width, indent=0.0):
super().__init__()
self.paragraph = paragraph
- self.width = width
+ ... | fix bug with rendering of first line in paragraph (indent_first) | py |
diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/settings.py
+++ b/openstack_dashboard/settings.py
@@ -46,7 +46,7 @@ WEBROOT = '/'
LOGIN_URL = None
LOGOUT_URL = None
LOGIN_REDIRECT_URL = None
-
+STATIC_ROOT = None
ROOT_URLCONF = '... | Allow STATIC_ROOT override STATIC_ROOT is a file system location. It does not need to be tied to WEBROOT. Change-Id: I<I>c5d8bd<I>cb5f<I>af<I>e<I>f<I>aa<I> Partial-Bug: #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -76,7 +76,7 @@ setup(
# project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/technical.html#install-requires-vs-requirements-fil... | Remove python-xlib python2 dependency Only depend on python3-xlib. This dependency seems to work fine for both python versions. | py |
diff --git a/src/rez/cli/memcache.py b/src/rez/cli/memcache.py
index <HASH>..<HASH> 100644
--- a/src/rez/cli/memcache.py
+++ b/src/rez/cli/memcache.py
@@ -21,7 +21,7 @@ def setup_parser(parser, completions=False):
help="interval (in seconds) used when polling (default: %(default)s)")
parser.add_argument(
... | -fixed issue where same family names could be iterated on >once -removed unnecessary variant iteration -added verbose output | py |
diff --git a/ella/core/templatetags/core.py b/ella/core/templatetags/core.py
index <HASH>..<HASH> 100644
--- a/ella/core/templatetags/core.py
+++ b/ella/core/templatetags/core.py
@@ -4,7 +4,7 @@ from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ObjectDoesNotExist, Improperly... | Support boxing for models tha t do not do so on their own. git-svn-id: <URL> | py |
diff --git a/dark/graphics.py b/dark/graphics.py
index <HASH>..<HASH> 100644
--- a/dark/graphics.py
+++ b/dark/graphics.py
@@ -16,7 +16,7 @@ from dark.intervals import ReadIntervals
from dark.features import ProteinFeatureAdder, NucleotideFeatureAdder
from dark import orfs
from dark.intervals import OffsetAdjuster
-... | changed way to check if HigherIsBetterScore is used. | py |
diff --git a/examples/camera-config-gui.py b/examples/camera-config-gui.py
index <HASH>..<HASH> 100755
--- a/examples/camera-config-gui.py
+++ b/examples/camera-config-gui.py
@@ -144,7 +144,7 @@ class TextWidget(QtWidgets.QLineEdit):
def new_value(self):
if sys.version_info[0] < 3:
- value = ... | unicode() was removed in Python 3 | py |
diff --git a/koala/Spreadsheet.py b/koala/Spreadsheet.py
index <HASH>..<HASH> 100644
--- a/koala/Spreadsheet.py
+++ b/koala/Spreadsheet.py
@@ -175,8 +175,13 @@ class Spreadsheet(object):
# undirected = networkx.Graph(G)
# print "Number of connected components %s", str(number_connected_components(undir... | Fix a bug in Spreadsheet which stopped gen_graph() from returning a spreadsheet object. | py |
diff --git a/fs/archive/zipfs/__init__.py b/fs/archive/zipfs/__init__.py
index <HASH>..<HASH> 100644
--- a/fs/archive/zipfs/__init__.py
+++ b/fs/archive/zipfs/__init__.py
@@ -17,7 +17,7 @@ from ...info import Info
from ...mode import Mode
from ...time import datetime_to_epoch
from ...path import forcedir, relpath, d... | Use `fs.path.isbase` in `ZipReadFS` to check for directories | py |
diff --git a/pyradigm/base.py b/pyradigm/base.py
index <HASH>..<HASH> 100644
--- a/pyradigm/base.py
+++ b/pyradigm/base.py
@@ -123,14 +123,14 @@ class BaseDataset(ABC):
"""
sample_ids = np.array(self.samplet_ids)
- label_dict = self.targets
matrix = np.full([self.num_samplets, self.n... | ensuring variable length target strings do not get truncated | py |
diff --git a/troposphere/codebuild.py b/troposphere/codebuild.py
index <HASH>..<HASH> 100644
--- a/troposphere/codebuild.py
+++ b/troposphere/codebuild.py
@@ -4,7 +4,7 @@
# See LICENSE file for full license.
from . import AWSObject, AWSProperty, Tags
-from .validators import integer
+from .validators import integer... | Add PrivilegedMode option to CodeBuild Environments (#<I>) | py |
diff --git a/saunter/testcase/webdriver.py b/saunter/testcase/webdriver.py
index <HASH>..<HASH> 100644
--- a/saunter/testcase/webdriver.py
+++ b/saunter/testcase/webdriver.py
@@ -43,7 +43,7 @@ from selenium.webdriver.remote.webelement import WebElement
from selenium.webdriver.common.desired_capabilities import Desired... | modifying the import of MarkInfo to allow for the dynamic nature of plugins | py |
diff --git a/chainerui/app.py b/chainerui/app.py
index <HASH>..<HASH> 100644
--- a/chainerui/app.py
+++ b/chainerui/app.py
@@ -19,7 +19,7 @@ from chainerui import upgrade_db
def server_handler(args):
"""server_handler."""
app = create_app()
- app.run(host=args.host, port=args.port, threaded=True)
+ app... | Add debug option into chainerui server command | py |
diff --git a/djstripe/sync.py b/djstripe/sync.py
index <HASH>..<HASH> 100644
--- a/djstripe/sync.py
+++ b/djstripe/sync.py
@@ -59,4 +59,7 @@ def sync_plans():
stripe.Plan.create(**kwargs)
print("Plan created for {0}".format(plan))
except Exception as e:
- pr... | re-added PY3 exception handling | py |
diff --git a/pyqode/core/editor.py b/pyqode/core/editor.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/editor.py
+++ b/pyqode/core/editor.py
@@ -1020,11 +1020,6 @@ class QCodeEdit(QtGui.QPlainTextEdit):
self.repaint()
QtGui.QApplication.processEvents()
- def focusOutEvent(self, event):
- ... | Performance: remove un-needed call to repaint on focus out (WTF?) | py |
diff --git a/tornado/testing.py b/tornado/testing.py
index <HASH>..<HASH> 100644
--- a/tornado/testing.py
+++ b/tornado/testing.py
@@ -198,6 +198,10 @@ class AsyncHTTPTestCase(AsyncTestCase):
return Application([('/', MyHandler)...])
def test_homepage(self):
+ # The follow... | Add a convenience method for synchronous fetches in AsyncHTTPTestCase | py |
diff --git a/tests/test_perf_tracking.py b/tests/test_perf_tracking.py
index <HASH>..<HASH> 100644
--- a/tests/test_perf_tracking.py
+++ b/tests/test_perf_tracking.py
@@ -1031,6 +1031,7 @@ class TestPerformanceTracker(unittest.TestCase):
return event
+ @trading.use_environment(trading.TradingEnvironment... | DEV: Allow test_minute_tracker to run by itself. TradingEnvironment was not set, so this test could not be run in isolation. | py |
diff --git a/sdnotify/__init__.py b/sdnotify/__init__.py
index <HASH>..<HASH> 100644
--- a/sdnotify/__init__.py
+++ b/sdnotify/__init__.py
@@ -1,16 +1,16 @@
import socket
import os
+import sys
# Byte conversion utility for compatibility between
# Python 2 and 3.
# http://python3porting.com/problems.html#nicer-so... | Rename binary conversion function to hide it from the package docs | py |
diff --git a/astroplan/scheduling.py b/astroplan/scheduling.py
index <HASH>..<HASH> 100644
--- a/astroplan/scheduling.py
+++ b/astroplan/scheduling.py
@@ -157,6 +157,15 @@ class Scorer(object):
# score_array[indices[x]] *= constraint_array[x]
return score_array
+ @classmethod
+ def fro... | added a classmethod that doesn't need a schedule | py |
diff --git a/salt/pillar/git_pillar.py b/salt/pillar/git_pillar.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/git_pillar.py
+++ b/salt/pillar/git_pillar.py
@@ -2,11 +2,13 @@
'''
Clone a remote git repository and use the filesystem as a pillar directory.
-This looks like:
+This external pillar source can be confi... | Add code-block formatting to git_pillar docstring Without it, the dash in the YAML data gets interpreted by sphinx as a bullet point, which could be confusing to thos wishing to use this external pillar. | py |
diff --git a/websockets/protocol.py b/websockets/protocol.py
index <HASH>..<HASH> 100644
--- a/websockets/protocol.py
+++ b/websockets/protocol.py
@@ -478,12 +478,12 @@ class WebSocketCommonProtocol(asyncio.StreamReaderProtocol):
if self.state == CLOSING:
# If we started the closing handshake, w... | Await close_connection_task in ensure_open. This fixes the following edge case: - this side starts the closing handshake - the connection hangs and the other end never completes the handshake - meanwhile, another coroutine attempts to send a message Before this change, that coroutine would receive a CloseConnection ... | py |
diff --git a/satpy/readers/abi_l1b.py b/satpy/readers/abi_l1b.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/abi_l1b.py
+++ b/satpy/readers/abi_l1b.py
@@ -70,6 +70,7 @@ class NC_ABI_L1B(BaseFileHandler):
"""
data = self.nc[item]
+ attrs = data.attrs
factor = data.attrs.get('scale... | Fix data conversion from int to float in abi_l1b reader | py |
diff --git a/tests/test_statemanager.py b/tests/test_statemanager.py
index <HASH>..<HASH> 100644
--- a/tests/test_statemanager.py
+++ b/tests/test_statemanager.py
@@ -517,11 +517,16 @@ class TestStateManager(unittest.TestCase):
draft = MyPost.__dict__['state'].DRAFT
wdraft = ManagedStateWrapper(draft,... | Improved ManagedStateWrapper tests (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@ tests_require = [
'flake8-quotes==0.8.1',
'hypothesis~=3.18.5',
'hypothesis-regex',
- 'pylint',
+ # Removed pylint because its GPL license isn't Apache2-compatible
'pytest>=3.0.0',
... | Problem: pylint's GPL license isn't Apache2-compatible (#<I>) Solution: Remove pylint from setup.py. It occurred nowhere else. | py |
diff --git a/openquake/hazardlib/calc/filters.py b/openquake/hazardlib/calc/filters.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/calc/filters.py
+++ b/openquake/hazardlib/calc/filters.py
@@ -340,7 +340,7 @@ class SourceFilter(object):
for sid, lon, lat in zip(sitecol.sids, sitecol.lons, sitecol... | Improved comment [skip CI] | py |
diff --git a/simuvex/s_exit.py b/simuvex/s_exit.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_exit.py
+++ b/simuvex/s_exit.py
@@ -64,8 +64,6 @@ class SimExit(object):
if state_is_raw:
if o.COW_STATES in self.raw_state.options:
self.state = self.raw_state.copy()
- elif o.SINGLE_EXIT not in self.raw_state.... | allow COW_WRITES to be off when SINGLE_EXIT is off -- let the users shoot themselves in the foot! | py |
diff --git a/impala/hiveserver2.py b/impala/hiveserver2.py
index <HASH>..<HASH> 100644
--- a/impala/hiveserver2.py
+++ b/impala/hiveserver2.py
@@ -315,12 +315,17 @@ class HiveServer2Cursor(Cursor):
def _wait_to_finish(self):
loop_start = time.time()
while True:
- operation_state = self... | Return detailed Error Messages from query failures (#<I>) Allow the usage of the errorMessage field from the GetOperationStatus command in an exception on impala <I>+ where IMPALA-<I> has been implemented. | py |
diff --git a/dataviews/ndmapping.py b/dataviews/ndmapping.py
index <HASH>..<HASH> 100644
--- a/dataviews/ndmapping.py
+++ b/dataviews/ndmapping.py
@@ -272,7 +272,7 @@ class NdIndexableMapping(param.Parameterized):
if dimension.name in self.dimension_labels:
raise Exception('{dim} dimension already... | Updated add_dimension on NdMapping to use dimension objects | py |
diff --git a/pcef/python/__init__.py b/pcef/python/__init__.py
index <HASH>..<HASH> 100644
--- a/pcef/python/__init__.py
+++ b/pcef/python/__init__.py
@@ -85,7 +85,7 @@ class QPythonCodeEdit(pcef.core.QCodeEdit):
self.codeCompletionMode.addCompletionProvider(
pcef.core.DocumentWordCompletionProvid... | Enable the filewatcher now that its bugs are fixed | py |
diff --git a/stanza/models/common/pretrain.py b/stanza/models/common/pretrain.py
index <HASH>..<HASH> 100644
--- a/stanza/models/common/pretrain.py
+++ b/stanza/models/common/pretrain.py
@@ -66,7 +66,7 @@ class Pretrain:
# should not infinite loop since the load function sets _vocab and _emb before trying to s... | Not sure why the pretrain is the only module substantially affected by the pickle version, but this saves a bunch of disk space | py |
diff --git a/cmd2.py b/cmd2.py
index <HASH>..<HASH> 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1195,8 +1195,9 @@ class Cmd(cmd.Cmd):
response = int(response)
result = fulloptions[response - 1][0]
break
- except ValueError:
- pass # loop and ask a... | Deal with select index out of range. This is a fix for issue #<I> | py |
diff --git a/uproot/rootio.py b/uproot/rootio.py
index <HASH>..<HASH> 100644
--- a/uproot/rootio.py
+++ b/uproot/rootio.py
@@ -971,7 +971,7 @@ class TObject(ROOTStreamedObject):
_skiptobj(source, cursor)
return self
-class TString(str, ROOTStreamedObject):
+class TString(bytes, ROOTStreamedObject):
... | Python 3 needs TString to be a descendant of bytes, not str | py |
diff --git a/lib/bx/align/lav.py b/lib/bx/align/lav.py
index <HASH>..<HASH> 100644
--- a/lib/bx/align/lav.py
+++ b/lib/bx/align/lav.py
@@ -1,7 +1,7 @@
-from align import *
+from bx.align import *
import itertools
-import interval_index_file
+from bx import interval_index_file
class Reader( object ):
"""Itera... | wasn't looking in correct path for support modules | py |
diff --git a/plugins/sphere/channels/sphere_channel.py b/plugins/sphere/channels/sphere_channel.py
index <HASH>..<HASH> 100644
--- a/plugins/sphere/channels/sphere_channel.py
+++ b/plugins/sphere/channels/sphere_channel.py
@@ -100,7 +100,7 @@ class SphereChannel(MemoryChannel):
self.data[stream.str... | Changed logging level in sphere channel | py |
diff --git a/bcbio/structural/purecn.py b/bcbio/structural/purecn.py
index <HASH>..<HASH> 100644
--- a/bcbio/structural/purecn.py
+++ b/bcbio/structural/purecn.py
@@ -135,7 +135,9 @@ def _run_purecn_dx(out, paired):
return out
def _get_purecn_dx_files(paired, out):
- """Retrieve files generated by PureCN_Dx"... | related to #<I> (#<I>) | py |
diff --git a/tests/test_callables.py b/tests/test_callables.py
index <HASH>..<HASH> 100644
--- a/tests/test_callables.py
+++ b/tests/test_callables.py
@@ -842,7 +842,7 @@ def test_while_nested(sysloader):
s = sysloader.new_system(ms)
s.f.status = 1
s.flush()
- time.sleep(0.5)
+ time.sleep(1.5)
... | Add more waiting time to test_while_nested | py |
diff --git a/pysatMagVect/_core.py b/pysatMagVect/_core.py
index <HASH>..<HASH> 100644
--- a/pysatMagVect/_core.py
+++ b/pysatMagVect/_core.py
@@ -1562,14 +1562,13 @@ def apex_distance_after_local_step(glats, glons, alts, dates,
else:
return apex_edge_length
+
def scalars_for_mapping_ion_drifts(glats, ... | STY: Shortened docstring | py |
diff --git a/salt/cloud/clouds/vmware.py b/salt/cloud/clouds/vmware.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/vmware.py
+++ b/salt/cloud/clouds/vmware.py
@@ -2299,6 +2299,33 @@ def list_dvs(kwargs=None, call=None):
return {'Distributed Virtual Switches': distributed_vswitches}
+def list_vapps(kwar... | Adding list_vapps() to be able to list all vApps in the environment | py |
diff --git a/tools/run_tests/jobset.py b/tools/run_tests/jobset.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/jobset.py
+++ b/tools/run_tests/jobset.py
@@ -192,7 +192,7 @@ class Job(object):
self._tempfile.seek(0)
stdout = self._tempfile.read()
message('FAILED', '%s [ret=%d]' % (
- ... | Unconditionally add a newline if a test times out or fails. Failure should generally result in output unless something goes wrong, but timeout currently doesn't, but should be printed <I>% of the time. | py |
diff --git a/djcelery/urls.py b/djcelery/urls.py
index <HASH>..<HASH> 100644
--- a/djcelery/urls.py
+++ b/djcelery/urls.py
@@ -21,4 +21,5 @@ urlpatterns = patterns("",
name="celery-is_task_successful"),
url(r'^(?P<task_id>[\w\d\-]+)/status/?$', views.task_status,
name="celery-task_status"),
+ ... | Adding tasks view to urls | py |
diff --git a/flashpolicy/tests.py b/flashpolicy/tests.py
index <HASH>..<HASH> 100644
--- a/flashpolicy/tests.py
+++ b/flashpolicy/tests.py
@@ -65,6 +65,7 @@ class PolicyGeneratorTestCase(TestCase):
"""
domains = ['media.example.com', 'api.example.com']
policy = policies.simple_policy(domains)... | Verify that the domains go in the right place. | py |
diff --git a/humanize/i18n.py b/humanize/i18n.py
index <HASH>..<HASH> 100644
--- a/humanize/i18n.py
+++ b/humanize/i18n.py
@@ -27,7 +27,7 @@ def activate(locale, path=None):
translation = gettext_module.translation('humanize', path, [locale])
_TRANSLATIONS[locale] = translation
_CURRENT.locale = ... | Fix for alternative 'if' branch | py |
diff --git a/_pytest/mark.py b/_pytest/mark.py
index <HASH>..<HASH> 100644
--- a/_pytest/mark.py
+++ b/_pytest/mark.py
@@ -229,7 +229,7 @@ def pytest_configure(config):
def pytest_unconfigure(config):
- MARK_GEN._config = config._old_mark_config
+ MARK_GEN._config = getattr(config, '_old_mark_config', None)
... | _pytest.mark: fix unconfigure after bad configure, still potential bug | py |
diff --git a/connectordb_test.py b/connectordb_test.py
index <HASH>..<HASH> 100755
--- a/connectordb_test.py
+++ b/connectordb_test.py
@@ -269,10 +269,10 @@ class TestConnectorDB(unittest.TestCase):
s.subscribe(subs.subscribe_callback)
s.subscribe(subs2.subscribe_callback, transform="if $ > 200")
... | Increased subscription wait time in tests Timing issues are annoying | py |
diff --git a/tests/test_posthocs.py b/tests/test_posthocs.py
index <HASH>..<HASH> 100644
--- a/tests/test_posthocs.py
+++ b/tests/test_posthocs.py
@@ -2,6 +2,10 @@ import os, sys
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import unittest
+import matplotlib as mpl
+if os.environ.... | attempt to fix travis "no display bug" | py |
diff --git a/gridmap/job.py b/gridmap/job.py
index <HASH>..<HASH> 100644
--- a/gridmap/job.py
+++ b/gridmap/job.py
@@ -363,7 +363,7 @@ class JobMonitor(object):
return_msg = self.jobs
# send back compressed response
- logging.debug('Sending reply: %s', return_msg)
+ ... | Fix logging instead of logger. | py |
diff --git a/skyfield/vectorlib.py b/skyfield/vectorlib.py
index <HASH>..<HASH> 100644
--- a/skyfield/vectorlib.py
+++ b/skyfield/vectorlib.py
@@ -85,7 +85,11 @@ class VectorFunction(object):
pass
def _observe_from_bcrs(self, observer):
- assert self.center == 0
+ if self.center != 0:
+ ... | Replace bare assert with exception and explanation | py |
diff --git a/python/ray/serve/controller.py b/python/ray/serve/controller.py
index <HASH>..<HASH> 100644
--- a/python/ray/serve/controller.py
+++ b/python/ray/serve/controller.py
@@ -938,9 +938,3 @@ class ServeController:
for replica in self.actor_reconciler.get_replica_handles():
ray.kill... | [Serve] Remove old report-queue-code (#<I>) | py |
diff --git a/openquake/hazardlib/geo/utils.py b/openquake/hazardlib/geo/utils.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/geo/utils.py
+++ b/openquake/hazardlib/geo/utils.py
@@ -87,6 +87,7 @@ class _GeographicObjects(object):
:param lon: longitude in degrees
:param lat: latitude in degree... | Updated docstring [skip CI] Former-commit-id: d<I>b0d<I>ffada7abe<I>e<I>ade<I>bcf<I>fda<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ license: GNU-GPL2
from setuptools import setup
setup(name='pyprofiler',
- version='45',
+ version='46',
description='Profiler utility for python, graphical and textual, whole program or segmen... | pip Thursday <I> May <I> (week:<I> day:<I>), <I>:<I>:<I> | py |
diff --git a/indra/benchmarks/assembly_eval/batch4/run_combined.py b/indra/benchmarks/assembly_eval/batch4/run_combined.py
index <HASH>..<HASH> 100644
--- a/indra/benchmarks/assembly_eval/batch4/run_combined.py
+++ b/indra/benchmarks/assembly_eval/batch4/run_combined.py
@@ -35,8 +35,6 @@ if __name__ == '__main__':
... | Remove uuid assignment due to fixed pickle file. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.