diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/mbuild/recipes/monolayer.py b/mbuild/recipes/monolayer.py
index <HASH>..<HASH> 100644
--- a/mbuild/recipes/monolayer.py
+++ b/mbuild/recipes/monolayer.py
@@ -54,7 +54,7 @@ class Monolayer(mb.Compound):
n_chains = len(pattern.points)
# Attach chains of each type to binding sites ... | Fixed issue with zip to comply with Python 3 | py |
diff --git a/salt/modules/ps.py b/salt/modules/ps.py
index <HASH>..<HASH> 100644
--- a/salt/modules/ps.py
+++ b/salt/modules/ps.py
@@ -27,7 +27,7 @@ except ImportError:
def __virtual__():
if not HAS_PSUTIL:
- return False, 'The ps module cannot be loaded: psutil not installed.'
+ return False, 'Th... | Add "python module" clarification to ps __virtual__ warning. Added based on comment from Issue #<I> | py |
diff --git a/tools/azure-sdk-tools/devtools_testutils/proxy_testcase.py b/tools/azure-sdk-tools/devtools_testutils/proxy_testcase.py
index <HASH>..<HASH> 100644
--- a/tools/azure-sdk-tools/devtools_testutils/proxy_testcase.py
+++ b/tools/azure-sdk-tools/devtools_testutils/proxy_testcase.py
@@ -138,7 +138,7 @@ def stop_... | [Test Proxy] Always return dictionary from tests (#<I>) | py |
diff --git a/reana_db/utils.py b/reana_db/utils.py
index <HASH>..<HASH> 100644
--- a/reana_db/utils.py
+++ b/reana_db/utils.py
@@ -103,7 +103,7 @@ def _get_workflow_with_uuid_or_name(uuid_or_name, user_uuid):
# `run_number` was specified.
# Check `run_number` is valid.
try:
- float... | utils: converts run_number to float when querying for workflow * psql allows to pass run number as a string while sqlite not | py |
diff --git a/cherrypy/test/test_core.py b/cherrypy/test/test_core.py
index <HASH>..<HASH> 100644
--- a/cherrypy/test/test_core.py
+++ b/cherrypy/test/test_core.py
@@ -897,6 +897,13 @@ class CoreRequestHandlingTest(helper.CPWebCase):
self.assertStatus(200)
self.assertBody(b)
+ # Reques... | <I> test for #<I> (PUT request with empty body/params ignored). | py |
diff --git a/eppy/geometry/surface.py b/eppy/geometry/surface.py
index <HASH>..<HASH> 100644
--- a/eppy/geometry/surface.py
+++ b/eppy/geometry/surface.py
@@ -23,7 +23,7 @@ try:
import numpy as np
from numpy import arccos as acos
except ImportError as e:
- import tinynumpy as np
+ from . import tinynum... | fixed a absolute_import problem in surface.py | py |
diff --git a/src/foremast/pipeline/create_pipeline_manual.py b/src/foremast/pipeline/create_pipeline_manual.py
index <HASH>..<HASH> 100644
--- a/src/foremast/pipeline/create_pipeline_manual.py
+++ b/src/foremast/pipeline/create_pipeline_manual.py
@@ -34,8 +34,10 @@ class SpinnakerPipelineManual(SpinnakerPipeline):
... | fix: Allow Manual Pipeline application and name Only use default generated Spinnaker application and Pipeline name when not defined in JSON. | py |
diff --git a/troposphere/ec2.py b/troposphere/ec2.py
index <HASH>..<HASH> 100644
--- a/troposphere/ec2.py
+++ b/troposphere/ec2.py
@@ -903,7 +903,7 @@ class LaunchTemplateData(AWSProperty):
'ImageId': (basestring, True),
'InstanceInitiatedShutdownBehavior': (basestring, False),
'InstanceMarke... | Sets InstanceType in EC2 LaunchTemplateData to not required. (#<I>) | py |
diff --git a/mapreduce/tests/test_mapreduce_integration_e2e.py b/mapreduce/tests/test_mapreduce_integration_e2e.py
index <HASH>..<HASH> 100644
--- a/mapreduce/tests/test_mapreduce_integration_e2e.py
+++ b/mapreduce/tests/test_mapreduce_integration_e2e.py
@@ -44,7 +44,7 @@ def test_metadata(aggregator, check, dd_run_che... | Assert the job ran in the test_e2e (#<I>) | py |
diff --git a/pymatgen/io/vasp/sets.py b/pymatgen/io/vasp/sets.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/vasp/sets.py
+++ b/pymatgen/io/vasp/sets.py
@@ -656,12 +656,12 @@ class MPHSEBSSet(MPHSERelaxSet):
labels=all_labels)
@classmethod
- def from_prev_calc(cls, prev_calc_dir, mod... | line mode was already implemented in MPHSEBSSet | py |
diff --git a/pnc_cli/makemead.py b/pnc_cli/makemead.py
index <HASH>..<HASH> 100644
--- a/pnc_cli/makemead.py
+++ b/pnc_cli/makemead.py
@@ -6,7 +6,7 @@ import time
from ConfigParser import Error
from ConfigParser import NoSectionError
-from argh import arg, aliases
+from argh import arg
import pnc_cli.utils as ut... | [NCL-<I>] cleanup | py |
diff --git a/evaluation/evaluate.py b/evaluation/evaluate.py
index <HASH>..<HASH> 100644
--- a/evaluation/evaluate.py
+++ b/evaluation/evaluate.py
@@ -1,9 +1,19 @@
import os
import os.path
+import sys
+sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))
from pyrouge import Rouge15... | Working on the script to run ROUGE automatically. | py |
diff --git a/bdbag/fetch/transports/fetch_http.py b/bdbag/fetch/transports/fetch_http.py
index <HASH>..<HASH> 100644
--- a/bdbag/fetch/transports/fetch_http.py
+++ b/bdbag/fetch/transports/fetch_http.py
@@ -111,9 +111,9 @@ def get_file(url, output_path, auth_config, headers=None, session=None):
else:
... | Bugfix for auth retry. | py |
diff --git a/tests/test_core.py b/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -7,9 +7,10 @@ import numpy as np
import muda
import jams
+import librosa
-def test_jampack():
+def test_jam_pack():
jam = jams.JAMS()
@@ -25,3 +26,21 @@ def test_jampack... | added load_jam_audio test | py |
diff --git a/jupyterthemes/stylefx.py b/jupyterthemes/stylefx.py
index <HASH>..<HASH> 100755
--- a/jupyterthemes/stylefx.py
+++ b/jupyterthemes/stylefx.py
@@ -544,7 +544,9 @@ def stored_font_dicts(fontcode, get_all=False):
'source': ['Source Code Pro', 'source-code-pro'],
'sourcemed': ['So... | added jetbrains to dict | py |
diff --git a/tests/unit/utils/test_thin.py b/tests/unit/utils/test_thin.py
index <HASH>..<HASH> 100644
--- a/tests/unit/utils/test_thin.py
+++ b/tests/unit/utils/test_thin.py
@@ -407,3 +407,5 @@ class SSHThinTestCase(TestCase):
thin.log.warning.assert_called()
pt, msg = thin.log.warning.mock_calls[0][... | Add check for correct archiving mode is opened | py |
diff --git a/hydpy/core/devicetools.py b/hydpy/core/devicetools.py
index <HASH>..<HASH> 100644
--- a/hydpy/core/devicetools.py
+++ b/hydpy/core/devicetools.py
@@ -18,7 +18,7 @@ from hydpy import pub
from hydpy.core import abctools
from hydpy.core import autodoctools
from hydpy.core import connectiontools
-from hydpy... | Fix cyclomatic import problem that occurs under Python 2 only. | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -2,6 +2,7 @@ import logging
import subprocess
import sys
import os
+import json
from nose.tools import raises
logger = logging.getLogger(__name__)
@@ -219,7 +220,7 @@ def test_subset_removal():
def test_pipeline_crushing()... | Test for new pipeline-initialization failure | py |
diff --git a/libextract/coretools.py b/libextract/coretools.py
index <HASH>..<HASH> 100644
--- a/libextract/coretools.py
+++ b/libextract/coretools.py
@@ -12,9 +12,10 @@ from lxml.html import parse, HTMLParser
def chunks(iterable, size):
- """ Yield successive n-sized chunks from l.
+ """
+ Yield success... | Changed xrange to range in coretools.chunks | py |
diff --git a/aiohttp_debugtoolbar/middlewares.py b/aiohttp_debugtoolbar/middlewares.py
index <HASH>..<HASH> 100644
--- a/aiohttp_debugtoolbar/middlewares.py
+++ b/aiohttp_debugtoolbar/middlewares.py
@@ -46,7 +46,8 @@ def middleware(app, handler):
p = request.path
starts_with_excluded = list(filter(Non... | fixed error with IPv6 socket family | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -1688,12 +1688,14 @@ def ip_fqdn():
ret[key] = []
else:
try:
+ start_time = datetime.datetime.utcnow()
info = socke... | require large timediff for ipv6 warning | py |
diff --git a/razorpay/utility/utility.py b/razorpay/utility/utility.py
index <HASH>..<HASH> 100644
--- a/razorpay/utility/utility.py
+++ b/razorpay/utility/utility.py
@@ -6,7 +6,10 @@ class Utility(object):
def __init__(self, client=None):
self.client = client
- def validate_signature(self, order_id,... | [python-sdk] take params instead of individual ids | py |
diff --git a/nougat/parameter.py b/nougat/parameter.py
index <HASH>..<HASH> 100644
--- a/nougat/parameter.py
+++ b/nougat/parameter.py
@@ -19,6 +19,8 @@ class Param:
self.action = action # rename
self.append = append # list or not
self.description = description # description
+ if se... | feature: raise error when the param is optional and its default value is empty | py |
diff --git a/issuetracker/test_issuetracker.py b/issuetracker/test_issuetracker.py
index <HASH>..<HASH> 100644
--- a/issuetracker/test_issuetracker.py
+++ b/issuetracker/test_issuetracker.py
@@ -168,7 +168,7 @@ def test_make_isssue_reference_resolver_invalid_reftype(
def test_make_issue_reference_resolver_no_issue(
... | Fixed resolver test with no issue information | py |
diff --git a/basil/TL/SiUsb.py b/basil/TL/SiUsb.py
index <HASH>..<HASH> 100644
--- a/basil/TL/SiUsb.py
+++ b/basil/TL/SiUsb.py
@@ -47,6 +47,11 @@ class SiUsb (SiTransferLayer):
if 'avoid_download' in self._init.keys() and self._init['avoid_download'] is True and self._sidev.XilinxAlreadyLoaded():
... | BUG: fix polarity of IFCLK on FX2 | py |
diff --git a/test/high_availability/ha_tools.py b/test/high_availability/ha_tools.py
index <HASH>..<HASH> 100644
--- a/test/high_availability/ha_tools.py
+++ b/test/high_availability/ha_tools.py
@@ -35,9 +35,9 @@ import pymongo.errors
from pymongo.read_preferences import ReadPreference
home = os.environ.get('HOME')... | Move HA tests' dbpath to motor_ha/. | py |
diff --git a/hypermap/aggregator/models.py b/hypermap/aggregator/models.py
index <HASH>..<HASH> 100644
--- a/hypermap/aggregator/models.py
+++ b/hypermap/aggregator/models.py
@@ -22,7 +22,7 @@ class Resource(PolymorphicModel):
Resource represents basic information for a resource (service/layer).
"""
titl... | Resource abstract field now is TextField | py |
diff --git a/molo/commenting/templatetags/molo_commenting_tags.py b/molo/commenting/templatetags/molo_commenting_tags.py
index <HASH>..<HASH> 100644
--- a/molo/commenting/templatetags/molo_commenting_tags.py
+++ b/molo/commenting/templatetags/molo_commenting_tags.py
@@ -58,7 +58,8 @@ class GetMoloCommentsNode(template.... | removing deprecated resolve_variable | py |
diff --git a/rtv/submission_page.py b/rtv/submission_page.py
index <HASH>..<HASH> 100644
--- a/rtv/submission_page.py
+++ b/rtv/submission_page.py
@@ -181,7 +181,7 @@ class SubmissionPage(Page):
else:
self.term.flash()
- @PageController.register(Command('SUBMISSION_GOTO_PARENT'))
+ @Submis... | Restrict J/K commands to the submission page | py |
diff --git a/dyndnsc/detector/rand.py b/dyndnsc/detector/rand.py
index <HASH>..<HASH> 100644
--- a/dyndnsc/detector/rand.py
+++ b/dyndnsc/detector/rand.py
@@ -73,7 +73,7 @@ class RandomIPGenerator(object):
if self.maxRandomTries is None or self.maxRandomTries > 0:
generate = True
c = 0
- ... | add comment about reference-before-assignment bug | py |
diff --git a/AlphaTwirl/Concurrently/CommunicationChannel.py b/AlphaTwirl/Concurrently/CommunicationChannel.py
index <HASH>..<HASH> 100644
--- a/AlphaTwirl/Concurrently/CommunicationChannel.py
+++ b/AlphaTwirl/Concurrently/CommunicationChannel.py
@@ -5,7 +5,7 @@ from operator import itemgetter
##____________________... | change the order of the arguments of Worker | py |
diff --git a/telethon/client/downloads.py b/telethon/client/downloads.py
index <HASH>..<HASH> 100644
--- a/telethon/client/downloads.py
+++ b/telethon/client/downloads.py
@@ -217,6 +217,7 @@ class DownloadMethods(UserMethods):
# TODO Figure out why the session may have the wrong DC ID
... | Fix-up a<I>d<I> should not be exported on invalid DC | py |
diff --git a/tests/gitlab_test.py b/tests/gitlab_test.py
index <HASH>..<HASH> 100644
--- a/tests/gitlab_test.py
+++ b/tests/gitlab_test.py
@@ -61,7 +61,7 @@ class GitlabTest(unittest.TestCase):
def test_sshkeys(self):
git.login(user=user, password=password)
git.addsshkey(title="test key", key=key... | removed one of the tests until I find what is failing | py |
diff --git a/jwt/algorithms.py b/jwt/algorithms.py
index <HASH>..<HASH> 100644
--- a/jwt/algorithms.py
+++ b/jwt/algorithms.py
@@ -51,6 +51,7 @@ def get_default_algorithms():
'ES256': ECAlgorithm(ECAlgorithm.SHA256),
'ES384': ECAlgorithm(ECAlgorithm.SHA384),
'ES521': ECAlgorithm(E... | Add back 'ES<I>' for backward compatibility (for now) | py |
diff --git a/features/steps.py b/features/steps.py
index <HASH>..<HASH> 100644
--- a/features/steps.py
+++ b/features/steps.py
@@ -50,6 +50,11 @@ def start_glerbl(args):
def git(repo, *args):
subprocess.check_call(args, cwd=repo)
+# We need to alter PYTHONPATH to be able to let the hooks launched by git run
+# ... | Update PYTHONPATH to use development version of glerbl. | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -3750,19 +3750,10 @@ def _tokenization_error(s, filename, linenr):
.format(loc, s.strip())
def _parse_error(s, msg, filename, linenr):
- error_str = ""
-
- if filen... | Clean up parse error handling. strip() the faulty line (seeing that whitespace probably isn't helpful), remove an assert that probably isn't useful in practice, and simplify the code. | py |
diff --git a/stix2patterns/grammars/STIXPatternListener.py b/stix2patterns/grammars/STIXPatternListener.py
index <HASH>..<HASH> 100644
--- a/stix2patterns/grammars/STIXPatternListener.py
+++ b/stix2patterns/grammars/STIXPatternListener.py
@@ -1,6 +1,8 @@
# Generated from STIXPattern.g4 by ANTLR 4.7.1
+
from antlr4 im... | Fix STIXPatternListener imports Antlr produces python files that don't adhere to isort's preferences. | py |
diff --git a/sspps/__init__.py b/sspps/__init__.py
index <HASH>..<HASH> 100644
--- a/sspps/__init__.py
+++ b/sspps/__init__.py
@@ -31,6 +31,7 @@ class PluginLoader(object):
logging.debug('Starting plugin loading')
plugins_dir = os.listdir(self.plugins_dir)
found_driver = False
+ self.p... | Fix for plugins only storing latest plugin found, removed driver attribute | py |
diff --git a/indra/sources/hume/processor.py b/indra/sources/hume/processor.py
index <HASH>..<HASH> 100644
--- a/indra/sources/hume/processor.py
+++ b/indra/sources/hume/processor.py
@@ -259,13 +259,13 @@ class HumeJsonLdProcessor(object):
# First case: we have a theme so we apply the property and the process
... | Make the grounding tuples a list | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ setup(
'appdirs==1.4.3',
'docopt==0.6.2',
'prompt-toolkit==1.0',
- 'python-slugify==1.2.1',
+ 'python-slugify==1.2.2',
],
packages=['withtool'],
classifier... | Upgrade dependency python-slugify to ==<I> | py |
diff --git a/vertex/ptcp.py b/vertex/ptcp.py
index <HASH>..<HASH> 100644
--- a/vertex/ptcp.py
+++ b/vertex/ptcp.py
@@ -708,6 +708,18 @@ class PTCPConnection(object):
if self._timeWaitCall is not None:
self._timeWaitCall.cancel()
self._timeWaitCall = None
+ if self._closeWaitLos... | clean up _all_ the resources especially the one causing spurious timeouts | py |
diff --git a/sedge/engine.py b/sedge/engine.py
index <HASH>..<HASH> 100644
--- a/sedge/engine.py
+++ b/sedge/engine.py
@@ -121,10 +121,15 @@ class Host(Section):
raise ParserException(fmt_error)
from_val, to_val = (int(t) for t in range_parts)
to_val += 1 # inclusive end
+ ... | Pad range with zeroes In most environments the ranges are padded with zeroes. This only pads with leading zeroes when both A and B have the same lenght. {<I>} will expand to 1 - <I> {<I>} will expand to <I> - <I> | 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
@@ -157,19 +157,12 @@ def test_html_doc_preprocessor(caplog, tmpdir):
fake_pdf_folder.join("fake{}.pdf".format(i)).write("content")
# No ... | Updates html preprocessor test | py |
diff --git a/src/saml2/utils.py b/src/saml2/utils.py
index <HASH>..<HASH> 100644
--- a/src/saml2/utils.py
+++ b/src/saml2/utils.py
@@ -42,8 +42,9 @@ GENERIC_DOMAINS = "aero", "asia", "biz", "cat", "com", "coop", \
def valid_email(emailaddress, domains = GENERIC_DOMAINS):
"""Checks for a syntactically valid email ... | country codes are only 2 chars so | py |
diff --git a/openpnm/geometry/StickAndBall.py b/openpnm/geometry/StickAndBall.py
index <HASH>..<HASH> 100644
--- a/openpnm/geometry/StickAndBall.py
+++ b/openpnm/geometry/StickAndBall.py
@@ -113,8 +113,12 @@ class StickAndBall(GenericGeometry):
model=mods.geometry.throat_area.cylinder,
... | the approximate estimation of the lenght is problematic for some D/L ratios. the conduit length model is added to the stick and ball geom as well | py |
diff --git a/scvelo/tools/velocity_graph.py b/scvelo/tools/velocity_graph.py
index <HASH>..<HASH> 100644
--- a/scvelo/tools/velocity_graph.py
+++ b/scvelo/tools/velocity_graph.py
@@ -1,6 +1,6 @@
from .. import settings
from .. import logging as logg
-from ..preprocessing.neighbors import pca, neighbors
+from ..prepro... | recompute neighbors for velocity_graph if corrupted | py |
diff --git a/spyderlib/plugins/help.py b/spyderlib/plugins/help.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/help.py
+++ b/spyderlib/plugins/help.py
@@ -27,6 +27,8 @@ from spyderlib.config.ipython import QTCONSOLE_INSTALLED
from spyderlib.config.main import CONF
from spyderlib.config.gui import get_color_s... | Help: Remove try/except block to prevent crashes if Sphinx was not installed | py |
diff --git a/esridump/cli.py b/esridump/cli.py
index <HASH>..<HASH> 100644
--- a/esridump/cli.py
+++ b/esridump/cli.py
@@ -67,6 +67,10 @@ def _parse_args(args):
dest='params',
default=[],
help="Add a URL parameter to send when requesting from Esri server")
+ parser.add_argument("-t", "--ti... | Added configurable CLI timeout for HTTP requests | py |
diff --git a/bigtable/setup.py b/bigtable/setup.py
index <HASH>..<HASH> 100644
--- a/bigtable/setup.py
+++ b/bigtable/setup.py
@@ -56,7 +56,7 @@ REQUIREMENTS = [
setup(
name='google-cloud-bigtable',
- version='0.23.0',
+ version='0.23.1',
description='Python Client for Google Cloud Bigtable',
lo... | Cut version <I> of Bigtable. | py |
diff --git a/beets/mediafile.py b/beets/mediafile.py
index <HASH>..<HASH> 100644
--- a/beets/mediafile.py
+++ b/beets/mediafile.py
@@ -1088,11 +1088,11 @@ class DateField(MediaField):
year, month, and day number. Each number is either an integer or
None.
"""
- # Get the underlying data... | Also allow slashes as separator in date fields Original: beetbox/beets@<I>edb | py |
diff --git a/pythonforandroid/logger.py b/pythonforandroid/logger.py
index <HASH>..<HASH> 100644
--- a/pythonforandroid/logger.py
+++ b/pythonforandroid/logger.py
@@ -194,12 +194,12 @@ def shprint(command, *args, **kwargs):
else:
info('{} (last {} lines of {}):\n{}\t{}{}'.format(
... | Further fixed stdout decoding for python3 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ setup(
version=VERSION,
description='API version negotiation for flask-based web services.',
author='Canonical Online Services',
- author_email='Online Services <online-services@lists.canonical... | Update email address so acceptable can be released to pypi. | py |
diff --git a/extensions/management/jobs.py b/extensions/management/jobs.py
index <HASH>..<HASH> 100644
--- a/extensions/management/jobs.py
+++ b/extensions/management/jobs.py
@@ -43,7 +43,7 @@ def my_import(name):
def find_jobs(jobs_dir):
try:
return [f[:-3] for f in os.listdir(jobs_dir) \
- ... | nicer exception around loading Job's from jobmodule | py |
diff --git a/bcbio/pipeline/run_info.py b/bcbio/pipeline/run_info.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/run_info.py
+++ b/bcbio/pipeline/run_info.py
@@ -226,6 +226,7 @@ def _fill_validation_targets(data):
def _fill_capture_regions(data):
"""Fill short-hand specification of BED capture regions.
... | sv_regions: allow special cases for specification Thanks to Rama Sompallae | py |
diff --git a/src/ossos-pipeline/ossos/gui/models/workload.py b/src/ossos-pipeline/ossos/gui/models/workload.py
index <HASH>..<HASH> 100644
--- a/src/ossos-pipeline/ossos/gui/models/workload.py
+++ b/src/ossos-pipeline/ossos/gui/models/workload.py
@@ -583,7 +583,8 @@ class WorkUnitProvider(object):
Get a listin... | Sets the filter for workload to exclude 'fk' images when doing the 'reals'. This should be changed to a commandline flag. TBD. | py |
diff --git a/flow/__init__.py b/flow/__init__.py
index <HASH>..<HASH> 100644
--- a/flow/__init__.py
+++ b/flow/__init__.py
@@ -14,7 +14,7 @@ from data import \
from datawriter import DataWriter
-from nmpy import StreamingNumpyDecoder, NumpyMetaData
+from nmpy import StreamingNumpyDecoder, NumpyMetaData, NumpyFeatu... | Add NumpyFeature to top-level exports | py |
diff --git a/src/metapensiero/signal/user.py b/src/metapensiero/signal/user.py
index <HASH>..<HASH> 100644
--- a/src/metapensiero/signal/user.py
+++ b/src/metapensiero/signal/user.py
@@ -75,7 +75,11 @@ class SignalAndHandlerInitMeta(type):
signaller = cls._external_signaller_and_handler
for aname, ava... | Do not overwrite the name of the signal on class initialization | py |
diff --git a/internals/labels.py b/internals/labels.py
index <HASH>..<HASH> 100644
--- a/internals/labels.py
+++ b/internals/labels.py
@@ -39,7 +39,7 @@ class Labels(object):
def log_likelihood(self):
if not hasattr(self,'_normalizer') or self._normalizer is None:
scores = self._compute_score... | don't pass any missing likelihoods to logaddexp.reduce | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -61,6 +61,9 @@ setup(
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
+ "Programming Language :: Python :: 3",
+ ... | Added py3 to classifiers | py |
diff --git a/nginx/datadog_checks/nginx/nginx.py b/nginx/datadog_checks/nginx/nginx.py
index <HASH>..<HASH> 100644
--- a/nginx/datadog_checks/nginx/nginx.py
+++ b/nginx/datadog_checks/nginx/nginx.py
@@ -282,7 +282,13 @@ class Nginx(AgentCheck):
payload = self._nest_payload(nest, r.json())
except E... | Instruct the user to fix the error (#<I>) | py |
diff --git a/dipper/sources/ClinVarXML_alpha.py b/dipper/sources/ClinVarXML_alpha.py
index <HASH>..<HASH> 100755
--- a/dipper/sources/ClinVarXML_alpha.py
+++ b/dipper/sources/ClinVarXML_alpha.py
@@ -170,7 +170,7 @@ def make_spo(sub, prd, obj):
if match is not None and objcuri in CURIEMAP:
objt = CURIEMAP[... | emit blanknodes without <> as intended | py |
diff --git a/gargoyle/models.py b/gargoyle/models.py
index <HASH>..<HASH> 100644
--- a/gargoyle/models.py
+++ b/gargoyle/models.py
@@ -41,7 +41,7 @@ class Switch(models.Model):
class Meta:
permissions = (
- ("can_view", _("can view")),
+ ("can_view", "Can view"),
)
... | Remove translate tag on Can view as its brekaing tests | py |
diff --git a/neural/afni.py b/neural/afni.py
index <HASH>..<HASH> 100644
--- a/neural/afni.py
+++ b/neural/afni.py
@@ -816,7 +816,7 @@ def align_epi_anat(anatomy,epi_dsets,skull_strip_anat=True):
if is_nifti(dset):
if dset!=anatomy:
dset_nifti = nifti_copy(prefix(dset)+'_al+orig')... | trying to get rid of weird gzip errors | py |
diff --git a/salt/states/saltmod.py b/salt/states/saltmod.py
index <HASH>..<HASH> 100644
--- a/salt/states/saltmod.py
+++ b/salt/states/saltmod.py
@@ -230,7 +230,7 @@ def state(
if pillar:
cmd_kw['kwarg']['pillar'] = pillar
- cmd_kw['kwarg']['saltenv'] = saltenv
+ cmd_kw['kwarg']['saltenv'] = salt... | Fix regression in state orchestration This falls back to using the effective saltenv when no saltenv has been explicitly passed. | py |
diff --git a/isambard_dev/ampal/interactions.py b/isambard_dev/ampal/interactions.py
index <HASH>..<HASH> 100644
--- a/isambard_dev/ampal/interactions.py
+++ b/isambard_dev/ampal/interactions.py
@@ -117,7 +117,7 @@ class NonCovalentInteraction(Interaction):
'and {} {}{} (acceptor)>'.format(
... | Fixes issue with missing bracket. | py |
diff --git a/bugzoo/mgr/container.py b/bugzoo/mgr/container.py
index <HASH>..<HASH> 100644
--- a/bugzoo/mgr/container.py
+++ b/bugzoo/mgr/container.py
@@ -576,7 +576,7 @@ class ContainerManager(object):
output = []
for line in out:
- line = line.decode('utf-8').rstrip('\n')
+ l... | Use backslashreplace when decoding command output (fixes #<I>) (#<I>) * Adding "backslashreplace" to 'utf-8' decoding of container I/O to avoid getting UnicodeDecodeError when processing byte literals for testing infrastructure * Adding minor changes requested by @ChrisTimperley from GitHub #<I> Conversation | py |
diff --git a/bokeh/objects.py b/bokeh/objects.py
index <HASH>..<HASH> 100644
--- a/bokeh/objects.py
+++ b/bokeh/objects.py
@@ -4,7 +4,7 @@ this module can be stored as a backbone.js model graph, and stored in a
plot server or serialized into JS for embedding in HTML or an IPython
notebook.
"""
-
+from uuid import uu... | ENH: added function to create obj from json on PlotObject | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -1658,8 +1658,10 @@ class State(object):
class BaseHighState(object):
'''
- The BaseHighState is the foundation of running a highstate, extend it and
- add a self.state object of type State
+ ... | Refs #<I>. From a cursory scan of this code, I believe the issues that the author raised are still valid. | 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
@@ -318,7 +318,7 @@ class ClassicalCalculator(base.HazardCalculator):
res = parallel.Starmap.apply(
... | Restore concurrent_tasks as it was | py |
diff --git a/jax/lax/lax.py b/jax/lax/lax.py
index <HASH>..<HASH> 100644
--- a/jax/lax/lax.py
+++ b/jax/lax/lax.py
@@ -2630,7 +2630,7 @@ def _dynamic_slice_jvp_rule(g, operand, start_indices, slice_sizes,
def _dynamic_slice_transpose_rule(t, operand, start_indices, slice_sizes,
opera... | Avoid instantiating zeros in dynamic_slice/gather transpose rules. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -68,8 +68,8 @@ setuptools.setup(
'windows-curses; sys_platform == "win32"',
),
- # Needs support for unnumbered {} in format()
- python_requires=">=2.7,!=3.0.*",
+ # Needs support for unnumbered {} in ... | Tweak python_requires to <I>/<I>+ Many of the utilities need argparse, which was added in <I>. Kconfiglib itself is compatible with <I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@ setup(
long_description=readme + '\n\n' + changes + '\n\n',
author='David LaBissoniere',
author_email='david@labisso.com',
- url="https://kazoo.readthedocs.org",
+ url="https://blockade.read... | Fix url in setup.py | py |
diff --git a/sixpack/models.py b/sixpack/models.py
index <HASH>..<HASH> 100644
--- a/sixpack/models.py
+++ b/sixpack/models.py
@@ -224,11 +224,12 @@ class Experiment(object):
if not alternative:
raise ValueError('this client was not participaing')
+ if kpi is not None:
+ if not... | Allow KPI conversion after non-KPI conversion closes seatgeek/sixpack#<I> | py |
diff --git a/discord/permissions.py b/discord/permissions.py
index <HASH>..<HASH> 100644
--- a/discord/permissions.py
+++ b/discord/permissions.py
@@ -161,7 +161,9 @@ class Permissions:
@property
def manage_roles(self):
- """Returns True if a user can manage server roles. This role overrides all othe... | Clarify channel-specific permissions documentation. Manage Roles and Manage Channels is renamed to "Manage Permissions" and "Manage Channel" in the discord UI, clarify which fields in the Permission object those map to. | py |
diff --git a/speclev.py b/speclev.py
index <HASH>..<HASH> 100644
--- a/speclev.py
+++ b/speclev.py
@@ -104,7 +104,6 @@ def speclev(x, nfft=512, fs=1, w=None, nov=None):
import numpy
import scipy.signal
- buffer(x, n, p=0, opt=None)
if w == None:
w = nfft
@@ -115,8 +114,8 @@ def specle... | fixed small errors in speclev.py | py |
diff --git a/interest/handler/handler.py b/interest/handler/handler.py
index <HASH>..<HASH> 100644
--- a/interest/handler/handler.py
+++ b/interest/handler/handler.py
@@ -93,13 +93,16 @@ class Handler(ServerHttpProtocol):
response = yield from processor.process_result(request, result)
response... | added opportunity to raise in middleware process_exception | py |
diff --git a/pysat/tests/test_utils_files.py b/pysat/tests/test_utils_files.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_utils_files.py
+++ b/pysat/tests/test_utils_files.py
@@ -173,7 +173,10 @@ class TestFileDirectoryTranslations(CICleanSetup):
ostr = ' '.join(('Downloading data for', inst.platfo... | TST: Update for use of `date_array` | py |
diff --git a/mythril/ethereum/interface/rpc/client.py b/mythril/ethereum/interface/rpc/client.py
index <HASH>..<HASH> 100644
--- a/mythril/ethereum/interface/rpc/client.py
+++ b/mythril/ethereum/interface/rpc/client.py
@@ -57,7 +57,11 @@ class EthJsonRpc(BaseClient):
if self.tls:
scheme += "s"
... | Quick fix for localhost rpc (#<I>) | py |
diff --git a/isomer/__init__.py b/isomer/__init__.py
index <HASH>..<HASH> 100644
--- a/isomer/__init__.py
+++ b/isomer/__init__.py
@@ -4,4 +4,4 @@
__author__ = "Heiko 'riot' Weinen <riot@c-base.org>"
__license__ = "AGPLv3"
-__import__('pkg_resources').declare_namespace(__name__)
\ No newline at end of file
+__impor... | Packaging added and/or reformatted | py |
diff --git a/stellar/command.py b/stellar/command.py
index <HASH>..<HASH> 100644
--- a/stellar/command.py
+++ b/stellar/command.py
@@ -163,9 +163,9 @@ def init():
engine = create_engine(url, echo=False)
try:
conn = engine.connect()
- except OperationalError:
+ except Operati... | Display to the user the actual error message this it is informative The actual error message contains information such as: - You need to provide a password - Password was invalid - Server is not running - Host could not be found These information are more helpful to debug a problem than the standard error message in ... | py |
diff --git a/programs/di_vgp.py b/programs/di_vgp.py
index <HASH>..<HASH> 100755
--- a/programs/di_vgp.py
+++ b/programs/di_vgp.py
@@ -84,7 +84,7 @@ def main():
else: # single line of data
if len(data)==4:
data=[data[0],data[1],0,data[2],data[3]]
- output = pmag.dia_vgp(data)
+ ... | for di_vgp, pass in arguments to pmag.dia_vgp as single values if only one line in data file, #<I> | py |
diff --git a/BANE.py b/BANE.py
index <HASH>..<HASH> 100755
--- a/BANE.py
+++ b/BANE.py
@@ -335,15 +335,15 @@ def optimum_sections(cores,data_shape):
def mask_img(data,mask_data):
"""
-
- :param data:
- :param mask_data:
- :return:
+ Take two images of the same shape, and transfer the mask from one t... | Docstring, comments, logging for mask_img | py |
diff --git a/picotui/screen.py b/picotui/screen.py
index <HASH>..<HASH> 100644
--- a/picotui/screen.py
+++ b/picotui/screen.py
@@ -210,3 +210,9 @@ class Screen:
assert resp.startswith(b"\x1b[8;") and resp[-1:] == b"t"
vals = resp[:-1].split(b";")
return (int(vals[2]), int(vals[1]))
+
+ # S... | screen: Add set_screen_redraw() class method. Sets a function which can redraw entire screen background, to restore its state. | py |
diff --git a/master/buildbot/status/persistent_queue.py b/master/buildbot/status/persistent_queue.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/status/persistent_queue.py
+++ b/master/buildbot/status/persistent_queue.py
@@ -16,10 +16,7 @@
from collections import deque
import os
-try:
- import cPickle as p... | use cPickle unconditionally It's available in all CPython's forever, and the import trick makes pyflakes sad. | py |
diff --git a/root_numpy/tests/test_tree.py b/root_numpy/tests/test_tree.py
index <HASH>..<HASH> 100644
--- a/root_numpy/tests/test_tree.py
+++ b/root_numpy/tests/test_tree.py
@@ -642,3 +642,14 @@ def test_array2root():
rnp.array2root(a, tmp.GetName(), mode='update')
a_conv2 = rnp.root2array(tmp.GetNam... | add tests for TDirectories in array2root | py |
diff --git a/hydra_base/lib/template/resource.py b/hydra_base/lib/template/resource.py
index <HASH>..<HASH> 100644
--- a/hydra_base/lib/template/resource.py
+++ b/hydra_base/lib/template/resource.py
@@ -374,8 +374,10 @@ def assign_types_to_resources(resource_types, template_id=None, **kwargs):
#We assume here that... | Add logging to help debugging the assign_types_to_resources | py |
diff --git a/torchtext/data/field.py b/torchtext/data/field.py
index <HASH>..<HASH> 100644
--- a/torchtext/data/field.py
+++ b/torchtext/data/field.py
@@ -331,7 +331,7 @@ class ReversibleField(Field):
print("Please install revtok.")
raise
if not self.batch_first:
- ... | out-of-place transpose in reverse (#<I>) | py |
diff --git a/pytablereader/jsonlines/core.py b/pytablereader/jsonlines/core.py
index <HASH>..<HASH> 100644
--- a/pytablereader/jsonlines/core.py
+++ b/pytablereader/jsonlines/core.py
@@ -87,6 +87,10 @@ class JsonLinesTableFileLoader(JsonLinesTableLoader):
buffer = []
with io.open(self.source, "r", enc... | Change to strip for each loaded lines to get more stable results | py |
diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py
index <HASH>..<HASH> 100644
--- a/tornado/test/simple_httpclient_test.py
+++ b/tornado/test/simple_httpclient_test.py
@@ -287,7 +287,7 @@ class SimpleHTTPClientTestCase(AsyncHTTPTestCase, LogTrapTestCase):
self.http_cl... | Fix test for pre-<I> assertions | py |
diff --git a/spacy/lang/tr/stop_words.py b/spacy/lang/tr/stop_words.py
index <HASH>..<HASH> 100644
--- a/spacy/lang/tr/stop_words.py
+++ b/spacy/lang/tr/stop_words.py
@@ -317,12 +317,8 @@ olduklarını
oldukça
olduğu
olduğunu
-olmadı
-olmadığı
olmak
olması
-olmayan
-olmaz
olsa
olsun
olup | removed some words with negation particle. | py |
diff --git a/airflow/providers/google/cloud/operators/kubernetes_engine.py b/airflow/providers/google/cloud/operators/kubernetes_engine.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/google/cloud/operators/kubernetes_engine.py
+++ b/airflow/providers/google/cloud/operators/kubernetes_engine.py
@@ -61,7 +61,7 @@... | Update ``GKEDeleteClusterOperator`, ``GKECreateClusterOperator`` docstrings (#<I>) updated misleading docstrings to use Kubernetes rather than Compute as this takes Kubernetes engine zone as location parameters | py |
diff --git a/dimod/core/bqm.py b/dimod/core/bqm.py
index <HASH>..<HASH> 100644
--- a/dimod/core/bqm.py
+++ b/dimod/core/bqm.py
@@ -16,18 +16,11 @@
import abc
import io
+from collections.abc import KeysView, Mapping, MutableMapping
from pprint import PrettyPrinter
-try:
- from collections.abc import KeysView, ... | Drop <I> support in dimod.core.bqm | py |
diff --git a/oidc_auth/authentication.py b/oidc_auth/authentication.py
index <HASH>..<HASH> 100644
--- a/oidc_auth/authentication.py
+++ b/oidc_auth/authentication.py
@@ -171,16 +171,13 @@ class JSONWebTokenAuthentication(BaseOidcAuthentication):
return auth[1]
@cache(ttl=api_settings.OIDC_JWKS_EXPIRATI... | Name it as it was before. jwks_data | py |
diff --git a/lib/ansiblelint/version.py b/lib/ansiblelint/version.py
index <HASH>..<HASH> 100644
--- a/lib/ansiblelint/version.py
+++ b/lib/ansiblelint/version.py
@@ -1 +1 @@
-__version__ = '3.0.0rc7'
+__version__ = '3.0.0rc8' | Update version to <I>rc8 | py |
diff --git a/models/rasmachine/gmail_client.py b/models/rasmachine/gmail_client.py
index <HASH>..<HASH> 100644
--- a/models/rasmachine/gmail_client.py
+++ b/models/rasmachine/gmail_client.py
@@ -39,10 +39,9 @@ def fetch_email(M, msg_id):
msg = email.message_from_bytes(raw_msg_txt)
except Attribute... | Fix misleading comments in gmail_client | py |
diff --git a/relationships/models.py b/relationships/models.py
index <HASH>..<HASH> 100644
--- a/relationships/models.py
+++ b/relationships/models.py
@@ -239,7 +239,7 @@ if django.VERSION < (1, 2):
)
return manager
-else:
+elif django.VERSION > (1, 2) and django.VERSION < (1, 4):
... | Make compatible with Django <I> | py |
diff --git a/setup_utils.py b/setup_utils.py
index <HASH>..<HASH> 100755
--- a/setup_utils.py
+++ b/setup_utils.py
@@ -51,6 +51,8 @@ try:
except (OSError, IOError):
git_version = '2.15.0'
else:
+ if isinstance(gitv, bytes):
+ gitv = gitv.decode('utf-8')
git_version = gitv.rstrip().split()[-1]
if ... | setup_utils.py: decode bytes for python3 | py |
diff --git a/statsd/__about__.py b/statsd/__about__.py
index <HASH>..<HASH> 100644
--- a/statsd/__about__.py
+++ b/statsd/__about__.py
@@ -1,5 +1,5 @@
__package_name__ = 'python-statsd'
-__version__ = '2.0.0'
+__version__ = '2.1.0'
__author__ = 'Rick van Hattem'
__author_email__ = 'Wolph@wol.ph'
__description__ = ( | Incrementing version to <I> | py |
diff --git a/yamllint/rules/quoted_strings.py b/yamllint/rules/quoted_strings.py
index <HASH>..<HASH> 100644
--- a/yamllint/rules/quoted_strings.py
+++ b/yamllint/rules/quoted_strings.py
@@ -121,7 +121,7 @@ used.
the following code snippet would **PASS**:
::
- foo: "bar\"baz"
+ foo: "bar\\"baz"
th... | quoted-strings: fix docs example | py |
diff --git a/see.py b/see.py
index <HASH>..<HASH> 100644
--- a/see.py
+++ b/see.py
@@ -230,4 +230,8 @@ SYMBOLS = tuple(filter(lambda x: x[0], (
(PY_300 and '__unicode__', 'unicode()'),
)))
+
+if __name__ == '__main__':
+ help(see)
+
# vim: expandtab tabstop=4 shiftround shiftwidth=4 fdm=marker | call help(see) if see.py is run as a script | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.