diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/console/test_suite.py b/console/test_suite.py
index <HASH>..<HASH> 100644
--- a/console/test_suite.py
+++ b/console/test_suite.py
@@ -420,7 +420,9 @@ if True: # fold
text = 'foo'
utils.set_title(text)
# xterm, make, mate term, iterm2
- possible_results = (text, None, 'Ter... | fix: iterm title test, had to enable also. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,7 @@ extensions = [
]
setup(name='audiocalc',
- version='0.0.4',
+ version='0.0.5',
description='A few audio/sound calculation utilities',
long_description=description,
author='Marian Steinba... | Version <I> Now including a fast Cython extension. | py |
diff --git a/edc_sync/mixins/sync_mixin.py b/edc_sync/mixins/sync_mixin.py
index <HASH>..<HASH> 100644
--- a/edc_sync/mixins/sync_mixin.py
+++ b/edc_sync/mixins/sync_mixin.py
@@ -37,10 +37,12 @@ class SyncMixin(object):
def action(self, created=None, deleted=None):
if created is True:
return ... | Update sync_mixin.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,8 +45,12 @@ setup(
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
+ 'Programming Language :: Python :: 2.6',
'Progr... | REL: add Trove classifiers for Python <I>, <I>, <I>, <I> Addition of these classifiers signifies support of these Python versions, so this change is ordered after testing with these Python versions on Travis CI. | py |
diff --git a/tests/test_registry.py b/tests/test_registry.py
index <HASH>..<HASH> 100644
--- a/tests/test_registry.py
+++ b/tests/test_registry.py
@@ -127,17 +127,17 @@ class C:
class ASchema(Schema):
id = fields.Integer()
- b = fields.Nested("BSchema", exclude=("a",))
+ b = fields.Nested("tests.test_regi... | Make tests not depend on execution order (#<I>) * Make tests not depend on execution order * Add pytest-randomly * Revert pytest-randomly addition | py |
diff --git a/salmon/apps/monitor/management/commands/run_checks.py b/salmon/apps/monitor/management/commands/run_checks.py
index <HASH>..<HASH> 100644
--- a/salmon/apps/monitor/management/commands/run_checks.py
+++ b/salmon/apps/monitor/management/commands/run_checks.py
@@ -29,6 +29,8 @@ class Command(BaseCommand):
... | checks get switched between active and inactive based on the definition | py |
diff --git a/pyhomematic/devicetypes/sensors.py b/pyhomematic/devicetypes/sensors.py
index <HASH>..<HASH> 100644
--- a/pyhomematic/devicetypes/sensors.py
+++ b/pyhomematic/devicetypes/sensors.py
@@ -3,6 +3,7 @@ from pyhomematic.devicetypes.generic import HMDevice
from pyhomematic.devicetypes.misc import HMEvent, Remot... | Adding OPERATING_VOLTAGE to IPShutterContact HMIP-SWDO-I hats Voltage, I guess also the other. | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -3109,6 +3109,9 @@ class ProxyMinion(Minion):
self.utils = salt.loader.utils(self.opts, proxy=self.proxy)
self.proxy.pack['__utils__'] = self.utils
+ # Reload all modules so a... | Invoked reload_modules before initializing the ProxyMinion so all dunders are injected | py |
diff --git a/httpretty/core.py b/httpretty/core.py
index <HASH>..<HASH> 100644
--- a/httpretty/core.py
+++ b/httpretty/core.py
@@ -882,7 +882,7 @@ class httpretty(HttpBaseClass):
def match_uriinfo(cls, info):
items = sorted(
cls._entries.items(),
- key=lambda (matcher, _): matcher.... | Python 3.x compatibility fix Tuple unpacking removed as of <I>, see PEP <I>. | py |
diff --git a/test/TodoListTest.py b/test/TodoListTest.py
index <HASH>..<HASH> 100644
--- a/test/TodoListTest.py
+++ b/test/TodoListTest.py
@@ -23,9 +23,10 @@ class TodoListTester(unittest.TestCase):
def test_add(self):
text = "(C) Adding a new task @Context3 +Project3"
+ count = self.todolist.cou... | Make test for add a bit more robust. | py |
diff --git a/slackeventsapi/server.py b/slackeventsapi/server.py
index <HASH>..<HASH> 100644
--- a/slackeventsapi/server.py
+++ b/slackeventsapi/server.py
@@ -22,16 +22,14 @@ class SlackServer(Flask):
event_data.get("challenge"), 200, {"content_type": "application/json"}
)
+ ... | modified token verification (#6) * modified token verification * added exception to token verification * moved token verification after challenge * removed whitespace | py |
diff --git a/bakery/tasks.py b/bakery/tasks.py
index <HASH>..<HASH> 100644
--- a/bakery/tasks.py
+++ b/bakery/tasks.py
@@ -92,7 +92,7 @@ def project_state_get(login, project_id, full=False):
def project_state_save(login, project_id, state):
yml = os.path.join(WORK_DATA_ROOT, '%(login)s/%(project_id)s.yml' % local... | Safe dump, for more convenient yaml file | py |
diff --git a/mpop/instruments/visir.py b/mpop/instruments/visir.py
index <HASH>..<HASH> 100644
--- a/mpop/instruments/visir.py
+++ b/mpop/instruments/visir.py
@@ -120,23 +120,7 @@ class VisirCompositer(Compositer):
def night_overview(self, stretch='histogram', gamma=None):
"""Make an overview RGB image co... | night_overview is just like cloudtop | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ setup.py
"""
from setuptools import setup, find_packages
-__VERSION = '0.4.1'
+__VERSION = '0.4.2'
setup(
name='delta', | fudged up previous <I> release so lets make a <I> that is top of master | py |
diff --git a/ropetest/refactor/patchedasttest.py b/ropetest/refactor/patchedasttest.py
index <HASH>..<HASH> 100644
--- a/ropetest/refactor/patchedasttest.py
+++ b/ropetest/refactor/patchedasttest.py
@@ -789,6 +789,8 @@ class _ResultChecker(object):
if expected == '' or isinstance(child, basestring):
... | patchedasttest: fail when an empty str is passed for a node | py |
diff --git a/venv_update.py b/venv_update.py
index <HASH>..<HASH> 100644
--- a/venv_update.py
+++ b/venv_update.py
@@ -517,6 +517,10 @@ def stage1(venv_path, reqs):
if not exists(python):
return 'virtualenv executable not found: %s' % python
+ # ensure that a compatible version of pip is installed
+ ... | ensure that a compatible version of pip is installed This diff pegs the version to <I>, it seems that <I> changed the api and doesn't work, and <I> doesn't contain pip._vendor. | py |
diff --git a/odl/operator/solvers.py b/odl/operator/solvers.py
index <HASH>..<HASH> 100644
--- a/odl/operator/solvers.py
+++ b/odl/operator/solvers.py
@@ -227,7 +227,7 @@ class BacktrackingLineSearch(object):
self.function = function
self.tau = tau
self.c = c
- self.num_iter = 0
+ ... | Update in backtracking line search: another bug corrected, + adding total count on total number of iterations | py |
diff --git a/macroeco/empirical/_empirical.py b/macroeco/empirical/_empirical.py
index <HASH>..<HASH> 100644
--- a/macroeco/empirical/_empirical.py
+++ b/macroeco/empirical/_empirical.py
@@ -627,6 +627,14 @@ def sar(patch, cols, splits, divs, ear=False):
divs="1,1; 1,2; 2,1; 2,2; 2,4; 4,2; 4,4")
... | Added sar table into sar docstring | py |
diff --git a/auto_ml/predictor.py b/auto_ml/predictor.py
index <HASH>..<HASH> 100644
--- a/auto_ml/predictor.py
+++ b/auto_ml/predictor.py
@@ -1085,6 +1085,15 @@ class Predictor(object):
df_results = df_features
# Sort by coefficients or feature importances
+ try:
+ df_results ... | sorts advanced_analytics by importance or coefficientst | py |
diff --git a/pyemma/coordinates/data/sources_merger.py b/pyemma/coordinates/data/sources_merger.py
index <HASH>..<HASH> 100644
--- a/pyemma/coordinates/data/sources_merger.py
+++ b/pyemma/coordinates/data/sources_merger.py
@@ -1,10 +1,13 @@
import numpy as np
+
+from pyemma._base.serialization.serialization import Ser... | [coor/sources merger] made serializable | py |
diff --git a/tests/shell/test_console.py b/tests/shell/test_console.py
index <HASH>..<HASH> 100644
--- a/tests/shell/test_console.py
+++ b/tests/shell/test_console.py
@@ -75,8 +75,12 @@ else:
while ps1 not in got:
char = to_str(process.stdout.read(1))
if not char:
- ... | Trying to debug shell console test | py |
diff --git a/luigi/parameter.py b/luigi/parameter.py
index <HASH>..<HASH> 100644
--- a/luigi/parameter.py
+++ b/luigi/parameter.py
@@ -713,7 +713,7 @@ class TaskParameter(Parameter):
When used programatically, the parameter should be specified
directly with the :py:class:`luigi.task.Task` (sub) class. Like
... | Update TaskParmeter to use updated library code (#<I>) task_family property is deprecated. | py |
diff --git a/bin/generate-exports.py b/bin/generate-exports.py
index <HASH>..<HASH> 100755
--- a/bin/generate-exports.py
+++ b/bin/generate-exports.py
@@ -278,7 +278,7 @@ def main(argv):
components = m.group('name').split('.')
if re.match(r'[A-Z]', components[-1]):
... | Minor fix to the generate-exports.py script Now that we correctly export the ol.animation.*, ol.easing.* and ol.coordinate.* symbols we can make the generate-exports.py script work for more cases. | py |
diff --git a/ayrton/remote.py b/ayrton/remote.py
index <HASH>..<HASH> 100644
--- a/ayrton/remote.py
+++ b/ayrton/remote.py
@@ -400,6 +400,8 @@ client.close () # 46"
self.result_listen.close ()
logger.debug ('closing %s', self.remote)
s... | [*] fix another file leak, finally fixing the unit tests! | py |
diff --git a/python-package/xgboost/core.py b/python-package/xgboost/core.py
index <HASH>..<HASH> 100644
--- a/python-package/xgboost/core.py
+++ b/python-package/xgboost/core.py
@@ -1118,7 +1118,7 @@ class DeviceQuantileDMatrix(DMatrix):
ctypes.c_int(self.max_bin),
ctypes.byref(handle),
... | Fix pylint. (#<I>) | py |
diff --git a/influxdb/tests/server_tests/influxdb_instance.py b/influxdb/tests/server_tests/influxdb_instance.py
index <HASH>..<HASH> 100644
--- a/influxdb/tests/server_tests/influxdb_instance.py
+++ b/influxdb/tests/server_tests/influxdb_instance.py
@@ -7,7 +7,7 @@ from __future__ import print_function
from __future_... | Fix import of distutils.spawn (#<I>) | py |
diff --git a/itglue/connection.py b/itglue/connection.py
index <HASH>..<HASH> 100644
--- a/itglue/connection.py
+++ b/itglue/connection.py
@@ -1,6 +1,7 @@
import requests
import json
import os
+import re
class Connection:
@@ -46,6 +47,7 @@ class Connection:
parsed_response = response.json()
da... | ITG-<I> convert all the dashes in the returned API responses into underscores | py |
diff --git a/multiqc/modules/qualimap/QM_BamQC.py b/multiqc/modules/qualimap/QM_BamQC.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/qualimap/QM_BamQC.py
+++ b/multiqc/modules/qualimap/QM_BamQC.py
@@ -554,7 +554,8 @@ def general_stats_headers (self):
'max': 100,
'min': 0,
'suffix': '%',... | adding formating of the % with two digit and scale changed | py |
diff --git a/pyxmpp/resolver.py b/pyxmpp/resolver.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/resolver.py
+++ b/pyxmpp/resolver.py
@@ -44,9 +44,7 @@ def load_resolv_conf():
search_list[:]=[]
def query(name,typ):
- if "." in name or not search_list:
- return do_query(name,typ)
- else:
+ if search_list:
e=None
... | - always use search_list and direct query | py |
diff --git a/powerline-bash.py b/powerline-bash.py
index <HASH>..<HASH> 100755
--- a/powerline-bash.py
+++ b/powerline-bash.py
@@ -7,10 +7,10 @@ import sys
import re
class Color:
- PATH_BG = 237
- PATH_FG = 250
+ PATH_BG = 237 # dark grey
+ PATH_FG = 250 # light grey
CWD_BG = 237
- CWD_FG = 254
... | Added more comments about the types of colors | py |
diff --git a/anndata/base.py b/anndata/base.py
index <HASH>..<HASH> 100644
--- a/anndata/base.py
+++ b/anndata/base.py
@@ -1412,7 +1412,7 @@ class AnnData(IndexMixin):
var.loc[vars_ad_in_res, ad.var.columns] = ad.var.loc[vars_res_in_ad, :]
obs = pd.concat(out_obss)
- uns = dict(ChainMap({... | fixed bug in uns assignment in concatenate | py |
diff --git a/astroid/raw_building.py b/astroid/raw_building.py
index <HASH>..<HASH> 100644
--- a/astroid/raw_building.py
+++ b/astroid/raw_building.py
@@ -19,7 +19,6 @@
import builtins
import inspect
-import logging
import os
import sys
import types
@@ -35,7 +34,6 @@ MANAGER = manager.AstroidManager()
_CONSTA... | Replace the broad excepts to more specialized exceptions like TypeError Also remove the logger which was used only for a single case. | py |
diff --git a/zipline/test_algorithms.py b/zipline/test_algorithms.py
index <HASH>..<HASH> 100644
--- a/zipline/test_algorithms.py
+++ b/zipline/test_algorithms.py
@@ -59,7 +59,8 @@ class TestAlgorithm():
at the close of a simulation.
"""
- def __init__(self, sid, amount, sid_filter=None):
+ def __init... | Fixed weird regression in TestAlgorithm. | py |
diff --git a/visidata/vd.py b/visidata/vd.py
index <HASH>..<HASH> 100755
--- a/visidata/vd.py
+++ b/visidata/vd.py
@@ -650,7 +650,7 @@ class Sheet:
'Base object for add-on inheritance.'
def __init__(self, name, *sources, columns=None):
self.name = name
- self.sources = sources
+ self.so... | Sheet.sources now a list so it can be modified | py |
diff --git a/examples/rate_limiting_test.py b/examples/rate_limiting_test.py
index <HASH>..<HASH> 100755
--- a/examples/rate_limiting_test.py
+++ b/examples/rate_limiting_test.py
@@ -1,8 +1,13 @@
-from seleniumbase import BaseCase
+"""
+This test demonstrates the use of the "rate_limited" decorator.
+You can use this d... | Update the rate_limited decorator test | py |
diff --git a/aioredis/commands/server.py b/aioredis/commands/server.py
index <HASH>..<HASH> 100644
--- a/aioredis/commands/server.py
+++ b/aioredis/commands/server.py
@@ -127,7 +127,10 @@ class ServerCommandsMixin:
return self.execute(b'DEBUG', 'SEGFAULT') # pragma: no cover
def flushall(self, async=Fa... | #<I>: add docsting to flsuhdb and flushall methods | py |
diff --git a/services/managers/discord_manager.py b/services/managers/discord_manager.py
index <HASH>..<HASH> 100644
--- a/services/managers/discord_manager.py
+++ b/services/managers/discord_manager.py
@@ -293,7 +293,7 @@ class DiscordManager:
group_ids.append(group_id)
except:
... | Corrected reference to wrong manager in group creation. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ from distutils.core import setup
#python setup.py sdist upload
setup(name='pygeotools',
- version='0.5.0',
+ version='0.6.0',
description='Libraries and command-line utilities for geospatial data pr... | Update setup.py for new release <I> | py |
diff --git a/openquake/hazardlib/tests/gsim/montalva_2016_test.py b/openquake/hazardlib/tests/gsim/montalva_2016_test.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/tests/gsim/montalva_2016_test.py
+++ b/openquake/hazardlib/tests/gsim/montalva_2016_test.py
@@ -33,21 +33,12 @@ class MontalvaEtAl2016SInterTestC... | Ported some GMPE test | py |
diff --git a/irs_reader/settings.py b/irs_reader/settings.py
index <HASH>..<HASH> 100644
--- a/irs_reader/settings.py
+++ b/irs_reader/settings.py
@@ -36,9 +36,13 @@ ALLOWED_VERSIONSTRINGS = [
'2013v3.0', '2013v3.1', '2013v4.0', '2014v5.0', '2014v6.0',
'2015v2.0', '2015v2.1', '2015v3.0', '2016v3.0', '2016v3.1... | experiment with updated versions, test against <I> schemas | py |
diff --git a/src/ossos-pipeline/pipeline/scramble.py b/src/ossos-pipeline/pipeline/scramble.py
index <HASH>..<HASH> 100755
--- a/src/ossos-pipeline/pipeline/scramble.py
+++ b/src/ossos-pipeline/pipeline/scramble.py
@@ -40,14 +40,6 @@ def scramble(expnums, ccd, version='p', dry_run=False):
continue
... | removed setting up links as we now run the pipeline on scrambles | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -261,8 +261,8 @@ def get_version_info():
# If this is a release or another kind of source distribution of PyCBC
except:
- version = '1.6.2'
- release = 'True'
+ version = '1.7.0dev'
+ re... | Set back to development (#<I>) | py |
diff --git a/peewee.py b/peewee.py
index <HASH>..<HASH> 100644
--- a/peewee.py
+++ b/peewee.py
@@ -185,6 +185,7 @@ class DQ(Leaf):
class Param(Leaf):
def __init__(self, data):
self.data = data
+ super(Param, self).__init__()
class Func(Leaf): | Fixing a small bug in param | py |
diff --git a/harpoon/collector.py b/harpoon/collector.py
index <HASH>..<HASH> 100644
--- a/harpoon/collector.py
+++ b/harpoon/collector.py
@@ -59,7 +59,9 @@ class Collector(Collector):
task_finder.find_tasks({})
def home_dir_configuration_location(self):
- return os.path.expanduser("~/.harpoon.ym... | Renaming ~/.harpoon.yml as ~/.harpoonrc.yml | py |
diff --git a/GPy/models/gplvm.py b/GPy/models/gplvm.py
index <HASH>..<HASH> 100644
--- a/GPy/models/gplvm.py
+++ b/GPy/models/gplvm.py
@@ -41,6 +41,12 @@ class GPLVM(GP):
else:
return np.random.randn(Y.shape[0], input_dim)
+ def getstate(self):
+ return GP.getstate(self)
+
+ def set... | GPLVM get/setstate added | py |
diff --git a/cmsplugin_cascade/clipboard/admin.py b/cmsplugin_cascade/clipboard/admin.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/clipboard/admin.py
+++ b/cmsplugin_cascade/clipboard/admin.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
+from django import VERSION as DJ... | Fix: readd compatibility for clipboard in Django<=<I> | py |
diff --git a/pysolr.py b/pysolr.py
index <HASH>..<HASH> 100644
--- a/pysolr.py
+++ b/pysolr.py
@@ -446,8 +446,10 @@ class Solr(object):
value = 'true'
else:
value = 'false'
- else:
+ elif isinstance(value, str):
value = unicode(value, errors='rep... | Fixed the case where the data being converted would be clean unicode. Thanks to acdha for submitting another version of this patch. | py |
diff --git a/pytradfri/api/libcoap_api.py b/pytradfri/api/libcoap_api.py
index <HASH>..<HASH> 100644
--- a/pytradfri/api/libcoap_api.py
+++ b/pytradfri/api/libcoap_api.py
@@ -103,10 +103,13 @@ class APIFactory:
"""Observe an endpoint."""
path = api_command.path
duration = api_command.observe_... | Libcoap observer timeout fix (#<I>) * Added -B flag to command * Raise error instead of fixing the users mistake | py |
diff --git a/alot/db/attachment.py b/alot/db/attachment.py
index <HASH>..<HASH> 100644
--- a/alot/db/attachment.py
+++ b/alot/db/attachment.py
@@ -86,8 +86,8 @@ class Attachment(object):
def get_mime_representation(self):
"""returns mime part that constitutes this attachment"""
part = deepcopy(se... | db/attachment: remove useless delete This dict key is deleted, and then promptly replaced. The deletion is useless, the replacement does the same thing. | py |
diff --git a/seed_stage_based_messaging/settings.py b/seed_stage_based_messaging/settings.py
index <HASH>..<HASH> 100644
--- a/seed_stage_based_messaging/settings.py
+++ b/seed_stage_based_messaging/settings.py
@@ -163,7 +163,9 @@ REST_FRAMEWORK = {
CELERY_RESULT_BACKEND = 'djcelery.backends.database:DatabaseBackend'
... | Change default BROKER_URL Everywhere else (production, docker-compose) we use a message queue like RabbitMQ as the Celery backed rather than Redis. It's possible to use Redis with Celery but I can't see anywhere that we do that. Update the default to make it clear that it's normally a message queue. | py |
diff --git a/wtframework/wtf/web/webdriver.py b/wtframework/wtf/web/webdriver.py
index <HASH>..<HASH> 100644
--- a/wtframework/wtf/web/webdriver.py
+++ b/wtframework/wtf/web/webdriver.py
@@ -18,8 +18,9 @@
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
fr... | Allow the test to continue, but print a warning if browser failed to maximize. | py |
diff --git a/src/collectors/ipvs/ipvs.py b/src/collectors/ipvs/ipvs.py
index <HASH>..<HASH> 100644
--- a/src/collectors/ipvs/ipvs.py
+++ b/src/collectors/ipvs/ipvs.py
@@ -31,7 +31,8 @@ class IPVSCollector(diamond.collector.Collector):
# prompting the user for a password.
self.command.insert(1,... | Quiet down the failure to run ipvsadm on diamond load | py |
diff --git a/ella/core/newman_admin.py b/ella/core/newman_admin.py
index <HASH>..<HASH> 100644
--- a/ella/core/newman_admin.py
+++ b/ella/core/newman_admin.py
@@ -376,7 +376,9 @@ class PublishableAdmin(newman.NewmanModelAdmin):
""" Default admin options for all publishables """
exclude = ('content_type',)
-... | Do not display comment options column, if comments is not installed. | py |
diff --git a/pycdlib/rockridge.py b/pycdlib/rockridge.py
index <HASH>..<HASH> 100644
--- a/pycdlib/rockridge.py
+++ b/pycdlib/rockridge.py
@@ -780,7 +780,7 @@ class RRSLRecord(object):
elif cr_flags & (1 << 2):
name += b".."
elif cr_flags & (1 << 3):
- name += b... | Deal with a root SL entry properly. In particular, if we run across a root entry, we want to throw away the earlier portions of the name, and just start again at the root. | py |
diff --git a/tailer/__main__.py b/tailer/__main__.py
index <HASH>..<HASH> 100644
--- a/tailer/__main__.py
+++ b/tailer/__main__.py
@@ -28,8 +28,9 @@ def _main(filepath, options):
else:
lines = tail(f, options.lines)
+ encoding = locale.getpreferredencoding()
... | Cache preferred encoding before printing. It can be an expansive call. | py |
diff --git a/django_cas_ng/backends.py b/django_cas_ng/backends.py
index <HASH>..<HASH> 100644
--- a/django_cas_ng/backends.py
+++ b/django_cas_ng/backends.py
@@ -6,6 +6,7 @@ import datetime
from django.utils.six.moves import urllib_parse
from django.utils.six.moves.urllib_request import urlopen, Request
from django... | The Authentication Backends are responsible for permissions handling. Make sure the CASBackend extends of ModelBackend. | py |
diff --git a/phoebe/backend/universe.py b/phoebe/backend/universe.py
index <HASH>..<HASH> 100644
--- a/phoebe/backend/universe.py
+++ b/phoebe/backend/universe.py
@@ -307,9 +307,9 @@ class System(object):
# distribution_models_per_body = [{'linear': np.array([0.5])}, {}]
# need to sum to 1 per... | handle case where frac_refl_bol=0 before was causing a divide by zero when computing the redistribution weights | py |
diff --git a/treetime/treetime.py b/treetime/treetime.py
index <HASH>..<HASH> 100644
--- a/treetime/treetime.py
+++ b/treetime/treetime.py
@@ -476,6 +476,7 @@ class TreeTime(ClockTree):
#(Without outgroup_branch_length, gives a trifurcating root, but this will mean
#mutations may have to occur... | sort clades by leaves after rooting | py |
diff --git a/benchmarks/utils.py b/benchmarks/utils.py
index <HASH>..<HASH> 100644
--- a/benchmarks/utils.py
+++ b/benchmarks/utils.py
@@ -49,7 +49,9 @@ class GeoBenchmarks:
def load_and_resample(self, composite, resampler, area=None, filenames=None):
"""Load and resample a composite or channel with resam... | Workaround for GH#<I> Add a workaround for GitHub issue <I> by copying readers dict from original scene to resampled scene. | py |
diff --git a/salt/modules/chocolatey.py b/salt/modules/chocolatey.py
index <HASH>..<HASH> 100644
--- a/salt/modules/chocolatey.py
+++ b/salt/modules/chocolatey.py
@@ -42,13 +42,14 @@ def _find_chocolatey():
'''
Returns the full path to chocolatey.bat on the host.
'''
- choc_default = 'C:\\Chocolatey\\... | Chocolately updated install dir. Check for two possible install locations | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ with open('README.md') as f:
long_description = f.read()
setup(name='kmapper',
- version='1.1.5',
+ version='1.1.6.dev0',
description='Python implementation of Mapper algorithm for Topolog... | incrementing version to catch up to dev status | py |
diff --git a/pymatgen/analysis/structure_analyzer.py b/pymatgen/analysis/structure_analyzer.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/structure_analyzer.py
+++ b/pymatgen/analysis/structure_analyzer.py
@@ -635,7 +635,7 @@ def get_dimensionality(structure, max_hkl=2, el_radius_updates=None,
structu... | allow element radius updates in get_dimensionality (originally intended, but forgot to add the flag) | py |
diff --git a/holoviews/core/dimension.py b/holoviews/core/dimension.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/dimension.py
+++ b/holoviews/core/dimension.py
@@ -268,7 +268,8 @@ class LabelledData(param.Parameterized):
settings = dict(params, **overrides)
if data is None and shared_data:
... | Classes with positional parameters can now declare them to clone method | py |
diff --git a/angr/analyses/cfg.py b/angr/analyses/cfg.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg.py
+++ b/angr/analyses/cfg.py
@@ -738,11 +738,12 @@ class CFG(Analysis, CFGBase):
state = current_entry.state
saved_state = current_entry.state # We don't have to make a copy here
try... | CFG: If keep_state is True, don't skip creating SimProcedures | py |
diff --git a/rootpy/logger/__init__.py b/rootpy/logger/__init__.py
index <HASH>..<HASH> 100644
--- a/rootpy/logger/__init__.py
+++ b/rootpy/logger/__init__.py
@@ -121,6 +121,9 @@ def log_trace(logger, level=logging.DEBUG, show_enter=True, show_exit=True):
args, kwargs... | log.trace() now shows exception value if one is raised | py |
diff --git a/tests/explainers/test_tree.py b/tests/explainers/test_tree.py
index <HASH>..<HASH> 100644
--- a/tests/explainers/test_tree.py
+++ b/tests/explainers/test_tree.py
@@ -326,6 +326,7 @@ def test_lightgbm():
def test_catboost():
try:
import catboost
+ from catboost.datasets import amazon
... | Added code in test_tree which fails when TreeExplainer is initialized on a CatBoost model whith tree_count < iterations | py |
diff --git a/ports/esp8266/modules/ntptime.py b/ports/esp8266/modules/ntptime.py
index <HASH>..<HASH> 100644
--- a/ports/esp8266/modules/ntptime.py
+++ b/ports/esp8266/modules/ntptime.py
@@ -17,10 +17,12 @@ def time():
NTP_QUERY[0] = 0x1b
addr = socket.getaddrinfo(host, 123)[0][-1]
s = socket.socket(sock... | esp<I>/modules/ntptime.py: Always close socket, and set day-of-week. Fixes issue #<I>. | py |
diff --git a/salt/returners/sqlite3_return.py b/salt/returners/sqlite3_return.py
index <HASH>..<HASH> 100644
--- a/salt/returners/sqlite3_return.py
+++ b/salt/returners/sqlite3_return.py
@@ -25,7 +25,7 @@ Use the commands to create the sqlite3 database and tables::
--
CREATE TABLE jids (
- jid integer ... | Fix data type in initial creation of jids table | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ Atomic primitives for Python.
Links
`````
-* `documentation <https://atomos.readthedocs.org/en/latest/>`_
+* `documentation <https://atomos.readthedocs.io/en/latest/>`_
* `development version <https://github.... | Convert readthedocs links for their .org -> .io migration for hosted projects As per [their blog post of the <I>th April](<URL>) ‘Securing subdomains’: > Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some se... | py |
diff --git a/pysat/utils/registry.py b/pysat/utils/registry.py
index <HASH>..<HASH> 100644
--- a/pysat/utils/registry.py
+++ b/pysat/utils/registry.py
@@ -165,7 +165,7 @@ def register(module_names, overwrite=False):
class Foo(object):
pass
- validate.package = Foo()
+ validate.inst... | BUG: update package to inst_loc in registry | py |
diff --git a/vecnet/openmalaria/input.py b/vecnet/openmalaria/input.py
index <HASH>..<HASH> 100644
--- a/vecnet/openmalaria/input.py
+++ b/vecnet/openmalaria/input.py
@@ -8,6 +8,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License (MPL), version 2.0. If a copy of the MPL was not distr... | Added deprication warning to XmlInputFile class | py |
diff --git a/h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oremove_all.py b/h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oremove_all.py
index <HASH>..<HASH> 100644
--- a/h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oremove_all.py
+++ b/h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oremove_all.py
@@ -13,9 +13,9 @@ def... | PUBDEV-<I> - Use method inspection compatible with Py 2&3 when inspecting h2o.removeAll() | py |
diff --git a/dipper/models/Dataset.py b/dipper/models/Dataset.py
index <HASH>..<HASH> 100644
--- a/dipper/models/Dataset.py
+++ b/dipper/models/Dataset.py
@@ -411,7 +411,7 @@ class Dataset:
LOG.debug("label: {label}\npartition id: %s", partition)
self.graph.addTriple(self.distribution_... | Removed hard coded rdfs:label curie | py |
diff --git a/jsonrpcclient/http_server.py b/jsonrpcclient/http_server.py
index <HASH>..<HASH> 100644
--- a/jsonrpcclient/http_server.py
+++ b/jsonrpcclient/http_server.py
@@ -21,13 +21,13 @@ class HTTPServer(Server):
"""
# The default HTTP header
- DEFAULT_HTTP_HEADERS = {
+ __DEFAULT_HTTP_HEADERS__ =... | Double underscore for private DEFAULT_HTTP_HEADERS Re #<I> | py |
diff --git a/tests/urls.py b/tests/urls.py
index <HASH>..<HASH> 100644
--- a/tests/urls.py
+++ b/tests/urls.py
@@ -2,7 +2,11 @@
from __future__ import absolute_import
from django.conf.urls import url
-from django.urls import include, path
+import django
+if django.VERSION[0] == 1:
+ from django.conf.urls import ... | Support for django 1.x vs 2.x | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,11 @@ setup(
name="Flask Shell IPython",
version="0.1",
py_modules=['flask_shell_ipython'],
+ install_requires=[
+ 'flask>=0.11',
+ 'click',
+ 'IPython',
+ ],
entry_points... | Add install_requires to setup.py | py |
diff --git a/references/video_classification/train.py b/references/video_classification/train.py
index <HASH>..<HASH> 100644
--- a/references/video_classification/train.py
+++ b/references/video_classification/train.py
@@ -268,7 +268,7 @@ def parse_args():
parser.add_argument('--epochs', default=45, type=int, meta... | Fix default in docs of references/video_classification/train.py (#<I>) | py |
diff --git a/tools/run_tests/python_utils/port_server.py b/tools/run_tests/python_utils/port_server.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/python_utils/port_server.py
+++ b/tools/run_tests/python_utils/port_server.py
@@ -46,7 +46,7 @@ import threading
# increment this number whenever making a change to e... | Add a mutex around allocate_port | py |
diff --git a/brozzler/chrome.py b/brozzler/chrome.py
index <HASH>..<HASH> 100644
--- a/brozzler/chrome.py
+++ b/brozzler/chrome.py
@@ -308,6 +308,8 @@ class Chrome:
'SIGKILL', self.chrome_process.pid, status)
finally:
+ self.chrome_process.stdout.close()
+ self.chro... | fix unclosed file warnings when running python in debug mode | py |
diff --git a/ImagePanel.py b/ImagePanel.py
index <HASH>..<HASH> 100644
--- a/ImagePanel.py
+++ b/ImagePanel.py
@@ -1449,6 +1449,9 @@ class InfoPanel(Panel.Panel):
self.__pending_info = None
self.__pending_info_mutex = threading.RLock()
+ # used to maintain the display when cursor is not movin... | Revert 'removed unused code' from yesterday. Ugh. svn r<I> | py |
diff --git a/ceph_deploy/connection.py b/ceph_deploy/connection.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/connection.py
+++ b/ceph_deploy/connection.py
@@ -2,18 +2,20 @@ import getpass
from ceph_deploy.lib.remoto import Connection
-def get_connection(hostname, username, logger, threads=5):
+def get_connecti... | allow to bypass the sudo detection in the connection obj | py |
diff --git a/tests/rules/test_git_remote_seturl_add.py b/tests/rules/test_git_remote_seturl_add.py
index <HASH>..<HASH> 100644
--- a/tests/rules/test_git_remote_seturl_add.py
+++ b/tests/rules/test_git_remote_seturl_add.py
@@ -14,8 +14,7 @@ def test_match(command):
Command('git remote add origin url'),
Comman... | Fix flake8 errors: E<I> closing bracket does not match indentation of opening bracket's line | py |
diff --git a/wp_configr/__init__.py b/wp_configr/__init__.py
index <HASH>..<HASH> 100644
--- a/wp_configr/__init__.py
+++ b/wp_configr/__init__.py
@@ -2,5 +2,5 @@
Classes initialization.
"""
-from wp_configr.wp_config_file import WpConfigFile
from wp_configr.wp_config_string import WpConfigString
+from wp_configr.... | Import base WpConfigString class before extended in WpConfigFile class | py |
diff --git a/source/rafcon/core/states/state.py b/source/rafcon/core/states/state.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/core/states/state.py
+++ b/source/rafcon/core/states/state.py
@@ -1042,7 +1042,6 @@ class State(Observable, YAMLObject, JSONObject, Hashable):
old_input_data_ports = self._input_... | chore(prints): remove debug prints | py |
diff --git a/ffpyplayer/__init__.py b/ffpyplayer/__init__.py
index <HASH>..<HASH> 100644
--- a/ffpyplayer/__init__.py
+++ b/ffpyplayer/__init__.py
@@ -12,8 +12,9 @@ __all__ = ('dep_bins', )
__version__ = '4.0.1.dev0'
version = __version__
-# Dec 2015, the ffmpeg src git version tested and upto date with, including ... | Update to ffmpeg master. | py |
diff --git a/check50/renderer/_renderers.py b/check50/renderer/_renderers.py
index <HASH>..<HASH> 100644
--- a/check50/renderer/_renderers.py
+++ b/check50/renderer/_renderers.py
@@ -27,13 +27,13 @@ class Encoder(json.JSONEncoder):
def to_html(slug, results, version=__version__):
with open(TEMPLATES / "results.... | rename vars in to_html | py |
diff --git a/salt/modules/ssh.py b/salt/modules/ssh.py
index <HASH>..<HASH> 100644
--- a/salt/modules/ssh.py
+++ b/salt/modules/ssh.py
@@ -1175,8 +1175,10 @@ def hash_known_hosts(user=None, config=None):
if not os.path.isfile(full):
return {'status': 'error',
'error': 'Known hosts file {0... | ssh: keep original permissions, when hashing known_hosts ssh-keygen sets the newly created known_hosts file's permissions to <I>. It's good for user's personal files, but bad idea for the global ones, like /etc/ssh/ssh_known_hosts. This patch record's the original file's permissions, and sets them on the hashed one af... | py |
diff --git a/tabula/section.py b/tabula/section.py
index <HASH>..<HASH> 100644
--- a/tabula/section.py
+++ b/tabula/section.py
@@ -103,6 +103,8 @@ class Section(object):
if self.auto_resize:
self.width = int(self._term_size()[0])
+ self.sort()
+
self.apply_meta()
if se... | added column sorter to sort each section | py |
diff --git a/bokeh/_legacy_charts/__init__.py b/bokeh/_legacy_charts/__init__.py
index <HASH>..<HASH> 100644
--- a/bokeh/_legacy_charts/__init__.py
+++ b/bokeh/_legacy_charts/__init__.py
@@ -18,9 +18,9 @@ from ._data_adapter import DataAdapter; DataAdapter
from ..models import ColumnDataSource; ColumnDataSource
fro... | Fix _legacy_charts tests by removing unused import of cursession | py |
diff --git a/scout/server/blueprints/variants/views.py b/scout/server/blueprints/variants/views.py
index <HASH>..<HASH> 100644
--- a/scout/server/blueprints/variants/views.py
+++ b/scout/server/blueprints/variants/views.py
@@ -277,6 +277,16 @@ def cancer_variants(institute_id, case_name):
page = int(request.ar... | Fix #<I>: activate cancer case on viewing variants. | py |
diff --git a/src/pyiso/pyiso.py b/src/pyiso/pyiso.py
index <HASH>..<HASH> 100644
--- a/src/pyiso/pyiso.py
+++ b/src/pyiso/pyiso.py
@@ -2851,7 +2851,15 @@ class PyIso(object):
dirs.append(child)
outfp.write(pad(outfp.tell(), self.joliet_vd.logical_block_size()))
- ... | Replace truncate call with manual writing of zeros. | py |
diff --git a/django_countries/widgets.py b/django_countries/widgets.py
index <HASH>..<HASH> 100644
--- a/django_countries/widgets.py
+++ b/django_countries/widgets.py
@@ -1,10 +1,12 @@
+from __future__ import unicode_literals
try:
from urllib import parse as urlparse
except ImportError:
import urlparse # ... | Remove escape function from widget, use format_html. `format_html` is the safest way to do this. | py |
diff --git a/abydos/clustering.py b/abydos/clustering.py
index <HASH>..<HASH> 100644
--- a/abydos/clustering.py
+++ b/abydos/clustering.py
@@ -88,7 +88,7 @@ def phonetic_fingerprint(phrase, phonetic_algorithm=double_metaphone, *args):
phonetic = ''
for word in phrase.split():
word = phonetic_algorith... | fixed Python3 version of phonetic_fingerprint (which was grabbing the first letter of strings, not just the first member of collections) | py |
diff --git a/salt/client/__init__.py b/salt/client/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/__init__.py
+++ b/salt/client/__init__.py
@@ -1283,6 +1283,13 @@ class LocalClient(object):
if raw['data']['return'] == {}:
continue
+ # if the minion throw... | Added handling for minion return exceptions containing the word "return" | py |
diff --git a/salt/modules/cmdmod.py b/salt/modules/cmdmod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cmdmod.py
+++ b/salt/modules/cmdmod.py
@@ -255,7 +255,10 @@ def _run(cmd,
)
if not _is_valid_shell(shell):
- log.warning('Attempt to run a shell command with what may be an invalid shell! C... | Fix misplaced parens in cmd.run From log.warning('snip').format(shell) to log.warning('snip'.format(shell)). Also broke up very long line which probably contributed to this being hard to spot. | py |
diff --git a/scripts/wrapper/docker_build.py b/scripts/wrapper/docker_build.py
index <HASH>..<HASH> 100755
--- a/scripts/wrapper/docker_build.py
+++ b/scripts/wrapper/docker_build.py
@@ -32,6 +32,8 @@ def call_docker_build(argv):
'.* Cannot find child for .*',
'.* Error getting container .* no such fi... | catch some more 'docker build' failures | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ class PyTest(TestCommand):
sys.exit(errno)
setup(name='georasters',
- version='0.5.2',
+ version='0.5.3',
description='Tools for working with Geographical Information System Rasters'... | updated version and seem basic info of package for PyPi | py |
diff --git a/tilequeue/process.py b/tilequeue/process.py
index <HASH>..<HASH> 100644
--- a/tilequeue/process.py
+++ b/tilequeue/process.py
@@ -72,9 +72,14 @@ def _postprocess_data(feature_layers, post_process_data):
for index, feature_layer in enumerate(feature_layers):
layer_datum = featu... | Fix bug where post-processing would only replace existing layers, not add new ones. | py |
diff --git a/tests/ignite/metrics/test_frequency.py b/tests/ignite/metrics/test_frequency.py
index <HASH>..<HASH> 100644
--- a/tests/ignite/metrics/test_frequency.py
+++ b/tests/ignite/metrics/test_frequency.py
@@ -23,7 +23,7 @@ def test_nondistributed_average():
def _test_frequency_with_engine(device, workers, lower_... | Reduced exec time of frequency tests (#<I>) | py |
diff --git a/zk_shell/shell.py b/zk_shell/shell.py
index <HASH>..<HASH> 100644
--- a/zk_shell/shell.py
+++ b/zk_shell/shell.py
@@ -245,6 +245,9 @@ class Shell(AugumentedCmd):
except CopyError as ex:
print(str(ex))
+ def complete_cp(self, cmd_param_text, full_cmd, start_idx, end_idx):
+ ... | Add path autocomplete for cp to be used with local copies | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.