diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/clint/textui/core.py b/clint/textui/core.py
index <HASH>..<HASH> 100644
--- a/clint/textui/core.py
+++ b/clint/textui/core.py
@@ -57,6 +57,12 @@ class Writer(object):
def __call__(self, s, newline=True, stream=STDOUT):
+
+ if newline:
+ s = s.split('\n')
+ inde... | added '\n' indentation injection support | py |
diff --git a/webdriverwrapper/gotopage.py b/webdriverwrapper/gotopage.py
index <HASH>..<HASH> 100644
--- a/webdriverwrapper/gotopage.py
+++ b/webdriverwrapper/gotopage.py
@@ -24,10 +24,13 @@ class GoToPage(object):
@wraps(self.func)
def f(self_of_wrapped_method):
_append_domain(self.url_k... | Allow to easily replace go_to_page method | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,6 +10,8 @@ version = m.group(1) if m is not None else '0.0.0'
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
+requires = ['Jinja2', 'pytest', 'pytest-pythonpath']
+
setup... | updated rquires in setup.py | py |
diff --git a/pgmpy/models/DynamicBayesianNetwork.py b/pgmpy/models/DynamicBayesianNetwork.py
index <HASH>..<HASH> 100644
--- a/pgmpy/models/DynamicBayesianNetwork.py
+++ b/pgmpy/models/DynamicBayesianNetwork.py
@@ -32,7 +32,7 @@ class DynamicNode:
return f"({self.node}, {self.time_slice})"
def __repr__(... | Fixes DynamicBayesianNetwork.__repr__ method to show correct node name | py |
diff --git a/tests/git_code_debt/repo_parser_test.py b/tests/git_code_debt/repo_parser_test.py
index <HASH>..<HASH> 100644
--- a/tests/git_code_debt/repo_parser_test.py
+++ b/tests/git_code_debt/repo_parser_test.py
@@ -54,6 +54,7 @@ def test_get_commit_shas_after_date(checked_out_repo):
check_output_mock.c... | Make the integration tests actually marked as integration tests. | py |
diff --git a/jobtastic/__init__.py b/jobtastic/__init__.py
index <HASH>..<HASH> 100644
--- a/jobtastic/__init__.py
+++ b/jobtastic/__init__.py
@@ -1,6 +1,6 @@
"""Make your user-facing Celery jobs totally awesomer"""
-VERSION = (1, 0, 0, 'a1')
+VERSION = (1, 0, 0, 'a2')
__version__ = '.'.join(map(str, VERSION[0:3]))... | Bumped to version <I>a2 | py |
diff --git a/ELiDE/ELiDE/board/board.py b/ELiDE/ELiDE/board/board.py
index <HASH>..<HASH> 100644
--- a/ELiDE/ELiDE/board/board.py
+++ b/ELiDE/ELiDE/board/board.py
@@ -62,10 +62,9 @@ def normalize_layout(l):
class KvLayoutBack(FloatLayout):
"""What to show behind the graph.
- By default, shows a static image.... | Delete unused StringProperty | py |
diff --git a/nornir/plugins/tasks/networking/netmiko_save_config.py b/nornir/plugins/tasks/networking/netmiko_save_config.py
index <HASH>..<HASH> 100644
--- a/nornir/plugins/tasks/networking/netmiko_save_config.py
+++ b/nornir/plugins/tasks/networking/netmiko_save_config.py
@@ -8,6 +8,7 @@ def netmiko_save_config(
) -... | added empty line so the docstring is properly formatter (#<I>) | py |
diff --git a/slither/detectors/attributes/locked_ether.py b/slither/detectors/attributes/locked_ether.py
index <HASH>..<HASH> 100644
--- a/slither/detectors/attributes/locked_ether.py
+++ b/slither/detectors/attributes/locked_ether.py
@@ -5,7 +5,7 @@
from slither.detectors.abstract_detector import (AbstractDetector,
... | LockedEther: Add NewContract to the list of msg.value checks (close #<I>) | py |
diff --git a/frasco_users/__init__.py b/frasco_users/__init__.py
index <HASH>..<HASH> 100644
--- a/frasco_users/__init__.py
+++ b/frasco_users/__init__.py
@@ -495,6 +495,11 @@ class UsersFeature(Feature):
if not user and "form" in current_context.data and request.method == "POST":
form = current_c... | bug fix where invalid email when resetting password was raising an exception | py |
diff --git a/chm/chm.py b/chm/chm.py
index <HASH>..<HASH> 100644
--- a/chm/chm.py
+++ b/chm/chm.py
@@ -207,7 +207,7 @@ class CHMFile:
such as the index file name and the topics file. It returns 1 on
success, and 0 if it fails.
'''
- if self.filename is not None:
+ if self.filena... | Fix a wrong condition (filename is never None) | py |
diff --git a/dpark/beansdb.py b/dpark/beansdb.py
index <HASH>..<HASH> 100644
--- a/dpark/beansdb.py
+++ b/dpark/beansdb.py
@@ -126,7 +126,7 @@ def read_record(f, check_crc=False):
def write_record(f, key, flag, value, version, ts):
- header = struct.pack('IIIII', ts, flag, version, len(key), len(value))
+ he... | fix: neg version in beansdb.write_record | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -111,8 +111,8 @@ pygments_style = 'sphinx'
slide_theme = 'single-level'
slide_theme_options = {'custom_css':'custom.css'}
-slide_link_html_to_slides = True
-slide_link_html_sections_to_slides = True
+slide_... | Only interlink HTML and Slides when not on RTD. At least until RTD supports Hieroglyph. Bwa-ha-ha-ha-ha. | py |
diff --git a/reana_db/version.py b/reana_db/version.py
index <HASH>..<HASH> 100644
--- a/reana_db/version.py
+++ b/reana_db/version.py
@@ -14,4 +14,4 @@ and parsed by ``setup.py``.
from __future__ import absolute_import, print_function
-__version__ = "0.8.0a18"
+__version__ = "0.8.0a19" | release: <I>a<I> | py |
diff --git a/allennlp/predictors/predictor.py b/allennlp/predictors/predictor.py
index <HASH>..<HASH> 100644
--- a/allennlp/predictors/predictor.py
+++ b/allennlp/predictors/predictor.py
@@ -14,6 +14,7 @@ DEFAULT_PREDICTORS = {
'biaffine_parser': 'biaffine-dependency-parser',
'bidaf': 'machine-compreh... | Added default predictor for bimpm model (#<I>) | py |
diff --git a/flask_unchained/bundles/api/extensions/api.py b/flask_unchained/bundles/api/extensions/api.py
index <HASH>..<HASH> 100644
--- a/flask_unchained/bundles/api/extensions/api.py
+++ b/flask_unchained/bundles/api/extensions/api.py
@@ -1,8 +1,7 @@
try:
from apispec.ext.marshmallow.openapi import __location... | allow bundles to import from the api bundle without apispec installed | py |
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/mainwindow.py
+++ b/spyder/app/mainwindow.py
@@ -1121,8 +1121,9 @@ class MainWindow(QMainWindow):
)
# Needed to ensure dockwidgets/panes layout size distribution
+ # wh... | Layout: Prevent multiple resizes on fresh config | py |
diff --git a/watermarker/templatetags/watermark.py b/watermarker/templatetags/watermark.py
index <HASH>..<HASH> 100644
--- a/watermarker/templatetags/watermark.py
+++ b/watermarker/templatetags/watermark.py
@@ -5,7 +5,10 @@ import errno
import logging
import os
import traceback
-from urllib import unquote
+try:
+ ... | Python 3 reorganization of the standard library. | py |
diff --git a/bokeh/themes/theme.py b/bokeh/themes/theme.py
index <HASH>..<HASH> 100644
--- a/bokeh/themes/theme.py
+++ b/bokeh/themes/theme.py
@@ -64,10 +64,12 @@ class Theme(object):
to be easily applied to Bokeh documents.
The ``Theme`` class can be constructed either from a YAML file or from a
- JSON ... | Document plotting API effect on themes (#<I>) As discussed in #<I> | py |
diff --git a/helpers/postgresql.py b/helpers/postgresql.py
index <HASH>..<HASH> 100644
--- a/helpers/postgresql.py
+++ b/helpers/postgresql.py
@@ -187,7 +187,7 @@ class Postgresql:
conn and conn.close()
# if the size of the accumulated WAL segments is more than 5% of the backup size - we should ... | returned the choice between S3 and pg_basebackup based on diff_in_bytes | py |
diff --git a/src/txkube/testing/integration.py b/src/txkube/testing/integration.py
index <HASH>..<HASH> 100644
--- a/src/txkube/testing/integration.py
+++ b/src/txkube/testing/integration.py
@@ -97,7 +97,7 @@ def is_active():
-def _named(kind, name, namespace):
+def _named(kind, name, namespace=None):
return... | Fix signature of _named for non-namespaced objects | py |
diff --git a/goatools/grouper/grprdflts.py b/goatools/grouper/grprdflts.py
index <HASH>..<HASH> 100644
--- a/goatools/grouper/grprdflts.py
+++ b/goatools/grouper/grprdflts.py
@@ -15,6 +15,7 @@
__copyright__ = "Copyright (C) 2016-2018, DV Klopfenstein, H Tang, All rights reserved."
__author__ = "DV Klopfenstein"
+im... | Print when reading a goslim file. | py |
diff --git a/_pytest/recwarn.py b/_pytest/recwarn.py
index <HASH>..<HASH> 100644
--- a/_pytest/recwarn.py
+++ b/_pytest/recwarn.py
@@ -45,8 +45,8 @@ def deprecated_call(func, *args, **kwargs):
try:
ret = func(*args, **kwargs)
finally:
- warnings.warn_explicit = warn_explicit
- warnings.... | deprecated_call dit not revert functions back to original Make sure that the warnings.warn and warnings.warn_explicit are reverted to there original function after running the function in deprecated_call | py |
diff --git a/_extension/commands_extension.py b/_extension/commands_extension.py
index <HASH>..<HASH> 100644
--- a/_extension/commands_extension.py
+++ b/_extension/commands_extension.py
@@ -17,6 +17,11 @@ class CommandsExtension(Extension):
self._receivers = {}
+ def initialize(self, trainer):
+ ... | remove commands file on intitialize | py |
diff --git a/etesync/api.py b/etesync/api.py
index <HASH>..<HASH> 100644
--- a/etesync/api.py
+++ b/etesync/api.py
@@ -118,10 +118,11 @@ class EteSync:
journal = existing[entry.uid]
del existing[journal.uid]
else:
- journal = cache.JournalEntity(local_user=s... | Journal list fetching: fix stale cache issue. These fields can change and therefore we need to always fetch them. | py |
diff --git a/tests/test_xtuml/test_metamodel.py b/tests/test_xtuml/test_metamodel.py
index <HASH>..<HASH> 100644
--- a/tests/test_xtuml/test_metamodel.py
+++ b/tests/test_xtuml/test_metamodel.py
@@ -87,6 +87,15 @@ class TestModel(unittest.TestCase):
q1 = m.select_many('S_DT', order_by('Name', 'DT_ID'))
... | test combining select many with both a filter and order_by | py |
diff --git a/citadel/indico_citadel/search.py b/citadel/indico_citadel/search.py
index <HASH>..<HASH> 100644
--- a/citadel/indico_citadel/search.py
+++ b/citadel/indico_citadel/search.py
@@ -106,4 +106,5 @@ filters = {
'start_range': _('Date'),
'category': _('Category'),
'category_id': _('Category ID'),
... | Citadel: Allow filtering by event id | py |
diff --git a/orcid/orcid.py b/orcid/orcid.py
index <HASH>..<HASH> 100644
--- a/orcid/orcid.py
+++ b/orcid/orcid.py
@@ -165,9 +165,14 @@ class MemberAPI(PublicAPI):
provided.
:param xml: string
The record in ORCID XML format. Optional.
+
+ Returns
+ -------
+ :retu... | returning put-code of a new paper (closes #2) | py |
diff --git a/tests/test_oauth2_session.py b/tests/test_oauth2_session.py
index <HASH>..<HASH> 100644
--- a/tests/test_oauth2_session.py
+++ b/tests/test_oauth2_session.py
@@ -1,6 +1,7 @@
from __future__ import unicode_literals
import json
import mock
+import time
import unittest
from oauthlib.common import urlen... | Set expires_at based on current time, not just an arbitrary timestamp. CC #<I>. | py |
diff --git a/tests/jardiff.py b/tests/jardiff.py
index <HASH>..<HASH> 100644
--- a/tests/jardiff.py
+++ b/tests/jardiff.py
@@ -78,7 +78,7 @@ class JardiffTest(TestCase):
# Reporting options:
self.assertEqual(1, main(["argv0", "--report-dir=foo", left, right]))
# JSON reporting options:
- ... | Test actually runs JSON-related report | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
import sys
+import os
from setuptools import setup, find_packages | [ci skip] Update setup script | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -1175,7 +1175,7 @@ if __name__ == '__main__':
##test_inline_strstr()
print "inspect"
- test_inspect()
+ #test_inspect()
print "symbolic_write"
test_symbolic_write() | disable inspect testing until we figure out how to handle different iropt values | py |
diff --git a/assess_proxy.py b/assess_proxy.py
index <HASH>..<HASH> 100755
--- a/assess_proxy.py
+++ b/assess_proxy.py
@@ -119,6 +119,11 @@ def check_environment():
'http_proxy and https_proxy not defined in /etc/environment')
log.error(message)
raise UndefinedProxyError(message)
+ log... | Log the found proxy env. | py |
diff --git a/unitypack/__init__.py b/unitypack/__init__.py
index <HASH>..<HASH> 100644
--- a/unitypack/__init__.py
+++ b/unitypack/__init__.py
@@ -223,7 +223,6 @@ class ObjectInfo:
elif first_child and first_child.is_array:
align = first_child.post_align
size = buf.read_uint()
- assert size < 10000000 ... | Get rid of a dumb sanity check | py |
diff --git a/dwave/cloud/exceptions.py b/dwave/cloud/exceptions.py
index <HASH>..<HASH> 100644
--- a/dwave/cloud/exceptions.py
+++ b/dwave/cloud/exceptions.py
@@ -1,8 +1,12 @@
-class SolverFailureError(Exception):
+class SolverError(Exception):
+ """Generic base class for all solver-related errors."""
+
+
+class Sol... | Make all solver-related errors inherit from same base | py |
diff --git a/bids/layout/models.py b/bids/layout/models.py
index <HASH>..<HASH> 100644
--- a/bids/layout/models.py
+++ b/bids/layout/models.py
@@ -59,6 +59,9 @@ class LayoutInfo(Base):
if 'root' in kwargs:
kwargs['root'] = str(Path(kwargs['root']).absolute())
+ if isinstance(kwargs.get('c... | FIX: Normalize Paths when storing in databases | py |
diff --git a/mpop/satin/nc_pps_l2.py b/mpop/satin/nc_pps_l2.py
index <HASH>..<HASH> 100644
--- a/mpop/satin/nc_pps_l2.py
+++ b/mpop/satin/nc_pps_l2.py
@@ -275,6 +275,7 @@ class PPSReader(Reader):
for fname in prodfilename:
kwargs['filename'] = fname
self.load(s... | Bugfix: return when each file has been loaded independently. | py |
diff --git a/tensorflow_datasets/core/lazy_imports_lib.py b/tensorflow_datasets/core/lazy_imports_lib.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/core/lazy_imports_lib.py
+++ b/tensorflow_datasets/core/lazy_imports_lib.py
@@ -12,8 +12,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or ... | Update lazy_imports_lib.py | py |
diff --git a/djangocms_helper/__init__.py b/djangocms_helper/__init__.py
index <HASH>..<HASH> 100644
--- a/djangocms_helper/__init__.py
+++ b/djangocms_helper/__init__.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
-__version__ = '1.2.2'
+__versio... | Bump develop version [ci skip] | py |
diff --git a/pymc/distributions.py b/pymc/distributions.py
index <HASH>..<HASH> 100755
--- a/pymc/distributions.py
+++ b/pymc/distributions.py
@@ -1083,7 +1083,7 @@ def exponential_like(x, beta):
:Parameters:
- `x` : x > 0
- - `beta` : Scale parameter (beta > 0).
+ - `beta` : Rate parameter (bet... | Fixed documentation for gamma and exponential likelihoods | py |
diff --git a/werkzeug/serving.py b/werkzeug/serving.py
index <HASH>..<HASH> 100644
--- a/werkzeug/serving.py
+++ b/werkzeug/serving.py
@@ -492,6 +492,7 @@ class ThreadedWSGIServer(ThreadingMixIn, BaseWSGIServer):
"""A WSGI server that does threading."""
multithread = True
+ daemon_threads = True
cla... | Use daemon threads for threaded test server | py |
diff --git a/pyfire/stream.py b/pyfire/stream.py
index <HASH>..<HASH> 100644
--- a/pyfire/stream.py
+++ b/pyfire/stream.py
@@ -404,12 +404,12 @@ class LiveStreamProtocol(basic.LineReceiver):
if data:
lines = data.split("\r")
for line in lines:
- message = self.factory.get_stream().get_connection().par... | Fixing bad placement of try except block | py |
diff --git a/wsproto/frame_protocol.py b/wsproto/frame_protocol.py
index <HASH>..<HASH> 100644
--- a/wsproto/frame_protocol.py
+++ b/wsproto/frame_protocol.py
@@ -505,7 +505,7 @@ class FrameProtocol(object):
def send_data(self, payload=b'', fin=True):
if isinstance(payload, (bytes, bytearray, memoryview))... | str is bytes in Python <I> so only unicode (which is str in Python 3) is text. | 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
# # http://packaging.python.org/en/latest/tutorial.html#ve... | more dependencies filled for anaconda skeleton process | py |
diff --git a/meepo/sub/zmq.py b/meepo/sub/zmq.py
index <HASH>..<HASH> 100644
--- a/meepo/sub/zmq.py
+++ b/meepo/sub/zmq.py
@@ -39,7 +39,7 @@ def zmq_sub(bind, tables, forwarder=False, green=False):
events = ("%s_%s" % (tb, action) for tb, action in
itertools.product(*[tables, ["write", "update", "de... | bug fix for event scope in iteration | py |
diff --git a/src/salicml_api/analysis/models/financial.py b/src/salicml_api/analysis/models/financial.py
index <HASH>..<HASH> 100644
--- a/src/salicml_api/analysis/models/financial.py
+++ b/src/salicml_api/analysis/models/financial.py
@@ -94,7 +94,7 @@ class FinancialIndicator(Indicator):
def fetch_complexity_wi... | Fixes key access error due to lack of translation | py |
diff --git a/pymatgen/io/vasp/outputs.py b/pymatgen/io/vasp/outputs.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/vasp/outputs.py
+++ b/pymatgen/io/vasp/outputs.py
@@ -1646,6 +1646,22 @@ class Outcar:
self.final_energy = total_energy
self.data = {}
+ # Read "total number of plane waves", N... | parse number of NPLWV and NPLWVs at kpoints from OUTCAR. | py |
diff --git a/sos/plugins/openstack_trove.py b/sos/plugins/openstack_trove.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/openstack_trove.py
+++ b/sos/plugins/openstack_trove.py
@@ -24,13 +24,19 @@ class OpenStackTrove(Plugin):
plugin_name = "openstack_trove"
profiles = ('openstack', 'openstack_controller'... | [openstack_trove] Limit log collection to .log files by default Also introduce the global all_logs and log_size options within the plugin. Allowing users to control when all logs are collected and limit the overall size of the logs collected. | py |
diff --git a/deployment/freebsd/__init__.py b/deployment/freebsd/__init__.py
index <HASH>..<HASH> 100644
--- a/deployment/freebsd/__init__.py
+++ b/deployment/freebsd/__init__.py
@@ -157,7 +157,7 @@ class WebserverJail(api.BaseJail):
tempdir = None
# if no files were given, create an ad-hoc certific... | bugfix: also use self-signed if no cert parameter was given | py |
diff --git a/eth_abi/encoding.py b/eth_abi/encoding.py
index <HASH>..<HASH> 100644
--- a/eth_abi/encoding.py
+++ b/eth_abi/encoding.py
@@ -1,7 +1,4 @@
-from itertools import (
- accumulate,
- chain,
-)
+from itertools import accumulate
import abc
import codecs
import decimal
@@ -97,7 +94,9 @@ class MultiEncode... | Avoiding a call to chain is probably faster here | py |
diff --git a/datanommer.commands/tests/test_commands.py b/datanommer.commands/tests/test_commands.py
index <HASH>..<HASH> 100644
--- a/datanommer.commands/tests/test_commands.py
+++ b/datanommer.commands/tests/test_commands.py
@@ -19,7 +19,6 @@ from mock import patch
from datetime import datetime
import json
import ... | Make pylint happy. | py |
diff --git a/view_models.py b/view_models.py
index <HASH>..<HASH> 100755
--- a/view_models.py
+++ b/view_models.py
@@ -29,7 +29,6 @@ Options:
# Imports (fold)
import collections
-import docopt
import glob
import gtk
import matplotlib
@@ -1088,6 +1087,8 @@ def open_in_pymol(group, decoy, config, gui=True):
i... | Don't look for docopt in the system libraries. | py |
diff --git a/salt/returners/cassandra_return.py b/salt/returners/cassandra_return.py
index <HASH>..<HASH> 100644
--- a/salt/returners/cassandra_return.py
+++ b/salt/returners/cassandra_return.py
@@ -1,7 +1,7 @@
'''
-Return data to a Cassandra ColumFamily
+Return data to a Cassandra ColumnFamily
-Here's an example Ke... | Don't complain about missing pycassa | py |
diff --git a/pyphi/utils.py b/pyphi/utils.py
index <HASH>..<HASH> 100644
--- a/pyphi/utils.py
+++ b/pyphi/utils.py
@@ -124,9 +124,9 @@ def comb_indices(n, k):
# TODO? implement this with numpy
+# From https://docs.python.org/3/library/itertools.html#itertools-recipes
def powerset(iterable, nonempty=False):
- "... | Clean up `powerset` docstring and add doctest | py |
diff --git a/python_modules/libraries/dagster-aws/dagster_aws/s3/resources.py b/python_modules/libraries/dagster-aws/dagster_aws/s3/resources.py
index <HASH>..<HASH> 100644
--- a/python_modules/libraries/dagster-aws/dagster_aws/s3/resources.py
+++ b/python_modules/libraries/dagster-aws/dagster_aws/s3/resources.py
@@ -2... | Don't use an unsigned S3 session by default Summary: This.. was a bad choice. Test Plan: Unit Reviewers: alangenfeld, schrockn, prha, nate Reviewed By: nate Differential Revision: <URL> | py |
diff --git a/powerline-bash.py b/powerline-bash.py
index <HASH>..<HASH> 100755
--- a/powerline-bash.py
+++ b/powerline-bash.py
@@ -108,7 +108,7 @@ def add_git_segment(powerline, cwd):
p2 = subprocess.Popen(['grep', '-e', '\\*'], stdin=p1.stdout, stdout=subprocess.PIPE)
output = p2.communicate()[0].strip()
... | Fixed typo. Should start writing unit tests maybe | py |
diff --git a/cli/release_notes/parser.py b/cli/release_notes/parser.py
index <HASH>..<HASH> 100644
--- a/cli/release_notes/parser.py
+++ b/cli/release_notes/parser.py
@@ -57,7 +57,7 @@ class ChangeNotesLinesParser(BaseChangeNotesParser):
self._in_section = False
def _process_line(self, line):
- r... | decode pull request notes as unicode | py |
diff --git a/suspect/mrsdata.py b/suspect/mrsdata.py
index <HASH>..<HASH> 100644
--- a/suspect/mrsdata.py
+++ b/suspect/mrsdata.py
@@ -44,6 +44,9 @@ class MRSData(numpy.ndarray):
else:
return numpy.ndarray.__array_wrap__(self, obj)
+ def __str__(self):
+ return "<MRSData instance f0={0... | first implementation of __str__ method for MRSData | py |
diff --git a/genmodel/manager.py b/genmodel/manager.py
index <HASH>..<HASH> 100644
--- a/genmodel/manager.py
+++ b/genmodel/manager.py
@@ -145,7 +145,7 @@ def wait_for_droplet_to_be_created(droplet_uid):
def initizialize_job_in_database(job_name):
- cur.execute("INSERT INTO jobs (name,state) values (%s, %s)",
+... | in initialize jobs, set meta to an empty object dict | py |
diff --git a/solidity/python/constants/common/__init__.py b/solidity/python/constants/common/__init__.py
index <HASH>..<HASH> 100644
--- a/solidity/python/constants/common/__init__.py
+++ b/solidity/python/constants/common/__init__.py
@@ -15,8 +15,8 @@ def getMaxValArray(maxExpArray):
def binarySearch(func,args):
... | Update python script. | py |
diff --git a/pyphi/actual.py b/pyphi/actual.py
index <HASH>..<HASH> 100644
--- a/pyphi/actual.py
+++ b/pyphi/actual.py
@@ -583,6 +583,8 @@ class Context:
def cause_coefficient(self, mechanism, purview, norm=True):
""" Return the cause coefficient for a mechanism in a state over a
purview in the a... | fix cause/effect coefficient bug with caching | py |
diff --git a/ckanext/oauth2/oauth2.py b/ckanext/oauth2/oauth2.py
index <HASH>..<HASH> 100644
--- a/ckanext/oauth2/oauth2.py
+++ b/ckanext/oauth2/oauth2.py
@@ -200,7 +200,7 @@ class OAuth2Helper(object):
# Save the new token
user_token.access_token = token['access_token']
user_token.token_type... | Providers are not mandated to send a refresh token | py |
diff --git a/src/asymmetric_jwt_auth/middleware.py b/src/asymmetric_jwt_auth/middleware.py
index <HASH>..<HASH> 100644
--- a/src/asymmetric_jwt_auth/middleware.py
+++ b/src/asymmetric_jwt_auth/middleware.py
@@ -1,5 +1,6 @@
from django.contrib.auth import get_user_model
from django.core.cache import cache
+from django... | Fix middleware in Django <I> | py |
diff --git a/test/test_library/test_search_backends/test_whoosh_backend.py b/test/test_library/test_search_backends/test_whoosh_backend.py
index <HASH>..<HASH> 100644
--- a/test/test_library/test_search_backends/test_whoosh_backend.py
+++ b/test/test_library/test_search_backends/test_whoosh_backend.py
@@ -68,12 +68,12 ... | Indentation fixed. #<I>. | py |
diff --git a/spyder/plugins/ipythonconsole.py b/spyder/plugins/ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/ipythonconsole.py
+++ b/spyder/plugins/ipythonconsole.py
@@ -845,7 +845,7 @@ class IPythonConsole(SpyderPluginWidget):
create_cython_action = create_action(
... | Cython to "C Extentions" | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -3,7 +3,7 @@
from distutils.core import setup
setup(name='jsbeautifier',
- version='1.0',
+ version='0.4.2',
description='JavaScript unobfuscator and beautifier.',
long_d... | Changing python version to sync with repo version | py |
diff --git a/src/foremast/runner.py b/src/foremast/runner.py
index <HASH>..<HASH> 100755
--- a/src/foremast/runner.py
+++ b/src/foremast/runner.py
@@ -292,7 +292,7 @@ def debug_flag():
parser = argparse.ArgumentParser(description=debug_flag.__doc__)
add_debug(parser)
- args = parser.parse_args()
+ arg... | fix: Allow unknown arguments to pass through | py |
diff --git a/sick/models.py b/sick/models.py
index <HASH>..<HASH> 100644
--- a/sick/models.py
+++ b/sick/models.py
@@ -1318,7 +1318,8 @@ class Model(object):
"__builtins__": None,
"normal": np.random.normal,
"uniform": np.random.uniform,
- "abs": abs
+ "abs":... | make np available to walker width rules | py |
diff --git a/openpnm/core/Workspace.py b/openpnm/core/Workspace.py
index <HASH>..<HASH> 100644
--- a/openpnm/core/Workspace.py
+++ b/openpnm/core/Workspace.py
@@ -83,6 +83,11 @@ class Workspace(dict):
else:
raise Exception('A simulation with that name is already present')
+ def close_simulati... | Add a very basic close_simulation function to workspace | py |
diff --git a/eventsourcing/tests/contrib_tests/paxos_tests/test_paxos_system_with_django.py b/eventsourcing/tests/contrib_tests/paxos_tests/test_paxos_system_with_django.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/tests/contrib_tests/paxos_tests/test_paxos_system_with_django.py
+++ b/eventsourcing/tests/contrib_... | Skipping paxos system test which combines Ray and Django. | py |
diff --git a/tldap/schemas/ad.py b/tldap/schemas/ad.py
index <HASH>..<HASH> 100644
--- a/tldap/schemas/ad.py
+++ b/tldap/schemas/ad.py
@@ -21,6 +21,22 @@ import tldap.fields
import tldap.schemas.rfc
+class person(tldap.schemas.rfc.person):
+ sn = tldap.fields.CharField()
+ cn = tldap.fields.CharField()
+
+
+... | Delete classes that were deleted in error. These ad classes *are* different from the RFC classes. Were incorrectly removed in <I>cd3bf<I>aef<I>a<I>c<I>e1b<I>c<I> | py |
diff --git a/ayrton/tests/test_ayrton.py b/ayrton/tests/test_ayrton.py
index <HASH>..<HASH> 100644
--- a/ayrton/tests/test_ayrton.py
+++ b/ayrton/tests/test_ayrton.py
@@ -190,6 +190,8 @@ class PipingRedirection (unittest.TestCase):
def testPipe (self):
ayrton.main ('ls () | grep ("setup")')
+ # c... | [*] fixed more tests related to capturing stdout to inspect the output. | py |
diff --git a/ah_bootstrap.py b/ah_bootstrap.py
index <HASH>..<HASH> 100644
--- a/ah_bootstrap.py
+++ b/ah_bootstrap.py
@@ -537,6 +537,7 @@ class _DummyFile(object):
"""A noop writeable object."""
errors = '' # Required for Python 3.x
+ encoding = 'utf-8'
def write(self, s):
pass | On Python 3 file-like objects should have an encoding attribute, I guess? I haven't actually encountered this issue except during debugging if an exception is raised while inside the 'silence' context manager | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ setup(
license='MIT',
packages=find_packages(exclude=('example', 'tests')),
install_requires=[
- 'Django>=1.4,<1.7',
+ 'Django>=1.4.2,<1.7',
'django_otp>=0.2.0,<0.3.0',
... | Fixed #<I> -- Django <I> or higher is required Django <I> introduced the six compatibility framework, which is used by this app. | py |
diff --git a/lunafind/clients/local.py b/lunafind/clients/local.py
index <HASH>..<HASH> 100644
--- a/lunafind/clients/local.py
+++ b/lunafind/clients/local.py
@@ -108,8 +108,7 @@ class IndexedInfo(_INDEXED_INFO_NT):
@classmethod
def from_csv(cls, row: Sequence[str]) -> "IndexedInfo":
- return cls(*(v... | Fix IndexedInfo's values being all strings | py |
diff --git a/blockstack_client/cli.py b/blockstack_client/cli.py
index <HASH>..<HASH> 100644
--- a/blockstack_client/cli.py
+++ b/blockstack_client/cli.py
@@ -377,7 +377,7 @@ def run_cli(argv=None, config_path=CONFIG_PATH):
analytics_user_register( client_uuid, email_addr )
- res = config.setu... | don't setup interactively if we request it | py |
diff --git a/test/test_general.py b/test/test_general.py
index <HASH>..<HASH> 100644
--- a/test/test_general.py
+++ b/test/test_general.py
@@ -47,7 +47,7 @@ class TestScaling(TestBase):
# XXX behavior seems sufficient either way but it should be checked
# XXX more thoroughly
try:
- ... | Removed the now-broken assertIn call for python3.x. | py |
diff --git a/proselint/checks/consistency/spelling.py b/proselint/checks/consistency/spelling.py
index <HASH>..<HASH> 100644
--- a/proselint/checks/consistency/spelling.py
+++ b/proselint/checks/consistency/spelling.py
@@ -33,6 +33,7 @@ def check(text):
["advisor", "adviser"],
# ["analyse", "analyze"]... | Add "color" to inconsistent spelling (#<I>) | py |
diff --git a/genc/tests.py b/genc/tests.py
index <HASH>..<HASH> 100644
--- a/genc/tests.py
+++ b/genc/tests.py
@@ -2,10 +2,7 @@
from unittest import TestCase
import genc
-from genc.regions import (
- Region,
- REGIONS,
-)
+from genc.regions import Region
class TestAPI(TestCase):
@@ -34,20 +31,20 @@ class... | Tweak tests, make sure `REGIONS` is a public API. | py |
diff --git a/samtranslator/plugins/application/serverless_app_plugin.py b/samtranslator/plugins/application/serverless_app_plugin.py
index <HASH>..<HASH> 100644
--- a/samtranslator/plugins/application/serverless_app_plugin.py
+++ b/samtranslator/plugins/application/serverless_app_plugin.py
@@ -48,10 +48,7 @@ class Serv... | fix: initialize the the sar boto3 client only if it's needed (#<I>) | py |
diff --git a/indra/assemblers/nx/indra_net.py b/indra/assemblers/nx/indra_net.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/nx/indra_net.py
+++ b/indra/assemblers/nx/indra_net.py
@@ -6,6 +6,12 @@ logger = logging.getLogger(__name__)
class IndraNet(nx.MultiDiGraph):
+ """IndraNet network object
+
+ Me... | WIP started class docstring about methods | py |
diff --git a/s3direct/views.py b/s3direct/views.py
index <HASH>..<HASH> 100644
--- a/s3direct/views.py
+++ b/s3direct/views.py
@@ -39,7 +39,7 @@ def get_upload_params(request, upload_to=''):
"signature": signature,
"key": key,
"AWSAccessKeyId": settings.AWS_ACCESS_KEY_ID,
- "form_actio... | Use HTTPS to POST to S3 | py |
diff --git a/benchexec/outputhandler.py b/benchexec/outputhandler.py
index <HASH>..<HASH> 100644
--- a/benchexec/outputhandler.py
+++ b/benchexec/outputhandler.py
@@ -632,7 +632,7 @@ class Statistics:
correct_true = self.dic[(result.CATEGORY_CORRECT, result.RESULT_CLASS_TRUE)]
correct_false = correct ... | Fix statistics output at end of benchexec run: values for "incorrect true" and "incorrect false" were swapped. | py |
diff --git a/raiden/tests/utils/smoketest.py b/raiden/tests/utils/smoketest.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/utils/smoketest.py
+++ b/raiden/tests/utils/smoketest.py
@@ -100,11 +100,10 @@ TEST_ACCOUNT_ADDRESS = privatekey_to_address(TEST_PRIVKEY)
def ensure_executable(cmd):
"""look for the given ... | Remove sys.exit() from inside the smoketest | py |
diff --git a/spyderlib/plugins/inspector.py b/spyderlib/plugins/inspector.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/inspector.py
+++ b/spyderlib/plugins/inspector.py
@@ -700,7 +700,7 @@ class ObjectInspector(SpyderPluginWidget):
"<b>Sphinx %s</b>. <br>Please check if this "
... | (Fixes Issue <I>) Object inspector failed to show an error message due to unicode error | py |
diff --git a/thefuck/shells/__init__.py b/thefuck/shells/__init__.py
index <HASH>..<HASH> 100644
--- a/thefuck/shells/__init__.py
+++ b/thefuck/shells/__init__.py
@@ -16,7 +16,8 @@ shells = {'bash': Bash,
'zsh': Zsh,
'csh': Tcsh,
'tcsh': Tcsh,
- 'powershell': Powershell}
+ ... | Add the pwsh support for thefuck (#<I>) | py |
diff --git a/tarbell/hooks.py b/tarbell/hooks.py
index <HASH>..<HASH> 100644
--- a/tarbell/hooks.py
+++ b/tarbell/hooks.py
@@ -19,7 +19,7 @@ class register_hook(object):
def __call__(self, f):
# Avoid weird duplication
- names = ['{0}.{1}'.format(func.__module__, func.func_name) for func in hooks... | Switch to Python 3-friendly `function.__name__` | py |
diff --git a/jujubundlelib/validate.py b/jujubundlelib/validate.py
index <HASH>..<HASH> 100644
--- a/jujubundlelib/validate.py
+++ b/jujubundlelib/validate.py
@@ -163,13 +163,14 @@ def validate_services(validator, machines_used={}):
validator.add_error(
'num_units for service {} must be an... | Fix for python 2/3 differences | py |
diff --git a/ca/django_ca/utils.py b/ca/django_ca/utils.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/utils.py
+++ b/ca/django_ca/utils.py
@@ -164,8 +164,8 @@ def get_cert(csr, expires, cn=None, cn_in_san=True, csr_format=crypto.FILETYPE_P
# Process CommonName and subjectAltName extension.
if cn is None... | split key from subjectAltname | py |
diff --git a/sh.py b/sh.py
index <HASH>..<HASH> 100644
--- a/sh.py
+++ b/sh.py
@@ -1839,23 +1839,24 @@ class SelfWrapper(ModuleType):
# python 3.2 (2.7 and 3.3 work fine) breaks on osx (not ubuntu)
# if we set this to None. and 3.3 needs a value for __path__
self.__path__ = []
- self.... | hiding our secret SelfWrapper attributes a little more | py |
diff --git a/schema_salad/makedoc.py b/schema_salad/makedoc.py
index <HASH>..<HASH> 100644
--- a/schema_salad/makedoc.py
+++ b/schema_salad/makedoc.py
@@ -389,6 +389,10 @@ def avrold_doc(j, outdoc, renderlist, redirects, brand, brandlink):
.tocnav ol {
list-style: none
}
+ pre {
+ margin-left: ... | Add margin to <pre> sections in generated documentation. | py |
diff --git a/endesive/__init__.py b/endesive/__init__.py
index <HASH>..<HASH> 100644
--- a/endesive/__init__.py
+++ b/endesive/__init__.py
@@ -2,6 +2,6 @@
__author__ = 'Grzegorz Makarewicz'
__license__ = 'MIT'
-__version__ = '2.0.0'
+__version__ = '2.0.1'
__all__ = [__author__, __license__, __version__] | #<I> - accessing pages in big documents | py |
diff --git a/inginious/frontend/pages/tasks.py b/inginious/frontend/pages/tasks.py
index <HASH>..<HASH> 100644
--- a/inginious/frontend/pages/tasks.py
+++ b/inginious/frontend/pages/tasks.py
@@ -385,7 +385,7 @@ class TaskPageStaticDownload(INGIniousPage):
path_norm = posixpath.normpath(urllib.parse.unquote... | Move $common_public to $common/public | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -315,7 +315,7 @@ MOCK_MODULES = [
'functools32', 'ndex2', 'ndex2.client', 'ndex2.nice_cx_network',
'nltk', 'kappy', 'openpyxl', 'reportlab', 'reportlab.lib', 'reportlab.lib.enums',
'reportlab.lib.pag... | Remove boto3/botocore from mocks | py |
diff --git a/toot/console.py b/toot/console.py
index <HASH>..<HASH> 100644
--- a/toot/console.py
+++ b/toot/console.py
@@ -385,9 +385,8 @@ def main():
try:
run_command(app, user, command_name, args)
- except ConsoleError as e:
- print_err(str(e))
- sys.exit(1)
- except ApiError as e:... | Don't print stack trace on keyboard interrupt | py |
diff --git a/spyder/plugins/editor/panels/codefolding.py b/spyder/plugins/editor/panels/codefolding.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/panels/codefolding.py
+++ b/spyder/plugins/editor/panels/codefolding.py
@@ -870,7 +870,7 @@ class FoldingPanel(Panel):
positions_to_check = (cur... | Prevent unfolding when inserting multiple lines before a folded region | py |
diff --git a/testapp/testapp/testmain/tests/test_views.py b/testapp/testapp/testmain/tests/test_views.py
index <HASH>..<HASH> 100644
--- a/testapp/testapp/testmain/tests/test_views.py
+++ b/testapp/testapp/testmain/tests/test_views.py
@@ -184,7 +184,7 @@ class ReceiptPDFViewDownloadNameTestCase(TestCase):
def test... | Update reference to renamed view | py |
diff --git a/salt/modules/status.py b/salt/modules/status.py
index <HASH>..<HASH> 100644
--- a/salt/modules/status.py
+++ b/salt/modules/status.py
@@ -393,6 +393,7 @@ def cpuinfo():
def diskstats():
'''
+ ..versionchanged:: 2016.3.2
Return the disk stats for this minion
CLI Example:
@@ -430,9 +43... | make status.diskstats work on Solaris like platforms | py |
diff --git a/categories/templatetags/category_tags.py b/categories/templatetags/category_tags.py
index <HASH>..<HASH> 100644
--- a/categories/templatetags/category_tags.py
+++ b/categories/templatetags/category_tags.py
@@ -2,6 +2,7 @@ from django import template
from django.apps import apps
from django.template impor... | Made a fix for backwards compatibility with Python 2 | py |
diff --git a/smusicclient/protocol_functions.py b/smusicclient/protocol_functions.py
index <HASH>..<HASH> 100644
--- a/smusicclient/protocol_functions.py
+++ b/smusicclient/protocol_functions.py
@@ -153,6 +153,13 @@ def add_download(url, artist="", album="", track=""):
@binder.bind()
+def download_status():
+ r... | Added get_download_status command | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.