diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/amadeus/media/__init__.py b/amadeus/media/__init__.py
index <HASH>..<HASH> 100644
--- a/amadeus/media/__init__.py
+++ b/amadeus/media/__init__.py
@@ -1,3 +1,2 @@
-from ._files import GeneratedPhotos
__all__ = [] | remove import related to AI pic x2 | py |
diff --git a/lems/parser/LEMS.py b/lems/parser/LEMS.py
index <HASH>..<HASH> 100644
--- a/lems/parser/LEMS.py
+++ b/lems/parser/LEMS.py
@@ -271,11 +271,10 @@ class LEMSFileParser(LEMSBase):
if xml.ltag != 'lems' and xml.ltag != 'neuroml':
raise ParseError('<Lems> expected as root element (or even... | feat: enable parsing of model description | py |
diff --git a/torchtext/data/batch.py b/torchtext/data/batch.py
index <HASH>..<HASH> 100644
--- a/torchtext/data/batch.py
+++ b/torchtext/data/batch.py
@@ -56,6 +56,9 @@ class Batch(object):
self.batch_size, data_str, var_strs)
return '\n' + strt
+ def __len__... | add __len__ to Batch (#<I>) | py |
diff --git a/stanza/utils/charlm/conll17_to_text.py b/stanza/utils/charlm/conll17_to_text.py
index <HASH>..<HASH> 100644
--- a/stanza/utils/charlm/conll17_to_text.py
+++ b/stanza/utils/charlm/conll17_to_text.py
@@ -5,8 +5,14 @@ Part of the process for building a charlm dataset
python conll17_to_text.py <directory>
... | Add some docs on how to run this | py |
diff --git a/versions/util/postgresql.py b/versions/util/postgresql.py
index <HASH>..<HASH> 100644
--- a/versions/util/postgresql.py
+++ b/versions/util/postgresql.py
@@ -146,11 +146,12 @@ def create_current_version_unique_identity_indexes(app_name, database=None):
connection = database_connection(database)
w... | Do not try to create UNIQUE indexes on non-managed models | py |
diff --git a/myanimelist/anime.py b/myanimelist/anime.py
index <HASH>..<HASH> 100644
--- a/myanimelist/anime.py
+++ b/myanimelist/anime.py
@@ -119,7 +119,8 @@ class Anime(media.Media):
break
link_parts = producer_link.get('href').split('p=')
# of the form: /anime.php?p=14
- anime_inf... | only populate producers if any exist | py |
diff --git a/tests/test_constrained.py b/tests/test_constrained.py
index <HASH>..<HASH> 100644
--- a/tests/test_constrained.py
+++ b/tests/test_constrained.py
@@ -429,6 +429,19 @@ class TestSetObjective(unittest.TestCase):
cqm.set_objective(Integer('a') * 5)
self.assertTrue(cqm.objective.is_equal(Inte... | add test for set_objective from iterable | py |
diff --git a/dtool_azure/utils.py b/dtool_azure/utils.py
index <HASH>..<HASH> 100644
--- a/dtool_azure/utils.py
+++ b/dtool_azure/utils.py
@@ -3,7 +3,7 @@
import base64
import binascii
-from azure.storage.blob import BlockBlobService
+from azure.storage.common import CloudStorageAccount
from dtoolcore.utils impo... | Fixed problem arising from Azure API change | py |
diff --git a/astropy_helpers/sphinx/ext/tests/__init__.py b/astropy_helpers/sphinx/ext/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/sphinx/ext/tests/__init__.py
+++ b/astropy_helpers/sphinx/ext/tests/__init__.py
@@ -1,11 +1,11 @@
+import subprocess as sp
import sys
from textwrap import dedent... | Use a subprocess to compile the test Cython module rather than running it in the same process; otherwise Cython gets confused when you try to compile the same module of the same name more than once. This is fine here since it's not the actual build process that's being tested in these tests. | py |
diff --git a/attitude/display/test_hyperbolic_errors.py b/attitude/display/test_hyperbolic_errors.py
index <HASH>..<HASH> 100644
--- a/attitude/display/test_hyperbolic_errors.py
+++ b/attitude/display/test_hyperbolic_errors.py
@@ -6,7 +6,7 @@ expressions.
import numpy as N
from scipy.stats import chi2
-from .plot.c... | Broke out some things in PCA fitting routine | py |
diff --git a/secure_smtpd/smtp_channel.py b/secure_smtpd/smtp_channel.py
index <HASH>..<HASH> 100644
--- a/secure_smtpd/smtp_channel.py
+++ b/secure_smtpd/smtp_channel.py
@@ -34,7 +34,7 @@ class SMTPChannel(smtpd.SMTPChannel):
self.push('503 Duplicate HELO/EHLO')
else:
self.push('250-... | Make sure PLAIN authentication is advertised to clients | py |
diff --git a/tests/test_web_middleware.py b/tests/test_web_middleware.py
index <HASH>..<HASH> 100644
--- a/tests/test_web_middleware.py
+++ b/tests/test_web_middleware.py
@@ -380,11 +380,11 @@ class TestNormalizePathMiddleware:
app = web.Application(middlewares=[web.normalize_path_middleware(
ap... | Add existing URL, but check for redirect Location. | py |
diff --git a/master/buildbot/secrets/providers/vault.py b/master/buildbot/secrets/providers/vault.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/secrets/providers/vault.py
+++ b/master/buildbot/secrets/providers/vault.py
@@ -64,10 +64,14 @@ class HashiCorpVaultSecretProvider(SecretProviderBase):
"""
... | secrets: Add comment explaining confusion of the vault URL | py |
diff --git a/ryu/lib/packet/packet.py b/ryu/lib/packet/packet.py
index <HASH>..<HASH> 100644
--- a/ryu/lib/packet/packet.py
+++ b/ryu/lib/packet/packet.py
@@ -69,6 +69,9 @@ class Packet(StringifyMixin):
def _parser(self, cls):
rest_data = self.data
while cls:
+ # Ignores an empty buffe... | packet: Avoid parsing an empty buffer For example, the packet library detects the TCP payload type by using the TCP src/dst port, but in case of the BGP packet, the packet library will try to parse a TCP ACK packet as a BGP packet, and will fail to parse. This patch enables to ignore an empty buffer and fixes this pr... | py |
diff --git a/insanities/web/wsgi.py b/insanities/web/wsgi.py
index <HASH>..<HASH> 100644
--- a/insanities/web/wsgi.py
+++ b/insanities/web/wsgi.py
@@ -41,7 +41,7 @@ class WSGIHandler(object):
process_http_exception(rctx, e)
except Exception, e:
logger.exception(e)
- raise e... | Normal exceptions logging in WSGIHandler | py |
diff --git a/fleece/handlers/wsgi.py b/fleece/handlers/wsgi.py
index <HASH>..<HASH> 100644
--- a/fleece/handlers/wsgi.py
+++ b/fleece/handlers/wsgi.py
@@ -39,7 +39,7 @@ def wsgi_handler(event, context, app, logger):
resp = list(app(environ, start_response))
proxy = {'statusCode': int(wsgi_status[0].split()[0]... | Fix Lambda JSON serialization issue with python<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import find_packages, setup
setup(
name="crc-nd.utils", # Note the use of hyphen; setuptools would convert an underscore to hyphen automatically,
# which is co... | Initiated development on version <I> | py |
diff --git a/sovrin_node/test/upgrade/test_pool_upgrade.py b/sovrin_node/test/upgrade/test_pool_upgrade.py
index <HASH>..<HASH> 100644
--- a/sovrin_node/test/upgrade/test_pool_upgrade.py
+++ b/sovrin_node/test/upgrade/test_pool_upgrade.py
@@ -123,6 +123,7 @@ def testPrimaryNodeTriggersElectionBeforeUpgrading(upgradeSch... | Skipped failing tests, when ran with whole module (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
+import io
import re
from os.path import join, dirname
@@ -36,7 +37,7 @@ def md2pypi(filename):
- code-block direc... | Deal with non-ascii chars for readme and changelog | py |
diff --git a/instaloader/instaloadercontext.py b/instaloader/instaloadercontext.py
index <HASH>..<HASH> 100644
--- a/instaloader/instaloadercontext.py
+++ b/instaloader/instaloadercontext.py
@@ -358,6 +358,9 @@ class InstaloaderContext:
while resp.is_redirect:
redirect_url = resp.headers['... | handle alternate rate limit exceeded behavior of redirecting to login | py |
diff --git a/discord/http.py b/discord/http.py
index <HASH>..<HASH> 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -161,7 +161,7 @@ class HTTPClient:
yield from self.session.close()
def recreate(self):
- self.session = aiohttp.ClientSession(self.connector, loop=self.loop)
+ self.ses... | Fix HTTPClient.recreate to actually work. Forgot a keyword argument. | py |
diff --git a/scenarios/kubernetes_e2e.py b/scenarios/kubernetes_e2e.py
index <HASH>..<HASH> 100755
--- a/scenarios/kubernetes_e2e.py
+++ b/scenarios/kubernetes_e2e.py
@@ -112,7 +112,10 @@ class LocalMode(object):
@property
def runner(self):
"""Finds the best version of e2e-runner.sh."""
- opti... | Stable e2e-runner path (#<I>) | py |
diff --git a/account/models.py b/account/models.py
index <HASH>..<HASH> 100644
--- a/account/models.py
+++ b/account/models.py
@@ -102,6 +102,11 @@ def user_post_save(sender, **kwargs):
We only run on user creation to avoid having to check for existence on
each call to User.save.
"""
+
+ # Disable pos... | On post_save handler, disable treatment when raw=True (useful for manage.py loaddata) | py |
diff --git a/glue/ligolw/ligolw.py b/glue/ligolw/ligolw.py
index <HASH>..<HASH> 100644
--- a/glue/ligolw/ligolw.py
+++ b/glue/ligolw/ligolw.py
@@ -258,6 +258,7 @@ class LIGO_LW(Element):
"""
tagName = u"LIGO_LW"
validchildren = [u"LIGO_LW", u"Comment", u"Param", u"Table", u"Array", u"Stream", u"IGWDFrame", u"AdcD... | Add correct attributes to LIGO_LW element. | py |
diff --git a/xmantissa/test/test_website.py b/xmantissa/test/test_website.py
index <HASH>..<HASH> 100644
--- a/xmantissa/test/test_website.py
+++ b/xmantissa/test/test_website.py
@@ -632,7 +632,7 @@ class UnguardedWrapperTests(TestCase):
return result
self.store.inMemoryPowerUp(SiteRootPlugin(... | Fix pyflakes warnings. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,8 +22,8 @@ setup(
'neuropythy.registration',
'neuropythy.commands'],
package_data={'': ['LICENSE.txt',
- 'lib/nben/target/nben-standalone.jar',
- ... | package_data reflects new location of data files | py |
diff --git a/btrfs/test_btrfs.py b/btrfs/test_btrfs.py
index <HASH>..<HASH> 100644
--- a/btrfs/test_btrfs.py
+++ b/btrfs/test_btrfs.py
@@ -2,9 +2,13 @@
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
+# 3p
+from nose.plugins.attrib import attr
+
# project
from tests.checks.common impor... | [btrfs] this is a unix test, skip on appveyor. | py |
diff --git a/eventsourcing/examples/test_parking_lot.py b/eventsourcing/examples/test_parking_lot.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/examples/test_parking_lot.py
+++ b/eventsourcing/examples/test_parking_lot.py
@@ -84,7 +84,7 @@ class Vehicle(Aggregate):
return uuid5(NAMESPACE_URL, f"/licence_p... | Changed to use isinstance rather than specifying template type. | py |
diff --git a/src/transformers/models/auto/tokenization_auto.py b/src/transformers/models/auto/tokenization_auto.py
index <HASH>..<HASH> 100644
--- a/src/transformers/models/auto/tokenization_auto.py
+++ b/src/transformers/models/auto/tokenization_auto.py
@@ -369,7 +369,13 @@ class AutoTokenizer:
if tokeniz... | Better warning when loading a tokenizer with AutoTokenizer w/o SnetencePiece (#<I>) | py |
diff --git a/omego/external.py b/omego/external.py
index <HASH>..<HASH> 100644
--- a/omego/external.py
+++ b/omego/external.py
@@ -193,6 +193,8 @@ class External(object):
assert isinstance(command, list)
if not self.cli:
raise Exception('OMERO CLI not initialised')
+ log.info("Runn... | Additional logging for omero_cli command | py |
diff --git a/src/barbequeue/storage/backends/inmem.py b/src/barbequeue/storage/backends/inmem.py
index <HASH>..<HASH> 100644
--- a/src/barbequeue/storage/backends/inmem.py
+++ b/src/barbequeue/storage/backends/inmem.py
@@ -87,7 +87,7 @@ class StorageBackend(BaseBackend):
Mark the job as canceled. Does not actu... | use NotImplementedError, not NotImplemented latter is not an exception | py |
diff --git a/docs/example.py b/docs/example.py
index <HASH>..<HASH> 100644
--- a/docs/example.py
+++ b/docs/example.py
@@ -55,3 +55,5 @@ def validator(result):
def wrong():
count[1] += 1
return count[1]
+
+print(wrong()) | Fixed example so that it prints and calls | py |
diff --git a/watson_developer_cloud/conversation_v1.py b/watson_developer_cloud/conversation_v1.py
index <HASH>..<HASH> 100644
--- a/watson_developer_cloud/conversation_v1.py
+++ b/watson_developer_cloud/conversation_v1.py
@@ -35,6 +35,9 @@ class ConversationV1(WatsonDeveloperCloudService):
:param workspace_id... | :memo: add pydoc to the conversation service | py |
diff --git a/jet/urls.py b/jet/urls.py
index <HASH>..<HASH> 100644
--- a/jet/urls.py
+++ b/jet/urls.py
@@ -34,7 +34,6 @@ urlpatterns = [
url(
r'^jsi18n/$',
jsc_view,
- {'packages': ('django.conf', 'django.contrib.admin', 'jet',)},
name='jsi18n'
),
] | Don’t need packages as Django takes self.packages | py |
diff --git a/wal_e/tar_partition.py b/wal_e/tar_partition.py
index <HASH>..<HASH> 100644
--- a/wal_e/tar_partition.py
+++ b/wal_e/tar_partition.py
@@ -68,6 +68,15 @@ class StreamPadFileObj(object):
self.pos += lenret
return ret + '\0' * (max_readable - lenret)
+ def close(self):
+ return s... | Fix growing-file handling with mbuffer Introduce a context manager interface for StreamPadFileObj in passing while doing this, but the real fix is to close the stream before calling process.wait(). The opposite order is incorrect. | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -13,7 +13,7 @@ def minion_config(path):
Reads in the minion configuration file and sets up special options
'''
opts = {'master': 'mcp',
- 'master_port': '7777',
+ 'm... | I went out and found some good ports to use, ones that use my lucky number <I> :) | py |
diff --git a/tests/test_main.py b/tests/test_main.py
index <HASH>..<HASH> 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -6,12 +6,12 @@ from datetime import datetime
import pytest
-from mutmut import mutate, Context
from mutmut.__main__ import main, python_source_files, popen_streaming_output
from c... | Skipped test that does not work on travis | py |
diff --git a/qcore/enum.py b/qcore/enum.py
index <HASH>..<HASH> 100644
--- a/qcore/enum.py
+++ b/qcore/enum.py
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import unicode_literals
__doc__ = """
Enum implementation.
@@ -... | enum: make names unicode These names are text, so they should be unicode, not bytes. | py |
diff --git a/fcn/trainer.py b/fcn/trainer.py
index <HASH>..<HASH> 100644
--- a/fcn/trainer.py
+++ b/fcn/trainer.py
@@ -3,6 +3,7 @@ import copy
import os
import os.path as osp
import time
+import warnings
import chainer
import numpy as np
@@ -52,6 +53,9 @@ class Trainer(object):
out,
max... | fcn.Trainer is deprecated | py |
diff --git a/tests/CLI/modules/server_tests.py b/tests/CLI/modules/server_tests.py
index <HASH>..<HASH> 100644
--- a/tests/CLI/modules/server_tests.py
+++ b/tests/CLI/modules/server_tests.py
@@ -454,3 +454,11 @@ class ServerCLITests(testing.TestCase):
self.assert_no_fail(result)
self.assertEqual(resul... | <I>% coverage on CLI:hardware:power | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ setup(
packages=find_packages(),
long_description=read('README.rst'),
install_requires=[
- 'PyJWT>=1.0.1,<2.0.0',
+ 'PyJWT>=1.0.1',
'oauthlib',
'requests',
... | unpin pyjwt pyjwt is pinned to <<I>, preventing installation of current pyjwt The current use of pyjwt appears to works just fine on pyjwt 2 | py |
diff --git a/tests/database/test_chaindb.py b/tests/database/test_chaindb.py
index <HASH>..<HASH> 100644
--- a/tests/database/test_chaindb.py
+++ b/tests/database/test_chaindb.py
@@ -15,7 +15,6 @@ from evm.utils.numeric import (
big_endian_to_int,
)
from evm.utils.state_access_restriction import (
- get_nonce... | Remove get_nonce_key in sharding (#<I>) | py |
diff --git a/HMpTy/__version__.py b/HMpTy/__version__.py
index <HASH>..<HASH> 100644
--- a/HMpTy/__version__.py
+++ b/HMpTy/__version__.py
@@ -1 +1 @@
-__version__ = '1.3.8'
+__version__ = '1.3.9' | bug fix for python 3 - htmid were being rendered as unicode not ints | py |
diff --git a/python/phonenumbers/phonemetadata.py b/python/phonenumbers/phonemetadata.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/phonemetadata.py
+++ b/python/phonenumbers/phonemetadata.py
@@ -402,6 +402,7 @@ class PhoneMetadata(object):
result += ",\n voip=%s" % self.voip
result += "... | Include emergency PhoneNumberDesc in metadata self-serialization output | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@ setup(
'humanize==0.5.1',
'gunicorn==19.7.1',
'markdown==2.6.8',
- 'pandas==0.19.2',
+ 'pandas==0.20.2',
'parsedatetime==2.0.0',
'pydruid==0.3.1',
... | [hotfix] bumping pandas version to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -68,7 +68,7 @@ setup(
author_email='eamonn.maguire@cern.ch',
description=__doc__,
keywords='hepdata validator',
- package_data={'hepdata_validator': ["schemas/*.json"]},
+ package_data={'hepdata_validator'... | Ensure schema files from new location are included in pip package | py |
diff --git a/sigal/image.py b/sigal/image.py
index <HASH>..<HASH> 100644
--- a/sigal/image.py
+++ b/sigal/image.py
@@ -137,7 +137,7 @@ def _get_exif_data(filename):
def _get_degrees(v):
d = float(v[0][0]) / float(v[0][1])
m = float(v[1][0]) / float(v[1][1])
- s = float(v[2][0]) / float(v[1][1])
+ s = f... | Fix error in calculating the degrees from exif data | py |
diff --git a/synapse/tests/test_cortex.py b/synapse/tests/test_cortex.py
index <HASH>..<HASH> 100644
--- a/synapse/tests/test_cortex.py
+++ b/synapse/tests/test_cortex.py
@@ -3558,6 +3558,11 @@ class CortexTest(SynTest):
'valu': 'vertex.link',
'tag': 'hehe',
})... | Missed ival:del | py |
diff --git a/tests/test_scalars.py b/tests/test_scalars.py
index <HASH>..<HASH> 100644
--- a/tests/test_scalars.py
+++ b/tests/test_scalars.py
@@ -59,6 +59,12 @@ def test_custom_scalar_parse_literal():
assert result.errors is None
assert result.data == {"test": True}
+ failed_result = graphql(schema, "{ ... | Bump coverage to test invalid literal type | py |
diff --git a/rootpy/io/file.py b/rootpy/io/file.py
index <HASH>..<HASH> 100644
--- a/rootpy/io/file.py
+++ b/rootpy/io/file.py
@@ -629,6 +629,7 @@ class Directory(_DirectoryBase, QROOT.TDirectoryFile):
title = name
# grab previous directory before creating self
self._prev_dir = ROOT.gDire... | Directory: set _parent with parent argument if not None | py |
diff --git a/billy/importers/utils.py b/billy/importers/utils.py
index <HASH>..<HASH> 100644
--- a/billy/importers/utils.py
+++ b/billy/importers/utils.py
@@ -335,15 +335,16 @@ def merge_legislators(leg1, leg2):
# old_roles & roles!! There's a potenital for data loss, but it's
# not that big... | Updating the merge strategy to not fail on retired legs | py |
diff --git a/resolwe/storage/connectors/s3connector.py b/resolwe/storage/connectors/s3connector.py
index <HASH>..<HASH> 100644
--- a/resolwe/storage/connectors/s3connector.py
+++ b/resolwe/storage/connectors/s3connector.py
@@ -55,7 +55,6 @@ class AwsS3Connector(BaseStorageConnector):
settings = json.lo... | Remove unused session token from s3 credentials | py |
diff --git a/examples/basic_voice.py b/examples/basic_voice.py
index <HASH>..<HASH> 100644
--- a/examples/basic_voice.py
+++ b/examples/basic_voice.py
@@ -101,7 +101,7 @@ class Music(commands.Cog):
if ctx.voice_client is None:
return await ctx.send("Not connected to a voice channel.")
- c... | Fix volume command in basic voice example source.volume takes floating point percentages, e.g. <I> for <I>% | py |
diff --git a/indra/assemblers/pybel/assembler.py b/indra/assemblers/pybel/assembler.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/pybel/assembler.py
+++ b/indra/assemblers/pybel/assembler.py
@@ -382,6 +382,13 @@ def belgraph_to_signed_graph(
belgraph, include_variants=True, symmetric_variant_links=Fals... | Propagate ns to pybel signed gr, 1st for complex | py |
diff --git a/charmhelpers/contrib/openstack/utils.py b/charmhelpers/contrib/openstack/utils.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/openstack/utils.py
+++ b/charmhelpers/contrib/openstack/utils.py
@@ -153,7 +153,7 @@ SWIFT_CODENAMES = OrderedDict([
('newton',
['2.8.0', '2.9.0', '2.10.0']... | Add <I> to swift list of releases for ocata | py |
diff --git a/graphviz/backend/dot_command.py b/graphviz/backend/dot_command.py
index <HASH>..<HASH> 100644
--- a/graphviz/backend/dot_command.py
+++ b/graphviz/backend/dot_command.py
@@ -17,7 +17,11 @@ def command(engine: str, format_: str, *,
renderer: typing.Optional[str] = None,
formatter: ... | add upstream command line flag pointers | py |
diff --git a/test/crud_tests.py b/test/crud_tests.py
index <HASH>..<HASH> 100644
--- a/test/crud_tests.py
+++ b/test/crud_tests.py
@@ -25,14 +25,6 @@ from __builtin__ import *
TEST_DB_NAME = 'sample database'
-masterKey = '[YOUR_KEY_HERE]'
-host = '[YOUR_ENDPOINT_HERE]'
-
-if masterKey == '[YOUR_KEY_HERE]' or host... | Moved check for `masterKey` and `host` into `CRUDTests.setupClass` | py |
diff --git a/tofu/tests/tests04_spectro/test_01_fit12d.py b/tofu/tests/tests04_spectro/test_01_fit12d.py
index <HASH>..<HASH> 100644
--- a/tofu/tests/tests04_spectro/test_01_fit12d.py
+++ b/tofu/tests/tests04_spectro/test_01_fit12d.py
@@ -926,7 +926,7 @@ def get_constraints(
# tol
if tol is None:
- t... | [#<I>] Limited tol to 1e-2 for unit tests | py |
diff --git a/src/SALib/sample/morris/__init__.py b/src/SALib/sample/morris/__init__.py
index <HASH>..<HASH> 100644
--- a/src/SALib/sample/morris/__init__.py
+++ b/src/SALib/sample/morris/__init__.py
@@ -1 +1 @@
-from .morris import sample
\ No newline at end of file
+from .morris import sample | Included new line at the end of the file | py |
diff --git a/green/runner.py b/green/runner.py
index <HASH>..<HASH> 100644
--- a/green/runner.py
+++ b/green/runner.py
@@ -28,23 +28,28 @@ class InitializerOrFinalizer:
appropriate time.
"""
def __init__(self, dotted_function):
- self.dotted_function = dotted_function
+ self.module_part = '... | Try loading the module part and then getting the function part | py |
diff --git a/pyang/grammar.py b/pyang/grammar.py
index <HASH>..<HASH> 100644
--- a/pyang/grammar.py
+++ b/pyang/grammar.py
@@ -137,10 +137,14 @@ stmt_map = {
'import':
('identifier',
[('prefix', '1'),
- ('revision-date', '?')]),
+ ('revision-date', '?'),
+ ('$1.1', ('d... | allow reference/description in import and include | py |
diff --git a/caravel/data/__init__.py b/caravel/data/__init__.py
index <HASH>..<HASH> 100644
--- a/caravel/data/__init__.py
+++ b/caravel/data/__init__.py
@@ -1065,7 +1065,6 @@ def load_multiformat_time_series_data():
'string3': ['%Y/%m/%d%H:%M:%S.%f', None],
}
for col in obj.table_columns:
- ... | fix small issue of dttm PR (#<I>) | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -91,8 +91,7 @@ def get_configuration(name):
host_config['supportsZippedBackups'] = True
if 'gitRootFolder' not in host_config:
host_config['gitRootFolder'] = host_config['rootFolder']
- if 'suppor... | remove option supportsEnvVars, usage of env-vars for drush-output and disable prefixing of drush-commands | py |
diff --git a/vyper/old_codegen/function_definitions/internal_function.py b/vyper/old_codegen/function_definitions/internal_function.py
index <HASH>..<HASH> 100644
--- a/vyper/old_codegen/function_definitions/internal_function.py
+++ b/vyper/old_codegen/function_definitions/internal_function.py
@@ -55,7 +55,7 @@ def gen... | fix nonreentrancy codegen for private functions we should probably deprecate nonreentrant keys on private functions but in the meantime keep them working | py |
diff --git a/datatableview/views.py b/datatableview/views.py
index <HASH>..<HASH> 100644
--- a/datatableview/views.py
+++ b/datatableview/views.py
@@ -388,6 +388,7 @@ class DatatableMixin(MultipleObjectMixin):
kwargs['default_value'] = self._get_column_data_default(instance, name)[1]
excep... | Add "field_name" kwarg to column callbacks | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup(
name='lightwave',
- version='0.15',
+ version='0.16',
description='Python library to provide a realiable communication link with LightWaveRF ... | Update version number for publishing on PyPi. | py |
diff --git a/lib/ansiblelint/utils.py b/lib/ansiblelint/utils.py
index <HASH>..<HASH> 100644
--- a/lib/ansiblelint/utils.py
+++ b/lib/ansiblelint/utils.py
@@ -24,7 +24,15 @@ import os
import ansible.constants as C
from ansible.errors import AnsibleError
-from ansible.module_utils.splitter import split_args
+
+try:
... | Import split_args from ansible.parsing This seems to be the new version of the function, which is tested and compatible with Python 3. | py |
diff --git a/src/manhole.py b/src/manhole.py
index <HASH>..<HASH> 100644
--- a/src/manhole.py
+++ b/src/manhole.py
@@ -126,6 +126,7 @@ class ManholeConnection(threading.Thread):
self.sigmask = sigmask
def run(self):
+ cry('Started ManholeConnection thread. Checking credentials ...')
if s... | Print a message when connection thread is started. Mainly for debugging purpose. | py |
diff --git a/openquake/engine/celery_node_monitor.py b/openquake/engine/celery_node_monitor.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/celery_node_monitor.py
+++ b/openquake/engine/celery_node_monitor.py
@@ -93,11 +93,21 @@ class CeleryNodeMonitor(object):
Check that the expected celery nodes are al... | Made more responsive the check_nodes thread Former-commit-id: <I>e<I>e8ae5ff<I>f<I>e<I>b<I>e | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -21,6 +21,9 @@
from setuptools import find_packages
from setuptools import setup
+with open("README.rst", "r") as readme:
+ long_description = readme.read()
+
setup(
name='zake',
version='0.1',
@@ -49,5 +52,5... | Ensure file handle is closed using with statement | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ with open('README.rst') as f:
setup(
name='uber_rides',
- version='0.1.0',
+ version='0.1.1',
packages=find_packages(),
description='Official Uber Rides API Python SDK',
long_descrip... | README changed from .md to .rst for PyPi format. (<I>) | py |
diff --git a/examples/run_async.py b/examples/run_async.py
index <HASH>..<HASH> 100644
--- a/examples/run_async.py
+++ b/examples/run_async.py
@@ -1,5 +1,5 @@
from sanic import Sanic
-from sanic.response import json
+from sanic import response
from multiprocessing import Event
from signal import signal, SIGINT
impo... | Update run_async demo | py |
diff --git a/watchdog/briefkasten_watchdog/__init__.py b/watchdog/briefkasten_watchdog/__init__.py
index <HASH>..<HASH> 100644
--- a/watchdog/briefkasten_watchdog/__init__.py
+++ b/watchdog/briefkasten_watchdog/__init__.py
@@ -11,7 +11,7 @@ from pyquery import PyQuery
import ConfigParser as ConfigParser_
-find_dro... | adjust watchdog to new subject naming otherwise it won't find the test submissions | py |
diff --git a/jtsbq/table.py b/jtsbq/table.py
index <HASH>..<HASH> 100644
--- a/jtsbq/table.py
+++ b/jtsbq/table.py
@@ -42,18 +42,30 @@ class Table(object):
@property
def service(self):
+ """Return BigQuery service instance.
+ """
+
return self.__service
@property
def proje... | added docstrings, cleaned up | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ setup(
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_ver... | Beta 4 release - with the new restructured API | py |
diff --git a/doge/core.py b/doge/core.py
index <HASH>..<HASH> 100755
--- a/doge/core.py
+++ b/doge/core.py
@@ -241,7 +241,9 @@ class Doge(object):
def print_doge(self):
for line in self.lines:
- sys.stdout.write(line.encode('utf8'))
+ if sys.version_info < (3, 0):
+ ... | wow python3 fix after windoze patch | py |
diff --git a/bin/import_cv2.py b/bin/import_cv2.py
index <HASH>..<HASH> 100755
--- a/bin/import_cv2.py
+++ b/bin/import_cv2.py
@@ -71,6 +71,7 @@ def _maybe_convert_set(input_tsv, audio_dir, label_filter, space_after_every_cha
wav_filename = path.splitext(mp3_filename)[0] + ".wav"
_maybe_convert_wav(mp... | Ensure frames counter is initialized Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ class PyTest(TestCommand):
setup(
name='graphene',
- version='0.6.0',
+ version='0.6.1',
description='GraphQL Framework for Python',
long_description=open('README.rst').read(), | Updated version of graphene to <I> | py |
diff --git a/kerncraft/models/layer_condition.py b/kerncraft/models/layer_condition.py
index <HASH>..<HASH> 100755
--- a/kerncraft/models/layer_condition.py
+++ b/kerncraft/models/layer_condition.py
@@ -164,8 +164,8 @@ class LC(object):
#if m.is_Function:
# raise ValueError("Could n... | Fixed single elements in 2D LC | py |
diff --git a/tests/test_pkey.py b/tests/test_pkey.py
index <HASH>..<HASH> 100644
--- a/tests/test_pkey.py
+++ b/tests/test_pkey.py
@@ -567,6 +567,28 @@ class KeyTest(unittest.TestCase):
)
assert original != generated
+ def keys(self):
+ for key_class, filename in [
+ (RSAKey, "t... | Enhance tests of existing/general key cmp/hash behavior Not sure why these were never explicitly tested | py |
diff --git a/pyemma/msm/analysis/dense/pcca.py b/pyemma/msm/analysis/dense/pcca.py
index <HASH>..<HASH> 100644
--- a/pyemma/msm/analysis/dense/pcca.py
+++ b/pyemma/msm/analysis/dense/pcca.py
@@ -435,7 +435,7 @@ def coarsegrain(P, n):
\tilde{P} = M^T P M (M^T M)^{-1}
See [2]_ for the derivation of this f... | PCCA coarse-graining: completed citations | py |
diff --git a/puz.py b/puz.py
index <HASH>..<HASH> 100644
--- a/puz.py
+++ b/puz.py
@@ -418,7 +418,7 @@ class DefaultClueNumbering:
return index % self.width
def row(self, index):
- return math.floor(index / self.width)
+ return int(math.floor(index / self.width))
def len_across(self... | Make sure row method always returns an integer | py |
diff --git a/ccmlib/repository.py b/ccmlib/repository.py
index <HASH>..<HASH> 100644
--- a/ccmlib/repository.py
+++ b/ccmlib/repository.py
@@ -264,7 +264,7 @@ def download_opscenter_version(version, target_version, verbose=False):
__download(url, target, show_progress=verbose)
common.info("Extracting ... | Addendum #<I> (commit <I>a<I>), next can not be called on a TarFile object (#<I>) | py |
diff --git a/keanu-python/keanu/vertex.py b/keanu-python/keanu/vertex.py
index <HASH>..<HASH> 100644
--- a/keanu-python/keanu/vertex.py
+++ b/keanu-python/keanu/vertex.py
@@ -3,6 +3,7 @@ import numbers
from keanu.context import KeanuContext
from keanu.base import JavaObjectWrapper
+from keanu.const import Const
... | No longer a cyclic dependency, move import to top | py |
diff --git a/pgpy/constants.py b/pgpy/constants.py
index <HASH>..<HASH> 100644
--- a/pgpy/constants.py
+++ b/pgpy/constants.py
@@ -249,7 +249,8 @@ class PubKeyAlgorithm(IntEnum):
#: Signifies that a key is an ECDSA key.
ECDSA = 0x13
FormerlyElGamalEncryptOrSign = 0x14 # deprecated - do not generate
- ... | Don't raise when encountering an unknown key. Fixes #<I> (partly). | py |
diff --git a/livereload/middleware.py b/livereload/middleware.py
index <HASH>..<HASH> 100644
--- a/livereload/middleware.py
+++ b/livereload/middleware.py
@@ -12,9 +12,9 @@ class LiveReloadScript(object):
"""
def process_response(self, request, response):
- if (not response.status_code == 200 or
- ... | fixing <I> error with middleware when trying to serve static asset. | py |
diff --git a/pybliometrics/scopus/superclasses/base.py b/pybliometrics/scopus/superclasses/base.py
index <HASH>..<HASH> 100644
--- a/pybliometrics/scopus/superclasses/base.py
+++ b/pybliometrics/scopus/superclasses/base.py
@@ -46,6 +46,7 @@ class Base:
# Read or download, possibly with caching
fname... | Fix timestamp (close #<I>) | py |
diff --git a/pyvista/utilities/geometric_objects.py b/pyvista/utilities/geometric_objects.py
index <HASH>..<HASH> 100644
--- a/pyvista/utilities/geometric_objects.py
+++ b/pyvista/utilities/geometric_objects.py
@@ -153,7 +153,7 @@ def CylinderStructured(radius=0.5, height=1.0,
# Make all the nodes in the grid
... | CylinderStructured length fix (#<I>) The structured grid generated was shorter than the length argument. | py |
diff --git a/src/openaccess_epub/navigation/__init__.py b/src/openaccess_epub/navigation/__init__.py
index <HASH>..<HASH> 100644
--- a/src/openaccess_epub/navigation/__init__.py
+++ b/src/openaccess_epub/navigation/__init__.py
@@ -133,7 +133,7 @@ without a publisher!''')
for child in src_element:
... | removed old comment from xml.dom.minidom that was misleading | py |
diff --git a/proton-c/bindings/python/proton/__init__.py b/proton-c/bindings/python/proton/__init__.py
index <HASH>..<HASH> 100644
--- a/proton-c/bindings/python/proton/__init__.py
+++ b/proton-c/bindings/python/proton/__init__.py
@@ -1134,13 +1134,13 @@ The group-id for any replies.
if link.is_sender: return None... | NO-JIRA: Python: keep received encoded bytes in the delivery | py |
diff --git a/resolwe/flow/executors/docker/prepare.py b/resolwe/flow/executors/docker/prepare.py
index <HASH>..<HASH> 100644
--- a/resolwe/flow/executors/docker/prepare.py
+++ b/resolwe/flow/executors/docker/prepare.py
@@ -42,12 +42,12 @@ class FlowExecutorPreparer(BaseFlowExecutorPreparer):
for connector ... | Return inputs volume in resolve_data_path if data is None instead of raising exception | py |
diff --git a/pysis/__init__.py b/pysis/__init__.py
index <HASH>..<HASH> 100644
--- a/pysis/__init__.py
+++ b/pysis/__init__.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
-import os
+import os, sys
ISIS_ROOT = os.environ.get('ISISROOT')
if ISIS_ROOT is None:
- print 'Warning! ISISROOT is not defined. Bitch.'
+ s... | Write warning to std err instead. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -52,7 +52,7 @@ test_requirements = [
if sys.version_info < (2, 7) or (
sys.version_info >= (3, 0) and sys.version_info < (3, 1)):
# Require unittest2 for Python which doesn't contain the new unittest
- # modu... | Bumped to <I> in preparation for next release. | py |
diff --git a/ntfy/backends/pushover.py b/ntfy/backends/pushover.py
index <HASH>..<HASH> 100644
--- a/ntfy/backends/pushover.py
+++ b/ntfy/backends/pushover.py
@@ -109,7 +109,7 @@ def notify(title,
if resp.status_code == 429:
print ("ntfy's default api_token has reached pushover's rate limit")
- p... | link to pushover clone URL instead of apps/build. closes #<I> | py |
diff --git a/mixture_smoothing.py b/mixture_smoothing.py
index <HASH>..<HASH> 100644
--- a/mixture_smoothing.py
+++ b/mixture_smoothing.py
@@ -144,7 +144,9 @@ class NP_Mixture_Smoother(object):
mix_den = mix_p.sum(axis=1)
obs_id = mix_den > 1.E-13
for i in range(self.k):
- mix_p[:,... | fixing the zero division bug in mixture_smoothing.py | py |
diff --git a/fabric/config.py b/fabric/config.py
index <HASH>..<HASH> 100644
--- a/fabric/config.py
+++ b/fabric/config.py
@@ -38,6 +38,35 @@ class Config(InvokeConfig):
prefix = "fabric"
+ @classmethod
+ def from_v1(cls, env=None, **kwargs):
+ """
+ Alternate constructor which uses Fabric ... | Not a fan of copypasta but it all fits... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ setup(
include_package_data=True,
install_requires=[
'blockstack-client>=0.14.0',
- 'python-gnupg>=0.3.9'
+ 'gnupg>=2.2.0'
],
classifiers=[
'Intended Audience ... | switch to alternative, better-maintained Python/GPG interface library | py |
diff --git a/tensor2tensor/trax/optimizers/base.py b/tensor2tensor/trax/optimizers/base.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/trax/optimizers/base.py
+++ b/tensor2tensor/trax/optimizers/base.py
@@ -167,7 +167,7 @@ class SGD(Optimizer):
class Momentum(Optimizer):
- """Nestrov momentum optimizer."""
+ ... | Fix typo in docstring. PiperOrigin-RevId: <I> | py |
diff --git a/graphene/__init__.py b/graphene/__init__.py
index <HASH>..<HASH> 100644
--- a/graphene/__init__.py
+++ b/graphene/__init__.py
@@ -10,7 +10,7 @@ except NameError:
__SETUP__ = False
-VERSION = (1, 4, 1, 'final', 0)
+VERSION = (2, 0, 0, 'alpha', 0)
__version__ = get_version(VERSION) | Changed version to <I>.dev | py |
diff --git a/src/rinoh/attribute.py b/src/rinoh/attribute.py
index <HASH>..<HASH> 100644
--- a/src/rinoh/attribute.py
+++ b/src/rinoh/attribute.py
@@ -99,8 +99,10 @@ class OptionSetMeta(type):
return super().__new__(cls, classname, bases, cls_dict)
def __getattr__(cls, item):
+ if item == 'NONE' ... | OptionSet: handle the NONE attribute Also: make sure the attribute name is uppercase. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.