diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/robber/explanation.py b/robber/explanation.py
index <HASH>..<HASH> 100644
--- a/robber/explanation.py
+++ b/robber/explanation.py
@@ -2,11 +2,28 @@ from difflib import Differ
class Explanation:
+ """
+ This class gives use a simple way to implement explanations for your expectations.
+ """
... | [f] Add docstrings for Explanation | py |
diff --git a/openquake/server/views.py b/openquake/server/views.py
index <HASH>..<HASH> 100644
--- a/openquake/server/views.py
+++ b/openquake/server/views.py
@@ -358,8 +358,7 @@ def run_calc(request):
user = utils.get_user_data(request)
try:
- job_id = cmdserver.cmd.start(
- 'submit_job',... | Used the CmdServer as a library in the web UI | py |
diff --git a/dataviews/plotting/sheetplots.py b/dataviews/plotting/sheetplots.py
index <HASH>..<HASH> 100644
--- a/dataviews/plotting/sheetplots.py
+++ b/dataviews/plotting/sheetplots.py
@@ -153,7 +153,7 @@ class VectorFieldPlot(Plot):
max_magnitude = self._max_magnitude if self._max_magnitude else max(magnitu... | Fixed bug in VectorFieldPlot magnitude normalization Division by zero error was raised when VectorField had zero magnitude, normalization now skipped. | py |
diff --git a/tests/config_test.py b/tests/config_test.py
index <HASH>..<HASH> 100644
--- a/tests/config_test.py
+++ b/tests/config_test.py
@@ -1,6 +1,6 @@
import gc
import os
-import sys
+import platform
import tempfile
import time
@@ -72,7 +72,7 @@ class TestConfigurationNamespace(object):
self.name... | Adapted PyPy check to use platform.python_implementation | py |
diff --git a/sprinter/manifest.py b/sprinter/manifest.py
index <HASH>..<HASH> 100644
--- a/sprinter/manifest.py
+++ b/sprinter/manifest.py
@@ -96,7 +96,7 @@ class Manifest(object):
for k, v in self.manifest.items(s):
context_dict["%s:%s" % (s, k)] = v
return_dict = dict(context_di... | If a value is none, don't iterate over it | py |
diff --git a/salt/modules/dockerng.py b/salt/modules/dockerng.py
index <HASH>..<HASH> 100644
--- a/salt/modules/dockerng.py
+++ b/salt/modules/dockerng.py
@@ -460,12 +460,18 @@ def __virtual__():
Only load if docker libs are present
'''
if HAS_DOCKER_PY:
- docker_py_versioninfo = _get_docker_py_ve... | check if docker is running This fixes #<I> | py |
diff --git a/wagtailmodeladmin/recipes/treebeard/views.py b/wagtailmodeladmin/recipes/treebeard/views.py
index <HASH>..<HASH> 100644
--- a/wagtailmodeladmin/recipes/treebeard/views.py
+++ b/wagtailmodeladmin/recipes/treebeard/views.py
@@ -106,3 +106,6 @@ class TreebeardMoveView(ObjectSpecificView, WMAFormView):
... | Added get_template_names method to `TreebeardMoveView` | py |
diff --git a/src/gordon_gcp/plugins/janitor/authority.py b/src/gordon_gcp/plugins/janitor/authority.py
index <HASH>..<HASH> 100644
--- a/src/gordon_gcp/plugins/janitor/authority.py
+++ b/src/gordon_gcp/plugins/janitor/authority.py
@@ -183,9 +183,10 @@ class GCEAuthority:
try:
rrsets.append... | Print only instance name on rrset creation failure | py |
diff --git a/rollyourown/seo/base.py b/rollyourown/seo/base.py
index <HASH>..<HASH> 100644
--- a/rollyourown/seo/base.py
+++ b/rollyourown/seo/base.py
@@ -20,8 +20,7 @@ from django.utils.encoding import iri_to_uri
from rollyourown.seo.utils import NotSet, Literal
from rollyourown.seo.options import Options
from roll... | Missed broken import in last commit (masked by old pyc files lying around) | py |
diff --git a/grey_harvest.py b/grey_harvest.py
index <HASH>..<HASH> 100755
--- a/grey_harvest.py
+++ b/grey_harvest.py
@@ -10,7 +10,7 @@
''' application (see README.md).
"""
-__version__ = '0.1.5'
+__version__ = '0.1.6'
__author__ = 'Gabriel "s0lst1c3" Ryan'
__license__ = 'MIT'
__copyright_... | Update grey_harvest.py | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -64,6 +64,15 @@ def _getargs(func):
return aspec
+def trim_req(req):
+ '''
+ Trim any function off of a requisite
+ '''
+ if '.' in req.keys()[0]:
+ return {req.keys()[0].split('... | Allow the new syntax to be used in requisites This fixes #<I> | py |
diff --git a/scrapelib/__init__.py b/scrapelib/__init__.py
index <HASH>..<HASH> 100644
--- a/scrapelib/__init__.py
+++ b/scrapelib/__init__.py
@@ -492,12 +492,8 @@ def scrapeshell(): # pragma: no cover
try:
from IPython import embed
except ImportError:
- try:
- from... | drop support for old versions of IPython | py |
diff --git a/pysynphot/spectrum.py b/pysynphot/spectrum.py
index <HASH>..<HASH> 100644
--- a/pysynphot/spectrum.py
+++ b/pysynphot/spectrum.py
@@ -2467,7 +2467,7 @@ class SpectralElement(Integrator):
"""
# See https://aeon.stsci.edu/ssb/trac/astrolib/ticket/169
- return self.__call__(self._wa... | Fix broken call in ObsBandpass | py |
diff --git a/tilequeue/command.py b/tilequeue/command.py
index <HASH>..<HASH> 100755
--- a/tilequeue/command.py
+++ b/tilequeue/command.py
@@ -1538,12 +1538,18 @@ def tilequeue_process_tile(cfg, peripherals, args):
data_fetcher = make_data_fetcher(cfg, layer_data, query_cfg, io_pool)
+ nominal_zoom = coord.... | Add support for configured nominal zoom to single tile processing. Only the first (zero'th) JSON tile will be output, so this isn't terribly useful in the command itself, but can be very useful when trying to replicate failures on a single (meta)tile. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -290,8 +290,16 @@ install_requires = [
extras_require = {
'test:python_version == "2.7"': ['mock'],
- 'test': ['pytest', 'pytest-qt', 'pytest-cov', 'mock', 'coveralls',
- 'flaky', 'pandas', 'scipy', 'sym... | setup.py: Add missing matplotlib test dependency Also remove coveralls because it's not needed to do testing | py |
diff --git a/pyplink/tests/__init__.py b/pyplink/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/pyplink/tests/__init__.py
+++ b/pyplink/tests/__init__.py
@@ -23,7 +23,9 @@
# THE SOFTWARE.
+import pkgutil
import unittest
+from importlib import import_module
__author__ = "Louis-Philippe Lemieux Perreault"... | Change the way tests are discover (so that it will work even in an egg) | py |
diff --git a/satpy/readers/olci_nc.py b/satpy/readers/olci_nc.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/olci_nc.py
+++ b/satpy/readers/olci_nc.py
@@ -15,7 +15,21 @@
#
# You should have received a copy of the GNU General Public License along with
# satpy. If not, see <http://www.gnu.org/licenses/>.
-"""Sent... | Add some documentation for the new `engine` option in the OLCI reader. | py |
diff --git a/slave/core.py b/slave/core.py
index <HASH>..<HASH> 100644
--- a/slave/core.py
+++ b/slave/core.py
@@ -185,9 +185,9 @@ class Command(object):
raise AttributeError('Command is not writeable')
if isinstance(self.connection, SimulatedConnection):
# If queriable and types matc... | Fixed non functioning simulation mode in write-only commands. | py |
diff --git a/dev/tests.py b/dev/tests.py
index <HASH>..<HASH> 100644
--- a/dev/tests.py
+++ b/dev/tests.py
@@ -22,23 +22,31 @@ test_classes = [KDFTests, KeyTests, PublicKeyTests, SymmetricTests, TrustListTes
def run(matcher=None, repeat=1):
- suite = unittest.TestSuite()
loader = unittest.TestLoader()
+ ... | Fix a bug with Python <I> on Windows resetting test suites after running | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,11 @@ if __name__ == '__main__':
author_email=package_about['__email__'],
url=package_about['__url__'],
packages=find_packages(),
+ entry_points={
+ 'console_scripts': [
+... | added entry point to generate cobald executable | py |
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/parallel.py
+++ b/openquake/baselib/parallel.py
@@ -804,7 +804,7 @@ class Starmap(object):
'is job %d', res.mon.calc_id, self.calc_id)
elif res.msg... | [skip CI] Former-commit-id: <I>bdb1bfce1f5dbd<I>abeee<I>e<I> [formerly 2b<I>ab3bd<I>f<I>e7c2dcc<I>b<I>b<I>b] Former-commit-id: <I>e<I>f9a9c<I>ad<I>b<I>c7c1a5 | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -3480,12 +3480,7 @@ def open_files(by_pid=False):
fd_.append('{0}/fd/{1}'.format(ppath, fpath))
for tid in tids:
- try:
- fd_.ap... | Try/Except block not needed here | py |
diff --git a/wiring/categories.py b/wiring/categories.py
index <HASH>..<HASH> 100644
--- a/wiring/categories.py
+++ b/wiring/categories.py
@@ -22,7 +22,7 @@ class Category(tuple):
graph = Graph()
graph.register_instance(Public('database', 1), 'db://public/1')
- graph.register_instance(Private... | Fix error in docstring example. | py |
diff --git a/tests/EstimatorTest.py b/tests/EstimatorTest.py
index <HASH>..<HASH> 100644
--- a/tests/EstimatorTest.py
+++ b/tests/EstimatorTest.py
@@ -42,7 +42,7 @@ if version_info[:2] < (3, 5):
environ['SKLEARN_PORTER_PYTEST'] = 'True'
-SERIALIZED_MODEL = TESTS_DIR / '..' / 'examples' / 'recipes' / 'dump_estimato... | release/<I>: Copy and move pickled estimator to `tests/resources` | py |
diff --git a/gns3server/compute/dynamips/nodes/atm_switch.py b/gns3server/compute/dynamips/nodes/atm_switch.py
index <HASH>..<HASH> 100644
--- a/gns3server/compute/dynamips/nodes/atm_switch.py
+++ b/gns3server/compute/dynamips/nodes/atm_switch.py
@@ -83,7 +83,7 @@ class ATMSwitch(Device):
:param new_name: New ... | Fix wrong Dynamips command used to rename an ATM switch. Fixes #<I> | py |
diff --git a/src/main/config/home/harvest/workflows/dataset-rules.py b/src/main/config/home/harvest/workflows/dataset-rules.py
index <HASH>..<HASH> 100644
--- a/src/main/config/home/harvest/workflows/dataset-rules.py
+++ b/src/main/config/home/harvest/workflows/dataset-rules.py
@@ -189,14 +189,15 @@ class IndexData:
... | refs #<I> new dataset records now start at the investigation stage | py |
diff --git a/nicfit/__main__.py b/nicfit/__main__.py
index <HASH>..<HASH> 100644
--- a/nicfit/__main__.py
+++ b/nicfit/__main__.py
@@ -85,7 +85,7 @@ class Requirements(nicfit.Command):
return
reqs_dir = reqs_file.parent
- reqs_yaml = yaml.load(reqs_file.open())
+ reqs_yaml = yaml.s... | fix: use yaml.safe_load | py |
diff --git a/tests/test_source_finder.py b/tests/test_source_finder.py
index <HASH>..<HASH> 100755
--- a/tests/test_source_finder.py
+++ b/tests/test_source_finder.py
@@ -152,17 +152,13 @@ def test_find_and_prior_sources():
def test_find_and_prior_parallel():
"""Test find/piroirze with parallel operation"""
... | allow multiple cores in py3 update expected sources due to 'inline' calculation of curvature | py |
diff --git a/tools.py b/tools.py
index <HASH>..<HASH> 100644
--- a/tools.py
+++ b/tools.py
@@ -6,9 +6,9 @@ tools.py:
"""
__author__ = 'Jason R. Coombs <jaraco@sandia.gov>'
-__version__ = '$Revision: 28 $'[11:-2]
+__version__ = '$Revision: 29 $'[11:-2]
__vssauthor__ = '$Author: Jaraco $'[9:-2]
-__date__ = '$M... | Fixed hashSplit so now the queues are queried on the result value. This breaks one of the docstring tests (the last). I must contemplate this functionality. | py |
diff --git a/workalendar/tests/test_europe.py b/workalendar/tests/test_europe.py
index <HASH>..<HASH> 100644
--- a/workalendar/tests/test_europe.py
+++ b/workalendar/tests/test_europe.py
@@ -318,7 +318,7 @@ class CroatiaTest(GenericCalendarTest):
holidays[date(2020, 5, 1)], "International Workers' Day")
... | Consistent naming of test classes. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -32,8 +32,7 @@ setup(name='trovebox',
long_description=open("README.rst").read(),
author='Pete Burgers, James Walker',
url='https://github.com/photo/openphoto-python',
- packages=['trovebox'],
- ... | Add new sub-packages to setup.py. Don't install README.rst. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ from setuptools import setup
setup(
name='xdot',
- version='1.0',
+ version='1.1',
author='Jose Fonseca',
author_email='jose.r.fonseca@gmail.com',
url='https://github.com/jrfonseca/x... | Bump to version <I>. | py |
diff --git a/dwave/system/composites/embedding.py b/dwave/system/composites/embedding.py
index <HASH>..<HASH> 100644
--- a/dwave/system/composites/embedding.py
+++ b/dwave/system/composites/embedding.py
@@ -518,7 +518,9 @@ class AutoEmbeddingComposite(EmbeddingComposite):
def permissive_child_structure(sampler... | Catch the correct exception for child_structure_dfs in dimod | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -1324,13 +1324,15 @@ def managed(name,
group
The group ownership set for the file, this defaults to the group salt
- is running as on the minion On Windows, th... | file.py docs: correct group and mode | py |
diff --git a/tests/test_protection_levels.py b/tests/test_protection_levels.py
index <HASH>..<HASH> 100644
--- a/tests/test_protection_levels.py
+++ b/tests/test_protection_levels.py
@@ -20,7 +20,7 @@ class TestProtectionLevels(common.TrezorTest):
proto.PinMatrixRequest(),
... | don't try to change 2 things using apply_settings in unit test | py |
diff --git a/_pylab_tweaks.py b/_pylab_tweaks.py
index <HASH>..<HASH> 100644
--- a/_pylab_tweaks.py
+++ b/_pylab_tweaks.py
@@ -151,6 +151,29 @@ def click_estimate_difference():
return [c2[0][0]-c1[0][0], c2[0][1]-c1[0][1]]
+
+def copy_figure_to_clipboard(figure='gcf'):
+ """
+ Copies the specified figure... | Added copy_figure_to_clipboard() to tweaks Enjoy! | py |
diff --git a/junction/hub.py b/junction/hub.py
index <HASH>..<HASH> 100644
--- a/junction/hub.py
+++ b/junction/hub.py
@@ -329,7 +329,7 @@ class Hub(object):
return self.send_rpc(
service, routing_id, method, args, kwargs).wait(timeout)
- def rpc_receiver_count(self, service, routing_id, ... | missed a spot pulling 'method' from registrations | py |
diff --git a/pysparkling/sql/functions.py b/pysparkling/sql/functions.py
index <HASH>..<HASH> 100644
--- a/pysparkling/sql/functions.py
+++ b/pysparkling/sql/functions.py
@@ -2190,3 +2190,31 @@ def posexplode_outer(e):
:rtype: Column
"""
return col(PosExplodeOuter(e))
+
+
+def get_json_object(e, path):
+... | Clarify support of some json functions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ def get_version():
read('mozdownload', 'cli.py'), re.M)[0]
deps = ['mozinfo >= 0.9',
- 'progressbar == 2.3',
+ 'progressbar2 >= 3.34.3',
'redo == 1.6',
'... | Replace progressbar with progressbar2 (#<I>) | py |
diff --git a/sos/jupyter/test/utils.py b/sos/jupyter/test/utils.py
index <HASH>..<HASH> 100644
--- a/sos/jupyter/test/utils.py
+++ b/sos/jupyter/test/utils.py
@@ -35,12 +35,6 @@ from queue import Empty
KM = None
KC = None
-try:
- import feather
- feather
- with_feather = True
-except ImportError:
- with... | Move with_feather to test_kernel of R kernel | py |
diff --git a/salt/renderers/cheetah.py b/salt/renderers/cheetah.py
index <HASH>..<HASH> 100644
--- a/salt/renderers/cheetah.py
+++ b/salt/renderers/cheetah.py
@@ -13,7 +13,7 @@ except ImportError:
HAS_LIBS = False
# Import salt libs
-from six import string_types
+from salt.utils.six import string_types
def... | Replaced module six in file /salt/renderers/cheetah.py | py |
diff --git a/Kittens/__init__.py b/Kittens/__init__.py
index <HASH>..<HASH> 100644
--- a/Kittens/__init__.py
+++ b/Kittens/__init__.py
@@ -1 +1 @@
-__version__ = "0.4.0"
\ No newline at end of file
+__version__ = "1.4.0"
\ No newline at end of file | synx version numbers with github | py |
diff --git a/flask_gssapi.py b/flask_gssapi.py
index <HASH>..<HASH> 100644
--- a/flask_gssapi.py
+++ b/flask_gssapi.py
@@ -82,6 +82,7 @@ class GSSAPI(object):
b64_token = base64.b64encode(out_token).decode('utf-8')
auth_data = 'Negotiate {0}'.format(b64_token)
... | Store the principal in environ['REMOTE_USER'] This matches the behavior of other servers. | py |
diff --git a/assess_container_networking.py b/assess_container_networking.py
index <HASH>..<HASH> 100755
--- a/assess_container_networking.py
+++ b/assess_container_networking.py
@@ -369,10 +369,10 @@ def assess_container_networking(client, types):
# through for some hosts.
log.info("Instrumenting reboot of a... | Add a 1 minute delay to reboot. | py |
diff --git a/test_whichcraft.py b/test_whichcraft.py
index <HASH>..<HASH> 100644
--- a/test_whichcraft.py
+++ b/test_whichcraft.py
@@ -1,10 +1,11 @@
import os
-
+from datetime import date
import pytest
from whichcraft import which
+import sys
-
-def test_existing_command():
+@pytest.mark.skipif(sys.platform == "wi... | Update test_whichcraft.py | py |
diff --git a/Geometry/ellipse.py b/Geometry/ellipse.py
index <HASH>..<HASH> 100644
--- a/Geometry/ellipse.py
+++ b/Geometry/ellipse.py
@@ -271,7 +271,7 @@ class Ellipse(object):
else:
b.y += self.minorRadius
return b
-
+
@property
def b_neg(self):
@@ -405,10 +405,6 @@ clas... | removed classmethod circumscribingPoints | py |
diff --git a/pyimzml/centroid_detection.py b/pyimzml/centroid_detection.py
index <HASH>..<HASH> 100644
--- a/pyimzml/centroid_detection.py
+++ b/pyimzml/centroid_detection.py
@@ -45,9 +45,9 @@ def gradient(mzs,intensities,**opt_args):
if key in function_args.keys():
function_args[key] = val
... | making centroid_detection python3-compatible (print) | py |
diff --git a/sos/report/plugins/kernel.py b/sos/report/plugins/kernel.py
index <HASH>..<HASH> 100644
--- a/sos/report/plugins/kernel.py
+++ b/sos/report/plugins/kernel.py
@@ -106,6 +106,7 @@ class Kernel(Plugin, IndependentPlugin):
"/proc/misc",
"/var/log/dmesg",
"/sys/fs/pstore",... | This patch is to update kernel plugin to collect dynamic_debug log files for ibmvNIC Resolves: #<I> | py |
diff --git a/bson.py b/bson.py
index <HASH>..<HASH> 100644
--- a/bson.py
+++ b/bson.py
@@ -11,7 +11,7 @@ class InvalidBSON(Exception):
"""Raised when trying to create a BSON object from invalid data.
"""
-def validate_document(document):
+def _validate_document(document):
try:
obj_size = struc... | a little semblance of privacy | py |
diff --git a/python/run-tests.py b/python/run-tests.py
index <HASH>..<HASH> 100755
--- a/python/run-tests.py
+++ b/python/run-tests.py
@@ -56,7 +56,8 @@ LOGGER = logging.getLogger()
def run_individual_python_test(test_name, pyspark_python):
env = dict(os.environ)
- env.update({'SPARK_TESTING': '1', 'PYSPARK_... | [SPARK-<I>][PYSPARK][TESTS] Should set PYSPARK_DRIVER_PYTHON before Python tests Although this patch still doesn't solve the issue why the return code is 0 (see JIRA description), it resolves the issue of python version mismatch. | py |
diff --git a/i3pystatus/disk.py b/i3pystatus/disk.py
index <HASH>..<HASH> 100644
--- a/i3pystatus/disk.py
+++ b/i3pystatus/disk.py
@@ -18,6 +18,8 @@ class Disk(IntervalModule):
("display_limit", "if more space is available than this limit the module is hidden"),
("critical_limit", "critical space limi... | configurable color and round parameters Allows to configure color parameter and round value. The last, for None->INT to work, needs more one change in utils.py that I will propose now too. | py |
diff --git a/canvasapi/paginated_list.py b/canvasapi/paginated_list.py
index <HASH>..<HASH> 100644
--- a/canvasapi/paginated_list.py
+++ b/canvasapi/paginated_list.py
@@ -103,7 +103,7 @@ class PaginatedList(object):
while not self._finished(index):
if self._list._is_larger_than(index):
... | broke infinite loop when slicing paginated_list past end of list | py |
diff --git a/test/regression/issue_95.py b/test/regression/issue_95.py
index <HASH>..<HASH> 100755
--- a/test/regression/issue_95.py
+++ b/test/regression/issue_95.py
@@ -7,7 +7,6 @@ from test_common import *
n_ops = 10000
def test_function(opts, port):
- port = 11213
s = socket.socket(socket.AF_INET, socke... | Fix issue_<I>.py. I had foolishly hard coded in an incorrect port and it wasn't finding the server. | py |
diff --git a/pymatgen/analysis/local_env.py b/pymatgen/analysis/local_env.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/local_env.py
+++ b/pymatgen/analysis/local_env.py
@@ -11,6 +11,7 @@ import six
import ruamel.yaml as yaml
import os
import json
+from copy import deepcopy
from pymatgen.analysis.molecul... | Using deepcopy in local_env | py |
diff --git a/gandi/cli/modules/iaas.py b/gandi/cli/modules/iaas.py
index <HASH>..<HASH> 100644
--- a/gandi/cli/modules/iaas.py
+++ b/gandi/cli/modules/iaas.py
@@ -4,6 +4,7 @@ import math
import os
import socket
import time
+import errno
from gandi.cli.core.base import GandiModule
from gandi.cli.core.utils import... | Try to handle missing ipv6 connectivity (#<I>) In Iaas.wait_for_sshd, try to determine when client has no ipv6 connectivity, because otherwise we might wait a full 5 minutes without any hope of success | py |
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/metadata.py b/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/metadata.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/metadata.py
+++ b/datadog_checks_dev/datadog_checks/dev... | Add row length validation (#<I>) | py |
diff --git a/cherrypy/lib/profiler.py b/cherrypy/lib/profiler.py
index <HASH>..<HASH> 100644
--- a/cherrypy/lib/profiler.py
+++ b/cherrypy/lib/profiler.py
@@ -52,9 +52,8 @@ except ImportError:
pstats = None
import warnings
msg = ("Your installation of Python does not have a profile module. "
- ... | Fixed outdated warning for profiler on Debian. | py |
diff --git a/rollbar/contrib/django/middleware.py b/rollbar/contrib/django/middleware.py
index <HASH>..<HASH> 100644
--- a/rollbar/contrib/django/middleware.py
+++ b/rollbar/contrib/django/middleware.py
@@ -18,14 +18,13 @@ import sys
import rollbar
-import django
from django.core.exceptions import MiddlewareNotUs... | Use try/except on ImportError | py |
diff --git a/meshio/msh_io/msh4_1.py b/meshio/msh_io/msh4_1.py
index <HASH>..<HASH> 100644
--- a/meshio/msh_io/msh4_1.py
+++ b/meshio/msh_io/msh4_1.py
@@ -338,7 +338,11 @@ def _write_elements(fh, cells, write_binary):
total_num_cells = sum(map(len, cells.values()))
if write_binary:
- fh.write(numpy.a... | write $Elements summary data as size_t, including bounding elementTags | py |
diff --git a/tests/unit/test_cli_orders.py b/tests/unit/test_cli_orders.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_cli_orders.py
+++ b/tests/unit/test_cli_orders.py
@@ -89,8 +89,8 @@ def test_cli_orders_download(runner, patch_ordersclient, oid):
return
patch_ordersclient('poll', poll)
- # N... | Updated CLI orders download test to expect nothing from stdout. | py |
diff --git a/pygmsh/geometry.py b/pygmsh/geometry.py
index <HASH>..<HASH> 100644
--- a/pygmsh/geometry.py
+++ b/pygmsh/geometry.py
@@ -319,6 +319,15 @@ class Geometry(object):
s = self.add_plane_surface(ll)
return s
+ def add_polygon_loop(self, X, lcar):
+ # Create points.
+ p = [se... | Add method to generate line loops for polygonal shapes | py |
diff --git a/Facade.py b/Facade.py
index <HASH>..<HASH> 100644
--- a/Facade.py
+++ b/Facade.py
@@ -1178,12 +1178,19 @@ class Instrument(object):
:param value: The control value (float).
:param options: A dict of custom options to pass to the instrument for setting the value.
- Current options... | Updated set_control_output with default confirmation values. Docs too. svn r<I> | py |
diff --git a/stdeb/util.py b/stdeb/util.py
index <HASH>..<HASH> 100644
--- a/stdeb/util.py
+++ b/stdeb/util.py
@@ -228,11 +228,18 @@ def get_deb_depends_from_setuptools_requires(requirements):
alts = []
for deb in gooddebs:
+ added_any_alt = False
for spec in req.specs:
... | bugfix to autofind-depends feature: include good package if found, even when version information not specified | py |
diff --git a/jsonapi/models.py b/jsonapi/models.py
index <HASH>..<HASH> 100644
--- a/jsonapi/models.py
+++ b/jsonapi/models.py
@@ -1 +0,0 @@
-# lint_ignore=C0110 | move lint options to pylama.ini from files | py |
diff --git a/ipyrad/assemble/consens_se.py b/ipyrad/assemble/consens_se.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/consens_se.py
+++ b/ipyrad/assemble/consens_se.py
@@ -471,7 +471,8 @@ class Processor:
fai = pd.read_csv(
self.data.params.reference_sequence + ".fai",
... | Allow faidict scaffold names to be int (cast to dtype=object) | py |
diff --git a/sos/plugins/scsi.py b/sos/plugins/scsi.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/scsi.py
+++ b/sos/plugins/scsi.py
@@ -6,6 +6,8 @@
#
# See the LICENSE file in the source distribution for further information.
+import os
+from glob import glob
from sos.plugins import Plugin, RedHatPlugin, UbuntuP... | [scsi] collect scsi_host sysfs host values The scsi_host attributes can be very important when identifying LLD/shost level issues. Add host value collection via udevadm. | py |
diff --git a/ocupy/fixmat.py b/ocupy/fixmat.py
index <HASH>..<HASH> 100644
--- a/ocupy/fixmat.py
+++ b/ocupy/fixmat.py
@@ -136,7 +136,12 @@ class FixMat(object):
"""
return FixMat(categories=self._categories, fixmat=self, index=index)
-
+
+ def field(self, fieldname):
+ ... | Add a function to access fields with the fieldname as a string | py |
diff --git a/floyd/cli/experiment.py b/floyd/cli/experiment.py
index <HASH>..<HASH> 100644
--- a/floyd/cli/experiment.py
+++ b/floyd/cli/experiment.py
@@ -165,7 +165,8 @@ def delete(id, yes):
Delete project run
"""
experiment = ExperimentClient().get(id)
- task_instance = TaskInstanceClient().get(get_... | Fix delete for shutdown experiments Delete experiment would fail if the experiment did not start at all. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,6 +35,7 @@ setup(
'isodate>=0.5.0',
'xmlsec>=0.2.1'
],
+ dependency_links=['http://github.com/bgaifullin/python-xmlsec/tarball/master'],
extras_require={
'test': (
'cove... | added dependency link to xmlsec | py |
diff --git a/pysnow/criterion.py b/pysnow/criterion.py
index <HASH>..<HASH> 100644
--- a/pysnow/criterion.py
+++ b/pysnow/criterion.py
@@ -14,7 +14,7 @@ from .exceptions import (
)
-class Term:
+class Term(object):
@staticmethod
def wrap_constant(value, types, list_type=False):
@@ -198,7 +198,7 @@ clas... | Is it <I> yet? more py2 fixes | py |
diff --git a/examples/training/conllu.py b/examples/training/conllu.py
index <HASH>..<HASH> 100644
--- a/examples/training/conllu.py
+++ b/examples/training/conllu.py
@@ -208,6 +208,13 @@ def main(spacy_model, conllu_train_loc, text_train_loc, conllu_dev_loc, text_dev
if tag is not None:
n... | Replace labels that didn't make freq cutoff | py |
diff --git a/tests/integration-tests/virtual_environments.py b/tests/integration-tests/virtual_environments.py
index <HASH>..<HASH> 100644
--- a/tests/integration-tests/virtual_environments.py
+++ b/tests/integration-tests/virtual_environments.py
@@ -55,7 +55,7 @@ def prepare_virtualenv(packages=()):
vpython = os.... | Fix tests: force reinstall packages in tests | py |
diff --git a/openquake/server/dbapi.py b/openquake/server/dbapi.py
index <HASH>..<HASH> 100644
--- a/openquake/server/dbapi.py
+++ b/openquake/server/dbapi.py
@@ -102,7 +102,8 @@ The queries can have different kind of `?` parameters:
<sqlite3.Cursor object at ...>
You can see how the interpolation works by callin... | Small improvement on db(..., debug=True) Former-commit-id: cc<I>e<I>d3d3acb2fb5aee<I>e<I>d<I> | py |
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index <HASH>..<HASH> 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -326,7 +326,7 @@ class CategoricalIndex(Index, accessor.PandasDelegate):
hash(key)
if isna(key): # if key is a Na... | improve speed of nans in CategoricalIndex (#<I>) | py |
diff --git a/salt/modules/gpg.py b/salt/modules/gpg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/gpg.py
+++ b/salt/modules/gpg.py
@@ -761,7 +761,7 @@ def trust_key(keyid=None,
ret['message'] = res['stderr']
else:
if res['stderr']:
- _match = re.findall('\d', res['stderr'])
+ ... | Fixing lint issue related to re.findall. | py |
diff --git a/salmon/apps/monitor/management/commands/run_checks.py b/salmon/apps/monitor/management/commands/run_checks.py
index <HASH>..<HASH> 100644
--- a/salmon/apps/monitor/management/commands/run_checks.py
+++ b/salmon/apps/monitor/management/commands/run_checks.py
@@ -24,7 +24,6 @@ class Command(BaseCommand):
... | Removed a left over ipdb statement. | py |
diff --git a/ccmlib/dse_node.py b/ccmlib/dse_node.py
index <HASH>..<HASH> 100644
--- a/ccmlib/dse_node.py
+++ b/ccmlib/dse_node.py
@@ -186,6 +186,8 @@ class DseNode(Node):
args.append('-R')
args = args + jvm_args
+ self._delete_old_pid()
+
process = None
FNULL = open(o... | Delete PID before start to fix restart problems | py |
diff --git a/exchangelib/folders.py b/exchangelib/folders.py
index <HASH>..<HASH> 100644
--- a/exchangelib/folders.py
+++ b/exchangelib/folders.py
@@ -1684,12 +1684,10 @@ class PublicFoldersRoot(RootOfHierarchy):
supported_from = EXCHANGE_2007_SP1
def get_children(self, folder):
- # EWS does not allo... | Optimize traversal of public folders by taking child_folder_count into account | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -215,7 +215,7 @@ def minion_config(path, check_dns=True):
'update_url': False,
'update_restart_services': [],
'retry_dns': 30,
- 'recon_max': 30000,
+ ... | Change recon max to 5 seconds, since <I> makes recons take too long | py |
diff --git a/pymc/step_methods/quadpotential.py b/pymc/step_methods/quadpotential.py
index <HASH>..<HASH> 100644
--- a/pymc/step_methods/quadpotential.py
+++ b/pymc/step_methods/quadpotential.py
@@ -106,7 +106,8 @@ if chol_available:
self.p = np.argsort(factor.P())
def velocity(self,... | fixed issue with scikits.sparse solve_A failing on column vectors | py |
diff --git a/vyper/opcodes.py b/vyper/opcodes.py
index <HASH>..<HASH> 100644
--- a/vyper/opcodes.py
+++ b/vyper/opcodes.py
@@ -240,8 +240,8 @@ def _gas(value: OpcodeValue, idx: int) -> Optional[OpcodeRulesetValue]:
def _mk_version_opcodes(opcodes: OpcodeMap, idx: int) -> OpcodeRulesetMap:
return dict(
- ... | typing: Black-caused mypy issue | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -19,5 +19,5 @@ setup(
"genshi",
],
packages=['ansi2html'],
- package_data={ 'ansi2html' : [ 'templates/*' ], },
+ package_data={ 'ansi2html' : [ 'ansi2html.sh', 'templates/*' ], },
) | updated deps and perms | py |
diff --git a/pyvista/plotting/plotting.py b/pyvista/plotting/plotting.py
index <HASH>..<HASH> 100644
--- a/pyvista/plotting/plotting.py
+++ b/pyvista/plotting/plotting.py
@@ -3226,7 +3226,6 @@ class BasePlotter(PickingHelper, WidgetHelper):
If an actor of this name already exists in the rendering window, i... | fix docstring (#<I>) | py |
diff --git a/tensorflow_probability/python/distributions/ordered_logistic_test.py b/tensorflow_probability/python/distributions/ordered_logistic_test.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/distributions/ordered_logistic_test.py
+++ b/tensorflow_probability/python/distributions/ordered_logist... | change <I> to int(1e5) | py |
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -40,9 +40,13 @@ def _get_variable(name):
stack = inspect.stack()
try:
for frames in stack:
- current_locals = frames[0].... | [commands] Delete frame objects when done using them. | py |
diff --git a/ctypeslib/dynamic_module.py b/ctypeslib/dynamic_module.py
index <HASH>..<HASH> 100644
--- a/ctypeslib/dynamic_module.py
+++ b/ctypeslib/dynamic_module.py
@@ -28,7 +28,7 @@ if not os.path.exists(gen_dir):
#
-def include(code, persist=True, compilerflags=["-c"]):
+def include(code, persist=True, compile... | might be useful. keep, pep8, flakes | py |
diff --git a/pghoard/gnutaremu.py b/pghoard/gnutaremu.py
index <HASH>..<HASH> 100755
--- a/pghoard/gnutaremu.py
+++ b/pghoard/gnutaremu.py
@@ -67,8 +67,8 @@ class GnuTarEmulator:
name = self._transform_name(name)
if not name:
return None
- if not self.args.absolute_names and name.s... | gnutaremu: strip all slashes from beginning of paths Prevent directory traversal if the archive contains malicious paths starting with multiple slashes | py |
diff --git a/fireplace/entity.py b/fireplace/entity.py
index <HASH>..<HASH> 100644
--- a/fireplace/entity.py
+++ b/fireplace/entity.py
@@ -68,11 +68,11 @@ class BaseEntity(object):
actions += action(self, *args)
else:
actions.append(action)
- source.game.trigger(self, actions, args)
+ ret = source.game... | Return triggered actions off trigger_event() | py |
diff --git a/xrcon/commands.py b/xrcon/commands.py
index <HASH>..<HASH> 100644
--- a/xrcon/commands.py
+++ b/xrcon/commands.py
@@ -7,9 +7,9 @@ import six
from .client import XRcon
-try:
+try: # pragma: no cover
from configparser import NoSectionError, NoOptionError, ConfigParser
-except ImportError:
+except I... | Add no cover pragmas to python2/3 related code | py |
diff --git a/streamcorpus_pipeline/tests/test_clean_html.py b/streamcorpus_pipeline/tests/test_clean_html.py
index <HASH>..<HASH> 100644
--- a/streamcorpus_pipeline/tests/test_clean_html.py
+++ b/streamcorpus_pipeline/tests/test_clean_html.py
@@ -2,6 +2,8 @@
import os
import pytest
+import sys
+import time
from ... | if test fails, write out failed version so that it can be inspected by diff or become the new golden file | py |
diff --git a/tests/test_parsing.py b/tests/test_parsing.py
index <HASH>..<HASH> 100644
--- a/tests/test_parsing.py
+++ b/tests/test_parsing.py
@@ -46,7 +46,11 @@ def test_multipart():
('webkit3-2png1txt', '----WebKitFormBoundaryjdSFhcARk8fyGNy6', [
(u'gtk-apply.png', 'file1', 'image/png', 'file1.p... | hoooray. ie6 passes ass well (pun intended) | py |
diff --git a/bibliopixel/main/common_flags.py b/bibliopixel/main/common_flags.py
index <HASH>..<HASH> 100644
--- a/bibliopixel/main/common_flags.py
+++ b/bibliopixel/main/common_flags.py
@@ -94,7 +94,7 @@ def add_project_flags(parser):
help='If true, bp fail if any subanimation fails to construct')
pars... | Get rid of default for --layout * This must be empty to allow --dimensions to work properly | py |
diff --git a/salt/modules/virt.py b/salt/modules/virt.py
index <HASH>..<HASH> 100644
--- a/salt/modules/virt.py
+++ b/salt/modules/virt.py
@@ -313,7 +313,7 @@ def get_disks(vm_):
target = targets[0]
else:
continue
- if ('dev' in target.attributes) and ('file' in source.attribut... | Fix problem with attribute checks when data looks like: "[(u'bus', u'ide'), (u'dev', u'hdb')]" | py |
diff --git a/flask_oauthlib/client.py b/flask_oauthlib/client.py
index <HASH>..<HASH> 100644
--- a/flask_oauthlib/client.py
+++ b/flask_oauthlib/client.py
@@ -230,13 +230,14 @@ class OAuthRemoteApp(object):
self.authorize_url = authorize_url
self.consumer_key = consumer_key
self.consumer_secr... | rename tokengetter_func to _tokengetter in client part | py |
diff --git a/estnltk_core/estnltk_core/layer/base_layer.py b/estnltk_core/estnltk_core/layer/base_layer.py
index <HASH>..<HASH> 100644
--- a/estnltk_core/estnltk_core/layer/base_layer.py
+++ b/estnltk_core/estnltk_core/layer/base_layer.py
@@ -443,7 +443,9 @@ class BaseLayer:
if not isinstance(attribu... | Fix in BaseLayer: take only legal attributes from attribute_dict | py |
diff --git a/ports/nrf/examples/mountsd.py b/ports/nrf/examples/mountsd.py
index <HASH>..<HASH> 100644
--- a/ports/nrf/examples/mountsd.py
+++ b/ports/nrf/examples/mountsd.py
@@ -4,7 +4,7 @@ Example for pca10040 / nrf52832 to show how mount
and list a sdcard connected over SPI.
-Direct wireing on SD card (SPI):
+D... | nrf/examples: Fix typo in mountsd.py, wireing -> wiring. | py |
diff --git a/hdf5storage/__init__.py b/hdf5storage/__init__.py
index <HASH>..<HASH> 100644
--- a/hdf5storage/__init__.py
+++ b/hdf5storage/__init__.py
@@ -1060,6 +1060,8 @@ class MarshallerCollection(object):
raise TypeError('lazy_loading must be bool.')
if not isinstance(priority, collections.abc... | Fixed bug in MarshallerCollection where priority could be passed with more than three elements. | py |
diff --git a/tests/test_api.py b/tests/test_api.py
index <HASH>..<HASH> 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -6,6 +6,7 @@ import shutil
from fabric.state import env
from fabric.context_managers import lcd
from fabric.api import settings
+from frojd_fabric import paths
from frojd_fabric.api impo... | Addec verification on release name (so release cleanup works as expected) | py |
diff --git a/bson/py3compat.py b/bson/py3compat.py
index <HASH>..<HASH> 100644
--- a/bson/py3compat.py
+++ b/bson/py3compat.py
@@ -49,6 +49,7 @@ if PY3:
text_type = str
string_type = str
integer_types = int
+ next_item = "__next__"
else:
try:
@@ -81,3 +82,6 @@ else:
string_type = basestri... | PYTHON-<I> - Add a few things back to py3compat temporarily | py |
diff --git a/plumber.py b/plumber.py
index <HASH>..<HASH> 100644
--- a/plumber.py
+++ b/plumber.py
@@ -6,12 +6,11 @@ except ImportError: # PY2
from Queue import Queue
import threading
import multiprocessing
-import types
import logging
-__version__ = ('0', '9')
-__all__ = ['UnmetPrecondition', 'Pipe', 'Pip... | Fixed a bug that caused `plumber.pipe` to raise `AttributeError` | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.