diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/ssl/mutual_authentication_test.py b/tests/ssl/mutual_authentication_test.py
index <HASH>..<HASH> 100644
--- a/tests/ssl/mutual_authentication_test.py
+++ b/tests/ssl/mutual_authentication_test.py
@@ -5,11 +5,12 @@ from tests.base import HazelcastTestCase
from hazelcast.client import HazelcastClient
... | categorize mutual authetincation tests (#<I>) mutual authentication feature comes with Hazelcast <I>. Categorized mutual authentication tests to <I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ with open('README.md') as f:
setup(name='pytorch2keras',
- version='0.1.9',
+ version='0.1.10',
description='The deep learning models convertor',
long_description=long_description,
... | Update pypi version. | py |
diff --git a/app/readers/fasta.py b/app/readers/fasta.py
index <HASH>..<HASH> 100644
--- a/app/readers/fasta.py
+++ b/app/readers/fasta.py
@@ -29,7 +29,7 @@ def get_sequence_iter(fastafn):
def get_evidence_iter(fastafn):
"""Returns iterator with protein accessions, evidence levels in tuple"""
for record in p... | Return protein acc, not fasta id | py |
diff --git a/pydoc-markdown/src/pydoc_markdown/contrib/renderers/markdown.py b/pydoc-markdown/src/pydoc_markdown/contrib/renderers/markdown.py
index <HASH>..<HASH> 100644
--- a/pydoc-markdown/src/pydoc_markdown/contrib/renderers/markdown.py
+++ b/pydoc-markdown/src/pydoc_markdown/contrib/renderers/markdown.py
@@ -269,1... | improve view-source appearance (#<I>) | py |
diff --git a/fmtstr/terminalcontrol.py b/fmtstr/terminalcontrol.py
index <HASH>..<HASH> 100644
--- a/fmtstr/terminalcontrol.py
+++ b/fmtstr/terminalcontrol.py
@@ -54,8 +54,8 @@ def produce_simple_sequence(seq):
def produce_cursor_sequence(char):
"""Returns a method that issues a cursor control sequence."""
- ... | fix all terminalcontrol writes to be buffered for py3 | py |
diff --git a/juju/charmstore.py b/juju/charmstore.py
index <HASH>..<HASH> 100644
--- a/juju/charmstore.py
+++ b/juju/charmstore.py
@@ -2,7 +2,10 @@ from functools import partial
import theblues.charmstore
import theblues.errors
+
from urllib.parse import urlencode
+from urllib.error import HTTPError
+
from . im... | Handle not-found errors from the get request The following ensures that we correctly trap the not found exceptions from the get request. If no resources are found, the API returns not found, returning an empty resource object should be fine in this case. Additionally, fix the urlencoding for channels. | py |
diff --git a/dbmigrator/utils.py b/dbmigrator/utils.py
index <HASH>..<HASH> 100644
--- a/dbmigrator/utils.py
+++ b/dbmigrator/utils.py
@@ -245,9 +245,12 @@ def run_migration(cursor, version, migration_name, migration,
return
try:
+ cursor.execute('SAVEPOINT pre_should_run')
if not mi... | create a savepoint around should_run - rollback on false, to restore db state | py |
diff --git a/artifactory.py b/artifactory.py
index <HASH>..<HASH> 100755
--- a/artifactory.py
+++ b/artifactory.py
@@ -234,7 +234,7 @@ def escape_chars(s):
def encode_properties(parameters):
"""
- Performs encoding of url parameters from dictionary to a string. It does
+ Performs encoding of url paramete... | Add support for 'parameters' to deploy_deb() It should be possible to attach arbitrary metadata to .deb packages, like in deploy_file(). | py |
diff --git a/SkyPy/util.py b/SkyPy/util.py
index <HASH>..<HASH> 100644
--- a/SkyPy/util.py
+++ b/SkyPy/util.py
@@ -98,7 +98,7 @@ def cacheResult(fn):
cache[key] = fn(*args, **kwargs)
return cache[key]
# Make cache accessible externally.
- setattr(wrapper, "cache", cache)
+ wrapper.cache... | Expose cache/state decorator fields | py |
diff --git a/tests/integration/grains/test_core.py b/tests/integration/grains/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/integration/grains/test_core.py
+++ b/tests/integration/grains/test_core.py
@@ -15,7 +15,7 @@ import salt.utils
if salt.utils.is_windows():
try:
import salt.modules.reg
- ... | Add ImportError to exception instead of bare "except" Fixes lint error on develop. | py |
diff --git a/salt/version.py b/salt/version.py
index <HASH>..<HASH> 100644
--- a/salt/version.py
+++ b/salt/version.py
@@ -90,8 +90,8 @@ class SaltStackVersion(object):
'Nitrogen' : (MAX_SIZE - 102, 0),
'Oxygen' : (MAX_SIZE - 101, 0),
'Fluorine' : (MAX_SIZE - 100, 0),
+ ... | Add Neon to version list Follow up to #<I> | py |
diff --git a/ryu/services/protocols/bgp/base.py b/ryu/services/protocols/bgp/base.py
index <HASH>..<HASH> 100644
--- a/ryu/services/protocols/bgp/base.py
+++ b/ryu/services/protocols/bgp/base.py
@@ -275,7 +275,7 @@ class Activity(object):
LOG.debug('%s: Stopping child thread %s',
... | Clean up server socket and thread when shutting down | py |
diff --git a/bmemcached/protocol.py b/bmemcached/protocol.py
index <HASH>..<HASH> 100644
--- a/bmemcached/protocol.py
+++ b/bmemcached/protocol.py
@@ -495,11 +495,7 @@ class Protocol(threading.local):
# server
o_keys = keys
keys, last = keys[:-1], str_to_bytes(keys[-1])
- if six.PY2:
-... | Use b'' unconditionally On Python 2, '' is the same as b'' anyway. | py |
diff --git a/logdissect/__init__.py b/logdissect/__init__.py
index <HASH>..<HASH> 100644
--- a/logdissect/__init__.py
+++ b/logdissect/__init__.py
@@ -1,4 +1,4 @@
-__version__ = '1.1'
+__version__ = '1.1-pre'
__author__ = 'Dan Persons <dpersonsdev@gmail.com>'
__license__ = 'MIT License'
__github__ = 'https://github.... | Update version: <I>-pre | py |
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index <HASH>..<HASH> 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -71,7 +71,7 @@ class RefineCommand(Command):
@registerCommand(MODE, 'save')
-class SendCommand(Command):
+class SaveCommand(Command):
"""save draft"... | fix name of SaveCommand c/p error: forgot to rename SentCommand to SaveCommand, which resulted in two different classes with the same name. | py |
diff --git a/tswift.py b/tswift.py
index <HASH>..<HASH> 100755
--- a/tswift.py
+++ b/tswift.py
@@ -188,7 +188,8 @@ if __name__ == '__main__':
if artist.songs:
song = random.choice(artist.songs)
else:
- print(f'Couldn\'t find any songs by artist {args.artist}!')
... | Remove f-string for python2 compatibility | py |
diff --git a/discord/gateway.py b/discord/gateway.py
index <HASH>..<HASH> 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -599,7 +599,9 @@ class DiscordWebSocket:
if activity is not None:
if not isinstance(activity, BaseActivity):
raise InvalidArgument('activity must d... | Fix sending arrays with nulls in them when changing presences | py |
diff --git a/web3/providers/auto.py b/web3/providers/auto.py
index <HASH>..<HASH> 100644
--- a/web3/providers/auto.py
+++ b/web3/providers/auto.py
@@ -1,3 +1,6 @@
+import os
+from urllib.parse import urlparse
+
from web3.exceptions import CannotHandleRequest
from web3.providers.base import BaseProvider
@@ -26,10 +2... | auto-provider: look up environment variable first | py |
diff --git a/retext.py b/retext.py
index <HASH>..<HASH> 100755
--- a/retext.py
+++ b/retext.py
@@ -26,11 +26,18 @@ from PyQt4.QtGui import *
try:
import markdown
- md = markdown.Markdown(['footnotes', 'tables'])
except:
without_md = True
else:
without_md = False
+ s = QSettings('ReText project', 'ReText')
+ ... | Stable branch update * Search for Md extensions in "mdExtensions" settings entry * Remove default extensions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ setup(
packages=['pifacedigitalio'],
long_description=open('README.md').read() + open('CHANGELOG').read(),
classifiers=[
- "License :: OSI Approved :: GNU Affero General Public License v3 o... | fixed comma error in setup | py |
diff --git a/lib/configuration/__init__.py b/lib/configuration/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/configuration/__init__.py
+++ b/lib/configuration/__init__.py
@@ -403,15 +403,13 @@ def apply(config, name):
global current_config
current_config = name
+ if 'ssh' not in config['needs']:
+ retur... | Bail early out, iof ssh is not available | py |
diff --git a/stdeb/util.py b/stdeb/util.py
index <HASH>..<HASH> 100644
--- a/stdeb/util.py
+++ b/stdeb/util.py
@@ -1323,6 +1323,7 @@ def build_dsc(debinfo,
else:
debinfo.uploaders = ''
control = CONTROL_FILE%debinfo.__dict__
+ control = re.sub('\n{3,}', '\n\n', control)
with codecs.open( os.p... | Remove excess newlines from debian/control (#<I>) | py |
diff --git a/network.py b/network.py
index <HASH>..<HASH> 100644
--- a/network.py
+++ b/network.py
@@ -151,6 +151,7 @@ class Network(object):
for postCellGid, postCell in postCells.iteritems(): # for each postsyn cell
preCellGids = preCells.keys()
if postCellGid in preCellGids: preCe... | fixed randomization in randConn | py |
diff --git a/bids/analysis/analysis.py b/bids/analysis/analysis.py
index <HASH>..<HASH> 100644
--- a/bids/analysis/analysis.py
+++ b/bids/analysis/analysis.py
@@ -76,13 +76,17 @@ class Analysis(object):
# In the beginning, there was nothing
input_nodes = None
+ # Use inputs from model, and up... | Use input as default kwargs for setup. Fixes #<I> | py |
diff --git a/integration_test/src/python/test_runner/main.py b/integration_test/src/python/test_runner/main.py
index <HASH>..<HASH> 100644
--- a/integration_test/src/python/test_runner/main.py
+++ b/integration_test/src/python/test_runner/main.py
@@ -16,7 +16,7 @@ from heron.common.src.python.utils import log
# The lo... | Increase timeout for integration test result checking (#<I>) | py |
diff --git a/pyocd/target/builtin/target_MAX32600.py b/pyocd/target/builtin/target_MAX32600.py
index <HASH>..<HASH> 100644
--- a/pyocd/target/builtin/target_MAX32600.py
+++ b/pyocd/target/builtin/target_MAX32600.py
@@ -67,19 +67,3 @@ class MAX32600(CoreSightTarget):
def __init__(self, link):
super(MAX32... | Removed vendor-specific command usage from MAX<I> target. | 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
@@ -48,7 +48,7 @@ class MultiqcModule(BaseMultiqcModule):
# Section 1 - Al... | Fixed broken FastQ Screen bugfix - don't assume config var is set. | py |
diff --git a/examples/httpconsumer.py b/examples/httpconsumer.py
index <HASH>..<HASH> 100644
--- a/examples/httpconsumer.py
+++ b/examples/httpconsumer.py
@@ -216,8 +216,8 @@ class ConsumerHandler(exutil.HTTPHandler):
# replace query with the query from the return_to url
_, _, _, _, qs... | [project @ Fix httpconsumer dumbsplit check_auth] | py |
diff --git a/satpy/composites/__init__.py b/satpy/composites/__init__.py
index <HASH>..<HASH> 100644
--- a/satpy/composites/__init__.py
+++ b/satpy/composites/__init__.py
@@ -1433,5 +1433,9 @@ class StaticImageCompositor(GenericCompositor):
img.attrs['mode'] = ''.join(img.bands.data)
img.attrs.pop('mo... | Use current time if nothing has been read from the filename | py |
diff --git a/penman/surface.py b/penman/surface.py
index <HASH>..<HASH> 100644
--- a/penman/surface.py
+++ b/penman/surface.py
@@ -19,6 +19,12 @@ class AlignmentMarker(graph.Epidatum):
self.indices = indices
self.prefix = prefix
+ def __repr__(self):
+ args = repr(self.indices)
+ if... | Improve repr of AlignmentMarkers | py |
diff --git a/aikif/agents/learn/agent_learn_aixi.py b/aikif/agents/learn/agent_learn_aixi.py
index <HASH>..<HASH> 100644
--- a/aikif/agents/learn/agent_learn_aixi.py
+++ b/aikif/agents/learn/agent_learn_aixi.py
@@ -28,10 +28,6 @@ try:
from pyaixi.environments import *
except:
sys.exit("you need to install py... | fixed main so not called by test script | py |
diff --git a/moban/jinja2/engine.py b/moban/jinja2/engine.py
index <HASH>..<HASH> 100644
--- a/moban/jinja2/engine.py
+++ b/moban/jinja2/engine.py
@@ -12,6 +12,10 @@ JINJA2_EXENSIONS = [
"moban.jinja2.filters.text",
"moban.jinja2.tests.files",
]
+JINJA2_THIRD_PARTY_EXTENSIONS = [
+ 'jinja2.ext.do',
+ '... | engine.py: Add two default extensions The extensions are expression-statement and loop-controls Related to <URL> | py |
diff --git a/grimoire_elk/ocean/elastic.py b/grimoire_elk/ocean/elastic.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/ocean/elastic.py
+++ b/grimoire_elk/ocean/elastic.py
@@ -349,8 +349,8 @@ class ElasticOcean(object):
self.elastic_scroll_id = None
# In large projects like Eclipse commits, 100 i... | [ocean] Read <I> items per query when scrolling in raw items The performance in the enrichment process is 2-3x faster. In the past we have some issue with huge commits. If they appears we just need to change the number of items in grimoire_elk/ocean/elastic.py. | py |
diff --git a/airflow/contrib/operators/qubole_operator.py b/airflow/contrib/operators/qubole_operator.py
index <HASH>..<HASH> 100755
--- a/airflow/contrib/operators/qubole_operator.py
+++ b/airflow/contrib/operators/qubole_operator.py
@@ -95,7 +95,7 @@ class QuboleOperator(BaseOperator):
template_fields = ('quer... | [AIRFLOW-<I>] template_ext is being treated as a string rather than a tuple in qubole operator Closes #<I> from msumit/AIRFLOW-<I> | py |
diff --git a/salt/log/setup.py b/salt/log/setup.py
index <HASH>..<HASH> 100644
--- a/salt/log/setup.py
+++ b/salt/log/setup.py
@@ -146,19 +146,20 @@ class SaltColorLogRecord(logging.LogRecord):
logging.LogRecord.__init__(self, *args, **kwargs)
reset = TextFormat('reset')
+ clevel = LOG_COLORS... | Some 3rd-party modules (e.g. gnupg) define custom log levels that emit at INFO level and above. This patch sets the color data lookups to default to TextFormat('reset') rather than producing a stack trace every time a log message is generated from an affected module. | py |
diff --git a/yotta/lib/cmakegen.py b/yotta/lib/cmakegen.py
index <HASH>..<HASH> 100644
--- a/yotta/lib/cmakegen.py
+++ b/yotta/lib/cmakegen.py
@@ -388,7 +388,7 @@ class CMakeGen(object):
dep_extra_include_dirs = c.getExtraIncludes()
for d in dep_extra_include_dirs:
include_oth... | building works in python3 | py |
diff --git a/examples/hacker_news/hacker_news/solids/user_story_matrix.py b/examples/hacker_news/hacker_news/solids/user_story_matrix.py
index <HASH>..<HASH> 100644
--- a/examples/hacker_news/hacker_news/solids/user_story_matrix.py
+++ b/examples/hacker_news/hacker_news/solids/user_story_matrix.py
@@ -1,4 +1,4 @@
-from... | Switch hacker_news example to use dataclass instead of NamedTuple (#<I>) Summary: NamedTuples have trouble with being pickled/unpickled. Test Plan: bk Reviewers: sandyryza Subscribers: | py |
diff --git a/bika/lims/browser/worksheet.py b/bika/lims/browser/worksheet.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/worksheet.py
+++ b/bika/lims/browser/worksheet.py
@@ -343,8 +343,7 @@ class WorksheetAnalysesView(AnalysesView):
else:
client = parent.aq_parent
pos... | Left a pdb... :( | py |
diff --git a/src/radical/entk/appman/wfprocessor.py b/src/radical/entk/appman/wfprocessor.py
index <HASH>..<HASH> 100644
--- a/src/radical/entk/appman/wfprocessor.py
+++ b/src/radical/entk/appman/wfprocessor.py
@@ -16,8 +16,6 @@ import traceback
import os
import uuid
-slow_run = os.environ.get('RADICAL_ENTK_SLOW',F... | checkpoint work on wfp | py |
diff --git a/openstack_dashboard/dashboards/admin/metering/tables.py b/openstack_dashboard/dashboards/admin/metering/tables.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/admin/metering/tables.py
+++ b/openstack_dashboard/dashboards/admin/metering/tables.py
@@ -25,7 +25,7 @@ class ModifyUsageReport... | Making modify usage report params modal Link action was opening a base level page. Changed to load modal. Extra benefit of not reloading the table (which takes a long time) when the user cancels and does not change any parameters. Change-Id: I9cc1bd<I>c<I>b<I>e4f8ce8e<I>cf<I>f2e Closes-Bug: #<I> | py |
diff --git a/songtext/chartlyrics.py b/songtext/chartlyrics.py
index <HASH>..<HASH> 100644
--- a/songtext/chartlyrics.py
+++ b/songtext/chartlyrics.py
@@ -11,8 +11,8 @@ API_URL = 'http://api.chartlyrics.com/apiv1.asmx/'
API_METHODS = {
'SearchLyric': {
'params': ['artist', 'song'],
- 'description'... | should not be printing these args | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ setup(
packages = find_packages(),
install_requires = [
"django-appconf==0.5",
- "pytz==2012d"
+ "pytz==2012j"
],
classifiers = [
"Development Status :: 4 - Be... | Updated to latest pytz | py |
diff --git a/btcpy/structs/block.py b/btcpy/structs/block.py
index <HASH>..<HASH> 100644
--- a/btcpy/structs/block.py
+++ b/btcpy/structs/block.py
@@ -74,6 +74,9 @@ class Block(Immutable, Jsonizable, HexSerializable):
return Block.max_difficulty / current_target
+ def __eq__(self, other):
+ retur... | add __eq__ method to blocks | py |
diff --git a/hendrix/management/commands/hendrix.py b/hendrix/management/commands/hendrix.py
index <HASH>..<HASH> 100644
--- a/hendrix/management/commands/hendrix.py
+++ b/hendrix/management/commands/hendrix.py
@@ -27,7 +27,7 @@ class Reload(FileSystemEventHandler):
if event.is_directory:
return
... | only watch py and html file changes - takes into consideration cache template loader | py |
diff --git a/spinoff/actor/process.py b/spinoff/actor/process.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/process.py
+++ b/spinoff/actor/process.py
@@ -2,7 +2,6 @@
from __future__ import print_function
import abc
-import inspect
import sys
import traceback
import warnings
@@ -26,8 +25,8 @@ class ProcessTy... | Removed Process subclass metaclass type checking--it interferes with nose | py |
diff --git a/sirmordred/task_enrich.py b/sirmordred/task_enrich.py
index <HASH>..<HASH> 100644
--- a/sirmordred/task_enrich.py
+++ b/sirmordred/task_enrich.py
@@ -145,7 +145,7 @@ class TaskEnrich(Task):
# First process p2o params from repo
p2o_args = self._compose_p2o_params(self.backend_secti... | [task_enrich] Modify p2o filters-prefix params This code modifies the way how the filter-prefix param is detected. To improve consistency, all filters are identified by --filter, instead of by --filters-(prefix) and --filter-(raw) | py |
diff --git a/spyderlib/dependencies.py b/spyderlib/dependencies.py
index <HASH>..<HASH> 100644
--- a/spyderlib/dependencies.py
+++ b/spyderlib/dependencies.py
@@ -23,10 +23,11 @@ class Dependency(object):
NOK = 'NOK'
def __init__(self, modname, features, required_version,
- installed_vers... | Dependencies: Add the possibility to declare a dependency as optional | py |
diff --git a/python/phonenumbers/__init__.py b/python/phonenumbers/__init__.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/__init__.py
+++ b/python/phonenumbers/__init__.py
@@ -143,7 +143,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency
# Version number is taken from the ... | Prep for <I> release | py |
diff --git a/pyfrc/physics/visionsim.py b/pyfrc/physics/visionsim.py
index <HASH>..<HASH> 100644
--- a/pyfrc/physics/visionsim.py
+++ b/pyfrc/physics/visionsim.py
@@ -158,9 +158,9 @@ class VisionSim:
assert view_dst_start < view_dst_end
assert self.data_lag > 0.001
- objects = []
- if ... | Comment out visionsim stuff for now - Fixes #<I> | py |
diff --git a/glymur/lib/openjpeg.py b/glymur/lib/openjpeg.py
index <HASH>..<HASH> 100644
--- a/glymur/lib/openjpeg.py
+++ b/glymur/lib/openjpeg.py
@@ -7,7 +7,9 @@ import platform
import os
if os.name == "nt":
- _OPENJPEG = ctypes.windll.LoadLibrary('openjpeg')
+ path = os.path.join('C:\\', 'Program files', 'O... | Preliminary support for python <I> on windows. | py |
diff --git a/sacred/randomness.py b/sacred/randomness.py
index <HASH>..<HASH> 100644
--- a/sacred/randomness.py
+++ b/sacred/randomness.py
@@ -31,7 +31,11 @@ def set_global_seed(seed):
opt.np.random.seed(seed)
if module_is_in_cache('tensorflow'):
import tensorflow as tf
- tf.set_random_see... | Fix for tensorflow seeding 2 (#<I>) | py |
diff --git a/src/lewis/adapters/stream.py b/src/lewis/adapters/stream.py
index <HASH>..<HASH> 100644
--- a/src/lewis/adapters/stream.py
+++ b/src/lewis/adapters/stream.py
@@ -675,6 +675,8 @@ class StreamInterface(InterfaceBase):
in_terminator = '\r'
out_terminator = '\r'
+ readtimeout = 100
+
comman... | ReadTimeout attribute, analogous but opposite direction of ReadTimeout in protocol files | py |
diff --git a/constance/admin.py b/constance/admin.py
index <HASH>..<HASH> 100644
--- a/constance/admin.py
+++ b/constance/admin.py
@@ -139,8 +139,7 @@ class ConstanceForm(forms.Form):
def save(self):
for file_field in self.files:
file = self.cleaned_data[file_field]
- default_stora... | ConstanceForm save method tweak (#<I>) We need to store the actual name of the file, which the storage's save method provides. Otherwise, if we upload a new file with the same name as the already stored file has, the Constance config will keep a link to the old file. | py |
diff --git a/fermipy/scripts/coadd.py b/fermipy/scripts/coadd.py
index <HASH>..<HASH> 100644
--- a/fermipy/scripts/coadd.py
+++ b/fermipy/scripts/coadd.py
@@ -5,6 +5,7 @@ import argparse
from fermipy import merge_utils
from fermipy import fits_utils
from astropy.wcs import WCS
+from astropy.io.fits.verify import Ver... | Added silentfix option to fits file writing | py |
diff --git a/abilian/web/admin/panels/users/forms.py b/abilian/web/admin/panels/users/forms.py
index <HASH>..<HASH> 100644
--- a/abilian/web/admin/panels/users/forms.py
+++ b/abilian/web/admin/panels/users/forms.py
@@ -21,14 +21,14 @@ class UserAdminForm(Form):
view_widget=widgets.EmailWidget(),
... | users admin panel: user form: firstname before lastname | py |
diff --git a/openfisca_france_indirect_taxation/example/utils_example.py b/openfisca_france_indirect_taxation/example/utils_example.py
index <HASH>..<HASH> 100644
--- a/openfisca_france_indirect_taxation/example/utils_example.py
+++ b/openfisca_france_indirect_taxation/example/utils_example.py
@@ -101,7 +101,6 @@ def g... | correction of the graph_builder_line | py |
diff --git a/graphene/utils/str_converters.py b/graphene/utils/str_converters.py
index <HASH>..<HASH> 100644
--- a/graphene/utils/str_converters.py
+++ b/graphene/utils/str_converters.py
@@ -18,4 +18,4 @@ def to_snake_case(name):
def to_const(string):
- return re.sub('[\W|^(?=\d)]+', '_', string).upper()
+ r... | Allow numbers in to_constant Enums aren't effected if a int is passed along with the string. | py |
diff --git a/wikitextparser/wikitext.py b/wikitextparser/wikitext.py
index <HASH>..<HASH> 100644
--- a/wikitextparser/wikitext.py
+++ b/wikitextparser/wikitext.py
@@ -621,8 +621,6 @@ class WikiText:
level = func._indent_level
short_indent = '\n' + indent * (level - 1)
newline_inde... | Move the todo comment to a more related place | py |
diff --git a/spyder/utils/misc.py b/spyder/utils/misc.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/misc.py
+++ b/spyder/utils/misc.py
@@ -246,13 +246,12 @@ def add_pathlist_to_PYTHONPATH(env, pathlist, drop_env=False):
pypath = "PYTHONPATH"
pathstr = os.pathsep.join(pathlist)
if os.environ.get(pyp... | Utils: Remove usage of old_pypath in add_pathlist_to_PYTHONPATH That's not longer needed. | py |
diff --git a/raiden/tests/integration/api/test_pythonapi.py b/raiden/tests/integration/api/test_pythonapi.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/integration/api/test_pythonapi.py
+++ b/raiden/tests/integration/api/test_pythonapi.py
@@ -142,7 +142,7 @@ def test_register_token_insufficient_eth(
)
... | Enable flaky test but rerun on failure Since we can't reliably get the reason for an estimateGas error at the moment, there is a small chance or raising an unrecoverable error in this test. Rerun the test until the eth clients provide better APIs. Closes <URL> | py |
diff --git a/pymc/StepMethods.py b/pymc/StepMethods.py
index <HASH>..<HASH> 100644
--- a/pymc/StepMethods.py
+++ b/pymc/StepMethods.py
@@ -29,7 +29,7 @@ nonconjugate_Gibbs_competence = 0
class AdaptationError(ValueError): pass
-__all__=['DiscreteMetropolis', 'Metropolis', 'MatrixMetropolis', 'StepMethod', 'assign_... | Removing TWalk from __all__ list in StepMethods until it is complete. git-svn-id: <URL> | py |
diff --git a/src/you_get/extractors/nanagogo.py b/src/you_get/extractors/nanagogo.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/nanagogo.py
+++ b/src/you_get/extractors/nanagogo.py
@@ -35,10 +35,12 @@ def nanagogo_download(url, output_dir='.', merge=True, info_only=False, **kwargs
elif ... | [<I>] filenames may be duplicated (sometimes) | py |
diff --git a/celerite/build.py b/celerite/build.py
index <HASH>..<HASH> 100644
--- a/celerite/build.py
+++ b/celerite/build.py
@@ -100,13 +100,14 @@ class build_ext(_build_ext):
dirs = self.compiler.include_dirs
for ext in self.extensions:
dirs += ext.include_dirs
+ include_dirs = ... | wtf [ci skip] | py |
diff --git a/pytds/tds.py b/pytds/tds.py
index <HASH>..<HASH> 100644
--- a/pytds/tds.py
+++ b/pytds/tds.py
@@ -957,7 +957,7 @@ class IntN(BaseType):
8: BigInt.instance,
}
- _valid_sizes = {1, 2, 4, 8}
+ _valid_sizes = set((1, 2, 4, 8))
def __init__(self, size):
assert size in s... | support python <I> | py |
diff --git a/spyderlib/widgets/codeeditor/base.py b/spyderlib/widgets/codeeditor/base.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/codeeditor/base.py
+++ b/spyderlib/widgets/codeeditor/base.py
@@ -169,7 +169,9 @@ class TextEditBaseWidget(QPlainTextEdit):
def set_background_color(self, color):
... | (Fixes Issue <I>) Editor background color was not matching specified color scheme's background unless it was white or black | py |
diff --git a/salt/modules/xfs.py b/salt/modules/xfs.py
index <HASH>..<HASH> 100644
--- a/salt/modules/xfs.py
+++ b/salt/modules/xfs.py
@@ -24,16 +24,16 @@
'''
Module for managing XFS file systems.
'''
-from __future__ import absolute_import
import os
import re
import time
import logging
+from __future__ import... | List call not needed. Changing it back to what it was | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ setup(
install_requires=requires,
license="Apache License 2.0",
classifiers=[
- 'Development Status :: 4 - Beta',
+ 'Development Status :: 5 - Production/Stable',
'Intended ... | setup.py: Change development status to production | py |
diff --git a/tests/examples/test_examples.py b/tests/examples/test_examples.py
index <HASH>..<HASH> 100644
--- a/tests/examples/test_examples.py
+++ b/tests/examples/test_examples.py
@@ -146,7 +146,7 @@ def _assert_snapshot(example, url, example_type, diff):
wait = pytest.config.option.notebook_phantom_wait * ... | Correct default wait to 1s Was inadvertently <I>s! | py |
diff --git a/src/infi/clickhouse_orm/query.py b/src/infi/clickhouse_orm/query.py
index <HASH>..<HASH> 100644
--- a/src/infi/clickhouse_orm/query.py
+++ b/src/infi/clickhouse_orm/query.py
@@ -3,7 +3,7 @@ from __future__ import unicode_literals
import pytz
from copy import copy, deepcopy
from math import ceil
-from .e... | Support FINAL for ReplacingMergeTree | py |
diff --git a/blockstack_client/operations/update.py b/blockstack_client/operations/update.py
index <HASH>..<HASH> 100644
--- a/blockstack_client/operations/update.py
+++ b/blockstack_client/operations/update.py
@@ -136,7 +136,7 @@ def make_transaction(name, data_hash, consensus_hash, owner_addr, blockchain_cli
i... | log absence of UTXOs with address | py |
diff --git a/demo/demo_send.py b/demo/demo_send.py
index <HASH>..<HASH> 100755
--- a/demo/demo_send.py
+++ b/demo/demo_send.py
@@ -4,7 +4,7 @@ Test AMQP library.
Send a message to the corresponding demo_receive.py script, any
arguments to this program are joined together and sent as a message
-body. If no argument... | Update comments on demo_send to match what it really does. | py |
diff --git a/pychimera/core.py b/pychimera/core.py
index <HASH>..<HASH> 100644
--- a/pychimera/core.py
+++ b/pychimera/core.py
@@ -129,7 +129,6 @@ def patch_environ(nogui=True):
except StopIteration:
pass
- CHIMERA_BASE = os.path.expanduser(CHIMERA_BASE)
if not os.path.isdir(CHIMERA_BASE... | fix: better way to handle expanduser in search_chimera_path instead of patch_environ | py |
diff --git a/pyani/pyani_graphics/mpl/__init__.py b/pyani/pyani_graphics/mpl/__init__.py
index <HASH>..<HASH> 100644
--- a/pyani/pyani_graphics/mpl/__init__.py
+++ b/pyani/pyani_graphics/mpl/__init__.py
@@ -393,10 +393,10 @@ def scatter(
# else:
hue = None
- fig = plt.figure(figsize=(8, 8))
+ fig, ax ... | Alter `scatter()` to use `plt.subplots()` to provide an `ax` object Also change label commands to use the `set` versions. Trying to find commands that work in `matplotlib <I>` which is used by `python <I>`. | py |
diff --git a/lib_common/src/d1_common/types/exceptions.py b/lib_common/src/d1_common/types/exceptions.py
index <HASH>..<HASH> 100644
--- a/lib_common/src/d1_common/types/exceptions.py
+++ b/lib_common/src/d1_common/types/exceptions.py
@@ -190,7 +190,7 @@ def _get_trace_information_content(err_pyxb):
try:
return... | Improve formatting when DataONEException is serialized for display | py |
diff --git a/scripts/gen.py b/scripts/gen.py
index <HASH>..<HASH> 100644
--- a/scripts/gen.py
+++ b/scripts/gen.py
@@ -435,9 +435,9 @@ def output_class(class_name, properties, override, resource_name=None):
# Wrap long names for pycodestyle
if len(key) + len(value_type) < 55:
- print(" ... | Make generation script more black format compliant | py |
diff --git a/ofp/v0x01/foundation/base.py b/ofp/v0x01/foundation/base.py
index <HASH>..<HASH> 100644
--- a/ofp/v0x01/foundation/base.py
+++ b/ofp/v0x01/foundation/base.py
@@ -76,7 +76,7 @@ class GenericType(object):
except struct.error:
message = "Value out of the possible range to basic type "
... | [v0x<I>] GenericType pack exception improvement | py |
diff --git a/ella/series/migrations/0002_03_serie_to_publishable.py b/ella/series/migrations/0002_03_serie_to_publishable.py
index <HASH>..<HASH> 100644
--- a/ella/series/migrations/0002_03_serie_to_publishable.py
+++ b/ella/series/migrations/0002_03_serie_to_publishable.py
@@ -24,6 +24,9 @@ class Migration(BasePublish... | oops, forgotten one column for migration | py |
diff --git a/src/parse_mapqtl_file.py b/src/parse_mapqtl_file.py
index <HASH>..<HASH> 100644
--- a/src/parse_mapqtl_file.py
+++ b/src/parse_mapqtl_file.py
@@ -177,6 +177,7 @@ def parse_mapqtl_file(inputfolder, sessionid, lodthreshold=3,
qtls.append(headers)
write_matrix = True
msg = None
+ filelist.so... | Sort the file name so that the trait in the qtls_matrix file are ordered | py |
diff --git a/bio/pdb.py b/bio/pdb.py
index <HASH>..<HASH> 100755
--- a/bio/pdb.py
+++ b/bio/pdb.py
@@ -442,7 +442,7 @@ class PDB:
if missing_chain_ids.get(self.pdb_id):
chain_id = missing_chain_ids[self.pdb_id]
structure_lines.append(line)
- if chain... | Handle bad REMARK lines. We shouldn't have to but... | py |
diff --git a/examples/plot_features.py b/examples/plot_features.py
index <HASH>..<HASH> 100755
--- a/examples/plot_features.py
+++ b/examples/plot_features.py
@@ -98,7 +98,7 @@ def calc_limits(data, dist=None, padding=0.25):
# Neurite types of interest
NEURITES_ = (ezy.TreeType.axon,
ezy.TreeType.apical... | fix: plot_features.py ignores no data instead. examples/plot_features.py was failing when there was no data associated to one of the features under investigation. Now these features are simple ignored. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@ setup(name=PACKAGE_NAME,
license='Simplified BSD License',
long_description=README,
packages=[PACKAGE_NAME],
- tests_require=['betamax >=0.7.1, <0.8',
+ tests_require=['betamax >=0... | Bump betamax dependency version to be consistent with PRAW. | py |
diff --git a/openfisca_core/simulations.py b/openfisca_core/simulations.py
index <HASH>..<HASH> 100644
--- a/openfisca_core/simulations.py
+++ b/openfisca_core/simulations.py
@@ -332,7 +332,7 @@ class Simulation(object):
def invalidate_spiral_variables(self, variable):
count = 0
- for frame in se... | Use a more idiomatic way of reversing stack iteration | py |
diff --git a/pylint_django/tests/input/func_noerror_foreign_key_package.py b/pylint_django/tests/input/func_noerror_foreign_key_package.py
index <HASH>..<HASH> 100644
--- a/pylint_django/tests/input/func_noerror_foreign_key_package.py
+++ b/pylint_django/tests/input/func_noerror_foreign_key_package.py
@@ -7,7 +7,7 @@ f... | Fix the module full path when using foreign key in tests | py |
diff --git a/tests/parser/test_parser.py b/tests/parser/test_parser.py
index <HASH>..<HASH> 100644
--- a/tests/parser/test_parser.py
+++ b/tests/parser/test_parser.py
@@ -474,6 +474,8 @@ def test_parse_table_span(caplog):
pass
logger.info(f"Doc: {doc}")
+
+ assert len(doc.sentences) == 1
for sen... | test(parser): verify there is a single sentence | py |
diff --git a/codenerix/models.py b/codenerix/models.py
index <HASH>..<HASH> 100644
--- a/codenerix/models.py
+++ b/codenerix/models.py
@@ -385,13 +385,14 @@ if not (hasattr(settings, "PQPRO_CASSANDRA") and settings.PQPRO_CASSANDRA):
else:
field = getattr(self, key, None)
... | the Log save the change when new value is None | py |
diff --git a/plenum/test/conftest.py b/plenum/test/conftest.py
index <HASH>..<HASH> 100644
--- a/plenum/test/conftest.py
+++ b/plenum/test/conftest.py
@@ -407,8 +407,7 @@ def _tconf(general_config):
@pytest.fixture(scope="module")
def tconf(general_conf_tdir):
conf = _tconf(general_conf_tdir)
- conf.Max3PCBat... | [INDY-<I>] Increase Max3PCBatcWait | py |
diff --git a/NewIntegrationTest.py b/NewIntegrationTest.py
index <HASH>..<HASH> 100644
--- a/NewIntegrationTest.py
+++ b/NewIntegrationTest.py
@@ -226,7 +226,7 @@ class Repository( TestCase ):
self.assertEqual( self.r.html_url, "https://github.com/jacquev6/PyGithub" )
self.assertEqual( self.r.id, 3544... | Explanation about a todo | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,5 @@
# Copyright 2009 Shikhar Bhushan
+# Copyright 2011 Leonidas Poulopoulos
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@... | Added contact info in setup.py file | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -123,10 +123,13 @@ cmdclass = {
'sdist': sdist,
}
-if "bdist_wheel" in sys.argv and "--plat-name" not in sys.argv:
- sys.argv.append("--plat-name")
- sys.argv.append(get_platform())
+if 'bdist_wheel' in sys.argv ... | Re-add hardcoded platform tag | py |
diff --git a/zhaquirks/philips/rwl021.py b/zhaquirks/philips/rwl021.py
index <HASH>..<HASH> 100644
--- a/zhaquirks/philips/rwl021.py
+++ b/zhaquirks/philips/rwl021.py
@@ -114,7 +114,7 @@ class PhilipsRWL021(CustomDevice):
device_automation_triggers = {
(SHORT_PRESS, TURN_ON): {COMMAND: COMMAND_ON},
- ... | fix phillips remote device trigger key (#<I>) | py |
diff --git a/rofi.py b/rofi.py
index <HASH>..<HASH> 100644
--- a/rofi.py
+++ b/rofi.py
@@ -341,7 +341,7 @@ class Rofi(object):
return index, key
- def _generic_entry(self, prompt, validator, message=None):
+ def _generic_entry(self, prompt, validator, message=None, **kwargs):
"""Internal hel... | Added missing kwargs kwarg was never added to the function definition for _generic_entry. | py |
diff --git a/angr/path.py b/angr/path.py
index <HASH>..<HASH> 100644
--- a/angr/path.py
+++ b/angr/path.py
@@ -10,6 +10,8 @@ import mulpyplexer
#pylint:disable=unidiomatic-typecheck
+UNAVAILABLE_RET_ADDR = -1
+
class CallFrame(object):
'''
Stores the address of the function you're in and the value of SP... | Use UNAVAILABLE_RET_ADDR as ret_addr for the very first call frame in call stack | py |
diff --git a/worker/buildbot_worker/scripts/runner.py b/worker/buildbot_worker/scripts/runner.py
index <HASH>..<HASH> 100644
--- a/worker/buildbot_worker/scripts/runner.py
+++ b/worker/buildbot_worker/scripts/runner.py
@@ -158,11 +158,24 @@ class CreateWorkerOptions(MakerBase):
if master_arg[:5] == "http:":
... | worker: Allow ipv6 address for master connection on buildbot-worker To specify an ipv6 address, you can use: - [<I>:1:2:3:4::1] (without port specification) - [<I>:1:2:3:4::1]:<I> (with port specification) This fixes #<I>. | py |
diff --git a/quantecon/util/tests/test_notebooks.py b/quantecon/util/tests/test_notebooks.py
index <HASH>..<HASH> 100644
--- a/quantecon/util/tests/test_notebooks.py
+++ b/quantecon/util/tests/test_notebooks.py
@@ -9,6 +9,7 @@ fetch_nb_dependencies
from quantecon.util import fetch_nb_dependencies
import unittest
+i... | improve cleanup process of test by removing the downloaded file | py |
diff --git a/pubmed_lookup/pubmed_lookup.py b/pubmed_lookup/pubmed_lookup.py
index <HASH>..<HASH> 100644
--- a/pubmed_lookup/pubmed_lookup.py
+++ b/pubmed_lookup/pubmed_lookup.py
@@ -194,21 +194,20 @@ class Publication(object):
pubdate_xml = reduce(dict.get, key_path, xml_dict)
if isinstance(pubdate... | Set Publication's date attributes directly (without temp variables) | py |
diff --git a/pysat/tests/test_instrument.py b/pysat/tests/test_instrument.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_instrument.py
+++ b/pysat/tests/test_instrument.py
@@ -63,7 +63,7 @@ class TestBasics():
self.out = self.testInst.index[-1]
# 10 seconds per file
assert(self.out == ... | BUG: updated time check, multi-load-days | py |
diff --git a/ayrton/castt.py b/ayrton/castt.py
index <HASH>..<HASH> 100644
--- a/ayrton/castt.py
+++ b/ayrton/castt.py
@@ -479,6 +479,7 @@ class CrazyASTTransformer (ast.NodeTransformer):
# we need to convert them back to keywords and apply Python's syntax rules
new_args= []
... | [+] check keyword before positional for normal function calls. | py |
diff --git a/aiger/test_common.py b/aiger/test_common.py
index <HASH>..<HASH> 100644
--- a/aiger/test_common.py
+++ b/aiger/test_common.py
@@ -100,8 +100,8 @@ def test_relabel(aag1):
new_outputs.values())
new_latches = {k: f'{k}#2' for k in aag1.latches}
- assert set(aag1['l', new_latches].latches) =... | fix latch test, but latch relabels still broken | py |
diff --git a/salt/engines/napalm_syslog.py b/salt/engines/napalm_syslog.py
index <HASH>..<HASH> 100644
--- a/salt/engines/napalm_syslog.py
+++ b/salt/engines/napalm_syslog.py
@@ -373,6 +373,7 @@ def start(transport='zmq',
except KeyError as kerr:
log.warning('Missing keys from the napalm-logs obje... | Jump to the next object in the queue on exception | py |
diff --git a/pandas/tests/reshape/concat/test_concat.py b/pandas/tests/reshape/concat/test_concat.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/reshape/concat/test_concat.py
+++ b/pandas/tests/reshape/concat/test_concat.py
@@ -344,6 +344,10 @@ class TestConcatenate:
expected = concat([df, df], keys=["foo",... | TST: add test on checking objects to concatenate (#<I>) | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.