diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/topydo/commands/ListCommand.py b/topydo/commands/ListCommand.py
index <HASH>..<HASH> 100644
--- a/topydo/commands/ListCommand.py
+++ b/topydo/commands/ListCommand.py
@@ -18,7 +18,6 @@ from topydo.lib.Config import config
from topydo.lib.ExpressionCommand import ExpressionCommand
from topydo.lib.PrettyPri... | Don't hide tags with PrettyPrinterHideTagFilter Users should rather use %k in list_format if they want to avoid hidden tags on the output. | py |
diff --git a/osbs/build/build_requestv2.py b/osbs/build/build_requestv2.py
index <HASH>..<HASH> 100644
--- a/osbs/build/build_requestv2.py
+++ b/osbs/build/build_requestv2.py
@@ -436,6 +436,8 @@ class BuildRequestV2(BaseBuildRequest):
if image_name.registry == source_registry and self.organization:
... | convert ':' to '-' in imagestream and imagestream tag names openshift doesn't allow ':' in imagestream name, and there should be just one ':' in imagestream tag name which separates tag from imagstream, so in case source registry is IP:PORT, we will convert it to IP-PORT * CLOUDBLD-<I> | py |
diff --git a/can/interfaces/ics_neovi/neovi_bus.py b/can/interfaces/ics_neovi/neovi_bus.py
index <HASH>..<HASH> 100644
--- a/can/interfaces/ics_neovi/neovi_bus.py
+++ b/can/interfaces/ics_neovi/neovi_bus.py
@@ -188,8 +188,6 @@ class NeoViBus(BusABC):
for msg in ics.get_error_messages(self.dev):
... | Stop raising accuracy error for NeoVi (#<I>) Will only keep logging the error that ICS lib consider critical and no longer raise them. In most case, the error is affecting the accuracy but the device can still be use normally (i.e. Rx buffer overflow). In these cases, we do not want for example to kill a notifier u... | py |
diff --git a/LiSE/LiSE/query.py b/LiSE/LiSE/query.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/query.py
+++ b/LiSE/LiSE/query.py
@@ -1,6 +1,14 @@
# This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, zacharyspector@gmail.com
-"""The query engine provides Pythonic meth... | "Document" the world queries | py |
diff --git a/cockroachdb/sqlalchemy/dialect.py b/cockroachdb/sqlalchemy/dialect.py
index <HASH>..<HASH> 100644
--- a/cockroachdb/sqlalchemy/dialect.py
+++ b/cockroachdb/sqlalchemy/dialect.py
@@ -97,7 +97,7 @@ class CockroachDBDialect(PGDialect_psycopg2):
res = []
# TODO(bdarnell): escape table name
... | Fix get_columns. This was broken in January but not noticed because we have the reflection tests disabled. Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ readme_note = '''\
.. note::
For the latest source, issues and discussion, etc, please visit the
- `GitHub repository <https://github.com/samuell/sciluigi>`_\n\n
+ `GitHub repository <https://github.c... | Add missing deps and fix wrong info in setup.py | py |
diff --git a/typedjsonrpc/registry.py b/typedjsonrpc/registry.py
index <HASH>..<HASH> 100644
--- a/typedjsonrpc/registry.py
+++ b/typedjsonrpc/registry.py
@@ -280,7 +280,7 @@ class Registry(object):
raise InvalidRequestError("typedjsonrpc does not allow id to be None.")
if isinstance(msg["... | Allow longs as id, too | py |
diff --git a/giotto/exceptions.py b/giotto/exceptions.py
index <HASH>..<HASH> 100644
--- a/giotto/exceptions.py
+++ b/giotto/exceptions.py
@@ -16,6 +16,10 @@ class InvalidInput(GiottoException):
return self.message
def __setattr__(self, attr, value):
+ """
+ When setting values, make into ... | added travis yaml file | py |
diff --git a/test/test_basic.py b/test/test_basic.py
index <HASH>..<HASH> 100644
--- a/test/test_basic.py
+++ b/test/test_basic.py
@@ -74,7 +74,6 @@ def test_simple_cohort():
eq_(len(cohort.as_dataframe()), 3)
columns = set(cohort.as_dataframe().columns)
- ok_("id" in columns)
ok_("patient_id" in co... | Remove check for id in test_simple_cohort | py |
diff --git a/tests/test_service.py b/tests/test_service.py
index <HASH>..<HASH> 100644
--- a/tests/test_service.py
+++ b/tests/test_service.py
@@ -138,6 +138,13 @@ class OAuth2ServiceTestCase(RauthTestCase):
def setUp(self):
RauthTestCase.setUp(self)
+ # Use JSON as the response type for OAuth2. ... | Changing response type to JSON for OAuth2 get_access_token should expect JSON | py |
diff --git a/dataviews/ndmapping.py b/dataviews/ndmapping.py
index <HASH>..<HASH> 100644
--- a/dataviews/ndmapping.py
+++ b/dataviews/ndmapping.py
@@ -76,17 +76,19 @@ class Dimension(param.Parameterized):
class Dimensional(object):
"""
Abstract baseclass implementing common methods for objects with associate... | Simplified Dimensional object, no longer requires constructor | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -73,7 +73,7 @@ intersphinx_mapping = dict(
anndata=('https://anndata.readthedocs.io/en/stable/', None),
bbknn=('https://bbknn.readthedocs.io/en/latest/', None),
cycler=('https://matplotlib.org/cy... | Fix h5py doc link h5py docs don't do https. | py |
diff --git a/ccmlib/common.py b/ccmlib/common.py
index <HASH>..<HASH> 100644
--- a/ccmlib/common.py
+++ b/ccmlib/common.py
@@ -292,7 +292,7 @@ def normalize_interface(itf):
parts = ip.partition('::')
if '::' in parts:
missing_hextets = 9 - ip.count(':')
- zeros = '0'.join([':' for _ in range(m... | simplify zeros string generation in normalize_interface | py |
diff --git a/pgmpy/factors/Factor.py b/pgmpy/factors/Factor.py
index <HASH>..<HASH> 100644
--- a/pgmpy/factors/Factor.py
+++ b/pgmpy/factors/Factor.py
@@ -523,7 +523,7 @@ class Factor:
for k, index in enumerate(map(other._index_for_assignment, transformed_assign)):
transformed_indexes[k] =... | Fixed floating point issue in factor __eq__ method | py |
diff --git a/droneapi/module/api.py b/droneapi/module/api.py
index <HASH>..<HASH> 100644
--- a/droneapi/module/api.py
+++ b/droneapi/module/api.py
@@ -386,11 +386,11 @@ class APIModule(mp_module.MPModule):
def fix_targets(self, message):
"""Set correct target IDs for our vehicle"""
- status = sel... | Fixed the error "AttributeError: 'MPStatus' object has no attribute 'target_system'" when trying to send a mavlink message. | py |
diff --git a/scapy/sendrecv.py b/scapy/sendrecv.py
index <HASH>..<HASH> 100644
--- a/scapy/sendrecv.py
+++ b/scapy/sendrecv.py
@@ -603,8 +603,10 @@ stop_filter: python function applied to each packet to determine
break
except KeyboardInterrupt:
pass
- if opened_socket is None:
- ... | Make sure sniff always closes the L2socket even if interrupted by the user. | py |
diff --git a/yotta/lib/registry_access.py b/yotta/lib/registry_access.py
index <HASH>..<HASH> 100644
--- a/yotta/lib/registry_access.py
+++ b/yotta/lib/registry_access.py
@@ -219,12 +219,11 @@ def publish(namespace, name, version, description_file, tar_file, readme_file, r
returns None)
'''
- url = '... | no longer need github access token when publishing | py |
diff --git a/utilities/text-import.py b/utilities/text-import.py
index <HASH>..<HASH> 100755
--- a/utilities/text-import.py
+++ b/utilities/text-import.py
@@ -5,10 +5,14 @@ import re
import sys
sys.path.append('../nap-www')
-from napwww.model.napmodel import Schema, Pool, Prefix, NapNonExistentError, NapDuplicateEr... | Enabled authentication in import script Part of #<I> | py |
diff --git a/domaintools/base_results.py b/domaintools/base_results.py
index <HASH>..<HASH> 100644
--- a/domaintools/base_results.py
+++ b/domaintools/base_results.py
@@ -58,6 +58,7 @@ class Results(MutableMapping, MutableSequence):
def _make_request(self):
with Session() as session:
+ sessio... | Fix issue with using proxies The proxies are captured in the API object construction at <URL> | py |
diff --git a/EulerPy/euler.py b/EulerPy/euler.py
index <HASH>..<HASH> 100644
--- a/EulerPy/euler.py
+++ b/EulerPy/euler.py
@@ -23,6 +23,7 @@ def cheat(p):
# --generate / -g
def generate(p, prompt_default=True):
"""Generates Python file for a problem."""
+ problemText = p.text
msg = "Generate file for p... | Moved problemText definition to top of generate() This causes the "problem not found in problems.txt" error to display before the file generation prompt. | py |
diff --git a/isoweek.py b/isoweek.py
index <HASH>..<HASH> 100644
--- a/isoweek.py
+++ b/isoweek.py
@@ -116,7 +116,7 @@ class Week(namedtuple('Week', ('year', 'week'))):
def toordinal(self):
"""Returns the proleptic Gregorian ordinal the week, where January 1 of year 1 starts the first week."""
- ... | Use explicit floor division where we mean it | py |
diff --git a/pyinfra/modules/server.py b/pyinfra/modules/server.py
index <HASH>..<HASH> 100644
--- a/pyinfra/modules/server.py
+++ b/pyinfra/modules/server.py
@@ -385,7 +385,7 @@ def user(
if groups:
args.append('-G {0}'.format(','.join(groups)))
- if system and host.fact.os not in ('Open... | Make check for BSD in host OS consistent between `server.group` and `server.user`. | py |
diff --git a/autocorrect/word.py b/autocorrect/word.py
index <HASH>..<HASH> 100644
--- a/autocorrect/word.py
+++ b/autocorrect/word.py
@@ -19,6 +19,7 @@ from autocorrect.word_lists import LOWERCASE, MIXED_CASE
from autocorrect.word_lists import LOWERED, CASE_MAPPED
ALPHABET = 'abcdefghijklmnopqrstuvwxyz'
+KNOWN_WOR... | Create constant to increase performance of lookup of known words. Format code | py |
diff --git a/atlassian/bitbucket/cloud/base.py b/atlassian/bitbucket/cloud/base.py
index <HASH>..<HASH> 100644
--- a/atlassian/bitbucket/cloud/base.py
+++ b/atlassian/bitbucket/cloud/base.py
@@ -2,6 +2,8 @@
from ..base import BitbucketBase
+from requests import HTTPError
+
class BitbucketCloudBase(BitbucketBase... | Bitbucket Cloud: provide custom raise_for_status (#<I>) The default one in AtlassianRestAPI does not work for Bitbucket Cloud. | 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
@@ -23,7 +23,7 @@ which makes use of the jinja templating system would look like this:
- defaults:
custom_var: "default value"
other_var: 123
- {% ... | Fix jinja = vs == in states.file documentation | py |
diff --git a/python/bigdl/dllib/utils/common.py b/python/bigdl/dllib/utils/common.py
index <HASH>..<HASH> 100644
--- a/python/bigdl/dllib/utils/common.py
+++ b/python/bigdl/dllib/utils/common.py
@@ -634,8 +634,8 @@ def _java2py(gateway, r, encoding="bytes"):
except Py4JJavaError:
pass # n... | fix callBigDLFunc return a Int while the true return value from java is a byte array. (#<I>) | py |
diff --git a/graphene/contrib/django/fields.py b/graphene/contrib/django/fields.py
index <HASH>..<HASH> 100644
--- a/graphene/contrib/django/fields.py
+++ b/graphene/contrib/django/fields.py
@@ -27,7 +27,7 @@ class ConnectionOrListField(Field):
if not field_object_type:
raise SkipField()
... | Fixed old DjangoConnectionField usage | py |
diff --git a/hpfeeds/twisted/service.py b/hpfeeds/twisted/service.py
index <HASH>..<HASH> 100644
--- a/hpfeeds/twisted/service.py
+++ b/hpfeeds/twisted/service.py
@@ -118,12 +118,12 @@ class ClientSessionService(MultiService):
@asyncio.coroutine
def __aenter__(self):
self.startService()
-... | Don't yield from (for py <I>) | py |
diff --git a/torchvision/models/detection/generalized_rcnn.py b/torchvision/models/detection/generalized_rcnn.py
index <HASH>..<HASH> 100644
--- a/torchvision/models/detection/generalized_rcnn.py
+++ b/torchvision/models/detection/generalized_rcnn.py
@@ -30,6 +30,8 @@ class GeneralizedRCNN(nn.Module):
self.bac... | Make R-CNN models less verbose in script mode (#<I>) * Make R-CNN models less verbose in script mode * Fix typo in warning message | py |
diff --git a/spinoff/actor/remoting.py b/spinoff/actor/remoting.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/remoting.py
+++ b/spinoff/actor/remoting.py
@@ -595,7 +595,7 @@ class MockOutSocket(object): # pragma: no cover
def addEndpoints(self, endpoints):
assert len(endpoints) == 1, "Outgoing soc... | Removed the unecessary dbg() in MockOutSocket.addEndpoints | py |
diff --git a/twython/endpoints.py b/twython/endpoints.py
index <HASH>..<HASH> 100644
--- a/twython/endpoints.py
+++ b/twython/endpoints.py
@@ -142,6 +142,10 @@ class EndpointsMixin(object):
Docs:
https://dev.twitter.com/rest/reference/post/media/upload
"""
+ # https://dev.twitter.com/r... | Use GET request if the media upload command is STATUS | py |
diff --git a/vr/common/models.py b/vr/common/models.py
index <HASH>..<HASH> 100644
--- a/vr/common/models.py
+++ b/vr/common/models.py
@@ -817,3 +817,27 @@ class Release(BaseResource):
class Ingredient(BaseResource):
base = '/api/v1/ingredients/'
+
+ @property
+ def friendly_name(self):
+ return '{... | Extending the Ingredient class in order to be able to implement add/remove/replace functionality in vr.cli. | py |
diff --git a/api/symboltable.py b/api/symboltable.py
index <HASH>..<HASH> 100644
--- a/api/symboltable.py
+++ b/api/symboltable.py
@@ -887,7 +887,7 @@ class SymbolTable(object):
And creates the entry at the symbol table.
'''
if not self.check_class(id_, 'function', lineno):
- entry... | Bugfix: Crash on semantic error fixed. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ setup(
download_url="https://pypi.python.org/pypi/django-pgallery",
license="MIT",
install_requires=[
- "Django>=2.0,<3.0",
+ "Django>=2.2,<4.0",
"Pillow",
"psycopg... | Update supported Python and Django versions | py |
diff --git a/better_od/core.py b/better_od/core.py
index <HASH>..<HASH> 100644
--- a/better_od/core.py
+++ b/better_od/core.py
@@ -43,7 +43,15 @@ class BetterOrderedDict(MutableMapping):
def insert(self, key, value, index):
'''Accepts a :key:, :value:, and :index: parameter and inserts
- a new ke... | Update BetterOrderedDict.insert's docstring. Closing #1. There is no bug, this is just how lists behave and the documentation indicates as such. | py |
diff --git a/loom/master/analysis/task_manager/cloud.py b/loom/master/analysis/task_manager/cloud.py
index <HASH>..<HASH> 100644
--- a/loom/master/analysis/task_manager/cloud.py
+++ b/loom/master/analysis/task_manager/cloud.py
@@ -25,10 +25,10 @@ class CloudTaskManager:
def run(cls, task_run, task_run_location_id,... | Debugging for passing a taskrun as a JSON object. | py |
diff --git a/imgaug/augmenters/blur.py b/imgaug/augmenters/blur.py
index <HASH>..<HASH> 100644
--- a/imgaug/augmenters/blur.py
+++ b/imgaug/augmenters/blur.py
@@ -203,9 +203,10 @@ class AverageBlur(meta.Augmenter): # pylint: disable=locally-disabled, unused-v
samples = self.k.draw_samples((nb_images,), ra... | Improve random state handling in AverageBlur | py |
diff --git a/resolwe/flow/management/commands/list_docker_images.py b/resolwe/flow/management/commands/list_docker_images.py
index <HASH>..<HASH> 100644
--- a/resolwe/flow/management/commands/list_docker_images.py
+++ b/resolwe/flow/management/commands/list_docker_images.py
@@ -57,7 +57,7 @@ class Command(BaseCommand):... | Don't pull images of retired processes | py |
diff --git a/openquake/hazardlib/tests/geo/surface/gridded_test.py b/openquake/hazardlib/tests/geo/surface/gridded_test.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/tests/geo/surface/gridded_test.py
+++ b/openquake/hazardlib/tests/geo/surface/gridded_test.py
@@ -29,12 +29,13 @@ class GriddedSurfaceTestCase(... | Skipped a gridded test | py |
diff --git a/squad/core/management/commands/import_data.py b/squad/core/management/commands/import_data.py
index <HASH>..<HASH> 100644
--- a/squad/core/management/commands/import_data.py
+++ b/squad/core/management/commands/import_data.py
@@ -10,6 +10,14 @@ from squad.core.models import Group
from squad.core.tasks imp... | import_data: import build directories in order This helps to have an idea of progress. It's specially useful when importing a large project. | py |
diff --git a/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py b/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py
+++ b/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py
@@ -407,6 +407,9 @@ def test_... | Testing: Skip a test on Mac because it started to hang | py |
diff --git a/programs/thellier_gui3.0.py b/programs/thellier_gui3.0.py
index <HASH>..<HASH> 100755
--- a/programs/thellier_gui3.0.py
+++ b/programs/thellier_gui3.0.py
@@ -5606,8 +5606,8 @@ class Arai_GUI(wx.Frame):
if 'specimens' in self.contribution.tables:
self.contribution.propagate_name_do... | modified: thellier_gui<I>.py | py |
diff --git a/parsl/executors/mpix/mpix.py b/parsl/executors/mpix/mpix.py
index <HASH>..<HASH> 100644
--- a/parsl/executors/mpix/mpix.py
+++ b/parsl/executors/mpix/mpix.py
@@ -231,23 +231,23 @@ class MPIExecutor(ParslExecutor, RepresentationMixin):
Checks if a thread already exists, then starts it.
Cou... | fix logging vs logger bug that was losing debug messages | py |
diff --git a/montblanc/impl/biro/v5/BiroSolver.py b/montblanc/impl/biro/v5/BiroSolver.py
index <HASH>..<HASH> 100644
--- a/montblanc/impl/biro/v5/BiroSolver.py
+++ b/montblanc/impl/biro/v5/BiroSolver.py
@@ -97,6 +97,20 @@ class BiroSolver(BaseSolver):
for nr_var in mbu.source_nr_vars():
setattr(se... | Add cfg_sub_dims to specify problem sub-set. Calling cfg_sub_dims sets the members of the constant data memory object, and configures the dimensions of the problem subset solved by the sub-solver. | py |
diff --git a/fudge/patcher.py b/fudge/patcher.py
index <HASH>..<HASH> 100644
--- a/fudge/patcher.py
+++ b/fudge/patcher.py
@@ -45,7 +45,7 @@ else:
"""
patched_object = patch_object(obj, attr_name, patched_value)
try:
- yield
+ yield patched_object
finally:
... | support as keyword in with statement in someone was expecting an instance of PatchHandle | py |
diff --git a/debug_toolbar_mongo/operation_tracker.py b/debug_toolbar_mongo/operation_tracker.py
index <HASH>..<HASH> 100644
--- a/debug_toolbar_mongo/operation_tracker.py
+++ b/debug_toolbar_mongo/operation_tracker.py
@@ -31,7 +31,14 @@ removes = []
WANT_STACK_TRACE = getattr(settings, 'DEBUG_TOOLBAR_MONGO_STACKTRACE... | Added a try except clause around inspect.stack() call, since python's inspect sometimes fail when jinja2 templates are on the stack | py |
diff --git a/python/ray/tune/examples/ax_example.py b/python/ray/tune/examples/ax_example.py
index <HASH>..<HASH> 100644
--- a/python/ray/tune/examples/ax_example.py
+++ b/python/ray/tune/examples/ax_example.py
@@ -113,4 +113,8 @@ if __name__ == "__main__":
)
algo = AxSearch(client, max_concurrent=4)
sch... | [tune] Explicitly set scheduler in run() (#<I>) * Explicitely set scheduler in run() * Better formatting/indentation (after running format.sh) * Remove accidental paste in parameters definitions. * format | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ setup(
url='http://github.com/mattbennett/nameko-sentry',
py_modules=['nameko_sentry'],
install_requires=[
- "nameko>=2.2.0",
+ "nameko>=2.4.2",
"raven>=3.0.0"
],
... | nameko><I> is required | py |
diff --git a/spinoff/tests/actor_test.py b/spinoff/tests/actor_test.py
index <HASH>..<HASH> 100644
--- a/spinoff/tests/actor_test.py
+++ b/spinoff/tests/actor_test.py
@@ -3590,6 +3590,9 @@ def wrap_globals():
def ret():
# dbg("\n============================================\n")
+ impor... | Always make sure actor.TESTING is set to True while testing | py |
diff --git a/workshift/views.py b/workshift/views.py
index <HASH>..<HASH> 100644
--- a/workshift/views.py
+++ b/workshift/views.py
@@ -218,10 +218,13 @@ def view_semester(request, semester, profile=None):
last_sunday = day - timedelta(days=day.weekday() + 1)
next_sunday = last_sunday + timedelta(weeks=1)
- day_sh... | Don't include week long shifts in day shifts and vice versa | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
from setuptools import setup, find_packages
long_description=open('facsimile/description.txt').readline().strip()
-version = open('facsimile/VERSION').read().strip()
+version = open('facsimile/VERSION').readli... | Extending descriptin fix to version, in case the file ever contains multiple lines | py |
diff --git a/dvc/remote/local/__init__.py b/dvc/remote/local/__init__.py
index <HASH>..<HASH> 100644
--- a/dvc/remote/local/__init__.py
+++ b/dvc/remote/local/__init__.py
@@ -8,6 +8,7 @@ from dvc.utils.compat import str, makedirs, fspath_py35
import os
import stat
+import errno
from shortuuid import uuid
import s... | local: don't try to protect file if it is already protected | py |
diff --git a/test/test_query.py b/test/test_query.py
index <HASH>..<HASH> 100644
--- a/test/test_query.py
+++ b/test/test_query.py
@@ -1,3 +1,5 @@
+import pytest
+
from sql_metadata import (
preprocess_query,
get_query_tokens,
@@ -592,6 +594,8 @@ def test_with_brackets():
def test_with_with():
+ pyte... | test_with_with: this will be handled with a new parser (see #<I>) We need to mark tables that are passed to the query via WITH keyword and filter them out when returning the list of "real" tables. | py |
diff --git a/scikit_posthocs/_plotting.py b/scikit_posthocs/_plotting.py
index <HASH>..<HASH> 100644
--- a/scikit_posthocs/_plotting.py
+++ b/scikit_posthocs/_plotting.py
@@ -232,10 +232,10 @@ def sign_plot(x, g=None, flat=False, labels=True, cmap=None,
g.set_ylabel('')
cbar_ax = g.figure.add_ax... | improved order of entries in sign_plot() legend | py |
diff --git a/doctr/__main__.py b/doctr/__main__.py
index <HASH>..<HASH> 100644
--- a/doctr/__main__.py
+++ b/doctr/__main__.py
@@ -431,7 +431,8 @@ def configure(args, parser):
travis_token = None
if is_private:
if args.token:
- GitHub_token = generate_GitHub... | Include the repo name in the token note | py |
diff --git a/azure-kusto-data/azure/kusto/data/helpers.py b/azure-kusto-data/azure/kusto/data/helpers.py
index <HASH>..<HASH> 100644
--- a/azure-kusto-data/azure/kusto/data/helpers.py
+++ b/azure-kusto-data/azure/kusto/data/helpers.py
@@ -32,7 +32,6 @@ def to_pandas_timedelta(raw_value, timedelta_value):
def dataframe... | Remove unnecessary lines from dataframe helper function (#<I>) * Remove unnecessary lines from dataframe helper function | py |
diff --git a/tarbell/template.py b/tarbell/template.py
index <HASH>..<HASH> 100644
--- a/tarbell/template.py
+++ b/tarbell/template.py
@@ -159,3 +159,6 @@ def pprint_lines(value):
)
return Markup(formatted)
+# add slughifi
+filters.add_app_template_filter(slughifi)
+ | Include slughifi filter (but don't call it 'slugify') | py |
diff --git a/pyvisa-py/tcpip.py b/pyvisa-py/tcpip.py
index <HASH>..<HASH> 100644
--- a/pyvisa-py/tcpip.py
+++ b/pyvisa-py/tcpip.py
@@ -93,7 +93,7 @@ class TCPIPSession(Session):
if term_char:
flags = vxi11.OP_FLAG_TERMCHAR_SET
- term_char = str(self.term_char).encode('utf-8')[0]
+ ... | Fixes termchar in tcpip | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,10 @@ dev_requires = docs_requires + [
from pathlib import Path
this_directory = Path(__file__).parent
-long_description = (this_directory / "README.md").read_text()
+readme_text = (this_directory / "README.md").... | Trimmed README text for package (to avoid including links to buttons and project image). | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -75,7 +75,6 @@ def app(request):
with app.app_context():
if not database_exists(str(db.engine.url)):
create_database(str(db.engine.url))
- db.drop_all()
... | tests: no db drop on setup | py |
diff --git a/modopt/opt/proximity.py b/modopt/opt/proximity.py
index <HASH>..<HASH> 100644
--- a/modopt/opt/proximity.py
+++ b/modopt/opt/proximity.py
@@ -957,10 +957,11 @@ class KSupportNorm(ProximityParent):
"""
data_shape = data.shape
- if self._k_value > data.shape[0]:
+ k_max = np... | Resolve a bug when it comes to the setting of the k_max value, which was wrong on the previous version | py |
diff --git a/doe.py b/doe.py
index <HASH>..<HASH> 100755
--- a/doe.py
+++ b/doe.py
@@ -310,7 +310,9 @@ FILTER/APPLY EXPRESSIONS
help='Ignore rows from TBL where EXPR returns a non-true value for '
'the row. If COLs are specified, EXPR is tested for every COL '
'on each row. See also... | Rebased to master, added note about filters. | py |
diff --git a/tests/test_adres_api.py b/tests/test_adres_api.py
index <HASH>..<HASH> 100644
--- a/tests/test_adres_api.py
+++ b/tests/test_adres_api.py
@@ -9,7 +9,7 @@ try:
from nose_parameterized import parameterized, param
except:
print("*** Please install 'nose_parameterized' to run these tests ***")
- ... | exit code set to 1 to indicate error | py |
diff --git a/armstrong/core/arm_wells/admin.py b/armstrong/core/arm_wells/admin.py
index <HASH>..<HASH> 100644
--- a/armstrong/core/arm_wells/admin.py
+++ b/armstrong/core/arm_wells/admin.py
@@ -14,13 +14,14 @@ class NodeAdmin(VersionAdmin):
class NodeInlineAdminForm(OrderableGenericKeyLookupForm):
- class Medi... | Make it possible to turn off admin JS | py |
diff --git a/openquake/commonlib/source.py b/openquake/commonlib/source.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/source.py
+++ b/openquake/commonlib/source.py
@@ -767,7 +767,7 @@ def split_filter_source(src, src_filter):
except KeyError: # fill the cache
splits = split_map[src] = list(sou... | Changed a log.info into a log.debug [skip CI] Former-commit-id: bf<I>d<I>a<I>fd<I>b<I>a<I>f<I>e<I>aba | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,5 +16,19 @@ setup(
url='http://github.com/mwilliamson/python-tempman',
packages=['tempman'],
keywords="temporary temp directory directories cleanup clean",
+ classifiers=[
+ 'Development Status :: ... | Add classifiers to setup.py | py |
diff --git a/dotsite/getch.py b/dotsite/getch.py
index <HASH>..<HASH> 100644
--- a/dotsite/getch.py
+++ b/dotsite/getch.py
@@ -57,6 +57,28 @@ def get_key():
return (i,)
+def get_ascii():
+ """Get ASCII key from stdin
+
+ return None for others
+ """
+ keys = get_key()
+ if len(keys) == 1:
+ ... | getch need only yield ASCII keys to get started. Python 3 version real soon now | py |
diff --git a/cogen/core/proactors/__init__.py b/cogen/core/proactors/__init__.py
index <HASH>..<HASH> 100644
--- a/cogen/core/proactors/__init__.py
+++ b/cogen/core/proactors/__init__.py
@@ -88,6 +88,7 @@ def get_first(*imps):
def has_any():
"Returns the best available proactor implementation for the current ... | forgot to add has_stdlib_kqueue into has_any | py |
diff --git a/zinnia/views/sitemap.py b/zinnia/views/sitemap.py
index <HASH>..<HASH> 100644
--- a/zinnia/views/sitemap.py
+++ b/zinnia/views/sitemap.py
@@ -18,5 +18,5 @@ class Sitemap(TemplateView):
"""
context = super(Sitemap, self).get_context_data(**kwargs)
context.update({'entries': Entry.... | Only return published categories in the sitemap | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,9 +7,12 @@ import openid
version = openid.__version__
-if 'sdist' in sys.argv:
- # When building a source distribution, generate documentation
- os.system('./admin/makedoc')
+
+install_requires = [
+ # Ensure ... | Update `defusedxml` dependency Closes #<I> | py |
diff --git a/tests/collection.py b/tests/collection.py
index <HASH>..<HASH> 100644
--- a/tests/collection.py
+++ b/tests/collection.py
@@ -91,6 +91,12 @@ class SortTest(CollectionBaseTest):
['2', '3']
)
+ def test_sort_and_getitem(self):
+ self.assertEqual(Boat.collection().sort()[0], ... | Add a unittest to chech the getitem possibility of CollectionManager | py |
diff --git a/openid/consumer/discover.py b/openid/consumer/discover.py
index <HASH>..<HASH> 100644
--- a/openid/consumer/discover.py
+++ b/openid/consumer/discover.py
@@ -46,6 +46,9 @@ class OpenIDServiceEndpoint(object):
else:
return OPENID_1_0_MESSAGE_NS
+ def compatibilityMode(self):
+ ... | [project @ Add OpenIDServiceEndpoint.compatibilityMode] | py |
diff --git a/duolingo.py b/duolingo.py
index <HASH>..<HASH> 100644
--- a/duolingo.py
+++ b/duolingo.py
@@ -71,9 +71,8 @@ class Duolingo(object):
Authenticate through ``https://www.duolingo.com/login``.
"""
if self.jwt is None:
- self.jwt = self._load_session_from_file()
- lo... | Neatness changes around session loading and login check | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,14 @@ setup(
"bin/pyxapp"
],
package_data = {
- '': ['LICENSE.txt', 'assets/bundle.js', 'assets/templates/index.html']
+ 'pyxley': ['LICENSE.txt', 'assets/bundle.js', 'assets/template... | added files to the setup.py | py |
diff --git a/src/foremast/consts.py b/src/foremast/consts.py
index <HASH>..<HASH> 100644
--- a/src/foremast/consts.py
+++ b/src/foremast/consts.py
@@ -51,7 +51,7 @@ def validate_key_values(config_handle, section, key, default=None):
"""
try:
config_handle.add_section(section)
- LOG.warning('Se... | fix: Set section warning to info level | py |
diff --git a/atomic_reactor/plugins/pre_pull_base_image.py b/atomic_reactor/plugins/pre_pull_base_image.py
index <HASH>..<HASH> 100644
--- a/atomic_reactor/plugins/pre_pull_base_image.py
+++ b/atomic_reactor/plugins/pre_pull_base_image.py
@@ -37,8 +37,11 @@ class PullBaseImagePlugin(PreBuildPlugin):
pull base ... | Logging improvement for pull_base_image | py |
diff --git a/chatterbot/__init__.py b/chatterbot/__init__.py
index <HASH>..<HASH> 100644
--- a/chatterbot/__init__.py
+++ b/chatterbot/__init__.py
@@ -1,5 +1,5 @@
from .chatterbot import ChatBot
-__version__ = "0.3.4"
+__version__ = "0.3.5"
__maintainer__ = "Gunther Cox"
__email__ = "gunthercx@gmail.com" | Updated version to <I> | py |
diff --git a/py26compat/subprocess.py b/py26compat/subprocess.py
index <HASH>..<HASH> 100644
--- a/py26compat/subprocess.py
+++ b/py26compat/subprocess.py
@@ -3,7 +3,7 @@ from __future__ import absolute_import
import subprocess
try:
- check_call = subprocess.check_call
+ check_output = subprocess.check_output
exce... | Fixed reference to check_output (attribute was always there, so Python <I>+ didn't get check_output) | py |
diff --git a/luminoso_api/client.py b/luminoso_api/client.py
index <HASH>..<HASH> 100644
--- a/luminoso_api/client.py
+++ b/luminoso_api/client.py
@@ -420,18 +420,19 @@ class LuminosoClient(object):
if base_path is None:
base_path = 'jobs/id'
path = '%s%d' % (ensure_trailing_slash(base_pa... | Don't ping during LuminosoClient.wait_for; do emit informative messages. | py |
diff --git a/pupa/importers/base.py b/pupa/importers/base.py
index <HASH>..<HASH> 100644
--- a/pupa/importers/base.py
+++ b/pupa/importers/base.py
@@ -137,6 +137,9 @@ class BaseImporter(object):
except self.model_class.DoesNotExist:
raise UnresolvedIdError('cannot resolve psuedo id... | more useful message for multiple results in psuedo-id | py |
diff --git a/pyes/query.py b/pyes/query.py
index <HASH>..<HASH> 100644
--- a/pyes/query.py
+++ b/pyes/query.py
@@ -587,14 +587,14 @@ class TopChildrenQuery(ConstantScoreQuery):
if self.score not in ["max", "min", "avg", "sum"]:
raise InvalidParameterQuery("Invalid value '%s' for score" % self.scor... | In TopChildrenQuery._serialize renamed filters to queries. ConstantScoreQuery adds queries into self.queries and not self.filters. | py |
diff --git a/angr/functionmanager.py b/angr/functionmanager.py
index <HASH>..<HASH> 100644
--- a/angr/functionmanager.py
+++ b/angr/functionmanager.py
@@ -116,7 +116,7 @@ class Function(object):
# loop over all local runtime values and check if the value points to a printable string
for addr in self... | check that addr is not a floating point, when getting string refs | py |
diff --git a/semantic_release/__init__.py b/semantic_release/__init__.py
index <HASH>..<HASH> 100644
--- a/semantic_release/__init__.py
+++ b/semantic_release/__init__.py
@@ -1,6 +1,6 @@
"""Semantic Release
"""
-__version__ = '4.4.0'
+__version__ = '4.4.1'
from .errors import UnknownCommitMessageStyleError # no... | <I> Automatically generated by python-semantic-release | py |
diff --git a/app.py b/app.py
index <HASH>..<HASH> 100644
--- a/app.py
+++ b/app.py
@@ -280,6 +280,8 @@ def resolve_db_name(db_name, **kwargs):
)
if 'table' in kwargs:
should_redirect += '/' + kwargs['table']
+ if 'as_json' in kwargs:
+ should_redirect += kwargs['as_json'... | Preserve .json through redirects | py |
diff --git a/submit/models.py b/submit/models.py
index <HASH>..<HASH> 100644
--- a/submit/models.py
+++ b/submit/models.py
@@ -7,18 +7,11 @@ from django.core.mail import send_mail, EmailMessage
from django.core.urlresolvers import reverse
from settings import MAIN_URL, MEDIA_URL
from datetime import date
-import str... | Fixing unicode file name upload | py |
diff --git a/pymyq/request.py b/pymyq/request.py
index <HASH>..<HASH> 100644
--- a/pymyq/request.py
+++ b/pymyq/request.py
@@ -30,11 +30,7 @@ class MyQRequest: # pylint: disable=too-many-instance-attributes
self._last_useragent_update = None
async def _get_useragent(self) -> None:
- """Retrieve ... | If .USERAGENT file is empty then don't set it in header | py |
diff --git a/tracer/tracer.py b/tracer/tracer.py
index <HASH>..<HASH> 100644
--- a/tracer/tracer.py
+++ b/tracer/tracer.py
@@ -253,14 +253,14 @@ class Tracer(object):
# angr steps through the same basic block twice when a syscall
# occurs
elif current.addr == self.prev... | use new method of testing for syscall addresses | py |
diff --git a/tests/test_memcache.py b/tests/test_memcache.py
index <HASH>..<HASH> 100644
--- a/tests/test_memcache.py
+++ b/tests/test_memcache.py
@@ -30,13 +30,13 @@ class TestMemcacheStore(BasicStore):
def test_keys_throws_io_error(self, store):
with pytest.raises(IOError):
- self.store.key... | Fixed leftover cruft from porting of memcached tests. | py |
diff --git a/tests/model.py b/tests/model.py
index <HASH>..<HASH> 100644
--- a/tests/model.py
+++ b/tests/model.py
@@ -90,6 +90,21 @@ class InitTest(LimpydBaseTest):
bike = Bike(power="human")
+class GetAttrTest(LimpydBaseTest):
+
+ def test_get_redis_command(self):
+ bike = Bike(name="monocy... | Test the new enhanced __getattr__ method | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ setup(
author='Bas Westerbaan',
author_email='bas@westerbaan.name',
url='http://github.com/bwesterb/py-seccure',
- packages=['seccure'],
+ packages=['seccure', 'seccure.tests'],
package... | setup: add seccure.tests | py |
diff --git a/compliance_checker/cf/cf.py b/compliance_checker/cf/cf.py
index <HASH>..<HASH> 100644
--- a/compliance_checker/cf/cf.py
+++ b/compliance_checker/cf/cf.py
@@ -283,6 +283,7 @@ class CFBaseCheck(BaseCheck):
for k, v in ds.dataset.variables.iteritems():
if v.datatype not in [np.characte... | fixes #<I> Added np.dtype to allow characters to register properly | py |
diff --git a/anyconfig/backend/xml.py b/anyconfig/backend/xml.py
index <HASH>..<HASH> 100644
--- a/anyconfig/backend/xml.py
+++ b/anyconfig/backend/xml.py
@@ -386,7 +386,7 @@ def container_to_etree(obj, parent=None, **options):
_str = str if options.get("ac_parse_value") else anyconfig.utils.noop
if not any... | fix: correct processing of cases if is None (no text) in XML backend | py |
diff --git a/setup_zstd.py b/setup_zstd.py
index <HASH>..<HASH> 100644
--- a/setup_zstd.py
+++ b/setup_zstd.py
@@ -144,12 +144,14 @@ class RustExtension(distutils.extension.Extension):
dest_path = get_ext_path_fn(self.name)
+ libname = self.name.split(".")[-1]
+
if os.name == "nt":
- ... | setup: properly compute rust library filename This regressed as part of moving backends to the `zstandard` package. I believe I even called out this possibility in the commit message making that change. | 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
-version = '1.0.1'
+version = '1.0.2'
with open('README.md', 'r') as fh:
long_description = fh.read() | Increment version to <I> | py |
diff --git a/sigal/gallery.py b/sigal/gallery.py
index <HASH>..<HASH> 100644
--- a/sigal/gallery.py
+++ b/sigal/gallery.py
@@ -261,7 +261,7 @@ class Gallery(object):
# loop on images
if self.settings['zip_gallery']:
- self._zip_files(outpath, media_files)
+ zip_files(join(outpa... | Move zip_files out of the class. | py |
diff --git a/AegeanTools/source_finder.py b/AegeanTools/source_finder.py
index <HASH>..<HASH> 100644
--- a/AegeanTools/source_finder.py
+++ b/AegeanTools/source_finder.py
@@ -1492,7 +1492,7 @@ class SourceFinder(object):
if cores > 1:
fit_parallel(island_group, stage, outerclip, istart=i)
... | fixed bug that caused priorized fitting to crash when running on a single core | py |
diff --git a/eventkit/tests/tests.py b/eventkit/tests/tests.py
index <HASH>..<HASH> 100644
--- a/eventkit/tests/tests.py
+++ b/eventkit/tests/tests.py
@@ -237,7 +237,7 @@ class Models(WebTest):
title='test title'
)
- self.assertEqual(cm.exception.message, 'An event must have a sta... | `Python3` compatability. | py |
diff --git a/tests/integration/states/test_alternatives.py b/tests/integration/states/test_alternatives.py
index <HASH>..<HASH> 100644
--- a/tests/integration/states/test_alternatives.py
+++ b/tests/integration/states/test_alternatives.py
@@ -1,14 +1,9 @@
-# -*- coding: utf-8 -*-
"""
Integration tests for the alterna... | Drop Py2 and six on tests/integration/states/test_alternatives.py | py |
diff --git a/test/HardwareSource_test.py b/test/HardwareSource_test.py
index <HASH>..<HASH> 100644
--- a/test/HardwareSource_test.py
+++ b/test/HardwareSource_test.py
@@ -1,5 +1,6 @@
import datetime
import logging
+import threading
import time
import unittest
@@ -50,6 +51,7 @@ class ScanHardwareSource(HardwareSou... | Make test for view suspend during record more robust. svn r<I> | py |
diff --git a/emma2/util/pystallone_test.py b/emma2/util/pystallone_test.py
index <HASH>..<HASH> 100644
--- a/emma2/util/pystallone_test.py
+++ b/emma2/util/pystallone_test.py
@@ -5,7 +5,7 @@ Created on 22.01.2014
'''
import unittest
-import pystallone as st
+import emma2.util.pystallone as st
import numpy as np
... | [pystallone_test] import module under test by absolute path to avoid double initialization. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.