diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests_django/test_views.py b/tests_django/test_views.py
index <HASH>..<HASH> 100644
--- a/tests_django/test_views.py
+++ b/tests_django/test_views.py
@@ -30,11 +30,12 @@ class ViewTestCase(TestCase):
})
def test_get_chat_session(self):
- from chatterbot.ext.django_chatterbot.fact... | A new conversation will be created if it has no statements | py |
diff --git a/smbclient/_os.py b/smbclient/_os.py
index <HASH>..<HASH> 100644
--- a/smbclient/_os.py
+++ b/smbclient/_os.py
@@ -1219,8 +1219,8 @@ class SMBDirEntry(object):
return self._lstat
@classmethod
- def from_path(cls, path, **kwargs):
- file_stat = stat(path, **kwargs)
+ def from... | Support not following symlinks in SMBDirEntry.from_path (#<I>) | py |
diff --git a/tests/test_generate.py b/tests/test_generate.py
index <HASH>..<HASH> 100644
--- a/tests/test_generate.py
+++ b/tests/test_generate.py
@@ -196,7 +196,7 @@ def test_callback_is_called_at_interval(filespecs, piece_size, create_file, crea
def test_callback_cancels(piece_size, create_file, forced_piece_size):
... | Hash more dummy pieces when callback raises/cancels | py |
diff --git a/odinweb/api.py b/odinweb/api.py
index <HASH>..<HASH> 100644
--- a/odinweb/api.py
+++ b/odinweb/api.py
@@ -100,7 +100,7 @@ class ResourceApi(_compat.with_metaclass(ResourceApiMeta)):
The resource this API is modelled on.
"""
- resource_id_type = 'int'
+ resource_id_type = Type.Integer
... | Migrated more strings to enum types, added path_prefix | py |
diff --git a/vtki/pointset.py b/vtki/pointset.py
index <HASH>..<HASH> 100644
--- a/vtki/pointset.py
+++ b/vtki/pointset.py
@@ -76,6 +76,8 @@ class PolyData(vtkPolyData, vtki.Common, PointSetFilters):
cells = np.ones((npoints, 2), dtype=vtki.ID_TYPE)
cells[:, 1] = np.arange(npoints, dty... | Add check for unknown PolyData arg on construction | py |
diff --git a/sphinx_click/ext.py b/sphinx_click/ext.py
index <HASH>..<HASH> 100644
--- a/sphinx_click/ext.py
+++ b/sphinx_click/ext.py
@@ -4,6 +4,9 @@ import click
from docutils import nodes, statemachine
from docutils.parsers import rst
from docutils.parsers.rst import directives
+from sphinx.util import logging
+
... | Log output This can be useful for debugging issues. | py |
diff --git a/multiqc/modules/fastq_screen/fastq_screen.py b/multiqc/modules/fastq_screen/fastq_screen.py
index <HASH>..<HASH> 100755
--- a/multiqc/modules/fastq_screen/fastq_screen.py
+++ b/multiqc/modules/fastq_screen/fastq_screen.py
@@ -228,7 +228,9 @@ class MultiqcModule(BaseMultiqcModule):
data[s_n... | Fixed newly introduced FastQ Screen bug. | py |
diff --git a/fnexchange/server/__init__.py b/fnexchange/server/__init__.py
index <HASH>..<HASH> 100644
--- a/fnexchange/server/__init__.py
+++ b/fnexchange/server/__init__.py
@@ -40,4 +40,5 @@ def get_app(port, app_settings, handlers_settings):
def start_app(port, app_settings, handlers_settings):
app = get_app... | Add log indicating server start before Tornado IOLoop begins | py |
diff --git a/astropy_helpers/tests/test_setup_helpers.py b/astropy_helpers/tests/test_setup_helpers.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/tests/test_setup_helpers.py
+++ b/astropy_helpers/tests/test_setup_helpers.py
@@ -1,4 +1,3 @@
-import os
import contextlib
import shutil
import stat
@@ -12,8 +11,6 ... | Adding back sphinx builds for appveyor | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='django-sniplates',
- version='0.4.0',
+ version='0.4.1',
description='Efficient template macro sets for Django',
author='Curtis Malo... | Bumped version to <I> | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -335,7 +335,7 @@ class TemplatetagMediaUrlTests(MIUTestCase):
def _get_expected_media(self):
out = """<link href="%(prefix)s/markitup/skins/simple/style.css" type="text/css" media="screen"... | Fix broken tests after changing jQuery URL. | py |
diff --git a/lib/bibformat_regression_tests.py b/lib/bibformat_regression_tests.py
index <HASH>..<HASH> 100644
--- a/lib/bibformat_regression_tests.py
+++ b/lib/bibformat_regression_tests.py
@@ -172,6 +172,13 @@ The words CERN Photo must be quoted for each use. </small>
expected_... | Addedd regression test for checking the presence of the "Edit This Record" link. | py |
diff --git a/mediawiki/mediawikipage.py b/mediawiki/mediawikipage.py
index <HASH>..<HASH> 100644
--- a/mediawiki/mediawikipage.py
+++ b/mediawiki/mediawikipage.py
@@ -8,7 +8,7 @@ from __future__ import unicode_literals, absolute_import
from decimal import Decimal
import re
from collections import OrderedDict
-from b... | bs4 does not support hasattr but uses *.has_attr() | py |
diff --git a/src/ofxstatement/tests/test_configuration.py b/src/ofxstatement/tests/test_configuration.py
index <HASH>..<HASH> 100644
--- a/src/ofxstatement/tests/test_configuration.py
+++ b/src/ofxstatement/tests/test_configuration.py
@@ -1,8 +1,7 @@
import os
import doctest
-#from ofxstatement import configuration... | Change of the import is not necessary. | py |
diff --git a/ayrton/expansion.py b/ayrton/expansion.py
index <HASH>..<HASH> 100644
--- a/ayrton/expansion.py
+++ b/ayrton/expansion.py
@@ -108,7 +108,7 @@ class ToExpand (object):
left_cb, right_cb= data
prefix= self.text[:left_cb]
- # includes the {}'s
+ # the body includes the {}'s
... | [*] expand a little a comment. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -30,9 +30,9 @@ def hdrepl(match):
ret = match.group(2).strip()
return ret + '\n' + ( mdlevels[lvl] * len(ret) ) + '\n'
#------------------------------------------------------------------------------
-mdquote = re.compil... | fixed md => rst conversion | py |
diff --git a/pysrt/commands.py b/pysrt/commands.py
index <HASH>..<HASH> 100755
--- a/pysrt/commands.py
+++ b/pysrt/commands.py
@@ -117,7 +117,6 @@ class SubRipShifter(object):
return -ordinal if negative else ordinal
def parse_encoding(self, encoding_name):
- print encoding_name
try:
... | Get rid of a forgotten debug | py |
diff --git a/pythonforandroid/bootstraps/common/build/build.py b/pythonforandroid/bootstraps/common/build/build.py
index <HASH>..<HASH> 100644
--- a/pythonforandroid/bootstraps/common/build/build.py
+++ b/pythonforandroid/bootstraps/common/build/build.py
@@ -364,8 +364,8 @@ main.py that loads it.''')
with open... | add x<I>_<I> for android version code default for unknown archs in version code | py |
diff --git a/tests/unittest/pywbem/test_subscriptionmanager.py b/tests/unittest/pywbem/test_subscriptionmanager.py
index <HASH>..<HASH> 100644
--- a/tests/unittest/pywbem/test_subscriptionmanager.py
+++ b/tests/unittest/pywbem/test_subscriptionmanager.py
@@ -579,8 +579,6 @@ TESTCASES_SUBMGR = [
# * dest_attrs: d... | Fixed description of testcases for modifying subscription related instances | py |
diff --git a/nxviz/__init__.py b/nxviz/__init__.py
index <HASH>..<HASH> 100644
--- a/nxviz/__init__.py
+++ b/nxviz/__init__.py
@@ -1,7 +1 @@
-# -*- coding: utf-8 -*-
-
-__author__ = 'Eric J. Ma'
-__email__ = 'ericmajinglong@gmail.com'
-__version__ = '0.3.0'
-
from nxviz.plots import ArcPlot, CircosPlot, MatrixPlot | Removed author, email and version from __init__ | py |
diff --git a/ontobio/golr/golr_query.py b/ontobio/golr/golr_query.py
index <HASH>..<HASH> 100644
--- a/ontobio/golr/golr_query.py
+++ b/ontobio/golr/golr_query.py
@@ -252,7 +252,7 @@ class GolrSearchQuery(GolrAbstractQuery):
url=None,
solr=None,
config=None,
- ... | Fixed bug where fq was being ignored for search | py |
diff --git a/_pytest/pdb.py b/_pytest/pdb.py
index <HASH>..<HASH> 100644
--- a/_pytest/pdb.py
+++ b/_pytest/pdb.py
@@ -71,19 +71,20 @@ class PdbInvoke:
rep.toterminal(tw)
tw.sep(">", "entering PDB")
- tb = self._postmortem_traceback(call.excinfo)
+ tb = _postmortem_traceback(call.excin... | turn the postmortem traceback selection to a function | py |
diff --git a/webview/__init__.py b/webview/__init__.py
index <HASH>..<HASH> 100755
--- a/webview/__init__.py
+++ b/webview/__init__.py
@@ -27,6 +27,9 @@ from webview.util import _token, base_uri, parse_file_type, escape_string, make_
from webview.window import Window
from .localization import localization as original... | Expose the new serving stuff on webview | py |
diff --git a/tests/test_openwrt.py b/tests/test_openwrt.py
index <HASH>..<HASH> 100644
--- a/tests/test_openwrt.py
+++ b/tests/test_openwrt.py
@@ -1,4 +1,3 @@
-import os
import unittest
from netjsonconfig import OpenWrt | removed unused import in test_openwrt | py |
diff --git a/salt/utils/gitfs.py b/salt/utils/gitfs.py
index <HASH>..<HASH> 100644
--- a/salt/utils/gitfs.py
+++ b/salt/utils/gitfs.py
@@ -74,7 +74,11 @@ except ImportError:
HAS_GITPYTHON = False
try:
- import pygit2
+ # Squelch warning on cent7 due to them upgrading cffi
+ import warnings
+ with wa... | Squelch warning for pygit2 import RedHat updated cffi for RHEL/CentOS <I>, which causes a pair of warnings on the pygit2 import. This warning is spit out to the CLI on several commands, when they result in the git fileserver backend to be loaded. This commit squelches that warning as it is just noise. Upgrading pygit... | py |
diff --git a/slither/core/slither_core.py b/slither/core/slither_core.py
index <HASH>..<HASH> 100644
--- a/slither/core/slither_core.py
+++ b/slither/core/slither_core.py
@@ -239,14 +239,14 @@ class SlitherCore(Context):
if r["elements"] and matching:
return False
- if r["elements"] and s... | Prioritize ignore comment over exclude dependencies (#<I>) | py |
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py
index <HASH>..<HASH> 100644
--- a/pyrogram/__init__.py
+++ b/pyrogram/__init__.py
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
-__version__ =... | Update Pyrogram to <I> | py |
diff --git a/dbl/errors.py b/dbl/errors.py
index <HASH>..<HASH> 100644
--- a/dbl/errors.py
+++ b/dbl/errors.py
@@ -103,32 +103,10 @@ class NotFound(HTTPException):
pass
-class InvalidArgument(ClientException):
- """Exception that's thrown when an argument to a function
- is invalid some way (e.g. wrong v... | Removed ConnectionClosed and InvalidArgument, added ServerError | py |
diff --git a/py/selenium/webdriver/firefox/firefox_profile.py b/py/selenium/webdriver/firefox/firefox_profile.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/firefox/firefox_profile.py
+++ b/py/selenium/webdriver/firefox/firefox_profile.py
@@ -21,6 +21,8 @@ import zipfile
import shutil
import re
import rd... | DavidBurns adding back profile encoding that I deleted by accident on the rewrite of Python FirefoxDriver r<I> | py |
diff --git a/icalevents/icalparser.py b/icalevents/icalparser.py
index <HASH>..<HASH> 100644
--- a/icalevents/icalparser.py
+++ b/icalevents/icalparser.py
@@ -14,6 +14,8 @@ from icalendar import Calendar
from icalendar.prop import vDDDLists, vText
from pytz import timezone
+from icalendar.windows_to_olson import WI... | feat() uses ical tz translation for windows | py |
diff --git a/w1thermsensor/cli.py b/w1thermsensor/cli.py
index <HASH>..<HASH> 100644
--- a/w1thermsensor/cli.py
+++ b/w1thermsensor/cli.py
@@ -10,8 +10,6 @@ from itertools import count
from .core import W1ThermSensor
-W1ThermSensor.BASE_DIRECTORY = "test/mockedsensors"
-
def resolve_type_name(ctx, param, value)... | Remove mocked sensor from cli | py |
diff --git a/trepan/processor/location.py b/trepan/processor/location.py
index <HASH>..<HASH> 100644
--- a/trepan/processor/location.py
+++ b/trepan/processor/location.py
@@ -121,7 +121,7 @@ def resolve_location(proc, location):
lineno = location.line_number
is_address = location.is_address
... | Be explicit about wanting line info offsets | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -72,7 +72,6 @@ setup(name=name,
'mock',
],
install_requires=[
- 'markdown',
'future',
],
) | setup.py: remove markdown requirement From markdown release note: Python <I> reaches end-of-life on <I>-<I>-<I> and Python-Markdown <I> has dropped support for it. Please upgrade to Python 3, or use Python-Markdown <I>. | py |
diff --git a/scheduler/views.py b/scheduler/views.py
index <HASH>..<HASH> 100644
--- a/scheduler/views.py
+++ b/scheduler/views.py
@@ -2,6 +2,7 @@ from django.contrib.auth.models import User, Group
from rest_hooks.models import Hook
from rest_framework import viewsets, status, mixins
+from rest_framework.pagination... | Use cursor pagination ordered on -created_at for schedule list endpoint | py |
diff --git a/aloe_django/__init__.py b/aloe_django/__init__.py
index <HASH>..<HASH> 100644
--- a/aloe_django/__init__.py
+++ b/aloe_django/__init__.py
@@ -10,7 +10,8 @@ from django.core.exceptions import ImproperlyConfigured
# available in Django 1.8, or fall back to default LiveServerTestCase, that
# does the same a... | Limits at <I> columns. | py |
diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/integration/__init__.py
+++ b/tests/integration/__init__.py
@@ -742,6 +742,7 @@ class TestDaemon(object):
master_opts['config_dir'] = RUNTIME_VARS.TMP_CONF_DIR
master_opts['root_dir'] = o... | Fix hanging syndic test There was no `syndic_master` and the fallback DNS lookup failed. This caused a traceback which hung the test suite. | py |
diff --git a/lancet/launch.py b/lancet/launch.py
index <HASH>..<HASH> 100644
--- a/lancet/launch.py
+++ b/lancet/launch.py
@@ -408,12 +408,12 @@ class Launcher(param.Parameterized):
# max_concurrency reached, wait until more slots available
while len(processes) >= self.max_concurrency:... | Reduce polling sleep time in Launcher from 3 to <I> seconds | py |
diff --git a/ftr/version.py b/ftr/version.py
index <HASH>..<HASH> 100644
--- a/ftr/version.py
+++ b/ftr/version.py
@@ -1,2 +1,2 @@
-version = '0.7.4'
+version = '0.7.5' | version bump for <I>. | py |
diff --git a/lib/shopify/session.py b/lib/shopify/session.py
index <HASH>..<HASH> 100644
--- a/lib/shopify/session.py
+++ b/lib/shopify/session.py
@@ -91,6 +91,7 @@ class Session(object):
if url.strip() == "":
return None
url = re.sub("https?://", "", url)
+ url = re.sub("/.*", "",... | Strip path from given url when getting the shop's domain. | py |
diff --git a/nbdiff/adapter/hg_adapter.py b/nbdiff/adapter/hg_adapter.py
index <HASH>..<HASH> 100644
--- a/nbdiff/adapter/hg_adapter.py
+++ b/nbdiff/adapter/hg_adapter.py
@@ -8,8 +8,8 @@ from .vcs_adapter import VcsAdapter
from .vcs_adapter import NoVCSError
# A deliberate copy of GitAdapter's error message:
-ERROR... | make flake8 a little happier | py |
diff --git a/shttpfs3/http_server.py b/shttpfs3/http_server.py
index <HASH>..<HASH> 100644
--- a/shttpfs3/http_server.py
+++ b/shttpfs3/http_server.py
@@ -40,6 +40,7 @@ def HTTPServer(host, port, connection_handler):
# read request preamble
while True:
data += c.re... | close server thread when socket is closed by client | py |
diff --git a/local/pyauto/local/__init__.py b/local/pyauto/local/__init__.py
index <HASH>..<HASH> 100644
--- a/local/pyauto/local/__init__.py
+++ b/local/pyauto/local/__init__.py
@@ -1 +1 @@
-__version__ = '0.1.0'
+__version__ = '1.0.0a1' | version local-<I>a1 | py |
diff --git a/rest_framework_json_api/renderers.py b/rest_framework_json_api/renderers.py
index <HASH>..<HASH> 100644
--- a/rest_framework_json_api/renderers.py
+++ b/rest_framework_json_api/renderers.py
@@ -283,7 +283,12 @@ class JSONRenderer(renderers.JSONRenderer):
serializer_class = included_seriali... | use the presense of ‘child_relation’ in kwargs to see if it’s a many relationship | py |
diff --git a/pyocd/__main__.py b/pyocd/__main__.py
index <HASH>..<HASH> 100644
--- a/pyocd/__main__.py
+++ b/pyocd/__main__.py
@@ -438,7 +438,7 @@ class PyOCDTool(object):
def do_flash(self):
"""! @brief Handle 'flash' subcommand."""
- self._increase_logging(["pyocd.tools.loader", "pyocd", "p... | Correct pyocd erase and flash subcommand log levels. | py |
diff --git a/soundfile.py b/soundfile.py
index <HASH>..<HASH> 100644
--- a/soundfile.py
+++ b/soundfile.py
@@ -510,7 +510,7 @@ class _SoundFileInfo(object):
self.samplerate = f.samplerate
self.channels = f.channels
self.frames = len(f)
- self.duration = self.frames/f.sa... | Fixed integer division in duration calculation (bug for Py2.x) | py |
diff --git a/hgvs/normalizer.py b/hgvs/normalizer.py
index <HASH>..<HASH> 100644
--- a/hgvs/normalizer.py
+++ b/hgvs/normalizer.py
@@ -215,7 +215,9 @@ class Normalizer(object):
left = exon_starts[i]
right = exon_ends[i]
- if var.posedit.pos.end.base - 1 < cds_start:
+ ... | Handle the `cds_{start,end} is None` case explicitly, since None is not comparable to ints in python 3+. | py |
diff --git a/neo/SmartContract/ContractParameterContext.py b/neo/SmartContract/ContractParameterContext.py
index <HASH>..<HASH> 100755
--- a/neo/SmartContract/ContractParameterContext.py
+++ b/neo/SmartContract/ContractParameterContext.py
@@ -272,7 +272,7 @@ class ContractParametersContext():
return jsn
- ... | fix for multi-sig context returning complete after one signature | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ setup(
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_ver... | added performance_testing to list of folders to exclude in package building | py |
diff --git a/ocrd/ocrd/task_sequence.py b/ocrd/ocrd/task_sequence.py
index <HASH>..<HASH> 100644
--- a/ocrd/ocrd/task_sequence.py
+++ b/ocrd/ocrd/task_sequence.py
@@ -156,4 +156,4 @@ def run_tasks(mets, log_level, page_id, task_strs, overwrite=False):
# check output file groups are in mets
for output_... | task_sequence: remove invalid refs to out/err Since run_cli does not (capture and) return stdout and stderr anymore, these references are impossible and unnecessary. | py |
diff --git a/nodeconductor/structure/serializers.py b/nodeconductor/structure/serializers.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/structure/serializers.py
+++ b/nodeconductor/structure/serializers.py
@@ -1037,8 +1037,7 @@ class BaseServiceSerializer(six.with_metaclass(ServiceSerializerMetaclass,
... | Refactor name resolution [WAL-<I>] | py |
diff --git a/elasticapm/instrumentation/packages/asyncio/aiopg.py b/elasticapm/instrumentation/packages/asyncio/aiopg.py
index <HASH>..<HASH> 100644
--- a/elasticapm/instrumentation/packages/asyncio/aiopg.py
+++ b/elasticapm/instrumentation/packages/asyncio/aiopg.py
@@ -36,7 +36,12 @@ from elasticapm.instrumentation.pa... | Cursor moved from `cursor.py` to `connection.py` (#<I>) | py |
diff --git a/dbt/context/common.py b/dbt/context/common.py
index <HASH>..<HASH> 100644
--- a/dbt/context/common.py
+++ b/dbt/context/common.py
@@ -236,10 +236,9 @@ class Var(object):
raw = self.local_vars[var_name]
if raw is None:
pretty_vars = self.pretty_dict(self.local_vars)
- ... | we set model_name in __init__, so just use that | py |
diff --git a/morango/apps.py b/morango/apps.py
index <HASH>..<HASH> 100644
--- a/morango/apps.py
+++ b/morango/apps.py
@@ -3,7 +3,6 @@ from __future__ import unicode_literals
import logging as logger
from django.apps import AppConfig
-from django.db.utils import OperationalError, ProgrammingError
from morango.util... | Remove db access at app loading time | py |
diff --git a/tango.py b/tango.py
index <HASH>..<HASH> 100644
--- a/tango.py
+++ b/tango.py
@@ -9,7 +9,7 @@ class tango:
# Authenticate here?
self.twitter_user = twitter_user
- def getUserTimeline(self, optional_count):
+ def getUserTimeline(self, count, page, since_id):
userTimeli... | Renaming a function to make room for other trending search stuff | py |
diff --git a/responsys/__init__.py b/responsys/__init__.py
index <HASH>..<HASH> 100644
--- a/responsys/__init__.py
+++ b/responsys/__init__.py
@@ -1,4 +1,4 @@
"""Python client library for the Responsys Interact API"""
-__version__ = "0.1.2-alpha"
+__version__ = "0.1.3-alpha"
__keywords__ = "responsys interact clien... | Update to <I>-alpha | py |
diff --git a/twitcher/tests/test_utils.py b/twitcher/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/twitcher/tests/test_utils.py
+++ b/twitcher/tests/test_utils.py
@@ -1,5 +1,7 @@
import pytest
+from lxml import etree
from twitcher import utils
+from .common import WPS_CAPS_EMU_XML
def test_baseurl():
@@ ... | added test_replace_caps_url | py |
diff --git a/pymc3/sampling.py b/pymc3/sampling.py
index <HASH>..<HASH> 100644
--- a/pymc3/sampling.py
+++ b/pymc3/sampling.py
@@ -351,6 +351,7 @@ def sample(draws=500, step=None, init='auto', n_init=200000, start=None,
# gradient computation failed
pm._log.info("Initializing NUTS failed. "
... | Catch pickle related AttributeErrors | py |
diff --git a/django_socketio/management/commands/runserver_socketio.py b/django_socketio/management/commands/runserver_socketio.py
index <HASH>..<HASH> 100644
--- a/django_socketio/management/commands/runserver_socketio.py
+++ b/django_socketio/management/commands/runserver_socketio.py
@@ -57,6 +57,7 @@ class Command(B... | Added a call to server.kill() for improved reload support. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@ setup(
'numpy>=1.13.3',
'scipy>=0.18.1'],
extras_require={
- 'doc': ['sphinx', 'sphinx_rtd_theme', 'nbsphinx'],
+ 'doc': ['sphinx', 'sphinx_rtd_theme', 'nbsphinx', 'pandoc'],... | Add pandoc dependency to build docs from notebooks | py |
diff --git a/tests/test_cnn/test_build_layers.py b/tests/test_cnn/test_build_layers.py
index <HASH>..<HASH> 100644
--- a/tests/test_cnn/test_build_layers.py
+++ b/tests/test_cnn/test_build_layers.py
@@ -160,7 +160,7 @@ def test_build_norm_layer():
for postfix in ['_test', 1]:
cfg = dict(type=type_... | [Fix] num_channels can not be divisible by num_groups in test_build_norm_layer (#<I>) | py |
diff --git a/pre_commit/staged_files_only.py b/pre_commit/staged_files_only.py
index <HASH>..<HASH> 100644
--- a/pre_commit/staged_files_only.py
+++ b/pre_commit/staged_files_only.py
@@ -23,7 +23,7 @@ def staged_files_only(cmd_runner):
retcode, diff_stdout_binary, _ = cmd_runner.run(
[
'git',... | Fix file stashing with external diff tool When git is configured to use an external diff tool to show diffs (eg. 'git config diff.external mytool'), the stashing unstaged files will create an empty file that can't be recovered. Some modifications are permanently lost... Just disable the ext-diff of git diff to avoid... | py |
diff --git a/client/stt.py b/client/stt.py
index <HASH>..<HASH> 100644
--- a/client/stt.py
+++ b/client/stt.py
@@ -5,6 +5,7 @@ import traceback
import wave
import json
import tempfile
+import pkgutil
import logging
from abc import ABCMeta, abstractmethod
import requests
@@ -148,7 +149,7 @@ class PocketSphinxSTT(A... | Added missing import in stt.py | py |
diff --git a/saltant/models/resource.py b/saltant/models/resource.py
index <HASH>..<HASH> 100644
--- a/saltant/models/resource.py
+++ b/saltant/models/resource.py
@@ -118,8 +118,8 @@ class ModelManager(object):
task instance to get.
Returns:
- :class:`Model`: A model instance mode... | Clean up poor English in docstring | py |
diff --git a/pydevd.py b/pydevd.py
index <HASH>..<HASH> 100644
--- a/pydevd.py
+++ b/pydevd.py
@@ -43,7 +43,7 @@ from _pydevd_frame_eval.pydevd_frame_eval_main import frame_eval_func, stop_fram
from _pydevd_bundle.pydevd_utils import save_main_module
from pydevd_concurrency_analyser.pydevd_concurrency_logger import T... | Add real directory of target to syspath (PY-<I>, pr#<I>) (cherry picked from commit ca2c<I>a) | py |
diff --git a/py/setup.py b/py/setup.py
index <HASH>..<HASH> 100644
--- a/py/setup.py
+++ b/py/setup.py
@@ -46,7 +46,7 @@ setup(
packages = find_packages(),
# run-time dependencies
- install_requires=['requests', 'tabulate', 'future', 'colorama>=0.3.8'],
+ install_requires=['requests', 'tabulate', 'fut... | [SW-<I>] Sparkling Water py should require pyspark dependency (#<I>) | py |
diff --git a/pyls_jsonrpc/streams.py b/pyls_jsonrpc/streams.py
index <HASH>..<HASH> 100644
--- a/pyls_jsonrpc/streams.py
+++ b/pyls_jsonrpc/streams.py
@@ -22,7 +22,13 @@ class JsonRpcStreamReader(object):
message_consumer (fn): function that is passed each message as it is read off the socket.
"""... | Don't throw if rfile is closed (#<I>) * Don't throw if rfile is closed * Update streams.py * Retrigger CI | py |
diff --git a/sixpack/web.py b/sixpack/web.py
index <HASH>..<HASH> 100644
--- a/sixpack/web.py
+++ b/sixpack/web.py
@@ -33,7 +33,7 @@ assets.register('css_all', css)
# List of experiments
@app.route("/")
def hello():
- experiments = Experiment.all(REDIS)
+ experiments = Experiment.all(REDIS, False)
if requ... | actually fix showing archived experiments on dashboard | py |
diff --git a/gwpy/timeseries/io/gwf/framecpp.py b/gwpy/timeseries/io/gwf/framecpp.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/io/gwf/framecpp.py
+++ b/gwpy/timeseries/io/gwf/framecpp.py
@@ -279,8 +279,11 @@ def _read_frame(framefile, channels, start=None, end=None, ctype=None,
while True:
... | framecpp: minor improvement to error reporting | py |
diff --git a/wal_e/cmd.py b/wal_e/cmd.py
index <HASH>..<HASH> 100755
--- a/wal_e/cmd.py
+++ b/wal_e/cmd.py
@@ -346,7 +346,6 @@ def validate_args(args, subcommand):
def _check_env(primary, secondary):
return os.getenv(primary, os.getenv(secondary))
- # AWS_SECRET_ACCESS_KEY still checked for backwards... | Remove superflous out-of-date comment The decision since that time that unification of configuration for each backend will not be attempted. | py |
diff --git a/tests/test_conversation.py b/tests/test_conversation.py
index <HASH>..<HASH> 100644
--- a/tests/test_conversation.py
+++ b/tests/test_conversation.py
@@ -46,11 +46,11 @@ def test_members():
conv.save()
conv = Conversation.query.get(conv.id)
- assert_equal(conv.members, sorted(['xxx', 'qqq'])... | test: con.members should be treated as a set If conversation is uniq, members will be sorted (to calculate unique id) before saving to `m`. Otherwise members will not be sorted. Conversation members should be considered and used as a set. | py |
diff --git a/grimoire_elk/_version.py b/grimoire_elk/_version.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/_version.py
+++ b/grimoire_elk/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.51.0"
+__version__ = "0.52.0" | Update version number to <I> | py |
diff --git a/synapse/lib/httpapi.py b/synapse/lib/httpapi.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/httpapi.py
+++ b/synapse/lib/httpapi.py
@@ -62,11 +62,14 @@ class HandlerBase:
self._web_user = None
# this can't live in set_default_headers() due to call ordering in tornado
- headers ... | Move the https:headers retrieval into a separate function that can be overridden. (#<I>) Move the https:headers retrieval into a separate function that can be overridden | py |
diff --git a/tests/test_cli.py b/tests/test_cli.py
index <HASH>..<HASH> 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -7,7 +7,7 @@ from sucks.cli import *
def test_config_file_name():
if platform.system() == 'Windows':
print(config_file())
- assert_true(re.match(r'[A-Z]:\\.+\\\w+\\AppD... | Does this work for Windows config file paths? | py |
diff --git a/hwt/serializer/ip_packager/packager.py b/hwt/serializer/ip_packager/packager.py
index <HASH>..<HASH> 100755
--- a/hwt/serializer/ip_packager/packager.py
+++ b/hwt/serializer/ip_packager/packager.py
@@ -18,6 +18,7 @@ class Packager(object):
def __init__(self, topUnit, name=None, extraVhdlDirs=[], extra... | check _wasSynthetised in packager | py |
diff --git a/core/dbt/compilation.py b/core/dbt/compilation.py
index <HASH>..<HASH> 100644
--- a/core/dbt/compilation.py
+++ b/core/dbt/compilation.py
@@ -134,7 +134,7 @@ class Compiler(object):
if 'data' in injected_node.tags and \
is_type(injected_node, NodeType.Test):
in... | changed the sql for data-tests for supporting sql server | py |
diff --git a/mtools/mlogmerge/mlogmerge.py b/mtools/mlogmerge/mlogmerge.py
index <HASH>..<HASH> 100755
--- a/mtools/mlogmerge/mlogmerge.py
+++ b/mtools/mlogmerge/mlogmerge.py
@@ -34,7 +34,7 @@ class MLogMergeTool(LogFileTool):
labels = [None for _ in logfiles]
elif label == 'filename':
... | added fix to a bug with mlogmerge and multiple labels. | py |
diff --git a/analyzers/FileInfo/submodules/submodule_manalyze.py b/analyzers/FileInfo/submodules/submodule_manalyze.py
index <HASH>..<HASH> 100644
--- a/analyzers/FileInfo/submodules/submodule_manalyze.py
+++ b/analyzers/FileInfo/submodules/submodule_manalyze.py
@@ -60,7 +60,7 @@ class ManalyzeSubmodule(SubmoduleBasecl... | WIP: Manalyze FileInfo submodule, dict_keys does not allow access via index. | py |
diff --git a/luminoso_api/client.py b/luminoso_api/client.py
index <HASH>..<HASH> 100644
--- a/luminoso_api/client.py
+++ b/luminoso_api/client.py
@@ -239,14 +239,13 @@ class LuminosoClient(object):
# Useful abstractions
def change_path(self, path):
"""
- Return a new LuminosoClient for a subp... | change_path(): change current client path Instead of returning a new LuminosoClient object, change_path changes the current client's url property. | py |
diff --git a/tag.py b/tag.py
index <HASH>..<HASH> 100644
--- a/tag.py
+++ b/tag.py
@@ -1,4 +1,5 @@
import os, sys
+import shlex
import subprocess
PROJECT = "winshell"
@@ -13,14 +14,14 @@ __RELEASE__ = ""
def git(command):
if isinstance(command, basestring):
- command = [command]
+ command = s... | * tag.py can bomb out if we're already on the master branch; try to avoid this * In case it helps, use shlex.split to break a single command string into its components | py |
diff --git a/squad/frontend/views.py b/squad/frontend/views.py
index <HASH>..<HASH> 100644
--- a/squad/frontend/views.py
+++ b/squad/frontend/views.py
@@ -100,7 +100,7 @@ def build(request, group_slug, project_slug, version):
'test_run',
'test_run__environment',
'suite',
- ).order_by('-tes... | frontend: build page: sort test runs by suite slug | py |
diff --git a/rinoh/backend/pdf/cos.py b/rinoh/backend/pdf/cos.py
index <HASH>..<HASH> 100644
--- a/rinoh/backend/pdf/cos.py
+++ b/rinoh/backend/pdf/cos.py
@@ -70,9 +70,7 @@ class Object(object):
document.register(self)
-NoneType = type(None)
-
-class Null(Object, NoneType):
+class Null(Object):
de... | Don't inherit from NoneType bool(Null()) == True anyway, so there're no reason to do this. | py |
diff --git a/isort/settings.py b/isort/settings.py
index <HASH>..<HASH> 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -159,7 +159,7 @@ def _as_list(value):
@lru_cache()
def _get_config_data(file_path, sections):
- with open(file_path) as config_file:
+ with open(file_path, 'rU') as config_file:
... | Fix [Error <I>] under Windows reading .editorconfig Under windows system, if the .editorconfig is not CRLF ended, after reading file using `file.readline()`, the `file.tell()` will give negative values, which at last raises IOError: [Errno <I>] Invalid argument. This patch open config files in "universal newlines... | py |
diff --git a/src/streamlink/plugins/vaughnlive.py b/src/streamlink/plugins/vaughnlive.py
index <HASH>..<HASH> 100644
--- a/src/streamlink/plugins/vaughnlive.py
+++ b/src/streamlink/plugins/vaughnlive.py
@@ -5,7 +5,8 @@ from streamlink.plugin import Plugin
from streamlink.plugin.api import http, validate
from streamli... | fix vaughnlive.tv info_url (#<I>) | py |
diff --git a/imageresize/imageresize.py b/imageresize/imageresize.py
index <HASH>..<HASH> 100644
--- a/imageresize/imageresize.py
+++ b/imageresize/imageresize.py
@@ -61,21 +61,17 @@ def resize_crop(image, size):
img_format = image.format
image = image.copy()
old_size = image.size
- if old_size[0] >= ... | imageresize: remove tests from resize_crop as it's already done by validation | py |
diff --git a/edisgo/opf/results/opf_result_class.py b/edisgo/opf/results/opf_result_class.py
index <HASH>..<HASH> 100644
--- a/edisgo/opf/results/opf_result_class.py
+++ b/edisgo/opf/results/opf_result_class.py
@@ -37,6 +37,7 @@ class OPFResults:
self.solution_time = None
self.solver = None
s... | Save pypsa network with OPF results (for now) | py |
diff --git a/saltcloud/clouds/cloudstack.py b/saltcloud/clouds/cloudstack.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/cloudstack.py
+++ b/saltcloud/clouds/cloudstack.py
@@ -31,9 +31,9 @@ from saltcloud.utils import namespaced_function
# CloudStackNetwork will be needed during creation of a new node
try:
... | Minor formating and logic comparison fixes. | py |
diff --git a/ariane_clip3/mapping.py b/ariane_clip3/mapping.py
index <HASH>..<HASH> 100644
--- a/ariane_clip3/mapping.py
+++ b/ariane_clip3/mapping.py
@@ -185,7 +185,7 @@ class SessionService(object):
args = {'http_operation': 'GET', 'operation_path': 'open', 'parameters': params}
response = SessionSe... | [ACC-<I>] apply session json refactoring on python cli | py |
diff --git a/poetry/masonry/builders/sdist.py b/poetry/masonry/builders/sdist.py
index <HASH>..<HASH> 100644
--- a/poetry/masonry/builders/sdist.py
+++ b/poetry/masonry/builders/sdist.py
@@ -24,7 +24,7 @@ from setuptools import setup
{before}
setup(
name={name!r},
- version={version!r}
+ version={version!r... | Fix setup building for sdist | py |
diff --git a/salt/modules/nfs.py b/salt/modules/nfs.py
index <HASH>..<HASH> 100644
--- a/salt/modules/nfs.py
+++ b/salt/modules/nfs.py
@@ -39,12 +39,12 @@ def list_exports(exports='/etc/exports'):
if line.startswith('#'):
continue
comps = line.split()
- ret[comps[0]] = {'hosts': []... | Add multiple permissions to a single export | py |
diff --git a/renamer.py b/renamer.py
index <HASH>..<HASH> 100644
--- a/renamer.py
+++ b/renamer.py
@@ -374,10 +374,19 @@ class TVRenamer:
else:
matchDirList = util.GetBestMatch(matchName, dirList)
- listDirPrompt = "enter 'ls' to list all items in TV library directory"
- resp... | Fixed selection of show dir with no_input flag | py |
diff --git a/odplib/preso.py b/odplib/preso.py
index <HASH>..<HASH> 100755
--- a/odplib/preso.py
+++ b/odplib/preso.py
@@ -636,8 +636,13 @@ class Picture(object):
self.w, self.h)
else:
x,y,w,h = 1.4, 4.6, self.get_width(), self.get_height()
- x += frame_x
- y += fram... | Add fit-top-left so images used in columns/grids can start in upper left | py |
diff --git a/examples/dynamic_requirements.py b/examples/dynamic_requirements.py
index <HASH>..<HASH> 100644
--- a/examples/dynamic_requirements.py
+++ b/examples/dynamic_requirements.py
@@ -21,7 +21,7 @@ import time
import luigi
-class Config(luigi.Task):
+class Configuration(luigi.Task):
seed = luigi.IntPar... | dynamic demo fix (#<I>) | py |
diff --git a/springboard/views.py b/springboard/views.py
index <HASH>..<HASH> 100644
--- a/springboard/views.py
+++ b/springboard/views.py
@@ -1,6 +1,7 @@
import os
from elasticgit import EG
+from elasticgit.search import SM
from pyramid.view import view_config
from pyramid.view import notfound_view_config
@@ -... | swap search class workspace.S with SM | py |
diff --git a/metal/mmtl/launch.py b/metal/mmtl/launch.py
index <HASH>..<HASH> 100644
--- a/metal/mmtl/launch.py
+++ b/metal/mmtl/launch.py
@@ -78,6 +78,12 @@ if __name__ == "__main__":
"--bert_output_dim", type=int, default=768, help="Bert model output dimension."
)
parser.add_argument(
+ "--m... | adding model_weghts arg in launch to finetune model | py |
diff --git a/troposphere/rds.py b/troposphere/rds.py
index <HASH>..<HASH> 100644
--- a/troposphere/rds.py
+++ b/troposphere/rds.py
@@ -223,7 +223,7 @@ class DBInstance(AWSObject):
allocated_storage = self.properties.get('AllocatedStorage')
iops = self.properties.get('Iops', None)
- if iops:
+... | Allow use of AWSHelperFn for IOPS (#<I>) This allows you to use a Ref("AWS::NoValue") for example in both Iops and StorageType (which would result in standard storage, no iops). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+import setuptools # noqa: F401
from numpy.distutils.core import setup, Extension
setup(ext_modules=[Extension(name='gtd7', | setuptools necessary import, even where only seemingly numpy.distutils used | py |
diff --git a/umap/tests/test_umap.py b/umap/tests/test_umap.py
index <HASH>..<HASH> 100644
--- a/umap/tests/test_umap.py
+++ b/umap/tests/test_umap.py
@@ -76,6 +76,7 @@ binary_distances = (
'yule'
)
+
def test_nn_descent_neighbor_accuracy():
rng_state = np.random.randint(INT32_MIN, INT32_MAX, size=3)
... | skip test until test file is in place | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ from setuptools import setup
setup(
name='laws',
packages=['laws'],
- version='0.6.2',
+ version='0.6.3',
description='-ls- for AWS EC2 instances',
long_description='https://github.com/c... | Version bumped to <I> | py |
diff --git a/pytgbot/api_types/sendable/__init__.py b/pytgbot/api_types/sendable/__init__.py
index <HASH>..<HASH> 100644
--- a/pytgbot/api_types/sendable/__init__.py
+++ b/pytgbot/api_types/sendable/__init__.py
@@ -54,6 +54,6 @@ class InputFileFromURL(InputFile):
# end def __init__
def get_request_files(sel... | `InputFileFromURL` now correctly stored/send as buffer. #3 Generally fixing stuff. <URL> | py |
diff --git a/flask_ldap_login/__init__.py b/flask_ldap_login/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_ldap_login/__init__.py
+++ b/flask_ldap_login/__init__.py
@@ -58,6 +58,15 @@ def scalar(value):
return value
+def _is_utf8(s):
+ try:
+ if isinstance(s, str):
+ us = s.decode('u... | Filter returned user data values to eliminate strings that are not valid utf-8 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.