diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/build.py b/build.py
index <HASH>..<HASH> 100755
--- a/build.py
+++ b/build.py
@@ -42,7 +42,7 @@ CTX = BuildContext(sys.argv)
# specific targets
CTX.CPPFLAGS += """-Wall -Wextra -Werror -Woverloaded-virtual
-Wpointer-arith -Wcast-qual -Wwrite-strings
- -Winit-self -Wno-sign-compar... | Fix a build problem with the newest Xcode upgrade. | py |
diff --git a/snug/load.py b/snug/load.py
index <HASH>..<HASH> 100644
--- a/snug/load.py
+++ b/snug/load.py
@@ -86,11 +86,11 @@ class CombinableRegistry(Registry):
raise NotImplementedError()
def __or__(self, other: 'CombinableRegistry') -> 'MultiRegistry':
- return MultiRegistry([self, other])
+ ... | small refactor in load.py | py |
diff --git a/src/ai/backend/client/cli/proxy.py b/src/ai/backend/client/cli/proxy.py
index <HASH>..<HASH> 100644
--- a/src/ai/backend/client/cli/proxy.py
+++ b/src/ai/backend/client/cli/proxy.py
@@ -130,7 +130,7 @@ async def web_handler(request):
down_resp.headers['Access-Control-Allow-Origin'] = '*'
... | fix: Apply renamed request.Response methods * This is a follow-up to #<I> | py |
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/__init__.py
+++ b/salt/client/ssh/__init__.py
@@ -112,7 +112,7 @@ fi
SUDO=""
if [ -n "{{SUDO}}" ]; then
- SUDO="sudo root -c"
+ SUDO="sudo "
fi
EX_PYTHON_OLD={EX_THIN_PYTHON_OLD} # P... | This corrects a syntax error for the sudo command, normally 'username -c' is associated with 'su' | py |
diff --git a/h2o-py/h2o/demo.py b/h2o-py/h2o/demo.py
index <HASH>..<HASH> 100644
--- a/h2o-py/h2o/demo.py
+++ b/h2o-py/h2o/demo.py
@@ -219,7 +219,7 @@ def glm_demo(interactive, echo, test):
'\n# Convert the response columns to factors (for binary classification problems)',
'>... | fixing a typo in glm demo | py |
diff --git a/pysos/_version.py b/pysos/_version.py
index <HASH>..<HASH> 100644
--- a/pysos/_version.py
+++ b/pysos/_version.py
@@ -33,7 +33,7 @@ if _py_ver.major == 2 or (_py_ver.major == 3 and (_py_ver.minor, _py_ver.micro)
# version of the SoS language
__sos_version__ = '1.0'
# version of the sos command
-__versi... | Make a <I> release | py |
diff --git a/py3status/core.py b/py3status/core.py
index <HASH>..<HASH> 100644
--- a/py3status/core.py
+++ b/py3status/core.py
@@ -488,13 +488,16 @@ class Py3statusWrapper():
level = LOG_LEVELS.get(level, level)
syslog(level, u'{}'.format(msg))
else:
- with open(self.config... | Modifed log method to resolve issues when filesystem encoding is set to ascii. | py |
diff --git a/spinoff/contrib/http/server.py b/spinoff/contrib/http/server.py
index <HASH>..<HASH> 100644
--- a/spinoff/contrib/http/server.py
+++ b/spinoff/contrib/http/server.py
@@ -118,6 +118,8 @@ class Request(BaseRequest):
self.ch.put(data)
def close(self):
+ if not self._response_started:
+ ... | Auto-send headers when a Request is closed if needed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -82,7 +82,7 @@ extras_reqs = {
'item_tasks': ['ctk-cli'],
'ldap': ['pyldap'],
'thumbnails': ['Pillow', 'pydicom', 'numpy'],
- 'worker': ['celery']
+ 'worker': ['celery>=4.0.0']
}
all_extra_reqs = itertoo... | Enforce celery >= <I> for worker plugin | py |
diff --git a/isort/format.py b/isort/format.py
index <HASH>..<HASH> 100644
--- a/isort/format.py
+++ b/isort/format.py
@@ -114,13 +114,14 @@ class BasicPrinter:
class ColoramaPrinter(BasicPrinter):
- ADDED_LINE = colorama.Fore.GREEN
- REMOVED_LINE = colorama.Fore.RED
-
def __init__(self, output: Optiona... | Bugfix: <I> Missing colorama leads to exception Fixes #<I>. | py |
diff --git a/vaspy/cli/kgen.py b/vaspy/cli/kgen.py
index <HASH>..<HASH> 100644
--- a/vaspy/cli/kgen.py
+++ b/vaspy/cli/kgen.py
@@ -103,7 +103,7 @@ def kgen(filename='POSCAR', directory=None, make_folders=False, symprec=0.01,
if make_folders and ibz and kpts_per_split is None:
logging.info("\nFound {} tota... | FIX: Remove raw_input use from kgen | py |
diff --git a/indra/tools/reading/read_db.py b/indra/tools/reading/read_db.py
index <HASH>..<HASH> 100644
--- a/indra/tools/reading/read_db.py
+++ b/indra/tools/reading/read_db.py
@@ -476,16 +476,16 @@ def produce_readings(id_dict, reader_list, verbose=False, force_read=False,
force_r... | Ensure all readings are pickled. | py |
diff --git a/master/buildbot/pbmanager.py b/master/buildbot/pbmanager.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/pbmanager.py
+++ b/master/buildbot/pbmanager.py
@@ -30,6 +30,7 @@ from buildbot.process.properties import Properties
from buildbot.util import bytes2unicode
from buildbot.util import service
fro... | break callback stack When lots of worker are connecting at the same time, we can get lots of waiters waiting for the worker configuration lock. This patch release the lock eventually, un rolling the stack before calling the next worker. | py |
diff --git a/openapi_core/contrib/falcon/requests.py b/openapi_core/contrib/falcon/requests.py
index <HASH>..<HASH> 100644
--- a/openapi_core/contrib/falcon/requests.py
+++ b/openapi_core/contrib/falcon/requests.py
@@ -1,4 +1,6 @@
"""OpenAPI core contrib falcon responses module"""
+import json
+
from openapi_core.val... | Support for falcon-jsonify | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,12 +15,12 @@ setup(name='cleverhans',
'tensorflow-probability',
'joblib',
'easydict',
- 'absl',
+ 'absl-py',
'six'
],
extras_require={
... | Updated setup.py to include tensorflow-datasets, which the tutorials use | py |
diff --git a/codespell.py b/codespell.py
index <HASH>..<HASH> 100755
--- a/codespell.py
+++ b/codespell.py
@@ -204,10 +204,10 @@ def parse_options(args):
parser.set_defaults(colors=sys.stdout.isatty())
parser.add_option('-d', '--disable-colors',
action='store_false', dest='colors',
- ... | use lowercase if description is not a full sentence. | py |
diff --git a/wandb/wandb_controller.py b/wandb/wandb_controller.py
index <HASH>..<HASH> 100644
--- a/wandb/wandb_controller.py
+++ b/wandb/wandb_controller.py
@@ -59,7 +59,7 @@ import time
import string
import random
import six
-import urllib
+from six.moves import urllib
import wandb
from wandb.apis import Inte... | fix issue where sweeps are broken with py<I> (#<I>) | py |
diff --git a/airflow/operators/jdbc_operator.py b/airflow/operators/jdbc_operator.py
index <HASH>..<HASH> 100644
--- a/airflow/operators/jdbc_operator.py
+++ b/airflow/operators/jdbc_operator.py
@@ -46,5 +46,4 @@ class JdbcOperator(BaseOperator):
def execute(self, context):
logging.info('Executing: ' + se... | make jdbc operator consistent with other db operators | py |
diff --git a/bitshares/message.py b/bitshares/message.py
index <HASH>..<HASH> 100644
--- a/bitshares/message.py
+++ b/bitshares/message.py
@@ -132,7 +132,7 @@ class Message(BlockchainInstance):
memo_key = meta["memokey"].strip()
try:
- PublicKey(memo_key)
+ PublicKey(memo_key, ... | Ensure we can verify messages on different networks too | py |
diff --git a/charmhelpers/core/hookenv.py b/charmhelpers/core/hookenv.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/core/hookenv.py
+++ b/charmhelpers/core/hookenv.py
@@ -12,7 +12,10 @@ import sys
from subprocess import CalledProcessError
import six
-from six.moves import UserDict
+if six.PY2:
+ from UserDic... | Manually locate UserDict for compatibility with legacy six version | py |
diff --git a/mapchete/config_utils.py b/mapchete/config_utils.py
index <HASH>..<HASH> 100644
--- a/mapchete/config_utils.py
+++ b/mapchete/config_utils.py
@@ -299,10 +299,17 @@ def _at_zoom(mapchete_config, zoom):
if out_element != None:
params[name] = out_element
if name == "inpu... | fixed configuration parsing when using input file from command line | py |
diff --git a/rainflow.py b/rainflow.py
index <HASH>..<HASH> 100644
--- a/rainflow.py
+++ b/rainflow.py
@@ -8,8 +8,8 @@ from collections import deque, defaultdict
def reversals(series):
"""
- A generator function which iterates over the reversals in the given
- *series* (an iterable). Reversals are the poi... | Cosmetic changes in the docstrings | py |
diff --git a/rest_framework_gis/filters.py b/rest_framework_gis/filters.py
index <HASH>..<HASH> 100644
--- a/rest_framework_gis/filters.py
+++ b/rest_framework_gis/filters.py
@@ -86,7 +86,8 @@ class GeoFilterSet(django_filters.FilterSet):
def __new__(cls, *args, **kwargs):
try:
cls._meta.filt... | [test] Skip coverage of django-filter backward compatibility | py |
diff --git a/tests/plugin_tests.py b/tests/plugin_tests.py
index <HASH>..<HASH> 100644
--- a/tests/plugin_tests.py
+++ b/tests/plugin_tests.py
@@ -81,6 +81,7 @@ class ForbiddenMockPlugin(Plugin):
plugin_name = "forbidden"
def setup(self):
+ self.add_copy_spec("tests")
self.add_forbidden_path... | [tests] fix test_copy_dir_forbidden_path Rather than call just Plugin.setup() and Plugin._do_copy_path(), add an add_copy_spec() call to the mock plugin setup() method, and invoke copying by calling the Plugin.collect() method. Related: #<I> | py |
diff --git a/controller/scheduler/fleet.py b/controller/scheduler/fleet.py
index <HASH>..<HASH> 100644
--- a/controller/scheduler/fleet.py
+++ b/controller/scheduler/fleet.py
@@ -129,7 +129,7 @@ class FleetHTTPClient(object):
# prepare memory limit for the container type
mem = kwargs.get('memory', {})... | feat(controller): disable swap usage if there is a memory limit | py |
diff --git a/grimoire_elk/elk/slack.py b/grimoire_elk/elk/slack.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/elk/slack.py
+++ b/grimoire_elk/elk/slack.py
@@ -70,7 +70,8 @@ class SlackEnrich(Enrich):
identity['username'] = from_['name']
identity['name'] = from_['real_name']
if 'profile' i... | [enrich][slack] Don't try to find the email in the user profile when it is not available. For example, in slackbot. | py |
diff --git a/dock/plugins/prepub_squash.py b/dock/plugins/prepub_squash.py
index <HASH>..<HASH> 100644
--- a/dock/plugins/prepub_squash.py
+++ b/dock/plugins/prepub_squash.py
@@ -37,12 +37,12 @@ class PrePublishSquashPlugin(PrePublishPlugin):
# Fail the build in case of squashing error
can_fail = False
- ... | squash plugin: don't require tag argument | py |
diff --git a/GeminiMotorDrive/__init__.py b/GeminiMotorDrive/__init__.py
index <HASH>..<HASH> 100644
--- a/GeminiMotorDrive/__init__.py
+++ b/GeminiMotorDrive/__init__.py
@@ -1003,7 +1003,7 @@ class GeminiG6(object):
after the drive is killed or not.
"""
- return (not self.command_error(s... | Fixed an error where the wrong command was sent to the drive. | py |
diff --git a/scripts/experiments/run_experiments.py b/scripts/experiments/run_experiments.py
index <HASH>..<HASH> 100644
--- a/scripts/experiments/run_experiments.py
+++ b/scripts/experiments/run_experiments.py
@@ -314,7 +314,7 @@ class DepParseExpParamsRunner(ExpParamsRunner):
default_brown = brown + DPExpPar... | Switching to WSJ section <I> explicitly | py |
diff --git a/benchexec/tablegenerator/util.py b/benchexec/tablegenerator/util.py
index <HASH>..<HASH> 100644
--- a/benchexec/tablegenerator/util.py
+++ b/benchexec/tablegenerator/util.py
@@ -116,11 +116,14 @@ def format_number(s, number_of_significant_digits, isToAlign=False):
formattedValue += "".join(['0'] *... | Correction: Use proper characters for the spacing | py |
diff --git a/acos_client/v30/slb/template/__init__.py b/acos_client/v30/slb/template/__init__.py
index <HASH>..<HASH> 100644
--- a/acos_client/v30/slb/template/__init__.py
+++ b/acos_client/v30/slb/template/__init__.py
@@ -14,11 +14,11 @@
import acos_client.v30.base as base
+from acos_client.v30.slb.template.l7 im... | Fixed alphanetical order of imports. | py |
diff --git a/auto_ml/_version.py b/auto_ml/_version.py
index <HASH>..<HASH> 100644
--- a/auto_ml/_version.py
+++ b/auto_ml/_version.py
@@ -1 +1 @@
-__version__ = "2.7.2"
+__version__ = "2.7.3" | <I> for x_test for lgbm, code cleanup, and more transformation_pipeline logging | py |
diff --git a/tests/test_utils_strptime.py b/tests/test_utils_strptime.py
index <HASH>..<HASH> 100644
--- a/tests/test_utils_strptime.py
+++ b/tests/test_utils_strptime.py
@@ -1,6 +1,7 @@
import locale
from parameterized import parameterized, param
from datetime import datetime
+from unittest import SkipTest
from ... | Skip locale-dependent tests if the required locale is not installed | py |
diff --git a/tools/docker/phd_base_tf_cpu/tests/tf_test.py b/tools/docker/phd_base_tf_cpu/tests/tf_test.py
index <HASH>..<HASH> 100644
--- a/tools/docker/phd_base_tf_cpu/tests/tf_test.py
+++ b/tools/docker/phd_base_tf_cpu/tests/tf_test.py
@@ -1,4 +1,5 @@
"""Test that Tensorflow works."""
+import site
import sys
fr... | Fix Tensorflow support in docker images. Signed-off-by: format <I> <github.com/ChrisCummins/format> | py |
diff --git a/src/arcrest/agol/__init__.py b/src/arcrest/agol/__init__.py
index <HASH>..<HASH> 100644
--- a/src/arcrest/agol/__init__.py
+++ b/src/arcrest/agol/__init__.py
@@ -1,6 +1,6 @@
from featureservice import *
from layer import *
from tiledservice import *
-import helperservices ## This is throwing an error r... | Update __init__.py Just pushing the original code back without the comment, Ill add the comment to the issues. Was just trying to add a comment directly to this line of code, but not sure how to elegantly do it. | py |
diff --git a/pyemma/msm/tests/test_bayesian_hmsm.py b/pyemma/msm/tests/test_bayesian_hmsm.py
index <HASH>..<HASH> 100644
--- a/pyemma/msm/tests/test_bayesian_hmsm.py
+++ b/pyemma/msm/tests/test_bayesian_hmsm.py
@@ -320,5 +320,19 @@ class TestBHMMSpecialCases(unittest.TestCase):
assert strajs[0][0] == 2
... | [TestBHMMSpecialCases] added test for initialized bhmm | py |
diff --git a/salt/cloud/clouds/vmware.py b/salt/cloud/clouds/vmware.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/vmware.py
+++ b/salt/cloud/clouds/vmware.py
@@ -44,9 +44,10 @@ cloud configuration at
password: verybadpass
url: vcenter03.domain.com
'''
-from __future__ import absolute_import
#... | Move imports out of functions to top of file | py |
diff --git a/miniutils/pragma/__init__.py b/miniutils/pragma/__init__.py
index <HASH>..<HASH> 100644
--- a/miniutils/pragma/__init__.py
+++ b/miniutils/pragma/__init__.py
@@ -2,3 +2,4 @@ from .collapse_literals import collapse_literals
from .core import *
from .deindex import deindex
from .unroll import unroll
+from... | Removed annulment of inline from master | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,12 @@
from setuptools import setup,find_packages
setup(name='pyjade',
- version = '1.7',
+ version = '1.8',
download_url = 'git@github.com:syrusakbary/pyjade.git',
packages = find_packages(... | Updated pyjade package version | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -23,7 +23,9 @@ import sphinx_bootstrap_theme
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sph... | Update sphinx conf.py | py |
diff --git a/tcconfig/_tc_script.py b/tcconfig/_tc_script.py
index <HASH>..<HASH> 100644
--- a/tcconfig/_tc_script.py
+++ b/tcconfig/_tc_script.py
@@ -29,17 +29,17 @@ def write_tc_script(tcconfig_command, command_history, filename_suffix=None):
if tcconfig_command != Tc.Command.TCSHOW:
script_line_list.ex... | Modify comments in generated tc scripts | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ with open('LICENSE') as f:
setup(
name='daemons',
- version='0.2.0',
+ version='0.2.1',
url='https://github.com/kevinconway/daemons',
license=license,
description='Well behaved unix da... | Change: Version number of package for deploy Bumping the version to deploy the latest patch to PyPi. | py |
diff --git a/clustergrammer/__init__.py b/clustergrammer/__init__.py
index <HASH>..<HASH> 100644
--- a/clustergrammer/__init__.py
+++ b/clustergrammer/__init__.py
@@ -394,8 +394,6 @@ class Network(object):
def enrichrgram(self, lib, axis='row'):
df = self.export_df()
df, bar_info = enr_fun.add_enrichr_cats... | version <I> pre-calc enrichrgram on back end | py |
diff --git a/mama_cas/exceptions.py b/mama_cas/exceptions.py
index <HASH>..<HASH> 100644
--- a/mama_cas/exceptions.py
+++ b/mama_cas/exceptions.py
@@ -13,6 +13,21 @@ class InvalidRequest(ValidationError):
code = 'INVALID_REQUEST'
+class InvalidTicketSpec(ValidationError):
+ """Failure to meet the requiremen... | Add additional CAS <I> exceptions | py |
diff --git a/holoviews/core/dimension.py b/holoviews/core/dimension.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/dimension.py
+++ b/holoviews/core/dimension.py
@@ -202,7 +202,7 @@ class LabelledData(param.Parameterized):
return specification[:len(split_spec)] == split_spec
- def traverse(self, fn... | Added full_breadth option to LabelledData.traverse full_breadth determines whether the all subelements of the tree are traversed or just the first item. This may be desirable for when objects are known to be homogenous. | py |
diff --git a/eemeter/segmentation.py b/eemeter/segmentation.py
index <HASH>..<HASH> 100644
--- a/eemeter/segmentation.py
+++ b/eemeter/segmentation.py
@@ -136,6 +136,9 @@ class SegmentedModel(object):
with :any:`json.dumps`.
"""
+ def _json_or_none(obj):
+ return None if obj is Non... | Added json_or_none back in | py |
diff --git a/timepiece/tests/projects.py b/timepiece/tests/projects.py
index <HASH>..<HASH> 100644
--- a/timepiece/tests/projects.py
+++ b/timepiece/tests/projects.py
@@ -58,7 +58,19 @@ class ProjectTestCase(TimepieceDataTestCase):
timepiece.ProjectRelationship.objects.all().delete()
self.assertEquals... | refs #<I> - Updated tests to reflect migration to django-selectable | py |
diff --git a/test/test_Cosmo/test_cosmo_param.py b/test/test_Cosmo/test_cosmo_param.py
index <HASH>..<HASH> 100644
--- a/test/test_Cosmo/test_cosmo_param.py
+++ b/test/test_Cosmo/test_cosmo_param.py
@@ -20,6 +20,11 @@ class TestParam(object):
for k in range(len(args)):
npt.assert_almost_equal(args... | cosmo_param tests improved | py |
diff --git a/Throw/Thrower.py b/Throw/Thrower.py
index <HASH>..<HASH> 100644
--- a/Throw/Thrower.py
+++ b/Throw/Thrower.py
@@ -132,7 +132,7 @@ class Thrower(object):
if '@' not in usernm:
usernm += '@gmail.com'
- server = smtplib.SMTP('smtp.gmail.com')
+ server = sm... | use the correct TLS port for gmail | py |
diff --git a/wurlitzer.py b/wurlitzer.py
index <HASH>..<HASH> 100644
--- a/wurlitzer.py
+++ b/wurlitzer.py
@@ -210,9 +210,9 @@ class Wurlitzer(object):
data = os.read(fd, 1024)
if not data:
# pipe closed, stop polling it
- os.clos... | closing socket descriptor after removing from array and unregistering from poller | py |
diff --git a/proso_user/api_test.py b/proso_user/api_test.py
index <HASH>..<HASH> 100644
--- a/proso_user/api_test.py
+++ b/proso_user/api_test.py
@@ -32,8 +32,11 @@ class UserAPITest(TestCase):
"id": 1,
"public": False
}
+ response = json.loads(response.content)['data']
+ ... | fix user api test - ignore user id and profile id | py |
diff --git a/pug/nlp/djdb.py b/pug/nlp/djdb.py
index <HASH>..<HASH> 100644
--- a/pug/nlp/djdb.py
+++ b/pug/nlp/djdb.py
@@ -2036,7 +2036,8 @@ def generate_queryset_batches(queryset, batch_len=1000, verbosity=1):
True
"""
if batch_len == 1:
- return (obj for obj in queryset)
+ for obj in quer... | generators can't return anything except None so converted return to yield | py |
diff --git a/mbed/mbed.py b/mbed/mbed.py
index <HASH>..<HASH> 100644
--- a/mbed/mbed.py
+++ b/mbed/mbed.py
@@ -1097,7 +1097,7 @@ class Repo(object):
@classmethod
def isinsecure(cls, url):
up = urlparse(url)
- return not up or (up.scheme and up.scheme not in ['http', 'https', 'ssh', 'git']) or ... | Fix isinsecure() ambiguity | py |
diff --git a/pysolr.py b/pysolr.py
index <HASH>..<HASH> 100644
--- a/pysolr.py
+++ b/pysolr.py
@@ -58,7 +58,7 @@ except NameError:
# Python 3.X
unicode_char = chr
# Ugh.
- long = int
+ long = int # NOQA: A001
__author__ = 'Daniel Lindsley, Joseph Kocherhans, Jacob Kaplan-Moss'
@@ -1158,7 +115... | Allow built-in shadowing on Python 2 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,6 +21,10 @@ ENCODING = "utf8"
pkg_info = {}
+def need_pytest():
+ return set(["pytest", "test", "ptr"]).intersection(sys.argv)
+
+
with open(os.path.join(MODULE_NAME, "__version__.py")) as f:
exec(f.read(), p... | Extract a function that gets pytest-runner requirement | py |
diff --git a/underwear/run_underwear.py b/underwear/run_underwear.py
index <HASH>..<HASH> 100644
--- a/underwear/run_underwear.py
+++ b/underwear/run_underwear.py
@@ -96,7 +96,7 @@ def deploy(args):
sudo_pass=sudopass,
extra_vars=extra_vars,
private_key_file=options.private_key_file,
- ... | updating script to include ansible playbook execution hook | py |
diff --git a/elasticsearch/client/__init__.py b/elasticsearch/client/__init__.py
index <HASH>..<HASH> 100644
--- a/elasticsearch/client/__init__.py
+++ b/elasticsearch/client/__init__.py
@@ -200,7 +200,7 @@ class Elasticsearch(object):
params=params)
return data
- @query_params('exclude', 'in... | Normalizing the source filtering params of get_source with the rest of the API | py |
diff --git a/flask_unchained/bundles/sqlalchemy/extensions/migrate.py b/flask_unchained/bundles/sqlalchemy/extensions/migrate.py
index <HASH>..<HASH> 100644
--- a/flask_unchained/bundles/sqlalchemy/extensions/migrate.py
+++ b/flask_unchained/bundles/sqlalchemy/extensions/migrate.py
@@ -13,7 +13,7 @@ class Migrate(BaseM... | make default setting of the alembic migrations folder to be accessible from current_app | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,6 @@ setup(
'docopt',
'soundcloud',
'wget',
- 'configparser',
'mutagen'
],
data_files=[ | fix: configparser is built in with python3 | py |
diff --git a/ipyrad/analysis/__init__.py b/ipyrad/analysis/__init__.py
index <HASH>..<HASH> 100644
--- a/ipyrad/analysis/__init__.py
+++ b/ipyrad/analysis/__init__.py
@@ -20,13 +20,16 @@ from ipyrad import __version__
# conda install bucky -c ipyrad
# conda install bpp -c ipyrad
-# tested in 0.9.5
+# tested in 0.9.... | added snps_ext and snp_imp to tools | py |
diff --git a/ants/segmentation/joint_label_fusion.py b/ants/segmentation/joint_label_fusion.py
index <HASH>..<HASH> 100644
--- a/ants/segmentation/joint_label_fusion.py
+++ b/ants/segmentation/joint_label_fusion.py
@@ -85,7 +85,11 @@ def joint_label_fusion(
this will constrain the solution only to voxels that ... | DOC: say more about max plus one | py |
diff --git a/django_tablib/datasets.py b/django_tablib/datasets.py
index <HASH>..<HASH> 100644
--- a/django_tablib/datasets.py
+++ b/django_tablib/datasets.py
@@ -9,11 +9,11 @@ class SimpleDataset(BaseDataset):
fields = queryset.model._meta.fields
self.header_list = [field.name for field in fi... | Use isinstance to check type This should also allow to use subtypes like a SortedDict to pass in headers. | py |
diff --git a/src/cone/ugm/browser/users.py b/src/cone/ugm/browser/users.py
index <HASH>..<HASH> 100644
--- a/src/cone/ugm/browser/users.py
+++ b/src/cone/ugm/browser/users.py
@@ -48,13 +48,9 @@ class UsersColumnListing(ColumnListing):
def query_items(self):
col_1_attr, col_2_attr, col_3_attr, sort_attr = ... | don't catch LDAP exceptions | py |
diff --git a/ipa/scripts/cli.py b/ipa/scripts/cli.py
index <HASH>..<HASH> 100644
--- a/ipa/scripts/cli.py
+++ b/ipa/scripts/cli.py
@@ -287,7 +287,7 @@ def test(context,
sys.exit(1)
-@click.group()
+@click.group(invoke_without_command=True)
@click.option(
'--history-log',
default=IPA_HISTORY_FILE... | ipa results command invokes show. If no subcommand is provided invoke show with default value of 1. | py |
diff --git a/GPy/inference/latent_function_inference/expectation_propagation.py b/GPy/inference/latent_function_inference/expectation_propagation.py
index <HASH>..<HASH> 100644
--- a/GPy/inference/latent_function_inference/expectation_propagation.py
+++ b/GPy/inference/latent_function_inference/expectation_propagation.... | added some clarifying comments with NDL | py |
diff --git a/osprey/dataset_loaders.py b/osprey/dataset_loaders.py
index <HASH>..<HASH> 100644
--- a/osprey/dataset_loaders.py
+++ b/osprey/dataset_loaders.py
@@ -279,3 +279,39 @@ class SklearnDatasetLoader(BaseDatasetLoader):
y = bunch[self.y_name]
return X, y
+
+
+class FsPeptideDatasetLoader(Base... | Add MSMBuilder example dataset loaders These have been useful for me personally— maybe for others as well? | py |
diff --git a/lib/search_engine_summarizer.py b/lib/search_engine_summarizer.py
index <HASH>..<HASH> 100644
--- a/lib/search_engine_summarizer.py
+++ b/lib/search_engine_summarizer.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
## This file is part of Invenio.
-## Copyright (C) 2008, 2010, 2011 CERN.
+## Copyright (C) 2... | WebSearch: fix for empty coathors * When summarising co-authors for an empty author name, get_coauthors() was entering runaway loop, leading to intbitset iteration exception. This patch fixes the problem. Thanks to Benoit Thiell for reporting the problem. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,8 +20,8 @@ tests_require = [
"pymongo==2.1.1",
"redis==2.4.9",
"gevent",
- "pyvows==2.0.4",
- "preggy==0.6.2",
+ "pyvows==2.0.6",
+ "preggy==0.11.1",
"tornado-pyvows==0.5.2",
"coverage"... | Updated pyvows to support capture_error. | py |
diff --git a/pytmatrix/psd.py b/pytmatrix/psd.py
index <HASH>..<HASH> 100644
--- a/pytmatrix/psd.py
+++ b/pytmatrix/psd.py
@@ -241,9 +241,7 @@ class BinnedPSD(PSD):
def __eq__(self, other):
if self is None or other is None:
- if self is None and other is None:
- return True... | neater way to do the fix for python3 | py |
diff --git a/tests/test_integration.py b/tests/test_integration.py
index <HASH>..<HASH> 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -484,7 +484,12 @@ class TestSonosPlaylist(object):
with pytest.raises(SoCoUPnPException):
soco.remove_sonos_playlist("SQ:-7")
#... | Improve test_remove_playlist_bad_id() to accommodate no existing playlists | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,13 +49,9 @@ setup(
'aiohttp==0.15.1',
'appdirs==1.4.0',
'purplex==0.2.4',
- 'requests==2.3.0',
- # use forked robobrowser that will install with pip 6.0+
- 'hangups-robobrows... | Update robobrowser and requests | py |
diff --git a/nfc/ndef/wifi_record.py b/nfc/ndef/wifi_record.py
index <HASH>..<HASH> 100644
--- a/nfc/ndef/wifi_record.py
+++ b/nfc/ndef/wifi_record.py
@@ -92,7 +92,6 @@ class WifiConfigRecord(Record):
@property
def data(self):
f = io.BytesIO()
- write_attribute(f, VERSION1, '\x10')
... | Don't write WPS legacy version (<I>) attribute. A two years old Android implementation change made it no longer recognize the Credential if not in first place. While this was corrected about two month ago, there seems still no point in supporting this legacy attribute (according to WPS <I>) | py |
diff --git a/cherrypy/restsrv/plugins.py b/cherrypy/restsrv/plugins.py
index <HASH>..<HASH> 100644
--- a/cherrypy/restsrv/plugins.py
+++ b/cherrypy/restsrv/plugins.py
@@ -366,7 +366,7 @@ class Autoreloader(Monitor):
else:
if mtime is None or mtime > oldtime:
... | Bug in autoreloader (should call restart instead of publish; this allows stop() to shut down sockets, etc). | py |
diff --git a/tools/pip/setup.py b/tools/pip/setup.py
index <HASH>..<HASH> 100644
--- a/tools/pip/setup.py
+++ b/tools/pip/setup.py
@@ -146,7 +146,7 @@ short_description += ' This version uses {0}.'.format(' and '.join(libraries))
package_data = {'mxnet': [os.path.join('mxnet', os.path.basename(LIB_PATH[0]))],
... | Fix tools/pip/setup.py (#<I>) | py |
diff --git a/lib/webinterface_handler_flask.py b/lib/webinterface_handler_flask.py
index <HASH>..<HASH> 100644
--- a/lib/webinterface_handler_flask.py
+++ b/lib/webinterface_handler_flask.py
@@ -463,14 +463,14 @@ def create_invenio_flask_app(**kwargs_config):
"""
if plugin.__name__ in CFG_FLASK_DISABL... | WebStyle: fix blueprint loading refactoring issue * Fixes an issue introduced during refactoring from pluginutils to importutils loading of blueprints. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -50,8 +50,9 @@ setup(
version=version,
description=u"Planet SDK for Python",
long_description=Path("README.md").read_text("utf-8"),
+ long_description_content_type="text/markdown",
classifiers=[
- ... | Update setup: content type and dev status | py |
diff --git a/debugtools/formatter.py b/debugtools/formatter.py
index <HASH>..<HASH> 100644
--- a/debugtools/formatter.py
+++ b/debugtools/formatter.py
@@ -113,8 +113,8 @@ def pformat_django_context_html(object):
if len(spec.args) == 1 or len(spec.args) == len(spec.defaults or ()) + 1:
... | Clarify the "<skipped for safety reasons ..>" message for `...delete...()` and `...save...()` methods in the `{% print %}` output. | py |
diff --git a/raiden/settings.py b/raiden/settings.py
index <HASH>..<HASH> 100644
--- a/raiden/settings.py
+++ b/raiden/settings.py
@@ -23,9 +23,9 @@ DEFAULT_JOINABLE_FUNDS_TARGET = 0.4
DEFAULT_INITIAL_CHANNEL_TARGET = 3
DEFAULT_WAIT_FOR_SETTLE = True
-DEFAULT_NAT_KEEPALIVE_RETRIES = 2
-DEFAULT_NAT_KEEPALIVE_TIMEOUT... | more frequent defaults for healthchecking | py |
diff --git a/filesystems/tests/common.py b/filesystems/tests/common.py
index <HASH>..<HASH> 100644
--- a/filesystems/tests/common.py
+++ b/filesystems/tests/common.py
@@ -738,6 +738,22 @@ class TestFS(object):
os.strerror(errno.EEXIST) + ": " + str(not_a_dir),
)
+ def test_create_existing_dir... | Another missing test for creating directories from existing links. | py |
diff --git a/stagpy/stagyyparsers.py b/stagpy/stagyyparsers.py
index <HASH>..<HASH> 100644
--- a/stagpy/stagyyparsers.py
+++ b/stagpy/stagyyparsers.py
@@ -721,6 +721,8 @@ def read_field_h5(xdmf_file, fieldname, snapshot, header=None):
fld = fld.reshape((shp[0], shp[1], 1, shp[2]))
if h... | read_field_h5 understands cartesian XZ | py |
diff --git a/tests/test_pipelines_conversational.py b/tests/test_pipelines_conversational.py
index <HASH>..<HASH> 100644
--- a/tests/test_pipelines_conversational.py
+++ b/tests/test_pipelines_conversational.py
@@ -134,10 +134,10 @@ class SimpleConversationPipelineTests(unittest.TestCase):
generated_respon... | Fixing tests. It seems master changed something in the warnings. (#<I>) Trying to keep warning tests for now. Should be discarded if it becomes too hard to maintain. | py |
diff --git a/lighthouse/reporter.py b/lighthouse/reporter.py
index <HASH>..<HASH> 100644
--- a/lighthouse/reporter.py
+++ b/lighthouse/reporter.py
@@ -91,11 +91,6 @@ class Reporter(ConfigWatcher):
):
logger.debug("Running checks. (%s)", service.name)
- if not service.checks:
- ... | Report up but still warn if no checks for service. | py |
diff --git a/tests/test_decorators.py b/tests/test_decorators.py
index <HASH>..<HASH> 100644
--- a/tests/test_decorators.py
+++ b/tests/test_decorators.py
@@ -520,6 +520,13 @@ def test_input_format():
return body
assert hug.test.get(api, 'hello', body={'should': 'work'}).data == {'no': 'relation'}
+
+ ... | Add test to ensure an empty body will work correctly | py |
diff --git a/tests/test_optimize.py b/tests/test_optimize.py
index <HASH>..<HASH> 100644
--- a/tests/test_optimize.py
+++ b/tests/test_optimize.py
@@ -39,7 +39,7 @@ class TestUpDown(TestCase):
'amplitude': 30,
'base_price': 50
}
- setup_logger(self, '/var/log/qexec/qexec.log')
... | Removes qexec reference from test logger. | py |
diff --git a/asks/request_object.py b/asks/request_object.py
index <HASH>..<HASH> 100644
--- a/asks/request_object.py
+++ b/asks/request_object.py
@@ -87,6 +87,7 @@ class RequestProcessor:
self.port = port
self.auth = None
self.auth_off_domain = None
+ self.body = None
self.da... | Add body attribute to request instance Some authentication apis need to access the body of a request, in order to sign it. This patch adds the body attribute and stores the result of _formulate_body in this attribute, so that it will be available during auth generation later. | py |
diff --git a/publisher/admin.py b/publisher/admin.py
index <HASH>..<HASH> 100644
--- a/publisher/admin.py
+++ b/publisher/admin.py
@@ -2,7 +2,7 @@ import json
from django.contrib.admin import ModelAdmin, SimpleListFilter
from django.contrib import messages
-from django.conf.urls import patterns, url
+from django.co... | Fix compatibility problem with old django url patterns. This object is now deprecated instead replaced by lists of url() objects. | py |
diff --git a/chicken_turtle_util/click.py b/chicken_turtle_util/click.py
index <HASH>..<HASH> 100644
--- a/chicken_turtle_util/click.py
+++ b/chicken_turtle_util/click.py
@@ -33,22 +33,20 @@ argument = partial(click.argument, required=True)
password_option = partial(option, prompt=True, hide_input=True, show_default=F... | click.assert_runs: pass on all args to invoke() | py |
diff --git a/openid/message.py b/openid/message.py
index <HASH>..<HASH> 100644
--- a/openid/message.py
+++ b/openid/message.py
@@ -290,10 +290,11 @@ class Message(object):
raise UndefinedOpenIDNamespace('OpenID namespace not set')
else:
namespace = self._openid_ns_uri
- ... | [project @ Improved type-checking in Message._fixNS] | py |
diff --git a/server_setup.py b/server_setup.py
index <HASH>..<HASH> 100755
--- a/server_setup.py
+++ b/server_setup.py
@@ -32,7 +32,7 @@ setup(
'unittest2>=1.1.0',
'chardet>=3.0.2',
'boto>=2.46.1',
- 'ipdb>=0.10.2',
+ 'ipdb==0.10.2',
'pyvirtualdisplay>=0.2.1',
... | Lock ipdb version to <I> | py |
diff --git a/manage.py b/manage.py
index <HASH>..<HASH> 100755
--- a/manage.py
+++ b/manage.py
@@ -82,15 +82,7 @@ def test(where=None, stop=False, tox=False):
"""Run nose and script tests"""
opts = '-xv' if stop else '-v'
opts += 'w %s' % where if where else ''
-
- try:
- if tox:
- c... | BUGFIX: fix test command | py |
diff --git a/pythonforandroid/toolchain.py b/pythonforandroid/toolchain.py
index <HASH>..<HASH> 100755
--- a/pythonforandroid/toolchain.py
+++ b/pythonforandroid/toolchain.py
@@ -835,7 +835,7 @@ class Context(object):
toolchain_version = '4.4.3'
elif self.ndk_ver[:2] == 'r9':
toolchai... | Fixed toolchain version typo for ndk r9 | py |
diff --git a/troposphere/events.py b/troposphere/events.py
index <HASH>..<HASH> 100644
--- a/troposphere/events.py
+++ b/troposphere/events.py
@@ -39,6 +39,12 @@ class RunCommandParameters(AWSProperty):
}
+class SqsParameters(AWSProperty):
+ props = {
+ 'MessageGroupId': (basestring, True),
+ }
+
... | Add SqsParameters support to Rule Target (#<I>) Contains the message group ID to use when the target is a FIFO queue. See for more info <URL> | py |
diff --git a/tests/test_fixtures.py b/tests/test_fixtures.py
index <HASH>..<HASH> 100644
--- a/tests/test_fixtures.py
+++ b/tests/test_fixtures.py
@@ -21,9 +21,28 @@ class TestFoo(unittest.TestCase, FixturesMixin):
# Your tests go here
+ def setUp(self):
+ # Make sure that the user defined setUp meth... | Modified the tests to make sure that setup and tear down functions work properly | py |
diff --git a/pysat/_files.py b/pysat/_files.py
index <HASH>..<HASH> 100644
--- a/pysat/_files.py
+++ b/pysat/_files.py
@@ -948,11 +948,8 @@ class Files(object):
"(dir_path)")))
# Parse format string to figure out which search string should be used
- # to identif... | ENH: Correctly removed wildcard option from delimited parsing. | py |
diff --git a/mintapi/api.py b/mintapi/api.py
index <HASH>..<HASH> 100644
--- a/mintapi/api.py
+++ b/mintapi/api.py
@@ -663,7 +663,7 @@ def main():
options.net_worth]):
options.accounts = True
- mint = Mint.create(email, password, ius_session=options.session, thx_guid=options.session)
+ ... | fix command line thx_guid | py |
diff --git a/ipywebrtc/_version.py b/ipywebrtc/_version.py
index <HASH>..<HASH> 100644
--- a/ipywebrtc/_version.py
+++ b/ipywebrtc/_version.py
@@ -1,6 +1,6 @@
__version_tuple__ = (0, 4, 1)
-__version_tuple_js__ = (0, 4, 0)
+__version_tuple_js__ = (0, 4, 1)
__version__ = '0.4.1'
-__version_js__ = '0.4.0'
+__version_js... | Release <I> of js | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ with open('README.rst') as f:
extras_require = {
'voice': ['PyNaCl>=1.3.0,<1.5'],
'docs': [
- 'sphinx==3.0.3',
+ 'sphinx==3.5.3',
'sphinxcontrib_trio==1.1.2',
'sphinxco... | Update Sphinx to <I> | py |
diff --git a/icekit/publishing/models.py b/icekit/publishing/models.py
index <HASH>..<HASH> 100644
--- a/icekit/publishing/models.py
+++ b/icekit/publishing/models.py
@@ -132,7 +132,7 @@ class PublishingModel(models.Model):
if self.is_published:
return True
elif self.is_draft:
- ... | Fix excessive & unnecessary DB queries when querying published items Check a model FK attribute to detect whether an an item has a related published copy, instead of loading and throwing away the entire published copy object. This was a particularly brutal error because the `has_been_published()` method is called man... | py |
diff --git a/django_extensions/admin/__init__.py b/django_extensions/admin/__init__.py
index <HASH>..<HASH> 100644
--- a/django_extensions/admin/__init__.py
+++ b/django_extensions/admin/__init__.py
@@ -60,7 +60,7 @@ class ForeignKeyAutocompleteAdmin(ModelAdmin):
return self.admin_site.admin_view(view)... | update module_name to model_name in Django <I>, the alias module_name was removed, the correct usage is model_name | py |
diff --git a/fcn/data.py b/fcn/data.py
index <HASH>..<HASH> 100644
--- a/fcn/data.py
+++ b/fcn/data.py
@@ -27,6 +27,9 @@ def cached_download(url, path, md5=None, quiet=False):
elif osp.exists(path) and md5 and check_md5(path, md5):
return path
else:
+ dirpath = osp.dirname(path)
+ if no... | Create dirpath in cached_download | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.