diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/hijack/templatetags/hijack_tags.py b/hijack/templatetags/hijack_tags.py
index <HASH>..<HASH> 100644
--- a/hijack/templatetags/hijack_tags.py
+++ b/hijack/templatetags/hijack_tags.py
@@ -29,9 +29,8 @@ def _render_hijack_notification(request):
else:
template_name = 'hijack/notifications.html'
... | Do not evaluate the all statement if request is None | py |
diff --git a/ofp/v0x01/foundation/base.py b/ofp/v0x01/foundation/base.py
index <HASH>..<HASH> 100644
--- a/ofp/v0x01/foundation/base.py
+++ b/ofp/v0x01/foundation/base.py
@@ -15,6 +15,7 @@ from foundation import exceptions
OFP_ETH_ALEN = 6
OFP_MAX_PORT_NAME_LEN = 16
OFP_VERSION = 0x01
+OFP_MAX_TABLE_NAME_LEN = 32
... | Added the OFP_MAX_TABLE_NAME_LEN constant | py |
diff --git a/pyqrcode/__init__.py b/pyqrcode/__init__.py
index <HASH>..<HASH> 100644
--- a/pyqrcode/__init__.py
+++ b/pyqrcode/__init__.py
@@ -43,8 +43,6 @@ Examples:
#Imports required for 2.7 support
from __future__ import absolute_import, division, print_function, with_statement, unicode_literals
-import io
-impo... | Moved two imports to the method they acutally used with. | py |
diff --git a/tempy/elements.py b/tempy/elements.py
index <HASH>..<HASH> 100644
--- a/tempy/elements.py
+++ b/tempy/elements.py
@@ -388,7 +388,7 @@ class Content(DOMElement):
else:
yield from iter([content, ])
else:
- raise StopIteration
+ return
@prope... | fixed DeprecationWarning | py |
diff --git a/symfit/core/fit.py b/symfit/core/fit.py
index <HASH>..<HASH> 100644
--- a/symfit/core/fit.py
+++ b/symfit/core/fit.py
@@ -687,7 +687,14 @@ class TakesData(object):
]
signature = inspect_sig.Signature(parameters=parameters)
- bound_arguments = signature.bind(*ordered_data, **named... | Added a clearer error message when an unknown keyword error is raised by fit, since this is probably caused by this PR breaking backwards compatibility. | py |
diff --git a/tests/test_core.py b/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -619,6 +619,13 @@ class CoreTests(unittest.TestCase):
with self.assertRaises(ValueError):
MyOids.unmap('no_such_mapping')
+ def test_oid_dotted_native(self):
+... | add assertion tests for dotted/native OID representations | py |
diff --git a/pysasl/plain.py b/pysasl/plain.py
index <HASH>..<HASH> 100644
--- a/pysasl/plain.py
+++ b/pysasl/plain.py
@@ -63,7 +63,7 @@ class PlainMechanism(ServerMechanism, ClientMechanism):
def client_attempt(cls, creds, responses):
if len(responses) > 1:
raise UnexpectedAuthChallenge()
- ... | fix bug with PLAIN and empty authzid | py |
diff --git a/textplot/__init__.py b/textplot/__init__.py
index <HASH>..<HASH> 100644
--- a/textplot/__init__.py
+++ b/textplot/__init__.py
@@ -48,8 +48,8 @@ def clumpy(path, term_depth=500, skim_depth=10, d_weights=False, **kwargs):
return g
-def spiky(path, term_depth=5000, spike_depth=1000, skim_depth=10,
- ... | Renames spiky -> listserv, since it's really quite specific. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ REQUIRES = [
'django-nose',
'django-registration-redux',
'djangorestframework',
- 'drf-extensions',
+ 'drf-extensions<0.5',
'jsonfield',
'pillow',
'diff-match-patch', | drf-extensions <I> drops python 2 support and causes other breakages, so pin ourselves to the old version until we can drop python 2 | py |
diff --git a/abilian/web/forms/validators.py b/abilian/web/forms/validators.py
index <HASH>..<HASH> 100644
--- a/abilian/web/forms/validators.py
+++ b/abilian/web/forms/validators.py
@@ -217,9 +217,14 @@ def siret_validator():
"""
- def _validate_siret(form, field):
- """ SIRET validator. """
- ... | siret validator: also give the siret as str, not form field for scripts | py |
diff --git a/packages/vaex-core/vaex/settings.py b/packages/vaex-core/vaex/settings.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/settings.py
+++ b/packages/vaex-core/vaex/settings.py
@@ -1,10 +1,13 @@
+import os
import logging
-import yaml
-from yaml import Loader, Dumper
import vaex.utils
-import os
... | Remove deprecation warning due to collection.abc import (#<I>) * Remove deprecation warning related to the collections.abc package. * Reformatting vaex-core/vaex/settings.py to comply with PEP8 standards. * import module changed to snake_case style | py |
diff --git a/lifelines/utils/__init__.py b/lifelines/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/lifelines/utils/__init__.py
+++ b/lifelines/utils/__init__.py
@@ -270,7 +270,7 @@ def datetimes_to_durations(start_times, end_times, fill_date=datetime.today(), f
C = ~(pd.isnull(end_times).values | end_times.i... | Fix deprecation warning `coerce=True` is rising deprecation warning in pandas <I> and above, how about to use `errors='coerce'` instead? | py |
diff --git a/spyderlib/widgets/externalshell/pythonshell.py b/spyderlib/widgets/externalshell/pythonshell.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/externalshell/pythonshell.py
+++ b/spyderlib/widgets/externalshell/pythonshell.py
@@ -518,7 +518,7 @@ The process may not exit as a result of clicking this but... | External Console: Improve message when a console fails to start - Try to improve the situation described in revision 4f<I>daf<I> (for which revision db<I>a7de<I> was not a full solution). | py |
diff --git a/pyalveo/pyalveo.py b/pyalveo/pyalveo.py
index <HASH>..<HASH> 100644
--- a/pyalveo/pyalveo.py
+++ b/pyalveo/pyalveo.py
@@ -207,6 +207,8 @@ class Client(object):
else:
if 'apiKey' in config:
self.api_key = config['apiKey']
+ else:
+ self.api_ke... | Bugfix: self.api_key must be None if not used to indicate not using it, (as opposed to not exisiting) | py |
diff --git a/topiary/__init__.py b/topiary/__init__.py
index <HASH>..<HASH> 100644
--- a/topiary/__init__.py
+++ b/topiary/__init__.py
@@ -21,7 +21,7 @@ from .sequence_helpers import (
)
from . import commandline_args
-__version__ = '0.1.2'
+__version__ = '1.2.0'
__all__ = [
"LazyLigandomeDict", | let's call it <I> | py |
diff --git a/tensorflow_datasets/core/utils/gcs_utils.py b/tensorflow_datasets/core/utils/gcs_utils.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/core/utils/gcs_utils.py
+++ b/tensorflow_datasets/core/utils/gcs_utils.py
@@ -31,17 +31,18 @@ GCS_ROOT_DIR = 'gs://tfds-data'
GCS_DATASET_INFO_DIR = 'dataset_info... | Catch error on windows when gs:// isn't present PiperOrigin-RevId: <I> | py |
diff --git a/can/interfaces/serial/serial_can.py b/can/interfaces/serial/serial_can.py
index <HASH>..<HASH> 100644
--- a/can/interfaces/serial/serial_can.py
+++ b/can/interfaces/serial/serial_can.py
@@ -7,7 +7,6 @@ E.g. over bluetooth with "/dev/rfcomm0" or with Arduino "/dev/ttyACM0".
"""
# TODO add function documen... | convert float value to int in the send method from the serial interface | py |
diff --git a/backlash/tracing/slowrequests/middleware.py b/backlash/tracing/slowrequests/middleware.py
index <HASH>..<HASH> 100644
--- a/backlash/tracing/slowrequests/middleware.py
+++ b/backlash/tracing/slowrequests/middleware.py
@@ -1,6 +1,8 @@
import datetime as dt
import os
import threading
+import logging
+
... | wsgi.errors might have already disappeared | py |
diff --git a/astrobase/lcproc/catalogs.py b/astrobase/lcproc/catalogs.py
index <HASH>..<HASH> 100644
--- a/astrobase/lcproc/catalogs.py
+++ b/astrobase/lcproc/catalogs.py
@@ -1484,6 +1484,10 @@ def add_cpinfo_to_lclist(
with open(initial_lc_catalog,'rb') as infd:
lc_catalog = pickle.load(infd)
+ # co... | lcproc.catalogs: make sure catalog dict 'columns' key-val is a list | py |
diff --git a/worker/buildbot_worker/test/unit/test_scripts_create_slave.py b/worker/buildbot_worker/test/unit/test_scripts_create_slave.py
index <HASH>..<HASH> 100644
--- a/worker/buildbot_worker/test/unit/test_scripts_create_slave.py
+++ b/worker/buildbot_worker/test/unit/test_scripts_create_slave.py
@@ -595,8 +595,8 ... | rename local buildslave_mock -> worker_mock | py |
diff --git a/pysoa/test/plugins/pytest/fixtures.py b/pysoa/test/plugins/pytest/fixtures.py
index <HASH>..<HASH> 100644
--- a/pysoa/test/plugins/pytest/fixtures.py
+++ b/pysoa/test/plugins/pytest/fixtures.py
@@ -21,6 +21,7 @@ import pytest
import six
from pysoa.client.client import Client
+from pysoa.common.transpor... | [PATCH] Skip Django database connection cleanup in PyTest fixtures Similar to <I>cb2f2f5c<I>b<I>c<I>ef<I>c8d, we also need to skip Django database connection cleanup when the local client is created as a PyTest fixture. Note that this may look like a breaking change, but it is not. These fixtures do not get called dir... | py |
diff --git a/script/upload-index-json.py b/script/upload-index-json.py
index <HASH>..<HASH> 100755
--- a/script/upload-index-json.py
+++ b/script/upload-index-json.py
@@ -5,12 +5,10 @@ import sys
import urllib2
from lib.config import s3_config
-from lib.util import s3put, scoped_cwd, safe_mkdir
+from lib.util impor... | chore: fix out_dir usage in upload-index-json.py | py |
diff --git a/pysnmp/proto/rfc1902.py b/pysnmp/proto/rfc1902.py
index <HASH>..<HASH> 100644
--- a/pysnmp/proto/rfc1902.py
+++ b/pysnmp/proto/rfc1902.py
@@ -17,6 +17,18 @@ class OctetString(univ.OctetString):
subtypeSpec = univ.Integer.subtypeSpec+constraint.ValueSizeConstraint(
0, 65535
)
+ # r... | fixed length OctetString property implemented | py |
diff --git a/acos_client/v30/slb/virtual_server.py b/acos_client/v30/slb/virtual_server.py
index <HASH>..<HASH> 100644
--- a/acos_client/v30/slb/virtual_server.py
+++ b/acos_client/v30/slb/virtual_server.py
@@ -52,8 +52,8 @@ class VirtualServer(base.BaseV30):
params['virtual-server']['vrid'] = int(vrid)
... | resolved line break issue due to pep8 | py |
diff --git a/hypermap/aggregator/solr.py b/hypermap/aggregator/solr.py
index <HASH>..<HASH> 100644
--- a/hypermap/aggregator/solr.py
+++ b/hypermap/aggregator/solr.py
@@ -131,9 +131,10 @@ class SolrHypermap(object):
{"name": "id", "type": "plong", "required": True},
{"name": "is_public", "type... | Update the solr schema with two missing fields | py |
diff --git a/AnyQt/_backport/QtGui.py b/AnyQt/_backport/QtGui.py
index <HASH>..<HASH> 100644
--- a/AnyQt/_backport/QtGui.py
+++ b/AnyQt/_backport/QtGui.py
@@ -223,7 +223,7 @@ __all__ = [
'QSizePolicy',
'QSlider',
'QSortFilterProxyModel',
- 'QSound',
+ # 'QSound',
'QSpacerItem',
'QSpinBox'... | Don't assume QSound is available | py |
diff --git a/pyocd/target/pack/pack_target.py b/pyocd/target/pack/pack_target.py
index <HASH>..<HASH> 100644
--- a/pyocd/target/pack/pack_target.py
+++ b/pyocd/target/pack/pack_target.py
@@ -57,7 +57,9 @@ def _find_family_class(dev):
# Scan each level of families
for familyName in dev.families:
... | Fixed Python 2 incompatibility in DFP family matching. - Was using re.Pattern.fullmatch() which was only added in Python <I>. | py |
diff --git a/holoviews/element/raster.py b/holoviews/element/raster.py
index <HASH>..<HASH> 100644
--- a/holoviews/element/raster.py
+++ b/holoviews/element/raster.py
@@ -147,7 +147,7 @@ class Raster(Element2D):
other_dimension = [d for d in self.kdims if d.name != dimension]
oidx = self.get_d... | Fixed unreferenced variable in Raster.reduce | py |
diff --git a/src/rfx/backend.py b/src/rfx/backend.py
index <HASH>..<HASH> 100644
--- a/src/rfx/backend.py
+++ b/src/rfx/backend.py
@@ -308,7 +308,7 @@ class EngineCli(rfx.Base):
"""get an object. see --help"""
obj_name = parsed['name']
try:
- obj = Engine(base=self).get_object(obj... | switching to direct self.rcs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ setup(
url="https://github.com/marcosschroh/youtube-audio-downloader",
download_url="https://github.com/marcosschroh/youtube-audio-downloader.git",
install_requires=[
- "youtube-dl==2016.5.... | fix(Dependecy): youtube-dl has been updated | py |
diff --git a/backtrader/indicator.py b/backtrader/indicator.py
index <HASH>..<HASH> 100644
--- a/backtrader/indicator.py
+++ b/backtrader/indicator.py
@@ -81,7 +81,6 @@ class MetaIndicator(IndicatorBase.__class__):
class Indicator(six.with_metaclass(MetaIndicator, IndicatorBase)):
- _autoinit = True
_ltype... | Remove old autoinit keyword from Indicator | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100755
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -111,6 +111,19 @@ class TestMYQL(unittest.TestCase):
logging.error(e)
self.assertEquals(response.status_code,200)
+
+ def test_delete(self,):
+ json_data = json_get_da... | #<I>: delete method tests OK | py |
diff --git a/script/update.py b/script/update.py
index <HASH>..<HASH> 100755
--- a/script/update.py
+++ b/script/update.py
@@ -7,7 +7,7 @@ from lib.util import *
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
-NODE_VERSION = 'v0.10.12'
+NODE_VERSION = 'v0.10.15'
def main(): | Update node to <I>. | py |
diff --git a/lib/shopify/resources.py b/lib/shopify/resources.py
index <HASH>..<HASH> 100644
--- a/lib/shopify/resources.py
+++ b/lib/shopify/resources.py
@@ -202,11 +202,32 @@ class Event(ShopifyResource):
class Customer(ShopifyResource):
- pass
+ @classmethod
+ def search(cls, **kwargs):
+ """Sea... | [feature] Add support for customer search and customer group search. | py |
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index <HASH>..<HASH> 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -18,6 +18,7 @@ from pandas._typing import (
from pandas.compat import (
pa_version_under1p01,
pa_version_under2p0,
... | BUG: Fix pc.power_checked min version (#<I>) | py |
diff --git a/mutagen/ogg.py b/mutagen/ogg.py
index <HASH>..<HASH> 100644
--- a/mutagen/ogg.py
+++ b/mutagen/ogg.py
@@ -286,10 +286,6 @@ class OggPage(object):
page = OggPage()
page.sequence = sequence
- # FIXME: Building strings like this is ridiculously slow
- # (though it's probably ... | OggPage.from_packets: FIXME doesn't need fixing. | py |
diff --git a/pliers/extractors/base.py b/pliers/extractors/base.py
index <HASH>..<HASH> 100644
--- a/pliers/extractors/base.py
+++ b/pliers/extractors/base.py
@@ -150,6 +150,7 @@ class ExtractorResult(object):
# from other rows by onset and duration.
if object_id:
if 'object_id' not in df... | Add back object_id to index_cols | py |
diff --git a/BAC0/tasks/TaskManager.py b/BAC0/tasks/TaskManager.py
index <HASH>..<HASH> 100644
--- a/BAC0/tasks/TaskManager.py
+++ b/BAC0/tasks/TaskManager.py
@@ -77,6 +77,7 @@ class Manager:
)
cls.stop_service()
cls.start_service()
+ time.sleep(... | A missing time.sleep caused CPU to go to <I>% on Linux... weird, Windows was not having this bug... or at least not as strong... | py |
diff --git a/esipy/client.py b/esipy/client.py
index <HASH>..<HASH> 100644
--- a/esipy/client.py
+++ b/esipy/client.py
@@ -54,7 +54,7 @@ class EsiClient(BaseClient):
:param transport_adapter: (optional) an HTTPAdapter object / implement
:param cache: (optional) esipy.cache.BaseCache cache implementat... | changed default timeout to None to keep the previouse behaviour of never timing out from our side | py |
diff --git a/GPy/util/__init__.py b/GPy/util/__init__.py
index <HASH>..<HASH> 100644
--- a/GPy/util/__init__.py
+++ b/GPy/util/__init__.py
@@ -4,21 +4,12 @@
import linalg
import misc
-import plot
import squashers
-import Tango
import warping_functions
import datasets
import mocap
-import visualize
import decor... | Changes according to files reloaction | py |
diff --git a/pymux/arrangement.py b/pymux/arrangement.py
index <HASH>..<HASH> 100644
--- a/pymux/arrangement.py
+++ b/pymux/arrangement.py
@@ -311,6 +311,7 @@ class Window(object):
# When the parent has only one item left, collapse into its parent.
while len(p) == 1 and p != self.root:
... | When closing a pane, keep dimensions. | py |
diff --git a/ronkyuu/webmention.py b/ronkyuu/webmention.py
index <HASH>..<HASH> 100644
--- a/ronkyuu/webmention.py
+++ b/ronkyuu/webmention.py
@@ -91,14 +91,16 @@ def findEndpoint(html):
:param html: html content
:rtype: WebMention URL
"""
- result = None
- all_links = BeautifulSoup(html).find_all(... | look for webmention endpoint on any element | py |
diff --git a/src/main/config/home/harvest/workflows/dataset-rules.py b/src/main/config/home/harvest/workflows/dataset-rules.py
index <HASH>..<HASH> 100644
--- a/src/main/config/home/harvest/workflows/dataset-rules.py
+++ b/src/main/config/home/harvest/workflows/dataset-rules.py
@@ -69,6 +69,7 @@ class IndexData:
... | Some basic work on multiple known IDs for Collections. | py |
diff --git a/hamper/plugins/karma.py b/hamper/plugins/karma.py
index <HASH>..<HASH> 100644
--- a/hamper/plugins/karma.py
+++ b/hamper/plugins/karma.py
@@ -123,7 +123,7 @@ class Karma(ChatCommandPlugin):
show = (KarmaTable.kcount.desc() if groups[0] == 'top'
else KarmaTable.kcou... | karma: stop color bleed through | py |
diff --git a/raiden/network/proxies/token_network.py b/raiden/network/proxies/token_network.py
index <HASH>..<HASH> 100644
--- a/raiden/network/proxies/token_network.py
+++ b/raiden/network/proxies/token_network.py
@@ -234,6 +234,7 @@ class TokenNetwork:
block_identifier=given_block_identifier,
... | Add missing check for safety_deprecation_switch | py |
diff --git a/nonebot/permission.py b/nonebot/permission.py
index <HASH>..<HASH> 100644
--- a/nonebot/permission.py
+++ b/nonebot/permission.py
@@ -100,3 +100,20 @@ async def _check(bot: NoneBot, min_event: _MinEvent,
permission |= IS_DISCUSS
return bool(permission & permission_required)
+
+
+__all__ = [... | fix: add __all__ to permission.py because people like to star import this module | py |
diff --git a/hilbert/test.py b/hilbert/test.py
index <HASH>..<HASH> 100644
--- a/hilbert/test.py
+++ b/hilbert/test.py
@@ -136,8 +136,8 @@ class ViewTestMixin(object):
def setUp(self):
super(ViewTestMixin, self).setUp()
- name, arg, kwargs = self.get_url()
- self.url = reverse(name, *arg, ... | Pass args/kwargs as keyword args to reverse. | py |
diff --git a/bcbio/broad/__init__.py b/bcbio/broad/__init__.py
index <HASH>..<HASH> 100644
--- a/bcbio/broad/__init__.py
+++ b/bcbio/broad/__init__.py
@@ -50,7 +50,8 @@ class BroadRunner:
subprocess.check_call(cl)
def run_gatk(self, params, tmp_dir=None):
- support_nt = set(["UnifiedGenotyper", "... | Avoid parallelizing UnifiedGenotyper, which parallelizes by splitting across chromosomes | py |
diff --git a/hypertools/plot/animate.py b/hypertools/plot/animate.py
index <HASH>..<HASH> 100644
--- a/hypertools/plot/animate.py
+++ b/hypertools/plot/animate.py
@@ -159,7 +159,7 @@ def animated_plot(x, *args, **kwargs):
if tail_duration==0:
tail_duration=1
else:
- tail_duration = frame_rate*... | patched bug where tail_duration would crash if not an integer value | py |
diff --git a/quilt/push.py b/quilt/push.py
index <HASH>..<HASH> 100644
--- a/quilt/push.py
+++ b/quilt/push.py
@@ -73,9 +73,7 @@ class Push(Command):
def apply_patch(self, patch_name):
""" Apply all patches up to patch_name """
self._check()
- patches = []
- patches.extend(self.seri... | Fix Push apply_patch method Use the new PatchSeries patches_until to get the correct list of to be applied patches and pass the patch objects to the apply_patch method. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -331,11 +331,13 @@ def get_extensions():
ffmpeg_exe = distutils.spawn.find_executable('ffmpeg')
has_ffmpeg = ffmpeg_exe is not None
+ print("FFmpeg found: {}".format(has_ffmpeg))
if has_ffmpeg:
f... | Print FFmpeg location in setup.py (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages
-__version__, __author__, __author_email__ = "0.2.0", "Jeff Hui", "contrib@jeffhui.net"
+__version__, __author__, __author_email__ = "1.0.0", "Jeff Hui", "contrib@jef... | Version in setup.py set to <I>. | py |
diff --git a/trakt/client.py b/trakt/client.py
index <HASH>..<HASH> 100644
--- a/trakt/client.py
+++ b/trakt/client.py
@@ -5,7 +5,7 @@ from trakt.interfaces.base import InterfaceProxy
import logging
-__version__ = '2.0.1'
+__version__ = '2.0.2'
log = logging.getLogger(__name__) | Bumped version to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,8 +6,16 @@ import setuptools
from before_after import __project__, __version__
-README = open('README.md').read()
+# Convert README.md from Markdown to rst if possible
+try:
+ from pypandoc import convert
+except ... | Convert readme to RST for pypi | py |
diff --git a/efopen/ef_generate.py b/efopen/ef_generate.py
index <HASH>..<HASH> 100755
--- a/efopen/ef_generate.py
+++ b/efopen/ef_generate.py
@@ -706,7 +706,8 @@ def main():
conditionally_inline_policies(target_name, sr_entry)
# Create newrelic alerts for all "application_services" in the service registry
- ... | conditionally create newrelic alerts (#<I>) | py |
diff --git a/term2048/keypress.py b/term2048/keypress.py
index <HASH>..<HASH> 100644
--- a/term2048/keypress.py
+++ b/term2048/keypress.py
@@ -46,7 +46,7 @@ else:
tty.setcbreak(sys.stdin.fileno())
termios.tcflush(sys.stdin, termios.TCIOFLUSH)
ch = sys.stdin.read(1)
- re... | fixing an error when nothing can be read on stdin | py |
diff --git a/localshop/apps/packages/views.py b/localshop/apps/packages/views.py
index <HASH>..<HASH> 100644
--- a/localshop/apps/packages/views.py
+++ b/localshop/apps/packages/views.py
@@ -168,6 +168,9 @@ def download_file(request, name, pk, filename):
else:
release_file = models.ReleaseFile.obj... | Returns a redirect when the MEDIA_URL is set | py |
diff --git a/autopep8.py b/autopep8.py
index <HASH>..<HASH> 100755
--- a/autopep8.py
+++ b/autopep8.py
@@ -244,8 +244,11 @@ class FixPEP8(object):
[self.filename])
if self.options.verbose:
- print('{n} issues to fix'.format(
- n=len(results)), file... | Make verbose message more useful Print out the line numbers that need to be fixed. | py |
diff --git a/tests/test_system.py b/tests/test_system.py
index <HASH>..<HASH> 100644
--- a/tests/test_system.py
+++ b/tests/test_system.py
@@ -3,8 +3,14 @@ import os
@pytest.mark.asyncio
-async def test_system_info(docker):
+async def test_system_info_id(docker):
docker_info = await docker.system.info()
... | Skip failed test is DOCKER_VERSION is not set | py |
diff --git a/cmsplugin_cascade/image/models.py b/cmsplugin_cascade/image/models.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/image/models.py
+++ b/cmsplugin_cascade/image/models.py
@@ -1,7 +1,9 @@
# -*- coding: utf-8 -*-
+from django.db import models
from django.utils.translation import ugettext_lazy as _
... | added foreign key onto SharedGlossary | py |
diff --git a/codenerix/models_people.py b/codenerix/models_people.py
index <HASH>..<HASH> 100644
--- a/codenerix/models_people.py
+++ b/codenerix/models_people.py
@@ -222,7 +222,7 @@ class GenPerson(GenLog, models.Model): # META: Abstract class
# Add permissions
for permissionna... | Repaired wrong name for permissions filter | py |
diff --git a/bugwarrior/services/jira.py b/bugwarrior/services/jira.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/services/jira.py
+++ b/bugwarrior/services/jira.py
@@ -149,7 +149,7 @@ class JiraIssue(Issue):
# Parse this big ugly string.
sprint = _parse_sprint_string(sprint)
# ... | Taskwarrior expects tags to not have spaces, otherwise you cannot query with them. | py |
diff --git a/bcbio/variation/coverage.py b/bcbio/variation/coverage.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/coverage.py
+++ b/bcbio/variation/coverage.py
@@ -242,7 +242,14 @@ def _summary_variants(in_file, out_file):
cg = list()
with file_transaction(out_file) as out_tx:
for p_point in [... | Avoid error if DP is not in VCF file. #<I> Some callers won't have the DP in the final VCF, then the variant_summary fails. Ignore all those cases where "." is given, and only calculate quantiles if there are numeric values in the colum. | py |
diff --git a/pybar/scans/calibrate_plsr_dac_transient.py b/pybar/scans/calibrate_plsr_dac_transient.py
index <HASH>..<HASH> 100644
--- a/pybar/scans/calibrate_plsr_dac_transient.py
+++ b/pybar/scans/calibrate_plsr_dac_transient.py
@@ -155,7 +155,7 @@ class PlsrDacTransientCalibration(AnalogScan):
time.slee... | ENH: channel support for data readout | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -16,7 +16,7 @@ import sys
import os
import mock
-MOCK_MODULES = ['cython']
+MOCK_MODULES = ['cython', 'yara', 'zmq']
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.Mock() | adding other modules to mock so that import doesnt cause issues #<I> | py |
diff --git a/xtuml/meta.py b/xtuml/meta.py
index <HASH>..<HASH> 100644
--- a/xtuml/meta.py
+++ b/xtuml/meta.py
@@ -1173,4 +1173,8 @@ class MetaModel(object):
for ass in self.associations:
ass.formalize()
-
+
+ for inst in self.instances:
+ ... | meta: remove referential values from instances once links are formalized | py |
diff --git a/tests/test_plistlib.py b/tests/test_plistlib.py
index <HASH>..<HASH> 100644
--- a/tests/test_plistlib.py
+++ b/tests/test_plistlib.py
@@ -6,6 +6,7 @@ import codecs
import binascii
import collections
from io import BytesIO
+from numbers import Integral
import re
import pytest
@@ -17,12 +18,6 @@ with ... | test_plistlib: use numbers.Integral instead of (int, long) | py |
diff --git a/airflow/providers/google/cloud/operators/presto_to_gcs.py b/airflow/providers/google/cloud/operators/presto_to_gcs.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/google/cloud/operators/presto_to_gcs.py
+++ b/airflow/providers/google/cloud/operators/presto_to_gcs.py
@@ -76,11 +76,11 @@ class _Presto... | fixed typo (#<I>) | py |
diff --git a/testing/test_plugin.py b/testing/test_plugin.py
index <HASH>..<HASH> 100644
--- a/testing/test_plugin.py
+++ b/testing/test_plugin.py
@@ -45,6 +45,11 @@ def test_auto_detect_cpus(testdir, monkeypatch):
config = testdir.parseconfigure("-nauto")
assert config.getoption('numprocesses') == 99
+ ... | Add coverage test for Travis CI workaround | py |
diff --git a/imgsizer.py b/imgsizer.py
index <HASH>..<HASH> 100755
--- a/imgsizer.py
+++ b/imgsizer.py
@@ -129,6 +129,7 @@ class ImgSizer(object):
quality = int(quality) if quality else 75
format = req.get.get('format') or req.get.get('f')
format = format.lower() if format else os.path.splite... | ImgSizer: "jpg" extension should really be "jpeg". | py |
diff --git a/python/dllib/src/test/bigdl/test_tensorflow.py b/python/dllib/src/test/bigdl/test_tensorflow.py
index <HASH>..<HASH> 100644
--- a/python/dllib/src/test/bigdl/test_tensorflow.py
+++ b/python/dllib/src/test/bigdl/test_tensorflow.py
@@ -38,9 +38,14 @@ class TestTensorflow():
model_original.save_tenso... | [new feature]add generateBackward for loadTF (#<I>) | py |
diff --git a/hn/hn.py b/hn/hn.py
index <HASH>..<HASH> 100644
--- a/hn/hn.py
+++ b/hn/hn.py
@@ -229,7 +229,7 @@ class Story(object):
## Builds a flat list of comments
# level of comment, starting with 0
- level = int(row.findChildren('td')[1].find('im... | fix level int vs float division for py3 | py |
diff --git a/openquake/hazardlib/gsim/si_midorikawa_1999.py b/openquake/hazardlib/gsim/si_midorikawa_1999.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/gsim/si_midorikawa_1999.py
+++ b/openquake/hazardlib/gsim/si_midorikawa_1999.py
@@ -224,7 +224,7 @@ def _get_stddevs_asc(trt, stddev_types, rrup):
@_get_s... | Refactored si_midorikawa_<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,6 +21,8 @@ README = read('README.md')
mkdir_p('/usr/local/share/hendrix')
setup(
+ author = "hangarunderground",
+ author_email = "hendrix@reelio.com",
name = "hendrix",
packages = find_packages(),
... | pypi complains about authors | py |
diff --git a/tests/integration/py2/nupic/engine/network_twonode_test.py b/tests/integration/py2/nupic/engine/network_twonode_test.py
index <HASH>..<HASH> 100755
--- a/tests/integration/py2/nupic/engine/network_twonode_test.py
+++ b/tests/integration/py2/nupic/engine/network_twonode_test.py
@@ -168,22 +168,14 @@ class N... | Replace try blocks with self.assertRaises | py |
diff --git a/insights/core/dr.py b/insights/core/dr.py
index <HASH>..<HASH> 100644
--- a/insights/core/dr.py
+++ b/insights/core/dr.py
@@ -131,6 +131,8 @@ def get_dependents(component):
def add_dependency(component, dep):
+ group = get_group(component)
+ COMPONENTS[group][component].add(dep)
DEPENDENTS[... | Add added deps to the COMPONENTS dep graph under the component group. | py |
diff --git a/openid/association.py b/openid/association.py
index <HASH>..<HASH> 100644
--- a/openid/association.py
+++ b/openid/association.py
@@ -123,7 +123,7 @@ class Association(object):
self.lifetime = lifetime
self.assoc_type = assoc_type
- def getExpiresIn(self):
+ def getExpiresIn(self,... | [project @ Allow passing a timestamp to getExpiresIn] | py |
diff --git a/pipenv/cli.py b/pipenv/cli.py
index <HASH>..<HASH> 100644
--- a/pipenv/cli.py
+++ b/pipenv/cli.py
@@ -365,15 +365,12 @@ def find_a_system_python(python):
if os.name == 'nt':
possibility = '{0}.exe'.format(possibility)
- versions = []
pythons = system_... | simplify code in find_a_system_python | py |
diff --git a/reana_db/version.py b/reana_db/version.py
index <HASH>..<HASH> 100644
--- a/reana_db/version.py
+++ b/reana_db/version.py
@@ -14,4 +14,4 @@ and parsed by ``setup.py``.
from __future__ import absolute_import, print_function
-__version__ = "0.8.0a1"
+__version__ = "0.8.0a2" | release: <I>a2 | py |
diff --git a/taxi/timesheet/__init__.py b/taxi/timesheet/__init__.py
index <HASH>..<HASH> 100644
--- a/taxi/timesheet/__init__.py
+++ b/taxi/timesheet/__init__.py
@@ -31,8 +31,9 @@ class Timesheet(object):
# This is a mapping between entries hashes and their
# position in the entries_f... | Forward-port eaf<I>f<I>e<I>ad<I>c<I>ecf7b5e<I> (fix entries grouping if they follow an ignored entry) to master | py |
diff --git a/howdoi/howdoi.py b/howdoi/howdoi.py
index <HASH>..<HASH> 100755
--- a/howdoi/howdoi.py
+++ b/howdoi/howdoi.py
@@ -445,12 +445,14 @@ def _get_answers(args):
_get_answer_worker,
[(args, link) for link in question_links]
)
-
- for idx, _ in enumerate(answers):
- an... | filter empty results from answers * fix "total answers" logging message counting empty results * return False from `_get_answers` if the only results had no answer | py |
diff --git a/remind.py b/remind.py
index <HASH>..<HASH> 100644
--- a/remind.py
+++ b/remind.py
@@ -470,6 +470,8 @@ class Remind(object):
outdat = self.to_reminders(readOne(ical))
open(filename, 'a').write(outdat)
+ return Remind._get_uid(outdat)
+
def remove(self, uid, filename=N... | Return Remind UID of appended vobject | py |
diff --git a/test/test_query.py b/test/test_query.py
index <HASH>..<HASH> 100644
--- a/test/test_query.py
+++ b/test/test_query.py
@@ -345,8 +345,14 @@ FROM
# assert get_query_columns(sales_query) == ['staff_id', 'order_count', 'order_date']
-def test_query_with_having():
+def test_table_name_with_alias():
+ ... | test_query_with_having -> test_table_name_with_alias + more test cases | py |
diff --git a/tldr.py b/tldr.py
index <HASH>..<HASH> 100644
--- a/tldr.py
+++ b/tldr.py
@@ -43,7 +43,7 @@ def get_page(command, platform=None):
raise
print(command + " documentation is not available\n"
- "Consider contributing Pull Request to https://github.com/rprieto/tldr")
+ ... | Changing URL for sending PR With the move of the repos into another organization, the URL for the base tldr project has changed. Updating the message to reflect this change | py |
diff --git a/timeside/encoder/__init__.py b/timeside/encoder/__init__.py
index <HASH>..<HASH> 100644
--- a/timeside/encoder/__init__.py
+++ b/timeside/encoder/__init__.py
@@ -5,5 +5,5 @@ from ogg import *
from wav import *
from mp3 import *
from flac import *
-# from m4a import *
-# from webm import *
+from m4a impo... | re-include m4a and webm | py |
diff --git a/salt/master.py b/salt/master.py
index <HASH>..<HASH> 100644
--- a/salt/master.py
+++ b/salt/master.py
@@ -622,7 +622,9 @@ class MWorker(multiprocessing.Process):
return
self.crypticle = salt.crypt.Crypticle(self.opts, aes)
self.clear_funcs.crypticle = self.cryptic... | move the aes key location so that the correct NEW key is sent Fix #<I> | py |
diff --git a/wechatpy/pay/__init__.py b/wechatpy/pay/__init__.py
index <HASH>..<HASH> 100644
--- a/wechatpy/pay/__init__.py
+++ b/wechatpy/pay/__init__.py
@@ -28,7 +28,7 @@ def _is_api_endpoint(obj):
class WeChatPay(object):
"""
微信支付接口
-
+
:param appid: 微信公众号 appid
:param api_key: 商户 key
:... | Parse some fields as int in WeChat payment result, fixes #<I> | py |
diff --git a/graphql_compiler/query_pagination/__init__.py b/graphql_compiler/query_pagination/__init__.py
index <HASH>..<HASH> 100644
--- a/graphql_compiler/query_pagination/__init__.py
+++ b/graphql_compiler/query_pagination/__init__.py
@@ -3,9 +3,9 @@ from collections import namedtuple
from graphql.language.print... | Refactor-only: Use local imports (#<I>) | py |
diff --git a/thinc/tests/layers/test_layers_api.py b/thinc/tests/layers/test_layers_api.py
index <HASH>..<HASH> 100644
--- a/thinc/tests/layers/test_layers_api.py
+++ b/thinc/tests/layers/test_layers_api.py
@@ -68,6 +68,7 @@ TEST_CASES = [
# List to list
("BiLSTM.v0", {}, [array2d, array2d], [array2d, array2d... | Add PyTorchBiLSTM.v0 for when it's ready | py |
diff --git a/zinnia/tests/__init__.py b/zinnia/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/zinnia/tests/__init__.py
+++ b/zinnia/tests/__init__.py
@@ -1,7 +1,6 @@
"""Unit tests for Zinnia"""
from unittest import TestSuite
from unittest import TestLoader
-from django.conf import settings
from zinnia.tests.... | Does not make distinction anymore if django_xmlrpc is not installed | py |
diff --git a/mautrix/util/config.py b/mautrix/util/config.py
index <HASH>..<HASH> 100644
--- a/mautrix/util/config.py
+++ b/mautrix/util/config.py
@@ -44,7 +44,10 @@ class RecursiveDict(Generic[T]):
if next_key is not None:
next_data = data.get(key, self._dict_factory())
return self._... | Add safety against incorrect type in recursive get | py |
diff --git a/ricecooker/classes/nodes.py b/ricecooker/classes/nodes.py
index <HASH>..<HASH> 100644
--- a/ricecooker/classes/nodes.py
+++ b/ricecooker/classes/nodes.py
@@ -319,11 +319,12 @@ class ContentNode(TreeNode):
"""
from .files import DownloadFile
assert isinstance(self.license, str) or... | Temporarily comment out required_file_format check until we rethink | py |
diff --git a/howdoi/howdoi.py b/howdoi/howdoi.py
index <HASH>..<HASH> 100755
--- a/howdoi/howdoi.py
+++ b/howdoi/howdoi.py
@@ -7,6 +7,8 @@
# inspired by Rich Jones (rich@anomos.info)
#
######################################################
+import gc
+gc.disable() # disable right at the start, we don't need it
im... | Disable gc, we don't need it and it nets us <I>+ms | py |
diff --git a/tools/run_tests/run_tests_matrix.py b/tools/run_tests/run_tests_matrix.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_tests_matrix.py
+++ b/tools/run_tests/run_tests_matrix.py
@@ -182,7 +182,7 @@ def _create_test_jobs(extra_args=[], inner_jobs=_DEFAULT_INNER_JOBS):
# sanity tests
test_j... | Only dbg for sanity test | py |
diff --git a/tpot/base.py b/tpot/base.py
index <HASH>..<HASH> 100644
--- a/tpot/base.py
+++ b/tpot/base.py
@@ -912,14 +912,13 @@ class TPOTBase(BaseEstimator):
# Check we do not evaluate twice the same individual in one pass.
_, unique_individual_indices = np.unique([str(ind) for ind in individuals], ... | Removed some other lines which should have been removed with the previous commit. | py |
diff --git a/ajax/server.py b/ajax/server.py
index <HASH>..<HASH> 100644
--- a/ajax/server.py
+++ b/ajax/server.py
@@ -64,11 +64,11 @@ class AjaxServerHandler(BaseHTTPRequestHandler):
return self._respond_to_request('wrong-login')
try:
self.server.desk.request_media(media, user)
- except Denied:
- return ... | ajax: server: add exception text to denied reuqest | py |
diff --git a/tests/test_self.py b/tests/test_self.py
index <HASH>..<HASH> 100644
--- a/tests/test_self.py
+++ b/tests/test_self.py
@@ -931,7 +931,10 @@ class TestRunTC:
with tmpdir.as_cwd():
orig_pythonpath = os.environ.get("PYTHONPATH")
- os.environ["PYTHONPATH"] = "."
+ i... | Fix regession with sys.path filter (2) | py |
diff --git a/fermipy/hpx_utils.py b/fermipy/hpx_utils.py
index <HASH>..<HASH> 100644
--- a/fermipy/hpx_utils.py
+++ b/fermipy/hpx_utils.py
@@ -594,13 +594,13 @@ class HpxToWcsMapping(object):
"""
self._hpx = hpx
self._wcs = wcs
- if map_data is None:
+ if mapping_data is None:
... | Fix variable name in HpxToWcsMapping | py |
diff --git a/karaage/software/forms.py b/karaage/software/forms.py
index <HASH>..<HASH> 100644
--- a/karaage/software/forms.py
+++ b/karaage/software/forms.py
@@ -43,7 +43,7 @@ class SoftwarePackageForm(forms.Form):
package.homepage = data['homepage']
package.tutorial_url = data['tutorial_url']
... | Minnor bug in software form when adding restricted software | py |
diff --git a/anchore/anchore_utils.py b/anchore/anchore_utils.py
index <HASH>..<HASH> 100644
--- a/anchore/anchore_utils.py
+++ b/anchore/anchore_utils.py
@@ -1254,6 +1254,30 @@ def get_distro_from_path(inpath):
if not meta['LIKEDISTRO']:
meta['LIKEDISTRO'] = meta['DISTRO']
+ #
+ # some experiment... | some commented out code experimenting with alternative parsing of debian os files | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.