diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/ltdconveyor/keeper/__init__.py b/ltdconveyor/keeper/__init__.py
index <HASH>..<HASH> 100644
--- a/ltdconveyor/keeper/__init__.py
+++ b/ltdconveyor/keeper/__init__.py
@@ -0,0 +1,3 @@
+from .build import *
+from .exceptions import *
+from .login import * | Add Keeper APIs to API ref And organize those APIs into the ltdconveyor.keeper namespace. | py |
diff --git a/ipython_widgets/__init__.py b/ipython_widgets/__init__.py
index <HASH>..<HASH> 100644
--- a/ipython_widgets/__init__.py
+++ b/ipython_widgets/__init__.py
@@ -3,5 +3,5 @@ from .widgets import *
# Register a comm target for Javascript initialized widgets..
from IPython import get_ipython
ip = get_ipython(... | Make it possible to import ipython_widgets without having a kernel or comm manager | py |
diff --git a/pycam02ucs/cm/viscm.py b/pycam02ucs/cm/viscm.py
index <HASH>..<HASH> 100644
--- a/pycam02ucs/cm/viscm.py
+++ b/pycam02ucs/cm/viscm.py
@@ -51,12 +51,7 @@ def _JMh_to_sRGB(JMh):
def _show_cmap(ax, rgb):
- ax.imshow(rgb[np.newaxis, ...],
- # (left, right, bottom, top)
- # lef... | Let the gridspec determine the size of the sample colormaps in viscm, instead of forcing the aspect ratio | py |
diff --git a/hearthstone/cardxml.py b/hearthstone/cardxml.py
index <HASH>..<HASH> 100644
--- a/hearthstone/cardxml.py
+++ b/hearthstone/cardxml.py
@@ -232,7 +232,11 @@ class CardXML(object):
return self.tags.get(GameTag.HEALTH, 0)
-def load(path, locale="enUS"):
+def load(path=None, locale="enUS"):
+ if path is ... | cardxml: Use the builtin CardDefs.xml by default in load() | py |
diff --git a/fluent_contents/plugins/oembeditem/backend.py b/fluent_contents/plugins/oembeditem/backend.py
index <HASH>..<HASH> 100644
--- a/fluent_contents/plugins/oembeditem/backend.py
+++ b/fluent_contents/plugins/oembeditem/backend.py
@@ -1,9 +1,22 @@
+"""
+Backend for fetching OEmbed data.
+
+This module can also ... | Mark methods in fluent_contents.plugins.oembeditem.backend as public | py |
diff --git a/atomic_reactor/download.py b/atomic_reactor/download.py
index <HASH>..<HASH> 100644
--- a/atomic_reactor/download.py
+++ b/atomic_reactor/download.py
@@ -24,7 +24,7 @@ from atomic_reactor.constants import (
logger = logging.getLogger(__name__)
-def download_url(url, dest_dir, insecure=False, session=N... | Allow explicit filename in download_url | py |
diff --git a/src/wiotp/sdk/api/dsc/connectors.py b/src/wiotp/sdk/api/dsc/connectors.py
index <HASH>..<HASH> 100644
--- a/src/wiotp/sdk/api/dsc/connectors.py
+++ b/src/wiotp/sdk/api/dsc/connectors.py
@@ -184,7 +184,7 @@ class Connectors(defaultdict):
return IterableConnectorList(self._apiClient, filters=query... | [patch] added type into create connector | py |
diff --git a/sentry_hipchat/cards.py b/sentry_hipchat/cards.py
index <HASH>..<HASH> 100644
--- a/sentry_hipchat/cards.py
+++ b/sentry_hipchat/cards.py
@@ -28,7 +28,7 @@ def make_event_notification(group, event, tenant, new=True, event_target=False):
color = COLORS.get(level, 'purple')
- title = '%sSentry %s... | Bring "Event" back into title | py |
diff --git a/salt/cloud/clouds/ec2.py b/salt/cloud/clouds/ec2.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/ec2.py
+++ b/salt/cloud/clouds/ec2.py
@@ -1443,7 +1443,7 @@ def request_instance(vm_=None, call=None):
'Error getting root device name for image id {0} for '
'VM {1}: \n... | Use `exc_info_on_loglevel` instead of `exc_info` | py |
diff --git a/tilequeue/tile.py b/tilequeue/tile.py
index <HASH>..<HASH> 100644
--- a/tilequeue/tile.py
+++ b/tilequeue/tile.py
@@ -1,4 +1,5 @@
from ModestMaps.Core import Coordinate
+from math import pow
class CoordMessage(object):
@@ -45,3 +46,10 @@ def explode_with_parents(coords):
break
... | Add function to determine number of tiles in zoom | py |
diff --git a/tests/integration/output/test_output.py b/tests/integration/output/test_output.py
index <HASH>..<HASH> 100644
--- a/tests/integration/output/test_output.py
+++ b/tests/integration/output/test_output.py
@@ -53,7 +53,7 @@ class OutputReturnTest(ShellCase):
'''
Tests the return of pprint-for... | Update tests to reflect unicode minion IDs in outputters | py |
diff --git a/python_modules/libraries/dagster-celery/dagster_celery_tests/test_execute_k8s.py b/python_modules/libraries/dagster-celery/dagster_celery_tests/test_execute_k8s.py
index <HASH>..<HASH> 100644
--- a/python_modules/libraries/dagster-celery/dagster_celery_tests/test_execute_k8s.py
+++ b/python_modules/librari... | Disable celery-k8s tests on py2 Summary: This test is quite slow on py2 and frequently times out, so disabling Test Plan: buildkite Reviewers: max, sashank, yuhan Reviewed By: max Differential Revision: <URL> | py |
diff --git a/uncompyle6/semantics/transform.py b/uncompyle6/semantics/transform.py
index <HASH>..<HASH> 100644
--- a/uncompyle6/semantics/transform.py
+++ b/uncompyle6/semantics/transform.py
@@ -113,7 +113,7 @@ class TreeTransform(GenericASTTraversal, object):
testexpr = node[0]
- if testexpr != "te... | adjust "assert" transformation due to grammar ... simplification | py |
diff --git a/scripts/mac/prey-trigger.py b/scripts/mac/prey-trigger.py
index <HASH>..<HASH> 100755
--- a/scripts/mac/prey-trigger.py
+++ b/scripts/mac/prey-trigger.py
@@ -8,10 +8,8 @@
#######################################################
# import signal
-# import os
import sys
import shlex
-# import logging
fr... | Removed logging stuff from Mac prey-trigger.py | py |
diff --git a/tests/test_20_main.py b/tests/test_20_main.py
index <HASH>..<HASH> 100644
--- a/tests/test_20_main.py
+++ b/tests/test_20_main.py
@@ -1,6 +1,5 @@
import click.testing
-import pytest
from cfgrib import __main__ | Fix docs and CLI tests. | py |
diff --git a/t77_date/constants.py b/t77_date/constants.py
index <HASH>..<HASH> 100644
--- a/t77_date/constants.py
+++ b/t77_date/constants.py
@@ -18,13 +18,9 @@ MICROSECONDS_IN_DAY = MICROSECONDS_IN_SECOND * SECONDS_IN_DAY
INTERVAL_REGEX_STR = r'''
^
- ((?P<days>\d+)\ days?,\ )? # Optional xx days,
- (?P... | limit seconds and minutes in regex to 0-<I> | 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
@@ -905,6 +905,9 @@ class OFPPacketIn(MsgBase):
ofproto_v1_0.OFP_PACKET_IN_PACK_STR,
msg.buf, ofpro... | ofproto/ofproto_v1_0_parser: PacketIn parser frame data can contain padding of ofp packet. Discard padding. Otherwise packet parser can get confused which can rely on frame length. This is a preparation for LLDP TLV parser. | py |
diff --git a/pyqode/core/widgets/filesystem_treeview.py b/pyqode/core/widgets/filesystem_treeview.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/widgets/filesystem_treeview.py
+++ b/pyqode/core/widgets/filesystem_treeview.py
@@ -100,6 +100,10 @@ class FileSystemTreeView(QtWidgets.QTreeView):
self.setSelectio... | FSTreeView: add ability to set a custom file icon provider | py |
diff --git a/riak/transports/http/transport.py b/riak/transports/http/transport.py
index <HASH>..<HASH> 100644
--- a/riak/transports/http/transport.py
+++ b/riak/transports/http/transport.py
@@ -211,7 +211,7 @@ class RiakHttpTransport(RiakHttpConnection, RiakHttpResources, RiakTransport):
response = self._requ... | Remove some more 'is' in favor of '=='. | py |
diff --git a/pytmx/pytmx.py b/pytmx/pytmx.py
index <HASH>..<HASH> 100644
--- a/pytmx/pytmx.py
+++ b/pytmx/pytmx.py
@@ -314,7 +314,6 @@ class TiledMap(TiledElement):
for o in self.getObjects():
p = self.getTilePropertiesByGID(o.gid)
if p:
- o.name = "TileObject"
... | fix TileObject.name being overwritten if it's tile gid has properties. | py |
diff --git a/f5sdk_plugins/fixtures.py b/f5sdk_plugins/fixtures.py
index <HASH>..<HASH> 100644
--- a/f5sdk_plugins/fixtures.py
+++ b/f5sdk_plugins/fixtures.py
@@ -78,13 +78,6 @@ def opt_peer(request):
return request.config.getoption("--peer")
-@pytest.fixture
-def bigip(opt_bigip, opt_username, opt_password, o... | use ssot for device fixture | py |
diff --git a/tests/test_odcs_util.py b/tests/test_odcs_util.py
index <HASH>..<HASH> 100644
--- a/tests/test_odcs_util.py
+++ b/tests/test_odcs_util.py
@@ -9,10 +9,12 @@ of the BSD license. See the LICENSE file for details.
from atomic_reactor.odcs_util import ODCSClient
from tests.retry_mock import mock_get_retry_ses... | Speed up test cases for odcs_util This saves about <I>s per environment. | py |
diff --git a/src/python/dxpy/utils/printing.py b/src/python/dxpy/utils/printing.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/utils/printing.py
+++ b/src/python/dxpy/utils/printing.py
@@ -22,10 +22,7 @@ import textwrap, subprocess, sys
if sys.stdout.isatty():
try:
- p = subprocess.Popen(['stty', '... | Please use high-level subprocess functions if possible On several systems, configuring the pipes manually like this made stty print error messages every time dx runs. | py |
diff --git a/bcbio/distributed/messaging.py b/bcbio/distributed/messaging.py
index <HASH>..<HASH> 100644
--- a/bcbio/distributed/messaging.py
+++ b/bcbio/distributed/messaging.py
@@ -90,7 +90,8 @@ def cores_including_resources(cores, metadata, config):
required_memory = memory
if required_memory >... | Use original number of cores when checking resources if it is less than calculated cores | 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
@@ -617,22 +617,3 @@ def _git_update_requirements(package_dir, reqs_dir):
package = os.path.base... | Support quantum-gateway legacy HA. | py |
diff --git a/pypump/pypump.py b/pypump/pypump.py
index <HASH>..<HASH> 100644
--- a/pypump/pypump.py
+++ b/pypump/pypump.py
@@ -243,7 +243,7 @@ class PyPump(object):
print response
print response.content
- if response.status_code in [400]:
+ if response.status_c... | Fixes some things and WebPump fixes | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,7 @@ setup(
author="Christo Butcher",
author_email="",
url="https://github.com/t4ngo/sphinxcontrib.traceables",
+ license="Apache 2.0",
long_description=read("README.rst"),
... | Set license as explicit argument to setup() If the license is only specified as a trove classifier, then PyPI seems not to find it, resulting in a blank license field. | py |
diff --git a/pydle/__init__.py b/pydle/__init__.py
index <HASH>..<HASH> 100644
--- a/pydle/__init__.py
+++ b/pydle/__init__.py
@@ -1,5 +1,6 @@
-from . import connection, protocol, client, features
+from . import async, connection, protocol, client, features
+from .async import EventLoop, Future, blocking
from .conne... | Import stuff from pydle.async into toplevel. | py |
diff --git a/src/python/pants/engine/isolated_process.py b/src/python/pants/engine/isolated_process.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/engine/isolated_process.py
+++ b/src/python/pants/engine/isolated_process.py
@@ -104,7 +104,11 @@ stderr:
self.stderr = stderr
msg = self.MSG_FMT.format(
... | Properly render multiline output when a V2 task fails (#<I>) Currently we render `stdout` and `stderr` as byte strings when a V2 task fails, which means that the `\n` literal gets rendered, so multiline strings are hard to read. We already have made the assumption that `stdout` and `stderr` are UTF-8 encoded, so th... | py |
diff --git a/orpsoc/simulator/icarus.py b/orpsoc/simulator/icarus.py
index <HASH>..<HASH> 100644
--- a/orpsoc/simulator/icarus.py
+++ b/orpsoc/simulator/icarus.py
@@ -33,9 +33,9 @@ class SimulatorIcarus(Simulator):
f = open(os.path.join(self.sim_root,icarus_file),'w')
for include_dir in self.include... | Use absolute path for files in icarus cmdfile | py |
diff --git a/holoviews/core/ndmapping.py b/holoviews/core/ndmapping.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/ndmapping.py
+++ b/holoviews/core/ndmapping.py
@@ -805,10 +805,6 @@ class UniformNdMapping(NdMapping):
if self.type is not None and (type(data) != self.type):
raise AssertionErro... | Removed broken uniformity check from UniformNdMapping | py |
diff --git a/gntp/core.py b/gntp/core.py
index <HASH>..<HASH> 100644
--- a/gntp/core.py
+++ b/gntp/core.py
@@ -162,12 +162,21 @@ class _GNTPBase(object):
if self.password is None:
raise errors.AuthError('Missing password')
+ keyHashAlgorithmID = self.info.get('keyHashAlgorithmID','MD5')
+
+ hash_algo = {
+ ... | now accepts any supported kind of incoming password hash from the GNTP protocol document previously was only comparing via MD5, even if the client was sending the password hashed as SHA1, SHA<I>, SHA<I>, etc | py |
diff --git a/rest_client/async.py b/rest_client/async.py
index <HASH>..<HASH> 100644
--- a/rest_client/async.py
+++ b/rest_client/async.py
@@ -109,7 +109,7 @@ class RESTClient(object):
if body is not None and "Content-Type" not in headers:
headers['Content-Type'] = 'application/json'
- if... | [fix] body_producer support | py |
diff --git a/endpoints/api_config.py b/endpoints/api_config.py
index <HASH>..<HASH> 100644
--- a/endpoints/api_config.py
+++ b/endpoints/api_config.py
@@ -53,7 +53,8 @@ from . import messages
from . import remote
from . import resource_container
from . import types as endpoints_types
-from .types import Issuer, Limi... | Just want to adjust this comment slightly. (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,8 @@ setup(
url='https://github.com/cea-cosmic/ModOpt',
download_url='https://github.com/cea-cosmic/ModOpt',
packages=find_packages(),
- install_requires=['numpy>=1.16.4', 'scipy>=1.3.0', 'progressb... | [Installation]: Adding sklearn to the requirement | py |
diff --git a/firebirdsql/fbcore.py b/firebirdsql/fbcore.py
index <HASH>..<HASH> 100755
--- a/firebirdsql/fbcore.py
+++ b/firebirdsql/fbcore.py
@@ -1292,11 +1292,13 @@ class service_mgr(BaseConnect):
self._op_service_start(spb)
(h, oid, buf) = self._op_response()
self.svc_handle = h
-
- ... | trace start recieve service info in forever loop (untill stop) | py |
diff --git a/eztables/tests.py b/eztables/tests.py
index <HASH>..<HASH> 100644
--- a/eztables/tests.py
+++ b/eztables/tests.py
@@ -354,7 +354,7 @@ class DatatablesTestMixin(object):
def test_sorted_multiple_field(self):
'''Should handle sorting on multiple field'''
for i in xrange(10):
- ... | Fix / operator for python 3 | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100644
--- a/runtests.py
+++ b/runtests.py
@@ -18,8 +18,7 @@ DEFAULT_SETTINGS = dict(
DATABASES={
"default": {
"ENGINE": "django.db.backends.sqlite3",
- "NAME": ":memory:",
- "TEST_NAME": "dev.db"
+ "... | No need for TEST_NAME | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -94,7 +94,7 @@ oss = ["oss2==2.6.1"]
ssh = ["paramiko[invoke]>=2.7.0"]
# Remove the env marker if/when pyarrow is available for Python3.9
-hdfs = ["pyarrow>=0.17.0; python_version < '3.9'"]
+hdfs = ["pyarrow>=2.0.0; pyth... | pyarrow: upgrade to <I> (#<I>) | py |
diff --git a/indra/sources/eidos/processor.py b/indra/sources/eidos/processor.py
index <HASH>..<HASH> 100644
--- a/indra/sources/eidos/processor.py
+++ b/indra/sources/eidos/processor.py
@@ -271,6 +271,9 @@ class EidosProcessor(object):
if key == 'UN':
db_refs[key] = [(s[0].replace... | Handle wm_flattened grounding key, non-leaf nodes | py |
diff --git a/pingdomlib/pingdom.py b/pingdomlib/pingdom.py
index <HASH>..<HASH> 100644
--- a/pingdomlib/pingdom.py
+++ b/pingdomlib/pingdom.py
@@ -60,6 +60,14 @@ class Pingdom(object):
else:
raise Exception("Invalid method in pingdom request")
+ # Store pingdom api limits
+ self.sh... | Stop assuming limits are always in the headers | py |
diff --git a/cysystemd/journal.py b/cysystemd/journal.py
index <HASH>..<HASH> 100644
--- a/cysystemd/journal.py
+++ b/cysystemd/journal.py
@@ -1,4 +1,3 @@
-import collections
import logging
import traceback
import uuid
@@ -7,6 +6,12 @@ from enum import IntEnum, unique
from ._journal import send, syslog_priorities
... | Fix warning regarding ABC import from collections (#<I>) | py |
diff --git a/tensorlayer/visualize.py b/tensorlayer/visualize.py
index <HASH>..<HASH> 100644
--- a/tensorlayer/visualize.py
+++ b/tensorlayer/visualize.py
@@ -138,14 +138,14 @@ def draw_boxes_and_labels_to_image(image, classes=[], coords=[],
x, y, x2, y2 = prepro.obj_box_coord_scale_to_pixelunit([x, y, x2,... | update draw obj in image with int | py |
diff --git a/flux_led/base_device.py b/flux_led/base_device.py
index <HASH>..<HASH> 100644
--- a/flux_led/base_device.py
+++ b/flux_led/base_device.py
@@ -638,15 +638,7 @@ class LEDENETDevice:
def process_device_config_response(self, msg: bytes) -> None:
"""Process an IC (strip config) response."""
- ... | Use constants in process_device_config_response (#<I>) | py |
diff --git a/troposphere/ec2.py b/troposphere/ec2.py
index <HASH>..<HASH> 100644
--- a/troposphere/ec2.py
+++ b/troposphere/ec2.py
@@ -696,7 +696,7 @@ class VPNConnection(AWSObject):
props = {
'CustomerGatewayId': (basestring, True),
'StaticRoutesOnly': (boolean, False),
- 'Tags': (Tags, F... | Fix regression in EC2::VPNConnection - add list back to Tags (#<I>) | py |
diff --git a/sklearn_porter/Estimator.py b/sklearn_porter/Estimator.py
index <HASH>..<HASH> 100644
--- a/sklearn_porter/Estimator.py
+++ b/sklearn_porter/Estimator.py
@@ -412,7 +412,7 @@ class Estimator(EstimatorInterApiABC):
estimator
---------
- name: {}
+ ... | feature/oop-api-refactoring: Remove last newline from __repr__ | py |
diff --git a/lib/container.py b/lib/container.py
index <HASH>..<HASH> 100644
--- a/lib/container.py
+++ b/lib/container.py
@@ -17,10 +17,11 @@ class Container(object):
def set_settings(self, pids_file, bin_path=None):
"""set path to storage"""
- self._storage = Storage(pids_file, self._name)
- ... | init container only once for each types | py |
diff --git a/distutils/tests/test_sysconfig.py b/distutils/tests/test_sysconfig.py
index <HASH>..<HASH> 100644
--- a/distutils/tests/test_sysconfig.py
+++ b/distutils/tests/test_sysconfig.py
@@ -45,6 +45,7 @@ class SysconfigTestCase(support.EnvironGuard, unittest.TestCase):
self.assertIsInstance(cvars, dict)
... | Skip test on PyPy where the functionality is disabled. | py |
diff --git a/lggr/__init__.py b/lggr/__init__.py
index <HASH>..<HASH> 100644
--- a/lggr/__init__.py
+++ b/lggr/__init__.py
@@ -48,7 +48,14 @@ class Lggr():
}
self.history = []
self.enabled = True
- self.ALL = ALL # allow instance.ALL instead of just lggr.ALL
+
+ # allow instance.LEVEL instead of lggr.LEVE... | Adds self.LEVEL so that instances can use those | py |
diff --git a/callee/collections.py b/callee/collections.py
index <HASH>..<HASH> 100644
--- a/callee/collections.py
+++ b/callee/collections.py
@@ -96,7 +96,7 @@ class Generator(BaseMatcher):
.. note::
To match a *generator function* itself, you should use the
- :class:`~callee.general.GeneratorFu... | Fix one reference in the docs | py |
diff --git a/plugins/ldap/server/__init__.py b/plugins/ldap/server/__init__.py
index <HASH>..<HASH> 100644
--- a/plugins/ldap/server/__init__.py
+++ b/plugins/ldap/server/__init__.py
@@ -120,15 +120,13 @@ def _getLdapUser(attrs, server):
if not isinstance(emails, (list, tuple)):
emails = (emails,)
- ... | Use $in to reduce number of queries for LDAP users | py |
diff --git a/lib/bibformat_utils.py b/lib/bibformat_utils.py
index <HASH>..<HASH> 100644
--- a/lib/bibformat_utils.py
+++ b/lib/bibformat_utils.py
@@ -579,7 +579,6 @@ def get_pdf_snippets(recID, patterns,
# no hit, so check stemmed versions:
from invenio.bibindex_engine_stemmer import stem
... | BibFormat: remove snippet debug print statement * Remove forgotten debugging print statement for the snippet facility. | py |
diff --git a/prettyprinter/extras/django.py b/prettyprinter/extras/django.py
index <HASH>..<HASH> 100644
--- a/prettyprinter/extras/django.py
+++ b/prettyprinter/extras/django.py
@@ -213,7 +213,7 @@ def pretty_queryset(queryset, ctx):
else:
truncated = False
- element_ctx = ctx.set(ModelVerbosity, Mo... | Use assoc instead of set in Django definitions | 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='looptools',
- version='1.0.q',
+ version='1.0.1',
packages=find_packages(),
install_requires=[],
url='https://github.com/mrstep... | Updated to version <I> | py |
diff --git a/python-package/lightgbm/__init__.py b/python-package/lightgbm/__init__.py
index <HASH>..<HASH> 100644
--- a/python-package/lightgbm/__init__.py
+++ b/python-package/lightgbm/__init__.py
@@ -3,24 +3,24 @@
Contributors: https://github.com/microsoft/LightGBM/graphs/contributors.
"""
+import os
+
from .ba... | [ci][python] apply isort to python-package/lightgbm/__init__.py #<I> (#<I>) | py |
diff --git a/gwpy/timeseries/statevector.py b/gwpy/timeseries/statevector.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/statevector.py
+++ b/gwpy/timeseries/statevector.py
@@ -232,6 +232,11 @@ class StateTimeSeries(TimeSeriesBase):
else:
return super(StateTimeSeries, self).__getitem__(item)... | gwpy.timeseries: enable tolist() for StateTimeSeries required for some index operations | py |
diff --git a/salt/modules/selinux.py b/salt/modules/selinux.py
index <HASH>..<HASH> 100644
--- a/salt/modules/selinux.py
+++ b/salt/modules/selinux.py
@@ -107,6 +107,7 @@ def setenforce(mode):
mode = '0'
modestring = 'Permissive'
elif mode.lower() == 'disabled':
+ mode = '0... | mode needs to be an integer It can't be 'Disabled'. That cannot be written to /sys/fs/selinux/enforce | py |
diff --git a/dev_tools/src/d1_dev/setup-all.py b/dev_tools/src/d1_dev/setup-all.py
index <HASH>..<HASH> 100755
--- a/dev_tools/src/d1_dev/setup-all.py
+++ b/dev_tools/src/d1_dev/setup-all.py
@@ -50,6 +50,11 @@ PKG_PATH_LIST = [
def main():
+ if sys.version_info[0] != 3:
+ raise Exception(
+ 'Python 3 requ... | Ensure that packages are built for Python 3 | py |
diff --git a/govuk_template_base/management/commands/startgovukapp.py b/govuk_template_base/management/commands/startgovukapp.py
index <HASH>..<HASH> 100644
--- a/govuk_template_base/management/commands/startgovukapp.py
+++ b/govuk_template_base/management/commands/startgovukapp.py
@@ -7,9 +7,9 @@ from django.conf impo... | Update GDS-provided dependencies | py |
diff --git a/run_tests.py b/run_tests.py
index <HASH>..<HASH> 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -198,6 +198,24 @@ class ConfigExpandTestCase(unittest.TestCase):
self.assertDictEqual(config, self.after_config)
+class TestFabric(object):
+ """ we may want to skip testing in travis, and offer... | Some placeholders, we want this to be able to work without fabric if possible. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -44,7 +44,7 @@ except IOError:
pass
if HAS_SETUPTOOLS:
- options.update({'install_requires':['cssutils>0.9.0','PIL']})
+ options.update({'install_requires':['cssutils>0.9.0']})
setup(**options) | Setuptools doesn't actually have a clue how to install PIL | py |
diff --git a/tradingAPI/api.py b/tradingAPI/api.py
index <HASH>..<HASH> 100644
--- a/tradingAPI/api.py
+++ b/tradingAPI/api.py
@@ -95,7 +95,7 @@ class API(object):
self.logger.critical("login failed")
return 0
sleep(1)
- self.logger.debug("logged in")
+ ... | Added username to debug logger | py |
diff --git a/parsl/app/app.py b/parsl/app/app.py
index <HASH>..<HASH> 100644
--- a/parsl/app/app.py
+++ b/parsl/app/app.py
@@ -178,10 +178,8 @@ class BashApp(AppBase):
logger.debug("Tid : %s" % app_fut.tid)
out_futs = [DataFuture(app_fut, o, parent=app_fut, tid=app_fut.tid) for o in kwargs.get('output... | Updating the app returns. Now an app call will only return an AppFuture and the list of DataFutures matching the outputs list specified will be available through the AppFuture.outputs property. | py |
diff --git a/synapse/lib/lmdbslab.py b/synapse/lib/lmdbslab.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/lmdbslab.py
+++ b/synapse/lib/lmdbslab.py
@@ -675,7 +675,9 @@ class Slab(s_base.Base):
raise s_exc.SlabAlreadyOpen(mesg=path)
if os.path.isfile(self.optspath):
- opts.update(s_... | Make lmdbslab optsfile updates only when the yamlload result is safe to use. (#<I>) | py |
diff --git a/airflow/contrib/hooks/jira_hook.py b/airflow/contrib/hooks/jira_hook.py
index <HASH>..<HASH> 100644
--- a/airflow/contrib/hooks/jira_hook.py
+++ b/airflow/contrib/hooks/jira_hook.py
@@ -32,9 +32,11 @@ class JiraHook(BaseHook, LoggingMixin):
:type jira_conn_id: string
"""
def __init__(self,
-... | [AIRFLOW-<I>] Add option to use proxies in JiraHook Closes #<I> from arashrai/master | py |
diff --git a/xmantissa/webapp.py b/xmantissa/webapp.py
index <HASH>..<HASH> 100644
--- a/xmantissa/webapp.py
+++ b/xmantissa/webapp.py
@@ -216,7 +216,8 @@ class PrivateApplication(Item, PrefixURLMixin):
To plug into it, install powerups of the type INavigableElement on the
user's store. Their tabs will be ... | Guess what - a docstring. Also a comment which makes an insightful observation... | py |
diff --git a/dipper.py b/dipper.py
index <HASH>..<HASH> 100755
--- a/dipper.py
+++ b/dipper.py
@@ -149,7 +149,7 @@ def main():
imported_module = importlib.import_module(module)
source_class = getattr(imported_module, src)
mysource = None
- if source_class in taxa_supported:
+ if... | fix bug in taxon arg check | py |
diff --git a/autoflake.py b/autoflake.py
index <HASH>..<HASH> 100755
--- a/autoflake.py
+++ b/autoflake.py
@@ -68,16 +68,18 @@ except NameError:
def standard_paths():
"""Yield paths to standard modules."""
- path = distutils.sysconfig.get_python_lib(standard_lib=True)
+ for is_plat_spec in [True, False]:
... | standard_paths in plat_specific True and False (#<I>) Have `standard_paths` look in both platform-specific and platform-independent directories. Fixes issue #<I>. | py |
diff --git a/salt/cloud/clouds/gce.py b/salt/cloud/clouds/gce.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/gce.py
+++ b/salt/cloud/clouds/gce.py
@@ -2191,7 +2191,7 @@ def create(vm_=None, call=None):
)
log.info('Created Cloud VM {0[name]!r}'.format(vm_))
- log.debug(
+ log.trace(
... | Move VM creation details dict to log.trace Fixes #<I> | py |
diff --git a/unitest-restful.py b/unitest-restful.py
index <HASH>..<HASH> 100755
--- a/unitest-restful.py
+++ b/unitest-restful.py
@@ -23,6 +23,7 @@
import shlex
import subprocess
import time
+import numbers
import unittest
from glances import __version__
@@ -111,7 +112,8 @@ class TestGlances(unittest.TestCase):... | Correct Restful unitest for the previous commit | py |
diff --git a/autopython/main.py b/autopython/main.py
index <HASH>..<HASH> 100644
--- a/autopython/main.py
+++ b/autopython/main.py
@@ -77,7 +77,13 @@ def autopython():
def autoipython():
parser, args = parse_command_line(AUTOIPYTHON)
- from autopython.ipython import PresenterShell
+ import IPython
+ if... | AutoIPython doesn't support IPython >= 5.X | py |
diff --git a/jsonrpc/site.py b/jsonrpc/site.py
index <HASH>..<HASH> 100644
--- a/jsonrpc/site.py
+++ b/jsonrpc/site.py
@@ -201,8 +201,6 @@ class JSONRPCSite(object):
status = 200
except Error as e:
- signals.got_request_exception.send(sender=self.__class__,
- ... | Do not call signals.got_request_exception for expected exceptions. Subclasses of jsonrpc.exceptions.Error are used to return JSONRPC error responses in well defined situations and should not call the got_request_exception signal used for uncaught exceptions. This is similar to the behaviour of the Django Http<I> exce... | py |
diff --git a/pydispatch/dispatch.py b/pydispatch/dispatch.py
index <HASH>..<HASH> 100644
--- a/pydispatch/dispatch.py
+++ b/pydispatch/dispatch.py
@@ -70,6 +70,10 @@ class Dispatcher(object):
obj = super(Dispatcher, cls).__new__(cls)
obj._Dispatcher__init_events()
return obj
+ def __init__... | Add an init method to avoid errors with super() calls | py |
diff --git a/statsd_metrics/metrics.py b/statsd_metrics/metrics.py
index <HASH>..<HASH> 100644
--- a/statsd_metrics/metrics.py
+++ b/statsd_metrics/metrics.py
@@ -8,7 +8,7 @@ from types import StringTypes, IntType, FloatType
class AbstractMetric(object):
def __init__(self, name):
- self._set_name(name)
+... | Remove extra method to set metrics names in abstract metric Using the property in the constructor is enough, no need for an extra method. | py |
diff --git a/spotify/sync/models.py b/spotify/sync/models.py
index <HASH>..<HASH> 100644
--- a/spotify/sync/models.py
+++ b/spotify/sync/models.py
@@ -25,7 +25,7 @@ def _infer_initializer(base: Type, name: str) -> Callable[..., None]:
return initializer
-def _coroutine_function_decorator(corofunc):
+def _norma... | rename `_coroutine_function_decorator` into `_normalize_coroutine_function` | py |
diff --git a/tensorflow_probability/python/distributions/empirical.py b/tensorflow_probability/python/distributions/empirical.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/distributions/empirical.py
+++ b/tensorflow_probability/python/distributions/empirical.py
@@ -217,12 +217,14 @@ class Empirical... | chenges to pass linting checks | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,7 @@
# https://stackoverflow.com/questions/7932028/setup-py-for-packages-that-depend-on-both-cython-and-f2py
from setuptools import setup
+import numpy as np
try:
from Cython.Build import cythonize
@@ -58,7... | added back numpy in setup.py | py |
diff --git a/centinel/primitives/tls.py b/centinel/primitives/tls.py
index <HASH>..<HASH> 100644
--- a/centinel/primitives/tls.py
+++ b/centinel/primitives/tls.py
@@ -18,14 +18,14 @@ def get_fingerprint(host, port=443, external=None, log_prefix=''):
try:
cert = ssl.get_server_certificate((host, port),
-... | try tlsv1 first | py |
diff --git a/cherrypy/test/test_request_obj.py b/cherrypy/test/test_request_obj.py
index <HASH>..<HASH> 100644
--- a/cherrypy/test/test_request_obj.py
+++ b/cherrypy/test/test_request_obj.py
@@ -252,7 +252,7 @@ class RequestObjectTests(helper.CPWebCase):
def reachable(self):
return 'succes... | Consistent handler declaration in tests Inherit from 'Test', like other handlers, instead of manually mounting to root. | py |
diff --git a/lib/autokey/interface.py b/lib/autokey/interface.py
index <HASH>..<HASH> 100644
--- a/lib/autokey/interface.py
+++ b/lib/autokey/interface.py
@@ -1057,6 +1057,7 @@ class XInterfaceBase(threading.Thread):
return self._get_window_info(window, traverse)
except error.BadWindow:
... | Return an empty WindowInfo object, if querying the X server failed. | py |
diff --git a/backend/tensorboard_handler.py b/backend/tensorboard_handler.py
index <HASH>..<HASH> 100644
--- a/backend/tensorboard_handler.py
+++ b/backend/tensorboard_handler.py
@@ -376,6 +376,14 @@ class TensorboardHandler(BaseHTTPServer.BaseHTTPRequestHandler):
return
if path.startswith('external'):
+ ... | TensorFlow: apply update to tensorboard_handler. Fixes #<I>. Fix originally by danmane@, just upstreaming. Change: <I> | py |
diff --git a/python/ccxt/async_support/huobi.py b/python/ccxt/async_support/huobi.py
index <HASH>..<HASH> 100644
--- a/python/ccxt/async_support/huobi.py
+++ b/python/ccxt/async_support/huobi.py
@@ -899,7 +899,7 @@ class huobi(Exchange):
},
},
'defaultType': 'spot'... | [huobi] default subtype as linear | py |
diff --git a/pysat/instruments/rocsat1_ivm.py b/pysat/instruments/rocsat1_ivm.py
index <HASH>..<HASH> 100644
--- a/pysat/instruments/rocsat1_ivm.py
+++ b/pysat/instruments/rocsat1_ivm.py
@@ -28,14 +28,11 @@ from __future__ import print_function
from __future__ import absolute_import
import datetime as dt
import func... | BUG: use warnings, not logger | py |
diff --git a/tests/integration/netapi/rest_cherrypy/test_app.py b/tests/integration/netapi/rest_cherrypy/test_app.py
index <HASH>..<HASH> 100644
--- a/tests/integration/netapi/rest_cherrypy/test_app.py
+++ b/tests/integration/netapi/rest_cherrypy/test_app.py
@@ -90,6 +90,9 @@ class TestWebhookDisableAuth(BaseRestCherry... | Mock fire_event() in test to check auth setting | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -57,9 +57,11 @@ if sys.platform == 'cygwin':
# module[0].extra_compile_args.append('-g3')
if qpdf_source_tree:
+ dtags = '' if sys.platform in ('darwin', 'bsd') else ',--enable-new-dtags'
+ extmodule.extra_link_args... | setup: fix qpdf_source_tree build with clang | py |
diff --git a/claripy/backends/backend_z3.py b/claripy/backends/backend_z3.py
index <HASH>..<HASH> 100644
--- a/claripy/backends/backend_z3.py
+++ b/claripy/backends/backend_z3.py
@@ -728,22 +728,17 @@ class BackendZ3(Backend):
if isinstance(expr_raw, z3.BoolRef):
tactics = z3.Then(z3.Tactic("simpl... | change boolean abstraction to use the standard z3 abstraction pipeline | py |
diff --git a/tests/iframes.py b/tests/iframes.py
index <HASH>..<HASH> 100644
--- a/tests/iframes.py
+++ b/tests/iframes.py
@@ -6,3 +6,9 @@ class IFrameElementsTest(object):
self.browser.switch_to_frame('iframemodal')
value = self.browser.find_by_tag('h1').first.value
assert_equals(value, 'IFr... | Added test case for switching back to the main content after switching to a frame | py |
diff --git a/scenarios/kubernetes_e2e.py b/scenarios/kubernetes_e2e.py
index <HASH>..<HASH> 100755
--- a/scenarios/kubernetes_e2e.py
+++ b/scenarios/kubernetes_e2e.py
@@ -45,12 +45,12 @@ DEFAULT_AWS_ZONES = [
'ap-northeast-2c',
#'ap-south-1a', # no c4.large instances available
#'ap-south-1b', # no c4.lar... | skip ap-southeast-* regions for aws test | py |
diff --git a/glances/config.py b/glances/config.py
index <HASH>..<HASH> 100644
--- a/glances/config.py
+++ b/glances/config.py
@@ -107,7 +107,11 @@ class Config(object):
# Re patern for optimize research of `foo`
self.re_pattern = re.compile(r'(\`.+?\`)')
- self.parser = ConfigParser(interpol... | The last PR break the compatibilty with Python 2 | py |
diff --git a/__init__.py b/__init__.py
index <HASH>..<HASH> 100644
--- a/__init__.py
+++ b/__init__.py
@@ -47,7 +47,7 @@ def qgisMinimumVersion():
def icon():
"""Icon path for the plugin - metadata.txt it will override this"""
- return os.path.join(os.path.dirname(__file__), 'gui', 'resources',
+ return o... | Refactored gui to safe_qgis to avoid namespace collisions with other plugins. Refactored gui module names, removing is_ prefix | py |
diff --git a/badges/blueprint.py b/badges/blueprint.py
index <HASH>..<HASH> 100644
--- a/badges/blueprint.py
+++ b/badges/blueprint.py
@@ -49,11 +49,20 @@ def base_path():
@open_badge.route("/image/<image_id>", methods=["GET"])
def image_path(image_id):
''' view passes the specified fedora image based on the uui... | added debug text to blueprint image path | py |
diff --git a/runcommands/runners/remote.py b/runcommands/runners/remote.py
index <HASH>..<HASH> 100644
--- a/runcommands/runners/remote.py
+++ b/runcommands/runners/remote.py
@@ -8,6 +8,7 @@ from select import select
from shutil import get_terminal_size
import paramiko
+from paramiko.agent import AgentRequestHandle... | In RemoteRunner, handle agent forwarding | py |
diff --git a/openquake/commonlib/calc.py b/openquake/commonlib/calc.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/calc.py
+++ b/openquake/commonlib/calc.py
@@ -295,7 +295,7 @@ def get_gmfs(dstore, precalc=None):
# else read from the datastore
for i, rlz in enumerate(rlzs):
- data = group_a... | Changed the gmf_data storage | py |
diff --git a/iacli/ia_search.py b/iacli/ia_search.py
index <HASH>..<HASH> 100755
--- a/iacli/ia_search.py
+++ b/iacli/ia_search.py
@@ -3,7 +3,7 @@ API <https://archive.org/advancedsearch.php#raw>.
usage:
ia search [--parameters=<key:value>...] [--sort=<field:order>]
- [--field=<field>...] <query>... | Added --number-found option to print number of results to stdout and exit. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,11 +17,11 @@ class FetchExternal(setuptools.command.sdist.sdist):
setup(cmdclass={'sdist': FetchExternal},
name='python_moztelemetry',
- version='0.3.1.1',
+ version='0.3.1.2',
author='Roberto Ag... | Add lower bounds for pandas and numpy. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -469,6 +469,8 @@ class BuildExt(build_ext):
def build_extension(self, ext):
try:
self.compiler.compiler_so.remove("-Wstrict-prototypes")
+ if SYSTEM == 'darwin':
+ self.compiler.linker_so.extend(["-r... | fixed libhdfs rpath lookup in darwin | py |
diff --git a/eli5/formatters/html.py b/eli5/formatters/html.py
index <HASH>..<HASH> 100644
--- a/eli5/formatters/html.py
+++ b/eli5/formatters/html.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import cgi
+from collections import Counter
import numpy as np
from jinja2 import Environment, PackageLoader
@@ -68,10 +69,... | Spread weight among all instances of a feature | py |
diff --git a/utils.py b/utils.py
index <HASH>..<HASH> 100644
--- a/utils.py
+++ b/utils.py
@@ -214,7 +214,7 @@ class _FindTimeRule(_FindRule):
class find(object):
"""Find directories and files in the specified path.
- for path in find('/tmp').filter(name='*.py'):
+ for path in find('/tmp').filter(name='*.... | Fix naming issue in find and add to example | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,8 @@ with open('txtorcon/_metadata.py') as f:
description = '''
Twisted-based Tor controller client, with state-tracking and
configuration abstractions.
+ https://txtorcon.readthedocs.org
+ https://g... | hopefully make github, RTD URLs appear in next PyPI release | py |
diff --git a/flask_migrate/__init__.py b/flask_migrate/__init__.py
index <HASH>..<HASH> 100755
--- a/flask_migrate/__init__.py
+++ b/flask_migrate/__init__.py
@@ -14,7 +14,7 @@ from alembic import command
from alembic.util import CommandError
alembic_version = tuple([int(v) for v in __alembic_version__.split('.')[0... | added name to dunder init (#<I>) | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.