diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/apns2/credentials.py b/apns2/credentials.py
index <HASH>..<HASH> 100644
--- a/apns2/credentials.py
+++ b/apns2/credentials.py
@@ -17,7 +17,7 @@ class Credentials(object):
def create_connection(self, server, port, proto, proxy_host=None, proxy_port=None):
# self.__ssl_context may be none, and ... | Always use TLS with HTTP<I>Connection | py |
diff --git a/pandoc_fignos.py b/pandoc_fignos.py
index <HASH>..<HASH> 100644
--- a/pandoc_fignos.py
+++ b/pandoc_fignos.py
@@ -493,7 +493,7 @@ def process(meta):
break
if 'xnos-number-offset' in meta:
- secoffset = int(get_meta(meta, name))
+ secoffset = int(get_meta(meta, 'xnos-number... | Fixed reading of xnos-number-offset meta variable. | py |
diff --git a/test/__init__.py b/test/__init__.py
index <HASH>..<HASH> 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -95,7 +95,7 @@ class TestSendGrid(unittest.TestCase):
"asm_group_id": 42
}
'''))
- self.assertEqual(url, test_url)
+ self.assertItemsEqua... | changing assertion to check equvivalence, instead of equal | py |
diff --git a/monty/serialization.py b/monty/serialization.py
index <HASH>..<HASH> 100644
--- a/monty/serialization.py
+++ b/monty/serialization.py
@@ -71,7 +71,7 @@ def loadfn(fn, *args, **kwargs):
with zopen(fn, "rb") as fp:
return msgpack.load(fp, *args, **kwargs)
else:
- with zopen(... | Change zopen format to read text instead of binary | py |
diff --git a/ceph_deploy/hosts/remotes.py b/ceph_deploy/hosts/remotes.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/hosts/remotes.py
+++ b/ceph_deploy/hosts/remotes.py
@@ -1,3 +1,5 @@
+import os
+import tempfile
import platform
@@ -25,6 +27,21 @@ def write_sources_list(url, codename):
))
+d... | add the config writing to the remote helpers | py |
diff --git a/ariba/cdhit.py b/ariba/cdhit.py
index <HASH>..<HASH> 100644
--- a/ariba/cdhit.py
+++ b/ariba/cdhit.py
@@ -70,23 +70,18 @@ class Runner:
'''Instead of running cdhit, gets the clusters info from the input file.'''
clusters = self._load_user_clusters_file(clusters_infile)
- # check ... | Only check names from clusters file are in fasta file | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -344,7 +344,7 @@ def _gen_keep_files(name, require):
required_files = [comp for comp in require if 'file' in comp]
for comp in required_files:
for low ... | check w/ low['name'] only | py |
diff --git a/tests/test_mysqlparse.py b/tests/test_mysqlparse.py
index <HASH>..<HASH> 100644
--- a/tests/test_mysqlparse.py
+++ b/tests/test_mysqlparse.py
@@ -34,4 +34,4 @@ class ParseTest(unittest.TestCase):
with self.assertRaises(TypeError) as ctx:
mysqlparse.parse(None)
- self.assertEq... | Learned the hard way that `BaseException.message` was deprecated in <I>. | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -48,6 +48,5 @@ if __name__ == '__main__':
parser = optparse.OptionParser()
parser.add_option('--verbosity', dest='verbosity', action='store',
default=1, type=int)
- parser.add_op... | removed legacy arg dependent on django<<I> | py |
diff --git a/src/openaccess_epub/opf/opf.py b/src/openaccess_epub/opf/opf.py
index <HASH>..<HASH> 100644
--- a/src/openaccess_epub/opf/opf.py
+++ b/src/openaccess_epub/opf/opf.py
@@ -15,7 +15,7 @@ from the input to output, as the publisher convention may differ and some of
the translation decisions are subjective.
... | removed docstring mention of dublincore module | py |
diff --git a/services/views.py b/services/views.py
index <HASH>..<HASH> 100755
--- a/services/views.py
+++ b/services/views.py
@@ -326,8 +326,8 @@ context_instance=RequestContext(request))
def deactivate_discord(request):
authinfo = AuthServicesInfoManager.get_auth_service_info(request.user)
result = Discord... | Moved syncgroup deletion into block ensuring user was deleted. | py |
diff --git a/deepdiff/helper.py b/deepdiff/helper.py
index <HASH>..<HASH> 100644
--- a/deepdiff/helper.py
+++ b/deepdiff/helper.py
@@ -3,6 +3,7 @@ import datetime
import re
import os
import logging
+import warnings
from decimal import Decimal, localcontext
from collections import namedtuple
from ordered_set impor... | Add module-specific waning Set the rule for it | py |
diff --git a/examples/vectors_fast_text.py b/examples/vectors_fast_text.py
index <HASH>..<HASH> 100644
--- a/examples/vectors_fast_text.py
+++ b/examples/vectors_fast_text.py
@@ -29,7 +29,7 @@ def main(vectors_loc, lang=None):
nr_row, nr_dim = header.split()
nlp.vocab.reset_vectors(width=int(nr_dim))
... | rstrip line before rsplit loading english fast text giving error because line contains new line at the end and rsplit is splitting it incorrectly | py |
diff --git a/pyconfig/__init__.py b/pyconfig/__init__.py
index <HASH>..<HASH> 100644
--- a/pyconfig/__init__.py
+++ b/pyconfig/__init__.py
@@ -449,7 +449,7 @@ class etcd(object):
def get_watcher(self):
"""
- Watch the configured prefix for changes.
+ Return a etcd watching generator which ... | docs: More accurate docstring for get_watcher. | py |
diff --git a/brozzler/cli.py b/brozzler/cli.py
index <HASH>..<HASH> 100755
--- a/brozzler/cli.py
+++ b/brozzler/cli.py
@@ -340,6 +340,9 @@ def brozzler_worker(argv=None):
arg_parser.add_argument(
'--skip-youtube-dl', dest='skip_youtube_dl',
action='store_true', help=argparse.SUPPRESS)
+ ... | stealth for brozzler_worker | py |
diff --git a/telemetry/telemetry/internal/backends/app_backend.py b/telemetry/telemetry/internal/backends/app_backend.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/internal/backends/app_backend.py
+++ b/telemetry/telemetry/internal/backends/app_backend.py
@@ -16,9 +16,6 @@ class AppBackend(six.with_metaclass... | [Telemetry] Remove custom destructor from AppBackend Closing the backend in the destructor is 1) Redundant since the backend is being closed from Browser.close() 2) Dangerous since it can happen at any moment due to garbage collection and cause deadlocks in tracing code (see the bug). Bug: chromium:<I> Change-Id: I<I... | py |
diff --git a/translate/providers/microsoft.py b/translate/providers/microsoft.py
index <HASH>..<HASH> 100644
--- a/translate/providers/microsoft.py
+++ b/translate/providers/microsoft.py
@@ -21,8 +21,7 @@ class MicrosoftProvider(BaseProvider):
def _make_request(self, text):
self.headers.update({"Ocp-Api... | Removed hardcoded region for microsoft provider | py |
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -401,7 +401,7 @@ class ClassicalCalculator(base.HazardCalculator):
msg = ('{} is suspiciously large, ... | Better logging [skip CI] | py |
diff --git a/nirum/__init__.py b/nirum/__init__.py
index <HASH>..<HASH> 100644
--- a/nirum/__init__.py
+++ b/nirum/__init__.py
@@ -2,5 +2,5 @@
~~~~~~~~~~~~~~~
"""
-__version_info__ = 0, 3, 1
+__version_info__ = 0, 3, 2
__version__ = '.'.join(str(v) for v in __version_info__) | Version <I> (#<I>) | py |
diff --git a/fudge/patcher.py b/fudge/patcher.py
index <HASH>..<HASH> 100644
--- a/fudge/patcher.py
+++ b/fudge/patcher.py
@@ -26,7 +26,7 @@ else:
# in 2.5+
@contextmanager
def patched_context(obj, attr_name, patched_value):
- """A context manager to execute :func:`fudge.patch_object` from the wit... | minor docstring rewording | py |
diff --git a/ccmlib/common.py b/ccmlib/common.py
index <HASH>..<HASH> 100644
--- a/ccmlib/common.py
+++ b/ccmlib/common.py
@@ -666,12 +666,14 @@ def get_dse_version(install_dir):
def get_dse_cassandra_version(install_dir):
dse_cmd = os.path.join(install_dir, 'bin', 'dse')
- output = subprocess.Popen([dse_cmd... | Ignore stderr in bin/dse cassandra -v output (#<I>) Some versions of DSE may information log messages to stderr when using the 'dse' command. Suppress stderr when parsing version and include it in error message if we cannot parse the version. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,10 +35,6 @@ extras_require = {
'admin': [
'Flask-Admin>=1.3.0',
],
- 'celery': [
- # Needed for building the documentation until v4.2 is released.
- 'celery>=3.1.0,<4.0',
- ],
'd... | global: update dependencies * replaces flask-celeryext with invenio-celery * removes Flask-BabelEx already required by invenio-i<I>n | py |
diff --git a/datahandling/datahandling/datahandling.py b/datahandling/datahandling/datahandling.py
index <HASH>..<HASH> 100644
--- a/datahandling/datahandling/datahandling.py
+++ b/datahandling/datahandling/datahandling.py
@@ -20,6 +20,7 @@ from scipy.optimize import minimize as _minimize
import warnings as _warnings
... | changed seaborn theme to fit someones tase, who does not like grey background | py |
diff --git a/pcef/core/panels/line_number.py b/pcef/core/panels/line_number.py
index <HASH>..<HASH> 100644
--- a/pcef/core/panels/line_number.py
+++ b/pcef/core/panels/line_number.py
@@ -56,17 +56,19 @@ class LineNumberPanel(Panel):
start = end = self.editor.lineNumber(self.__selStart)
self.editor.sel... | Refactor duplicate code in line number panel | py |
diff --git a/indra/statements.py b/indra/statements.py
index <HASH>..<HASH> 100644
--- a/indra/statements.py
+++ b/indra/statements.py
@@ -3276,6 +3276,40 @@ def get_all_descendants(parent):
return descendants
+# In the future, when hierarchy is no longer determined by sub-classing, this
+# function should be ... | Create function to list the hierachy relation of a statement. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ stats, notifications, and a whole lot more.''',
'ps': ['setproctitle']
},
install_requires = [
- 'argparse', 'hiredis', 'redis', 'psutil', 'simplejson'],
+ 'argparse', 'decor... | Fix for "No module named decorator" on fresh environment installs. Fixes regression from 4b<I>b<I>ced0c2f<I>b<I>b<I>e<I>e<I>f<I>c2af. | py |
diff --git a/tabular_predDB/python_utils/data_utils.py b/tabular_predDB/python_utils/data_utils.py
index <HASH>..<HASH> 100644
--- a/tabular_predDB/python_utils/data_utils.py
+++ b/tabular_predDB/python_utils/data_utils.py
@@ -356,3 +356,8 @@ def read_model_data_from_csv(filename, max_rows=None, gen_seed=0,
T = ma... | add helper functions for getting state configuration | py |
diff --git a/zinnia/search.py b/zinnia/search.py
index <HASH>..<HASH> 100644
--- a/zinnia/search.py
+++ b/zinnia/search.py
@@ -15,6 +15,7 @@ from pyparsing import CaselessLiteral
from pyparsing import operatorPrecedence
from django.db.models import Q
+from django.conf import settings
from zinnia.models import En... | Ignore common words in the advanced search | py |
diff --git a/saltapi/netapi/rest_cherrypy/app.py b/saltapi/netapi/rest_cherrypy/app.py
index <HASH>..<HASH> 100644
--- a/saltapi/netapi/rest_cherrypy/app.py
+++ b/saltapi/netapi/rest_cherrypy/app.py
@@ -32,6 +32,9 @@ A REST API for Salt
The path to the private key for your SSL certificate. (See below)
sta... | Added dedicated URL for serving static media | py |
diff --git a/test/test_runner.py b/test/test_runner.py
index <HASH>..<HASH> 100644
--- a/test/test_runner.py
+++ b/test/test_runner.py
@@ -36,7 +36,7 @@ def test_runner_02():
assert run(C) == 42
-def test_parellel_runner_01():
+def test_parallel_runner_01():
A = add(1, 1)
B = sub(3, A)
@@ -44,4... | added test for parallel execution using time.sleep | py |
diff --git a/core.py b/core.py
index <HASH>..<HASH> 100644
--- a/core.py
+++ b/core.py
@@ -221,8 +221,6 @@ def run_setup (script_name, script_args=None, stop_after="run"):
# Hmm, should we do something if exiting with a non-zero code
# (ie. error)?
pass
- except:
- raise
if _... | Issue #<I>: Eliminated senseless expect clauses that have no any effect. Patch by Martin Panter. | py |
diff --git a/tests/nbttests.py b/tests/nbttests.py
index <HASH>..<HASH> 100755
--- a/tests/nbttests.py
+++ b/tests/nbttests.py
@@ -6,13 +6,13 @@ from gzip import GzipFile
# Search parent directory first, to make sure we test the local nbt module,
# not an installed nbt module.
-extrasearchpath = os.path.realpath(o... | Do not add nbt to sys.path if it is already there | py |
diff --git a/pandas/util/print_versions.py b/pandas/util/print_versions.py
index <HASH>..<HASH> 100644
--- a/pandas/util/print_versions.py
+++ b/pandas/util/print_versions.py
@@ -4,6 +4,7 @@ import sys
import struct
import subprocess
import codecs
+import importlib
def get_sys_info():
@@ -55,7 +56,6 @@ def get_... | TST: Remove imp and just use importlib to avoid memory error when showing versions closes #<I> | py |
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/commands/env/start.py b/datadog_checks_dev/datadog_checks/dev/tooling/commands/env/start.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/datadog_checks/dev/tooling/commands/env/start.py
+++ b/datadog_checks_dev/datadog_checks/dev/tooling/commands/env/st... | Fixup #<I>: Expand user paths correctly (#<I>) | py |
diff --git a/mod_pbxproj/mod_pbxproj.py b/mod_pbxproj/mod_pbxproj.py
index <HASH>..<HASH> 100755
--- a/mod_pbxproj/mod_pbxproj.py
+++ b/mod_pbxproj/mod_pbxproj.py
@@ -992,7 +992,7 @@ class XcodeProject(PBXDict):
self.remove_group(childKey, True)
else:
... | Retain proper case sensitivity of the comment. Some folks (Unity, I'm looking at you!) use the comments for the parsing of the file. | py |
diff --git a/thefuck/rules/touch.py b/thefuck/rules/touch.py
index <HASH>..<HASH> 100644
--- a/thefuck/rules/touch.py
+++ b/thefuck/rules/touch.py
@@ -9,6 +9,6 @@ def match(command):
def get_new_command(command):
- path = path = re.findall(
+ path = re.findall(
r"touch: (?:cannot touch ')?(.+)/.+'?:... | removed useless redefined of path variable (#<I>) | py |
diff --git a/respite/serializers/base.py b/respite/serializers/base.py
index <HASH>..<HASH> 100644
--- a/respite/serializers/base.py
+++ b/respite/serializers/base.py
@@ -52,7 +52,7 @@ class Serializer(object):
# Serialize the model by calling its 'serialize' method...
if hasattr(mod... | Fix a bug that prevented the return value of a model's 'serialize' method from being serialized to simple data types | py |
diff --git a/dipper/sources/ZFIN.py b/dipper/sources/ZFIN.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/ZFIN.py
+++ b/dipper/sources/ZFIN.py
@@ -17,7 +17,7 @@ from dipper.models.Model import Model
LOG = logging.getLogger(__name__)
ZFDL = 'http://zfin.org/downloads'
-OBO = 'http://purl.obolibrary.org/obo/zp/sr... | renamed var OBO in ZFIN.py to prevent collision with var from curie map | py |
diff --git a/smartmin/tests.py b/smartmin/tests.py
index <HASH>..<HASH> 100644
--- a/smartmin/tests.py
+++ b/smartmin/tests.py
@@ -163,7 +163,9 @@ class _CRUDLTest(SmartminTest):
self.client.logout()
response = self.client.get(url)
- if self.getCRUDL().permissions:
+
+ view = self.getC... | Don't do CRUDLTest permission test if view explicitly bypasses it | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ import plucky
setup(
name=plucky.__name__,
version=plucky.__version__,
- description=plucky.__doc__,
+ description=plucky.__doc__.strip(),
long_description=open('README.rst').read(),
aut... | PyPI summary should be an oneliner | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100644
--- a/runtests.py
+++ b/runtests.py
@@ -8,6 +8,7 @@ settings.configure(
DATABASES={
"default": {
"ENGINE": "django.db.backends.sqlite3",
+ "NAME": ":memory:",
}
},
INSTALLED_APPS=[ | Don't create a file run in memory sqlite | py |
diff --git a/netpyne/batch.py b/netpyne/batch.py
index <HASH>..<HASH> 100644
--- a/netpyne/batch.py
+++ b/netpyne/batch.py
@@ -29,6 +29,7 @@ def runJob(script, cfgSavePath, netParamsSavePath):
print proc.stdout.read()
def tupleToStr (obj):
+ #print '\nbefore:', obj
if type(obj) == list:
for ite... | fixed bug in batch.py tupleToStr() | py |
diff --git a/doctr/travis.py b/doctr/travis.py
index <HASH>..<HASH> 100644
--- a/doctr/travis.py
+++ b/doctr/travis.py
@@ -59,13 +59,13 @@ def setup_deploy_key():
os.makedirs(os.path.expanduser("~/.ssh"), exist_ok=True)
os.rename("github_deploy_key", key_path)
- run(['ls', '~/.ssh'])
+ run(['ls', os.p... | add expand user to ssh-add command if this is the problem i'll be upset | py |
diff --git a/goose/text.py b/goose/text.py
index <HASH>..<HASH> 100644
--- a/goose/text.py
+++ b/goose/text.py
@@ -28,6 +28,7 @@ from goose.utils.encoding import smart_unicode
from goose.utils.encoding import smart_str
from goose.utils.encoding import DjangoUnicodeDecodeError
+SPACE_SYMBOLS = re.compile(ur'[\s\xa0\... | Fix unicode processing + ` ` support * As STOP_WORDS are stored in unicode format we should keep our words candidates in unicode also to be able to compare candidates against dictionary correctly * With some languages, short stopwords are linked to the next word in the sentance with no-breakable-space. To designa... | py |
diff --git a/tests/unit/test_regressions.py b/tests/unit/test_regressions.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_regressions.py
+++ b/tests/unit/test_regressions.py
@@ -1568,3 +1568,20 @@ def spam():
)
== snippet
)
+
+
+def test_isort_shouldnt_add_extra_line_float_to_top_issue_1667(... | Create failing test for issue #<I> | py |
diff --git a/lib/bx/pwm/pwm_tests.py b/lib/bx/pwm/pwm_tests.py
index <HASH>..<HASH> 100644
--- a/lib/bx/pwm/pwm_tests.py
+++ b/lib/bx/pwm/pwm_tests.py
@@ -64,13 +64,6 @@ qScoresExpected = "4.1106 0.7810"
class PWMTestCase (unittest.TestCase):
- # def setUp(self):
- # sys.stdout = None # this causes an At... | Removing the sys.stdout change from this test | py |
diff --git a/tests/test_menu_launcher.py b/tests/test_menu_launcher.py
index <HASH>..<HASH> 100644
--- a/tests/test_menu_launcher.py
+++ b/tests/test_menu_launcher.py
@@ -337,7 +337,7 @@ def test_get_namespace_menu():
def test_running_menu():
""" test running the actual menu """
cmd_invalid_path = "python2.7... | Test 3 for UP_Key binding. | py |
diff --git a/splinter/driver/webdriver/__init__.py b/splinter/driver/webdriver/__init__.py
index <HASH>..<HASH> 100644
--- a/splinter/driver/webdriver/__init__.py
+++ b/splinter/driver/webdriver/__init__.py
@@ -121,26 +121,10 @@ class BaseWebDriver(DriverAPI):
return self.is_element_not_present(self.find_by_na... | refactoring is_element_(not_)?present_by_id methods to use the same is_element_present method as the other 'element exists' checks use | py |
diff --git a/Documentation/conf.py b/Documentation/conf.py
index <HASH>..<HASH> 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -70,7 +70,7 @@ author = u'Cilium Authors'
release = open("../VERSION", "r").read().strip()
# Used by version warning
versionwarning_body_selector = "div.document"
-version... | docs: set the right url for API version check The right format for this field should contain the protocol and a trailing "/" to work properly. Fixes: b3b<I>e4c9 ("docs: fix version warning URL to point to docs.cilium.io") | py |
diff --git a/nodeconductor/structure/tasks.py b/nodeconductor/structure/tasks.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/structure/tasks.py
+++ b/nodeconductor/structure/tasks.py
@@ -147,7 +147,7 @@ def recover_erred_service_settings(settings_uuids=None):
logger.warning('Cannot recover service sett... | Remove space in shared_task name - NC-<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ from util.cyutil import cythonize # my version of Cython.Build.cythonize
# NOTE: distutils makes no sense
extra_link_args = []
-extra_compile_args = []
+extra_compile_args = ['-DHMM_TEMPS_ON_HEAP']
if '--wi... | put HMM temps on heap by default | py |
diff --git a/pandas_td/td.py b/pandas_td/td.py
index <HASH>..<HASH> 100644
--- a/pandas_td/td.py
+++ b/pandas_td/td.py
@@ -388,6 +388,10 @@ def read_td_query(query, engine, index_col=None, parse_dates=None, distributed_j
See https://prestodb.io/docs/current/release/release-0.77.html
params : dict, optiona... | Add docs for read_td_query "params" | py |
diff --git a/tests/parallel_test.py b/tests/parallel_test.py
index <HASH>..<HASH> 100644
--- a/tests/parallel_test.py
+++ b/tests/parallel_test.py
@@ -123,6 +123,30 @@ class PapplyTest(jtu.JaxTestCase):
ans = pmap(pfun, axis_name)(x)
self.assertAllClose(ans, expected, check_dtypes=True)
+ def testBinopAfte... | Pmap tests for plus-after-transpose | py |
diff --git a/src/Rammbock/core.py b/src/Rammbock/core.py
index <HASH>..<HASH> 100644
--- a/src/Rammbock/core.py
+++ b/src/Rammbock/core.py
@@ -84,7 +84,7 @@ class RammbockCore(object):
my_module.py:
| def respond_to_sample(rammbock, msg):
- | rammbock.save_template("__backup_template")
+ ... | added to handler example that template is unlocked | py |
diff --git a/mbdata/__init__.py b/mbdata/__init__.py
index <HASH>..<HASH> 100644
--- a/mbdata/__init__.py
+++ b/mbdata/__init__.py
@@ -1,3 +1,42 @@
# Copyright (C) 2013 Lukas Lalinsky
# Distributed under the MIT license, see the LICENSE file for details.
+
+NO_SCHEMAS = {
+ 'musicbrainz': None,
+ 'cover_art_a... | Add a way to remap the schemas | py |
diff --git a/netmiko/cisco_base_connection.py b/netmiko/cisco_base_connection.py
index <HASH>..<HASH> 100644
--- a/netmiko/cisco_base_connection.py
+++ b/netmiko/cisco_base_connection.py
@@ -63,7 +63,7 @@ class CiscoBaseConnection(BaseConnection):
username_pattern, pwd_pattern, del... | Extend username_pattern for DELL PowerConnect | py |
diff --git a/bulbs/content/serializers.py b/bulbs/content/serializers.py
index <HASH>..<HASH> 100644
--- a/bulbs/content/serializers.py
+++ b/bulbs/content/serializers.py
@@ -106,7 +106,7 @@ class AuthorField(relations.RelatedField):
class ContentSerializer(serializers.ModelSerializer):
- polymorphic_ctype = Co... | This polymorphic_ctype field should be read only | py |
diff --git a/test/test_action.py b/test/test_action.py
index <HASH>..<HASH> 100755
--- a/test/test_action.py
+++ b/test/test_action.py
@@ -72,7 +72,7 @@ class TestAction(ShinkenTest):
self.assert_(a.output == "Hi, I'm for testing only. Please do not use me directly, really")
self.assert_(a.perf_data =... | Fix typo in name of test-case. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ with open(os.path.join(here, 'gandi', 'cli', '__init__.py')) as v_file:
version = re.compile(r".*__version__ = '(.*?)'",
re.S).match(v_file.read()).group(1)
-requires = ['setupto... | We can use a more modern version of click lib. | py |
diff --git a/pelix/shell/beans.py b/pelix/shell/beans.py
index <HASH>..<HASH> 100644
--- a/pelix/shell/beans.py
+++ b/pelix/shell/beans.py
@@ -164,7 +164,11 @@ class IOHandler(object):
# Specific behavior
if sys.version_info[0] >= 3:
- if 'b' in getattr(out_stream, 'mode', ''):
+ ... | Corrected Remote Shell IOHandler for Python <I> Look for the "encoding" field in file-like objects if they don't have a "mode" field. | py |
diff --git a/bugwarrior/services/github.py b/bugwarrior/services/github.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/services/github.py
+++ b/bugwarrior/services/github.py
@@ -432,14 +432,19 @@ class GithubService(IssueService):
issues.update(self.get_query(self.query))
if self.config.get('in... | GitHub: Only query for user repos if an include_repos list is not specified. I think this is the desired behavior. If you have a config with only one `include_repos` repo set, bugwarrior shouldn't bother querying for and paging through all the repos of the user. We can short-circuit that and assume the repo exists. | py |
diff --git a/glue/ligolw/utils/segments.py b/glue/ligolw/utils/segments.py
index <HASH>..<HASH> 100644
--- a/glue/ligolw/utils/segments.py
+++ b/glue/ligolw/utils/segments.py
@@ -80,6 +80,7 @@ class LigolwSegmentList(object):
"""
self.valid.coalesce()
self.active.coalesce()
+ return self
#
@@ -164,6 +165... | glue.ligolw.segments: return self from .coalesce() methods makes these methods behave like the corresponding methods of the class in the glue.segments module. | py |
diff --git a/sortedm2m/fields.py b/sortedm2m/fields.py
index <HASH>..<HASH> 100644
--- a/sortedm2m/fields.py
+++ b/sortedm2m/fields.py
@@ -95,7 +95,8 @@ def create_sorted_many_to_many_intermediate_model(field, klass):
# We need to catch if the model is not yet migrated in the
# databas... | Avoiding InternalError by creating separate transaction when table is not yet created. | py |
diff --git a/openquake/risklib/asset.py b/openquake/risklib/asset.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/asset.py
+++ b/openquake/risklib/asset.py
@@ -318,9 +318,9 @@ class TagCollection(object):
ranges = [range(1, len(tags)) for tags in alltags]
for i, idxs in enumerate(itertools.prod... | Removed the check on too many aggregation tags [ci skip] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ os.chdir(setup_folder_loc)
exec(open(os.path.join(".", "dwave", "system", "package_info.py")).read())
-install_requires = ['dimod>=0.9.11,<0.11.0',
+install_requires = ['dimod>=0.9.16,<0.11.0',
... | Resolve dependency conflicts with dimod <I> (#<I>) See <URL> | py |
diff --git a/jsonschema/tests/test_validators.py b/jsonschema/tests/test_validators.py
index <HASH>..<HASH> 100644
--- a/jsonschema/tests/test_validators.py
+++ b/jsonschema/tests/test_validators.py
@@ -810,6 +810,7 @@ class TestRefResolver(unittest.TestCase):
def test_it_can_construct_a_base_uri_from_a_schema(sel... | Add back assertions for backwards compat. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,10 +37,10 @@ setup(
url="https://github.com/RIPE-NCC/ripe-atlas-cousteau",
description="Python wrapper for RIPE Atlas API",
long_description=long_description,
- author="RIPE Atlas Development Team",
- ... | CHange maintainer to The RIPE Atlas Team and change email addresses to <EMAIL> | py |
diff --git a/pyemma/coordinates/api.py b/pyemma/coordinates/api.py
index <HASH>..<HASH> 100644
--- a/pyemma/coordinates/api.py
+++ b/pyemma/coordinates/api.py
@@ -243,10 +243,9 @@ def input(input, featurizer=None, topology=None):
# we have a topology file
reader = _FeatureReade... | Added todo keyword such that the input of raw data does not get overlooked | py |
diff --git a/pysparkling/rdd.py b/pysparkling/rdd.py
index <HASH>..<HASH> 100644
--- a/pysparkling/rdd.py
+++ b/pysparkling/rdd.py
@@ -17,6 +17,11 @@ from .stat_counter import StatCounter
from .partition import PersistedPartition
from .exceptions import FileAlreadyExistsException
+try:
+ from itertools import iz... | work around missing itertools.izip() in py3 | py |
diff --git a/tungsten/core.py b/tungsten/core.py
index <HASH>..<HASH> 100644
--- a/tungsten/core.py
+++ b/tungsten/core.py
@@ -30,13 +30,17 @@ class Tungsten(object):
class Result(object):
def __init__(self, xml_result = None):
# Construct XML tree
- self.xml = xml_result
self.xml_tree = ... | Minor changes to improve stability of Result.error | py |
diff --git a/tests/test_entities.py b/tests/test_entities.py
index <HASH>..<HASH> 100644
--- a/tests/test_entities.py
+++ b/tests/test_entities.py
@@ -2749,6 +2749,7 @@ class ContentViewTestCase(TestCase):
"version": "2.0",
"environment_ids": [1],
}],
+ "solve_d... | add test coverage to solve the travis issue | py |
diff --git a/fireplace/cards/naxxramas/collectible.py b/fireplace/cards/naxxramas/collectible.py
index <HASH>..<HASH> 100644
--- a/fireplace/cards/naxxramas/collectible.py
+++ b/fireplace/cards/naxxramas/collectible.py
@@ -83,7 +83,7 @@ class FP1_022:
# Dark Cultist
class FP1_023:
- deathrattle = Buff(RANDOM_FRIEND... | Exclude other minions from Dark Cultist's deathrattle Reproduces behaviour reported in HearthSim/hs-bugs#<I> | py |
diff --git a/drizzlepac/hlautils/poller_utils.py b/drizzlepac/hlautils/poller_utils.py
index <HASH>..<HASH> 100755
--- a/drizzlepac/hlautils/poller_utils.py
+++ b/drizzlepac/hlautils/poller_utils.py
@@ -354,11 +354,17 @@ def build_poller_table(input, log_level):
# Convert to a string column, instead of i... | Fix simple poller input (#<I>) * Fix poller_utils to accept file as input * Get code to work in runsinglehap | py |
diff --git a/bcbio/pipeline/main.py b/bcbio/pipeline/main.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/main.py
+++ b/bcbio/pipeline/main.py
@@ -345,7 +345,7 @@ def rnaseq_prep_samples(config, run_info_yaml, parallel, dirs, samples):
necessary and trimming if necessary
"""
pipeline = dd.get_in_samp... | Fix checking trim_reads parameter functions in datadict will look for trim_reads under config:algorithm:trim_reads, but at the point is checked here the parameters are directly under algorithm:trim_reads, so every time was skipping the trimming step. | py |
diff --git a/danceschool/core/feeds.py b/danceschool/core/feeds.py
index <HASH>..<HASH> 100644
--- a/danceschool/core/feeds.py
+++ b/danceschool/core/feeds.py
@@ -66,7 +66,7 @@ class EventFeed(ICalFeed):
return [EventFeedItem(x) for x in item_set.exclude(event__status=Event.RegStatus.linkOnly)]
el... | Fixed lettercase typo affecting instructor-specific calendar feeds. | py |
diff --git a/test/test_message_class.py b/test/test_message_class.py
index <HASH>..<HASH> 100644
--- a/test/test_message_class.py
+++ b/test/test_message_class.py
@@ -7,7 +7,7 @@ from math import isinf, isnan
from copy import copy, deepcopy
import pickle
-from hypothesis import given, settings, reproduce_failure
+f... | disable deadline healthcheck on test_message_class.py | py |
diff --git a/tests/samtools_test.py b/tests/samtools_test.py
index <HASH>..<HASH> 100644
--- a/tests/samtools_test.py
+++ b/tests/samtools_test.py
@@ -237,10 +237,12 @@ class SamtoolsTest(unittest.TestCase):
continue
self.check_statement(statement)
+ @unitest.skipIf(sys.platform == "d... | {AH} disable usage test on OsX | py |
diff --git a/pysat/__init__.py b/pysat/__init__.py
index <HASH>..<HASH> 100644
--- a/pysat/__init__.py
+++ b/pysat/__init__.py
@@ -41,17 +41,6 @@ from __future__ import print_function
from __future__ import absolute_import
import os
-from pandas import Panel, DataFrame, Series, datetime
-from . import utils, model_... | order of import should preclude pep8 | py |
diff --git a/cbpro/authenticated_client.py b/cbpro/authenticated_client.py
index <HASH>..<HASH> 100644
--- a/cbpro/authenticated_client.py
+++ b/cbpro/authenticated_client.py
@@ -477,10 +477,9 @@ class AuthenticatedClient(PublicClient):
"""
if product_id is not None:
params = {'product_id... | drop JSON encoding for DELETE/cancel_all param functionality | py |
diff --git a/python/ray/tests/test_object_spilling.py b/python/ray/tests/test_object_spilling.py
index <HASH>..<HASH> 100644
--- a/python/ray/tests/test_object_spilling.py
+++ b/python/ray/tests/test_object_spilling.py
@@ -274,23 +274,18 @@ def test_unstable_spill_objects_automatically(unstable_spilling_config,
... | Make the spill test on unstable filesystem not so verbose (#<I>) * less logs * update * update | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,11 +34,8 @@ except ImportError:
extras_require = {
'docs': [
- 'Sphinx==1.2.1',
- # TODO: remove when updating to Sphinx 1.3, since napoleon will be
- # included as sphinx.ext.napoleon
- ... | Bump sphinx version to <I> to match Read The Docs. | py |
diff --git a/aikif/mapper.py b/aikif/mapper.py
index <HASH>..<HASH> 100644
--- a/aikif/mapper.py
+++ b/aikif/mapper.py
@@ -25,8 +25,9 @@ class Mapper(object):
"""
setup that reads the table
"""
- self.load_rules()
self.map_type = 'file'
+ self.maps = [] # list ... | shows basic count by type for mappers | py |
diff --git a/qiskit/extensions/unitary.py b/qiskit/extensions/unitary.py
index <HASH>..<HASH> 100644
--- a/qiskit/extensions/unitary.py
+++ b/qiskit/extensions/unitary.py
@@ -156,7 +156,7 @@ class UnitaryGate(Gate):
mat = self.to_matrix()
cmat = _compute_control_matrix(mat, num_ctrl_qubits, ctrl_state... | Remove obsolete global_phase hack in UnitaryGate.control (#<I>) * remove global phase hack * Create remove_hack-7f2c<I>e5d8d<I>.yaml * Remove release note | py |
diff --git a/uvicorn/protocols/http/h11_impl.py b/uvicorn/protocols/http/h11_impl.py
index <HASH>..<HASH> 100644
--- a/uvicorn/protocols/http/h11_impl.py
+++ b/uvicorn/protocols/http/h11_impl.py
@@ -134,7 +134,7 @@ class H11Protocol(asyncio.Protocol):
if self.logger.level <= TRACE_LOG_LEVEL:
pre... | Fix missed %s in H<I> protocol logging (#<I>) Solves #<I> | py |
diff --git a/proso/django/cache.py b/proso/django/cache.py
index <HASH>..<HASH> 100644
--- a/proso/django/cache.py
+++ b/proso/django/cache.py
@@ -1,6 +1,7 @@
from django.core.cache.backends.locmem import LocMemCache
from django.views.decorators.cache import cache_page
from functools import wraps
+from proso.django.... | increase max number of entries in request cache | py |
diff --git a/raven/base.py b/raven/base.py
index <HASH>..<HASH> 100644
--- a/raven/base.py
+++ b/raven/base.py
@@ -178,6 +178,12 @@ class Client(object):
self.servers = servers
self.include_paths = set(include_paths or defaults.INCLUDE_PATHS)
self.exclude_paths = set(exclude_paths or defaults... | Handle the case where name is not set when initializing the Client | py |
diff --git a/vcs/backends/hg.py b/vcs/backends/hg.py
index <HASH>..<HASH> 100644
--- a/vcs/backends/hg.py
+++ b/vcs/backends/hg.py
@@ -373,7 +373,8 @@ class MercurialChangeset(BaseChangeset):
"""
fctx = self._get_filectx(path)
annotate = []
- for ln_no, annotate_data in enumerate(fctx.... | Fixed #<I> - removed start param from enumerate as it was introduced in py<I> | py |
diff --git a/tests/json-fixtures/test_blockchain.py b/tests/json-fixtures/test_blockchain.py
index <HASH>..<HASH> 100644
--- a/tests/json-fixtures/test_blockchain.py
+++ b/tests/json-fixtures/test_blockchain.py
@@ -254,7 +254,6 @@ def test_blockchain_fixtures(fixture_data, fixture):
# 3 - diff resulting state with... | Show failures immediately in blockchain tests Without this, the next import will fail because it can't find the expected parent. That's a much more confusing error than just showing the block validation failure immediately. | py |
diff --git a/tldap/base.py b/tldap/base.py
index <HASH>..<HASH> 100644
--- a/tldap/base.py
+++ b/tldap/base.py
@@ -132,8 +132,9 @@ class LDAPmeta(type):
# an attribute in this class has replaced the field
pass
elif field.name in parent_field_names:
- ... | Trick pep8 into ignoring E<I>. We really do need to compare types here, the types should be identical. Change-Id: I<I>d8e<I>b1b7be<I>b<I>a<I>c<I>fecac | py |
diff --git a/pipenv/environments.py b/pipenv/environments.py
index <HASH>..<HASH> 100644
--- a/pipenv/environments.py
+++ b/pipenv/environments.py
@@ -51,4 +51,4 @@ PIPENV_TIMEOUT = int(os.environ.get('PIPENV_TIMEOUT', 120))
PIPENV_INSTALL_TIMEOUT = 60 * 15
-PYENV_INSTALLED = bool(os.environ.get('PYENV_SHELL'))
+P... | PYENV_ROOT & PYENV_SHELL | py |
diff --git a/bokeh/command/subcommands/serve.py b/bokeh/command/subcommands/serve.py
index <HASH>..<HASH> 100644
--- a/bokeh/command/subcommands/serve.py
+++ b/bokeh/command/subcommands/serve.py
@@ -205,19 +205,6 @@ The logging level can be controlled by the ``--log-level`` argument:
The available log levels are: {L... | Remove docs reference to functionality not yet implemented | py |
diff --git a/examples/run-video-transcoding-job.py b/examples/run-video-transcoding-job.py
index <HASH>..<HASH> 100644
--- a/examples/run-video-transcoding-job.py
+++ b/examples/run-video-transcoding-job.py
@@ -41,6 +41,16 @@ def _indent(s, indent=' '):
#---- mainline
+print "* * *"
+print "* Warning: This exam... | add a warning for idle testers of a non-insignificant job | py |
diff --git a/xclim/testing/tests/test_precip.py b/xclim/testing/tests/test_precip.py
index <HASH>..<HASH> 100644
--- a/xclim/testing/tests/test_precip.py
+++ b/xclim/testing/tests/test_precip.py
@@ -436,7 +436,5 @@ def test_dry_spell():
np.testing.assert_allclose(events[0:2, 0], [5, 8], rtol=1e-1)
np.testing.... | change assert of test_dry_spell | py |
diff --git a/is_core/generic_views/form_views.py b/is_core/generic_views/form_views.py
index <HASH>..<HASH> 100644
--- a/is_core/generic_views/form_views.py
+++ b/is_core/generic_views/form_views.py
@@ -382,7 +382,7 @@ class DefaultModelFormView(DefaultFormView):
def formfield_for_readonlyfield(self, name, **kwarg... | Readonly data is generated with obj value | py |
diff --git a/performance/venv.py b/performance/venv.py
index <HASH>..<HASH> 100644
--- a/performance/venv.py
+++ b/performance/venv.py
@@ -240,4 +240,12 @@ def create_virtualenv(python):
def exec_in_virtualenv(options):
venv_python = create_virtualenv(options.python)
args = [venv_python, "-m", "performance"]... | Change execv to Popen to avoid cmd backgrounding issue in windows. | py |
diff --git a/lore/encoders.py b/lore/encoders.py
index <HASH>..<HASH> 100644
--- a/lore/encoders.py
+++ b/lore/encoders.py
@@ -319,7 +319,7 @@ class Norm(Continuous):
def fit(self, data):
with timer(('fit %s' % self.name), logging.DEBUG):
- series = self.series(data)
+ series = sel... | [encoders] ensure we're dealing with the correct dtype early | py |
diff --git a/tests/jobs/test_scheduler_job.py b/tests/jobs/test_scheduler_job.py
index <HASH>..<HASH> 100644
--- a/tests/jobs/test_scheduler_job.py
+++ b/tests/jobs/test_scheduler_job.py
@@ -2689,7 +2689,10 @@ class TestSchedulerJob:
self.scheduler_job.executor = MockExecutor()
self.scheduler_job.proc... | Fix occassionally failing timeout test (#<I>) The test failed someties with: ``` > assert run2.state == State.RUNNING E AssertionError: assert 'queued' == <TaskInstance...NG: 'running'> E - running E + queued ``` | py |
diff --git a/salt/pillar/consul_pillar.py b/salt/pillar/consul_pillar.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/consul_pillar.py
+++ b/salt/pillar/consul_pillar.py
@@ -22,9 +22,9 @@ All parameters are optional.
The ``consul.token`` requires python-consul >= 0.4.7.
-If you have a multi-datacenter Consul clus... | Fix bad RST in consul_pillar docstring | py |
diff --git a/docs/_exts/sphinxcontrib-redirects/__init__.py b/docs/_exts/sphinxcontrib-redirects/__init__.py
index <HASH>..<HASH> 100644
--- a/docs/_exts/sphinxcontrib-redirects/__init__.py
+++ b/docs/_exts/sphinxcontrib-redirects/__init__.py
@@ -16,7 +16,6 @@
import os
-from sphinx.builders import html as builder... | [Docs] Enable redirections on ReadTheDocs | py |
diff --git a/coursera/coursera_dl.py b/coursera/coursera_dl.py
index <HASH>..<HASH> 100755
--- a/coursera/coursera_dl.py
+++ b/coursera/coursera_dl.py
@@ -171,9 +171,9 @@ def get_syllabus_url(class_name, preview):
Return the Coursera index/syllabus URL, depending on if we want to only
preview or if we are enr... | cosmetics: Remove camel case. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.