diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/glances/exports/glances_influxdb.py b/glances/exports/glances_influxdb.py
index <HASH>..<HASH> 100644
--- a/glances/exports/glances_influxdb.py
+++ b/glances/exports/glances_influxdb.py
@@ -133,9 +133,15 @@ class Export(GlancesExport):
# Manage prefix
if self.prefix is not None:
... | InfluxDB > <I> needs float and not int for numerical value. Correct issue#<I> and issue#<I> | py |
diff --git a/gns3server/version.py b/gns3server/version.py
index <HASH>..<HASH> 100644
--- a/gns3server/version.py
+++ b/gns3server/version.py
@@ -23,8 +23,8 @@
# or negative for a release candidate or beta (after the base version
# number has been incremented)
-__version__ = "2.2.18"
-__version_info__ = (2, 2, 18,... | Development on <I>dev1 | py |
diff --git a/tests/test_expected_returns.py b/tests/test_expected_returns.py
index <HASH>..<HASH> 100644
--- a/tests/test_expected_returns.py
+++ b/tests/test_expected_returns.py
@@ -125,6 +125,11 @@ def test_ema_historical_return():
assert list(mean.index) == list(df.columns)
assert mean.notnull().all()
... | Test expected_returns.ema_historical_return with non-DataFrame param. | py |
diff --git a/telluric/collections.py b/telluric/collections.py
index <HASH>..<HASH> 100644
--- a/telluric/collections.py
+++ b/telluric/collections.py
@@ -53,18 +53,10 @@ def dissolve(collection, aggfunc=None):
else:
new_properties = {}
- if 'raster_url' in collection.attribute_names:
- final_... | Make dissolve raster-agnostic | py |
diff --git a/tests/test_model_relations.py b/tests/test_model_relations.py
index <HASH>..<HASH> 100644
--- a/tests/test_model_relations.py
+++ b/tests/test_model_relations.py
@@ -133,10 +133,13 @@ class TestCase:
mate2 = User(name="Mate2", supervisor=ceo).blocking_save()
ceo.reload()
assert m... | FIX: enable tests for issue "self referencing models creates erroneous two way relations". rclose #<I> closes #GH-<I> | py |
diff --git a/pipenv/core.py b/pipenv/core.py
index <HASH>..<HASH> 100644
--- a/pipenv/core.py
+++ b/pipenv/core.py
@@ -1154,7 +1154,7 @@ def do_lock(verbose=False, system=False, clear=False, pre=False, keep_outdated=F
name = list(installed.keys())[0]
if is_vcs(installed[name]):
- ... | Convert dependency name to PEP <I> name when looking for it in lockfile | py |
diff --git a/em73xx/modem.py b/em73xx/modem.py
index <HASH>..<HASH> 100644
--- a/em73xx/modem.py
+++ b/em73xx/modem.py
@@ -99,7 +99,7 @@ class Modem(object):
def getSMS(self):
self.Command("CMGL", [quote("ALL")])
raw_input = self.Read()
- raw_sms = [l for l in raw_input if l.strip() and l.... | apparently sometimes we get a cheeky AT+CMGL at the start of our SMS response | py |
diff --git a/hydra_base/db/__init__.py b/hydra_base/db/__init__.py
index <HASH>..<HASH> 100644
--- a/hydra_base/db/__init__.py
+++ b/hydra_base/db/__init__.py
@@ -93,7 +93,7 @@ def connect(db_url=None):
db_url = config.get('mysqld', 'url')
- log.info("Connecting to database: %s", db_url)
+ log.debug(... | Make db connection log debug | py |
diff --git a/tests/xapian_tests/tests/xapian_backend.py b/tests/xapian_tests/tests/xapian_backend.py
index <HASH>..<HASH> 100644
--- a/tests/xapian_tests/tests/xapian_backend.py
+++ b/tests/xapian_tests/tests/xapian_backend.py
@@ -21,7 +21,7 @@ from core.tests.mocks import MockSearchResult
def get_terms(backend, *ar... | Fixed error on get_terms that caused the last term to end in '\n'. | py |
diff --git a/dsmr_parser/objects.py b/dsmr_parser/objects.py
index <HASH>..<HASH> 100644
--- a/dsmr_parser/objects.py
+++ b/dsmr_parser/objects.py
@@ -156,6 +156,16 @@ class ProfileGenericObject(DSMRObject):
self._buffer_list = None
@property
+ def value(self):
+ # value is added to make sure ... | add value and unit properties to ProfileGenericObject to make sure that code like iterators that rely on that do not break | py |
diff --git a/toytree/Toytree.py b/toytree/Toytree.py
index <HASH>..<HASH> 100644
--- a/toytree/Toytree.py
+++ b/toytree/Toytree.py
@@ -868,6 +868,23 @@ class ToyTree(object):
# return nself
+ def generate_axes(self, firstname=None, lastname=None, axes=None, color="green", opacity=.25):
+ ... | Fix for issue #<I> to add support for clade highlighting by names | py |
diff --git a/raven/contrib/flask.py b/raven/contrib/flask.py
index <HASH>..<HASH> 100644
--- a/raven/contrib/flask.py
+++ b/raven/contrib/flask.py
@@ -44,6 +44,7 @@ def make_client(client_cls, app, dsn=None):
processors=app.config.get('SENTRY_PROCESSORS'),
string_max_length=app.config.get('SENTRY_MAX_... | Expose auto_log_stacks option in Flask extension | py |
diff --git a/dscan/plugins/joomla.py b/dscan/plugins/joomla.py
index <HASH>..<HASH> 100644
--- a/dscan/plugins/joomla.py
+++ b/dscan/plugins/joomla.py
@@ -17,6 +17,7 @@ class Joomla(BasePlugin):
interesting_urls = [
("joomla.xml", "This CMS' default changelog."),
+ ("administrator/manifests/files... | Add new interesting joomla file. | py |
diff --git a/phypno/trans/frequency.py b/phypno/trans/frequency.py
index <HASH>..<HASH> 100644
--- a/phypno/trans/frequency.py
+++ b/phypno/trans/frequency.py
@@ -173,8 +173,9 @@ def timefrequency(data, method='morlet', time_skip=1, **options):
data points, but you don't need to store them all)
no... | explain one of the normalizations, used by nitime, a bit better | py |
diff --git a/tests/letter_tests.py b/tests/letter_tests.py
index <HASH>..<HASH> 100644
--- a/tests/letter_tests.py
+++ b/tests/letter_tests.py
@@ -468,9 +468,11 @@ class NumeralNegTest(unittest.TestCase):
expected = u'மூன்று இலட்சத்தி ஒன்று'
self.assertEqual( actual, expected )
- @unittest.sk... | Python<I> should pass tests since @unittest.skipIf decorator is not present in it | py |
diff --git a/tests/test_core.py b/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -64,6 +64,21 @@ class TestResource:
class Poll(orm.Resource):
pass
+ def test_subclassing_keeps_fields(self, resource):
+ Post = resource
+
+ ... | add test for resource subclass keeps fields | py |
diff --git a/mtools/util/logfile.py b/mtools/util/logfile.py
index <HASH>..<HASH> 100644
--- a/mtools/util/logfile.py
+++ b/mtools/util/logfile.py
@@ -108,7 +108,8 @@ class LogFile(InputSource):
for line in self.filehandle:
le = LogEvent(line)
# adjust for year rollover if necessary
-... | bug: if logevent doesn't have a datetime, that would crash. | py |
diff --git a/openpack/basepack.py b/openpack/basepack.py
index <HASH>..<HASH> 100644
--- a/openpack/basepack.py
+++ b/openpack/basepack.py
@@ -5,7 +5,7 @@ import os
import posixpath
import datetime
import logging
-import collections
+import collections.abc
import codecs
from collections import defaultdict
from ty... | Fix deprecation warning in collections.abc | py |
diff --git a/topydo/lib/PrettyPrinterFilter.py b/topydo/lib/PrettyPrinterFilter.py
index <HASH>..<HASH> 100644
--- a/topydo/lib/PrettyPrinterFilter.py
+++ b/topydo/lib/PrettyPrinterFilter.py
@@ -66,7 +66,7 @@ class PrettyPrinterColorFilter(PrettyPrinterFilter):
p_todo_str)
# tags
- ... | Highlight tags when the value is one character long. Tags with a value of length 1 were not highlighted with the metadata color. Compare: <URL> | py |
diff --git a/lib/tri/table/__init__.py b/lib/tri/table/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/tri/table/__init__.py
+++ b/lib/tri/table/__init__.py
@@ -241,15 +241,12 @@ class Column(RefinableObject):
return bound_column
- EVALUATED_ATTRIBUTES = [
- 'after', 'attr', 'auto_rowspan', 'bu... | Removed EVALUATED_MEMBERS | py |
diff --git a/ontobio/golr/golr_query.py b/ontobio/golr/golr_query.py
index <HASH>..<HASH> 100644
--- a/ontobio/golr/golr_query.py
+++ b/ontobio/golr/golr_query.py
@@ -414,8 +414,8 @@ class GolrSearchQuery(GolrAbstractQuery):
}
except ET.ParseError:
highlight = {
- ... | use first label when hl fails | py |
diff --git a/squad/settings.py b/squad/settings.py
index <HASH>..<HASH> 100644
--- a/squad/settings.py
+++ b/squad/settings.py
@@ -285,6 +285,7 @@ SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
# Celery settings
CELERY_BROKER_URL = os.getenv('SQUAD_CELERY_BROKER_URL')
+CELERY_TASK_ALWAYS_EAGER = CELE... | settings: run tasks when there is no broker This will make SQUAD run tasks right away when there's no configuration for broker | py |
diff --git a/tweepy/api.py b/tweepy/api.py
index <HASH>..<HASH> 100644
--- a/tweepy/api.py
+++ b/tweepy/api.py
@@ -3210,11 +3210,18 @@ class API:
Returns a specific direct message.
- :param id: The ID of the Direct Message event that should be returned.
+ Parameters
+ ----------
+ ... | Update and improve documentation for API.get_direct_message | py |
diff --git a/spiketoolkit/comparison/groundtruthcomparison.py b/spiketoolkit/comparison/groundtruthcomparison.py
index <HASH>..<HASH> 100644
--- a/spiketoolkit/comparison/groundtruthcomparison.py
+++ b/spiketoolkit/comparison/groundtruthcomparison.py
@@ -49,7 +49,10 @@ class GroundTruthComparison(BaseComparison):
... | Use best match instaed of hugarian match for couting in GT context. | py |
diff --git a/tests/test_create_app.py b/tests/test_create_app.py
index <HASH>..<HASH> 100644
--- a/tests/test_create_app.py
+++ b/tests/test_create_app.py
@@ -26,15 +26,10 @@ def test_create_app(mocker, to_file=None, redirect_uris=None, website=None):
assert app == ('foo', 'bar')
assert requests.post.called
... | use pytest tmpdir fixture instead of making our own temp file | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -30,6 +30,8 @@ setup(name='jtextfsm',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
+ 'Programming Lang... | setup.py: advertise Python 3 compatibility | py |
diff --git a/run_coveralls.py b/run_coveralls.py
index <HASH>..<HASH> 100644
--- a/run_coveralls.py
+++ b/run_coveralls.py
@@ -7,5 +7,6 @@ from subprocess import call
if __name__ == '__main__':
if 'TRAVIS' in os.environ:
+ print("Calling coveralls")
rc = call('coveralls')
raise SystemEx... | Add a check that coveralls is actually called | py |
diff --git a/xmantissa/test/test_mantissacmd.py b/xmantissa/test/test_mantissacmd.py
index <HASH>..<HASH> 100644
--- a/xmantissa/test/test_mantissacmd.py
+++ b/xmantissa/test/test_mantissacmd.py
@@ -1,7 +1,13 @@
+# Copyright (c) 2008 Divmod. See LICENSE for details.
+
+"""
+Tests for I{axiomatic mantissa} and other fu... | Merge no-sslverify-<I> Author: exarkun Reviewer: washort Fixes: #<I> Convert the use of `epsilon.sslverify` in Vertex, Mantissa, and Quotient to use of `twisted.internet.ssl`. | py |
diff --git a/src/recipe/core.py b/src/recipe/core.py
index <HASH>..<HASH> 100644
--- a/src/recipe/core.py
+++ b/src/recipe/core.py
@@ -387,6 +387,8 @@ class Recipe(six.with_metaclass(RecipeBase)):
:return: A SQLAlchemy query
"""
+ if len(self._cauldron.ingredients()) == 0:
+ raise ... | Raise a bad recipe if we try accessing the query before adidng ingreds | py |
diff --git a/salt/returners/slack_returner.py b/salt/returners/slack_returner.py
index <HASH>..<HASH> 100644
--- a/salt/returners/slack_returner.py
+++ b/salt/returners/slack_returner.py
@@ -238,7 +238,7 @@ def _post_message(channel,
parameters['channel'] = channel
parameters['username'] = username
param... | Fixed-pitch messages from Slack returner. Wrap messages from the Slack returner in triple backticks to format them as a block of pre-formatted, fixed-width text. | py |
diff --git a/climlab/tests/test_rcm.py b/climlab/tests/test_rcm.py
index <HASH>..<HASH> 100644
--- a/climlab/tests/test_rcm.py
+++ b/climlab/tests/test_rcm.py
@@ -75,3 +75,25 @@ def test_coupled_rcm(rcm):
model.add_subprocess('Ocean Heat Uptake', diff)
for i in range(10):
model.step_forward()
+
+@pyt... | Add test for multi-dimensional convective adjustment. Currently failing | py |
diff --git a/salt/cloud/clouds/ibmsce.py b/salt/cloud/clouds/ibmsce.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/ibmsce.py
+++ b/salt/cloud/clouds/ibmsce.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
'''
IBM SCE Cloud Module
==================== | utf tag for ibm cloud | py |
diff --git a/knxip/ip.py b/knxip/ip.py
index <HASH>..<HASH> 100644
--- a/knxip/ip.py
+++ b/knxip/ip.py
@@ -204,7 +204,7 @@ class CEMIMessage():
(self.src_addr >> 8) & 0xff, (self.src_addr >> 0) & 0xff,
(self.dst_addr >> 8) & 0xff, (self.dst_addr >> 0) & 0xff,
]
- ... | Fixed packing data up to 6 bits instead of 2 bits | py |
diff --git a/src/main/python/rlbot/utils/rendering/rendering_manager.py b/src/main/python/rlbot/utils/rendering/rendering_manager.py
index <HASH>..<HASH> 100644
--- a/src/main/python/rlbot/utils/rendering/rendering_manager.py
+++ b/src/main/python/rlbot/utils/rendering/rendering_manager.py
@@ -330,6 +330,10 @@ class Re... | Add support for Chip's LinearAlgebra.vec3 vector in rendering (#<I>) | py |
diff --git a/wooey/conf/project_template/middleware.py b/wooey/conf/project_template/middleware.py
index <HASH>..<HASH> 100644
--- a/wooey/conf/project_template/middleware.py
+++ b/wooey/conf/project_template/middleware.py
@@ -6,7 +6,7 @@ class ProcessExceptionMiddleware(object):
def process_response(self, request... | removal of redundant newline in bootstrapper traceback middleware | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ setup(name='dispatch',
'pillow',
'requests == 2.6.0',
'jsonfield',
- 'phonenumber_field == 1.3.0'
+ 'django-phonenumber-field == 1.3.0'
],
extras_require={
... | Second try, using the actual name of the package | py |
diff --git a/soco/data_structures.py b/soco/data_structures.py
index <HASH>..<HASH> 100644
--- a/soco/data_structures.py
+++ b/soco/data_structures.py
@@ -456,16 +456,6 @@ class MLArtist(MusicLibraryItem):
item_class = 'object.container.person.musicArtist'
- def __init__(self, uri, title, parent_id, item_id... | Remove MLArtist __init__ method | py |
diff --git a/scout/commands/export/case.py b/scout/commands/export/case.py
index <HASH>..<HASH> 100644
--- a/scout/commands/export/case.py
+++ b/scout/commands/export/case.py
@@ -21,7 +21,11 @@ LOG = logging.getLogger(__name__)
@click.option("-f", "--finished", is_flag=True, help="archived or solved")
@click.option("... | Slightly mprove CLI help text | py |
diff --git a/pgmpy/Factor/Factor.py b/pgmpy/Factor/Factor.py
index <HASH>..<HASH> 100644
--- a/pgmpy/Factor/Factor.py
+++ b/pgmpy/Factor/Factor.py
@@ -296,7 +296,8 @@ class Factor:
return self.product(other)
def __eq__(self, other):
- if self.variables == other.variables and self.cardinality == o... | minor correction in __eq__ | py |
diff --git a/algoliasearch_django/registration.py b/algoliasearch_django/registration.py
index <HASH>..<HASH> 100644
--- a/algoliasearch_django/registration.py
+++ b/algoliasearch_django/registration.py
@@ -22,7 +22,7 @@ class RegistrationError(AlgoliaEngineError):
class AlgoliaEngine(object):
def __init__(self... | chore(AlgoliaEngine): Fix docstring missing word | py |
diff --git a/salt/states/archive.py b/salt/states/archive.py
index <HASH>..<HASH> 100644
--- a/salt/states/archive.py
+++ b/salt/states/archive.py
@@ -966,7 +966,7 @@ def extracted(name,
if result['result']:
# Get the path of the file in the minion cache
- cached = __salt__['cp.is_cac... | Check the effective saltenv for cached archive This fixes a regression caused by using a saltenv other than `base`. | py |
diff --git a/examples/create_a_full_set_of_meta_analysis_images.py b/examples/create_a_full_set_of_meta_analysis_images.py
index <HASH>..<HASH> 100644
--- a/examples/create_a_full_set_of_meta_analysis_images.py
+++ b/examples/create_a_full_set_of_meta_analysis_images.py
@@ -1,5 +1,6 @@
from neurosynth.base.dataset imp... | Added full meta-analysis set example | py |
diff --git a/build_system/setup.py b/build_system/setup.py
index <HASH>..<HASH> 100644
--- a/build_system/setup.py
+++ b/build_system/setup.py
@@ -109,7 +109,7 @@ def clean(trunkdir):
log.info("Removing %s in %s" % (file, path))
os.remove(os.path.join(path, file))
- for dir in dirs:
+ for dir ... | Create a copy of directory list for iteration. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -54,6 +54,8 @@ DOCS_REQUIRES = (
'pyinfra-guzzle_sphinx_theme==0.10',
'recommonmark==0.5.0',
'sphinx==2.2.1 ; python_version >= "3"',
+ # Pinned to fix: https://github.com/sphinx-doc/sphinx/issues/9727
+ '... | Pin docutils to fix doc builds. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ version of Python.
sys.exit(1)
-version = '2.2.0'
+version = '2.3.0'
setup(
name='django-pgcrypto-fields', | Bumped the version to <I> | py |
diff --git a/varify/samples/management/subcommands/gene_ranks.py b/varify/samples/management/subcommands/gene_ranks.py
index <HASH>..<HASH> 100644
--- a/varify/samples/management/subcommands/gene_ranks.py
+++ b/varify/samples/management/subcommands/gene_ranks.py
@@ -24,17 +24,18 @@ class Command(BaseCommand):
)
... | Use safer lookup when checking that all gene rank related settings exist | py |
diff --git a/cumulusci/tasks/robotframework/robotperflistener.py b/cumulusci/tasks/robotframework/robotperflistener.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/robotframework/robotperflistener.py
+++ b/cumulusci/tasks/robotframework/robotperflistener.py
@@ -39,6 +39,7 @@ class RobotPerfListener:
self.... | Fix averaging and minor cleanup of instance var. | py |
diff --git a/django_ses/views.py b/django_ses/views.py
index <HASH>..<HASH> 100644
--- a/django_ses/views.py
+++ b/django_ses/views.py
@@ -210,8 +210,9 @@ def handle_bounce(request):
)
return HttpResponse()
- if notification.get('Type') == 'SubscriptionConfirmation':
- # Process the subscr... | Added support for UnsubscribeConfirmation. | py |
diff --git a/bqplot/interacts.py b/bqplot/interacts.py
index <HASH>..<HASH> 100644
--- a/bqplot/interacts.py
+++ b/bqplot/interacts.py
@@ -254,7 +254,7 @@ class FastIntervalSelector(OneDSelector):
----------
selected: numpy.ndarray
Two-element array containing the start and end of the interval select... | changing docs for selectors | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,10 @@ setup(
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3'
... | mark python 3 support in setup.py | py |
diff --git a/projex/enum.py b/projex/enum.py
index <HASH>..<HASH> 100644
--- a/projex/enum.py
+++ b/projex/enum.py
@@ -28,6 +28,8 @@ class enum(dict):
|>>> TestType.keys()
|[1,2,4]
"""
+ def __json__(self):
+ return dict(self)
def __call__(self, key):
""" | supporting the ability to convert an enum value to JSON | py |
diff --git a/openfisca_web_api/controllers.py b/openfisca_web_api/controllers.py
index <HASH>..<HASH> 100644
--- a/openfisca_web_api/controllers.py
+++ b/openfisca_web_api/controllers.py
@@ -328,7 +328,7 @@ def api1_simulate(req):
output_table.set_inputs(input_table)
output_table.disable(disabled_pres... | Rework & rename calculate methods. | py |
diff --git a/imgaug/augmenters/meta.py b/imgaug/augmenters/meta.py
index <HASH>..<HASH> 100644
--- a/imgaug/augmenters/meta.py
+++ b/imgaug/augmenters/meta.py
@@ -1042,7 +1042,7 @@ class Augmenter(object): # pylint: disable=locally-disabled, unused-variable, l
>>> batches_aug = pool.imap_batches(generate_... | Fixed error in new pool doctest | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ setup(
platforms='any',
install_requires=[
'Flask>=0.9',
- 'python-socketio>=4.3.0'
+ 'python-socketio>=4.3.0,<5'
],
tests_require=[
'coverage' | only use python-socketio 4.x versions as dependencies for now | py |
diff --git a/astrobase/astrokep.py b/astrobase/astrokep.py
index <HASH>..<HASH> 100644
--- a/astrobase/astrokep.py
+++ b/astrobase/astrokep.py
@@ -279,6 +279,7 @@ def read_kepler_fitslc(lcfits,
'ndet':[ndet],
},
'objectinfo':{
+ 'objectid':hdrinfo['object'], # repeated here for... | astrokep: repeat objectid key in objectinfo for checkplot use | py |
diff --git a/asmlex.py b/asmlex.py
index <HASH>..<HASH> 100755
--- a/asmlex.py
+++ b/asmlex.py
@@ -110,7 +110,9 @@ pseudo = { # pseudo ops
'endp': 'ENDP',
'local': 'LOCAL',
'end': 'END',
- 'incbin': 'INCBIN'
+ 'incbin': 'INCBIN',
+ 'namespace': 'NAMESPACE',
+ 'default': 'DEFAULT'
} | Added NAMESPACE and DEFAULT tokens. | py |
diff --git a/osmnx/utils.py b/osmnx/utils.py
index <HASH>..<HASH> 100644
--- a/osmnx/utils.py
+++ b/osmnx/utils.py
@@ -661,11 +661,6 @@ def get_nearest_edges(G, X, Y, method=None, dist=10):
"""
start_time = time.time()
- if not isinstance(X, list) or not isinstance(Y, list):
- # Check X or Y are n... | Reverted check on list-like type in get_nearest_edges() | py |
diff --git a/scripts/make_dist.py b/scripts/make_dist.py
index <HASH>..<HASH> 100644
--- a/scripts/make_dist.py
+++ b/scripts/make_dist.py
@@ -11,8 +11,12 @@ import sys
import tarfile
import zipfile
+if(sys.version_info[0]!=2):
+ raise ValueError("This script uses pyminifier, which only works with Python 2")
+
... | Change version to <I> ; stop make_dist.py if not run with Python 2 | py |
diff --git a/src/python/twitter/pants/tasks/ivy_resolve.py b/src/python/twitter/pants/tasks/ivy_resolve.py
index <HASH>..<HASH> 100644
--- a/src/python/twitter/pants/tasks/ivy_resolve.py
+++ b/src/python/twitter/pants/tasks/ivy_resolve.py
@@ -135,8 +135,10 @@ class IvyResolve(NailgunTask):
if self.context.produc... | Add ivy resolved classpaths as a unit. (sapling split of 7b<I>a1b<I>e<I>cacad<I>f<I>cde<I>c<I>dc) | py |
diff --git a/autofixture/__init__.py b/autofixture/__init__.py
index <HASH>..<HASH> 100644
--- a/autofixture/__init__.py
+++ b/autofixture/__init__.py
@@ -47,7 +47,7 @@ def unregister(model_or_iterable, fail_silently=False):
Remove one or more models from the autofixture registry.
'''
from django.db impo... | Fixing type check in unregister function. Thanks Mikko Hellsing for the Report. | py |
diff --git a/salt/states/mount.py b/salt/states/mount.py
index <HASH>..<HASH> 100644
--- a/salt/states/mount.py
+++ b/salt/states/mount.py
@@ -18,6 +18,7 @@ Mount any type of mountable filesystem with the mounted function:
# Import python libs
import os.path
+import re
# Import salt libs
from salt._compat impor... | use /dev/mapper name for LVM devices Fixes #<I> LVM devices can be referenced by either `/dev/vgname/lvname` or `/dev/mapper/vgname-lvname` However mount always returns the `/dev/mapper` name. We should convert names to the `/dev/mapper` format. | py |
diff --git a/src/werkzeug/__init__.py b/src/werkzeug/__init__.py
index <HASH>..<HASH> 100644
--- a/src/werkzeug/__init__.py
+++ b/src/werkzeug/__init__.py
@@ -3,4 +3,4 @@ from .test import Client as Client
from .wrappers import Request as Request
from .wrappers import Response as Response
-__version__ = "2.2.0.dev0... | prerelease version <I>a1 | py |
diff --git a/tests/basic_map_operations_test.py b/tests/basic_map_operations_test.py
index <HASH>..<HASH> 100644
--- a/tests/basic_map_operations_test.py
+++ b/tests/basic_map_operations_test.py
@@ -26,7 +26,7 @@ class TestBasicMapOperations(unittest.TestCase):
self.assertAlmostEquals(22.360679774997898, dista... | test: avoiding using assertIsNone in tests for compatibility with python <I> Former-commit-id: 3a<I>ade7b<I>ddeb<I>f4c<I>eeb6a | py |
diff --git a/tests/test_cli.py b/tests/test_cli.py
index <HASH>..<HASH> 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -65,6 +65,18 @@ class TestMain(object):
cli.main([])
assert print_help.call_count == 1
+ @pytest.mark.parametrize(['loglevel'], [('INFO', ), ('DEBUG', )])
+ @mock.p... | Add tests for loglevel and timestamps | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ if sys.version_info[:2] < (2, 6):
'For Python 2.4 / 2.5 please use bitstring version 1.0 instead.')
setup(name='bitstring',
- version='2.0.0 beta 1',
+ version='2.0.0_beta_1',
... | Slight renaming of version to exclude spaces. | py |
diff --git a/visidata/data.py b/visidata/data.py
index <HASH>..<HASH> 100644
--- a/visidata/data.py
+++ b/visidata/data.py
@@ -242,6 +242,16 @@ def open_txt(p):
return open_tsv(p) # TSV often have .txt extension
return TextSheet(p.name, p)
+@async
+def save_txt(vs, fn):
+ assert len(vs.visib... | [save] save_txt with one column concatenates all to single file | py |
diff --git a/wandb/util.py b/wandb/util.py
index <HASH>..<HASH> 100644
--- a/wandb/util.py
+++ b/wandb/util.py
@@ -890,7 +890,11 @@ def no_retry_auth(e: Any) -> bool:
def check_retry_commit_artifact(e: Any) -> bool:
if hasattr(e, "exception"):
e = e.exception
- if isinstance(e, requests.HTTPError) and... | Add safety check to retry logic (response could be None) (#<I>) | py |
diff --git a/gnomon/GeneratorAction.py b/gnomon/GeneratorAction.py
index <HASH>..<HASH> 100644
--- a/gnomon/GeneratorAction.py
+++ b/gnomon/GeneratorAction.py
@@ -348,7 +348,7 @@ class GenieGenerator(Generator):
command = """cd %(tmpdir)s
%(command)s
-gntpc -i %(int_file)s -o %(filename)s -f gst
+DISPLAY= g... | Resolve ROOT issue where gntpc crashes if can't find X server | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,6 @@
#!/usr/bin/env python
from setuptools import setup
-import pypandoc
version = '0.9.4' | Remove pypandoc from script... | py |
diff --git a/tests/unit/modules/test_pkg_resource.py b/tests/unit/modules/test_pkg_resource.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_pkg_resource.py
+++ b/tests/unit/modules/test_pkg_resource.py
@@ -151,8 +151,8 @@ class PkgresTestCase(TestCase, LoaderModuleMockMixin):
def test_format_pkg_list_... | Fix pylint issues | py |
diff --git a/test_nexmo.py b/test_nexmo.py
index <HASH>..<HASH> 100644
--- a/test_nexmo.py
+++ b/test_nexmo.py
@@ -3,7 +3,10 @@ try:
except ImportError:
from urlparse import urlparse
-from urllib import quote_plus
+try:
+ from urllib.parse import quote_plus
+except ImportError:
+ from urllib import quote_plus
... | Another couple of unit test fixes for Python 3.x | py |
diff --git a/xmantissa/publicweb.py b/xmantissa/publicweb.py
index <HASH>..<HASH> 100644
--- a/xmantissa/publicweb.py
+++ b/xmantissa/publicweb.py
@@ -259,9 +259,10 @@ class PublicFrontPage(publicresource.PublicPage):
def renderHTTP(self, ctx):
if self.username:
self.original.publicViews += 1... | Redirect to /private from / for authenticated users Author: exarkun Reviewer: moea Fixes #<I> | py |
diff --git a/moto/core/responses.py b/moto/core/responses.py
index <HASH>..<HASH> 100644
--- a/moto/core/responses.py
+++ b/moto/core/responses.py
@@ -1,5 +1,6 @@
from __future__ import unicode_literals
+import os
from collections import defaultdict
import datetime
import json
@@ -107,14 +108,14 @@ class _Templat... | Introduced environment variable to delay the start of authorization. | py |
diff --git a/soupsieve/css_match.py b/soupsieve/css_match.py
index <HASH>..<HASH> 100644
--- a/soupsieve/css_match.py
+++ b/soupsieve/css_match.py
@@ -1182,7 +1182,7 @@ class _Match(object):
out_of_range = False
- itype = self.get_attribute_by_name(el, 'type').lower()
+ itype = util.lower(sel... | Use consistent lower logic in all places (#<I>) | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -1877,7 +1877,7 @@ class State(object):
# a nice error message
comment_dict = {}
# look at all requisite types for a failure
- for req_type,... | We only need the values, iterate them only | py |
diff --git a/salesforce/router.py b/salesforce/router.py
index <HASH>..<HASH> 100644
--- a/salesforce/router.py
+++ b/salesforce/router.py
@@ -43,3 +43,5 @@ class ModelRouter(object):
"""
if(db == self.sf_alias):
return False
+ if(hasattr(model, '_salesforce_object')):
+ return False | refactored db router to work better with other routers | py |
diff --git a/simpl/config.py b/simpl/config.py
index <HASH>..<HASH> 100644
--- a/simpl/config.py
+++ b/simpl/config.py
@@ -350,6 +350,7 @@ class Config(collections.MutableMapping):
self._argv = argv
self._metaconfigure(argv=self._argv)
self._parser = argparse.ArgumentParser(**parser_kwargs)
+... | allow setting self.prog after init The 'prog' is used for many things, including the default os.environ namespace, the keyring namespace, and the default ini file section name. It is useful to be able to reset this on the fly so that those resulting targets can be changed. | py |
diff --git a/atrcopy/segments.py b/atrcopy/segments.py
index <HASH>..<HASH> 100755
--- a/atrcopy/segments.py
+++ b/atrcopy/segments.py
@@ -100,7 +100,11 @@ class DefaultSegment(object):
def get_style_ranges(self, **kwargs):
style_bits = self.get_style_bits(**kwargs)
- w = np.where(self.style ... | Added bool_to_ranges to convert numpy boolean result to list of ranges | py |
diff --git a/salt/modules/deb.py b/salt/modules/deb.py
index <HASH>..<HASH> 100644
--- a/salt/modules/deb.py
+++ b/salt/modules/deb.py
@@ -38,8 +38,8 @@ def list_pkgs(*packages):
CLI Example::
- salt '*' pkg.list_pkgs
- salt '*' pkg.list_pkgs httpd
+ salt '*' lowpkg.list_pkgs
+ salt... | Fixing docstrings (pkg -> lowpkg) | py |
diff --git a/scripts/install_dev_python_modules.py b/scripts/install_dev_python_modules.py
index <HASH>..<HASH> 100644
--- a/scripts/install_dev_python_modules.py
+++ b/scripts/install_dev_python_modules.py
@@ -84,13 +84,11 @@ def main(quiet):
"-e python_modules/libraries/dagster-ssh",
"-e python_modu... | Bring back dagster-airflow in make dev_instal Summary: Resolves #<I>, the instigating incompatibility there seems to longer be a thing Test Plan: BK, make dev_install Reviewers: alangenfeld, max Reviewed By: alangenfeld Differential Revision: <URL> | py |
diff --git a/stanfordnlp/pipeline/lemma_processor.py b/stanfordnlp/pipeline/lemma_processor.py
index <HASH>..<HASH> 100644
--- a/stanfordnlp/pipeline/lemma_processor.py
+++ b/stanfordnlp/pipeline/lemma_processor.py
@@ -51,7 +51,7 @@ class LemmaProcessor(UDProcessor):
if self._config.get('ensemble_dict', Fa... | change vocab to _vocab | py |
diff --git a/tests/test_json2table.py b/tests/test_json2table.py
index <HASH>..<HASH> 100644
--- a/tests/test_json2table.py
+++ b/tests/test_json2table.py
@@ -115,10 +115,14 @@ class TestJsonConverter(unittest.TestCase):
result = self.json_converter._list_of_dicts_to_column_headers([])
self.assertIs(r... | Test that a list of multiple dict's with heterogeneous keys returns None when searching for column headers. | py |
diff --git a/toytree/tree.py b/toytree/tree.py
index <HASH>..<HASH> 100644
--- a/toytree/tree.py
+++ b/toytree/tree.py
@@ -234,9 +234,9 @@ class Toytree(object):
## access nodes in the order they will be plotted
## this is a customized order best sampled this way
- #nodes = [self.tree.search_... | keep node order by node_dict | py |
diff --git a/nion/swift/command.py b/nion/swift/command.py
index <HASH>..<HASH> 100644
--- a/nion/swift/command.py
+++ b/nion/swift/command.py
@@ -68,13 +68,24 @@ def main():
command.launch(sys.argv)
return
- # next, attempt to launch using pyqt
success = False
+
+ # next attempt to launc... | Add preliminary support for PySide2. | py |
diff --git a/hamster/add_custom_fact.py b/hamster/add_custom_fact.py
index <HASH>..<HASH> 100644
--- a/hamster/add_custom_fact.py
+++ b/hamster/add_custom_fact.py
@@ -80,7 +80,7 @@ class CustomFactController:
self.get_widget('activity_name').set_text(fact["name"])
self.get_widget("ok").set_s... | gtk-save for the update activity (wrong, but a little better than apply) svn path=/trunk/; revision=<I> | py |
diff --git a/salt/crypt.py b/salt/crypt.py
index <HASH>..<HASH> 100644
--- a/salt/crypt.py
+++ b/salt/crypt.py
@@ -166,7 +166,7 @@ def _get_rsa_key(path):
retrieve the key from disk.
'''
log.debug('salt.crypt._get_rsa_key: Loading private key')
- return _get_key_with_evict(path, os.path.getmtime(path)... | Sometimes what gmtime returns looks like a float or other #. Cast to str. | py |
diff --git a/hdf5storage/Marshallers.py b/hdf5storage/Marshallers.py
index <HASH>..<HASH> 100644
--- a/hdf5storage/Marshallers.py
+++ b/hdf5storage/Marshallers.py
@@ -656,13 +656,18 @@ class NumpyScalarArrayMarshaller(TypeMarshaller):
# look like a structured object array, those have to be excluded
# ... | Fixed bug where structured numpy.ndarrays with a field having an 'object' type is written as an HDF5 COMPOUND when the structured_numpy_ndarray_as_struct option is disabled. Is now written as a GROUP instead as if the option was set. | py |
diff --git a/spatialist/vector.py b/spatialist/vector.py
index <HASH>..<HASH> 100644
--- a/spatialist/vector.py
+++ b/spatialist/vector.py
@@ -808,6 +808,9 @@ def intersect(obj1, obj2):
if not isinstance(obj1, Vector) or not isinstance(obj2, Vector):
raise RuntimeError('both objects must be of type Vector... | [vector.intersect] clone both Vector objects before doing anything | py |
diff --git a/zengine/views/crud.py b/zengine/views/crud.py
index <HASH>..<HASH> 100644
--- a/zengine/views/crud.py
+++ b/zengine/views/crud.py
@@ -544,9 +544,7 @@ class CrudView(BaseView):
queryset (:class:`QuerySet<pyoko:pyoko.db.queryset.QuerySet>`):
Object listing queryset.
"""... | REMOVED deprecated "request" object access from CrudView rref #<I> ref GH-<I> | py |
diff --git a/yasha/scripts/yasha.py b/yasha/scripts/yasha.py
index <HASH>..<HASH> 100644
--- a/yasha/scripts/yasha.py
+++ b/yasha/scripts/yasha.py
@@ -185,13 +185,8 @@ def cli(template, output, variables, extensions, no_variables, no_extensions, tr
jinja = load_jinja(t_dirname, extdict)
if template.name == ... | No need to read in chunks from stdin | py |
diff --git a/oidc_provider/lib/claims.py b/oidc_provider/lib/claims.py
index <HASH>..<HASH> 100644
--- a/oidc_provider/lib/claims.py
+++ b/oidc_provider/lib/claims.py
@@ -1,3 +1,5 @@
+import copy
+
from django.utils.translation import ugettext as _
from oidc_provider import settings
@@ -16,7 +18,8 @@ class ScopeCla... | Fix a bug that the value of STANDARD_CLAIMS is updated | py |
diff --git a/vertex/q2qclient.py b/vertex/q2qclient.py
index <HASH>..<HASH> 100644
--- a/vertex/q2qclient.py
+++ b/vertex/q2qclient.py
@@ -1,5 +1,3 @@
-# -*- test-case-name:vertex.test.test_amp -*-
-
# Copyright 2005 Divmod, Inc. See LICENSE file for details
import os
@@ -311,9 +309,8 @@ class Q2QSigma(Options):
... | Undo the fix to q2aclient, since that is just going to be clobbered anyway | py |
diff --git a/ggplot/guides/guides.py b/ggplot/guides/guides.py
index <HASH>..<HASH> 100644
--- a/ggplot/guides/guides.py
+++ b/ggplot/guides/guides.py
@@ -31,7 +31,7 @@ class guides(dict):
def __init__(self, **kwargs):
aes_names = {'alpha', 'color', 'fill',
- 'shape', 'size'}
+ ... | Add linetype to aesthetics that can have a guide | py |
diff --git a/buildozer/targets/osx.py b/buildozer/targets/osx.py
index <HASH>..<HASH> 100644
--- a/buildozer/targets/osx.py
+++ b/buildozer/targets/osx.py
@@ -112,6 +112,9 @@ class TargetOSX(Target):
self.buildozer.info('Create {}.app'.format(package_name))
cwd = join(self.buildozer.platform_dir,'ki... | osx: Start honoring requirements from .spec | py |
diff --git a/executor_api/helpers.py b/executor_api/helpers.py
index <HASH>..<HASH> 100644
--- a/executor_api/helpers.py
+++ b/executor_api/helpers.py
@@ -3,7 +3,6 @@ from functools import wraps
from django.conf import settings
from django.core.exceptions import PermissionDenied
-from django.http import HttpResp... | Fixing usage of probably uninitialized variable | py |
diff --git a/src/transformers/pipelines.py b/src/transformers/pipelines.py
index <HASH>..<HASH> 100755
--- a/src/transformers/pipelines.py
+++ b/src/transformers/pipelines.py
@@ -689,6 +689,8 @@ class TextGenerationPipeline(Pipeline):
result = []
for generated_sequence in output_sequences:
+... | Fixed TextGenerationPipeline on torch + GPU (#<I>) * Pytorch gpu => cpu proper device * Memoryless XLNet warning + fixed memories during generation * Revert "Memoryless XLNet warning + fixed memories during generation" This reverts commit 3d<I>ff * Took the operations on the generated_sequence out of the e... | py |
diff --git a/openstack_dashboard/dashboards/admin/info/tables.py b/openstack_dashboard/dashboards/admin/info/tables.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/admin/info/tables.py
+++ b/openstack_dashboard/dashboards/admin/info/tables.py
@@ -21,6 +21,10 @@ class QuotaFilterAction(tables.FilterA... | Quotas names fixed Cores->VCPUs, Floating Ips->Floating IPs Change-Id: I<I>adc<I>fc3aa0dc<I>f6d<I>e<I>ac0c<I> Fixes: bug #<I> | py |
diff --git a/objectrocket/auth.py b/objectrocket/auth.py
index <HASH>..<HASH> 100644
--- a/objectrocket/auth.py
+++ b/objectrocket/auth.py
@@ -120,3 +120,21 @@ class Auth(bases.BaseAuthLayer):
def _username(self, new_username):
"""Update the username to be used for authentication."""
self.__usern... | Add _validate method to Client.auth interface. | py |
diff --git a/python/mxnet/model.py b/python/mxnet/model.py
index <HASH>..<HASH> 100644
--- a/python/mxnet/model.py
+++ b/python/mxnet/model.py
@@ -913,7 +913,7 @@ class FeedForward(BASE_ESTIMATOR):
``ceil(num_train_examples / batch_size)``.
optimizer : str or Optimizer, optional
The n... | Fix 2 spelling mistakes (#<I>) | py |
diff --git a/uproot/interp/auto.py b/uproot/interp/auto.py
index <HASH>..<HASH> 100644
--- a/uproot/interp/auto.py
+++ b/uproot/interp/auto.py
@@ -50,7 +50,14 @@ from uproot.interp.objects import STLString
class _NotNumerical(Exception): pass
+def _normalize_ftype(fType):
+ if uproot.const.kOffsetL < fType < up... | Adopt leaf types indicating fixed size array data | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.