diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/treeherder/etl/push_loader.py b/treeherder/etl/push_loader.py
index <HASH>..<HASH> 100644
--- a/treeherder/etl/push_loader.py
+++ b/treeherder/etl/push_loader.py
@@ -160,6 +160,15 @@ class GithubPushTransformer(GithubTransformer):
URL_BASE = "https://api.github.com/repos/{}/{}/compare/{}...{}"
+ ... | Bug <I> - Fix KeyError in tag push situation of GithubPushTransformer (#<I>) * fix: KeyError when GithubPushTransformer.get_branch's called when tag push triggers * chore: remove unused whitespace | py |
diff --git a/junction/container_elements.py b/junction/container_elements.py
index <HASH>..<HASH> 100644
--- a/junction/container_elements.py
+++ b/junction/container_elements.py
@@ -103,7 +103,8 @@ class Root:
def read_stdin():
data = self.terminal.infile.read()
self.elem... | Fix unit tests when running as git commit hook | py |
diff --git a/pyphi/models.py b/pyphi/models.py
index <HASH>..<HASH> 100644
--- a/pyphi/models.py
+++ b/pyphi/models.py
@@ -563,9 +563,9 @@ class Concept:
def __hash__(self):
return hash((self.phi,
self.mechanism,
- self.mechanism,
self.cause.... | Fix typo in `Concept.__hash__` | py |
diff --git a/pysatCDF/cdf.py b/pysatCDF/cdf.py
index <HASH>..<HASH> 100644
--- a/pysatCDF/cdf.py
+++ b/pysatCDF/cdf.py
@@ -343,6 +343,7 @@ class CDF(object):
num = copy.deepcopy(self._num_attrs)
name = copy.deepcopy(self.fname)
out = fortran_cdf.inquire_all_attr(name, num, len(name))
+ ... | Updated docs on new loading option | py |
diff --git a/pyramid_multiauth/__init__.py b/pyramid_multiauth/__init__.py
index <HASH>..<HASH> 100644
--- a/pyramid_multiauth/__init__.py
+++ b/pyramid_multiauth/__init__.py
@@ -134,7 +134,7 @@ class MultiAuthenticationPolicy(object):
def remember(self, request, principal, **kw):
"""Remember the authenti... | docs: Fix simple typo, concatentation -> concatenation There is a small typo in pyramid_multiauth/__init__.py. Should read `concatenation` rather than `concatentation`. | py |
diff --git a/abilian/services/indexing/service.py b/abilian/services/indexing/service.py
index <HASH>..<HASH> 100644
--- a/abilian/services/indexing/service.py
+++ b/abilian/services/indexing/service.py
@@ -367,7 +367,7 @@ def index_update(index, items):
# indexed_fields = index.schema.names()
primary_field = '... | fix session usage in async task | py |
diff --git a/atomic_reactor/plugins/pre_fetch_sources.py b/atomic_reactor/plugins/pre_fetch_sources.py
index <HASH>..<HASH> 100644
--- a/atomic_reactor/plugins/pre_fetch_sources.py
+++ b/atomic_reactor/plugins/pre_fetch_sources.py
@@ -166,6 +166,7 @@ class FetchSourcesPlugin(PreBuildPlugin):
srpm_build_paths... | fetch_sources: log which RPM is being processed For easier debugging log which RPM is being pocessed by plugin | py |
diff --git a/dispatch/tests/test_api_persons.py b/dispatch/tests/test_api_persons.py
index <HASH>..<HASH> 100644
--- a/dispatch/tests/test_api_persons.py
+++ b/dispatch/tests/test_api_persons.py
@@ -208,10 +208,9 @@ class PersonsTests(DispatchAPITestCase, DispatchMediaTestMixin):
def _create_person(self, full_name... | Formatting to match Peter's recommendations, cont | py |
diff --git a/jaraco/util/logging.py b/jaraco/util/logging.py
index <HASH>..<HASH> 100644
--- a/jaraco/util/logging.py
+++ b/jaraco/util/logging.py
@@ -6,7 +6,7 @@ import time
import datetime
import string
-from jaraco import dateutil
+from jaraco import tempora
def log_level(level_string):
"""
@@ -60,8... | Moved dateutil to tempora | py |
diff --git a/pytypes/type_util.py b/pytypes/type_util.py
index <HASH>..<HASH> 100644
--- a/pytypes/type_util.py
+++ b/pytypes/type_util.py
@@ -899,7 +899,7 @@ def resolve_fw_decl(in_type, module_name=None, globs=None, level=0,
See ``util.get_function_perspective_globals`` for obtaining a ``globs`` that can be
... | Improved link comment in type_util.resolve_fw_decl. | py |
diff --git a/simuvex/s_irop.py b/simuvex/s_irop.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_irop.py
+++ b/simuvex/s_irop.py
@@ -57,6 +57,15 @@ def generic_DivS(args, size):
# TODO: not sure if this should be extended *before* or *after* multiplication
return args[0] / args[1]
+# Count the leading zeroes
+def g... | clz implemented, but probably poorly | py |
diff --git a/jira/version.py b/jira/version.py
index <HASH>..<HASH> 100644
--- a/jira/version.py
+++ b/jira/version.py
@@ -3,4 +3,4 @@
# 1) we don't load dependencies by storing it in __init__.py
# 2) we can import it in setup.py for the same reason
# 3) we can import it into the jira module
-__version__ = '0.37'
+_... | <I> which should work well on intranets. | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100755
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -199,6 +199,12 @@ class TestWeather(unittest.TestCase):
logging.debug(pretty_json(data.content))
self.assertEqual(data.status_code, 200)
+ def test_get_weather_in_with_unit(self):... | #<I>: test for get_weather_in with items and unit added | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -242,6 +242,7 @@ VALID_OPTS = {
'random_reauth_delay': int,
'syndic_event_forward_timeout': float,
'syndic_max_event_process_time': float,
+ 'syndic_jid_forward_cache_hwm': int,
'... | Add syndic_jid_forward_cache_hwm configuration | py |
diff --git a/holoviews/plotting/element.py b/holoviews/plotting/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/element.py
+++ b/holoviews/plotting/element.py
@@ -320,7 +320,7 @@ class ElementPlot(Plot):
extents = self.get_extents(view, ranges)
if extents and not self.overlaid:
... | Fix to ElementPlot._finalize_limits to support 3D Overlays | py |
diff --git a/gooey/gui/components/widgets/dropdown.py b/gooey/gui/components/widgets/dropdown.py
index <HASH>..<HASH> 100644
--- a/gooey/gui/components/widgets/dropdown.py
+++ b/gooey/gui/components/widgets/dropdown.py
@@ -12,8 +12,9 @@ class Dropdown(TextContainer):
return wx.ComboBox(
parent=pa... | Added a cast to string for the Dropdown default and choices values. This allows using any printable object as choices list (some kings of Enums for instance), which is allowed by argparse but not by wxPython. | py |
diff --git a/koala/ast/graph.py b/koala/ast/graph.py
index <HASH>..<HASH> 100644
--- a/koala/ast/graph.py
+++ b/koala/ast/graph.py
@@ -702,9 +702,12 @@ class ExcelCompiler(object):
#strip the sheet
G.node[n]['label'] = n.address()[n.address().find('!')+1:]
- def gen_graph(self... | ranged_names were missing in graph and not generated | py |
diff --git a/packages/snet_cli/snet/snet_cli/utils/utils.py b/packages/snet_cli/snet/snet_cli/utils/utils.py
index <HASH>..<HASH> 100644
--- a/packages/snet_cli/snet/snet_cli/utils/utils.py
+++ b/packages/snet_cli/snet/snet_cli/utils/utils.py
@@ -13,7 +13,7 @@ import grpc
from grpc_tools.protoc import main as protoc
... | Snet CLI/SDK | Fixes import issue | py |
diff --git a/examples/i3-cycle-focus.py b/examples/i3-cycle-focus.py
index <HASH>..<HASH> 100644
--- a/examples/i3-cycle-focus.py
+++ b/examples/i3-cycle-focus.py
@@ -1,4 +1,9 @@
#!/usr/bin/env python3
+#
+# provides alt+tab functionality between windows, switching
+# between n windows; example i3 conf to use:
+# ... | i3-cycle-focus: kill on i3 'shutdown' event - add on_shutdown() handler; - needs to be coupled with the daemon process being started from i3 config using exec_always; this makes sure old process, referring to stale connection upon i3 restart/crash, gets cleaned up. | py |
diff --git a/server/workers/rekall_adapter/rekall_adapter.py b/server/workers/rekall_adapter/rekall_adapter.py
index <HASH>..<HASH> 100644
--- a/server/workers/rekall_adapter/rekall_adapter.py
+++ b/server/workers/rekall_adapter/rekall_adapter.py
@@ -202,5 +202,11 @@ def test():
output = renderer.render(session.pl... | just puttin in code coverage calls | py |
diff --git a/source/rafcon/gui/mygaphas/tools.py b/source/rafcon/gui/mygaphas/tools.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/mygaphas/tools.py
+++ b/source/rafcon/gui/mygaphas/tools.py
@@ -240,10 +240,13 @@ class HoverItemTool(gaphas.tool.HoverTool):
return []
def _filter_library_state... | docs(mygaphas.tools): Extend docstring of _filter_library_state | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -160,12 +160,6 @@ html_theme_options = {
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['theme/static/']
-html_context = {
- 'css_files': [
- '_stati... | Fixed sphinx_tabs (#<I>) This commit fixes #<I> by removing `html_content` and adding `app.add_css_file()` instead because `html_content` was somehow blocking the css of other extensions. | py |
diff --git a/click_spinner/__init__.py b/click_spinner/__init__.py
index <HASH>..<HASH> 100644
--- a/click_spinner/__init__.py
+++ b/click_spinner/__init__.py
@@ -1,6 +1,5 @@
import sys
import threading
-import time
import itertools
@@ -32,7 +31,7 @@ class Spinner(object):
while not self.stop_running.is... | Removing the <I> sec. delay when calling stop This is removing then ~<I> seconds delay when calling stop (or exiting the context) | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -39,7 +39,7 @@ extensions = [
'sphinx.ext.viewcode',
'sphinx.ext.intersphinx',
'sphinx_gallery.gen_gallery',
- 'matplotlib.sphinxext.only_directives',
+ # 'matplotlib.sphinxext.only_directives'... | try to fix building the documentation for matplotlib <I> (will break previous versions) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ from setuptools import setup
requirements = [
'numpy',
'scipy',
- 'matplotlib==1.4.3',
+ 'matplotlib',
'pyyaml'
] | Remove version requirement for matplotlib | py |
diff --git a/marshmallow_jsonschema/base.py b/marshmallow_jsonschema/base.py
index <HASH>..<HASH> 100644
--- a/marshmallow_jsonschema/base.py
+++ b/marshmallow_jsonschema/base.py
@@ -98,6 +98,7 @@ class JSONSchema(Schema):
fields.List: list,
fields.LocalDateTime: datetime.datetime,
... | Add support for marshmallow.fields.Number | py |
diff --git a/trimesh/convex.py b/trimesh/convex.py
index <HASH>..<HASH> 100644
--- a/trimesh/convex.py
+++ b/trimesh/convex.py
@@ -24,16 +24,21 @@ except ImportError as E:
spatial = ExceptionModule(E)
-def convex_hull(obj, qhull_options='QbB Pp QJ'):
+def convex_hull(obj, qhull_options='QbB Pp Qt'):
"""
... | change qhull option from joggle to triangulate | py |
diff --git a/imagen/image.py b/imagen/image.py
index <HASH>..<HASH> 100644
--- a/imagen/image.py
+++ b/imagen/image.py
@@ -551,7 +551,13 @@ class ScaleChannels(ChannelTransform):
# safety check
num_channels = min( len(channel_data), len(self.channel_factors) )
for i in range( num_channels ):
... | Fix so that ScaleChannels works with callable channel_factors | py |
diff --git a/experiments/middleware.py b/experiments/middleware.py
index <HASH>..<HASH> 100644
--- a/experiments/middleware.py
+++ b/experiments/middleware.py
@@ -2,9 +2,8 @@ from experiments.utils import participant
class ExperimentsRetentionMiddleware(object):
def process_response(self, request, response):
- ... | tidy up ajax page loads so they count towards experiments | py |
diff --git a/SpiffWorkflow/specs/TaskSpec.py b/SpiffWorkflow/specs/TaskSpec.py
index <HASH>..<HASH> 100644
--- a/SpiffWorkflow/specs/TaskSpec.py
+++ b/SpiffWorkflow/specs/TaskSpec.py
@@ -179,6 +179,20 @@ class TaskSpec(object):
self.outputs.append(taskspec)
taskspec._connect_notify(self)
+ def fo... | Add 'follow' which IMHO is clearer than 'connect' - task1.follow(task2) has been easier for me to understand as I code than task2.connect(task1), which achieves the same. | py |
diff --git a/wkhtmltopdf/utils.py b/wkhtmltopdf/utils.py
index <HASH>..<HASH> 100644
--- a/wkhtmltopdf/utils.py
+++ b/wkhtmltopdf/utils.py
@@ -6,6 +6,7 @@ from itertools import chain
import os
import sys
import urllib
+from urlparse import urljoin
from django.conf import settings
@@ -119,4 +120,4 @@ def http_qu... | Removed extra slashes so the local file paths work in Windows. | py |
diff --git a/utool/util_dev.py b/utool/util_dev.py
index <HASH>..<HASH> 100755
--- a/utool/util_dev.py
+++ b/utool/util_dev.py
@@ -27,8 +27,10 @@ def DEPRICATED(func):
# --- Info Strings ---
-def print_mystats(_list):
+def print_mystats(_list, lbl=None):
import utool
+ if lbl is not None:
+ print('M... | Added label to print_mystats | py |
diff --git a/pyqode/cobol/widgets/code_edit.py b/pyqode/cobol/widgets/code_edit.py
index <HASH>..<HASH> 100644
--- a/pyqode/cobol/widgets/code_edit.py
+++ b/pyqode/cobol/widgets/code_edit.py
@@ -1,6 +1,7 @@
"""
This module contains the cobol code edit widget.
"""
+import mimetypes
import os
import sys
from pyqode... | Add mimetypes property to cobol code edit and add all cobol extensions to the cobol mimetypes (which is missing quite a few one) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -173,6 +173,9 @@ class CITest(TestCommand):
check_call(cmd, shell=True)
+NEEDS_PYTEST = {'pytest', 'test', 'coverage'}.intersection(sys.argv)
+PYTEST_RUNNER = ['pytest-runner'] if NEEDS_PYTEST else []
+
setup(nam... | Require pytest-runner only when testing (#<I>) | py |
diff --git a/fragments/apply.py b/fragments/apply.py
index <HASH>..<HASH> 100644
--- a/fragments/apply.py
+++ b/fragments/apply.py
@@ -48,6 +48,7 @@ def apply(*args):
diff = weave.merge(old_revision, new_revision)
+ # Select the chunks to be applied, possibly interactively
preserve_changes = {}
di... | comments in apply function because it's so complex | py |
diff --git a/jaraco/util/itertools.py b/jaraco/util/itertools.py
index <HASH>..<HASH> 100644
--- a/jaraco/util/itertools.py
+++ b/jaraco/util/itertools.py
@@ -198,10 +198,15 @@ class islice(object):
"""May be applied to an iterable to limit the number of items returned.
Works similarly to count, except is called on... | Capture expectation of _formatArgs. | py |
diff --git a/oauthlib/oauth1/__init__.py b/oauthlib/oauth1/__init__.py
index <HASH>..<HASH> 100644
--- a/oauthlib/oauth1/__init__.py
+++ b/oauthlib/oauth1/__init__.py
@@ -9,7 +9,11 @@ This module is a wrapper for the most recent implementation of OAuth 1.0 Client
and Server classes.
"""
-from .rfc5849 import Client... | Convenience imports for the new OAuth 1 provider. | py |
diff --git a/insights/tests/__init__.py b/insights/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/insights/tests/__init__.py
+++ b/insights/tests/__init__.py
@@ -2,7 +2,6 @@ import copy
import itertools
import json
import logging
-import traceback
from six import wraps
from StringIO import StringIO
@@ -181,... | Remove spec replacement warning since it almost always logs for cloned InputData instances. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,8 @@
from setuptools import setup
+with open("README.rst", "r", encoding="utf-8") as fh:
+ long_description = fh.read()
+
setup(
name='Flask-APScheduler',
version='1.12.2',
@@ -9,6 +12,8 @@ setup(
... | added long description for pypi | py |
diff --git a/examples/pip.py b/examples/pip.py
index <HASH>..<HASH> 100644
--- a/examples/pip.py
+++ b/examples/pip.py
@@ -8,6 +8,7 @@ if host.fact.linux_name in ['Alpine']:
name='Install packages for python virtual environments',
packages=[
'gcc',
+ 'g++',
'libffi... | Fix missing `g++` package in pip example. | py |
diff --git a/acceptancetests/jujupy/client.py b/acceptancetests/jujupy/client.py
index <HASH>..<HASH> 100644
--- a/acceptancetests/jujupy/client.py
+++ b/acceptancetests/jujupy/client.py
@@ -1889,14 +1889,6 @@ class ModelClient:
log.info("State-Server backup at %s", backup_file_path)
return backup_fil... | Remove backup methods from jujupy | py |
diff --git a/blockstack_client/scripts.py b/blockstack_client/scripts.py
index <HASH>..<HASH> 100644
--- a/blockstack_client/scripts.py
+++ b/blockstack_client/scripts.py
@@ -537,6 +537,12 @@ def tx_get_unspents(address, utxo_client, min_confirmations=TX_MIN_CONFIRMATIONS
Raise UTXOException on error
"""
+ ... | log when we use a different number of confirmations | py |
diff --git a/salt/utils/openstack/nova.py b/salt/utils/openstack/nova.py
index <HASH>..<HASH> 100644
--- a/salt/utils/openstack/nova.py
+++ b/salt/utils/openstack/nova.py
@@ -119,7 +119,7 @@ class SaltNova(object):
self.kwargs['auth_plugin'] = auth_plugin
self.kwargs['auth_system'] = os_auth_p... | Fix PEP8 E<I> - test for membership should be "not in" | py |
diff --git a/src/naarad/utils.py b/src/naarad/utils.py
index <HASH>..<HASH> 100644
--- a/src/naarad/utils.py
+++ b/src/naarad/utils.py
@@ -261,7 +261,10 @@ def calculate_stats(data_list, stats_to_calculate = ['mean', 'std'], percentiles
'mean' : numpy.mean,
'avg' : numpy.mean,
'std' : numpy.std,
- ... | Added support for min,max,median in the calculate_stats utility method | py |
diff --git a/latools/latools.py b/latools/latools.py
index <HASH>..<HASH> 100644
--- a/latools/latools.py
+++ b/latools/latools.py
@@ -1704,7 +1704,7 @@ class analyse(object):
except:
warnings.warn("filt.on failure in sample " + s)
- self.filter_status()
+ self.filter_statu... | filter_on/off reporting if subset specified, now only returns __repr__ for that subset. | py |
diff --git a/teamcity/messages.py b/teamcity/messages.py
index <HASH>..<HASH> 100644
--- a/teamcity/messages.py
+++ b/teamcity/messages.py
@@ -19,21 +19,21 @@ class BlockContextManager(object):
self.flowId = flowId
def __enter__(self):
- self.message('blockOpened', name=self.name)
+ self._... | BlockContextManager: do not open methods close and message, make them pseudo-private | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,6 +49,9 @@ setup(
install_requires=list(filter(None, [
'argparse==1.2.1' if sys.version_info[:2] < (2, 7) else None,
])),
+ py_modules=[
+ 'bootstrapper'
+ ],
test_suite='tests',
t... | Fix missed py modules directive in setup script. | py |
diff --git a/jsonfield/fields.py b/jsonfield/fields.py
index <HASH>..<HASH> 100644
--- a/jsonfield/fields.py
+++ b/jsonfield/fields.py
@@ -14,10 +14,11 @@ class JSONFormField(Field):
value = super(JSONFormField, self).clean(value)
- try:
- json.loads(value)
- except ValueError:
- ... | Check if the value is a string before attempting to deserialize | py |
diff --git a/bingo/views.py b/bingo/views.py
index <HASH>..<HASH> 100644
--- a/bingo/views.py
+++ b/bingo/views.py
@@ -134,7 +134,7 @@ def create_board(request):
game = bingo_board.game if bingo_board is not None else None
if bingo_board:
- Game.objects.filter(bingo_board.game.id).update(
+ Ga... | fix: updating the timestamp of new games works now | py |
diff --git a/pyvalid/__accepts.py b/pyvalid/__accepts.py
index <HASH>..<HASH> 100644
--- a/pyvalid/__accepts.py
+++ b/pyvalid/__accepts.py
@@ -165,7 +165,7 @@ class Accepts(Callable):
"""
isBrokenPy = (sys.version_info.major, sys.version_info.minor) == (3, 5)
if not isBrokenPy:
- r... | PEP <I> fix now return False for correctly working Py versions | py |
diff --git a/tests/test_database_manager.py b/tests/test_database_manager.py
index <HASH>..<HASH> 100644
--- a/tests/test_database_manager.py
+++ b/tests/test_database_manager.py
@@ -68,6 +68,13 @@ class ConnectionTestCase(OratorTestCase):
self.assertIsNot(manager.connection().get_connection(), api_connection)... | Adding a test for DatabaseManager | py |
diff --git a/libraries/botbuilder-dialogs/botbuilder/dialogs/__init__.py b/libraries/botbuilder-dialogs/botbuilder/dialogs/__init__.py
index <HASH>..<HASH> 100644
--- a/libraries/botbuilder-dialogs/botbuilder/dialogs/__init__.py
+++ b/libraries/botbuilder-dialogs/botbuilder/dialogs/__init__.py
@@ -17,6 +17,7 @@ from .d... | Prompts exported from both dialogs and dialogs.prompts without collisions | py |
diff --git a/bloop/streams_module/stream_utils.py b/bloop/streams_module/stream_utils.py
index <HASH>..<HASH> 100644
--- a/bloop/streams_module/stream_utils.py
+++ b/bloop/streams_module/stream_utils.py
@@ -13,7 +13,7 @@ last_iterator = Sentinel("LastIterator")
def walk_shards(*shards: Shard):
"""Generator that... | Fix bug from arg -> *arg refactor | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,9 @@
-from setuptools import setup
+try:
+ from setuptools import setup
+except ImportError:
+ from ez_setup import use_setuptools
+ use_setuptools()
+ from setuptools import setup
__version__ = '0.1.3' | support ez_setup envs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,23 @@
from setuptools import setup, find_packages
import os
+import platform
+import shutil
+
+package_data = {}
+if os.name == 'nt': # windows
+ devel_root = os.getenv('SDL2_DEVEL_PATH')
+ print(devel_root)
+... | Package SDL2.dll with windows build | py |
diff --git a/bulbs/content/models.py b/bulbs/content/models.py
index <HASH>..<HASH> 100644
--- a/bulbs/content/models.py
+++ b/bulbs/content/models.py
@@ -400,7 +400,7 @@ class Content(PolymorphicModel, Indexable):
unsponsored_boost = 0
else:
# Below sponsored (inverse boost, since we... | Force float on inversion JUST in case | py |
diff --git a/bubbletools/__init__.py b/bubbletools/__init__.py
index <HASH>..<HASH> 100644
--- a/bubbletools/__init__.py
+++ b/bubbletools/__init__.py
@@ -3,4 +3,4 @@ from bubbletools.validator import validate
from bubbletools.bbltree import BubbleTree
-__version__ = '0.6.8.dev0'
+__version__ = '0.6.8' | Preparing release <I> | py |
diff --git a/backtrader/strategy.py b/backtrader/strategy.py
index <HASH>..<HASH> 100644
--- a/backtrader/strategy.py
+++ b/backtrader/strategy.py
@@ -239,6 +239,17 @@ class Strategy(six.with_metaclass(MetaStrategy, StrategyBase)):
observer._next()
# check the min period status connected to data... | Add missing analyzers loop call to Strategy _next | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,6 +17,7 @@ KEYWORDS = ['python', 'spelling', 'typo', 'checker']
def get_dictionaries():
+ ''' pull dictionaries for use in the tar.gz build '''
return ["spellchecker/resources/{}".format(x)
for x ... | cleaner method to keep tar.gz correct | py |
diff --git a/pre_commit/commands/migrate_config.py b/pre_commit/commands/migrate_config.py
index <HASH>..<HASH> 100644
--- a/pre_commit/commands/migrate_config.py
+++ b/pre_commit/commands/migrate_config.py
@@ -32,7 +32,7 @@ def _migrate_map(contents):
# will yield a valid configuration
try:
... | Appease yaml.load linters _technically_ yaml.load is unsafe, however the contents being loaded here are previously loaded just above using a safe loader so this is not an abitrary code vector. Fixing it nonetheless :) | py |
diff --git a/autolens/pipeline/phase/phase_extensions/__init__.py b/autolens/pipeline/phase/phase_extensions/__init__.py
index <HASH>..<HASH> 100644
--- a/autolens/pipeline/phase/phase_extensions/__init__.py
+++ b/autolens/pipeline/phase/phase_extensions/__init__.py
@@ -76,7 +76,17 @@ class CombinedHyperPhase(HyperPhas... | only run combined when there is more than one hyper phase included | py |
diff --git a/source/test/common/test_z_backward_stepping.py b/source/test/common/test_z_backward_stepping.py
index <HASH>..<HASH> 100644
--- a/source/test/common/test_z_backward_stepping.py
+++ b/source/test/common/test_z_backward_stepping.py
@@ -52,7 +52,9 @@ def trigger_gui_signals(*args):
call_gui_callback(me... | make backward stepping test more robust the backward stepping test simulate forward and backward step clicks of a user, which is time dependent. Under cpu load the runtime of the backward stepping test might increase thus the runtime for a single state to finish was doubled | py |
diff --git a/ella/core/models/publishable.py b/ella/core/models/publishable.py
index <HASH>..<HASH> 100644
--- a/ella/core/models/publishable.py
+++ b/ella/core/models/publishable.py
@@ -197,6 +197,8 @@ class Placement(models.Model):
class Meta:
app_label = 'core'
+ # FIXME: after model-validatio... | Unique (publishable, category) for placement since we have model validation. Fixes #<I> | py |
diff --git a/src/binwalk/modules/heuristics.py b/src/binwalk/modules/heuristics.py
index <HASH>..<HASH> 100644
--- a/src/binwalk/modules/heuristics.py
+++ b/src/binwalk/modules/heuristics.py
@@ -101,7 +101,7 @@ class HeuristicCompressionAnalyzer(Module):
long='trigger',
kwargs={'... | Added --trigger sanity checks | py |
diff --git a/pyfakefs/fake_filesystem.py b/pyfakefs/fake_filesystem.py
index <HASH>..<HASH> 100644
--- a/pyfakefs/fake_filesystem.py
+++ b/pyfakefs/fake_filesystem.py
@@ -136,7 +136,13 @@ if sys.version_info >= (3, 3):
_OPEN_MODE_MAP['x'] = (False, False, True, False, False, True)
_OPEN_MODE_MAP['x+'] = (Fals... | Adapted the maximum symlink depth to match most systems - see #<I> | py |
diff --git a/holoviews/core/options.py b/holoviews/core/options.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/options.py
+++ b/holoviews/core/options.py
@@ -849,7 +849,9 @@ class Store(object):
groups = ['style', 'plot', 'norm']
if backend not in cls._options:
- cls._options[backend... | Ensured that backend key exists in Store.custom_options | py |
diff --git a/rewind/server/test/test_eventstores.py b/rewind/server/test/test_eventstores.py
index <HASH>..<HASH> 100644
--- a/rewind/server/test/test_eventstores.py
+++ b/rewind/server/test/test_eventstores.py
@@ -264,7 +264,12 @@ class _TestEventStore:
"Expected key to not exist: {0}".format... | Improving a pydoc string Explaining why the method is private. | py |
diff --git a/slackviewer/message.py b/slackviewer/message.py
index <HASH>..<HASH> 100644
--- a/slackviewer/message.py
+++ b/slackviewer/message.py
@@ -47,7 +47,7 @@ class Message(object):
def msg(self):
message = []
- text = self._message["text"]
+ text = self._message.get("text")
... | Handle cases where text is not provided in message | py |
diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/utils/__init__.py
+++ b/salt/utils/__init__.py
@@ -91,7 +91,7 @@ def get_colors(use=True):
'ENDC': '\033[0m',
}
- if not use:
+ if not use or not os.isatty(sys.stdout.fileno()):
... | Issue #<I>, disable color output when stdout is part of a pipeline and not a tty | py |
diff --git a/blockstack_cli_0.14.1/blockstack_client/actions.py b/blockstack_cli_0.14.1/blockstack_client/actions.py
index <HASH>..<HASH> 100644
--- a/blockstack_cli_0.14.1/blockstack_client/actions.py
+++ b/blockstack_cli_0.14.1/blockstack_client/actions.py
@@ -300,7 +300,7 @@ def get_total_registration_fees(name, pay... | update warning message when we can't access the wallet | py |
diff --git a/pymacaron/__init__.py b/pymacaron/__init__.py
index <HASH>..<HASH> 100644
--- a/pymacaron/__init__.py
+++ b/pymacaron/__init__.py
@@ -367,8 +367,13 @@ def letsgo(name, callback=None):
@click.command()
@click.option('--port', help="Set server listening port (default: 80)", default=None)
+ @cl... | Allow overriding PYM_ENV when starting flask server | py |
diff --git a/PBB_Core.py b/PBB_Core.py
index <HASH>..<HASH> 100755
--- a/PBB_Core.py
+++ b/PBB_Core.py
@@ -861,7 +861,9 @@ class WDBaseDataType(object):
self.is_qualifier = is_qualifier
self.rank = rank
- if prop_nr.startswith('P'):
+ if type(prop_nr) is int:
+ self.prop_nr ... | improved fix to also include integer type property numbers | py |
diff --git a/managers/tests.py b/managers/tests.py
index <HASH>..<HASH> 100644
--- a/managers/tests.py
+++ b/managers/tests.py
@@ -15,6 +15,7 @@ from django.test.utils import override_settings
from base.models import UserProfile, ProfileRequest
from utils.funcs import convert_to_url
from utils.variables import ANONY... | Added a simple test for ExpireRequestsCronJob | py |
diff --git a/authomatic/providers/__init__.py b/authomatic/providers/__init__.py
index <HASH>..<HASH> 100644
--- a/authomatic/providers/__init__.py
+++ b/authomatic/providers/__init__.py
@@ -510,6 +510,9 @@ class AuthorisationProvider(BaseProvider):
#: If ``True`` the provider doesn't support Cross-site HTTP reque... | Added AuthorisationProvider.supports_jsonp property. | py |
diff --git a/trimesh/exchange/gltf.py b/trimesh/exchange/gltf.py
index <HASH>..<HASH> 100644
--- a/trimesh/exchange/gltf.py
+++ b/trimesh/exchange/gltf.py
@@ -808,7 +808,8 @@ def _build_primitive_map(mesh):
# Otherwise build an ordered dict with the faces used for each face.
primitive_map = collections.Ordere... | Removing the walrus operator, so that the code is compatible with python<I> | py |
diff --git a/progressbar/__about__.py b/progressbar/__about__.py
index <HASH>..<HASH> 100644
--- a/progressbar/__about__.py
+++ b/progressbar/__about__.py
@@ -19,7 +19,7 @@ A Python Progressbar library to provide visual (yet text based) progress to
long running operations.
'''.strip().split())
__email__ = 'wolph@wol... | Incrementing version to <I> | py |
diff --git a/nailgun/entities.py b/nailgun/entities.py
index <HASH>..<HASH> 100644
--- a/nailgun/entities.py
+++ b/nailgun/entities.py
@@ -1994,6 +1994,7 @@ class HostCollection(
EntityCreateMixin,
EntityDeleteMixin,
EntityReadMixin,
+ EntitySearchMixin,
EntityUpdateMixin):
... | Add EntitySearchMixin to HostCollection closes #<I> (#<I>) | py |
diff --git a/edisgo/tools/pypsa_io.py b/edisgo/tools/pypsa_io.py
index <HASH>..<HASH> 100644
--- a/edisgo/tools/pypsa_io.py
+++ b/edisgo/tools/pypsa_io.py
@@ -11,6 +11,7 @@ from math import pi, sqrt, floor
from pypsa import Network as PyPSANetwork
from pypsa.io import import_series_from_dataframe
from networkx impor... | add check for duplicate buses prior to pypsa export | py |
diff --git a/tests/web_api/test_variables.py b/tests/web_api/test_variables.py
index <HASH>..<HASH> 100644
--- a/tests/web_api/test_variables.py
+++ b/tests/web_api/test_variables.py
@@ -8,7 +8,7 @@ from . import subject
# /variables
variables_response = subject.get('/variables')
-GITHUB_URL_REGEX = '^https://githu... | Handle dev release in github link regex | py |
diff --git a/safe/impact_functions/test_plugin_core.py b/safe/impact_functions/test_plugin_core.py
index <HASH>..<HASH> 100644
--- a/safe/impact_functions/test_plugin_core.py
+++ b/safe/impact_functions/test_plugin_core.py
@@ -116,7 +116,7 @@ class SyntaxErrorFunction(FunctionProvider):
class Test_plugin_core(unit... | Remove deprecated reference to risiko in comments | py |
diff --git a/ubcpi/ubcpi.py b/ubcpi/ubcpi.py
index <HASH>..<HASH> 100644
--- a/ubcpi/ubcpi.py
+++ b/ubcpi/ubcpi.py
@@ -329,13 +329,20 @@ class PeerInstructionXBlock(XBlock, MissingDataFetcherMixin):
num_resp = self.stats['revised'].setdefault(answer, 0)
self.stats['revised'][answer] = num_resp... | CHANGED the grade to be an abstracted method so we can make changes to this more easily in the future | py |
diff --git a/python/dllib/src/bigdl/dllib/utils/tf_utils.py b/python/dllib/src/bigdl/dllib/utils/tf_utils.py
index <HASH>..<HASH> 100644
--- a/python/dllib/src/bigdl/dllib/utils/tf_utils.py
+++ b/python/dllib/src/bigdl/dllib/utils/tf_utils.py
@@ -157,7 +157,8 @@ def dump_model(path, sess=None, graph=None, bigdl_type="f... | Support load more tensorflow operations (#<I>) * Support load more tf operation * refine session * fix style issue * meet code reivew | py |
diff --git a/treebeard/forms.py b/treebeard/forms.py
index <HASH>..<HASH> 100644
--- a/treebeard/forms.py
+++ b/treebeard/forms.py
@@ -51,16 +51,16 @@ class TreeFormAdmin(forms.ModelForm):
# Do actual check only if for_node is provided
if for_node is not None:
is_loop_safe = l... | Applying aleh.fl's patch to forms.py """Found bug in my tree-admin implementation. If you edit some root node, the node itself is not excluded from 'Relative to:' drop-down, so it is possible to submit bad parent node id.""" --HG-- branch : admin-aleh | py |
diff --git a/soco/core.py b/soco/core.py
index <HASH>..<HASH> 100755
--- a/soco/core.py
+++ b/soco/core.py
@@ -59,7 +59,7 @@ class SonosDiscovery(object): # pylint: disable=R0903
# BR100 = Sonos Bridge, ZPS3 = Zone Player 3
# ZP120 = Zone Player Amp 120, ZPS5 = Zone Player 5
... | Added ZPS1 Zone Player 1 in comment. | py |
diff --git a/src/toil_scripts/rnaseq_cgl/rnaseq_cgl_pipeline.py b/src/toil_scripts/rnaseq_cgl/rnaseq_cgl_pipeline.py
index <HASH>..<HASH> 100644
--- a/src/toil_scripts/rnaseq_cgl/rnaseq_cgl_pipeline.py
+++ b/src/toil_scripts/rnaseq_cgl/rnaseq_cgl_pipeline.py
@@ -215,7 +215,7 @@ def process_sample(job, config, input_tar... | Add name of failed group to assert statement | py |
diff --git a/examples/arabic.py b/examples/arabic.py
index <HASH>..<HASH> 100644
--- a/examples/arabic.py
+++ b/examples/arabic.py
@@ -12,16 +12,17 @@ Dependencies installation:
pip install python-bidi arabic_reshape
"""
-from os import path
+import os
import codecs
from wordcloud import WordCloud
import arabic_... | Fix the __file__ is not defined bug | py |
diff --git a/pymatgen/io/vasp/tests/test_sets.py b/pymatgen/io/vasp/tests/test_sets.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/vasp/tests/test_sets.py
+++ b/pymatgen/io/vasp/tests/test_sets.py
@@ -463,7 +463,7 @@ class MPNonSCFSetTest(PymatgenTest):
prev_run = self.TEST_FILES_DIR / "relaxation"
... | Change optics test to reflect Uniform to Boltztrap mode rename | py |
diff --git a/src/kba/pipeline/_truncate.py b/src/kba/pipeline/_truncate.py
index <HASH>..<HASH> 100644
--- a/src/kba/pipeline/_truncate.py
+++ b/src/kba/pipeline/_truncate.py
@@ -25,10 +25,10 @@ class truncate(object):
'''
## make a new output chunk at a temporary path
tmp_chunk_path = chunk_... | fixing two bugs in truncate for WLC | py |
diff --git a/nolds/measures.py b/nolds/measures.py
index <HASH>..<HASH> 100644
--- a/nolds/measures.py
+++ b/nolds/measures.py
@@ -1463,7 +1463,7 @@ def mfhurst_b(data, qvals=[1], dists=range(1, 20), fit='poly',
xvals = np.log(dists)
yvals = np.log(corrvals)
polys = [
- polyfit(xvals, yvals[:, qi], 1, fit=f... | bugfix: function is called poly_fit, not polyfit | py |
diff --git a/betfairlightweight/resources/bettingresources.py b/betfairlightweight/resources/bettingresources.py
index <HASH>..<HASH> 100644
--- a/betfairlightweight/resources/bettingresources.py
+++ b/betfairlightweight/resources/bettingresources.py
@@ -529,8 +529,8 @@ class ClearedOrder(object):
"""
def _... | Default priceRequested to None in ClearedOrder (has been missing for many altered requests). | py |
diff --git a/salt/modules/hosts.py b/salt/modules/hosts.py
index <HASH>..<HASH> 100644
--- a/salt/modules/hosts.py
+++ b/salt/modules/hosts.py
@@ -53,7 +53,7 @@ def _list_hosts():
if not line:
continue
if line.startswith('#'):
- ret.setdefault('comment-{0}'.form... | Correct comment lines output got list_hosts | py |
diff --git a/zendesk/zendesk.py b/zendesk/zendesk.py
index <HASH>..<HASH> 100755
--- a/zendesk/zendesk.py
+++ b/zendesk/zendesk.py
@@ -26,6 +26,7 @@ __version__ = "1.0.0"
import re
import httplib2
import urllib
+import base64
try:
import simplejson as json
except:
@@ -155,6 +156,16 @@ class Zendesk(object):
... | inject auth credentials for search endpoint for open help desks search endpoint does not return a <I> status to force authentication so we must inject the credentials into the headers | py |
diff --git a/pip_accel/logger.py b/pip_accel/logger.py
index <HASH>..<HASH> 100644
--- a/pip_accel/logger.py
+++ b/pip_accel/logger.py
@@ -19,7 +19,7 @@ coloredlogs.install()
# Initialize the logging subsystem.
logger = logging.getLogger('pip-accel')
-logger.setLevel(logging.DEBUG)
+logger.setLevel(logging.INFO)
... | Set logging level to INFO (changed to DEBUG in <I>c<I>c0) IMHO, it's a UX issue. | py |
diff --git a/tests/test_ini_files.py b/tests/test_ini_files.py
index <HASH>..<HASH> 100644
--- a/tests/test_ini_files.py
+++ b/tests/test_ini_files.py
@@ -98,8 +98,7 @@ class TestableHandler(logging.Handler):
class BaseTest(unittest.TestCase):
-
- PARSER_CLASS = IniParser
+ PARSER_CLASS = None
def set... | Test if everything works with "None" as parser | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@ setup(
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: MIT License',
],
- packages=find_packages(),
+ packages=['knack', 'knack.testsdk'],
install_requires=... | Explicitly state which packages to include (so exclude 'tests') (#<I>) | py |
diff --git a/slither/slithir/operations/low_level_call.py b/slither/slithir/operations/low_level_call.py
index <HASH>..<HASH> 100644
--- a/slither/slithir/operations/low_level_call.py
+++ b/slither/slithir/operations/low_level_call.py
@@ -1,7 +1,7 @@
from slither.slithir.operations.call import Call
from slither.slith... | Use SolidityVariable in LowLevelCall (allow this) | py |
diff --git a/master/buildbot/process/slavebuilder.py b/master/buildbot/process/slavebuilder.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/process/slavebuilder.py
+++ b/master/buildbot/process/slavebuilder.py
@@ -15,7 +15,6 @@
from twisted.internet import defer
from twisted.python import log
-from twisted.spr... | remove pb.Referenceable from slavebuilder It is not needed, according to the integration tests | py |
diff --git a/mongooplog_alt.py b/mongooplog_alt.py
index <HASH>..<HASH> 100644
--- a/mongooplog_alt.py
+++ b/mongooplog_alt.py
@@ -69,6 +69,35 @@ def parse_args():
return parser.parse_args()
+# from jaraco.util.logging
+def log_level(level_string):
+ """
+ Return a log level for a string
+ """
+ re... | Copied logging support from jaraco.util.logging | py |
diff --git a/more/basicauth/main.py b/more/basicauth/main.py
index <HASH>..<HASH> 100644
--- a/more/basicauth/main.py
+++ b/more/basicauth/main.py
@@ -16,7 +16,7 @@ class BasicAuthIdentityPolicy(object):
:param request: Request to extract identity information from.
:type request: :class:`morepath.Re... | Replace morepath.security. with morepath. in docstrings | py |
diff --git a/pandocxnos/core.py b/pandocxnos/core.py
index <HASH>..<HASH> 100644
--- a/pandocxnos/core.py
+++ b/pandocxnos/core.py
@@ -416,7 +416,7 @@ def join_strings(key, value, fmt, meta): # pylint: disable=unused-argument
# prefix, label and suffix. e.g.:
# >>> _REF.match('xxx{+@fig:1}xxx').groups()
# ('xxx{+'... | Removed redundant repeater from regex. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.