diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/logbrowse/models.py b/logbrowse/models.py
index <HASH>..<HASH> 100644
--- a/logbrowse/models.py
+++ b/logbrowse/models.py
@@ -217,7 +217,7 @@ class FlightVideo(models.Model):
class MavMessage(models.Model):
msgType=models.CharField(max_length=40, choices=MSG_TYPES)
- timestamp=models.IntegerFiel... | Only timestamps on MavMessages (not MavData objects), but use them as the primary key | py |
diff --git a/txaioetcd/_types.py b/txaioetcd/_types.py
index <HASH>..<HASH> 100644
--- a/txaioetcd/_types.py
+++ b/txaioetcd/_types.py
@@ -798,7 +798,7 @@ class OpDel(Op):
}
if self.return_previous:
- obj[u'prev_kv'] = True
+ obj[u'request_delete_range'][u'prev_kv'] = True
... | Correct return_previous in OpDel The return_previous option gave a HTTP <I> error with the following text: {"Error":"unknown field \"prev_kv\" in etcdserverpb.RequestOp","Code":3} because prev_kv was put onto the same level as request_delete_range, however according to the rpc.proto it's an option of request_delete_... | py |
diff --git a/chess/variant.py b/chess/variant.py
index <HASH>..<HASH> 100644
--- a/chess/variant.py
+++ b/chess/variant.py
@@ -488,7 +488,7 @@ class _ThreeCheckBoardState(Generic[ThreeCheckBoardT], chess._BoardState["ThreeC
class ThreeCheckBoard(chess.Board):
- aliases = ["Three-check", "Three check", "Threeche... | Add "3-check" alias (chess.com, #<I>) | py |
diff --git a/djes/mapping.py b/djes/mapping.py
index <HASH>..<HASH> 100644
--- a/djes/mapping.py
+++ b/djes/mapping.py
@@ -11,6 +11,8 @@ FIELD_MAPPINGS = {
"CharField": {"type": "string"},
"TextField": {"type": "string"},
"SlugField": {"type": "string", "index": "not_analyzed"},
+ "DateTimeField": {"t... | Adding DateField and DateTimeField | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -22,7 +22,7 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return Mock()
-MOCK_MODULES = ['pygrib']
+MOCK_MODULES = ['pygrib', 'RAPIDpy']
sys.modules.update((mod_name, Mock()) for mo... | added RAPIDpy to mock module list | py |
diff --git a/tests/test_data_cloud.py b/tests/test_data_cloud.py
index <HASH>..<HASH> 100644
--- a/tests/test_data_cloud.py
+++ b/tests/test_data_cloud.py
@@ -52,7 +52,7 @@ def _should_test_gcp():
try:
check_output(['gcloud', 'auth', 'activate-service-account',
'--key-fi... | test: gcp: handle FileNotFoundError | py |
diff --git a/scanorama/scanorama.py b/scanorama/scanorama.py
index <HASH>..<HASH> 100644
--- a/scanorama/scanorama.py
+++ b/scanorama/scanorama.py
@@ -503,7 +503,7 @@ def visualize(assembled, labels, namespace, data_names,
# Exact nearest neighbors search.
def nn(ds1, ds2, knn=KNN, metric_p=2):
# Find nearest ne... | make compatible with future sklearn version | py |
diff --git a/salt/modules/pip.py b/salt/modules/pip.py
index <HASH>..<HASH> 100644
--- a/salt/modules/pip.py
+++ b/salt/modules/pip.py
@@ -340,10 +340,6 @@ def install(pkgs=None, # pylint: disable=R0912,R0913,R0914
cmd = [_get_pip_bin(bin_env), 'install']
- if activate and bin_env:
- if not salt.uti... | Remove code as instructed by @jfindlay | py |
diff --git a/gwpy/signal/fft/lal.py b/gwpy/signal/fft/lal.py
index <HASH>..<HASH> 100644
--- a/gwpy/signal/fft/lal.py
+++ b/gwpy/signal/fft/lal.py
@@ -294,9 +294,6 @@ def bartlett(timeseries, segmentlength, noverlap=None, window=None, plan=None):
--------
lal.REAL8AverageSpectrumWelch
"""
- if noverla... | signal.fft: ignore noverlap in lal-bartlett | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from setuptools import setup
-test_deps = ['pytest', 'pytest-runner', 'pytest-cov', 'vcrpy', 'pytest-vcr', 'pytest-mock']
+test_deps = ['pytest', 'pytest-runner', 'pytest-cov', 'vcrpy', 'pytest-vcr', 'pytest-mo... | oh. forgot to update setup.py as well | py |
diff --git a/polyaxon/experiment_groups/iteration_managers/hyperband.py b/polyaxon/experiment_groups/iteration_managers/hyperband.py
index <HASH>..<HASH> 100644
--- a/polyaxon/experiment_groups/iteration_managers/hyperband.py
+++ b/polyaxon/experiment_groups/iteration_managers/hyperband.py
@@ -17,7 +17,7 @@ class Hyper... | Hyperband should start with iteration 0 | py |
diff --git a/formly/views/results.py b/formly/views/results.py
index <HASH>..<HASH> 100644
--- a/formly/views/results.py
+++ b/formly/views/results.py
@@ -43,10 +43,11 @@ class RemapView(LoginRequiredMixin, DetailView):
question = self.get_object()
mapping = dict([(unquote(remapped_answer), answer_str... | fix comparison error use == rather than in to prevent partial matches to answer_string from being removed from mapping | py |
diff --git a/python/lib/uploader.py b/python/lib/uploader.py
index <HASH>..<HASH> 100644
--- a/python/lib/uploader.py
+++ b/python/lib/uploader.py
@@ -6,6 +6,7 @@ import string
import threading
import sys
import urllib2, urllib
+from httplib import BadStatusLine
import socket
import mimetypes
import random
@@ -27... | Update uploader.py catch BadStatusLine error | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -425,14 +425,14 @@ def _osx_memdata():
sysctl = salt.utils.path.which('sysctl')
if sysctl:
mem = __salt__['cmd.run']('{0} -n hw.memsize'.format(sysctl))
- s... | Fix swap_total for macosx grain detection | py |
diff --git a/matplotlib2tikz.py b/matplotlib2tikz.py
index <HASH>..<HASH> 100644
--- a/matplotlib2tikz.py
+++ b/matplotlib2tikz.py
@@ -839,7 +839,7 @@ def _draw_line2d(data, obj):
options = ', '.join(addplot_options)
content.append('[' + options + ']\n')
- content.append('coordinates {\n')
+ c... | use table instead of coordinates Cleaner, leaner, meaner. | py |
diff --git a/qcrash/backends/github.py b/qcrash/backends/github.py
index <HASH>..<HASH> 100644
--- a/qcrash/backends/github.py
+++ b/qcrash/backends/github.py
@@ -102,7 +102,7 @@ class GithubBackend(BaseBackend):
# pyside returns QVariants
remember, _ok = remember.toInt()
username... | Fix tests: make sure to a return a bool when running with pyqt4 and python2 | py |
diff --git a/sporco/linalg.py b/sporco/linalg.py
index <HASH>..<HASH> 100644
--- a/sporco/linalg.py
+++ b/sporco/linalg.py
@@ -535,7 +535,7 @@ def solvedbi_sm(ah, rho, b, c=None, axis=4):
c = solvedbi_sm_c(ah, a, rho, axis)
if have_numexpr:
cb = inner(c, b, axis=axis)
- return ne.evaluate(... | Deal with dtype inconsistency | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,6 +45,7 @@ and support for a variety of storage back-ends.''',
'openid.server',
'openid.store',
'openid.yadis',
+ 'openid.extensions',
],
licens... | [project @ Added extensions package to setup.py] | py |
diff --git a/bulbs/__init__.py b/bulbs/__init__.py
index <HASH>..<HASH> 100644
--- a/bulbs/__init__.py
+++ b/bulbs/__init__.py
@@ -1 +1 @@
-__version__ = "0.4.1"
+__version__ = "0.4.2" | The most minor of bumps [ci skip] | py |
diff --git a/api/python/quilt3/formats.py b/api/python/quilt3/formats.py
index <HASH>..<HASH> 100644
--- a/api/python/quilt3/formats.py
+++ b/api/python/quilt3/formats.py
@@ -95,7 +95,7 @@ class FormatRegistry:
extensions, or handled object types. This list may expand in the future,
so see the actual class m... | Use literals instead of tuple() and list() (#<I>) | py |
diff --git a/src/python/grpcio/commands.py b/src/python/grpcio/commands.py
index <HASH>..<HASH> 100644
--- a/src/python/grpcio/commands.py
+++ b/src/python/grpcio/commands.py
@@ -281,7 +281,7 @@ class BuildExt(build_ext.build_ext):
env['HAS_SYSTEM_OPENSSL_ALPN'] = '0'
make_process = subprocess... | Remove the environment variable changing line * This commit failed `tools/run_tests/artifacts/build_artifact_csharp.sh` * It doesn't make any sense! | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@ setup(
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
- 'Li... | Updated classifiers in setup. | py |
diff --git a/labkey/exceptions.py b/labkey/exceptions.py
index <HASH>..<HASH> 100644
--- a/labkey/exceptions.py
+++ b/labkey/exceptions.py
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2015-2016 LabKey Corporation
+# Copyright (c) 2015-2017 LabKey Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
... | Update copyrights for <I> | py |
diff --git a/spout/outputs.py b/spout/outputs.py
index <HASH>..<HASH> 100644
--- a/spout/outputs.py
+++ b/spout/outputs.py
@@ -23,3 +23,15 @@ class FileOutputOperation(Operation):
def __del__(self):
self.output.flush()
self.output.close()
+
+
+class JSONFileOutputOperation(FileOutputOperation):
+... | Created operation to output JSON objects to a file. | py |
diff --git a/pifpaf/drivers/__init__.py b/pifpaf/drivers/__init__.py
index <HASH>..<HASH> 100644
--- a/pifpaf/drivers/__init__.py
+++ b/pifpaf/drivers/__init__.py
@@ -13,6 +13,7 @@
import contextlib
from distutils import spawn
+import errno
import logging
import os
import re
@@ -91,9 +92,6 @@ class Driver(fixtur... | Fix process cleanup is_alive() is not a method of subprocess | py |
diff --git a/salt/proxy/junos.py b/salt/proxy/junos.py
index <HASH>..<HASH> 100644
--- a/salt/proxy/junos.py
+++ b/salt/proxy/junos.py
@@ -1,6 +1,39 @@
# -*- coding: utf-8 -*-
'''
-Interface with a Junos device via proxy-minion.
+Interface with a Junos device via proxy-minion. To connect to a junos device \
+via juno... | Minor changes in state modules to keep in sync with execution modules. Improved documentation in junos proxy and junos state modules | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ import sys, os
version = '0.1'
-setup(name='ckan-service-provider',
+setup(name='ckanserviceprovider',
version=version,
description="A server that can server jobs at services.",
long_desc... | Rename the package so that it does not contain - | py |
diff --git a/src/discoursegraphs/merging.py b/src/discoursegraphs/merging.py
index <HASH>..<HASH> 100755
--- a/src/discoursegraphs/merging.py
+++ b/src/discoursegraphs/merging.py
@@ -39,7 +39,7 @@ def merging_cli(debug=False):
help='MMAX2 file to be merged')
parser.add_argument(
'... | fixes #<I>: added bracket output option to cli | py |
diff --git a/atws/monkeypatch/marshallable.py b/atws/monkeypatch/marshallable.py
index <HASH>..<HASH> 100644
--- a/atws/monkeypatch/marshallable.py
+++ b/atws/monkeypatch/marshallable.py
@@ -5,6 +5,7 @@ Created on 10 Jan 2016
'''
from __future__ import absolute_import
from future.utils import iteritems
+from builtin... | marshallable failing due to py3 unicode missing added call to builtins to import str | py |
diff --git a/bootstrap3/templatetags/bootstrap3.py b/bootstrap3/templatetags/bootstrap3.py
index <HASH>..<HASH> 100644
--- a/bootstrap3/templatetags/bootstrap3.py
+++ b/bootstrap3/templatetags/bootstrap3.py
@@ -155,7 +155,8 @@ def bootstrap_css():
@register.simple_tag
def bootstrap_javascript(jquery=None):
"""
-... | Added note for dismissable message alerts in docs. | py |
diff --git a/neuropythy/freesurfer/subject.py b/neuropythy/freesurfer/subject.py
index <HASH>..<HASH> 100644
--- a/neuropythy/freesurfer/subject.py
+++ b/neuropythy/freesurfer/subject.py
@@ -177,7 +177,11 @@ class Hemisphere(Immutable):
if self.subject.id == 'fsaverage_sym' and 'retinotopy' not in regs:
... | reflects renaming of retinotopy registered-sphere file in library dir | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -66,7 +66,7 @@ setup(
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
- "Programming Language :: Python :: 3",
- "Progra... | Python 3 is not supported yet :( | py |
diff --git a/niworkflows/reports/tests/test_core.py b/niworkflows/reports/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/niworkflows/reports/tests/test_core.py
+++ b/niworkflows/reports/tests/test_core.py
@@ -184,6 +184,7 @@ def test_process_orderings_large(test_report2, orderings,
("run"),
("se... | add ceagent as needed_entity for tests | py |
diff --git a/src/_pytest/mark/structures.py b/src/_pytest/mark/structures.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/mark/structures.py
+++ b/src/_pytest/mark/structures.py
@@ -213,9 +213,6 @@ class MarkDecorator:
def markname(self):
return self.name # for backward-compat (2.4.1 had this attr)
- ... | Drop redundant custom MarkDecorator __eq__ implementation This is already covered by attrs. Also, the custom implementation returns False when the types don't match, but it's better to return `NotImplemented`. attrs does this. | py |
diff --git a/gnsq/nsqd.py b/gnsq/nsqd.py
index <HASH>..<HASH> 100644
--- a/gnsq/nsqd.py
+++ b/gnsq/nsqd.py
@@ -420,7 +420,7 @@ class NsqdTCPClient(object):
:param data: bytestring data to publish
- :param defer: duration in millisconds to defer before publishing
+ :param defer: duration in mi... | Fix spelling of milliseconds in nsqd | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,9 +13,13 @@ if version_match is None:
else:
version = version_match.group(1)
+with open('README.rst') as file:
+ long_description = file.read()
+
setup(name='GoDaddyPy',
version=version,
descripti... | Added the README as the long description for PyPI | py |
diff --git a/kiner/producer.py b/kiner/producer.py
index <HASH>..<HASH> 100644
--- a/kiner/producer.py
+++ b/kiner/producer.py
@@ -43,12 +43,14 @@ class KinesisProducer:
def __init__(self, stream_name, batch_size=500,
batch_time=5, max_retries=5, threads=10,
- kinesis_client=bot... | Remove boto3 instantiation from constructor definition | py |
diff --git a/gwpy/io/gwf.py b/gwpy/io/gwf.py
index <HASH>..<HASH> 100755
--- a/gwpy/io/gwf.py
+++ b/gwpy/io/gwf.py
@@ -111,6 +111,8 @@ def write_frames(filename, frames, compression=257, compression_level=6):
compression_level : `int`, optional
compression level for given scheme
"""
+ from LDAStoo... | gwpy.io: added missing import | py |
diff --git a/tests/micropython/heapalloc_iter.py b/tests/micropython/heapalloc_iter.py
index <HASH>..<HASH> 100644
--- a/tests/micropython/heapalloc_iter.py
+++ b/tests/micropython/heapalloc_iter.py
@@ -1,10 +1,15 @@
# test that iterating doesn't use the heap
+try:
+ import array
+except ImportError:
+ import sy... | tests/micropython/heapalloc_iter: Improve skippability. | py |
diff --git a/runcommands/util/printer.py b/runcommands/util/printer.py
index <HASH>..<HASH> 100644
--- a/runcommands/util/printer.py
+++ b/runcommands/util/printer.py
@@ -126,10 +126,10 @@ class Printer:
color = self.color_map.debug
self.print(*args, color=color, file=file, **kwargs)
- def hr... | Allow a different fill character to be used with printer.hr() Previously, = was hard coded as the fill char. Now, any fill char can be used. | py |
diff --git a/keyring/tests/backends/test_keyczar.py b/keyring/tests/backends/test_keyczar.py
index <HASH>..<HASH> 100644
--- a/keyring/tests/backends/test_keyczar.py
+++ b/keyring/tests/backends/test_keyczar.py
@@ -6,11 +6,7 @@ from keyring.backends import keyczar
from .. import mocks
def is_keyczar_supported():
- ... | Use keyczar backend module itself to detect if keyczar is supported for tests. | py |
diff --git a/peewee.py b/peewee.py
index <HASH>..<HASH> 100644
--- a/peewee.py
+++ b/peewee.py
@@ -3708,10 +3708,11 @@ class Model(with_metaclass(BaseModel)):
if only:
field_dict = self._prune_fields(field_dict, only)
if self._get_pk_value() is not None and not force_insert:
- ... | Avoiding changing how Model.save() works when the model has a composite primary key | py |
diff --git a/MesoPy.py b/MesoPy.py
index <HASH>..<HASH> 100755
--- a/MesoPy.py
+++ b/MesoPy.py
@@ -199,9 +199,9 @@ class Meso(object):
US state, 2-letter ID e.g. state='CO'.
country: string, optional
Single or comma separated list of abbreviated 2 or 3 character countries e.g. country... | Changed two comment lines from "string" to "list" to accurately reflect what input type is needed | py |
diff --git a/photutils/datasets/tests/test_make.py b/photutils/datasets/tests/test_make.py
index <HASH>..<HASH> 100644
--- a/photutils/datasets/tests/test_make.py
+++ b/photutils/datasets/tests/test_make.py
@@ -199,3 +199,14 @@ def test_make_gwcs():
assert wcs.available_frames == ['detector', 'galactic']
asse... | Add test to compare wcs objects | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,13 +4,13 @@ from setuptools import setup
setup(
name='internetarchive',
- version='0.22',
+ version='0.23',
author='Jacob M. Johnson',
author_email='jake@archive.org',
packages=['internetarchive... | Upped version, and dropped .txt from LICENSE.txt. | py |
diff --git a/twython/endpoints.py b/twython/endpoints.py
index <HASH>..<HASH> 100644
--- a/twython/endpoints.py
+++ b/twython/endpoints.py
@@ -135,7 +135,7 @@ class EndpointsMixin(object):
to the 'update_status' method using the 'media_ids' param.
Docs:
- https://dev.twitter.com/rest/public/u... | Fix a broken link to the document of media_upload. | py |
diff --git a/tests/pytests/integration/sdb/test_etcd_db.py b/tests/pytests/integration/sdb/test_etcd_db.py
index <HASH>..<HASH> 100644
--- a/tests/pytests/integration/sdb/test_etcd_db.py
+++ b/tests/pytests/integration/sdb/test_etcd_db.py
@@ -38,6 +38,18 @@ def etc_docker_container(salt_call_cli, sdb_etcd_port):
... | Fix flaky sdb/test_etcd_db test It appears that the etcd service inside the container is not actually running or something, despite the container running. Rather than simply failing on the tests, inside the fixture let's try to connect to sdb. If we cannot, then retry up to <I> times, and if that fails then we should ... | py |
diff --git a/tests/test_commands.py b/tests/test_commands.py
index <HASH>..<HASH> 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -370,3 +370,18 @@ async def test_gibberish_raises_exception(
async with smtp_client:
with pytest.raises(SMTPResponseException):
await smtp_clie... | Added test for badly encoded text handling. | 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
@@ -174,7 +174,7 @@ class Dimension(param.Parameterized):
def __eq__(self, other):
"Implements equals operator including sanitized compar... | Fixed capitalization issue in Dimension sanitization | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -72,7 +72,7 @@ setup(
'': ['*.txt', '*.md', '*.rst', '*.json', '*.conf', '*.html',
'*.css', '*.ico', '*.png', 'LICENSE', 'LEGAL', '*.sovrin']},
include_package_data=True,
- install_requires=['sov... | Updated sovrin-common-dev dependency. | py |
diff --git a/examples/cdqn_pendulum.py b/examples/cdqn_pendulum.py
index <HASH>..<HASH> 100644
--- a/examples/cdqn_pendulum.py
+++ b/examples/cdqn_pendulum.py
@@ -40,7 +40,7 @@ mu_model.add(Dense(16))
mu_model.add(Activation('relu'))
mu_model.add(Dense(16))
mu_model.add(Activation('relu'))
-mu_model.add(Dense(1))
+m... | Update example to use non-hardcoded actions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ with io.open('README.rst') as readme:
setup(
name = 'datapackage',
- version = '0.5.1',
+ version = '0.5.2',
url = 'https://github.com/tryggvib/datapackage',
license = 'GPLv3',
descr... | Patch version <I> * Allow any type of string * Do not require mock for compat because it might not be installed | py |
diff --git a/superset/config.py b/superset/config.py
index <HASH>..<HASH> 100644
--- a/superset/config.py
+++ b/superset/config.py
@@ -656,7 +656,7 @@ DISPLAY_MAX_ROW = 10000
# Default row limit for SQL Lab queries. Is overridden by setting a new limit in
# the SQL Lab UI
-DEFAULT_SQLLAB_LIMIT = 10000
+DEFAULT_SQLL... | fix: revert DEFAULT_SQLLAB_LIMIT to default (#<I>) | py |
diff --git a/purl/__init__.py b/purl/__init__.py
index <HASH>..<HASH> 100644
--- a/purl/__init__.py
+++ b/purl/__init__.py
@@ -2,3 +2,5 @@ from .url import URL # noqa
from .template import expand, Template # noqa
__version__ = '1.2'
+
+__all__ = ['URL', 'expand', 'Template'] | Added imported methods and classes in __init__.py to __all__ | py |
diff --git a/apio/__init__.py b/apio/__init__.py
index <HASH>..<HASH> 100644
--- a/apio/__init__.py
+++ b/apio/__init__.py
@@ -49,24 +49,24 @@ def uninstall():
@cli.command('clean')
def clean():
- subprocess.call(['python', scons_path, '-c'])
+ subprocess.call(['python2', scons_path, '-c'])
@cli.command(... | Force Python 2 to run SCons (not compatible with Python 3) | py |
diff --git a/photutils/tests/test_aperture_photometry.py b/photutils/tests/test_aperture_photometry.py
index <HASH>..<HASH> 100644
--- a/photutils/tests/test_aperture_photometry.py
+++ b/photutils/tests/test_aperture_photometry.py
@@ -359,7 +359,7 @@ class TestEllipticalAnnulus(BaseTestAperturePhotometry):
pos... | Changing test parameters to avoid discrepancy between <I>/<I> bit. Most probably due to float precision, some aperture parametrisations don't behave the same way on <I>bit and <I>bit for the pixels where the aperture goes through a pixel centre. Affects methods `center` and `subpixel`, see more discussion in [#<I>]. | py |
diff --git a/pypiper/ngstk.py b/pypiper/ngstk.py
index <HASH>..<HASH> 100755
--- a/pypiper/ngstk.py
+++ b/pypiper/ngstk.py
@@ -613,7 +613,7 @@ class NGSTk(_AttributeDict):
:param depth: also calculate coverage over each position
"""
cmd = self.tools.samtools + " view -h " + bam + " > " + bam.replace(".bam", ".... | Fixed bug in NGSTK bam_conversions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name='ajax',
- version='1.0.0',
+ version='1.0.1',
description='A simple framework for creating AJAX endpoints in Django.',
long_descripti... | patch bump for django <I>a bug | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -117,7 +117,7 @@ class StateLogManagerTests(TestCase):
def test_commit_pending_for_object_saves_log(self):
log = StateLog.objects.create_pending(**self.create_kwargs)
StateLog.obj... | fix test for < Django <I> compatibility | py |
diff --git a/astroplan/plots/time_dependent.py b/astroplan/plots/time_dependent.py
index <HASH>..<HASH> 100644
--- a/astroplan/plots/time_dependent.py
+++ b/astroplan/plots/time_dependent.py
@@ -187,6 +187,7 @@ def plot_airmass(targets, observer, time, ax=None, style_kwargs=None,
(observer.sun_rise_time(Ti... | Fixes the incorrect shading on certain dates by sorting the datetimes -- Closes #<I> | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -54,4 +54,6 @@ setup(name='spglib',
requires = ['numpy'],
provides = ['spglib'],
platforms = ['all'],
- ext_modules=[extension])
+ ext_modules = [extension],
+ in... | Add test/data directory to the package. | py |
diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/integration/__init__.py
+++ b/tests/integration/__init__.py
@@ -527,9 +527,7 @@ class TestDaemon(object):
Create a roster file for salt's syndic
'''
roster_path = os.path.join(FI... | Syndic roster not in <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -128,7 +128,7 @@ setup(
"Topic :: System :: Monitoring",
"Topic :: System :: Distributed Computing",
],
- entrypoints={
+ entry_points={
"console_scripts": [
"celerymon = cele... | setup: fixed typo entrypoints -> entry_points | py |
diff --git a/tacl/constants.py b/tacl/constants.py
index <HASH>..<HASH> 100644
--- a/tacl/constants.py
+++ b/tacl/constants.py
@@ -284,9 +284,9 @@ HIGHLIGHT_TEMPLATE = '''<!DOCTYPE html>
var n = 10;
var xr = 0;
var xg = 0;
- var xb = 0;
- var yr = 0;
- var yg = 128;
+ var xb = 2... | Changed colour scheme for highlighting to hopefully be clearer. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -74,9 +74,9 @@ setup(
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
- install_requires=['Spac... | removed pandas fork requirements_link, not working so far. Going to include a line in readme on getting fork | py |
diff --git a/pypeerassets/main.py b/pypeerassets/main.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/main.py
+++ b/pypeerassets/main.py
@@ -23,14 +23,17 @@ def find_all_valid_decks(provider, prod=True) -> list:
def deck_parser(i):
try:
validate_deckspawn_p2th(provider, i, prod=prod)
- ... | find_all_decks: adapt to recent changes in pautils functions. | py |
diff --git a/openquake/utils/config.py b/openquake/utils/config.py
index <HASH>..<HASH> 100644
--- a/openquake/utils/config.py
+++ b/openquake/utils/config.py
@@ -26,8 +26,11 @@ import os
import pwd
import sys
+import openquake
from openquake.utils import general
+OQDIR = os.path.dirname(openquake.__path__[0])
+... | Now openquake.cfg can be found even if you are not in the openquake directory Former-commit-id: e<I>fafa<I>e<I>eb<I>e7d<I>baf0a5c<I>b7 | py |
diff --git a/tests/functional/test_zsh.py b/tests/functional/test_zsh.py
index <HASH>..<HASH> 100644
--- a/tests/functional/test_zsh.py
+++ b/tests/functional/test_zsh.py
@@ -27,6 +27,9 @@ def proc(request):
proc.sendline(u'eval $(thefuck-alias)')
proc.sendline(u'export HISTFILE=~/.zsh_history')
proc.sen... | #<I> Fix zsh tests with `BARE` | py |
diff --git a/pylint_django/tests/input/func_noerror_model_methods.py b/pylint_django/tests/input/func_noerror_model_methods.py
index <HASH>..<HASH> 100644
--- a/pylint_django/tests/input/func_noerror_model_methods.py
+++ b/pylint_django/tests/input/func_noerror_model_methods.py
@@ -6,7 +6,7 @@ from django.db import mod... | Add test for Model.objects.get_or_create(). Closes #<I> the issue is not reproducible after the upgrade to pylint <I> where I deleted most of the transformations, including the offending one. | py |
diff --git a/filer/utils/files.py b/filer/utils/files.py
index <HASH>..<HASH> 100644
--- a/filer/utils/files.py
+++ b/filer/utils/files.py
@@ -16,7 +16,7 @@ def handle_upload(request):
# the file is stored raw in the request
is_raw = True
filename = request.GET.get('qqfile', False) or request... | Bugfix for issue #<I>. | py |
diff --git a/salt/returners/local_cache.py b/salt/returners/local_cache.py
index <HASH>..<HASH> 100644
--- a/salt/returners/local_cache.py
+++ b/salt/returners/local_cache.py
@@ -12,6 +12,7 @@ import os
import shutil
import time
import hashlib
+import bisect
# Import salt libs
import salt.payload
@@ -262,15 +263... | list_jobs_filter with local_cache performance update - avoid sorting by keeping sorted - don't keep all in memory | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,7 @@
import sys
import os
+import io
from setuptools import setup
from distutils.core import Extension
from Cython.Build import cythonize
@@ -38,7 +39,7 @@ weights = cythonize([
setup (name="denovonear",
... | account for encoding with python<I> | py |
diff --git a/angr/analyses/decompiler/structurer.py b/angr/analyses/decompiler/structurer.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/decompiler/structurer.py
+++ b/angr/analyses/decompiler/structurer.py
@@ -358,7 +358,6 @@ class Structurer(Analysis):
def _make_endless_loop(self, loop_head, loop_subgraph,... | Structurer: Remove a useless TODO comment. | py |
diff --git a/plenum/server/pool_manager.py b/plenum/server/pool_manager.py
index <HASH>..<HASH> 100644
--- a/plenum/server/pool_manager.py
+++ b/plenum/server/pool_manager.py
@@ -109,7 +109,7 @@ class TxnPoolManager(PoolManager):
return nstack, cstack, nodeReg
async def executePoolTxnRequest(self, viewN... | Fixing a few failing tests caused by recent refactoring. | py |
diff --git a/bulbs/content/models.py b/bulbs/content/models.py
index <HASH>..<HASH> 100644
--- a/bulbs/content/models.py
+++ b/bulbs/content/models.py
@@ -401,6 +401,14 @@ class Content(PolymorphicIndexable, PolymorphicModel):
return url
@property
+ def is_published(self):
+ if self.published:... | Added `is_published` property to `Content` | py |
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index <HASH>..<HASH> 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -766,9 +766,9 @@ See the setuptools documentation for the "develop" command for more info.
self.run_setup(set... | Fix a regression; this code was changed in order to avoid being fooled by incompatible eggs that might have ended up in the distribution directory, but the "fixed" code was broken. --HG-- branch : setuptools extra : convert_revision : svn%3A<I>fed2-<I>-<I>-9fe1-9d<I>cc<I>/sandbox/trunk/setuptools%<I> | py |
diff --git a/salt/modules/lxc.py b/salt/modules/lxc.py
index <HASH>..<HASH> 100644
--- a/salt/modules/lxc.py
+++ b/salt/modules/lxc.py
@@ -1828,8 +1828,12 @@ def update_lxc_conf(name, lxc_conf, lxc_conf_unset):
if not row:
continue
for conf in row:
- ... | Fix traceback for non-string values in lxc config files Resolves #<I>. | py |
diff --git a/tests/test_automated_analysis.py b/tests/test_automated_analysis.py
index <HASH>..<HASH> 100644
--- a/tests/test_automated_analysis.py
+++ b/tests/test_automated_analysis.py
@@ -55,7 +55,7 @@ class AutomatedAnalysisTest(unittest.TestCase):
"""
DlInfo = collections.namedtuple("DlInfo", "fn... | Update tarball for test genomes to include refFlat version of transcripts. Fixes #<I> | py |
diff --git a/tests/unit_project/test_newman/test_permissions.py b/tests/unit_project/test_newman/test_permissions.py
index <HASH>..<HASH> 100644
--- a/tests/unit_project/test_newman/test_permissions.py
+++ b/tests/unit_project/test_newman/test_permissions.py
@@ -122,7 +122,8 @@ class TestCategoryPermissions(UserWithPer... | assert changed in test_applicable_categories_for_user_permission_delete(). Now whole is list tested instead of comparing first item with desired vaue only. | py |
diff --git a/neo4j/__init__.py b/neo4j/__init__.py
index <HASH>..<HASH> 100644
--- a/neo4j/__init__.py
+++ b/neo4j/__init__.py
@@ -314,9 +314,6 @@ class Session(object):
# The current connection.
_connection = None
- # The access mode for the current connection.
- _connection_access_mode = None
-
... | Removed _connection_access_mode from Session | py |
diff --git a/tests/test_api_usage.py b/tests/test_api_usage.py
index <HASH>..<HASH> 100644
--- a/tests/test_api_usage.py
+++ b/tests/test_api_usage.py
@@ -2,6 +2,7 @@ import logging
import subprocess
import sys
import os
+import json
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
@@... | in the tests, use -f json instead of eval for the tellme | py |
diff --git a/bika/lims/browser/calcs.py b/bika/lims/browser/calcs.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/calcs.py
+++ b/bika/lims/browser/calcs.py
@@ -1,3 +1,4 @@
+from bika.lims.browser import BrowserView
from bika.lims import bikaMessageFactory as _
from bika.lims import logger
from Products.Archet... | Added BrowserView super class in calcs (refactoring) | py |
diff --git a/falafel/tools/generate_api_config.py b/falafel/tools/generate_api_config.py
index <HASH>..<HASH> 100755
--- a/falafel/tools/generate_api_config.py
+++ b/falafel/tools/generate_api_config.py
@@ -107,7 +107,7 @@ class APIConfigGenerator(object):
{"file": "/etc/redhat-access-insights/machine-... | openshift specs should be flattened | py |
diff --git a/quark/db/api.py b/quark/db/api.py
index <HASH>..<HASH> 100644
--- a/quark/db/api.py
+++ b/quark/db/api.py
@@ -51,7 +51,7 @@ for _name, klass in inspect.getmembers(models, inspect.isclass):
def _listify(filters):
for key in ["name", "network_id", "id", "device_id", "tenant_id",
- "sub... | Enable filtering on segment id Pass a tenant id as an argument in neutron subnet-list --segment-id={TENANT_ID} Useful for listing blocks in a cell. Fixes RM#<I> | py |
diff --git a/src/python/pants/commands/goal_runner.py b/src/python/pants/commands/goal_runner.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/commands/goal_runner.py
+++ b/src/python/pants/commands/goal_runner.py
@@ -114,7 +114,7 @@ class GoalRunner(Command):
known_scopes = ['']
for goal in Goal.all():
... | Filter out None scopes, to avoid trouble later. I'm not sure why we have tasks with no set scope, but we've seen this with custom tasks at Foursqare. Will figure that out later. Testing Done: Running ci. Reviewed at <URL> | py |
diff --git a/gandi/cli/modules/docker.py b/gandi/cli/modules/docker.py
index <HASH>..<HASH> 100644
--- a/gandi/cli/modules/docker.py
+++ b/gandi/cli/modules/docker.py
@@ -40,5 +40,8 @@ class Docker(GandiModule):
remote_addr = docker['ifaces'][0]['ips'][0]['ip']
port = unixpipe.setup(remote_addr, 'ro... | Use DOCKER_HOST and be verbose about that using DOCKER_HOST after tunnel setup is an option for the user. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -87,6 +87,12 @@ setup(
'Topic :: Software Development',
'Topic :: Software Development :: Testing',
],
- tests_require=['pytest'],
+ tests_require=[
+ 'pytest',
+ 'flake8-builtins',
+... | Added test requirements to setup.py | py |
diff --git a/rqalpha/api.py b/rqalpha/api.py
index <HASH>..<HASH> 100644
--- a/rqalpha/api.py
+++ b/rqalpha/api.py
@@ -33,9 +33,9 @@ from .analyser.order_style import MarketOrder, LimitOrder
__all__ = [
- scheduler.__name__,
- LimitOrder.__name__,
- MarketOrder.__name__
+ 'scheduler',
+ 'LimitOrder'... | revert __all__ definitions | py |
diff --git a/tests/test_export.py b/tests/test_export.py
index <HASH>..<HASH> 100755
--- a/tests/test_export.py
+++ b/tests/test_export.py
@@ -1,5 +1,7 @@
"""Test export functions."""
import unittest
+import unittest.mock
+import io
import pathlib
from pywal import export
@@ -39,6 +41,16 @@ class TestExportColors... | tests: Added test for template fail | py |
diff --git a/blockstack/lib/nameset/virtualchain_hooks.py b/blockstack/lib/nameset/virtualchain_hooks.py
index <HASH>..<HASH> 100644
--- a/blockstack/lib/nameset/virtualchain_hooks.py
+++ b/blockstack/lib/nameset/virtualchain_hooks.py
@@ -304,22 +304,15 @@ def get_db_state():
global blockstack_db
global la... | use mtime to determine when to re-load the database | py |
diff --git a/MQ2/mq2.py b/MQ2/mq2.py
index <HASH>..<HASH> 100644
--- a/MQ2/mq2.py
+++ b/MQ2/mq2.py
@@ -143,6 +143,9 @@ def get_plugin_and_folder(inputzip=None, inputdir=None, inputfile=None):
if len(plugins) > 1:
raise MQ2Exception('Your dataset contains valid input for '
'seve... | Raise an exception if the dataset can not be handled by any plugin | py |
diff --git a/deployment/update/update.py b/deployment/update/update.py
index <HASH>..<HASH> 100644
--- a/deployment/update/update.py
+++ b/deployment/update/update.py
@@ -17,7 +17,7 @@ import commander_settings as settings
th_service_src = os.path.join(settings.SRC_DIR, 'treeherder-service')
th_ui_src = os.path.join(... | added treeherder-service to sys.path | py |
diff --git a/penman/main.py b/penman/main.py
index <HASH>..<HASH> 100644
--- a/penman/main.py
+++ b/penman/main.py
@@ -8,19 +8,21 @@ from penman.__about__ import __version__
from penman.codec import PENMANCodec
from penman.model import Model
+
def process(f, model, out, format_options):
+ """Read graphs from *f... | Fix main script to write to specified stream | py |
diff --git a/scoop/launch/__init__.py b/scoop/launch/__init__.py
index <HASH>..<HASH> 100644
--- a/scoop/launch/__init__.py
+++ b/scoop/launch/__init__.py
@@ -84,8 +84,9 @@ class Host(object):
# TODO: do we really want to set PYTHONPATH='' if not defined??
c.extend(["export", "PYTHONPATH={0}:$... | * Fixed a bug when starting in could mode on heterogeneous systems. | py |
diff --git a/master/setup.py b/master/setup.py
index <HASH>..<HASH> 100755
--- a/master/setup.py
+++ b/master/setup.py
@@ -409,7 +409,8 @@ if sys.version_info[:2] == (2, 6):
txaio_ver = "== 2.2.2"
else:
- twisted_ver = ">= 14.0.1"
+ # twisted 16.3.0 breaks buildbot websockets
+ twisted_ver = ">= 14.0.1... | pin twisted to < <I> | py |
diff --git a/src/automate/extensions/webui/settings.py b/src/automate/extensions/webui/settings.py
index <HASH>..<HASH> 100644
--- a/src/automate/extensions/webui/settings.py
+++ b/src/automate/extensions/webui/settings.py
@@ -18,6 +18,8 @@ import os
SECRET_KEY = 'insecure-default'
ALLOWED_HOSTS = ['*']
ROOT_URLCONF... | Temporary fix to timezone problems with WebService | py |
diff --git a/growler/http/parser.py b/growler/http/parser.py
index <HASH>..<HASH> 100644
--- a/growler/http/parser.py
+++ b/growler/http/parser.py
@@ -300,7 +300,7 @@ class Parser:
prev_char = data[line_end_pos - 1]
- return b'\r\n' if (prev_char is b'\r'[0]) else b'\n'
+ return b'\r\n' if (p... | Parser: Fix SyntaxWarning "is-with-literal" | py |
diff --git a/curdling/treestore.py b/curdling/treestore.py
index <HASH>..<HASH> 100644
--- a/curdling/treestore.py
+++ b/curdling/treestore.py
@@ -47,12 +47,6 @@ class TreeStore(object):
(parent or self.root).nodes.append(node)
return node
- def append_node(self, parent, node):
- node = no... | Removing a method we currently do not need righ now | py |
diff --git a/src/supy/_load.py b/src/supy/_load.py
index <HASH>..<HASH> 100644
--- a/src/supy/_load.py
+++ b/src/supy/_load.py
@@ -633,7 +633,7 @@ def set_index_dt(df_raw: pd.DataFrame) -> pd.DataFrame:
dt_diff = idx_dt.to_series().diff()
if (~dt_diff[1:].duplicated()).sum() > 1:
# locate the problem... | improve the way how problematic lines are located when loading data | py |
diff --git a/O365/drive.py b/O365/drive.py
index <HASH>..<HASH> 100644
--- a/O365/drive.py
+++ b/O365/drive.py
@@ -1198,6 +1198,10 @@ class Folder(DriveItem):
data = response.json()
upload_url = data.get(self._cc('uploadUrl'), None)
+ log.info('Resumable upload on url: {}'.format(... | logging resumable upload expiration datetime for debug #<I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.