diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/example/example/settings.py b/example/example/settings.py
index <HASH>..<HASH> 100644
--- a/example/example/settings.py
+++ b/example/example/settings.py
@@ -128,5 +128,5 @@ USE_TZ = True
STATIC_URL = '/static/'
-SON_EDITOR_JS = 'https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/9.1.6/jsoneditor.min.j... | Update settings.py Correcting typo | py |
diff --git a/salt/modules/influx.py b/salt/modules/influx.py
index <HASH>..<HASH> 100644
--- a/salt/modules/influx.py
+++ b/salt/modules/influx.py
@@ -490,7 +490,7 @@ def retention_policy_exists(database,
salt '*' influxdb.retention_policy_exists metrics default
'''
- policy = retention_policy_get(na... | Fix wrong order of retention_policy_exists (#<I>) The name of retention policy and database were reversed, so SaltStack was using rp name as database, so it returns "database does not exist" | py |
diff --git a/dingo/core/__init__.py b/dingo/core/__init__.py
index <HASH>..<HASH> 100644
--- a/dingo/core/__init__.py
+++ b/dingo/core/__init__.py
@@ -205,16 +205,19 @@ class NetworkDingo:
peak_load=lv_grid_district.peak_load_sum)
# choose LV transformer and assign to LV station
- ... | create obj for multiple LV trafos and assign to LV station | py |
diff --git a/PyFunceble.py b/PyFunceble.py
index <HASH>..<HASH> 100644
--- a/PyFunceble.py
+++ b/PyFunceble.py
@@ -18,6 +18,8 @@
# - Let's contribute to PyFunceble !
##########################################################################
+from time import strftime
+
class Settings(object):
"""
@@ -112,3 ... | Introduction of time into the dependencies + Introduction of current_datetime into the Settings() class | py |
diff --git a/nfc/clf/__init__.py b/nfc/clf/__init__.py
index <HASH>..<HASH> 100644
--- a/nfc/clf/__init__.py
+++ b/nfc/clf/__init__.py
@@ -961,8 +961,10 @@ class ContactlessFrontend(object):
if self.device is None:
raise IOError(errno.ENODEV, os.strerror(errno.ENODEV))
+ ... | also call Device.mute() before Device.listen() | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
setup(
name='aws-wsgi',
- version='0.0.8',
+ version='0.1.0',
description='WSGI adapter for AWS API Gateway/Lambda Proxy Inte... | Minor version bump to reflect new major feature | py |
diff --git a/kibitzer/storage.py b/kibitzer/storage.py
index <HASH>..<HASH> 100644
--- a/kibitzer/storage.py
+++ b/kibitzer/storage.py
@@ -39,6 +39,8 @@ class PageHistory(object):
def write(self, content):
with open(self.target, 'w', encoding='utf-8') as fp:
fp.write(content)
+ if ... | PersistentChanges: Ensure new-line at end of file | py |
diff --git a/codecov/__init__.py b/codecov/__init__.py
index <HASH>..<HASH> 100644
--- a/codecov/__init__.py
+++ b/codecov/__init__.py
@@ -638,7 +638,7 @@ def main(*argv, **kwargs):
if os.path.exists(opj(os.getcwd(), '.coverage')) and not os.path.exists(opj(os.getcwd(), 'coverage.xml')):
w... | also run `coverage combine` <URL> | py |
diff --git a/figment/zone.py b/figment/zone.py
index <HASH>..<HASH> 100644
--- a/figment/zone.py
+++ b/figment/zone.py
@@ -161,11 +161,13 @@ class Zone(object):
def start_ticker(self):
log.info('Ticking every %ss.' % self.tick_interval)
+ tock = False
while True:
- log.debug('... | Add silly clock noises to ticker debug output | py |
diff --git a/OpenPNM/Base/__Core__.py b/OpenPNM/Base/__Core__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Base/__Core__.py
+++ b/OpenPNM/Base/__Core__.py
@@ -230,6 +230,18 @@ class Core(dict):
objs.append(item.name)
return objs
+ @property
+ def _geometries(self):
+ ret... | Created helper/wrapper method that return a list of objects when _geoemtries etc is called, to maintain backwards compatibility | py |
diff --git a/chainlet_unittests/test_dataflow/test_decorators.py b/chainlet_unittests/test_dataflow/test_decorators.py
index <HASH>..<HASH> 100644
--- a/chainlet_unittests/test_dataflow/test_decorators.py
+++ b/chainlet_unittests/test_dataflow/test_decorators.py
@@ -1,12 +1,9 @@
-import itertools
import unittest
fr... | removed debug code from unittests | py |
diff --git a/commands.py b/commands.py
index <HASH>..<HASH> 100644
--- a/commands.py
+++ b/commands.py
@@ -158,7 +158,7 @@ class CommitCommand(ImportCommand):
def dump_str(self, names=None, child_lists=None, verbose=False):
result = [ImportCommand.dump_str(self, names, verbose=verbose)]
- for f i... | Fix dump_str to ensure CommitCommand.file_iter is an interator, not a callable | py |
diff --git a/mad/__init__.py b/mad/__init__.py
index <HASH>..<HASH> 100644
--- a/mad/__init__.py
+++ b/mad/__init__.py
@@ -17,7 +17,7 @@
# along with MAD. If not, see <http://www.gnu.org/licenses/>.
#
-__version__ = "0.2.0"
+__version__ = "0.2.1"
__copyright_years__ = "2015, 2016" | Preparing version <I> | py |
diff --git a/framer/protocol.py b/framer/protocol.py
index <HASH>..<HASH> 100644
--- a/framer/protocol.py
+++ b/framer/protocol.py
@@ -14,7 +14,10 @@
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
-import asyncio
+try:
+ import asyncio
+except ImportError:
+ import trollius as async... | Fix asyncio import The trollius library no longer installs as the 'asyncio' package, but as 'trollius'. Change the one import we have to import trollius as asyncio if asyncio is not present. | py |
diff --git a/heron/tools/cli/src/python/update.py b/heron/tools/cli/src/python/update.py
index <HASH>..<HASH> 100644
--- a/heron/tools/cli/src/python/update.py
+++ b/heron/tools/cli/src/python/update.py
@@ -35,7 +35,7 @@ def create_parser(subparsers):
args.add_topology(parser)
def parallelism_type(value):
- ... | Support components name generated by SummingBird. (#<I>) | py |
diff --git a/polyaxon/spawner/spawner.py b/polyaxon/spawner/spawner.py
index <HASH>..<HASH> 100644
--- a/polyaxon/spawner/spawner.py
+++ b/polyaxon/spawner/spawner.py
@@ -454,7 +454,7 @@ class K8SProjectSpawner(K8SManager):
if settings.K8S_INGRESS_ENABLED:
annotations = json.loads(settings.K8S_ING... | Redirect all tensorboard url in ingress | py |
diff --git a/nhe/surface/planar.py b/nhe/surface/planar.py
index <HASH>..<HASH> 100644
--- a/nhe/surface/planar.py
+++ b/nhe/surface/planar.py
@@ -42,7 +42,6 @@ class PlanarSurface(BaseSurface):
Implements a numerical approach to :meth:`distance calculation
<nhe.surface.base.BaseSurface.get_min_distan... | surface/planar: removed TODO comment about tests in get_min_distance() | py |
diff --git a/tests/test_handlers.py b/tests/test_handlers.py
index <HASH>..<HASH> 100644
--- a/tests/test_handlers.py
+++ b/tests/test_handlers.py
@@ -4,7 +4,6 @@ import importlib
import collections
import decimal
-import pytest
import six
import jsonpickle
@@ -25,17 +24,16 @@ def test_Decimal():
roundtrip(de... | Rewrite test to reflect suitability on Python 2 and Python 3. | py |
diff --git a/zengine/views/crud.py b/zengine/views/crud.py
index <HASH>..<HASH> 100644
--- a/zengine/views/crud.py
+++ b/zengine/views/crud.py
@@ -35,6 +35,11 @@ class CrudView(BaseView):
:type object: Model | None
"""
+ def __init__(self, current=None):
+ super(CrudView, self).__init__(current)
+... | still working on CrudViews ( zetaops/zengine#<I> ) | py |
diff --git a/djcelery_model/models.py b/djcelery_model/models.py
index <HASH>..<HASH> 100644
--- a/djcelery_model/models.py
+++ b/djcelery_model/models.py
@@ -1,8 +1,10 @@
# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
from django.db import models
from django.db.models import Q
from django.db.mode... | Simplify Python 2 and 3 unicode compatibility | py |
diff --git a/curdling/install.py b/curdling/install.py
index <HASH>..<HASH> 100644
--- a/curdling/install.py
+++ b/curdling/install.py
@@ -109,7 +109,11 @@ class Install(object):
return SUCCESS
def run_installer(self):
- self.installer.start()
+ if not self.maestro.mapping:
+ re... | Do not even start the installer if there is nothing to be done | py |
diff --git a/blargg/models.py b/blargg/models.py
index <HASH>..<HASH> 100644
--- a/blargg/models.py
+++ b/blargg/models.py
@@ -54,8 +54,8 @@ class Tag(models.Model):
class Entry(models.Model):
CONTENT_FORMAT_CHOICES = (
('html', 'HTML'),
- ('md', 'Markdown'),
- ('rst', 'reStructured Text'),... | included not about lack of md and rst support | py |
diff --git a/test/unit/TestIOSXRDriver.py b/test/unit/TestIOSXRDriver.py
index <HASH>..<HASH> 100644
--- a/test/unit/TestIOSXRDriver.py
+++ b/test/unit/TestIOSXRDriver.py
@@ -27,9 +27,7 @@ class TestConfigIOSXRDriver(unittest.TestCase, TestConfigNetworkDriver):
password = 'vagrant'
cls.vendor = 'iosxr... | Files have been YAPFed | py |
diff --git a/spyderlib/widgets/shell.py b/spyderlib/widgets/shell.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/shell.py
+++ b/spyderlib/widgets/shell.py
@@ -952,7 +952,7 @@ class PythonShellWidget(ShellBaseWidget):
obj_list = self.get_completion(try1)
if obj_list:
... | Python shells/code completion: typing "a = module." and pressing <TAB> was not showing code completion even if 'module' was already imported | py |
diff --git a/aws_xray_sdk/ext/sqlalchemy/util/decorators.py b/aws_xray_sdk/ext/sqlalchemy/util/decorators.py
index <HASH>..<HASH> 100644
--- a/aws_xray_sdk/ext/sqlalchemy/util/decorators.py
+++ b/aws_xray_sdk/ext/sqlalchemy/util/decorators.py
@@ -58,11 +58,14 @@ def xray_on_call(cls, func):
subsegment ... | Close segment even if error was raised | py |
diff --git a/jsonklog/handler.py b/jsonklog/handler.py
index <HASH>..<HASH> 100644
--- a/jsonklog/handler.py
+++ b/jsonklog/handler.py
@@ -14,3 +14,30 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+
+
+import logging
+import pymongo
+
+
+class MongoDB... | Added first handler for MongoDB | py |
diff --git a/limpyd/model.py b/limpyd/model.py
index <HASH>..<HASH> 100644
--- a/limpyd/model.py
+++ b/limpyd/model.py
@@ -69,6 +69,8 @@ class RedisModel(RedisProxyCommand):
newattr.name = attr.name
newattr._parent_class = attr._parent_class
newattr._instance = self
+ #... | Force cacheable of field to be correct Restore line remove in [c<I>d3] with a comment specifying why we set the cacheable attribute of a field when it's instanciated. (It's to always have a coherent value for the cacheable attribute of the field, even if we don't need it when cacheable is False in the model) | py |
diff --git a/filer/fields/image.py b/filer/fields/image.py
index <HASH>..<HASH> 100644
--- a/filer/fields/image.py
+++ b/filer/fields/image.py
@@ -1,13 +1,3 @@
-from django.utils.translation import ugettext as _
-from django.utils.text import truncate_words
-from django.utils import simplejson
-from django.db import mo... | pylint loves for fields/image.py | py |
diff --git a/avatar/util.py b/avatar/util.py
index <HASH>..<HASH> 100644
--- a/avatar/util.py
+++ b/avatar/util.py
@@ -22,7 +22,7 @@ def get_primary_avatar(user, size=80):
try:
user = User.objects.get(username=user)
except User.DoesNotExist:
- return get_default_avatar_url()
+ ... | Fixed issue #7: get_primary shouldn't return urls, it should return objects (or just None in that case) | py |
diff --git a/holoviews/plotting/bokeh/chart.py b/holoviews/plotting/bokeh/chart.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/chart.py
+++ b/holoviews/plotting/bokeh/chart.py
@@ -546,4 +546,6 @@ class BarPlot(ChartPlot):
crange = Range1d(*ranges.get(vdim))
plot = Bar(element.dframe(), ... | Allowed hiding legends on bokeh BarPlot | py |
diff --git a/sphinx/build_gallery.py b/sphinx/build_gallery.py
index <HASH>..<HASH> 100644
--- a/sphinx/build_gallery.py
+++ b/sphinx/build_gallery.py
@@ -1,7 +1,9 @@
from __future__ import print_function
import os
+import six
import webbrowser
+
from pygments import highlight
from pygments.lexers import PythonL... | Fix sphinx/build_gallery.py to work with Python 3 | py |
diff --git a/libargos/inspector/pgplugins/imageplot2d.py b/libargos/inspector/pgplugins/imageplot2d.py
index <HASH>..<HASH> 100644
--- a/libargos/inspector/pgplugins/imageplot2d.py
+++ b/libargos/inspector/pgplugins/imageplot2d.py
@@ -350,6 +350,17 @@ class PgImagePlot2d(AbstractInspector):
# Set the histogram... | Cross section plots are cleared in _clearContents | py |
diff --git a/tests/integ/test_git.py b/tests/integ/test_git.py
index <HASH>..<HASH> 100644
--- a/tests/integ/test_git.py
+++ b/tests/integ/test_git.py
@@ -15,6 +15,7 @@ from __future__ import absolute_import
import os
import numpy
+import pytest
import tempfile
from tests.integ import lock as lock
@@ -30,6 +31,... | fix: add pytest.mark.local_mode annotation to broken tests (#<I>) | py |
diff --git a/src/kba/pipeline/_pipeline.py b/src/kba/pipeline/_pipeline.py
index <HASH>..<HASH> 100644
--- a/src/kba/pipeline/_pipeline.py
+++ b/src/kba/pipeline/_pipeline.py
@@ -252,5 +252,10 @@ class Pipeline(object):
logger.critical(msg)
sys.exit(msg)
- ## put the Strea... | prevent bogus StreamItems from getting into the chunk | py |
diff --git a/gotesttarfile.py b/gotesttarfile.py
index <HASH>..<HASH> 100755
--- a/gotesttarfile.py
+++ b/gotesttarfile.py
@@ -69,6 +69,8 @@ def go_test_package(package, go_cmd, gopath, verbose=False):
env = dict(os.environ)
env['GOPATH'] = gopath
env['GOARCH'] = 'amd64'
+ version_cmd = [go_cmd, 'vers... | Add version and env print to windows unit test runs | py |
diff --git a/{{cookiecutter.project_slug}}/config/settings/common.py b/{{cookiecutter.project_slug}}/config/settings/common.py
index <HASH>..<HASH> 100644
--- a/{{cookiecutter.project_slug}}/config/settings/common.py
+++ b/{{cookiecutter.project_slug}}/config/settings/common.py
@@ -99,7 +99,6 @@ MANAGERS = ADMINS
# --... | Remove misleading comment (#<I>) ImproperlyConfigured exception won't raise because default value is passed. | py |
diff --git a/src/BayesianModel.py b/src/BayesianModel.py
index <HASH>..<HASH> 100644
--- a/src/BayesianModel.py
+++ b/src/BayesianModel.py
@@ -63,8 +63,7 @@ class BayesianModel(nx.DiGraph):
for start_node in tail:
self.add_edge(start_node, end_node)
- self.node[end_node]['_par... | Removed the alphabetical sorting when adding to _parents of a node | py |
diff --git a/dvc/version.py b/dvc/version.py
index <HASH>..<HASH> 100644
--- a/dvc/version.py
+++ b/dvc/version.py
@@ -6,7 +6,7 @@
import os
import subprocess
-_BASE_VERSION = "1.9.1"
+_BASE_VERSION = "1.10.0"
def _generate_version(base_version): | dvc: bump to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -693,4 +693,5 @@ o a (Fast)CGI web interface (requires HTTP server)
"py2exe": py2exe_options,
"py2app": py2app_options,
},
+ app = ['linkchecker-gui'],
) | Add py2app app entry. | py |
diff --git a/txkoji/estimates.py b/txkoji/estimates.py
index <HASH>..<HASH> 100644
--- a/txkoji/estimates.py
+++ b/txkoji/estimates.py
@@ -23,7 +23,7 @@ def average_build_duration(connection, package):
def average_build_durations(connection, packages):
"""
- Return the average build duration for a package (o... | estimates: document avg_build_durations accepts multiple packages This was a bad copy & paste from average_build_duration() | py |
diff --git a/tests/test_gitpuller.py b/tests/test_gitpuller.py
index <HASH>..<HASH> 100644
--- a/tests/test_gitpuller.py
+++ b/tests/test_gitpuller.py
@@ -59,7 +59,8 @@ class Pusher(Repository):
class Puller(Repository):
def __init__(self, remote, path='puller'):
super().__init__(path)
- self.gp =... | tests: use file:/// in Puller remote git modifies its behavior between plain file-path remotes and URI-specified remotes. For example, shallow clones are ignored for plain file-path remotes, but enabled for URI-specified remotes. Using the full URI specification makes our tests behave more like real-world nbgitpuller... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,5 @@
from os import path
+from io import open
from setuptools import setup, find_packages
this_directory = path.abspath(path.dirname(__file__)) | io.open has 'encoding' argument for Python <I> #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -87,6 +87,12 @@ setup(
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
+ 'Framework :: Django',
+ 'Framework :: ... | setup: added django trove classifiers | py |
diff --git a/websocket/_handshake.py b/websocket/_handshake.py
index <HASH>..<HASH> 100644
--- a/websocket/_handshake.py
+++ b/websocket/_handshake.py
@@ -184,11 +184,10 @@ def _validate(headers, key, subprotocols):
if subprotocols:
subproto = headers.get("sec-websocket-protocol", None)
- if subp... | Remove e<I>edd3 commit edits to fix TravisCI build (#<I>) | py |
diff --git a/tmuxp/testsuite/config.py b/tmuxp/testsuite/config.py
index <HASH>..<HASH> 100644
--- a/tmuxp/testsuite/config.py
+++ b/tmuxp/testsuite/config.py
@@ -1006,29 +1006,6 @@ class ConfigBlankPanes(TestCase):
class ConfigConsistency(TestCase):
- delete_this = """
- session_name: sampleconfig
- star... | Delete unused config in ConfigConsistency testsuite. | py |
diff --git a/tensorflow_probability/python/distributions/ordered_logistic.py b/tensorflow_probability/python/distributions/ordered_logistic.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/distributions/ordered_logistic.py
+++ b/tensorflow_probability/python/distributions/ordered_logistic.py
@@ -37,8 ... | fix typo in doc, should be num_outcomes = num_cutpoints + 1 | py |
diff --git a/varlink/__init__.py b/varlink/__init__.py
index <HASH>..<HASH> 100644
--- a/varlink/__init__.py
+++ b/varlink/__init__.py
@@ -3,11 +3,11 @@
See U{https://www.varlink.org} for more information about the varlink protocol and interface definition
files.
-For server implementations use the L{varlink.Server... | change to sphinx doc style | py |
diff --git a/subconvert/gui/MainWindow.py b/subconvert/gui/MainWindow.py
index <HASH>..<HASH> 100644
--- a/subconvert/gui/MainWindow.py
+++ b/subconvert/gui/MainWindow.py
@@ -124,9 +124,9 @@ class MainWindow(QMainWindow):
fileMenu.addSeparator()
fileMenu.addAction(self._actions["exit"])
- edi... | Changed 'Edit' menu to 'Subtitles' | py |
diff --git a/src/transformers/modeling_tf_albert.py b/src/transformers/modeling_tf_albert.py
index <HASH>..<HASH> 100644
--- a/src/transformers/modeling_tf_albert.py
+++ b/src/transformers/modeling_tf_albert.py
@@ -506,14 +506,14 @@ class TFAlbertMainLayer(tf.keras.layers.Layer):
raise NotImplementedError
... | Patch ALBERT with heads in TensorFlow | py |
diff --git a/python/pyspark/sql/utils.py b/python/pyspark/sql/utils.py
index <HASH>..<HASH> 100644
--- a/python/pyspark/sql/utils.py
+++ b/python/pyspark/sql/utils.py
@@ -118,7 +118,8 @@ def require_minimum_pandas_version():
from distutils.version import LooseVersion
import pandas
if LooseVersion(pandas.... | [SPARK-<I>][PYSPARK][SQL][FOLLOW-UP] Modify error messages to show actual versions. ## What changes were proposed in this pull request? This is a follow-up pr of #<I> modifying error messages for both pandas and pyarrow to show actual versions. ## How was this patch tested? Existing tests. | py |
diff --git a/gwpy/io/cache.py b/gwpy/io/cache.py
index <HASH>..<HASH> 100644
--- a/gwpy/io/cache.py
+++ b/gwpy/io/cache.py
@@ -85,7 +85,9 @@ class _CacheEntry(namedtuple(
# determine format
try:
- a, b, c, d, e = line.strip().split()
+ # NOTE: cast to `str` here to avoid unicod... | gwpy.io: workaround error in casting unicode to LIGOTimeGPS | py |
diff --git a/ontobio/rdfgen/assoc_rdfgen.py b/ontobio/rdfgen/assoc_rdfgen.py
index <HASH>..<HASH> 100644
--- a/ontobio/rdfgen/assoc_rdfgen.py
+++ b/ontobio/rdfgen/assoc_rdfgen.py
@@ -14,6 +14,7 @@ from rdflib.namespace import OWL
import rdflib
import logging
import uuid
+import re
ro = OboRO()
evt = Evidence()
@... | finding and replacing bad chars in ids for rdfgen | py |
diff --git a/motor/__init__.py b/motor/__init__.py
index <HASH>..<HASH> 100644
--- a/motor/__init__.py
+++ b/motor/__init__.py
@@ -655,15 +655,8 @@ class MotorBase(object):
return self.delegate == other.delegate
return NotImplemented
- get_lasterror_options = ReadOnlyProperty()
- ... | Remove support for some deprecated PyMongo features | py |
diff --git a/pygdbmi/gdbcontroller.py b/pygdbmi/gdbcontroller.py
index <HASH>..<HASH> 100644
--- a/pygdbmi/gdbcontroller.py
+++ b/pygdbmi/gdbcontroller.py
@@ -16,8 +16,8 @@ MUTEX_AQUIRE_WAIT_TIME_SEC = int(1)
USING_WINDOWS = os.name == 'nt'
if USING_WINDOWS:
import msvcrt
- from ctypes import windll, byref, w... | Fix Windows ctypes import. (#<I>) | py |
diff --git a/synapse/lib/view.py b/synapse/lib/view.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/view.py
+++ b/synapse/lib/view.py
@@ -491,13 +491,10 @@ class View(s_nexus.Pusher): # type: ignore
if user is None or user.isAdmin() or user.isAdmin(gateiden=parentlayr.iden):
return
- CH... | Initial pass as converting mergeAllowed from layer.splices to layer.iterLayerNodeEdits (#<I>) * convert mergeAllowed from using layer.splices to layer.iterLayerNodeEdits | py |
diff --git a/tensor2tensor/trax/rl/simple.py b/tensor2tensor/trax/rl/simple.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/trax/rl/simple.py
+++ b/tensor2tensor/trax/rl/simple.py
@@ -40,11 +40,17 @@ def load_trajectories(trajectory_dir, eval_frac):
for (subdir, _, filenames) in gfile.walk(trajectory_dir):
f... | Make SimPLe robust to corrupted trajectory shards. PiperOrigin-RevId: <I> | py |
diff --git a/openquakeserver/engine/views.py b/openquakeserver/engine/views.py
index <HASH>..<HASH> 100644
--- a/openquakeserver/engine/views.py
+++ b/openquakeserver/engine/views.py
@@ -26,6 +26,12 @@ def calc_hazard(request):
if not request.method == 'GET':
return HttpResponse(status=METHOD_NOT_ALLOWED)... | engine/views: Handle http or https request when constructing urls in JSON results. | 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
@@ -449,6 +449,9 @@ class Model(CallableModel):
return [sympy_to_py(component, self.vars, self.params) for component in self.chi_squared_jacobian]
def eval_jacobian(self, *a... | Added a docstring to Models eval_jac | py |
diff --git a/tryp/map.py b/tryp/map.py
index <HASH>..<HASH> 100644
--- a/tryp/map.py
+++ b/tryp/map.py
@@ -49,6 +49,9 @@ class Map(Dict[A, B], Generic[A, B]): # type: ignore
def __pow__(self, other: 'Map[A, B]'):
return Map(dicttoolz.merge(self, other))
+ def __sub__(self, key: A):
+ return M... | Map.__sub__ that removes an element by key | py |
diff --git a/parser.py b/parser.py
index <HASH>..<HASH> 100644
--- a/parser.py
+++ b/parser.py
@@ -198,6 +198,8 @@ class HTMLParser(object):
if not afe:
return
entry = afe[-1]
+ # XXX I've no idea if declaring this "i" here helps...
+ i = 0
if entry == Marker or ent... | missed a , and add some comments to reconstructActiveFormattingElements + declare a variable there although I'm not sure if it'll help --HG-- extra : convert_revision : svn%3Aacbfec<I>-<I>-<I>-a<I>-<I>a<I>e<I>e0/trunk%<I> | py |
diff --git a/passwords/validators.py b/passwords/validators.py
index <HASH>..<HASH> 100644
--- a/passwords/validators.py
+++ b/passwords/validators.py
@@ -6,10 +6,7 @@ import re
from django.conf import settings
from django.core.exceptions import ValidationError
from django.utils.translation import gettext_lazy as _
... | more django 4.x fixes | py |
diff --git a/NebulaPythonSDK/sdk.py b/NebulaPythonSDK/sdk.py
index <HASH>..<HASH> 100644
--- a/NebulaPythonSDK/sdk.py
+++ b/NebulaPythonSDK/sdk.py
@@ -62,7 +62,7 @@ class Nebula:
url = self.host + "/api/apps/" + app + "/update"
payload = json.dumps(config)
headers = self.headers
- resp... | update now uses put rather then post to allow updating only part of the app config | py |
diff --git a/atlassian/bamboo.py b/atlassian/bamboo.py
index <HASH>..<HASH> 100755
--- a/atlassian/bamboo.py
+++ b/atlassian/bamboo.py
@@ -565,7 +565,7 @@ class Bamboo(AtlassianRestAPI):
:return: GET request
"""
resource = "/build/admin/stopPlan.action?planKey={}".format(plan_key)
- re... | Bamboo: fix broken stop build (#<I>) | py |
diff --git a/openquake/java.py b/openquake/java.py
index <HASH>..<HASH> 100644
--- a/openquake/java.py
+++ b/openquake/java.py
@@ -21,8 +21,8 @@ Includes classpath arguments, and heap size."""
import logging
import os
import sys
-
import jpype
+import traceback
from celery.decorators import task as celery_task
... | Display the Java stack trace and error message when the exception is printed. | py |
diff --git a/salt/modules/disk.py b/salt/modules/disk.py
index <HASH>..<HASH> 100644
--- a/salt/modules/disk.py
+++ b/salt/modules/disk.py
@@ -54,7 +54,7 @@ def usage(args=None):
salt '*' disk.usage
'''
flags = _clean_flags(args, 'disk.usage')
- if not os.path.isfile('/etc/mtab'):
+ if not os.p... | BUG: Darwin does not necessarily need /etc/mtab present to run df for disk.usage function | py |
diff --git a/spyder/plugins/tests/test_ipythonconsole.py b/spyder/plugins/tests/test_ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/tests/test_ipythonconsole.py
+++ b/spyder/plugins/tests/test_ipythonconsole.py
@@ -92,7 +92,6 @@ def test_load_kernel_file_from_location(ipyconsole, qtbot):
ipycon... | Testing: Try to not skip test_load_kernel_file on Linux | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -44,11 +44,11 @@ except(IOError, ImportError):
setup(
name='esgfpid',
- version='0.7.3',
+ version='0.7.4-dev',
author='Merret Buurman, German Climate Computing Centre (DKRZ)',
author_email='buurman@dkr... | Incremented version number to <I>-dev. | py |
diff --git a/py/nupic/frameworks/opf/clamodel.py b/py/nupic/frameworks/opf/clamodel.py
index <HASH>..<HASH> 100644
--- a/py/nupic/frameworks/opf/clamodel.py
+++ b/py/nupic/frameworks/opf/clamodel.py
@@ -997,8 +997,9 @@ class CLAModel(Model):
"""
Returns reference to the network's Classifier region
"""
- ... | Fixes bug in model for getting classifier in the case where it doesn't exist. | py |
diff --git a/pyathena/common.py b/pyathena/common.py
index <HASH>..<HASH> 100644
--- a/pyathena/common.py
+++ b/pyathena/common.py
@@ -45,15 +45,15 @@ class CursorIterator(with_metaclass(ABCMeta, object)):
@abstractmethod
def fetchone(self):
- pass
+ raise NotImplementedError # pragma: no cov... | Fix abstract method to raise exceptions Exclude abstract method from coverage | py |
diff --git a/glymur/jp2dump.py b/glymur/jp2dump.py
index <HASH>..<HASH> 100644
--- a/glymur/jp2dump.py
+++ b/glymur/jp2dump.py
@@ -1,6 +1,7 @@
"""
Entry point for jp2dump script.
"""
+import warnings
from .jp2k import Jp2k
@@ -15,8 +16,22 @@ def jp2dump(filename, codestream=False):
codestream : optional, l... | Suppressing warnings until metadata printing is done. Closes #<I> | py |
diff --git a/tests/test_levenshtein.py b/tests/test_levenshtein.py
index <HASH>..<HASH> 100644
--- a/tests/test_levenshtein.py
+++ b/tests/test_levenshtein.py
@@ -344,11 +344,3 @@ class TestFindNearMatchesLevenshtein(TestFindNearMatchesLevenshteinBase,
unittest.TestCase):
def ... | remove find_near_matches() test which was testing the implementation method | py |
diff --git a/eng/tox/install_depend_packages.py b/eng/tox/install_depend_packages.py
index <HASH>..<HASH> 100644
--- a/eng/tox/install_depend_packages.py
+++ b/eng/tox/install_depend_packages.py
@@ -39,7 +39,7 @@ MINIMUM_VERSION_SUPPORTED_OVERRIDE = {
"six": "1.12.0",
}
-MAXIMUM_VERSION_SUPPORTED_OVERRIDE = {}
... | LatestDependency Breaking on pypy<I> (#<I>) * limit crypto | py |
diff --git a/py3status/modules/taskwarrior.py b/py3status/modules/taskwarrior.py
index <HASH>..<HASH> 100644
--- a/py3status/modules/taskwarrior.py
+++ b/py3status/modules/taskwarrior.py
@@ -4,9 +4,9 @@ Display tasks currently running in taskwarrior.
Configuration parameters:
cache_timeout: refresh interval for... | taskwarrior: fix params order The configuration parameters wherent in the right order, which made the linter complain | py |
diff --git a/ftfy/badness.py b/ftfy/badness.py
index <HASH>..<HASH> 100644
--- a/ftfy/badness.py
+++ b/ftfy/badness.py
@@ -141,7 +141,7 @@ MOJIBAKE_SYMBOL_RE = re.compile(
# Also left out eye-like letters, including accented o's, for when ¬ is
# the nose of a kaomoji.
'[¬√][ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñúùûü†¢£... | Fix warning about \w outside of a raw string It gets interpreted correctly as a backslash and a 'w', which becomes the appropriate regex atom that matches word-like characters, but Python makes no promises about this. It should just be in a raw string. | py |
diff --git a/instana/meter.py b/instana/meter.py
index <HASH>..<HASH> 100644
--- a/instana/meter.py
+++ b/instana/meter.py
@@ -151,16 +151,17 @@ class Meter(object):
def collect_snapshot(self):
try:
- if instana.service_name:
- appname = instana.service_name
- elif "... | Better App Names (#<I>) * Better terminal detection * A better fallback option; remove service_name | py |
diff --git a/internetarchive/item.py b/internetarchive/item.py
index <HASH>..<HASH> 100644
--- a/internetarchive/item.py
+++ b/internetarchive/item.py
@@ -252,7 +252,8 @@ class Item(object):
"""
access_key, secret_key = config.get_s3_keys()
src = self.metadata.get(target, {})
- dest = ... | Use copy() and update() to merge dicts for Python 2/3 compatibility. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,5 @@
-#from distutils.core import setup
from setuptools import setup, find_packages
+# from distutils.core import setup
## get version info
import re
VERSIONFILE="FlowCytometryTools/_version.py"
@@ -29,7 +29,7 @@ s... | Updating setup.py file, removing package data which is apparently unnecessary | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -317,9 +317,7 @@ if "sdist" in sys.argv:
# check for package install, set jsinstall to False to skip prompt
jsinstall = True
if not exists(join(ROOT, 'MANIFEST.in')):
- options = ('install', 'develop', 'sdist', 'egg_info... | Replace check against hardcoded list of commands with simple check that there are some arguments. Fixes #<I>. | py |
diff --git a/snapcast/control/server.py b/snapcast/control/server.py
index <HASH>..<HASH> 100755
--- a/snapcast/control/server.py
+++ b/snapcast/control/server.py
@@ -80,6 +80,7 @@ class Snapserver(object):
self._on_disconnect_callback_func = None
self._new_client_callback_func = None
+ @asyncio.... | Decoratoe async functions as coroutine. | py |
diff --git a/hs_restclient/__init__.py b/hs_restclient/__init__.py
index <HASH>..<HASH> 100644
--- a/hs_restclient/__init__.py
+++ b/hs_restclient/__init__.py
@@ -27,6 +27,8 @@ STREAM_CHUNK_SIZE = 100 * 1024
DEFAULT_HOSTNAME = 'www.hydroshare.org'
+EXPIRES_AT_ROUNDDOWN_SEC = 15
+
class HydroShareException(Excep... | Round down expires_at token attribute by <I> seconds to allow for latency between token issue and authorization class initialization. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,6 @@ setup(
packages=find_packages(),
scripts=['scripts/run_algo.py'],
include_package_data=True,
- long_description=LONG_DESCRIPTION,
license='Apache 2.0',
classifiers=[
'Develop... | BLD Fix setup.py and add link to homepage. | py |
diff --git a/xmantissa/ixmantissa.py b/xmantissa/ixmantissa.py
index <HASH>..<HASH> 100644
--- a/xmantissa/ixmantissa.py
+++ b/xmantissa/ixmantissa.py
@@ -389,7 +389,7 @@ class IPreferenceCollection(Interface):
Update and persist the value of the given preference.
"""
- def getSections(self):
+ ... | remove "self" from IPreferenceCollection.getSections definition | py |
diff --git a/astrodbkit/astrodb.py b/astrodbkit/astrodb.py
index <HASH>..<HASH> 100755
--- a/astrodbkit/astrodb.py
+++ b/astrodbkit/astrodb.py
@@ -1537,8 +1537,8 @@ def pprint(data, names='', title='', formats={}):
print(' '.join(key.rjust(str_lengths[key]) for key in pdata.keys()))
print(' '.join('-'... | fix repeating records with unicode fix | py |
diff --git a/gems/__init__.py b/gems/__init__.py
index <HASH>..<HASH> 100644
--- a/gems/__init__.py
+++ b/gems/__init__.py
@@ -2,7 +2,7 @@
__author__ = 'Blake Printy'
__email__ = 'bprinty@gmail.com'
-__version__ = '0.1.10'
+__version__ = '0.2.0'
from .datatypes import composite | bumped up minor version for bug fix | py |
diff --git a/mhctools/netmhc_pan28.py b/mhctools/netmhc_pan28.py
index <HASH>..<HASH> 100644
--- a/mhctools/netmhc_pan28.py
+++ b/mhctools/netmhc_pan28.py
@@ -30,6 +30,7 @@ class NetMHCpan28(BaseCommandlinePredictor):
program_name=program_name,
alleles=alleles,
default_peptide_len... | Grouping peptides by length for input to NetMHCpan-<I> | py |
diff --git a/searx/results.py b/searx/results.py
index <HASH>..<HASH> 100644
--- a/searx/results.py
+++ b/searx/results.py
@@ -250,9 +250,12 @@ class ResultContainer(object):
for i, res in enumerate(results):
# FIXME : handle more than one category per engine
- category = engines[res[... | [mod] add category to each results, and change group criterias (template and existing image) | py |
diff --git a/tests/integration/modules/state.py b/tests/integration/modules/state.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/state.py
+++ b/tests/integration/modules/state.py
@@ -554,7 +554,7 @@ fi
result = {}
ret = self.run_function('state.sls', mods='requisites.require_simple_nol... | Changed underlying error message to be more concise | py |
diff --git a/tensor2tensor/models/transformer.py b/tensor2tensor/models/transformer.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/models/transformer.py
+++ b/tensor2tensor/models/transformer.py
@@ -832,7 +832,7 @@ def fast_decode_tpu(encoder_output,
"""One step of greedy decoding."""
logits, cache = ... | Correct broken use-case when hparams has no sampling temp. PiperOrigin-RevId: <I> | py |
diff --git a/galpy/potential_src/Potential.py b/galpy/potential_src/Potential.py
index <HASH>..<HASH> 100644
--- a/galpy/potential_src/Potential.py
+++ b/galpy/potential_src/Potential.py
@@ -134,7 +134,7 @@ class Potential:
HISTORY:
2010-07-10 - Written - Bovy (NYU)
"""
- self._amp*... | add time-dependence to 3D potentials | py |
diff --git a/pvl/_collections.py b/pvl/_collections.py
index <HASH>..<HASH> 100644
--- a/pvl/_collections.py
+++ b/pvl/_collections.py
@@ -140,7 +140,7 @@ class OrderedMultiDict(dict, MutableMapping):
update = MutableMapping.update
pop = MutableMapping.pop
- if PY3:
+ if PY3: # noqa
def keys... | Ignore flake8 complexity warning. | py |
diff --git a/pandas/core/tools/numeric.py b/pandas/core/tools/numeric.py
index <HASH>..<HASH> 100644
--- a/pandas/core/tools/numeric.py
+++ b/pandas/core/tools/numeric.py
@@ -16,6 +16,10 @@ def to_numeric(arg, errors='raise', downcast=None):
"""
Convert argument to a numeric type.
+ The default return dt... | DOC: Adding clarification on return dtype of to_numeric (#<I>) | py |
diff --git a/gwpy/io/losc.py b/gwpy/io/losc.py
index <HASH>..<HASH> 100644
--- a/gwpy/io/losc.py
+++ b/gwpy/io/losc.py
@@ -134,6 +134,25 @@ def fetch_run_json(run, detector, gpsstart, gpsend, host=LOSC_URL):
# -- utilities ----------------------------------------------------------------
+def event_gps(event, host=... | io.losc: added event_gps method downloads the `float` GPS time for an event, as stored in the LOSC JSON metadata for a given event | py |
diff --git a/qiskit/mapper/_coupling.py b/qiskit/mapper/_coupling.py
index <HASH>..<HASH> 100644
--- a/qiskit/mapper/_coupling.py
+++ b/qiskit/mapper/_coupling.py
@@ -170,7 +170,7 @@ class CouplingMap:
CouplingError: When there is no path between physical_qubit1, physical_qubit2.
"""
try:... | shallow view for computing distance (#<I>) | py |
diff --git a/invenio_files_rest/helpers.py b/invenio_files_rest/helpers.py
index <HASH>..<HASH> 100644
--- a/invenio_files_rest/helpers.py
+++ b/invenio_files_rest/helpers.py
@@ -14,6 +14,7 @@ import hashlib
import mimetypes
import os
import unicodedata
+import warnings
from time import time
from flask import cu... | helpers: redirect stream multiple backend warning | py |
diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py
index <HASH>..<HASH> 100644
--- a/src/pikepdf/_methods.py
+++ b/src/pikepdf/_methods.py
@@ -1167,6 +1167,7 @@ class Extend_Page:
) -> None:
formx = None
if isinstance(other, Page):
+ page = other
formx = other.... | Fix unbound local in Extend_Page._over_underlay Possible that this can occur in v2.x, should cherry pick to master. | py |
diff --git a/bokeh/objects.py b/bokeh/objects.py
index <HASH>..<HASH> 100644
--- a/bokeh/objects.py
+++ b/bokeh/objects.py
@@ -50,7 +50,7 @@ class ColumnDataSource(DataSource):
"""
if len(args) == 1 and "data" not in kw:
kw["data"] = args[0]
- raw_data = kw.get("data", {})
+ ... | fixing ColumnDataSource to not have duplicate entry for 'data' in __init__ | py |
diff --git a/cocaine/tools/actions/common.py b/cocaine/tools/actions/common.py
index <HASH>..<HASH> 100644
--- a/cocaine/tools/actions/common.py
+++ b/cocaine/tools/actions/common.py
@@ -79,7 +79,7 @@ class NodeInfo(Node):
for app_ in apps:
info = ''
try:
- app = Servic... | [Info] Use the proper locator to get Info from a remote host | py |
diff --git a/zarr/tests/test_storage.py b/zarr/tests/test_storage.py
index <HASH>..<HASH> 100644
--- a/zarr/tests/test_storage.py
+++ b/zarr/tests/test_storage.py
@@ -123,8 +123,12 @@ class TestDirectoryMap(MappingTests, unittest.TestCase):
eq(7, m.size)
def test_path(self):
+
+ # test behaviour ... | fix directory story behaviour with path that doesn't exist | py |
diff --git a/dipper/sources/HPOAnnotations.py b/dipper/sources/HPOAnnotations.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/HPOAnnotations.py
+++ b/dipper/sources/HPOAnnotations.py
@@ -197,8 +197,13 @@ class HPOAnnotations(Source):
(db, num, name, qual, pheno_id, publist, eco, onset, freq, w, asp... | HPOAnnotations - check the test_ids instance variable rather than checking the config file (travis does not have access to our private config file) | py |
diff --git a/publ/entry.py b/publ/entry.py
index <HASH>..<HASH> 100644
--- a/publ/entry.py
+++ b/publ/entry.py
@@ -285,6 +285,21 @@ def get_entry_id(entry, fullpath, assign_id):
return entry_id
+def save_file(fullpath, entry):
+ """ Save a message file out, without mangling the headers """
+ with tempfil... | Prevent email.message from MIME-encoding headers | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.