diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/elasticsearch/client/cluster.py b/elasticsearch/client/cluster.py
index <HASH>..<HASH> 100644
--- a/elasticsearch/client/cluster.py
+++ b/elasticsearch/client/cluster.py
@@ -58,13 +58,15 @@ class ClusterClient(NamespacedClient):
_, data = self.transport.perform_request('POST', '/_cluster/reroute',... | Updated cluster.get_settings api | py |
diff --git a/pyradio/player.py b/pyradio/player.py
index <HASH>..<HASH> 100644
--- a/pyradio/player.py
+++ b/pyradio/player.py
@@ -102,9 +102,9 @@ class MpvPlayer(Player):
def _buildStartOpts(self, streamUrl, playList=False):
""" Builds the options to pass to subprocess."""
if playList:
- ... | These are audio only anyway. Supress outputs. MPV support works now besides the stdin commands dont seem to work with MPV for some reason! | py |
diff --git a/graphsrv/application.py b/graphsrv/application.py
index <HASH>..<HASH> 100644
--- a/graphsrv/application.py
+++ b/graphsrv/application.py
@@ -154,7 +154,7 @@ class GraphServ(vodka.app.WebApplication):
if sources:
col["graph"]["source"] = sources.pop(0)
... | fix overview graph ids as to not break graphs in safari | 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
@@ -174,6 +174,10 @@ class ClassicalCalculator(base.HazardCalculator):
:param acc: accumulator dictionary
:... | Improved error message when dic is None | py |
diff --git a/seglearn/transform.py b/seglearn/transform.py
index <HASH>..<HASH> 100644
--- a/seglearn/transform.py
+++ b/seglearn/transform.py
@@ -794,7 +794,7 @@ class FeatureRep(BaseEstimator, TransformerMixin):
>>> y = data['y']
>>> fts = {'mean': mean, 'var': var, 'std': std, 'skew': skew}
>>> clf = ... | transform: Fix typo in FeatureRep example | py |
diff --git a/algorithms/lis.py b/algorithms/lis.py
index <HASH>..<HASH> 100755
--- a/algorithms/lis.py
+++ b/algorithms/lis.py
@@ -89,9 +89,11 @@ def backtracking(a, L, bestsofar):
def heaviest_increasing_subsequence(a, debug=False):
"""
- Returns the heaviest increasing subsequence for array a
+ Returns ... | doctest heaviest_increasing_subsequence | py |
diff --git a/doctr/travis.py b/doctr/travis.py
index <HASH>..<HASH> 100644
--- a/doctr/travis.py
+++ b/doctr/travis.py
@@ -95,7 +95,7 @@ def run_command_hiding_token(args, token, shell=False):
else:
command = args
command = command.replace(token.decode('utf-8'), '~'*len(token))
- print("Doctr, run... | Print the command in blue, instead of "Doctr, running command:" | py |
diff --git a/setuptools/tests/test_virtualenv.py b/setuptools/tests/test_virtualenv.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_virtualenv.py
+++ b/setuptools/tests/test_virtualenv.py
@@ -45,7 +45,8 @@ def test_clean_env_install(bare_virtualenv, tmp_src):
"""
Check setuptools can be installed i... | Fix usage of virtualenv to ensure that tests are run in the bare virtualenv. Ref #<I>. | py |
diff --git a/pythainlp/tokenize/dictsegment.py b/pythainlp/tokenize/dictsegment.py
index <HASH>..<HASH> 100644
--- a/pythainlp/tokenize/dictsegment.py
+++ b/pythainlp/tokenize/dictsegment.py
@@ -8,7 +8,7 @@ def segment(string):
# Sort wset in decreasing string order
lines.sort(key=len, reverse=True)
resu... | fix bug in dictsegment | py |
diff --git a/validator/sawtooth_validator/gossip/signature_verifier.py b/validator/sawtooth_validator/gossip/signature_verifier.py
index <HASH>..<HASH> 100644
--- a/validator/sawtooth_validator/gossip/signature_verifier.py
+++ b/validator/sawtooth_validator/gossip/signature_verifier.py
@@ -66,6 +66,10 @@ def validate_b... | Add logging statements to signature verifier | py |
diff --git a/reportportal_client/service.py b/reportportal_client/service.py
index <HASH>..<HASH> 100644
--- a/reportportal_client/service.py
+++ b/reportportal_client/service.py
@@ -463,12 +463,7 @@ class ReportPortalService(object):
data["itemUuid"] = item_id
if attachment:
data["at... | Always use log_batch for logging messages (#<I>) | py |
diff --git a/validator/journal/consensus/poet0/poet_journal.py b/validator/journal/consensus/poet0/poet_journal.py
index <HASH>..<HASH> 100644
--- a/validator/journal/consensus/poet0/poet_journal.py
+++ b/validator/journal/consensus/poet0/poet_journal.py
@@ -38,13 +38,22 @@ class PoetJournal(journal_core.Journal):
... | Pass parameters to journal but still passing kwargs to poet_enclave | py |
diff --git a/uncompyle6/parsers/parse2.py b/uncompyle6/parsers/parse2.py
index <HASH>..<HASH> 100644
--- a/uncompyle6/parsers/parse2.py
+++ b/uncompyle6/parsers/parse2.py
@@ -109,6 +109,7 @@ class Python2Parser(PythonParser):
buildclass ::= LOAD_CONST expr mkfunc
CALL_FUNCTION_0 BUILD_CLA... | Sync up some <I>-branch changes | py |
diff --git a/acceptancetests/deploy_stack.py b/acceptancetests/deploy_stack.py
index <HASH>..<HASH> 100644
--- a/acceptancetests/deploy_stack.py
+++ b/acceptancetests/deploy_stack.py
@@ -156,7 +156,7 @@ def deploy_caas_stack(path, client, timeout=3600, charm=False):
# Wait for the deployment to finish.
client... | Wait for the workload to settle The following increases the timeout of the deploy stack. | py |
diff --git a/openprovider/tests/test_domain.py b/openprovider/tests/test_domain.py
index <HASH>..<HASH> 100644
--- a/openprovider/tests/test_domain.py
+++ b/openprovider/tests/test_domain.py
@@ -15,7 +15,9 @@ class DomainTestCase(ApiTestCase):
try:
secundary_api = api_factory('test_secundary')
... | Properly skip transfer test if needed | py |
diff --git a/seqfile/__init__.py b/seqfile/__init__.py
index <HASH>..<HASH> 100644
--- a/seqfile/__init__.py
+++ b/seqfile/__init__.py
@@ -1,3 +1,3 @@
-from seqfile import findNextFile
+from .seqfile import findNextFile
__all__ = [ 'findNextFile' ] | Move to relative imports for Python3. | py |
diff --git a/blitzdb/backends/sql/backend.py b/blitzdb/backends/sql/backend.py
index <HASH>..<HASH> 100644
--- a/blitzdb/backends/sql/backend.py
+++ b/blitzdb/backends/sql/backend.py
@@ -1032,9 +1032,9 @@ class Backend(BaseBackend):
result = self.filter(cls_or_collection,query,raw = raw,only = only,include =... | More efficient get operator in SQL backend (use LIMIT to get only one result) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,16 +45,6 @@ with open(os.path.join(package_name, "_version.py")) as fp:
exec(fp.read(), None, _locals)
version = _locals["__version__"]
-# Frankenstein long_description: changelog note + README
-long_description = ... | Forgot about the frankenstein readme | py |
diff --git a/dock/inner.py b/dock/inner.py
index <HASH>..<HASH> 100644
--- a/dock/inner.py
+++ b/dock/inner.py
@@ -171,4 +171,6 @@ def build_inside(input, input_args=None):
raise RuntimeError("No valid build json!")
# TODO: validate json
dbw = DockerBuildWorkflow(**build_json)
- dbw.build_docker_i... | inner: if no image is built, raise exc | py |
diff --git a/py/examples/scripts/ChicagoCrimeDemo.py b/py/examples/scripts/ChicagoCrimeDemo.py
index <HASH>..<HASH> 100644
--- a/py/examples/scripts/ChicagoCrimeDemo.py
+++ b/py/examples/scripts/ChicagoCrimeDemo.py
@@ -229,6 +229,6 @@ for i in crime_examples:
""")
# stop H2O and Spark services
-h2o.shutdown... | [SW-<I>] Replace deprecated method call in ChicagoCrime python example | py |
diff --git a/pypot/dynamixel/controller.py b/pypot/dynamixel/controller.py
index <HASH>..<HASH> 100644
--- a/pypot/dynamixel/controller.py
+++ b/pypot/dynamixel/controller.py
@@ -67,7 +67,7 @@ class DxlController(MotorsController):
ids = [m.id for m in motors]
getter = getattr(self.io, 'get_{}'.format... | Make sure getter is always called with a list. | py |
diff --git a/lib/stsci/imagestats/__init__.py b/lib/stsci/imagestats/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/stsci/imagestats/__init__.py
+++ b/lib/stsci/imagestats/__init__.py
@@ -240,7 +240,7 @@ peak by parabolic interpolation.
_minfloatval = 10.0 * np.finfo(dtype=np.float32).eps
i... | Fixes an error reported by Jennifer Mack and Leonardo Ubeda by which TweakReg crashes when trying to compute statististics for image alignment. This was caused by me eating `_` in front of `nbins` when I fixed other problems with `ImageStats` (see r<I> and ticket #<I>). git-svn-id: <URL> | py |
diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py
index <HASH>..<HASH> 100644
--- a/telethon/telegram_client.py
+++ b/telethon/telegram_client.py
@@ -721,4 +721,7 @@ class TelegramClient:
def remove_update_handler(self, handler):
self.sender.remove_update_handler(handler)
+ def l... | Add method to list update handlers (#<I>) | py |
diff --git a/devassistant/gui/path_window.py b/devassistant/gui/path_window.py
index <HASH>..<HASH> 100644
--- a/devassistant/gui/path_window.py
+++ b/devassistant/gui/path_window.py
@@ -241,7 +241,7 @@ class PathWindow(object):
label = widget.get_label()
browse_btn = self.browse_btns.get(label)
- ... | Fixes #<I>. GitHub button is accessible always | py |
diff --git a/util.py b/util.py
index <HASH>..<HASH> 100644
--- a/util.py
+++ b/util.py
@@ -62,6 +62,7 @@ def get_platform ():
elif osname[:3] == "aix":
return "%s-%s.%s" % (osname, version, release)
elif osname[:6] == "cygwin":
+ osname = "cygwin"
rel_re = re.compile (r'... | Patch #<I> from Jason Tishler: Corrects sys.platform and distutils.util.get_platform() problems caused by the cruft contained in Cygwin's uname -s. | py |
diff --git a/smr/ec2.py b/smr/ec2.py
index <HASH>..<HASH> 100755
--- a/smr/ec2.py
+++ b/smr/ec2.py
@@ -132,10 +132,6 @@ def main():
sys.stderr.write("invalid AWS_EC2_KEYNAME\n")
sys.exit(1)
- if not config.AWS_EC2_LOCAL_KEYFILE:
- sys.stderr.write("invalid AWS_EC2_LOCAL_KEYFILE\n")
- ... | remove error checking for AWS_EC2_LOCAL_KEYFILE as it's set by default | py |
diff --git a/devassistant/command_helpers.py b/devassistant/command_helpers.py
index <HASH>..<HASH> 100644
--- a/devassistant/command_helpers.py
+++ b/devassistant/command_helpers.py
@@ -47,9 +47,16 @@ class ClHelper(object):
stdout = '\n'.join(stdout)
# there may be some remains not read after exitin... | Fix logging and returning output_rest in ClHelper. TODO: Test this. | py |
diff --git a/tensorforce/core/memories/naive_prioritized_replay.py b/tensorforce/core/memories/naive_prioritized_replay.py
index <HASH>..<HASH> 100755
--- a/tensorforce/core/memories/naive_prioritized_replay.py
+++ b/tensorforce/core/memories/naive_prioritized_replay.py
@@ -27,13 +27,13 @@ from tensorforce.core.memorie... | added NaivePrioritizedReplay to __init__ | py |
diff --git a/tests/test_orbit.py b/tests/test_orbit.py
index <HASH>..<HASH> 100644
--- a/tests/test_orbit.py
+++ b/tests/test_orbit.py
@@ -4971,7 +4971,7 @@ def test_from_name_named():
for obj in named_data:
o= Orbit.from_name(obj)
for attr in named_data[obj]:
- if 'source' in attr: co... | Ignore 'dr2' keyword in from_name named_objects tests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,13 +5,15 @@ install_requires = [
'mysql-python>=1.2.3',
'psycopg2>=2.4.2',
'pyyaml>=3.10.0',
- 'argparse',
'pytz',
]
if os.name == 'posix':
install_requires.append('termcolor>=1.1.0')
... | Correct argparse dependency - argparse already is a part of base python as of <I> and <I>. | py |
diff --git a/skyfield/tests/test_keplerian.py b/skyfield/tests/test_keplerian.py
index <HASH>..<HASH> 100644
--- a/skyfield/tests/test_keplerian.py
+++ b/skyfield/tests/test_keplerian.py
@@ -34,12 +34,12 @@ def test_instantiate_8077_hoyle():
hoyle_8077['mean_anomaly'],
... | Use `is` operator for comparing with `None` (Pep8) | py |
diff --git a/minio/parsers.py b/minio/parsers.py
index <HASH>..<HASH> 100644
--- a/minio/parsers.py
+++ b/minio/parsers.py
@@ -360,7 +360,14 @@ def _iso8601_to_localized_time(date_string):
:param date_string: iso8601 formatted date string.
:return: :class:`datetime.datetime`
"""
- parsed_date = dateti... | Add support for ISO time with and without fractional seconds. (#<I>) | py |
diff --git a/test/nxos/conftest.py b/test/nxos/conftest.py
index <HASH>..<HASH> 100644
--- a/test/nxos/conftest.py
+++ b/test/nxos/conftest.py
@@ -2,10 +2,9 @@
from builtins import super
import pytest
+from napalm.base.mock import raise_exception
from napalm.base.test import conftest as parent_conftest
-
from nap... | Fix NXOS tests to allow mocked data to raise | py |
diff --git a/dump2polarion/dumper_cli.py b/dump2polarion/dumper_cli.py
index <HASH>..<HASH> 100644
--- a/dump2polarion/dumper_cli.py
+++ b/dump2polarion/dumper_cli.py
@@ -129,7 +129,7 @@ def submit_if_ready(args, submit_args, config):
return None
# TODO: better detection of xunit file that is ready for ... | Fix pytest junit file detection | py |
diff --git a/secretballot/__init__.py b/secretballot/__init__.py
index <HASH>..<HASH> 100644
--- a/secretballot/__init__.py
+++ b/secretballot/__init__.py
@@ -27,15 +27,16 @@ def enable_voting_on(cls, manager_name='objects',
VOTE_TABLE = Vote._meta.db_table
def add_vote(self, token, vote):
- voteobj,... | fix a bug w/ renaming votes | py |
diff --git a/gnosis/eth/ethereum_client.py b/gnosis/eth/ethereum_client.py
index <HASH>..<HASH> 100644
--- a/gnosis/eth/ethereum_client.py
+++ b/gnosis/eth/ethereum_client.py
@@ -895,6 +895,7 @@ class EthereumClient:
self.ethereum_node_url: str = ethereum_node_url
self.w3_provider = HTTPProvider(self.... | Add slow provider to ethereum client | py |
diff --git a/tests/end-to-end.py b/tests/end-to-end.py
index <HASH>..<HASH> 100755
--- a/tests/end-to-end.py
+++ b/tests/end-to-end.py
@@ -880,7 +880,7 @@ class ExtractAndOutputTestCase(StorageFileTestCase):
# Check if the resulting storage file can be read with psort.
if not self._RunPsort(
- ... | Fixed use of storage in ExtractAndOutput end-to-end test case | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -550,6 +550,7 @@ setup(
'bokeh._legacy_charts.tests',
'bokeh.client',
'bokeh.command',
+ 'bokeh.command.subcommands',
'bokeh.compat',
'bokeh.compat.mplexporter',
'bo... | update setup.py to include subcommands | py |
diff --git a/tests/test_http.py b/tests/test_http.py
index <HASH>..<HASH> 100644
--- a/tests/test_http.py
+++ b/tests/test_http.py
@@ -18,8 +18,9 @@ def mock_get_local_instead_of_http(url="", headers={}, auth=None, **kwargs):
class MockResponse:
def __init__(self, status_code):
self.status_co... | Change `open` mode string to work with python<I>, don't open file if not authenticated. | py |
diff --git a/lib/colortrans.py b/lib/colortrans.py
index <HASH>..<HASH> 100755
--- a/lib/colortrans.py
+++ b/lib/colortrans.py
@@ -281,10 +281,6 @@ RGB2SHORT_DICT = {
(255, 255, 215): 230,
(255, 255, 255): 231}
-
-def hexstr2num(hexstr):
- return int(hexstr, 16)
-
def rgb2short(r, g, b):
""" Find t... | remove duplicate hexstr2num hexstr2num was defined (identically) twice. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ from os.path import join, dirname
setup(
name='splunk_logger',
- version='0.1.5',
+ version='0.1.6',
license = 'GNU General Public License v2 (GPLv2)',
platforms='Linux', | There was an issue [0] with the upload of the previous version, so I'm just bumping one more and trying again [0] Submitting dist/splunk_logger-<I>.tar.gz to <URL>: backend read error | py |
diff --git a/txt2boil/langs.py b/txt2boil/langs.py
index <HASH>..<HASH> 100644
--- a/txt2boil/langs.py
+++ b/txt2boil/langs.py
@@ -94,21 +94,6 @@ class Java(CXX):
ext = ['.java']
-def setupLangs():
- """Return a dictionary that maps file extensions to languages.
-
- """
-
- ext_lang = collections.defa... | got rid of ext_langs and made langs.__all__ update itself | py |
diff --git a/virtualenvapi/manage.py b/virtualenvapi/manage.py
index <HASH>..<HASH> 100644
--- a/virtualenvapi/manage.py
+++ b/virtualenvapi/manage.py
@@ -66,7 +66,7 @@ class VirtualEnvironment(object):
output, error = proc.communicate()
returncode = proc.returncode
if returncode:... | Fix the CalledProcessError signature, again. | py |
diff --git a/Localisation.py b/Localisation.py
index <HASH>..<HASH> 100644
--- a/Localisation.py
+++ b/Localisation.py
@@ -3,6 +3,7 @@
import gettext
import locale
import os
+import sys
langs = []
#Check the default locale
@@ -11,7 +12,8 @@ if lc:
langs = [lc, lc[:2]]
# Add one we know to be there
... | Now uses an absolute path when looking for the language file. | py |
diff --git a/pysparkling/fileio/fs/hdfs.py b/pysparkling/fileio/fs/hdfs.py
index <HASH>..<HASH> 100644
--- a/pysparkling/fileio/fs/hdfs.py
+++ b/pysparkling/fileio/fs/hdfs.py
@@ -22,7 +22,7 @@ class Hdfs(FileSystem):
def __init__(self, file_name):
if hdfs is None:
raise FileSystemNotSupported... | print note to install hdfs | py |
diff --git a/asset_allocation/formatters.py b/asset_allocation/formatters.py
index <HASH>..<HASH> 100644
--- a/asset_allocation/formatters.py
+++ b/asset_allocation/formatters.py
@@ -102,7 +102,7 @@ class AsciiFormatter:
output += self.append_num_column(value, index)
# https://en.wikiped... | commenting the unsuccessful coloring of the output in console | py |
diff --git a/mediasync/backends/__init__.py b/mediasync/backends/__init__.py
index <HASH>..<HASH> 100644
--- a/mediasync/backends/__init__.py
+++ b/mediasync/backends/__init__.py
@@ -1,8 +1,11 @@
from django.conf import settings
+from django.core.exceptions import ImproperlyConfigured
from mediasync.utils import load... | raise an error if no BACKEND is configured | py |
diff --git a/qa_tests/uhs_unittest.py b/qa_tests/uhs_unittest.py
index <HASH>..<HASH> 100644
--- a/qa_tests/uhs_unittest.py
+++ b/qa_tests/uhs_unittest.py
@@ -83,6 +83,8 @@ class UniformHazardSpectraQATest(unittest.TestCase):
uh_spectra = UhSpectra.objects.get(
output__oq_calculation=calculation.i... | Added another test for checking the nubmer of realizations | py |
diff --git a/salt/modules/apt.py b/salt/modules/apt.py
index <HASH>..<HASH> 100644
--- a/salt/modules/apt.py
+++ b/salt/modules/apt.py
@@ -92,7 +92,13 @@ def _pkgname_without_arch(name):
Check for ':arch' appended to pkg name (i.e. 32 bit installed on 64 bit
machine is ':i386')
'''
- return name.split... | Prevent future parsing issues from crippling apt.list_pkgs This causes _pkgname_without_arch() to Log an error and return the passed pkg name if the stripped version ends up being an empty string. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -355,7 +355,7 @@ setup(
"*.py", "*.txt", ".svg", ".npz"
],
"tofu.tests.tests04_spectro.test_data": ["*.npz"],
- "tofu.tests.tests06_mesh.test_data": ['*.txt'],
+ "tofu.tests.tests06... | [#master] Added test data to package | py |
diff --git a/saltcloud/cloud.py b/saltcloud/cloud.py
index <HASH>..<HASH> 100644
--- a/saltcloud/cloud.py
+++ b/saltcloud/cloud.py
@@ -528,6 +528,16 @@ class Cloud(object):
alias, provider = provider.split(':')
return provider
+ if provider not in self.opts['pr... | Protect against unknown provider alias and warn the user. | py |
diff --git a/linkcheck/checker/urlbase.py b/linkcheck/checker/urlbase.py
index <HASH>..<HASH> 100644
--- a/linkcheck/checker/urlbase.py
+++ b/linkcheck/checker/urlbase.py
@@ -203,7 +203,7 @@ class UrlBase (object):
def set_title_from_content (self):
"""Set title of page the URL refers to.from page conte... | Remove uneeded check for HTML content. | py |
diff --git a/examples/find_dups.py b/examples/find_dups.py
index <HASH>..<HASH> 100644
--- a/examples/find_dups.py
+++ b/examples/find_dups.py
@@ -8,33 +8,20 @@ Usage:
"""
from collections import defaultdict
-import hashlib
import sys
from fs import open_fs
-def get_hash(bin_file):
- """Get the md5 hash ... | use hash method in find_dups | py |
diff --git a/testing/test_kerns.py b/testing/test_kerns.py
index <HASH>..<HASH> 100644
--- a/testing/test_kerns.py
+++ b/testing/test_kerns.py
@@ -475,6 +475,10 @@ class TestARDInit(unittest.TestCase):
k2 = GPflow.kernels.RBF(3, lengthscales=np.ones(3) * 2.3)
self.assertTrue(np.all(k1.lengthscales.val... | testing ARD init of ArcCosine | py |
diff --git a/py/selenium/webdriver/firefox/webdriver.py b/py/selenium/webdriver/firefox/webdriver.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/firefox/webdriver.py
+++ b/py/selenium/webdriver/firefox/webdriver.py
@@ -66,11 +66,11 @@ class WebDriver(RemoteWebDriver):
firefox_options = Options(... | Add Firefox options to capabilities When the firefox_options argument is not provided we generate a FirefoxOptions object, but due to some broken logic we weren't updating the capabilities from these options. | py |
diff --git a/condorpy/dag.py b/condorpy/dag.py
index <HASH>..<HASH> 100644
--- a/condorpy/dag.py
+++ b/condorpy/dag.py
@@ -42,6 +42,14 @@ class DAG(object):
return self._name
@property
+ def cluster_id(self):
+ """
+
+ :return:
+ """
+ return self._cluster_id
+
+ @prope... | added cluster id attribute to dag | py |
diff --git a/test/tornado_tests/test_motor_database.py b/test/tornado_tests/test_motor_database.py
index <HASH>..<HASH> 100644
--- a/test/tornado_tests/test_motor_database.py
+++ b/test/tornado_tests/test_motor_database.py
@@ -70,7 +70,7 @@ class MotorDatabaseTest(MotorTest):
@gen_test
def test_database_callb... | Race in test_database_callbacks. | py |
diff --git a/mapper/object_mapper.py b/mapper/object_mapper.py
index <HASH>..<HASH> 100644
--- a/mapper/object_mapper.py
+++ b/mapper/object_mapper.py
@@ -2,9 +2,12 @@
"""
Copyright (C) 2015, marazt. All rights reserved.
"""
-from mapper.object_mapper_exception import ObjectMapperException
+from enum import Enum... | fix alredy exists mapping erro when both types has the same name (different modules/packages) | py |
diff --git a/anchore/controller.py b/anchore/controller.py
index <HASH>..<HASH> 100644
--- a/anchore/controller.py
+++ b/anchore/controller.py
@@ -121,8 +121,9 @@ class Controller(object):
def load_global_whitelist(self):
ret = []
-
+ whitelist_data = []
whitelist_file = None
+
... | improve global whitelist parsing and resolve error when no global whitelist default is present | py |
diff --git a/spyder/app/cli_options.py b/spyder/app/cli_options.py
index <HASH>..<HASH> 100644
--- a/spyder/app/cli_options.py
+++ b/spyder/app/cli_options.py
@@ -47,7 +47,7 @@ def get_options():
dest="opengl_implementation",
choices=['software', 'desktop', 'gles'],
... | Cli options: Mention 'gles' as possible --opengl option | py |
diff --git a/pyArango/tests/tests.py b/pyArango/tests/tests.py
index <HASH>..<HASH> 100644
--- a/pyArango/tests/tests.py
+++ b/pyArango/tests/tests.py
@@ -60,6 +60,8 @@ class pyArangoTests(unittest.TestCase):
# @unittest.skip("stand by")
def test_collection_create_delete(self) :
col = self.db.createC... | add test for whether hasCollection() works properly, which was previously missing. | py |
diff --git a/src/python/approxeng/input/__init__.py b/src/python/approxeng/input/__init__.py
index <HASH>..<HASH> 100644
--- a/src/python/approxeng/input/__init__.py
+++ b/src/python/approxeng/input/__init__.py
@@ -334,7 +334,7 @@ class Axes(object):
"""
Return a sequence of all Axis objects which are... | active_axes was using old corrected_value() rather than new value property | py |
diff --git a/client/vocabcompiler.py b/client/vocabcompiler.py
index <HASH>..<HASH> 100644
--- a/client/vocabcompiler.py
+++ b/client/vocabcompiler.py
@@ -32,7 +32,7 @@ class AbstractVocabulary(object):
__metaclass__ = ABCMeta
@classmethod
- def phrases_to_revision(self, phrases):
+ def phrases_to_rev... | Nit: fix variable naming in client/vocabcompiler.py | py |
diff --git a/ontquery/__init__.py b/ontquery/__init__.py
index <HASH>..<HASH> 100644
--- a/ontquery/__init__.py
+++ b/ontquery/__init__.py
@@ -4,7 +4,7 @@ from six import text_type
from inspect import signature
from urllib import parse
-red = '\x1b[91m{}\x1b[0m'
+red = '\x1b[31m{}\x1b[0m'
def cullNone(**kwargs):... | fixed color code to actually be red instead of ltred | py |
diff --git a/project_generator/project.py b/project_generator/project.py
index <HASH>..<HASH> 100644
--- a/project_generator/project.py
+++ b/project_generator/project.py
@@ -563,7 +563,8 @@ class Project:
if len(data['common']['linker_file']) == 0:
data['common']['linker_file'].append("No linker ... | Fix #<I> - empty lists are removed in scrape_dir dic | py |
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/base.py
+++ b/openquake/calculators/base.py
@@ -428,7 +428,7 @@ class HazardCalculator(BaseCalculator):
self.csm = csm = readinput.get_composite_source_model(
... | Fixed check on disagg_by_src [skip CI] | py |
diff --git a/safe/report/extractors/analysis_detail.py b/safe/report/extractors/analysis_detail.py
index <HASH>..<HASH> 100644
--- a/safe/report/extractors/analysis_detail.py
+++ b/safe/report/extractors/analysis_detail.py
@@ -7,7 +7,7 @@ from safe.definitions.fields import (
hazard_count_field,
total_affecte... | fix value in total row in analysis detail section (#<I>) * fix value in total row in analysis detail section when removing zero column happens * change affected string with affected field definition | py |
diff --git a/glymur/jp2k.py b/glymur/jp2k.py
index <HASH>..<HASH> 100644
--- a/glymur/jp2k.py
+++ b/glymur/jp2k.py
@@ -1261,7 +1261,7 @@ class Jp2k(Jp2kBox):
self._dparams = dparam
- def read_bands(self, rlevel=0, layer=None, area=None, tile=None,
+ def read_bands(self, rlevel=0, layer=0, area=None, ... | Make layer default value 0, not None None causes problems for the layer property. | py |
diff --git a/src/satosa/backends/oauth.py b/src/satosa/backends/oauth.py
index <HASH>..<HASH> 100644
--- a/src/satosa/backends/oauth.py
+++ b/src/satosa/backends/oauth.py
@@ -106,7 +106,7 @@ class OAuthBackend(BackendModule):
internal_response = InternalResponse(user_id_hash_type,
... | Removed state from callback in oauth | py |
diff --git a/alot/db/utils.py b/alot/db/utils.py
index <HASH>..<HASH> 100644
--- a/alot/db/utils.py
+++ b/alot/db/utils.py
@@ -381,10 +381,10 @@ def extract_body(mail, types=None, field_key='copiousoutput'):
nametemplate = entry.get('nametemplate', '%s')
prefix, suffix = parse_... | When writing a file for mailcap write it in as bytes otherwise when we convert to utf-8 some programs (like w3m) honor the encoding parameter in the HTML itself, which is now not correct. I'm not sure if this is going to have side effects for other programs that expect their data to be encoded in the terminal encoding... | py |
diff --git a/tests/test_edge.py b/tests/test_edge.py
index <HASH>..<HASH> 100644
--- a/tests/test_edge.py
+++ b/tests/test_edge.py
@@ -202,7 +202,7 @@ class BGEdgeTestCase(unittest.TestCase):
self.assertListEqual(result["multicolor"], [color1.json_id])
self.assertEqual(result[BGEdge_JSON_SCHEMA_JSON_K... | updated test method names to reflect on the fact ,that they are testing json deserialization | py |
diff --git a/alignak/daemon.py b/alignak/daemon.py
index <HASH>..<HASH> 100644
--- a/alignak/daemon.py
+++ b/alignak/daemon.py
@@ -1222,8 +1222,11 @@ class Daemon(object):
_, _ = self.make_a_pause(timeout, check_time_change=True)
# sys.stdout.write(".")
# sys.stdout.flush()
- ... | Change log when daemon got interrupted before receiving its configuration | py |
diff --git a/owslib/crs.py b/owslib/crs.py
index <HASH>..<HASH> 100644
--- a/owslib/crs.py
+++ b/owslib/crs.py
@@ -1721,8 +1721,15 @@ class Crs(object):
"""Initialize a CRS construct"""
def __init__(self, crs):
self.id = crs
+ self.naming_authority = None
+ self.category = None
+ ... | add support for URI type CRS defs | py |
diff --git a/integration_tests/test_trash_list.py b/integration_tests/test_trash_list.py
index <HASH>..<HASH> 100644
--- a/integration_tests/test_trash_list.py
+++ b/integration_tests/test_trash_list.py
@@ -1,6 +1,7 @@
# Copyright (C) 2011 Andrea Francia Trivolzio(PV) Italy
import os
+import shutil
import tempfile... | Refactor: add a forgotten tearDown | py |
diff --git a/ndio/remote/neurodata.py b/ndio/remote/neurodata.py
index <HASH>..<HASH> 100644
--- a/ndio/remote/neurodata.py
+++ b/ndio/remote/neurodata.py
@@ -24,7 +24,7 @@ except ImportError:
DEFAULT_HOSTNAME = "openconnecto.me"
DEFAULT_SUFFIX = "nd"
-DEFAULT_PROTOCOL = "http"
+DEFAULT_PROTOCOL = "https"
DEFAULT_... | Moving everything to HTTPS or things break | py |
diff --git a/tests/test_pfs.py b/tests/test_pfs.py
index <HASH>..<HASH> 100644
--- a/tests/test_pfs.py
+++ b/tests/test_pfs.py
@@ -406,4 +406,4 @@ def test_inspect_branch():
def test_fsck():
client = python_pachyderm.Client()
- client.fsck()
+ assert len(list(client.fsck())) == 0 | Make sure there are no fsck errors | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ setuptools.setup(
),
install_requires=['theano', 'climate'],
classifiers=[
- 'Development Status :: 3 - Alpha',
+ 'Development Status :: 4 - Beta',
'Intended Audie... | Go ahead and move to beta. [ci skip] | py |
diff --git a/numina/array/blocks.py b/numina/array/blocks.py
index <HASH>..<HASH> 100644
--- a/numina/array/blocks.py
+++ b/numina/array/blocks.py
@@ -43,10 +43,6 @@ def blockgen1d(block, size):
>>> blockgen1d(512, 1024)
[slice(0, 512, None), slice(512, 1024, None)]
- >>> blockgen1d(500, 1024... | Remoe doctest too long | py |
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/manifest_utils.py b/datadog_checks_dev/datadog_checks/dev/tooling/manifest_utils.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/datadog_checks/dev/tooling/manifest_utils.py
+++ b/datadog_checks_dev/datadog_checks/dev/tooling/manifest_utils.py
@@ -73,6 ... | Safely check the dashboards key exists before trying to write to it (#<I>) | py |
diff --git a/src/python/dxpy/scripts/dx.py b/src/python/dxpy/scripts/dx.py
index <HASH>..<HASH> 100755
--- a/src/python/dxpy/scripts/dx.py
+++ b/src/python/dxpy/scripts/dx.py
@@ -26,11 +26,13 @@ from ..packages import requests
# Try to reset encoding to utf-8
# Note: This is incompatible with pypy
# Note: In additio... | Don't try to reset encoding if running on PyPy - it doesn't like us reloading sys | py |
diff --git a/injecting.py b/injecting.py
index <HASH>..<HASH> 100644
--- a/injecting.py
+++ b/injecting.py
@@ -1,6 +1,7 @@
import inspect
import re
+import types
import binding
import errors
@@ -73,9 +74,7 @@ class _Injector(object):
def _provide_class(self, cls, binding_key_stack):
init_kwargs ... | Replace hard-coding some objects' __init__ methods with checking to see whether __init__ is a normal method. | py |
diff --git a/impala/udf/__init__.py b/impala/udf/__init__.py
index <HASH>..<HASH> 100644
--- a/impala/udf/__init__.py
+++ b/impala/udf/__init__.py
@@ -22,6 +22,9 @@ from numba.compiler import compile_extra, Flags
from .target import ImpalaTargetContext
from .typing import impala_typing_context
+from .types import (... | Exposed the main Impala types from top level udf submodule | py |
diff --git a/pandas/core/internals.py b/pandas/core/internals.py
index <HASH>..<HASH> 100644
--- a/pandas/core/internals.py
+++ b/pandas/core/internals.py
@@ -1013,7 +1013,7 @@ def form_blocks(data, axes):
blocks.append(int_block)
if len(datetime_dict):
- datetime_block = _simple_blockify(datetim... | Use datetime<I> with a 'us' unit explicitly, for <I> and <I> compatibility | py |
diff --git a/pytest/test_load_file.py b/pytest/test_load_file.py
index <HASH>..<HASH> 100644
--- a/pytest/test_load_file.py
+++ b/pytest/test_load_file.py
@@ -28,6 +28,8 @@ def test_load_file():
for field in CodeTypeUnionFields:
if hasattr(co_file, field):
+ if field == "co_code" and pypy != ... | pypy vs non codes don't have to match... in code loading test. | py |
diff --git a/example/autoencoder/solver.py b/example/autoencoder/solver.py
index <HASH>..<HASH> 100644
--- a/example/autoencoder/solver.py
+++ b/example/autoencoder/solver.py
@@ -78,7 +78,7 @@ class Solver(object):
update_dict = {name: nd for name, nd in zip(sym.list_arguments(), exe.grad_arrays) if nd}
... | Update solver.py fix lr | py |
diff --git a/test/integration-test.py b/test/integration-test.py
index <HASH>..<HASH> 100644
--- a/test/integration-test.py
+++ b/test/integration-test.py
@@ -335,6 +335,7 @@ def check_slow_queries():
AND user_host NOT LIKE "mailer%"
AND user_host NOT LIKE "janitor%"
AND sql_text ... | test: Add exclusion for GetValidOrderAuthorizations2 slow query. (#<I>) This was causing intermittent failures. | py |
diff --git a/parsl/__init__.py b/parsl/__init__.py
index <HASH>..<HASH> 100644
--- a/parsl/__init__.py
+++ b/parsl/__init__.py
@@ -75,14 +75,7 @@ dfk = DataFlowKernelLoader.dfk
wait_for_current_tasks = DataFlowKernelLoader.wait_for_current_tasks
-class NullHandler(logging.Handler):
- """Setup default logging to... | Replace parsl's logging NullHandler with python's own NullHandler (#<I>) Noticed by @timj in LSST | py |
diff --git a/param/__init__.py b/param/__init__.py
index <HASH>..<HASH> 100644
--- a/param/__init__.py
+++ b/param/__init__.py
@@ -573,6 +573,15 @@ class Number(Dynamic):
super(Number,self).__set__(obj,val)
+ # Allow softbounds to be used like a normal attribute, as it
+ # probably should have been ... | Allow softbounds to be accessed like an attribute | py |
diff --git a/backend/__float.py b/backend/__float.py
index <HASH>..<HASH> 100644
--- a/backend/__float.py
+++ b/backend/__float.py
@@ -59,7 +59,6 @@ def _float_oper(op1, op2 = None):
'''
output = []
op = op2 if op2 is not None else op1
- print op1, op2, op, '<<:'
indirect = (op[0] == '*')
... | Clean Up Removed debugging prints | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -50,6 +50,7 @@ setup(
'Topic :: Office/Business :: Financial',
'Topic :: Software Development :: Libraries :: Python Modules'],
long_description=open('README.rst', 'r').read(),
+ long_description_cont... | chore: Add `long_description_content_type` to setup.py It generally helps PyPI to recognize RST format | py |
diff --git a/oauthlib/oauth2/rfc6749/endpoints/authorization.py b/oauthlib/oauth2/rfc6749/endpoints/authorization.py
index <HASH>..<HASH> 100644
--- a/oauthlib/oauth2/rfc6749/endpoints/authorization.py
+++ b/oauthlib/oauth2/rfc6749/endpoints/authorization.py
@@ -7,7 +7,7 @@ This module is an implementation of various l... | Iterate correctly over response_types dict without using six | py |
diff --git a/hwt/hdlObjects/types/struct.py b/hwt/hdlObjects/types/struct.py
index <HASH>..<HASH> 100644
--- a/hwt/hdlObjects/types/struct.py
+++ b/hwt/hdlObjects/types/struct.py
@@ -10,7 +10,7 @@ class HStructField(object):
class HStruct(HdlType):
- def __init__(self, template, name=None):
+ def __init__(se... | HStruct bit_length, + syntax shugars | py |
diff --git a/pdf/gui/gui.py b/pdf/gui/gui.py
index <HASH>..<HASH> 100644
--- a/pdf/gui/gui.py
+++ b/pdf/gui/gui.py
@@ -2,7 +2,7 @@ import os
import PySimpleGUI as gui
import json
from platform import system
-from PyBundle import bundle_dir
+from pdf.utils.path import available_images
from pdf.conduit._version impor... | Removed _image_directory, IMAGE_DIRECTORY and available images functions | py |
diff --git a/smart_open/gcs.py b/smart_open/gcs.py
index <HASH>..<HASH> 100644
--- a/smart_open/gcs.py
+++ b/smart_open/gcs.py
@@ -465,6 +465,12 @@ class BufferedOutputBase(io.BufferedIOBase):
self._current_part.write(b)
self._total_size += len(b)
+ #
+ # If the size of this part is pr... | Update smart_open/gcs.py | py |
diff --git a/gargoyle/__init__.py b/gargoyle/__init__.py
index <HASH>..<HASH> 100644
--- a/gargoyle/__init__.py
+++ b/gargoyle/__init__.py
@@ -54,7 +54,7 @@ def autodiscover():
# need to roll their own admin registration.
try:
app_path = import_module(app).__path__
- except Attribu... | Catch ImportError in autodiscover and fix SyntaxWarning because of import *. | py |
diff --git a/dokuwiki.py b/dokuwiki.py
index <HASH>..<HASH> 100644
--- a/dokuwiki.py
+++ b/dokuwiki.py
@@ -33,9 +33,11 @@ class DokuWiki(object):
def __init__(self, url, user, password, **kwargs):
"""Initialize the object by connecting to the XMLRPC server."""
# Initialize XMLRPC client.
- ... | Force login after initializing XMLRPC connection for checking the connection is working. | py |
diff --git a/leakcheck/crypto.py b/leakcheck/crypto.py
index <HASH>..<HASH> 100644
--- a/leakcheck/crypto.py
+++ b/leakcheck/crypto.py
@@ -97,7 +97,7 @@ FCB5K3c2kkTv2KjcCAimjxkE+SBKfHg35W0wB0AWkXpVFO5W/TbHg4tqtkpt/KMn
load_privatekey(
FILETYPE_PEM, self.ENCRYPTED_PEM,
... | The callback exception now propagates, yay | py |
diff --git a/quilt/cli/__init__.py b/quilt/cli/__init__.py
index <HASH>..<HASH> 100644
--- a/quilt/cli/__init__.py
+++ b/quilt/cli/__init__.py
@@ -30,6 +30,7 @@ import quilt.cli.patchimport
import quilt.cli.pop
import quilt.cli.previous
import quilt.cli.push
+import quilt.cli.revert
import quilt.cli.series
import ... | Import revert to cli commands | py |
diff --git a/proto/src/binary_tools.py b/proto/src/binary_tools.py
index <HASH>..<HASH> 100644
--- a/proto/src/binary_tools.py
+++ b/proto/src/binary_tools.py
@@ -1,6 +1,26 @@
import binascii
import struct
+try:
+ if bin(0): pass
+except NameError, ne:
+ def bin(x):
+ """
+ Support for Python 2.... | fix bin support for python <I> | py |
diff --git a/pypika/__init__.py b/pypika/__init__.py
index <HASH>..<HASH> 100644
--- a/pypika/__init__.py
+++ b/pypika/__init__.py
@@ -83,4 +83,4 @@ from .utils import (
__author__ = 'Timothy Heys'
__email__ = 'theys@kayak.com'
-__version__ = '0.27.1'
+__version__ = '0.27.2' | bumped version to <I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.