diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tcex/tcex.py b/tcex/tcex.py
index <HASH>..<HASH> 100644
--- a/tcex/tcex.py
+++ b/tcex/tcex.py
@@ -41,7 +41,6 @@ class TcEx(object):
# Parser
self._parsed = False
self.parser = TcExArgParser()
- # self.default_args, unknown = self.parser.parse_known_args()
# init... | + removed extra logging of unknown args. | py |
diff --git a/grimoire/elk/stackexchange.py b/grimoire/elk/stackexchange.py
index <HASH>..<HASH> 100644
--- a/grimoire/elk/stackexchange.py
+++ b/grimoire/elk/stackexchange.py
@@ -179,7 +179,8 @@ class StackExchangeEnrich(Enrich):
eitem["question_tags"] = question_tags
eitem["question_tags_an... | [enrich][stackexchange] Support that answers have no tags | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,13 +1,33 @@
#!/usr/bin/env python
from setuptools import setup
-import dbkit
+import re
+
+
+def read(filename):
+ with open(filename, 'r') as fh:
+ return fh.read()
+
+
+def get_metadata(module_path):
+ ""... | Record metadata in one spot only and avoid importing dbkit. | py |
diff --git a/muda/base.py b/muda/base.py
index <HASH>..<HASH> 100644
--- a/muda/base.py
+++ b/muda/base.py
@@ -112,12 +112,10 @@ class BaseTransformer(object):
# We'll need a working copy of this object for modification purposes
jam_working = copy.deepcopy(jam)
- # Push our reconstructor onto... | slight reworking on history logging | py |
diff --git a/indra/assemblers/english/assembler.py b/indra/assemblers/english/assembler.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/english/assembler.py
+++ b/indra/assemblers/english/assembler.py
@@ -58,6 +58,7 @@ class EnglishAssembler(object):
# Keep track of current length of the model text.
... | Fix issue of having sb defined in all cases | py |
diff --git a/lazy_record/base/query_methods.py b/lazy_record/base/query_methods.py
index <HASH>..<HASH> 100644
--- a/lazy_record/base/query_methods.py
+++ b/lazy_record/base/query_methods.py
@@ -6,11 +6,7 @@ class QueryMethods(object):
"""
Find record by +id+, raising RecordNotFound if no record exist... | refactored QueryMethods.find | py |
diff --git a/master/buildbot/test/integration/test_master.py b/master/buildbot/test/integration/test_master.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/integration/test_master.py
+++ b/master/buildbot/test/integration/test_master.py
@@ -32,7 +32,7 @@ class RunMaster(dirs.DirsMixin, unittest.TestCase):
... | bind to an unused port when testing master; refactor the two tests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,12 @@
from setuptools import setup, find_packages
-with open('torf/_version.py') as f:
- exec(f.read())
+import re
+version_match = re.search(r"^__version__\s*=\s*['\"]([^'\"]*)['\"]",
+ ... | Fix reading __version__ in setup.py | py |
diff --git a/salmonella/widgets.py b/salmonella/widgets.py
index <HASH>..<HASH> 100644
--- a/salmonella/widgets.py
+++ b/salmonella/widgets.py
@@ -1,11 +1,15 @@
from django.conf import settings
from django.contrib.admin import widgets
-from django.urls import reverse, NoReverseMatch
from django.core.exceptions impor... | Backwards compatibility for Django <<I> In order to preserve compatibility with Django before the <I> release, catch import errors when importing from `django.urls` and use `django.core.urlresolvers` instead. | py |
diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index <HASH>..<HASH> 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7766,7 +7766,8 @@ level : int or level name, default None
If the axis is a MultiIndex (hierarchical), count along a
particular level, collapsing into a %(name1... | DOC: is confusing for ddof parameter of sem, var and std functions (#<I>) | py |
diff --git a/waldur_core/server/base_settings.py b/waldur_core/server/base_settings.py
index <HASH>..<HASH> 100644
--- a/waldur_core/server/base_settings.py
+++ b/waldur_core/server/base_settings.py
@@ -291,6 +291,7 @@ WALDUR_CORE_PUBLIC_SETTINGS = [
'OWNER_CAN_MANAGE_CUSTOMER',
'OWNERS_CAN_MANAGE_OWNERS',
... | Expose via configuration API endpoint native name setting [WAL-<I>] | py |
diff --git a/phoebe/backend/fitting.py b/phoebe/backend/fitting.py
index <HASH>..<HASH> 100644
--- a/phoebe/backend/fitting.py
+++ b/phoebe/backend/fitting.py
@@ -269,10 +269,10 @@ def run(system, params=None, fitparams=None, mpi=None, accept=False):
feedbacks = sorted(feedbacks)
# Reset the logger to g... | during fitting, the logger does not write to a file anymore | py |
diff --git a/allaccess/admin.py b/allaccess/admin.py
index <HASH>..<HASH> 100644
--- a/allaccess/admin.py
+++ b/allaccess/admin.py
@@ -6,10 +6,15 @@ from .models import Provider, AccountAccess
class ProviderAdmin(admin.ModelAdmin):
"Admin customization for OAuth providers."
+ list_display = ('name', 'enabled... | More customization to default Provider and AccountAccess admin. | py |
diff --git a/emma2/msm/analysis/dense/decomposition.py b/emma2/msm/analysis/dense/decomposition.py
index <HASH>..<HASH> 100644
--- a/emma2/msm/analysis/dense/decomposition.py
+++ b/emma2/msm/analysis/dense/decomposition.py
@@ -11,7 +11,7 @@ Dense matrices are represented by numpy.ndarrays throughout this module.
impor... | [msm/analysis] Minor changes to docstrings | py |
diff --git a/KafNafParserPy/coreference_data.py b/KafNafParserPy/coreference_data.py
index <HASH>..<HASH> 100644
--- a/KafNafParserPy/coreference_data.py
+++ b/KafNafParserPy/coreference_data.py
@@ -65,9 +65,7 @@ class Ccoreference:
"""
if self.type == 'NAF':
return self.node.get('type')
... | Added function add_span_obj where Cspan can be added as span rather than list of ids (so we can set the head of the coreference object) | py |
diff --git a/bettercache/middleware.py b/bettercache/middleware.py
index <HASH>..<HASH> 100644
--- a/bettercache/middleware.py
+++ b/bettercache/middleware.py
@@ -9,8 +9,6 @@ class TestAsyncMiddleware(object):
return response
-
-
class BetterCacheMiddleware(CachingMixin):
def process_request(self, re... | [CMSPERF-<I>] cleaned up middleware a little | py |
diff --git a/km3pipe/tests/test_dataclasses.py b/km3pipe/tests/test_dataclasses.py
index <HASH>..<HASH> 100644
--- a/km3pipe/tests/test_dataclasses.py
+++ b/km3pipe/tests/test_dataclasses.py
@@ -135,4 +135,13 @@ class TestRawHit(TestCase):
hit1 = RawHit(time=2, pmt_id=1, tot=10)
hit2 = RawHit(time=1, ... | Adds test for multiple hit additions | py |
diff --git a/cheroot/cli.py b/cheroot/cli.py
index <HASH>..<HASH> 100644
--- a/cheroot/cli.py
+++ b/cheroot/cli.py
@@ -76,7 +76,7 @@ class Application:
with contextlib.suppress(TypeError):
if issubclass(app, server.Gateway):
- return Gateway(app)
+ return GatewayYo(... | Rename Class to satisfy CodeClimate | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -50,9 +50,12 @@ setup(
zip_safe=False,
classifiers=(
'Development Status :: 4 - Beta',
+ 'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved... | Added some PyPI classifiers. | py |
diff --git a/django_base64field/tests.py b/django_base64field/tests.py
index <HASH>..<HASH> 100644
--- a/django_base64field/tests.py
+++ b/django_base64field/tests.py
@@ -1,11 +1,19 @@
-"""
-This file demonstrates writing tests using the unittest module. These will pass
-when you run "manage.py test".
+from django.db i... | Added dummy model classes for testing | py |
diff --git a/test_elasticsearch_dsl/test_search.py b/test_elasticsearch_dsl/test_search.py
index <HASH>..<HASH> 100644
--- a/test_elasticsearch_dsl/test_search.py
+++ b/test_elasticsearch_dsl/test_search.py
@@ -38,6 +38,7 @@ def test_filter_turns_search_into_filtered_query():
.filter('term', category='meetup',... | Make sure attribute access works for .query on Search | py |
diff --git a/mill/__init__.py b/mill/__init__.py
index <HASH>..<HASH> 100644
--- a/mill/__init__.py
+++ b/mill/__init__.py
@@ -160,7 +160,7 @@ class Mill:
if not result or result == '{"errorCode":0}':
return None
- if 'access token expire' in result:
+ if 'access token expire' in r... | check for invalid signature (#<I>) | py |
diff --git a/src/cmdtree/tree.py b/src/cmdtree/tree.py
index <HASH>..<HASH> 100644
--- a/src/cmdtree/tree.py
+++ b/src/cmdtree/tree.py
@@ -1,18 +1,3 @@
-
-class Node(object):
- def __init__(self, name, cmd, children):
- self.name = name
- self.cmd = cmd
- self.children = children
-
- def as_d... | Update: Remove unused Node class | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -55,7 +55,7 @@ py_version = platform.python_version()
if py_version < '2.7':
REQUIRED_PACKAGES.append('argparse>=1.2.1')
-_APITOOLS_VERSION = '0.4.13'
+_APITOOLS_VERSION = '0.4.14'
with open('README.rst') as fileobj... | Update version to <I> We skip <I> because it was used for a "rollback" of <I> which introduced incompatible changes with existing client libraries. | py |
diff --git a/lib/bibformat.py b/lib/bibformat.py
index <HASH>..<HASH> 100644
--- a/lib/bibformat.py
+++ b/lib/bibformat.py
@@ -50,11 +50,6 @@ from invenio.bibformat_config import \
CFG_BIBFORMAT_USE_OLD_BIBFORMAT, \
CFG_BIBFORMAT_ENABLE_I18N_BRIEF_FORMAT
from invenio.access_control_engine import acc_author... | BibFormat: safer websearch template import * Fixed two problems related to full-text snippets that were occasionally generating Python tracebacks. (moved websearch template import to a safer place, checked user_info validity) | py |
diff --git a/habitica/core.py b/habitica/core.py
index <HASH>..<HASH> 100755
--- a/habitica/core.py
+++ b/habitica/core.py
@@ -35,7 +35,7 @@ except:
VERSION = 'habitica version 0.0.12'
TASK_VALUE_BASE = 0.9747 # http://habitica.wikia.com/wiki/Task_Value
HABITICA_REQUEST_WAIT_TIME = 0.5 # time to pause between conc... | make `home` work on self-hosted servers too | py |
diff --git a/pyres/worker.py b/pyres/worker.py
index <HASH>..<HASH> 100644
--- a/pyres/worker.py
+++ b/pyres/worker.py
@@ -217,13 +217,13 @@ class Worker(object):
def processing(self):
return self.job()
- def state(self):
+ def state(self):.
return 'working' if self.resq.redis.exists(... | bug fix for worker_pids method. the "ps -A -o pid,command" command includes leading whitespace before the pid if the pid is below a certain threshold, and this behavior was causing workers to be pruned prematurely. we now compensate for this leading whitespace | py |
diff --git a/bitcoin/script.py b/bitcoin/script.py
index <HASH>..<HASH> 100644
--- a/bitcoin/script.py
+++ b/bitcoin/script.py
@@ -598,6 +598,9 @@ class Script(SerializableMixin, six.binary_type):
def deserialize(cls, file_):
return cls(deserialize_varchar(file_))
+ def join(self, *args, **kwargs):
+... | Performing Script().join(…) should result in a Script object, but doesn’t due to unfortunate Python language / standard library design. Therefore, explicitly cast the result. | py |
diff --git a/lib/opsmgr.py b/lib/opsmgr.py
index <HASH>..<HASH> 100644
--- a/lib/opsmgr.py
+++ b/lib/opsmgr.py
@@ -130,6 +130,7 @@ def flatten(properties):
properties.update(additions)
def configure(settings, product, properties):
+ properties = properties if properties is not None else {}
#
# Use the first av... | Properly handle empty properties file during configure Fixes #<I> | py |
diff --git a/pykrige/tests/test_regression_krige.py b/pykrige/tests/test_regression_krige.py
index <HASH>..<HASH> 100644
--- a/pykrige/tests/test_regression_krige.py
+++ b/pykrige/tests/test_regression_krige.py
@@ -62,7 +62,11 @@ def test_regression_krige():
@pytest.mark.skipif(not SKLEARN_INSTALLED,
... | If fetch_california_housing fails, skip the test on Appveyor | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -25,7 +25,7 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return Mock()
-MOCK_MODULES = ['h5py']
+MOCK_MODULES = ['vtk']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
... | doc: mock vtk | py |
diff --git a/cherrypy/_cptree.py b/cherrypy/_cptree.py
index <HASH>..<HASH> 100644
--- a/cherrypy/_cptree.py
+++ b/cherrypy/_cptree.py
@@ -261,7 +261,7 @@ class Tree(object):
# to '' (some WSGI servers always set SCRIPT_NAME to '').
# Try to look up the app using the full path.
env1x = enviro... | No need to encode strings on Python 3 because urljoin below expects native string. | py |
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py
index <HASH>..<HASH> 100644
--- a/pyrogram/__init__.py
+++ b/pyrogram/__init__.py
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
-__version__ =... | Update Pyrogram to <I> | py |
diff --git a/Tank/Plugins/Phantom.py b/Tank/Plugins/Phantom.py
index <HASH>..<HASH> 100644
--- a/Tank/Plugins/Phantom.py
+++ b/Tank/Plugins/Phantom.py
@@ -825,6 +825,7 @@ class StepperWrapper:
continue
cnt += 1
hashed_str += ";" + str(stat_option)
+ ... | Ensure filemtime is added in stpd cache | py |
diff --git a/pep517/in_process/_in_process.py b/pep517/in_process/_in_process.py
index <HASH>..<HASH> 100644
--- a/pep517/in_process/_in_process.py
+++ b/pep517/in_process/_in_process.py
@@ -127,7 +127,8 @@ def prepare_metadata_for_build_wheel(
except AttributeError:
if not _allow_fallback:
r... | Refactor _get_wheel_metadata_from_wheel Factor out the wheel building operation so the metadata extraction logic can be resused for editables. | py |
diff --git a/mwparserfromhell/nodes/tag.py b/mwparserfromhell/nodes/tag.py
index <HASH>..<HASH> 100644
--- a/mwparserfromhell/nodes/tag.py
+++ b/mwparserfromhell/nodes/tag.py
@@ -252,10 +252,17 @@ class Tag(Node):
if value not in self.TAGS_ALL:
raise ValueError(value)
self._type = value
+... | Keep .type and .tag synchronized in Tags when using their setters. | py |
diff --git a/prob2020/console/probabilistic2020.py b/prob2020/console/probabilistic2020.py
index <HASH>..<HASH> 100755
--- a/prob2020/console/probabilistic2020.py
+++ b/prob2020/console/probabilistic2020.py
@@ -83,9 +83,9 @@ def parse_arguments():
help=help_str)
help_str = ('... | Changed default number of iterations | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -13,6 +13,13 @@ classifiers = [
'Operating System :: POSIX :: Linux',
'Programming Language :: C',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Pyth... | setup.py: Document officially supported version of Python for PyPI | py |
diff --git a/tests/unit/modules/zcbuildout_test.py b/tests/unit/modules/zcbuildout_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/zcbuildout_test.py
+++ b/tests/unit/modules/zcbuildout_test.py
@@ -19,7 +19,7 @@ from salttesting.helpers import (
requires_network,
skip_if_binaries_missing
)
-ensu... | Let's see if the slash makes a difference | py |
diff --git a/trakt/__init__.py b/trakt/__init__.py
index <HASH>..<HASH> 100644
--- a/trakt/__init__.py
+++ b/trakt/__init__.py
@@ -1,7 +1,7 @@
from trakt.client import TraktClient
from trakt.helpers import has_attribute
-__version__ = '0.5.1-develop'
+__version__ = '0.5.2-beta'
class TraktMeta(type): | Bumped version to <I> | py |
diff --git a/airflow/models.py b/airflow/models.py
index <HASH>..<HASH> 100755
--- a/airflow/models.py
+++ b/airflow/models.py
@@ -4681,7 +4681,7 @@ class DagRun(Base, LoggingMixin):
root_ids = [t.task_id for t in dag.roots]
roots = [t for t in tis if t.task_id in root_ids]
- # if... | [AIRFLOW-XXX] Fix typo in comment Closes #<I> from MortalViews/fix-typo | py |
diff --git a/src/sos/utils.py b/src/sos/utils.py
index <HASH>..<HASH> 100644
--- a/src/sos/utils.py
+++ b/src/sos/utils.py
@@ -743,12 +743,12 @@ def expand_size(size):
def find_symbolic_links(item):
item = os.path.expanduser(item)
- if os.path.isfile(item):
- return {}
- elif os.path.islink(item):
... | Fix locating symbolic link if the file itself is a symbolic link | py |
diff --git a/src/badger/models.py b/src/badger/models.py
index <HASH>..<HASH> 100644
--- a/src/badger/models.py
+++ b/src/badger/models.py
@@ -4,6 +4,7 @@ from django.conf import settings
from django.contrib.auth import get_user_model
from django.db import models
from django.utils.translation import ugettext as _
+f... | Resizing badge to <I>x<I> when saving it | py |
diff --git a/zotero.py b/zotero.py
index <HASH>..<HASH> 100644
--- a/zotero.py
+++ b/zotero.py
@@ -108,7 +108,8 @@ class Zotero(object):
if request_params:
try:
request_params['u'] = self.user_id
- request = self.api_methods[request].format(**request_params)
+ ... | We're now URL-encoding request parameters (so that tags can be passed) | py |
diff --git a/version.py b/version.py
index <HASH>..<HASH> 100755
--- a/version.py
+++ b/version.py
@@ -1,2 +1,2 @@
#/usr/bin/env python
-VERSION = '1.2.6-r1762'
+VERSION = '1.2.6-r1811' | Ready for release <I>-r<I> | py |
diff --git a/mmcv/runner/dist_utils.py b/mmcv/runner/dist_utils.py
index <HASH>..<HASH> 100644
--- a/mmcv/runner/dist_utils.py
+++ b/mmcv/runner/dist_utils.py
@@ -35,7 +35,11 @@ def _init_dist_pytorch(backend, **kwargs):
def _init_dist_mpi(backend, **kwargs):
- raise NotImplementedError
+ # TODO: use local_r... | support mpi launcher (#<I>) | py |
diff --git a/openquake/calculators/tests/base_test.py b/openquake/calculators/tests/base_test.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/tests/base_test.py
+++ b/openquake/calculators/tests/base_test.py
@@ -24,6 +24,7 @@ from openquake.calculators import base
class FakeParams(object):
export_dir =... | Add a fake job.ini to calculators/tests/base_test.py | py |
diff --git a/stanza/models/ner_tagger.py b/stanza/models/ner_tagger.py
index <HASH>..<HASH> 100644
--- a/stanza/models/ner_tagger.py
+++ b/stanza/models/ner_tagger.py
@@ -249,8 +249,9 @@ def train(args):
logger.info("Training ended with {} steps.".format(global_step))
- best_f, best_eval = max(dev_score_his... | Only report max dev score if ran dev set at least once | py |
diff --git a/src/fonduer/candidates/mentions.py b/src/fonduer/candidates/mentions.py
index <HASH>..<HASH> 100644
--- a/src/fonduer/candidates/mentions.py
+++ b/src/fonduer/candidates/mentions.py
@@ -2,7 +2,6 @@ import logging
import re
from builtins import map, range
from collections import defaultdict
-from copy im... | Do not deep-copy mention_spaces as it looks unnecessary (#<I>) | py |
diff --git a/typing_inspect.py b/typing_inspect.py
index <HASH>..<HASH> 100644
--- a/typing_inspect.py
+++ b/typing_inspect.py
@@ -16,8 +16,13 @@ from mypy_extensions import _TypedDictMeta as _TypedDictMeta_Mypy
if (3, 4, 0) <= sys.version_info[:3] < (3, 9, 2):
from typing_extensions import _TypedDictMeta as _Typ... | Fix TypedDict on new Python and typing_extensions (#<I>) | py |
diff --git a/bson/__init__.py b/bson/__init__.py
index <HASH>..<HASH> 100644
--- a/bson/__init__.py
+++ b/bson/__init__.py
@@ -87,7 +87,7 @@ def _make_c_string(string, check_null=False):
try:
string.decode("utf-8")
return string + "\x00"
- except:
+ except UnicodeError:
... | Catch only UnicodeError for string decode failure. The default exception (which we use) for decode failures is UnicodeError or a subclass of it. This fixes a unittest that forces RuntimeError. We shouldn't use blanket except blocks either way. | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -6,7 +6,7 @@ extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.intersphinx',
- 'sphinx.ext.pngmath',
+ 'sphinx.ext.imgmath',
'sphin... | docs/source/conf.py: pngmath => imgmath I don't actually use any math but Sphinx was making warnings. | py |
diff --git a/src/cr/cube/dimension.py b/src/cr/cube/dimension.py
index <HASH>..<HASH> 100644
--- a/src/cr/cube/dimension.py
+++ b/src/cr/cube/dimension.py
@@ -659,18 +659,6 @@ class Dimension(object):
for _id in old_keys
if _id in self._subvar_ids
)
- # --- GFE ... | [<I>]: very confused... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
setup(name='citrination-client',
- version='3.1.0',
+ version='3.2.0',
url='http://github.com/CitrineInformatics/python-citrination-client',
... | bump the version to <I> | py |
diff --git a/anyconfig/globals.py b/anyconfig/globals.py
index <HASH>..<HASH> 100644
--- a/anyconfig/globals.py
+++ b/anyconfig/globals.py
@@ -4,10 +4,12 @@
#
"""anyconfig globals.
"""
+import anyconfig.init
+
+
AUTHOR = "Satoru SATOH <ssat@redhat.com>"
VERSION = "0.0.7"
-import anyconfig.init
LOGGER = anyconfi... | fix for the pylint error, E<I> module level import not at top of file | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -73,6 +73,7 @@ brotli = Extension("brotli",
abspath("../enc/entropy_encode.cc"),
abspath("../enc/histogram.cc"),
abspath(".... | Fixing building Python module after <I>d | py |
diff --git a/pylru.py b/pylru.py
index <HASH>..<HASH> 100644
--- a/pylru.py
+++ b/pylru.py
@@ -298,6 +298,11 @@ class lruwrap(object):
self.cache = lrucache(size, callback)
def __len__(self):
+ # XXX Need a way to efficiently return len() when writeback is turned
+ # on. If you really ... | Fixed two bugs in lruwrap class. | py |
diff --git a/controller/templates/gconf.py b/controller/templates/gconf.py
index <HASH>..<HASH> 100644
--- a/controller/templates/gconf.py
+++ b/controller/templates/gconf.py
@@ -1,6 +1,8 @@
bind = '0.0.0.0'
try:
workers = int({{ if exists "/deis/controller/workers" }}{{ getv "/deis/controller/workers" }}{{ else... | fix(controller): prevent < 1 gunicorn workers | py |
diff --git a/pypump/pypump.py b/pypump/pypump.py
index <HASH>..<HASH> 100644
--- a/pypump/pypump.py
+++ b/pypump/pypump.py
@@ -385,19 +385,18 @@ class PyPump(object):
def construct_oauth_url(self):
""" Constructs verifier OAuth URL """
- response = requests.head("{0}://{1}".format(self.protocol, ... | allow http-only hosts Use pump._requester() to fall back to http when needed. Fixes #<I> | py |
diff --git a/salt/modules/nftables.py b/salt/modules/nftables.py
index <HASH>..<HASH> 100644
--- a/salt/modules/nftables.py
+++ b/salt/modules/nftables.py
@@ -25,8 +25,10 @@ _NFTABLES_FAMILIES = {
'ip': 'ip',
'ipv6': 'ip6',
'ip6': 'ip6',
+ 'inet': 'inet',
'arp': 'arp',
- ... | Add missing nftables families The inet family a special hybrid ipv4+ipv6 table, netdev for filtering from ingress. | py |
diff --git a/src/discoursegraphs/readwrite/mmax2.py b/src/discoursegraphs/readwrite/mmax2.py
index <HASH>..<HASH> 100755
--- a/src/discoursegraphs/readwrite/mmax2.py
+++ b/src/discoursegraphs/readwrite/mmax2.py
@@ -89,7 +89,7 @@ class MMAXDocumentGraph(DiscourseDocumentGraph):
"""
def __init__(self, mmax_base... | mmax2: set ignore_sentence_annotations default to False - we only may want to ignore them when exporting to exmaralda | py |
diff --git a/py/selenium/webdriver/chrome/service.py b/py/selenium/webdriver/chrome/service.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/chrome/service.py
+++ b/py/selenium/webdriver/chrome/service.py
@@ -46,7 +46,9 @@ class Service(object):
stdout=PIPE, stderr=PIPE)
except:
... | DavidBurns updated error message to explain why ChromeDriver isn't working. Fixes issue <I> r<I> | py |
diff --git a/aguaclara/core/pipes.py b/aguaclara/core/pipes.py
index <HASH>..<HASH> 100644
--- a/aguaclara/core/pipes.py
+++ b/aguaclara/core/pipes.py
@@ -17,6 +17,24 @@ csv_path = os.path.join(dir_path, 'data/pipe_database.csv')
with open(csv_path) as pipedbfile:
pipedb = pd.read_csv(pipedbfile)
+
+class Pipe:... | Wrote Pipe Class for Pipe Objects | py |
diff --git a/openpnm/models/physics/ad_dif_conductance.py b/openpnm/models/physics/ad_dif_conductance.py
index <HASH>..<HASH> 100644
--- a/openpnm/models/physics/ad_dif_conductance.py
+++ b/openpnm/models/physics/ad_dif_conductance.py
@@ -88,6 +88,11 @@ def ad_dif(target,
Peij = Qij/gd
Peij[(Peij < 1e-10) & (... | add peclet export to advection-diffusion and dispersion models | py |
diff --git a/fireplace/card.py b/fireplace/card.py
index <HASH>..<HASH> 100644
--- a/fireplace/card.py
+++ b/fireplace/card.py
@@ -507,6 +507,11 @@ class Hero(Character):
return self.controller.weapon.windfury or ret
return ret
+ def _destroy(self):
+ super()._destroy()
+ if self.power:
+ self.power.destro... | Destroy the Hero Power when a Hero is destroyed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -124,8 +124,8 @@ def get_version_info():
vinfo = _version_helper.generate_git_version_info()
except:
vinfo = vdummy()
- vinfo.version = '1.16.dev6'
- vinfo.release = 'False'
+ vinfo.... | Prep for release (#<I>) | py |
diff --git a/emma2/msm/util.py b/emma2/msm/util.py
index <HASH>..<HASH> 100644
--- a/emma2/msm/util.py
+++ b/emma2/msm/util.py
@@ -1,37 +1,4 @@
"""
-Utility functions
+MSM related utility functions
"""
-from numpy import allclose
-def allclose_sparse(A, B, rtol=1e-5, atol=1e-9):
- """
- Compares two sparse ma... | removed function all_close sparse, which is now contained in emma2.util.numeric | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,19 +1,14 @@
import factory
-import importlib
import os
-import pytest
-import sys
from datetime import datetime, timezone
from flask_unchained.bundles.security.pytest import *
-from... | remove a few unused imports | py |
diff --git a/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py b/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py
+++ b/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py
@@ -493,9 +493,10... | Clarify docstring for ``build_pod_request_obj`` in K8s providers (#<I>) It's unclear what was referred to by `pod` because there isn't a `pod` parameter. I attempt to replace with clearer (and accurate) information. | py |
diff --git a/aiotg/chat.py b/aiotg/chat.py
index <HASH>..<HASH> 100644
--- a/aiotg/chat.py
+++ b/aiotg/chat.py
@@ -18,7 +18,7 @@ class Chat:
"""
return self.bot.send_message(self.id, text, **options)
- def reply(self, text, markup=None, parse_mode=None):
+ def reply(self, text, markup={}, pars... | Fix #8 chat.reply doesn't work in groups | py |
diff --git a/admin_tools/dashboard/templatetags/admin_tools_dashboard_tags.py b/admin_tools/dashboard/templatetags/admin_tools_dashboard_tags.py
index <HASH>..<HASH> 100644
--- a/admin_tools/dashboard/templatetags/admin_tools_dashboard_tags.py
+++ b/admin_tools/dashboard/templatetags/admin_tools_dashboard_tags.py
@@ -4... | Create empty preferences instance if user has no preferences saved yet. This should fix the possible race condition problem, as reported on issue #<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -92,12 +92,12 @@ setup(
packages=find_packages(exclude=['demo', 'tests', 'docs', 'contrib', 'venv']),
ext_modules=cythonize(extensions, compiler_directives={'language_level': sys.version_info[0]}),
package_data=... | Correct paths for .pxd files | py |
diff --git a/estnltk/rewriting/syntax_preprocessing/pronoun_type_rewriter.py b/estnltk/rewriting/syntax_preprocessing/pronoun_type_rewriter.py
index <HASH>..<HASH> 100644
--- a/estnltk/rewriting/syntax_preprocessing/pronoun_type_rewriter.py
+++ b/estnltk/rewriting/syntax_preprocessing/pronoun_type_rewriter.py
@@ -55,7 ... | in PronounTypeRewriter removed splitting of pronoun lemma before looking up pronoun type | py |
diff --git a/daapserver/bonjour.py b/daapserver/bonjour.py
index <HASH>..<HASH> 100644
--- a/daapserver/bonjour.py
+++ b/daapserver/bonjour.py
@@ -22,10 +22,16 @@ class Bonjour(object):
# The IP 0.0.0.0 tells SubDaap to bind to all interfaces. However,
# Bonjour advertises itself to others, so other... | Advertise on right IP depending on host. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
import os
import sys
-from setuptools import setup
+from setuptools import setup, find_packages
ROOT_DIR = os.path.dirname(__file__)
@@ -48,10 +48,7 @@ setup(
description="A Python library for the Do... | Use find_packages in setup.py It was missing docker.models, and this will fix it forever more. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,14 +24,14 @@ setup(
'Topic :: Text Processing :: Linguistic',
'Topic :: Utilities',
],
- description=('NLP support for Classical languages.'),
+ description='NLP support for Classical languages... | add cltk to reqs, cleanup | py |
diff --git a/tests/012-test-resources.py b/tests/012-test-resources.py
index <HASH>..<HASH> 100644
--- a/tests/012-test-resources.py
+++ b/tests/012-test-resources.py
@@ -1,5 +1,11 @@
+import sys
import mock
-import unittest2
+try:
+ import unittest2
+except ImportError:
+ if sys.version_info < (2, 7):
+ ... | * FIX: Better way to have unittest2 on both <I> and <I> | py |
diff --git a/simuvex/s_irexpr.py b/simuvex/s_irexpr.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_irexpr.py
+++ b/simuvex/s_irexpr.py
@@ -20,7 +20,10 @@ class SimIRExpr(object):
self._post_processed = False
self.expr = None
- self.type = tyenv.typeOf(expr)
+ if expr.tag in ('Iex_BBPTR... | handle BBPTR and VECRET, at least as stubs | py |
diff --git a/src/jaydebeapi/dbapi2.py b/src/jaydebeapi/dbapi2.py
index <HASH>..<HASH> 100644
--- a/src/jaydebeapi/dbapi2.py
+++ b/src/jaydebeapi/dbapi2.py
@@ -350,13 +350,15 @@ class Connection(object):
def commit(self):
try:
self.jconn.commit()
- except Exception, ex:
+ except:... | Fix Jython handling of Java exceptions that don't subclass python Exception | py |
diff --git a/pydsl/Grammar/Parser/RecursiveDescent.py b/pydsl/Grammar/Parser/RecursiveDescent.py
index <HASH>..<HASH> 100644
--- a/pydsl/Grammar/Parser/RecursiveDescent.py
+++ b/pydsl/Grammar/Parser/RecursiveDescent.py
@@ -84,7 +84,7 @@ class RecursiveDescentResultTree(Tree):
def right_limit_list(self):
"... | fixes bug: empty content added to right_list | py |
diff --git a/soco/core.py b/soco/core.py
index <HASH>..<HASH> 100755
--- a/soco/core.py
+++ b/soco/core.py
@@ -1014,6 +1014,11 @@ class SoCo(_SocoSingletonBase):
values. For example, a track may not have complete metadata and be
missing an album name. In this case track['album'] will be an empty
... | Explain current_info on slave in dosctring | py |
diff --git a/openquake/engine/utils/tasks.py b/openquake/engine/utils/tasks.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/utils/tasks.py
+++ b/openquake/engine/utils/tasks.py
@@ -75,7 +75,7 @@ class OqTaskManager(TaskManager):
result = result_dict['result']
if isinstance(result, BaseEx... | Updated .received to be a list | py |
diff --git a/build_package.py b/build_package.py
index <HASH>..<HASH> 100644
--- a/build_package.py
+++ b/build_package.py
@@ -37,9 +37,10 @@ def travis_build_package():
return
name, version = matching.groups()
- create_package(name, '../dist')
+ abs_dist_path = Path(os.environ['TRAVIS_BUILD_DIR']... | Absolute path for Travis dist folder [skip ci] | py |
diff --git a/circle.py b/circle.py
index <HASH>..<HASH> 100644
--- a/circle.py
+++ b/circle.py
@@ -26,7 +26,7 @@ while True:
circleDir = True
circle.position = (10 - radius, 10 - radius)
- circle.color = int( i /4 ) %8
+ circle.color = int( i /4 ) %6
print( screen )
time.sleep( .04 ) | Sped up circle.py color changing to counter slower frame rate for filled circle. | py |
diff --git a/master/buildbot/reporters/bitbucket.py b/master/buildbot/reporters/bitbucket.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/reporters/bitbucket.py
+++ b/master/buildbot/reporters/bitbucket.py
@@ -80,8 +80,8 @@ class BitbucketStatusPush(ReporterBase):
def _create_default_generators(self):
... | reporters: Set the template in default formatters of bitbucket status Neither body nor subject are used later, so be explicit to make code clearer. | py |
diff --git a/yotta/build.py b/yotta/build.py
index <HASH>..<HASH> 100644
--- a/yotta/build.py
+++ b/yotta/build.py
@@ -8,6 +8,8 @@ from lib import component
from lib import cmakegen
# Target, , represents an installed target, internal
from lib import target
+# install, , install subcommand, internal
+from . import i... | run install before building, fixes #<I> | py |
diff --git a/tests/unit/states/test_file.py b/tests/unit/states/test_file.py
index <HASH>..<HASH> 100644
--- a/tests/unit/states/test_file.py
+++ b/tests/unit/states/test_file.py
@@ -571,7 +571,7 @@ class TestFileState(TestCase, LoaderModuleMockMixin):
patch.dict(filestate.__salt__, {'file.user_to_uid'... | Removed a stray whitespace in one of the unit tests from unit.states.test_file. | py |
diff --git a/coaster/utils.py b/coaster/utils.py
index <HASH>..<HASH> 100644
--- a/coaster/utils.py
+++ b/coaster/utils.py
@@ -459,11 +459,11 @@ def namespace_from_url(url):
Construct a dotted namespace string from a URL.
"""
namespace = urlparse(url).hostname.split('.')
+ if namespace[len(namespace) ... | Only 'www' as the last item should be removed. Also watch for a trailing dot in the hostname. It's technically valid and will give you a blank string as the first item in the list. | py |
diff --git a/openquake/engine/calculators/hazard/event_based/core.py b/openquake/engine/calculators/hazard/event_based/core.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/calculators/hazard/event_based/core.py
+++ b/openquake/engine/calculators/hazard/event_based/core.py
@@ -134,7 +134,7 @@ def ses_and_gmfs(job_... | Pipes are better than commas Former-commit-id: <I>d<I>f7e<I>d2f<I>db<I>a<I>b<I>c4 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,8 @@ setup(
'regex',
'whoosh',
'fuzzywuzzy',
- 'python-Levenshtein'],
+ 'python-Levenshtein',
+ ... | included pyuca for setup requirement | py |
diff --git a/cherrypy/test/test_refleaks.py b/cherrypy/test/test_refleaks.py
index <HASH>..<HASH> 100644
--- a/cherrypy/test/test_refleaks.py
+++ b/cherrypy/test/test_refleaks.py
@@ -72,6 +72,16 @@ def setup_server():
return "\n".join(output)
gc_stats.exposed = True
+
+ ... | Forward port to trunk of <I>.x [<I>]. Added code to print unreachable object typecounts. See #<I>. | py |
diff --git a/ovirtlago/__init__.py b/ovirtlago/__init__.py
index <HASH>..<HASH> 100644
--- a/ovirtlago/__init__.py
+++ b/ovirtlago/__init__.py
@@ -138,13 +138,16 @@ def _git_revision_at(path):
def _activate_storage_domains(api, sds):
for sd in sds:
+ LOGGER.info('Started activation of storage domain %s',... | ovirtlago: Improve logging when activating sds Add logs when: - Activating a storage domain - Waiting for storage to become active - Storage became active | py |
diff --git a/airflow/www/app.py b/airflow/www/app.py
index <HASH>..<HASH> 100644
--- a/airflow/www/app.py
+++ b/airflow/www/app.py
@@ -1345,8 +1345,8 @@ admin.add_view(mv)
admin.add_link(
base.MenuLink(
category='Docs',
- name='@readthedocs.org',
- url='http://airflow.readthedocs.org/en/lat... | Fed up with readthedocs, moving docs to PythonHosted | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,6 @@ Then, maybe, celebrate.
from setuptools import dist # Install numpy right now
dist.Distribution().fetch_build_eggs(['numpy>=1.11.2'])
-dist.Distribution().fetch_build_eggs(['cython']) # TODO remove this pr... | removed fetchbuildeggs cython | py |
diff --git a/flask_restful_hal/_version.py b/flask_restful_hal/_version.py
index <HASH>..<HASH> 100644
--- a/flask_restful_hal/_version.py
+++ b/flask_restful_hal/_version.py
@@ -1,2 +1,2 @@
-__version_info__ = (0, 1, 1)
+__version_info__ = (0, 1, 2)
__version__ = '.'.join(map(str, __version_info__)) | Increased the version number to <I> | py |
diff --git a/zxbparser.py b/zxbparser.py
index <HASH>..<HASH> 100755
--- a/zxbparser.py
+++ b/zxbparser.py
@@ -320,14 +320,20 @@ def make_array_substr_assign(lineno, id_, arg_list, substr, expr_):
if expr_ is None:
return None # There were errors
- s0 = make_typecast(TYPE.uinteger, substr[0], lineno... | Fix string base not being used Not used when assigning a subtring of in an array element. It should be used. Fixed. | py |
diff --git a/tests/test_ha.py b/tests/test_ha.py
index <HASH>..<HASH> 100644
--- a/tests/test_ha.py
+++ b/tests/test_ha.py
@@ -167,7 +167,7 @@ class TestHa(unittest.TestCase):
def test_demote_after_failing_to_obtain_lock(self):
self.ha.acquire_lock = false
- self.assertEquals(self.ha.run_cycle(),... | Spelling: Even spelling can be tested | py |
diff --git a/glances/glances.py b/glances/glances.py
index <HASH>..<HASH> 100644
--- a/glances/glances.py
+++ b/glances/glances.py
@@ -2191,7 +2191,7 @@ class glancesScreen:
format(_("Tx/s"), '>5'), 5)
else:
self.term_window.addnstr(self.network_y,... | decided on final column name: Rx+Tx/s | py |
diff --git a/rope/base/codeanalyze.py b/rope/base/codeanalyze.py
index <HASH>..<HASH> 100644
--- a/rope/base/codeanalyze.py
+++ b/rope/base/codeanalyze.py
@@ -103,7 +103,6 @@ class LinesToReadline(object):
class _CustomGenerator(object):
- """A method object for finding the range of a statement"""
def __... | codeanalyze: removed an out of date pydoc | py |
diff --git a/ginga/rv/main.py b/ginga/rv/main.py
index <HASH>..<HASH> 100644
--- a/ginga/rv/main.py
+++ b/ginga/rv/main.py
@@ -576,8 +576,8 @@ class ReferenceViewer(object):
def reference_viewer(sys_argv):
"""Create reference viewer from command line."""
viewer = ReferenceViewer(layout=default_layout)
- v... | Change the order in which separately distributable plugins are added | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.